]>
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 | } | |
1d99702e RD |
102 | #ifdef __cplusplus |
103 | extern "C" { | |
104 | #endif | |
2f90df85 RD |
105 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
106 | ||
107 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
108 | return 1; | |
109 | } | |
110 | ||
111 | static PyObject *_wrap_wxDefaultValidator_get() { | |
112 | PyObject * pyobj; | |
113 | char ptemp[128]; | |
114 | ||
115 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
116 | pyobj = PyString_FromString(ptemp); | |
117 | return pyobj; | |
118 | } | |
119 | ||
8ab979d7 RD |
120 | static void *SwigwxControlTowxWindow(void *ptr) { |
121 | wxControl *src; | |
122 | wxWindow *dest; | |
123 | src = (wxControl *) ptr; | |
124 | dest = (wxWindow *) src; | |
125 | return (void *) dest; | |
126 | } | |
127 | ||
128 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
129 | wxControl *src; | |
130 | wxEvtHandler *dest; | |
131 | src = (wxControl *) ptr; | |
132 | dest = (wxEvtHandler *) src; | |
133 | return (void *) dest; | |
134 | } | |
135 | ||
9416aa89 RD |
136 | static void *SwigwxControlTowxObject(void *ptr) { |
137 | wxControl *src; | |
138 | wxObject *dest; | |
139 | src = (wxControl *) ptr; | |
140 | dest = (wxObject *) src; | |
141 | return (void *) dest; | |
142 | } | |
143 | ||
9b3d3bc4 | 144 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6999b0d8 RD |
145 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
146 | PyObject * _resultobj; | |
147 | wxControl * _result; | |
9b3d3bc4 RD |
148 | wxWindow * _arg0; |
149 | wxWindowID _arg1; | |
e508a2b6 RD |
150 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
151 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
9b3d3bc4 | 152 | long _arg4 = (long ) 0; |
e508a2b6 | 153 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9b3d3bc4 RD |
154 | char * _arg6 = (char *) "control"; |
155 | PyObject * _argo0 = 0; | |
156 | wxPoint temp; | |
157 | PyObject * _obj2 = 0; | |
158 | wxSize temp0; | |
159 | PyObject * _obj3 = 0; | |
160 | PyObject * _argo5 = 0; | |
161 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6999b0d8 RD |
162 | char _ptemp[128]; |
163 | ||
164 | self = self; | |
9b3d3bc4 RD |
165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
166 | return NULL; | |
167 | if (_argo0) { | |
168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
171 | return NULL; | |
172 | } | |
173 | } | |
174 | if (_obj2) | |
175 | { | |
176 | _arg2 = &temp; | |
177 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6999b0d8 | 178 | return NULL; |
9b3d3bc4 RD |
179 | } |
180 | if (_obj3) | |
181 | { | |
182 | _arg3 = &temp0; | |
183 | if (! wxSize_helper(_obj3, &_arg3)) | |
184 | return NULL; | |
185 | } | |
186 | if (_argo5) { | |
187 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
188 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
190 | return NULL; | |
191 | } | |
192 | } | |
6999b0d8 | 193 | { |
4268f798 | 194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 195 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
6999b0d8 | 196 | |
4268f798 | 197 | wxPyEndAllowThreads(__tstate); |
493f1553 | 198 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
199 | } if (_result) { |
200 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
201 | _resultobj = Py_BuildValue("s",_ptemp); | |
202 | } else { | |
203 | Py_INCREF(Py_None); | |
204 | _resultobj = Py_None; | |
205 | } | |
206 | return _resultobj; | |
207 | } | |
208 | ||
09f3d4e6 RD |
209 | #define new_wxPreControl() (new wxControl()) |
210 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
211 | PyObject * _resultobj; | |
212 | wxControl * _result; | |
213 | char *_kwnames[] = { NULL }; | |
214 | char _ptemp[128]; | |
215 | ||
216 | self = self; | |
217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
218 | return NULL; | |
219 | { | |
4268f798 | 220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 221 | _result = (wxControl *)new_wxPreControl(); |
09f3d4e6 | 222 | |
4268f798 | 223 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
224 | if (PyErr_Occurred()) return NULL; |
225 | } if (_result) { | |
226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
227 | _resultobj = Py_BuildValue("s",_ptemp); | |
228 | } else { | |
229 | Py_INCREF(Py_None); | |
230 | _resultobj = Py_None; | |
231 | } | |
232 | return _resultobj; | |
233 | } | |
234 | ||
235 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
236 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
237 | PyObject * _resultobj; | |
238 | bool _result; | |
239 | wxControl * _arg0; | |
240 | wxWindow * _arg1; | |
241 | wxWindowID _arg2; | |
242 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
243 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
244 | long _arg5 = (long ) 0; | |
245 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
246 | char * _arg7 = (char *) "control"; | |
247 | PyObject * _argo0 = 0; | |
248 | PyObject * _argo1 = 0; | |
249 | wxPoint temp; | |
250 | PyObject * _obj3 = 0; | |
251 | wxSize temp0; | |
252 | PyObject * _obj4 = 0; | |
253 | PyObject * _argo6 = 0; | |
254 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
255 | ||
256 | self = self; | |
257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
258 | return NULL; | |
259 | if (_argo0) { | |
260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
263 | return NULL; | |
264 | } | |
265 | } | |
266 | if (_argo1) { | |
267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | if (_obj3) | |
274 | { | |
275 | _arg3 = &temp; | |
276 | if (! wxPoint_helper(_obj3, &_arg3)) | |
277 | return NULL; | |
278 | } | |
279 | if (_obj4) | |
280 | { | |
281 | _arg4 = &temp0; | |
282 | if (! wxSize_helper(_obj4, &_arg4)) | |
283 | return NULL; | |
284 | } | |
285 | if (_argo6) { | |
286 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
287 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
289 | return NULL; | |
290 | } | |
291 | } | |
292 | { | |
4268f798 | 293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 294 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
09f3d4e6 | 295 | |
4268f798 | 296 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
297 | if (PyErr_Occurred()) return NULL; |
298 | } _resultobj = Py_BuildValue("i",_result); | |
299 | return _resultobj; | |
300 | } | |
301 | ||
8ab979d7 | 302 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
efc5f224 | 303 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
304 | PyObject * _resultobj; |
305 | wxControl * _arg0; | |
306 | wxCommandEvent * _arg1; | |
1d99702e RD |
307 | PyObject * _argo0 = 0; |
308 | PyObject * _argo1 = 0; | |
efc5f224 | 309 | char *_kwnames[] = { "self","event", NULL }; |
8ab979d7 RD |
310 | |
311 | self = self; | |
efc5f224 | 312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 313 | return NULL; |
1d99702e RD |
314 | if (_argo0) { |
315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); |
318 | return NULL; | |
319 | } | |
320 | } | |
1d99702e RD |
321 | if (_argo1) { |
322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
8ab979d7 RD |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
325 | return NULL; | |
326 | } | |
327 | } | |
cf694132 | 328 | { |
4268f798 | 329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 330 | wxControl_Command(_arg0,*_arg1); |
cf694132 | 331 | |
4268f798 | 332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 334 | } Py_INCREF(Py_None); |
8ab979d7 RD |
335 | _resultobj = Py_None; |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 340 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
341 | PyObject * _resultobj; |
342 | wxString * _result; | |
343 | wxControl * _arg0; | |
1d99702e | 344 | PyObject * _argo0 = 0; |
efc5f224 | 345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
346 | |
347 | self = self; | |
efc5f224 | 348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 349 | return NULL; |
1d99702e RD |
350 | if (_argo0) { |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
354 | return NULL; | |
355 | } | |
356 | } | |
8ab979d7 | 357 | { |
4268f798 | 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 359 | _result = new wxString (wxControl_GetLabel(_arg0)); |
cf694132 | 360 | |
4268f798 | 361 | wxPyEndAllowThreads(__tstate); |
493f1553 | 362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 363 | }{ |
c8bc7bb8 RD |
364 | #if wxUSE_UNICODE |
365 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
366 | #else | |
eec92d76 | 367 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 368 | #endif |
8ab979d7 RD |
369 | } |
370 | { | |
371 | delete _result; | |
372 | } | |
373 | return _resultobj; | |
374 | } | |
375 | ||
376 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 377 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
378 | PyObject * _resultobj; |
379 | wxControl * _arg0; | |
380 | wxString * _arg1; | |
1d99702e | 381 | PyObject * _argo0 = 0; |
8ab979d7 | 382 | PyObject * _obj1 = 0; |
efc5f224 | 383 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
384 | |
385 | self = self; | |
efc5f224 | 386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 387 | return NULL; |
1d99702e RD |
388 | if (_argo0) { |
389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
392 | return NULL; | |
393 | } | |
394 | } | |
395 | { | |
c8bc7bb8 RD |
396 | _arg1 = wxString_in_helper(_obj1); |
397 | if (_arg1 == NULL) | |
8ab979d7 | 398 | return NULL; |
8ab979d7 | 399 | } |
cf694132 | 400 | { |
4268f798 | 401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 402 | wxControl_SetLabel(_arg0,*_arg1); |
cf694132 | 403 | |
4268f798 | 404 | wxPyEndAllowThreads(__tstate); |
493f1553 | 405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 406 | } Py_INCREF(Py_None); |
8ab979d7 RD |
407 | _resultobj = Py_None; |
408 | { | |
409 | if (_obj1) | |
410 | delete _arg1; | |
411 | } | |
412 | return _resultobj; | |
413 | } | |
414 | ||
900d9886 RD |
415 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { |
416 | wxControlWithItems *src; | |
417 | wxControl *dest; | |
418 | src = (wxControlWithItems *) ptr; | |
419 | dest = (wxControl *) src; | |
420 | return (void *) dest; | |
421 | } | |
422 | ||
423 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
424 | wxControlWithItems *src; | |
425 | wxWindow *dest; | |
426 | src = (wxControlWithItems *) ptr; | |
427 | dest = (wxWindow *) src; | |
428 | return (void *) dest; | |
429 | } | |
430 | ||
431 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
432 | wxControlWithItems *src; | |
433 | wxEvtHandler *dest; | |
434 | src = (wxControlWithItems *) ptr; | |
435 | dest = (wxEvtHandler *) src; | |
436 | return (void *) dest; | |
437 | } | |
438 | ||
439 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
440 | wxControlWithItems *src; | |
441 | wxObject *dest; | |
442 | src = (wxControlWithItems *) ptr; | |
443 | dest = (wxObject *) src; | |
444 | return (void *) dest; | |
445 | } | |
446 | ||
447 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
448 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
449 | PyObject * _resultobj; | |
450 | wxControlWithItems * _arg0; | |
451 | int _arg1; | |
452 | PyObject * _argo0 = 0; | |
453 | char *_kwnames[] = { "self","n", NULL }; | |
454 | ||
455 | self = self; | |
456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
457 | return NULL; | |
458 | if (_argo0) { | |
459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
462 | return NULL; | |
463 | } | |
464 | } | |
465 | { | |
4268f798 | 466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 467 | wxControlWithItems_Delete(_arg0,_arg1); |
900d9886 | 468 | |
4268f798 | 469 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
470 | if (PyErr_Occurred()) return NULL; |
471 | } Py_INCREF(Py_None); | |
472 | _resultobj = Py_None; | |
473 | return _resultobj; | |
474 | } | |
475 | ||
476 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
477 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
478 | PyObject * _resultobj; | |
479 | int _result; | |
480 | wxControlWithItems * _arg0; | |
481 | PyObject * _argo0 = 0; | |
482 | char *_kwnames[] = { "self", NULL }; | |
483 | ||
484 | self = self; | |
485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
486 | return NULL; | |
487 | if (_argo0) { | |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
491 | return NULL; | |
492 | } | |
493 | } | |
494 | { | |
4268f798 | 495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 496 | _result = (int )wxControlWithItems_GetCount(_arg0); |
900d9886 | 497 | |
4268f798 | 498 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
499 | if (PyErr_Occurred()) return NULL; |
500 | } _resultobj = Py_BuildValue("i",_result); | |
501 | return _resultobj; | |
502 | } | |
503 | ||
504 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
505 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
506 | PyObject * _resultobj; | |
507 | wxString * _result; | |
508 | wxControlWithItems * _arg0; | |
509 | int _arg1; | |
510 | PyObject * _argo0 = 0; | |
511 | char *_kwnames[] = { "self","n", NULL }; | |
512 | ||
513 | self = self; | |
514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
515 | return NULL; | |
516 | if (_argo0) { | |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
4268f798 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 525 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
900d9886 | 526 | |
4268f798 | 527 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
528 | if (PyErr_Occurred()) return NULL; |
529 | }{ | |
c8bc7bb8 RD |
530 | #if wxUSE_UNICODE |
531 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
532 | #else | |
900d9886 | 533 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 534 | #endif |
900d9886 RD |
535 | } |
536 | { | |
537 | delete _result; | |
538 | } | |
539 | return _resultobj; | |
540 | } | |
541 | ||
542 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
543 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
544 | PyObject * _resultobj; | |
545 | wxControlWithItems * _arg0; | |
546 | int _arg1; | |
547 | wxString * _arg2; | |
548 | PyObject * _argo0 = 0; | |
549 | PyObject * _obj2 = 0; | |
550 | char *_kwnames[] = { "self","n","s", NULL }; | |
551 | ||
552 | self = self; | |
553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
554 | return NULL; | |
555 | if (_argo0) { | |
556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
559 | return NULL; | |
560 | } | |
561 | } | |
562 | { | |
c8bc7bb8 RD |
563 | _arg2 = wxString_in_helper(_obj2); |
564 | if (_arg2 == NULL) | |
900d9886 | 565 | return NULL; |
900d9886 RD |
566 | } |
567 | { | |
4268f798 | 568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 569 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
900d9886 | 570 | |
4268f798 | 571 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
572 | if (PyErr_Occurred()) return NULL; |
573 | } Py_INCREF(Py_None); | |
574 | _resultobj = Py_None; | |
575 | { | |
576 | if (_obj2) | |
577 | delete _arg2; | |
578 | } | |
579 | return _resultobj; | |
580 | } | |
581 | ||
582 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
583 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
584 | PyObject * _resultobj; | |
585 | int _result; | |
586 | wxControlWithItems * _arg0; | |
587 | wxString * _arg1; | |
588 | PyObject * _argo0 = 0; | |
589 | PyObject * _obj1 = 0; | |
590 | char *_kwnames[] = { "self","s", NULL }; | |
591 | ||
592 | self = self; | |
593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
594 | return NULL; | |
595 | if (_argo0) { | |
596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
c8bc7bb8 RD |
603 | _arg1 = wxString_in_helper(_obj1); |
604 | if (_arg1 == NULL) | |
900d9886 | 605 | return NULL; |
900d9886 RD |
606 | } |
607 | { | |
4268f798 | 608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 609 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
900d9886 | 610 | |
4268f798 | 611 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
612 | if (PyErr_Occurred()) return NULL; |
613 | } _resultobj = Py_BuildValue("i",_result); | |
614 | { | |
615 | if (_obj1) | |
616 | delete _arg1; | |
617 | } | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
622 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
623 | PyObject * _resultobj; | |
624 | wxControlWithItems * _arg0; | |
625 | int _arg1; | |
626 | PyObject * _argo0 = 0; | |
627 | char *_kwnames[] = { "self","n", NULL }; | |
628 | ||
629 | self = self; | |
630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
631 | return NULL; | |
632 | if (_argo0) { | |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
636 | return NULL; | |
637 | } | |
638 | } | |
639 | { | |
4268f798 | 640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 641 | wxControlWithItems_Select(_arg0,_arg1); |
900d9886 | 642 | |
4268f798 | 643 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
644 | if (PyErr_Occurred()) return NULL; |
645 | } Py_INCREF(Py_None); | |
646 | _resultobj = Py_None; | |
647 | return _resultobj; | |
648 | } | |
649 | ||
650 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
651 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
652 | PyObject * _resultobj; | |
653 | int _result; | |
654 | wxControlWithItems * _arg0; | |
655 | PyObject * _argo0 = 0; | |
656 | char *_kwnames[] = { "self", NULL }; | |
657 | ||
658 | self = self; | |
659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
660 | return NULL; | |
661 | if (_argo0) { | |
662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
665 | return NULL; | |
666 | } | |
667 | } | |
668 | { | |
4268f798 | 669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 670 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
900d9886 | 671 | |
4268f798 | 672 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
673 | if (PyErr_Occurred()) return NULL; |
674 | } _resultobj = Py_BuildValue("i",_result); | |
675 | return _resultobj; | |
676 | } | |
677 | ||
678 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
679 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
680 | PyObject * _resultobj; | |
681 | wxString * _result; | |
682 | wxControlWithItems * _arg0; | |
683 | PyObject * _argo0 = 0; | |
684 | char *_kwnames[] = { "self", NULL }; | |
685 | ||
686 | self = self; | |
687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
688 | return NULL; | |
689 | if (_argo0) { | |
690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
693 | return NULL; | |
694 | } | |
695 | } | |
696 | { | |
4268f798 | 697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 698 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
900d9886 | 699 | |
4268f798 | 700 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
701 | if (PyErr_Occurred()) return NULL; |
702 | }{ | |
c8bc7bb8 RD |
703 | #if wxUSE_UNICODE |
704 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
705 | #else | |
900d9886 | 706 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 707 | #endif |
900d9886 RD |
708 | } |
709 | { | |
710 | delete _result; | |
711 | } | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
716 | if (clientData) { | |
717 | wxPyClientData* data = new wxPyClientData(clientData); | |
718 | self->Append(item, data); | |
719 | } else | |
720 | self->Append(item); | |
721 | } | |
722 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
723 | PyObject * _resultobj; | |
724 | wxControlWithItems * _arg0; | |
725 | wxString * _arg1; | |
726 | PyObject * _arg2 = (PyObject *) NULL; | |
727 | PyObject * _argo0 = 0; | |
728 | PyObject * _obj1 = 0; | |
729 | PyObject * _obj2 = 0; | |
730 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
731 | ||
732 | self = self; | |
733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
734 | return NULL; | |
735 | if (_argo0) { | |
736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
739 | return NULL; | |
740 | } | |
741 | } | |
742 | { | |
c8bc7bb8 RD |
743 | _arg1 = wxString_in_helper(_obj1); |
744 | if (_arg1 == NULL) | |
900d9886 | 745 | return NULL; |
900d9886 RD |
746 | } |
747 | if (_obj2) | |
748 | { | |
749 | _arg2 = _obj2; | |
750 | } | |
751 | { | |
4268f798 | 752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 753 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
900d9886 | 754 | |
4268f798 | 755 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
756 | if (PyErr_Occurred()) return NULL; |
757 | } Py_INCREF(Py_None); | |
758 | _resultobj = Py_None; | |
759 | { | |
760 | if (_obj1) | |
761 | delete _arg1; | |
762 | } | |
763 | return _resultobj; | |
764 | } | |
765 | ||
766 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
767 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
768 | if (data) { | |
769 | Py_INCREF(data->m_obj); | |
770 | return data->m_obj; | |
771 | } else { | |
772 | Py_INCREF(Py_None); | |
773 | return Py_None; | |
774 | } | |
775 | } | |
776 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
777 | PyObject * _resultobj; | |
778 | PyObject * _result; | |
779 | wxControlWithItems * _arg0; | |
780 | int _arg1; | |
781 | PyObject * _argo0 = 0; | |
782 | char *_kwnames[] = { "self","n", NULL }; | |
783 | ||
784 | self = self; | |
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
786 | return NULL; | |
787 | if (_argo0) { | |
788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
791 | return NULL; | |
792 | } | |
793 | } | |
794 | { | |
4268f798 | 795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 796 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
900d9886 | 797 | |
4268f798 | 798 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
799 | if (PyErr_Occurred()) return NULL; |
800 | }{ | |
801 | _resultobj = _result; | |
802 | } | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
807 | wxPyClientData* data = new wxPyClientData(clientData); | |
808 | self->SetClientObject(n, data); | |
809 | } | |
810 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
811 | PyObject * _resultobj; | |
812 | wxControlWithItems * _arg0; | |
813 | int _arg1; | |
814 | PyObject * _arg2; | |
815 | PyObject * _argo0 = 0; | |
816 | PyObject * _obj2 = 0; | |
817 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
818 | ||
819 | self = self; | |
820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
821 | return NULL; | |
822 | if (_argo0) { | |
823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
826 | return NULL; | |
827 | } | |
828 | } | |
829 | { | |
830 | _arg2 = _obj2; | |
831 | } | |
832 | { | |
4268f798 | 833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 834 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
900d9886 | 835 | |
4268f798 | 836 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
837 | if (PyErr_Occurred()) return NULL; |
838 | } Py_INCREF(Py_None); | |
839 | _resultobj = Py_None; | |
840 | return _resultobj; | |
841 | } | |
842 | ||
ce914f73 RD |
843 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
844 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject * _resultobj; | |
846 | wxControlWithItems * _arg0; | |
847 | wxArrayString * _arg1; | |
848 | PyObject * _argo0 = 0; | |
849 | PyObject * _obj1 = 0; | |
850 | char *_kwnames[] = { "self","strings", NULL }; | |
851 | ||
852 | self = self; | |
853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
854 | return NULL; | |
855 | if (_argo0) { | |
856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
859 | return NULL; | |
860 | } | |
861 | } | |
862 | { | |
863 | if (! PySequence_Check(_obj1)) { | |
864 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
865 | return NULL; | |
866 | } | |
867 | _arg1 = new wxArrayString; | |
868 | int i, len=PySequence_Length(_obj1); | |
869 | for (i=0; i<len; i++) { | |
870 | PyObject* item = PySequence_GetItem(_obj1, i); | |
c8bc7bb8 RD |
871 | #if wxUSE_UNICODE |
872 | PyObject* str = PyObject_Unicode(item); | |
873 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
874 | #else | |
ce914f73 RD |
875 | PyObject* str = PyObject_Str(item); |
876 | _arg1->Add(PyString_AsString(str)); | |
c8bc7bb8 | 877 | #endif |
ce914f73 RD |
878 | Py_DECREF(item); |
879 | Py_DECREF(str); | |
880 | } | |
881 | } | |
882 | { | |
883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 884 | wxControlWithItems_AppendItems(_arg0,*_arg1); |
ce914f73 RD |
885 | |
886 | wxPyEndAllowThreads(__tstate); | |
887 | if (PyErr_Occurred()) return NULL; | |
888 | } Py_INCREF(Py_None); | |
889 | _resultobj = Py_None; | |
890 | { | |
891 | if (_obj1) | |
892 | delete _arg1; | |
893 | } | |
894 | return _resultobj; | |
895 | } | |
896 | ||
8ab979d7 RD |
897 | static void *SwigwxButtonTowxControl(void *ptr) { |
898 | wxButton *src; | |
899 | wxControl *dest; | |
900 | src = (wxButton *) ptr; | |
901 | dest = (wxControl *) src; | |
902 | return (void *) dest; | |
903 | } | |
904 | ||
905 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
906 | wxButton *src; | |
907 | wxWindow *dest; | |
908 | src = (wxButton *) ptr; | |
909 | dest = (wxWindow *) src; | |
910 | return (void *) dest; | |
911 | } | |
912 | ||
913 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
914 | wxButton *src; | |
915 | wxEvtHandler *dest; | |
916 | src = (wxButton *) ptr; | |
917 | dest = (wxEvtHandler *) src; | |
918 | return (void *) dest; | |
919 | } | |
920 | ||
9416aa89 RD |
921 | static void *SwigwxButtonTowxObject(void *ptr) { |
922 | wxButton *src; | |
923 | wxObject *dest; | |
924 | src = (wxButton *) ptr; | |
925 | dest = (wxObject *) src; | |
926 | return (void *) dest; | |
927 | } | |
928 | ||
8ab979d7 | 929 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 930 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
931 | PyObject * _resultobj; |
932 | wxButton * _result; | |
933 | wxWindow * _arg0; | |
934 | wxWindowID _arg1; | |
935 | wxString * _arg2; | |
e508a2b6 RD |
936 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
937 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 938 | long _arg5 = (long ) 0; |
e508a2b6 | 939 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
940 | char * _arg7 = (char *) "button"; |
941 | PyObject * _argo0 = 0; | |
8ab979d7 | 942 | PyObject * _obj2 = 0; |
2f90df85 RD |
943 | wxPoint temp; |
944 | PyObject * _obj3 = 0; | |
945 | wxSize temp0; | |
946 | PyObject * _obj4 = 0; | |
1d99702e | 947 | PyObject * _argo6 = 0; |
efc5f224 | 948 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
949 | char _ptemp[128]; |
950 | ||
951 | self = self; | |
2f90df85 | 952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 953 | return NULL; |
1d99702e RD |
954 | if (_argo0) { |
955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
958 | return NULL; | |
959 | } | |
960 | } | |
961 | { | |
c8bc7bb8 RD |
962 | _arg2 = wxString_in_helper(_obj2); |
963 | if (_arg2 == NULL) | |
8ab979d7 | 964 | return NULL; |
8ab979d7 | 965 | } |
2f90df85 RD |
966 | if (_obj3) |
967 | { | |
968 | _arg3 = &temp; | |
969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 970 | return NULL; |
2f90df85 RD |
971 | } |
972 | if (_obj4) | |
973 | { | |
974 | _arg4 = &temp0; | |
975 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 976 | return NULL; |
2f90df85 | 977 | } |
1d99702e RD |
978 | if (_argo6) { |
979 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
982 | return NULL; | |
983 | } | |
984 | } | |
cf694132 | 985 | { |
4268f798 | 986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 987 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
cf694132 | 988 | |
4268f798 | 989 | wxPyEndAllowThreads(__tstate); |
493f1553 | 990 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
991 | } if (_result) { |
992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
993 | _resultobj = Py_BuildValue("s",_ptemp); | |
994 | } else { | |
995 | Py_INCREF(Py_None); | |
996 | _resultobj = Py_None; | |
997 | } | |
8ab979d7 RD |
998 | { |
999 | if (_obj2) | |
1000 | delete _arg2; | |
1001 | } | |
1002 | return _resultobj; | |
1003 | } | |
1004 | ||
09f3d4e6 RD |
1005 | #define new_wxPreButton() (new wxButton()) |
1006 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1007 | PyObject * _resultobj; | |
1008 | wxButton * _result; | |
1009 | char *_kwnames[] = { NULL }; | |
1010 | char _ptemp[128]; | |
1011 | ||
1012 | self = self; | |
1013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1014 | return NULL; | |
1015 | { | |
4268f798 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | _result = (wxButton *)new_wxPreButton(); |
09f3d4e6 | 1018 | |
4268f798 | 1019 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1020 | if (PyErr_Occurred()) return NULL; |
1021 | } if (_result) { | |
1022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1023 | _resultobj = Py_BuildValue("s",_ptemp); | |
1024 | } else { | |
1025 | Py_INCREF(Py_None); | |
1026 | _resultobj = Py_None; | |
1027 | } | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1032 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | bool _result; | |
1035 | wxButton * _arg0; | |
1036 | wxWindow * _arg1; | |
1037 | wxWindowID _arg2; | |
1038 | wxString * _arg3; | |
1039 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1040 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1041 | long _arg6 = (long ) 0; | |
1042 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1043 | char * _arg8 = (char *) "button"; | |
1044 | PyObject * _argo0 = 0; | |
1045 | PyObject * _argo1 = 0; | |
1046 | PyObject * _obj3 = 0; | |
1047 | wxPoint temp; | |
1048 | PyObject * _obj4 = 0; | |
1049 | wxSize temp0; | |
1050 | PyObject * _obj5 = 0; | |
1051 | PyObject * _argo7 = 0; | |
1052 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1053 | ||
1054 | self = self; | |
1055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1056 | return NULL; | |
1057 | if (_argo0) { | |
1058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1061 | return NULL; | |
1062 | } | |
1063 | } | |
1064 | if (_argo1) { | |
1065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
1071 | { | |
c8bc7bb8 RD |
1072 | _arg3 = wxString_in_helper(_obj3); |
1073 | if (_arg3 == NULL) | |
09f3d4e6 | 1074 | return NULL; |
09f3d4e6 RD |
1075 | } |
1076 | if (_obj4) | |
1077 | { | |
1078 | _arg4 = &temp; | |
1079 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1080 | return NULL; | |
1081 | } | |
1082 | if (_obj5) | |
1083 | { | |
1084 | _arg5 = &temp0; | |
1085 | if (! wxSize_helper(_obj5, &_arg5)) | |
1086 | return NULL; | |
1087 | } | |
1088 | if (_argo7) { | |
1089 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1090 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1092 | return NULL; | |
1093 | } | |
1094 | } | |
1095 | { | |
4268f798 | 1096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1097 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 1098 | |
4268f798 | 1099 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1100 | if (PyErr_Occurred()) return NULL; |
1101 | } _resultobj = Py_BuildValue("i",_result); | |
1102 | { | |
1103 | if (_obj3) | |
1104 | delete _arg3; | |
1105 | } | |
1106 | return _resultobj; | |
1107 | } | |
1108 | ||
8ab979d7 | 1109 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
efc5f224 | 1110 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1111 | PyObject * _resultobj; |
1112 | wxButton * _arg0; | |
1d99702e | 1113 | PyObject * _argo0 = 0; |
efc5f224 | 1114 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1115 | |
1116 | self = self; | |
efc5f224 | 1117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
8ab979d7 | 1118 | return NULL; |
1d99702e RD |
1119 | if (_argo0) { |
1120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
8ab979d7 RD |
1122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1123 | return NULL; | |
1124 | } | |
1125 | } | |
cf694132 | 1126 | { |
4268f798 | 1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1128 | wxButton_SetDefault(_arg0); |
cf694132 | 1129 | |
4268f798 | 1130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1132 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1133 | _resultobj = Py_None; |
1134 | return _resultobj; | |
1135 | } | |
1136 | ||
9b3d3bc4 RD |
1137 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
1138 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1139 | PyObject * _resultobj; | |
1140 | wxButton * _arg0; | |
1141 | wxColour * _arg1; | |
1142 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1143 | wxColour temp; |
1144 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1145 | char *_kwnames[] = { "self","colour", NULL }; |
1146 | ||
1147 | self = self; | |
f6bcfd97 | 1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
1149 | return NULL; |
1150 | if (_argo0) { | |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
f6bcfd97 BP |
1157 | { |
1158 | _arg1 = &temp; | |
1159 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1160 | return NULL; |
f6bcfd97 | 1161 | } |
9b3d3bc4 | 1162 | { |
4268f798 | 1163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1164 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
9b3d3bc4 | 1165 | |
4268f798 | 1166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1167 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1168 | } Py_INCREF(Py_None); |
1169 | _resultobj = Py_None; | |
1170 | return _resultobj; | |
1171 | } | |
1172 | ||
1173 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1174 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject * _resultobj; | |
1176 | wxButton * _arg0; | |
1177 | wxColour * _arg1; | |
1178 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1179 | wxColour temp; |
1180 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1181 | char *_kwnames[] = { "self","colour", NULL }; |
1182 | ||
1183 | self = self; | |
f6bcfd97 | 1184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
1185 | return NULL; |
1186 | if (_argo0) { | |
1187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1190 | return NULL; | |
1191 | } | |
1192 | } | |
f6bcfd97 BP |
1193 | { |
1194 | _arg1 = &temp; | |
1195 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1196 | return NULL; |
f6bcfd97 | 1197 | } |
9b3d3bc4 | 1198 | { |
4268f798 | 1199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1200 | wxButton_SetForegroundColour(_arg0,*_arg1); |
9b3d3bc4 | 1201 | |
4268f798 | 1202 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1203 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1204 | } Py_INCREF(Py_None); |
1205 | _resultobj = Py_None; | |
1206 | return _resultobj; | |
1207 | } | |
1208 | ||
09f3d4e6 RD |
1209 | #define wxButton_SetImageLabel(_swigobj,_swigarg0) (_swigobj->SetImageLabel(_swigarg0)) |
1210 | static PyObject *_wrap_wxButton_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1211 | PyObject * _resultobj; | |
1212 | wxButton * _arg0; | |
1213 | wxBitmap * _arg1; | |
1214 | PyObject * _argo0 = 0; | |
1215 | PyObject * _argo1 = 0; | |
1216 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8ab979d7 | 1217 | |
09f3d4e6 RD |
1218 | self = self; |
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetImageLabel",_kwnames,&_argo0,&_argo1)) | |
1220 | return NULL; | |
1221 | if (_argo0) { | |
1222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageLabel. Expected _wxButton_p."); | |
1225 | return NULL; | |
1226 | } | |
1227 | } | |
1228 | if (_argo1) { | |
1229 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetImageLabel. Expected _wxBitmap_p."); | |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
4268f798 | 1236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1237 | wxButton_SetImageLabel(_arg0,*_arg1); |
8ab979d7 | 1238 | |
4268f798 | 1239 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1240 | if (PyErr_Occurred()) return NULL; |
1241 | } Py_INCREF(Py_None); | |
1242 | _resultobj = Py_None; | |
1243 | return _resultobj; | |
8ab979d7 RD |
1244 | } |
1245 | ||
09f3d4e6 RD |
1246 | #define wxButton_SetImageMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageMargins(_swigarg0,_swigarg1)) |
1247 | static PyObject *_wrap_wxButton_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | wxButton * _arg0; | |
1250 | wxCoord _arg1; | |
1251 | wxCoord _arg2; | |
1252 | PyObject * _argo0 = 0; | |
1253 | char *_kwnames[] = { "self","x","y", NULL }; | |
8ab979d7 | 1254 | |
09f3d4e6 RD |
1255 | self = self; |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxButton_SetImageMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageMargins. Expected _wxButton_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
4268f798 | 1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1267 | wxButton_SetImageMargins(_arg0,_arg1,_arg2); |
09f3d4e6 | 1268 | |
4268f798 | 1269 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1270 | if (PyErr_Occurred()) return NULL; |
1271 | } Py_INCREF(Py_None); | |
1272 | _resultobj = Py_None; | |
1273 | return _resultobj; | |
1274 | } | |
1275 | ||
1276 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject * _resultobj; | |
1278 | wxSize * _result; | |
1279 | char *_kwnames[] = { NULL }; | |
1280 | char _ptemp[128]; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1284 | return NULL; | |
1285 | { | |
4268f798 | 1286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1287 | _result = new wxSize (wxButton::GetDefaultSize()); |
09f3d4e6 | 1288 | |
4268f798 | 1289 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1290 | if (PyErr_Occurred()) return NULL; |
1291 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1292 | _resultobj = Py_BuildValue("s",_ptemp); | |
1293 | return _resultobj; | |
1294 | } | |
1295 | ||
1296 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1297 | wxBitmapButton *src; | |
1298 | wxButton *dest; | |
1299 | src = (wxBitmapButton *) ptr; | |
1300 | dest = (wxButton *) src; | |
1301 | return (void *) dest; | |
1302 | } | |
1303 | ||
1304 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1305 | wxBitmapButton *src; | |
1306 | wxControl *dest; | |
1307 | src = (wxBitmapButton *) ptr; | |
1308 | dest = (wxControl *) src; | |
1309 | return (void *) dest; | |
1310 | } | |
1311 | ||
1312 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1313 | wxBitmapButton *src; | |
1314 | wxWindow *dest; | |
1315 | src = (wxBitmapButton *) ptr; | |
1316 | dest = (wxWindow *) src; | |
1317 | return (void *) dest; | |
1318 | } | |
1319 | ||
1320 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1321 | wxBitmapButton *src; | |
1322 | wxEvtHandler *dest; | |
1323 | src = (wxBitmapButton *) ptr; | |
1324 | dest = (wxEvtHandler *) src; | |
1325 | return (void *) dest; | |
1326 | } | |
1327 | ||
1328 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1329 | wxBitmapButton *src; | |
1330 | wxObject *dest; | |
1331 | src = (wxBitmapButton *) ptr; | |
1332 | dest = (wxObject *) src; | |
9416aa89 RD |
1333 | return (void *) dest; |
1334 | } | |
1335 | ||
8ab979d7 | 1336 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1337 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1338 | PyObject * _resultobj; |
1339 | wxBitmapButton * _result; | |
1340 | wxWindow * _arg0; | |
1341 | wxWindowID _arg1; | |
1342 | wxBitmap * _arg2; | |
e508a2b6 RD |
1343 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1344 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1345 | long _arg5 = (long ) wxBU_AUTODRAW; |
e508a2b6 | 1346 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1347 | char * _arg7 = (char *) "button"; |
1348 | PyObject * _argo0 = 0; | |
1349 | PyObject * _argo2 = 0; | |
2f90df85 RD |
1350 | wxPoint temp; |
1351 | PyObject * _obj3 = 0; | |
1352 | wxSize temp0; | |
1353 | PyObject * _obj4 = 0; | |
1d99702e | 1354 | PyObject * _argo6 = 0; |
efc5f224 | 1355 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
1356 | char _ptemp[128]; |
1357 | ||
1358 | self = self; | |
2f90df85 | 1359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1360 | return NULL; |
1d99702e RD |
1361 | if (_argo0) { |
1362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1365 | return NULL; | |
1366 | } | |
1367 | } | |
1d99702e RD |
1368 | if (_argo2) { |
1369 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1370 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
1371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1372 | return NULL; | |
1373 | } | |
1374 | } | |
2f90df85 RD |
1375 | if (_obj3) |
1376 | { | |
1377 | _arg3 = &temp; | |
1378 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1379 | return NULL; |
2f90df85 RD |
1380 | } |
1381 | if (_obj4) | |
1382 | { | |
1383 | _arg4 = &temp0; | |
1384 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1385 | return NULL; |
2f90df85 | 1386 | } |
1d99702e RD |
1387 | if (_argo6) { |
1388 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
cf694132 | 1394 | { |
4268f798 | 1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1396 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
cf694132 | 1397 | |
4268f798 | 1398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1399 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1400 | } if (_result) { |
1401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1402 | _resultobj = Py_BuildValue("s",_ptemp); | |
1403 | } else { | |
1404 | Py_INCREF(Py_None); | |
1405 | _resultobj = Py_None; | |
1406 | } | |
8ab979d7 RD |
1407 | return _resultobj; |
1408 | } | |
1409 | ||
09f3d4e6 RD |
1410 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1411 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1412 | PyObject * _resultobj; | |
1413 | wxBitmapButton * _result; | |
1414 | char *_kwnames[] = { NULL }; | |
1415 | char _ptemp[128]; | |
1416 | ||
1417 | self = self; | |
1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1419 | return NULL; | |
1420 | { | |
4268f798 | 1421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1422 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
09f3d4e6 | 1423 | |
4268f798 | 1424 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1425 | if (PyErr_Occurred()) return NULL; |
1426 | } if (_result) { | |
1427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1428 | _resultobj = Py_BuildValue("s",_ptemp); | |
1429 | } else { | |
1430 | Py_INCREF(Py_None); | |
1431 | _resultobj = Py_None; | |
1432 | } | |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1437 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1438 | PyObject * _resultobj; | |
1439 | bool _result; | |
1440 | wxBitmapButton * _arg0; | |
1441 | wxWindow * _arg1; | |
1442 | wxWindowID _arg2; | |
1443 | wxBitmap * _arg3; | |
1444 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1445 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1446 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1447 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1448 | char * _arg8 = (char *) "button"; | |
1449 | PyObject * _argo0 = 0; | |
1450 | PyObject * _argo1 = 0; | |
1451 | PyObject * _argo3 = 0; | |
1452 | wxPoint temp; | |
1453 | PyObject * _obj4 = 0; | |
1454 | wxSize temp0; | |
1455 | PyObject * _obj5 = 0; | |
1456 | PyObject * _argo7 = 0; | |
1457 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1458 | ||
1459 | self = self; | |
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1461 | return NULL; | |
1462 | if (_argo0) { | |
1463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1466 | return NULL; | |
1467 | } | |
1468 | } | |
1469 | if (_argo1) { | |
1470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1473 | return NULL; | |
1474 | } | |
1475 | } | |
1476 | if (_argo3) { | |
1477 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | if (_obj4) | |
1484 | { | |
1485 | _arg4 = &temp; | |
1486 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1487 | return NULL; | |
1488 | } | |
1489 | if (_obj5) | |
1490 | { | |
1491 | _arg5 = &temp0; | |
1492 | if (! wxSize_helper(_obj5, &_arg5)) | |
1493 | return NULL; | |
1494 | } | |
1495 | if (_argo7) { | |
1496 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1497 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1499 | return NULL; | |
1500 | } | |
1501 | } | |
1502 | { | |
4268f798 | 1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1504 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 1505 | |
4268f798 | 1506 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1507 | if (PyErr_Occurred()) return NULL; |
1508 | } _resultobj = Py_BuildValue("i",_result); | |
1509 | return _resultobj; | |
1510 | } | |
1511 | ||
8ab979d7 | 1512 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
efc5f224 | 1513 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1514 | PyObject * _resultobj; |
1515 | wxBitmap * _result; | |
1516 | wxBitmapButton * _arg0; | |
1d99702e | 1517 | PyObject * _argo0 = 0; |
efc5f224 | 1518 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1519 | char _ptemp[128]; |
1520 | ||
1521 | self = self; | |
efc5f224 | 1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
8ab979d7 | 1523 | return NULL; |
1d99702e RD |
1524 | if (_argo0) { |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
cf694132 | 1531 | { |
4268f798 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1533 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
cf694132 | 1534 | |
4268f798 | 1535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1536 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1538 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1539 | return _resultobj; |
1540 | } | |
1541 | ||
1542 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
efc5f224 | 1543 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1544 | PyObject * _resultobj; |
1545 | wxBitmap * _result; | |
1546 | wxBitmapButton * _arg0; | |
1d99702e | 1547 | PyObject * _argo0 = 0; |
efc5f224 | 1548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1549 | char _ptemp[128]; |
1550 | ||
1551 | self = self; | |
efc5f224 | 1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
8ab979d7 | 1553 | return NULL; |
1d99702e RD |
1554 | if (_argo0) { |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1558 | return NULL; | |
1559 | } | |
1560 | } | |
cf694132 | 1561 | { |
4268f798 | 1562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1563 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
cf694132 | 1564 | |
4268f798 | 1565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1566 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1568 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1569 | return _resultobj; |
1570 | } | |
1571 | ||
1572 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
efc5f224 | 1573 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1574 | PyObject * _resultobj; |
1575 | wxBitmap * _result; | |
1576 | wxBitmapButton * _arg0; | |
1d99702e | 1577 | PyObject * _argo0 = 0; |
efc5f224 | 1578 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1579 | char _ptemp[128]; |
1580 | ||
1581 | self = self; | |
efc5f224 | 1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
8ab979d7 | 1583 | return NULL; |
1d99702e RD |
1584 | if (_argo0) { |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
cf694132 | 1591 | { |
4268f798 | 1592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1593 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
cf694132 | 1594 | |
4268f798 | 1595 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1596 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1597 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1598 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1599 | return _resultobj; |
1600 | } | |
1601 | ||
1602 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
efc5f224 | 1603 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1604 | PyObject * _resultobj; |
1605 | wxBitmap * _result; | |
1606 | wxBitmapButton * _arg0; | |
1d99702e | 1607 | PyObject * _argo0 = 0; |
efc5f224 | 1608 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1609 | char _ptemp[128]; |
1610 | ||
1611 | self = self; | |
efc5f224 | 1612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
8ab979d7 | 1613 | return NULL; |
1d99702e RD |
1614 | if (_argo0) { |
1615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1618 | return NULL; | |
1619 | } | |
1620 | } | |
cf694132 | 1621 | { |
4268f798 | 1622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1623 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
cf694132 | 1624 | |
4268f798 | 1625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1626 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1627 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1628 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1629 | return _resultobj; |
1630 | } | |
1631 | ||
1632 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
efc5f224 | 1633 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1634 | PyObject * _resultobj; |
1635 | wxBitmapButton * _arg0; | |
1636 | wxBitmap * _arg1; | |
1d99702e RD |
1637 | PyObject * _argo0 = 0; |
1638 | PyObject * _argo1 = 0; | |
efc5f224 | 1639 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1640 | |
1641 | self = self; | |
efc5f224 | 1642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1643 | return NULL; |
1d99702e RD |
1644 | if (_argo0) { |
1645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1648 | return NULL; | |
1649 | } | |
1650 | } | |
1d99702e RD |
1651 | if (_argo1) { |
1652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
cf694132 | 1658 | { |
4268f798 | 1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1660 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
cf694132 | 1661 | |
4268f798 | 1662 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1663 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1664 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1665 | _resultobj = Py_None; |
1666 | return _resultobj; | |
1667 | } | |
1668 | ||
1669 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
efc5f224 | 1670 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1671 | PyObject * _resultobj; |
1672 | wxBitmapButton * _arg0; | |
1673 | wxBitmap * _arg1; | |
1d99702e RD |
1674 | PyObject * _argo0 = 0; |
1675 | PyObject * _argo1 = 0; | |
efc5f224 | 1676 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1677 | |
1678 | self = self; | |
efc5f224 | 1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1680 | return NULL; |
1d99702e RD |
1681 | if (_argo0) { |
1682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1685 | return NULL; | |
1686 | } | |
1687 | } | |
1d99702e RD |
1688 | if (_argo1) { |
1689 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1690 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1692 | return NULL; | |
1693 | } | |
1694 | } | |
cf694132 | 1695 | { |
4268f798 | 1696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1697 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
cf694132 | 1698 | |
4268f798 | 1699 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1700 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1701 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1702 | _resultobj = Py_None; |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
1706 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
efc5f224 | 1707 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1708 | PyObject * _resultobj; |
1709 | wxBitmapButton * _arg0; | |
1710 | wxBitmap * _arg1; | |
1d99702e RD |
1711 | PyObject * _argo0 = 0; |
1712 | PyObject * _argo1 = 0; | |
efc5f224 | 1713 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1714 | |
1715 | self = self; | |
efc5f224 | 1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1717 | return NULL; |
1d99702e RD |
1718 | if (_argo0) { |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1d99702e RD |
1725 | if (_argo1) { |
1726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1729 | return NULL; | |
1730 | } | |
1731 | } | |
cf694132 | 1732 | { |
4268f798 | 1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1734 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
cf694132 | 1735 | |
4268f798 | 1736 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1738 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1739 | _resultobj = Py_None; |
1740 | return _resultobj; | |
1741 | } | |
1742 | ||
1743 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
efc5f224 | 1744 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1745 | PyObject * _resultobj; |
1746 | wxBitmapButton * _arg0; | |
1747 | wxBitmap * _arg1; | |
1d99702e RD |
1748 | PyObject * _argo0 = 0; |
1749 | PyObject * _argo1 = 0; | |
efc5f224 | 1750 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1751 | |
1752 | self = self; | |
efc5f224 | 1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1754 | return NULL; |
1d99702e RD |
1755 | if (_argo0) { |
1756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1759 | return NULL; | |
1760 | } | |
1761 | } | |
1d99702e RD |
1762 | if (_argo1) { |
1763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1766 | return NULL; | |
1767 | } | |
1768 | } | |
cf694132 | 1769 | { |
4268f798 | 1770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1771 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
cf694132 | 1772 | |
4268f798 | 1773 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1775 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1776 | _resultobj = Py_None; |
1777 | return _resultobj; | |
1778 | } | |
1779 | ||
f6bcfd97 BP |
1780 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1781 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject * _resultobj; | |
1783 | wxBitmapButton * _arg0; | |
1784 | int _arg1; | |
1785 | int _arg2; | |
1786 | PyObject * _argo0 = 0; | |
1787 | char *_kwnames[] = { "self","x","y", NULL }; | |
1788 | ||
1789 | self = self; | |
1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1791 | return NULL; | |
1792 | if (_argo0) { | |
1793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1796 | return NULL; | |
1797 | } | |
1798 | } | |
1799 | { | |
4268f798 | 1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1801 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
f6bcfd97 | 1802 | |
4268f798 | 1803 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1804 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1805 | } Py_INCREF(Py_None); |
1806 | _resultobj = Py_None; | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1811 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | int _result; | |
1814 | wxBitmapButton * _arg0; | |
1815 | PyObject * _argo0 = 0; | |
1816 | char *_kwnames[] = { "self", NULL }; | |
1817 | ||
1818 | self = self; | |
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1820 | return NULL; | |
1821 | if (_argo0) { | |
1822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1825 | return NULL; | |
1826 | } | |
1827 | } | |
1828 | { | |
4268f798 | 1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1830 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
f6bcfd97 | 1831 | |
4268f798 | 1832 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1833 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1834 | } _resultobj = Py_BuildValue("i",_result); |
1835 | return _resultobj; | |
1836 | } | |
1837 | ||
1838 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1839 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject * _resultobj; | |
1841 | int _result; | |
1842 | wxBitmapButton * _arg0; | |
1843 | PyObject * _argo0 = 0; | |
1844 | char *_kwnames[] = { "self", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
4268f798 | 1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1858 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
f6bcfd97 | 1859 | |
4268f798 | 1860 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1861 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1862 | } _resultobj = Py_BuildValue("i",_result); |
1863 | return _resultobj; | |
1864 | } | |
1865 | ||
8ab979d7 RD |
1866 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1867 | wxCheckBox *src; | |
1868 | wxControl *dest; | |
1869 | src = (wxCheckBox *) ptr; | |
1870 | dest = (wxControl *) src; | |
1871 | return (void *) dest; | |
1872 | } | |
1873 | ||
1874 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1875 | wxCheckBox *src; | |
1876 | wxWindow *dest; | |
1877 | src = (wxCheckBox *) ptr; | |
1878 | dest = (wxWindow *) src; | |
1879 | return (void *) dest; | |
1880 | } | |
1881 | ||
1882 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1883 | wxCheckBox *src; | |
1884 | wxEvtHandler *dest; | |
1885 | src = (wxCheckBox *) ptr; | |
1886 | dest = (wxEvtHandler *) src; | |
1887 | return (void *) dest; | |
1888 | } | |
1889 | ||
9416aa89 RD |
1890 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1891 | wxCheckBox *src; | |
1892 | wxObject *dest; | |
1893 | src = (wxCheckBox *) ptr; | |
1894 | dest = (wxObject *) src; | |
1895 | return (void *) dest; | |
1896 | } | |
1897 | ||
8ab979d7 | 1898 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1899 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1900 | PyObject * _resultobj; |
1901 | wxCheckBox * _result; | |
1902 | wxWindow * _arg0; | |
1903 | wxWindowID _arg1; | |
1904 | wxString * _arg2; | |
e508a2b6 RD |
1905 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1906 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1907 | long _arg5 = (long ) 0; |
e508a2b6 | 1908 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
1909 | char * _arg7 = (char *) "checkBox"; |
1910 | PyObject * _argo0 = 0; | |
8ab979d7 | 1911 | PyObject * _obj2 = 0; |
2f90df85 RD |
1912 | wxPoint temp; |
1913 | PyObject * _obj3 = 0; | |
1914 | wxSize temp0; | |
1915 | PyObject * _obj4 = 0; | |
1d99702e | 1916 | PyObject * _argo6 = 0; |
efc5f224 | 1917 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
8ab979d7 RD |
1918 | char _ptemp[128]; |
1919 | ||
1920 | self = self; | |
2f90df85 | 1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 1922 | return NULL; |
1d99702e RD |
1923 | if (_argo0) { |
1924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1927 | return NULL; | |
1928 | } | |
1929 | } | |
1930 | { | |
c8bc7bb8 RD |
1931 | _arg2 = wxString_in_helper(_obj2); |
1932 | if (_arg2 == NULL) | |
185d7c3e | 1933 | return NULL; |
8ab979d7 | 1934 | } |
2f90df85 RD |
1935 | if (_obj3) |
1936 | { | |
1937 | _arg3 = &temp; | |
1938 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1939 | return NULL; |
2f90df85 RD |
1940 | } |
1941 | if (_obj4) | |
1942 | { | |
1943 | _arg4 = &temp0; | |
1944 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1945 | return NULL; |
2f90df85 | 1946 | } |
1d99702e RD |
1947 | if (_argo6) { |
1948 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1949 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1951 | return NULL; | |
1952 | } | |
1953 | } | |
cf694132 | 1954 | { |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1956 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
cf694132 | 1957 | |
4268f798 | 1958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1960 | } if (_result) { |
1961 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1962 | _resultobj = Py_BuildValue("s",_ptemp); | |
1963 | } else { | |
1964 | Py_INCREF(Py_None); | |
1965 | _resultobj = Py_None; | |
1966 | } | |
8ab979d7 RD |
1967 | { |
1968 | if (_obj2) | |
1969 | delete _arg2; | |
1970 | } | |
1971 | return _resultobj; | |
1972 | } | |
1973 | ||
09f3d4e6 RD |
1974 | #define new_wxPreCheckBox() (new wxCheckBox()) |
1975 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1976 | PyObject * _resultobj; | |
1977 | wxCheckBox * _result; | |
1978 | char *_kwnames[] = { NULL }; | |
1979 | char _ptemp[128]; | |
1980 | ||
1981 | self = self; | |
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
1983 | return NULL; | |
1984 | { | |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
09f3d4e6 | 1987 | |
4268f798 | 1988 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1989 | if (PyErr_Occurred()) return NULL; |
1990 | } if (_result) { | |
1991 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1992 | _resultobj = Py_BuildValue("s",_ptemp); | |
1993 | } else { | |
1994 | Py_INCREF(Py_None); | |
1995 | _resultobj = Py_None; | |
1996 | } | |
1997 | return _resultobj; | |
1998 | } | |
1999 | ||
2000 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2001 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2002 | PyObject * _resultobj; | |
2003 | bool _result; | |
2004 | wxCheckBox * _arg0; | |
2005 | wxWindow * _arg1; | |
2006 | wxWindowID _arg2; | |
2007 | wxString * _arg3; | |
2008 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2009 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2010 | long _arg6 = (long ) 0; | |
2011 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2012 | char * _arg8 = (char *) "checkBox"; | |
2013 | PyObject * _argo0 = 0; | |
2014 | PyObject * _argo1 = 0; | |
2015 | PyObject * _obj3 = 0; | |
2016 | wxPoint temp; | |
2017 | PyObject * _obj4 = 0; | |
2018 | wxSize temp0; | |
2019 | PyObject * _obj5 = 0; | |
2020 | PyObject * _argo7 = 0; | |
2021 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2022 | ||
2023 | self = self; | |
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2025 | return NULL; | |
2026 | if (_argo0) { | |
2027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2030 | return NULL; | |
2031 | } | |
2032 | } | |
2033 | if (_argo1) { | |
2034 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2035 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2037 | return NULL; | |
2038 | } | |
2039 | } | |
2040 | { | |
c8bc7bb8 RD |
2041 | _arg3 = wxString_in_helper(_obj3); |
2042 | if (_arg3 == NULL) | |
09f3d4e6 | 2043 | return NULL; |
09f3d4e6 RD |
2044 | } |
2045 | if (_obj4) | |
2046 | { | |
2047 | _arg4 = &temp; | |
2048 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2049 | return NULL; | |
2050 | } | |
2051 | if (_obj5) | |
2052 | { | |
2053 | _arg5 = &temp0; | |
2054 | if (! wxSize_helper(_obj5, &_arg5)) | |
2055 | return NULL; | |
2056 | } | |
2057 | if (_argo7) { | |
2058 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2059 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2061 | return NULL; | |
2062 | } | |
2063 | } | |
2064 | { | |
4268f798 | 2065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2066 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 2067 | |
4268f798 | 2068 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2069 | if (PyErr_Occurred()) return NULL; |
2070 | } _resultobj = Py_BuildValue("i",_result); | |
2071 | { | |
2072 | if (_obj3) | |
2073 | delete _arg3; | |
2074 | } | |
2075 | return _resultobj; | |
2076 | } | |
2077 | ||
8ab979d7 | 2078 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
efc5f224 | 2079 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2080 | PyObject * _resultobj; |
2081 | bool _result; | |
2082 | wxCheckBox * _arg0; | |
1d99702e | 2083 | PyObject * _argo0 = 0; |
efc5f224 | 2084 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2085 | |
2086 | self = self; | |
efc5f224 | 2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2088 | return NULL; |
1d99702e RD |
2089 | if (_argo0) { |
2090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2093 | return NULL; | |
2094 | } | |
2095 | } | |
cf694132 | 2096 | { |
4268f798 | 2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2098 | _result = (bool )wxCheckBox_GetValue(_arg0); |
cf694132 | 2099 | |
4268f798 | 2100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2101 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2102 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2103 | return _resultobj; |
2104 | } | |
2105 | ||
2106 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2107 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2108 | PyObject * _resultobj; |
2109 | wxCheckBox * _arg0; | |
2110 | bool _arg1; | |
1d99702e | 2111 | PyObject * _argo0 = 0; |
8ab979d7 | 2112 | int tempbool1; |
efc5f224 | 2113 | char *_kwnames[] = { "self","state", NULL }; |
8ab979d7 RD |
2114 | |
2115 | self = self; | |
efc5f224 | 2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2117 | return NULL; |
1d99702e RD |
2118 | if (_argo0) { |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
2125 | _arg1 = (bool ) tempbool1; | |
cf694132 | 2126 | { |
4268f798 | 2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2128 | wxCheckBox_SetValue(_arg0,_arg1); |
cf694132 | 2129 | |
4268f798 | 2130 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2132 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2133 | _resultobj = Py_None; |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
900d9886 RD |
2137 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2138 | wxChoice *src; | |
2139 | wxControlWithItems *dest; | |
2140 | src = (wxChoice *) ptr; | |
2141 | dest = (wxControlWithItems *) src; | |
2142 | return (void *) dest; | |
2143 | } | |
2144 | ||
8ab979d7 RD |
2145 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2146 | wxChoice *src; | |
2147 | wxControl *dest; | |
2148 | src = (wxChoice *) ptr; | |
2149 | dest = (wxControl *) src; | |
2150 | return (void *) dest; | |
2151 | } | |
2152 | ||
2153 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2154 | wxChoice *src; | |
2155 | wxWindow *dest; | |
2156 | src = (wxChoice *) ptr; | |
2157 | dest = (wxWindow *) src; | |
2158 | return (void *) dest; | |
2159 | } | |
2160 | ||
2161 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2162 | wxChoice *src; | |
2163 | wxEvtHandler *dest; | |
2164 | src = (wxChoice *) ptr; | |
2165 | dest = (wxEvtHandler *) src; | |
2166 | return (void *) dest; | |
2167 | } | |
2168 | ||
9416aa89 RD |
2169 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2170 | wxChoice *src; | |
2171 | wxObject *dest; | |
2172 | src = (wxChoice *) ptr; | |
2173 | dest = (wxObject *) src; | |
2174 | return (void *) dest; | |
2175 | } | |
2176 | ||
8ab979d7 | 2177 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 2178 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2179 | PyObject * _resultobj; |
2180 | wxChoice * _result; | |
2181 | wxWindow * _arg0; | |
2182 | wxWindowID _arg1; | |
e508a2b6 RD |
2183 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2184 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2185 | int _arg4 = (int ) 0; |
2186 | wxString * _arg5 = (wxString *) NULL; | |
2187 | long _arg6 = (long ) 0; | |
e508a2b6 | 2188 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2189 | char * _arg8 = (char *) "choice"; |
2190 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2191 | wxPoint temp; |
2192 | PyObject * _obj2 = 0; | |
2193 | wxSize temp0; | |
2194 | PyObject * _obj3 = 0; | |
8ab979d7 | 2195 | PyObject * _obj5 = 0; |
1d99702e | 2196 | PyObject * _argo7 = 0; |
eec92d76 | 2197 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2198 | char _ptemp[128]; |
2199 | ||
2200 | self = self; | |
2f90df85 | 2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
8ab979d7 | 2202 | return NULL; |
1d99702e RD |
2203 | if (_argo0) { |
2204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2207 | return NULL; | |
2208 | } | |
2209 | } | |
2f90df85 RD |
2210 | if (_obj2) |
2211 | { | |
2212 | _arg2 = &temp; | |
2213 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2214 | return NULL; |
2f90df85 RD |
2215 | } |
2216 | if (_obj3) | |
2217 | { | |
2218 | _arg3 = &temp0; | |
2219 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2220 | return NULL; |
2f90df85 | 2221 | } |
8ab979d7 RD |
2222 | if (_obj5) |
2223 | { | |
2224 | _arg5 = wxString_LIST_helper(_obj5); | |
2225 | if (_arg5 == NULL) { | |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
1d99702e RD |
2229 | if (_argo7) { |
2230 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2231 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2233 | return NULL; | |
2234 | } | |
2235 | } | |
2236 | { | |
cf694132 RD |
2237 | if (_obj5) { |
2238 | _arg4 = PyList_Size(_obj5); | |
2239 | } | |
2240 | else { | |
2241 | _arg4 = 0; | |
2242 | } | |
8ab979d7 | 2243 | } |
cf694132 | 2244 | { |
4268f798 | 2245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2246 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 2247 | |
4268f798 | 2248 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2249 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2250 | } if (_result) { |
2251 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2252 | _resultobj = Py_BuildValue("s",_ptemp); | |
2253 | } else { | |
2254 | Py_INCREF(Py_None); | |
2255 | _resultobj = Py_None; | |
2256 | } | |
8ab979d7 RD |
2257 | { |
2258 | delete [] _arg5; | |
2259 | } | |
2260 | return _resultobj; | |
2261 | } | |
2262 | ||
09f3d4e6 RD |
2263 | #define new_wxPreChoice() (new wxChoice()) |
2264 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2265 | PyObject * _resultobj; |
09f3d4e6 RD |
2266 | wxChoice * _result; |
2267 | char *_kwnames[] = { NULL }; | |
2268 | char _ptemp[128]; | |
8ab979d7 RD |
2269 | |
2270 | self = self; | |
09f3d4e6 RD |
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2272 | return NULL; | |
2273 | { | |
4268f798 | 2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2275 | _result = (wxChoice *)new_wxPreChoice(); |
09f3d4e6 | 2276 | |
4268f798 | 2277 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2278 | if (PyErr_Occurred()) return NULL; |
2279 | } if (_result) { | |
2280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2281 | _resultobj = Py_BuildValue("s",_ptemp); | |
2282 | } else { | |
2283 | Py_INCREF(Py_None); | |
2284 | _resultobj = Py_None; | |
2285 | } | |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
2289 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2290 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject * _resultobj; | |
2292 | bool _result; | |
2293 | wxChoice * _arg0; | |
2294 | wxWindow * _arg1; | |
2295 | wxWindowID _arg2; | |
2296 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2297 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2298 | int _arg5 = (int ) 0; | |
2299 | wxString * _arg6 = (wxString *) NULL; | |
2300 | long _arg7 = (long ) 0; | |
2301 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2302 | char * _arg9 = (char *) "choice"; | |
2303 | PyObject * _argo0 = 0; | |
2304 | PyObject * _argo1 = 0; | |
2305 | wxPoint temp; | |
2306 | PyObject * _obj3 = 0; | |
2307 | wxSize temp0; | |
2308 | PyObject * _obj4 = 0; | |
2309 | PyObject * _obj6 = 0; | |
2310 | PyObject * _argo8 = 0; | |
2311 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2312 | ||
2313 | self = self; | |
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2315 | return NULL; | |
2316 | if (_argo0) { | |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2320 | return NULL; | |
2321 | } | |
2322 | } | |
2323 | if (_argo1) { | |
2324 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2325 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2327 | return NULL; | |
2328 | } | |
2329 | } | |
2330 | if (_obj3) | |
2331 | { | |
2332 | _arg3 = &temp; | |
2333 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2334 | return NULL; | |
2335 | } | |
2336 | if (_obj4) | |
2337 | { | |
2338 | _arg4 = &temp0; | |
2339 | if (! wxSize_helper(_obj4, &_arg4)) | |
2340 | return NULL; | |
2341 | } | |
2342 | if (_obj6) | |
2343 | { | |
2344 | _arg6 = wxString_LIST_helper(_obj6); | |
2345 | if (_arg6 == NULL) { | |
2346 | return NULL; | |
2347 | } | |
2348 | } | |
2349 | if (_argo8) { | |
2350 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2353 | return NULL; | |
2354 | } | |
2355 | } | |
900d9886 RD |
2356 | { |
2357 | if (_obj6) { | |
2358 | _arg5 = PyList_Size(_obj6); | |
2359 | } | |
2360 | else { | |
2361 | _arg5 = 0; | |
8ab979d7 | 2362 | } |
900d9886 | 2363 | } |
8ab979d7 | 2364 | { |
4268f798 | 2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2366 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 2367 | |
4268f798 | 2368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2369 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2370 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 2371 | { |
900d9886 | 2372 | delete [] _arg6; |
8ab979d7 RD |
2373 | } |
2374 | return _resultobj; | |
2375 | } | |
2376 | ||
900d9886 RD |
2377 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2378 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2379 | PyObject * _resultobj; |
8ab979d7 | 2380 | wxChoice * _arg0; |
1d99702e | 2381 | PyObject * _argo0 = 0; |
efc5f224 | 2382 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2383 | |
2384 | self = self; | |
900d9886 | 2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
8ab979d7 | 2386 | return NULL; |
1d99702e RD |
2387 | if (_argo0) { |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
8ab979d7 RD |
2391 | return NULL; |
2392 | } | |
2393 | } | |
8ab979d7 | 2394 | { |
4268f798 | 2395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2396 | wxChoice_Clear(_arg0); |
cf694132 | 2397 | |
4268f798 | 2398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2399 | if (PyErr_Occurred()) return NULL; |
900d9886 RD |
2400 | } Py_INCREF(Py_None); |
2401 | _resultobj = Py_None; | |
8ab979d7 RD |
2402 | return _resultobj; |
2403 | } | |
2404 | ||
900d9886 RD |
2405 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2406 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2407 | PyObject * _resultobj; |
2408 | int _result; | |
2409 | wxChoice * _arg0; | |
1d99702e | 2410 | PyObject * _argo0 = 0; |
efc5f224 | 2411 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2412 | |
2413 | self = self; | |
900d9886 | 2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
8ab979d7 | 2415 | return NULL; |
1d99702e RD |
2416 | if (_argo0) { |
2417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
8ab979d7 RD |
2420 | return NULL; |
2421 | } | |
2422 | } | |
cf694132 | 2423 | { |
4268f798 | 2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2425 | _result = (int )wxChoice_GetColumns(_arg0); |
cf694132 | 2426 | |
4268f798 | 2427 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2429 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2430 | return _resultobj; |
2431 | } | |
2432 | ||
2433 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
efc5f224 | 2434 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2435 | PyObject * _resultobj; |
2436 | wxChoice * _arg0; | |
1d99702e RD |
2437 | int _arg1 = (int ) 1; |
2438 | PyObject * _argo0 = 0; | |
efc5f224 | 2439 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2440 | |
2441 | self = self; | |
efc5f224 | 2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2443 | return NULL; |
1d99702e RD |
2444 | if (_argo0) { |
2445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2448 | return NULL; | |
2449 | } | |
2450 | } | |
cf694132 | 2451 | { |
4268f798 | 2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2453 | wxChoice_SetColumns(_arg0,_arg1); |
cf694132 | 2454 | |
4268f798 | 2455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2458 | _resultobj = Py_None; |
2459 | return _resultobj; | |
2460 | } | |
2461 | ||
2462 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 2463 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2464 | PyObject * _resultobj; |
2465 | wxChoice * _arg0; | |
2466 | int _arg1; | |
1d99702e | 2467 | PyObject * _argo0 = 0; |
efc5f224 | 2468 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2469 | |
2470 | self = self; | |
efc5f224 | 2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2472 | return NULL; |
1d99702e RD |
2473 | if (_argo0) { |
2474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2477 | return NULL; | |
2478 | } | |
2479 | } | |
cf694132 | 2480 | { |
4268f798 | 2481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2482 | wxChoice_SetSelection(_arg0,_arg1); |
cf694132 | 2483 | |
4268f798 | 2484 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2486 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2487 | _resultobj = Py_None; |
2488 | return _resultobj; | |
2489 | } | |
2490 | ||
2491 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 2492 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2493 | PyObject * _resultobj; |
2494 | wxChoice * _arg0; | |
2495 | wxString * _arg1; | |
1d99702e | 2496 | PyObject * _argo0 = 0; |
8ab979d7 | 2497 | PyObject * _obj1 = 0; |
efc5f224 | 2498 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2499 | |
2500 | self = self; | |
efc5f224 | 2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2502 | return NULL; |
1d99702e RD |
2503 | if (_argo0) { |
2504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2507 | return NULL; | |
2508 | } | |
2509 | } | |
2510 | { | |
c8bc7bb8 RD |
2511 | _arg1 = wxString_in_helper(_obj1); |
2512 | if (_arg1 == NULL) | |
8ab979d7 | 2513 | return NULL; |
8ab979d7 | 2514 | } |
cf694132 | 2515 | { |
4268f798 | 2516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2517 | wxChoice_SetStringSelection(_arg0,*_arg1); |
cf694132 | 2518 | |
4268f798 | 2519 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2520 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2521 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2522 | _resultobj = Py_None; |
2523 | { | |
2524 | if (_obj1) | |
2525 | delete _arg1; | |
2526 | } | |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
0adbc166 RD |
2530 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2531 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject * _resultobj; | |
2533 | wxChoice * _arg0; | |
2534 | int _arg1; | |
2535 | wxString * _arg2; | |
2536 | PyObject * _argo0 = 0; | |
2537 | PyObject * _obj2 = 0; | |
2538 | char *_kwnames[] = { "self","n","s", NULL }; | |
2539 | ||
2540 | self = self; | |
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2542 | return NULL; | |
2543 | if (_argo0) { | |
2544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | { | |
c8bc7bb8 RD |
2551 | _arg2 = wxString_in_helper(_obj2); |
2552 | if (_arg2 == NULL) | |
0adbc166 | 2553 | return NULL; |
0adbc166 RD |
2554 | } |
2555 | { | |
4268f798 | 2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2557 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
0adbc166 | 2558 | |
4268f798 | 2559 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
2560 | if (PyErr_Occurred()) return NULL; |
2561 | } Py_INCREF(Py_None); | |
2562 | _resultobj = Py_None; | |
2563 | { | |
2564 | if (_obj2) | |
2565 | delete _arg2; | |
2566 | } | |
2567 | return _resultobj; | |
2568 | } | |
2569 | ||
bb0054cd RD |
2570 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
2571 | wxComboBox *src; | |
2572 | wxChoice *dest; | |
2573 | src = (wxComboBox *) ptr; | |
2574 | dest = (wxChoice *) src; | |
2575 | return (void *) dest; | |
2576 | } | |
2577 | ||
900d9886 RD |
2578 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { |
2579 | wxComboBox *src; | |
2580 | wxControlWithItems *dest; | |
2581 | src = (wxComboBox *) ptr; | |
2582 | dest = (wxControlWithItems *) src; | |
2583 | return (void *) dest; | |
2584 | } | |
2585 | ||
8ab979d7 RD |
2586 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2587 | wxComboBox *src; | |
2588 | wxControl *dest; | |
2589 | src = (wxComboBox *) ptr; | |
2590 | dest = (wxControl *) src; | |
2591 | return (void *) dest; | |
2592 | } | |
2593 | ||
2594 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2595 | wxComboBox *src; | |
2596 | wxWindow *dest; | |
2597 | src = (wxComboBox *) ptr; | |
2598 | dest = (wxWindow *) src; | |
2599 | return (void *) dest; | |
2600 | } | |
2601 | ||
2602 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2603 | wxComboBox *src; | |
2604 | wxEvtHandler *dest; | |
2605 | src = (wxComboBox *) ptr; | |
2606 | dest = (wxEvtHandler *) src; | |
2607 | return (void *) dest; | |
2608 | } | |
2609 | ||
9416aa89 RD |
2610 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2611 | wxComboBox *src; | |
2612 | wxObject *dest; | |
2613 | src = (wxComboBox *) ptr; | |
2614 | dest = (wxObject *) src; | |
2615 | return (void *) dest; | |
2616 | } | |
2617 | ||
8ab979d7 | 2618 | #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 | 2619 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2620 | PyObject * _resultobj; |
2621 | wxComboBox * _result; | |
2622 | wxWindow * _arg0; | |
2623 | wxWindowID _arg1; | |
1d99702e | 2624 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
2625 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2626 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2627 | int _arg5 = (int ) 0; |
2628 | wxString * _arg6 = (wxString *) NULL; | |
2629 | long _arg7 = (long ) 0; | |
e508a2b6 | 2630 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2631 | char * _arg9 = (char *) "comboBox"; |
2632 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2633 | wxPoint temp; |
2634 | PyObject * _obj3 = 0; | |
2635 | wxSize temp0; | |
2636 | PyObject * _obj4 = 0; | |
8ab979d7 | 2637 | PyObject * _obj6 = 0; |
1d99702e | 2638 | PyObject * _argo8 = 0; |
eec92d76 | 2639 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2640 | char _ptemp[128]; |
2641 | ||
2642 | self = self; | |
2f90df85 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 2644 | return NULL; |
1d99702e RD |
2645 | if (_argo0) { |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2649 | return NULL; | |
2650 | } | |
2651 | } | |
2f90df85 RD |
2652 | if (_obj3) |
2653 | { | |
2654 | _arg3 = &temp; | |
2655 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2656 | return NULL; |
2f90df85 RD |
2657 | } |
2658 | if (_obj4) | |
2659 | { | |
2660 | _arg4 = &temp0; | |
2661 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2662 | return NULL; |
2f90df85 | 2663 | } |
8ab979d7 RD |
2664 | if (_obj6) |
2665 | { | |
2666 | _arg6 = wxString_LIST_helper(_obj6); | |
2667 | if (_arg6 == NULL) { | |
2668 | return NULL; | |
2669 | } | |
2670 | } | |
1d99702e RD |
2671 | if (_argo8) { |
2672 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
2678 | { | |
cf694132 RD |
2679 | if (_obj6) { |
2680 | _arg5 = PyList_Size(_obj6); | |
2681 | } | |
2682 | else { | |
2683 | _arg5 = 0; | |
2684 | } | |
8ab979d7 | 2685 | } |
cf694132 | 2686 | { |
4268f798 | 2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2688 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 2689 | |
4268f798 | 2690 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2691 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2692 | } if (_result) { |
2693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2694 | _resultobj = Py_BuildValue("s",_ptemp); | |
2695 | } else { | |
2696 | Py_INCREF(Py_None); | |
2697 | _resultobj = Py_None; | |
2698 | } | |
8ab979d7 RD |
2699 | { |
2700 | delete [] _arg6; | |
2701 | } | |
2702 | return _resultobj; | |
2703 | } | |
2704 | ||
09f3d4e6 RD |
2705 | #define new_wxPreComboBox() (new wxComboBox()) |
2706 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2707 | PyObject * _resultobj; | |
2708 | wxComboBox * _result; | |
2709 | char *_kwnames[] = { NULL }; | |
2710 | char _ptemp[128]; | |
2711 | ||
2712 | self = self; | |
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2714 | return NULL; | |
2715 | { | |
4268f798 | 2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2717 | _result = (wxComboBox *)new_wxPreComboBox(); |
09f3d4e6 | 2718 | |
4268f798 | 2719 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2720 | if (PyErr_Occurred()) return NULL; |
2721 | } if (_result) { | |
2722 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2723 | _resultobj = Py_BuildValue("s",_ptemp); | |
2724 | } else { | |
2725 | Py_INCREF(Py_None); | |
2726 | _resultobj = Py_None; | |
2727 | } | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
2731 | #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)) | |
2732 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject * _resultobj; | |
2734 | bool _result; | |
2735 | wxComboBox * _arg0; | |
2736 | wxWindow * _arg1; | |
2737 | wxWindowID _arg2; | |
2738 | char * _arg3 = (char *) ""; | |
2739 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2740 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2741 | int _arg6 = (int ) 0; | |
2742 | wxString * _arg7 = (wxString *) NULL; | |
2743 | long _arg8 = (long ) 0; | |
2744 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2745 | char * _arg10 = (char *) "comboBox"; | |
2746 | PyObject * _argo0 = 0; | |
2747 | PyObject * _argo1 = 0; | |
2748 | wxPoint temp; | |
2749 | PyObject * _obj4 = 0; | |
2750 | wxSize temp0; | |
2751 | PyObject * _obj5 = 0; | |
2752 | PyObject * _obj7 = 0; | |
2753 | PyObject * _argo9 = 0; | |
2754 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2755 | ||
2756 | self = self; | |
2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2758 | return NULL; | |
2759 | if (_argo0) { | |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | if (_argo1) { | |
2767 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
2773 | if (_obj4) | |
2774 | { | |
2775 | _arg4 = &temp; | |
2776 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2777 | return NULL; | |
2778 | } | |
2779 | if (_obj5) | |
2780 | { | |
2781 | _arg5 = &temp0; | |
2782 | if (! wxSize_helper(_obj5, &_arg5)) | |
2783 | return NULL; | |
2784 | } | |
2785 | if (_obj7) | |
2786 | { | |
2787 | _arg7 = wxString_LIST_helper(_obj7); | |
2788 | if (_arg7 == NULL) { | |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | if (_argo9) { | |
2793 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2794 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2796 | return NULL; | |
2797 | } | |
2798 | } | |
2799 | { | |
2800 | if (_obj7) { | |
2801 | _arg6 = PyList_Size(_obj7); | |
2802 | } | |
2803 | else { | |
2804 | _arg6 = 0; | |
2805 | } | |
2806 | } | |
2807 | { | |
4268f798 | 2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2809 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
09f3d4e6 | 2810 | |
4268f798 | 2811 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2812 | if (PyErr_Occurred()) return NULL; |
2813 | } _resultobj = Py_BuildValue("i",_result); | |
2814 | { | |
2815 | delete [] _arg7; | |
2816 | } | |
2817 | return _resultobj; | |
2818 | } | |
2819 | ||
8ab979d7 | 2820 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
efc5f224 | 2821 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2822 | PyObject * _resultobj; |
2823 | wxComboBox * _arg0; | |
1d99702e | 2824 | PyObject * _argo0 = 0; |
efc5f224 | 2825 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2826 | |
2827 | self = self; | |
efc5f224 | 2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
8ab979d7 | 2829 | return NULL; |
1d99702e RD |
2830 | if (_argo0) { |
2831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
cf694132 | 2837 | { |
4268f798 | 2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2839 | wxComboBox_Copy(_arg0); |
cf694132 | 2840 | |
4268f798 | 2841 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2842 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2843 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2844 | _resultobj = Py_None; |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
2848 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 2849 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2850 | PyObject * _resultobj; |
2851 | wxComboBox * _arg0; | |
1d99702e | 2852 | PyObject * _argo0 = 0; |
efc5f224 | 2853 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2854 | |
2855 | self = self; | |
efc5f224 | 2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
8ab979d7 | 2857 | return NULL; |
1d99702e RD |
2858 | if (_argo0) { |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
cf694132 | 2865 | { |
4268f798 | 2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2867 | wxComboBox_Cut(_arg0); |
cf694132 | 2868 | |
4268f798 | 2869 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2870 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2871 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2872 | _resultobj = Py_None; |
2873 | return _resultobj; | |
2874 | } | |
2875 | ||
8ab979d7 | 2876 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
efc5f224 | 2877 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2878 | PyObject * _resultobj; |
2879 | long _result; | |
2880 | wxComboBox * _arg0; | |
1d99702e | 2881 | PyObject * _argo0 = 0; |
900d9886 | 2882 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2883 | |
2884 | self = self; | |
900d9886 | 2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 2886 | return NULL; |
1d99702e RD |
2887 | if (_argo0) { |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
8ab979d7 RD |
2891 | return NULL; |
2892 | } | |
2893 | } | |
8ab979d7 | 2894 | { |
4268f798 | 2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2896 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
cf694132 | 2897 | |
4268f798 | 2898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2899 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2900 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2901 | return _resultobj; |
2902 | } | |
2903 | ||
900d9886 RD |
2904 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
2905 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2906 | PyObject * _resultobj; |
900d9886 | 2907 | long _result; |
8ab979d7 | 2908 | wxComboBox * _arg0; |
1d99702e | 2909 | PyObject * _argo0 = 0; |
efc5f224 | 2910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2911 | |
2912 | self = self; | |
900d9886 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 2914 | return NULL; |
1d99702e RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
8ab979d7 RD |
2919 | return NULL; |
2920 | } | |
2921 | } | |
8ab979d7 | 2922 | { |
4268f798 | 2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2924 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
cf694132 | 2925 | |
4268f798 | 2926 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2927 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2928 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2929 | return _resultobj; |
2930 | } | |
2931 | ||
2932 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2933 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2934 | PyObject * _resultobj; |
2935 | wxString * _result; | |
2936 | wxComboBox * _arg0; | |
1d99702e | 2937 | PyObject * _argo0 = 0; |
efc5f224 | 2938 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2939 | |
2940 | self = self; | |
efc5f224 | 2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2942 | return NULL; |
1d99702e RD |
2943 | if (_argo0) { |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2947 | return NULL; | |
2948 | } | |
2949 | } | |
8ab979d7 | 2950 | { |
4268f798 | 2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2952 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
cf694132 | 2953 | |
4268f798 | 2954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2955 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2956 | }{ |
c8bc7bb8 RD |
2957 | #if wxUSE_UNICODE |
2958 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2959 | #else | |
eec92d76 | 2960 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2961 | #endif |
8ab979d7 RD |
2962 | } |
2963 | { | |
2964 | delete _result; | |
2965 | } | |
2966 | return _resultobj; | |
2967 | } | |
2968 | ||
8ab979d7 | 2969 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
efc5f224 | 2970 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2971 | PyObject * _resultobj; |
2972 | wxComboBox * _arg0; | |
1d99702e | 2973 | PyObject * _argo0 = 0; |
efc5f224 | 2974 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2975 | |
2976 | self = self; | |
efc5f224 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
8ab979d7 | 2978 | return NULL; |
1d99702e RD |
2979 | if (_argo0) { |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
cf694132 | 2986 | { |
4268f798 | 2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2988 | wxComboBox_Paste(_arg0); |
cf694132 | 2989 | |
4268f798 | 2990 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2992 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2993 | _resultobj = Py_None; |
2994 | return _resultobj; | |
2995 | } | |
2996 | ||
2997 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2998 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2999 | PyObject * _resultobj; |
3000 | wxComboBox * _arg0; | |
3001 | long _arg1; | |
3002 | long _arg2; | |
3003 | wxString * _arg3; | |
1d99702e | 3004 | PyObject * _argo0 = 0; |
8ab979d7 | 3005 | PyObject * _obj3 = 0; |
efc5f224 | 3006 | char *_kwnames[] = { "self","from","to","text", NULL }; |
8ab979d7 RD |
3007 | |
3008 | self = self; | |
efc5f224 | 3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3010 | return NULL; |
1d99702e RD |
3011 | if (_argo0) { |
3012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3015 | return NULL; | |
3016 | } | |
3017 | } | |
3018 | { | |
c8bc7bb8 RD |
3019 | _arg3 = wxString_in_helper(_obj3); |
3020 | if (_arg3 == NULL) | |
185d7c3e | 3021 | return NULL; |
8ab979d7 | 3022 | } |
cf694132 | 3023 | { |
4268f798 | 3024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3025 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 3026 | |
4268f798 | 3027 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3029 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3030 | _resultobj = Py_None; |
3031 | { | |
3032 | if (_obj3) | |
3033 | delete _arg3; | |
3034 | } | |
3035 | return _resultobj; | |
3036 | } | |
3037 | ||
3038 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 3039 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3040 | PyObject * _resultobj; |
3041 | wxComboBox * _arg0; | |
3042 | long _arg1; | |
3043 | long _arg2; | |
1d99702e | 3044 | PyObject * _argo0 = 0; |
efc5f224 | 3045 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3046 | |
3047 | self = self; | |
efc5f224 | 3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3049 | return NULL; |
1d99702e RD |
3050 | if (_argo0) { |
3051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3054 | return NULL; | |
3055 | } | |
3056 | } | |
cf694132 | 3057 | { |
4268f798 | 3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3059 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
cf694132 | 3060 | |
4268f798 | 3061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3062 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3063 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3064 | _resultobj = Py_None; |
3065 | return _resultobj; | |
3066 | } | |
3067 | ||
3068 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 3069 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3070 | PyObject * _resultobj; |
3071 | wxComboBox * _arg0; | |
3072 | long _arg1; | |
1d99702e | 3073 | PyObject * _argo0 = 0; |
efc5f224 | 3074 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3075 | |
3076 | self = self; | |
efc5f224 | 3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3078 | return NULL; |
1d99702e RD |
3079 | if (_argo0) { |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
cf694132 | 3086 | { |
4268f798 | 3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3088 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
cf694132 | 3089 | |
4268f798 | 3090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3092 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3093 | _resultobj = Py_None; |
3094 | return _resultobj; | |
3095 | } | |
3096 | ||
3097 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 3098 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3099 | PyObject * _resultobj; |
3100 | wxComboBox * _arg0; | |
1d99702e | 3101 | PyObject * _argo0 = 0; |
efc5f224 | 3102 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3103 | |
3104 | self = self; | |
efc5f224 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 3106 | return NULL; |
1d99702e RD |
3107 | if (_argo0) { |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
cf694132 | 3114 | { |
4268f798 | 3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3116 | wxComboBox_SetInsertionPointEnd(_arg0); |
cf694132 | 3117 | |
4268f798 | 3118 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3119 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3120 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3121 | _resultobj = Py_None; |
3122 | return _resultobj; | |
3123 | } | |
3124 | ||
1d99702e | 3125 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
efc5f224 | 3126 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
1d99702e RD |
3127 | PyObject * _resultobj; |
3128 | wxComboBox * _arg0; | |
3129 | int _arg1; | |
3130 | PyObject * _argo0 = 0; | |
efc5f224 | 3131 | char *_kwnames[] = { "self","n", NULL }; |
1d99702e RD |
3132 | |
3133 | self = self; | |
efc5f224 | 3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
1d99702e RD |
3135 | return NULL; |
3136 | if (_argo0) { | |
3137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3140 | return NULL; | |
3141 | } | |
3142 | } | |
3143 | { | |
4268f798 | 3144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3145 | wxComboBox_SetSelection(_arg0,_arg1); |
1d99702e | 3146 | |
4268f798 | 3147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3148 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3149 | } Py_INCREF(Py_None); |
3150 | _resultobj = Py_None; | |
3151 | return _resultobj; | |
3152 | } | |
3153 | ||
8ab979d7 | 3154 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
efc5f224 | 3155 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3156 | PyObject * _resultobj; |
3157 | wxComboBox * _arg0; | |
3158 | long _arg1; | |
3159 | long _arg2; | |
1d99702e | 3160 | PyObject * _argo0 = 0; |
efc5f224 | 3161 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3162 | |
3163 | self = self; | |
efc5f224 | 3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3165 | return NULL; |
1d99702e RD |
3166 | if (_argo0) { |
3167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3170 | return NULL; | |
3171 | } | |
3172 | } | |
cf694132 | 3173 | { |
4268f798 | 3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3175 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
cf694132 | 3176 | |
4268f798 | 3177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3178 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3179 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3180 | _resultobj = Py_None; |
3181 | return _resultobj; | |
3182 | } | |
3183 | ||
3184 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3185 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3186 | PyObject * _resultobj; |
3187 | wxComboBox * _arg0; | |
3188 | wxString * _arg1; | |
1d99702e | 3189 | PyObject * _argo0 = 0; |
8ab979d7 | 3190 | PyObject * _obj1 = 0; |
efc5f224 | 3191 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
3192 | |
3193 | self = self; | |
efc5f224 | 3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3195 | return NULL; |
1d99702e RD |
3196 | if (_argo0) { |
3197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
3203 | { | |
c8bc7bb8 RD |
3204 | _arg1 = wxString_in_helper(_obj1); |
3205 | if (_arg1 == NULL) | |
185d7c3e | 3206 | return NULL; |
8ab979d7 | 3207 | } |
cf694132 | 3208 | { |
4268f798 | 3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3210 | wxComboBox_SetValue(_arg0,*_arg1); |
cf694132 | 3211 | |
4268f798 | 3212 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3214 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3215 | _resultobj = Py_None; |
3216 | { | |
3217 | if (_obj1) | |
3218 | delete _arg1; | |
3219 | } | |
3220 | return _resultobj; | |
3221 | } | |
3222 | ||
0adbc166 RD |
3223 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3224 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject * _resultobj; | |
3226 | wxComboBox * _arg0; | |
3227 | bool _arg1; | |
3228 | PyObject * _argo0 = 0; | |
3229 | int tempbool1; | |
3230 | char *_kwnames[] = { "self","editable", NULL }; | |
3231 | ||
3232 | self = self; | |
3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3234 | return NULL; | |
3235 | if (_argo0) { | |
3236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
3242 | _arg1 = (bool ) tempbool1; | |
3243 | { | |
4268f798 | 3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3245 | wxComboBox_SetEditable(_arg0,_arg1); |
0adbc166 | 3246 | |
4268f798 | 3247 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
3248 | if (PyErr_Occurred()) return NULL; |
3249 | } Py_INCREF(Py_None); | |
3250 | _resultobj = Py_None; | |
3251 | return _resultobj; | |
3252 | } | |
3253 | ||
8ab979d7 RD |
3254 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3255 | wxGauge *src; | |
3256 | wxControl *dest; | |
3257 | src = (wxGauge *) ptr; | |
3258 | dest = (wxControl *) src; | |
3259 | return (void *) dest; | |
3260 | } | |
3261 | ||
3262 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3263 | wxGauge *src; | |
3264 | wxWindow *dest; | |
3265 | src = (wxGauge *) ptr; | |
3266 | dest = (wxWindow *) src; | |
3267 | return (void *) dest; | |
3268 | } | |
3269 | ||
3270 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3271 | wxGauge *src; | |
3272 | wxEvtHandler *dest; | |
3273 | src = (wxGauge *) ptr; | |
3274 | dest = (wxEvtHandler *) src; | |
3275 | return (void *) dest; | |
3276 | } | |
3277 | ||
9416aa89 RD |
3278 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3279 | wxGauge *src; | |
3280 | wxObject *dest; | |
3281 | src = (wxGauge *) ptr; | |
3282 | dest = (wxObject *) src; | |
3283 | return (void *) dest; | |
3284 | } | |
3285 | ||
8ab979d7 | 3286 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 3287 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3288 | PyObject * _resultobj; |
3289 | wxGauge * _result; | |
3290 | wxWindow * _arg0; | |
3291 | wxWindowID _arg1; | |
3292 | int _arg2; | |
e508a2b6 RD |
3293 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3294 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 3295 | long _arg5 = (long ) wxGA_HORIZONTAL; |
e508a2b6 | 3296 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3297 | char * _arg7 = (char *) "gauge"; |
3298 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3299 | wxPoint temp; |
3300 | PyObject * _obj3 = 0; | |
3301 | wxSize temp0; | |
3302 | PyObject * _obj4 = 0; | |
1d99702e | 3303 | PyObject * _argo6 = 0; |
efc5f224 | 3304 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3305 | char _ptemp[128]; |
3306 | ||
3307 | self = self; | |
2f90df85 | 3308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 3309 | return NULL; |
1d99702e RD |
3310 | if (_argo0) { |
3311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3314 | return NULL; | |
3315 | } | |
3316 | } | |
2f90df85 RD |
3317 | if (_obj3) |
3318 | { | |
3319 | _arg3 = &temp; | |
3320 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3321 | return NULL; |
2f90df85 RD |
3322 | } |
3323 | if (_obj4) | |
3324 | { | |
3325 | _arg4 = &temp0; | |
3326 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3327 | return NULL; |
2f90df85 | 3328 | } |
1d99702e RD |
3329 | if (_argo6) { |
3330 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3331 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
3332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3333 | return NULL; | |
3334 | } | |
3335 | } | |
cf694132 | 3336 | { |
4268f798 | 3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3338 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
cf694132 | 3339 | |
4268f798 | 3340 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3341 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3342 | } if (_result) { |
3343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3344 | _resultobj = Py_BuildValue("s",_ptemp); | |
3345 | } else { | |
3346 | Py_INCREF(Py_None); | |
3347 | _resultobj = Py_None; | |
3348 | } | |
8ab979d7 RD |
3349 | return _resultobj; |
3350 | } | |
3351 | ||
09f3d4e6 RD |
3352 | #define new_wxPreGauge() (new wxGauge()) |
3353 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject * _resultobj; | |
3355 | wxGauge * _result; | |
3356 | char *_kwnames[] = { NULL }; | |
3357 | char _ptemp[128]; | |
3358 | ||
3359 | self = self; | |
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3361 | return NULL; | |
3362 | { | |
4268f798 | 3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3364 | _result = (wxGauge *)new_wxPreGauge(); |
09f3d4e6 | 3365 | |
4268f798 | 3366 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3367 | if (PyErr_Occurred()) return NULL; |
3368 | } if (_result) { | |
3369 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3370 | _resultobj = Py_BuildValue("s",_ptemp); | |
3371 | } else { | |
3372 | Py_INCREF(Py_None); | |
3373 | _resultobj = Py_None; | |
3374 | } | |
3375 | return _resultobj; | |
3376 | } | |
3377 | ||
3378 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3379 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject * _resultobj; | |
3381 | bool _result; | |
3382 | wxGauge * _arg0; | |
3383 | wxWindow * _arg1; | |
3384 | wxWindowID _arg2; | |
3385 | int _arg3; | |
3386 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3387 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3388 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3389 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3390 | char * _arg8 = (char *) "gauge"; | |
3391 | PyObject * _argo0 = 0; | |
3392 | PyObject * _argo1 = 0; | |
3393 | wxPoint temp; | |
3394 | PyObject * _obj4 = 0; | |
3395 | wxSize temp0; | |
3396 | PyObject * _obj5 = 0; | |
3397 | PyObject * _argo7 = 0; | |
3398 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | if (_argo1) { | |
3411 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3412 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3414 | return NULL; | |
3415 | } | |
3416 | } | |
3417 | if (_obj4) | |
3418 | { | |
3419 | _arg4 = &temp; | |
3420 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3421 | return NULL; | |
3422 | } | |
3423 | if (_obj5) | |
3424 | { | |
3425 | _arg5 = &temp0; | |
3426 | if (! wxSize_helper(_obj5, &_arg5)) | |
3427 | return NULL; | |
3428 | } | |
3429 | if (_argo7) { | |
3430 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | { | |
4268f798 | 3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3438 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 3439 | |
4268f798 | 3440 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3441 | if (PyErr_Occurred()) return NULL; |
3442 | } _resultobj = Py_BuildValue("i",_result); | |
3443 | return _resultobj; | |
3444 | } | |
3445 | ||
8ab979d7 | 3446 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
efc5f224 | 3447 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3448 | PyObject * _resultobj; |
3449 | int _result; | |
3450 | wxGauge * _arg0; | |
1d99702e | 3451 | PyObject * _argo0 = 0; |
efc5f224 | 3452 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3453 | |
3454 | self = self; | |
efc5f224 | 3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
8ab979d7 | 3456 | return NULL; |
1d99702e RD |
3457 | if (_argo0) { |
3458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3461 | return NULL; | |
3462 | } | |
3463 | } | |
cf694132 | 3464 | { |
4268f798 | 3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3466 | _result = (int )wxGauge_GetBezelFace(_arg0); |
cf694132 | 3467 | |
4268f798 | 3468 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3469 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3470 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3471 | return _resultobj; |
3472 | } | |
3473 | ||
3474 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 3475 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3476 | PyObject * _resultobj; |
3477 | int _result; | |
3478 | wxGauge * _arg0; | |
1d99702e | 3479 | PyObject * _argo0 = 0; |
efc5f224 | 3480 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3481 | |
3482 | self = self; | |
efc5f224 | 3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 3484 | return NULL; |
1d99702e RD |
3485 | if (_argo0) { |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
cf694132 | 3492 | { |
4268f798 | 3493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3494 | _result = (int )wxGauge_GetRange(_arg0); |
cf694132 | 3495 | |
4268f798 | 3496 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3498 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3499 | return _resultobj; |
3500 | } | |
3501 | ||
3502 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
efc5f224 | 3503 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3504 | PyObject * _resultobj; |
3505 | int _result; | |
3506 | wxGauge * _arg0; | |
1d99702e | 3507 | PyObject * _argo0 = 0; |
efc5f224 | 3508 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3509 | |
3510 | self = self; | |
efc5f224 | 3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
8ab979d7 | 3512 | return NULL; |
1d99702e RD |
3513 | if (_argo0) { |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
cf694132 | 3520 | { |
4268f798 | 3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3522 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
cf694132 | 3523 | |
4268f798 | 3524 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3527 | return _resultobj; |
3528 | } | |
3529 | ||
3530 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 3531 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3532 | PyObject * _resultobj; |
3533 | int _result; | |
3534 | wxGauge * _arg0; | |
1d99702e | 3535 | PyObject * _argo0 = 0; |
efc5f224 | 3536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3537 | |
3538 | self = self; | |
efc5f224 | 3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 3540 | return NULL; |
1d99702e RD |
3541 | if (_argo0) { |
3542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
3545 | return NULL; | |
3546 | } | |
3547 | } | |
cf694132 | 3548 | { |
4268f798 | 3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3550 | _result = (int )wxGauge_GetValue(_arg0); |
cf694132 | 3551 | |
4268f798 | 3552 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3555 | return _resultobj; |
3556 | } | |
3557 | ||
3558 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
efc5f224 | 3559 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3560 | PyObject * _resultobj; |
3561 | wxGauge * _arg0; | |
3562 | int _arg1; | |
1d99702e | 3563 | PyObject * _argo0 = 0; |
efc5f224 | 3564 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3565 | |
3566 | self = self; | |
efc5f224 | 3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3568 | return NULL; |
1d99702e RD |
3569 | if (_argo0) { |
3570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
3573 | return NULL; | |
3574 | } | |
3575 | } | |
cf694132 | 3576 | { |
4268f798 | 3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3578 | wxGauge_SetBezelFace(_arg0,_arg1); |
cf694132 | 3579 | |
4268f798 | 3580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3582 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3583 | _resultobj = Py_None; |
3584 | return _resultobj; | |
3585 | } | |
3586 | ||
3587 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
efc5f224 | 3588 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3589 | PyObject * _resultobj; |
3590 | wxGauge * _arg0; | |
3591 | int _arg1; | |
1d99702e | 3592 | PyObject * _argo0 = 0; |
efc5f224 | 3593 | char *_kwnames[] = { "self","range", NULL }; |
8ab979d7 RD |
3594 | |
3595 | self = self; | |
efc5f224 | 3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3597 | return NULL; |
1d99702e RD |
3598 | if (_argo0) { |
3599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
3602 | return NULL; | |
3603 | } | |
3604 | } | |
cf694132 | 3605 | { |
4268f798 | 3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3607 | wxGauge_SetRange(_arg0,_arg1); |
cf694132 | 3608 | |
4268f798 | 3609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3611 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3612 | _resultobj = Py_None; |
3613 | return _resultobj; | |
3614 | } | |
3615 | ||
3616 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
efc5f224 | 3617 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3618 | PyObject * _resultobj; |
3619 | wxGauge * _arg0; | |
3620 | int _arg1; | |
1d99702e | 3621 | PyObject * _argo0 = 0; |
efc5f224 | 3622 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3623 | |
3624 | self = self; | |
efc5f224 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3626 | return NULL; |
1d99702e RD |
3627 | if (_argo0) { |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
cf694132 | 3634 | { |
4268f798 | 3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3636 | wxGauge_SetShadowWidth(_arg0,_arg1); |
cf694132 | 3637 | |
4268f798 | 3638 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3640 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3641 | _resultobj = Py_None; |
3642 | return _resultobj; | |
3643 | } | |
3644 | ||
3645 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3646 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3647 | PyObject * _resultobj; |
3648 | wxGauge * _arg0; | |
3649 | int _arg1; | |
1d99702e | 3650 | PyObject * _argo0 = 0; |
efc5f224 | 3651 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3652 | |
3653 | self = self; | |
efc5f224 | 3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3655 | return NULL; |
1d99702e RD |
3656 | if (_argo0) { |
3657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
3660 | return NULL; | |
3661 | } | |
3662 | } | |
cf694132 | 3663 | { |
4268f798 | 3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3665 | wxGauge_SetValue(_arg0,_arg1); |
cf694132 | 3666 | |
4268f798 | 3667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3668 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3669 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3670 | _resultobj = Py_None; |
3671 | return _resultobj; | |
3672 | } | |
3673 | ||
3674 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3675 | wxStaticBox *src; | |
3676 | wxControl *dest; | |
3677 | src = (wxStaticBox *) ptr; | |
3678 | dest = (wxControl *) src; | |
3679 | return (void *) dest; | |
3680 | } | |
3681 | ||
3682 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3683 | wxStaticBox *src; | |
3684 | wxWindow *dest; | |
3685 | src = (wxStaticBox *) ptr; | |
3686 | dest = (wxWindow *) src; | |
3687 | return (void *) dest; | |
3688 | } | |
3689 | ||
3690 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3691 | wxStaticBox *src; | |
3692 | wxEvtHandler *dest; | |
3693 | src = (wxStaticBox *) ptr; | |
3694 | dest = (wxEvtHandler *) src; | |
3695 | return (void *) dest; | |
3696 | } | |
3697 | ||
9416aa89 RD |
3698 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
3699 | wxStaticBox *src; | |
3700 | wxObject *dest; | |
3701 | src = (wxStaticBox *) ptr; | |
3702 | dest = (wxObject *) src; | |
3703 | return (void *) dest; | |
3704 | } | |
3705 | ||
8ab979d7 | 3706 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3707 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3708 | PyObject * _resultobj; |
3709 | wxStaticBox * _result; | |
3710 | wxWindow * _arg0; | |
3711 | wxWindowID _arg1; | |
3712 | wxString * _arg2; | |
e508a2b6 RD |
3713 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3714 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3715 | long _arg5 = (long ) 0; |
3716 | char * _arg6 = (char *) "staticBox"; | |
3717 | PyObject * _argo0 = 0; | |
8ab979d7 | 3718 | PyObject * _obj2 = 0; |
2f90df85 RD |
3719 | wxPoint temp; |
3720 | PyObject * _obj3 = 0; | |
3721 | wxSize temp0; | |
3722 | PyObject * _obj4 = 0; | |
efc5f224 | 3723 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
3724 | char _ptemp[128]; |
3725 | ||
3726 | self = self; | |
2f90df85 | 3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 3728 | return NULL; |
1d99702e RD |
3729 | if (_argo0) { |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
c8bc7bb8 RD |
3737 | _arg2 = wxString_in_helper(_obj2); |
3738 | if (_arg2 == NULL) | |
185d7c3e | 3739 | return NULL; |
8ab979d7 | 3740 | } |
2f90df85 RD |
3741 | if (_obj3) |
3742 | { | |
3743 | _arg3 = &temp; | |
3744 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3745 | return NULL; |
2f90df85 RD |
3746 | } |
3747 | if (_obj4) | |
3748 | { | |
3749 | _arg4 = &temp0; | |
3750 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3751 | return NULL; |
2f90df85 | 3752 | } |
cf694132 | 3753 | { |
4268f798 | 3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3755 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
cf694132 | 3756 | |
4268f798 | 3757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3758 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3759 | } if (_result) { |
3760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3761 | _resultobj = Py_BuildValue("s",_ptemp); | |
3762 | } else { | |
3763 | Py_INCREF(Py_None); | |
3764 | _resultobj = Py_None; | |
3765 | } | |
8ab979d7 RD |
3766 | { |
3767 | if (_obj2) | |
3768 | delete _arg2; | |
3769 | } | |
3770 | return _resultobj; | |
3771 | } | |
3772 | ||
09f3d4e6 RD |
3773 | #define new_wxPreStaticBox() (new wxStaticBox()) |
3774 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3775 | PyObject * _resultobj; | |
3776 | wxStaticBox * _result; | |
3777 | char *_kwnames[] = { NULL }; | |
3778 | char _ptemp[128]; | |
3779 | ||
3780 | self = self; | |
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3782 | return NULL; | |
3783 | { | |
4268f798 | 3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3785 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
09f3d4e6 | 3786 | |
4268f798 | 3787 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3788 | if (PyErr_Occurred()) return NULL; |
3789 | } if (_result) { | |
3790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3791 | _resultobj = Py_BuildValue("s",_ptemp); | |
3792 | } else { | |
3793 | Py_INCREF(Py_None); | |
3794 | _resultobj = Py_None; | |
3795 | } | |
3796 | return _resultobj; | |
3797 | } | |
3798 | ||
3799 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3800 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject * _resultobj; | |
3802 | bool _result; | |
3803 | wxStaticBox * _arg0; | |
3804 | wxWindow * _arg1; | |
3805 | wxWindowID _arg2; | |
3806 | wxString * _arg3; | |
3807 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3808 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3809 | long _arg6 = (long ) 0; | |
3810 | char * _arg7 = (char *) "staticBox"; | |
3811 | PyObject * _argo0 = 0; | |
3812 | PyObject * _argo1 = 0; | |
3813 | PyObject * _obj3 = 0; | |
3814 | wxPoint temp; | |
3815 | PyObject * _obj4 = 0; | |
3816 | wxSize temp0; | |
3817 | PyObject * _obj5 = 0; | |
3818 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3819 | ||
3820 | self = self; | |
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3822 | return NULL; | |
3823 | if (_argo0) { | |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
3830 | if (_argo1) { | |
3831 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
c8bc7bb8 RD |
3838 | _arg3 = wxString_in_helper(_obj3); |
3839 | if (_arg3 == NULL) | |
09f3d4e6 | 3840 | return NULL; |
09f3d4e6 RD |
3841 | } |
3842 | if (_obj4) | |
3843 | { | |
3844 | _arg4 = &temp; | |
3845 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3846 | return NULL; | |
3847 | } | |
3848 | if (_obj5) | |
3849 | { | |
3850 | _arg5 = &temp0; | |
3851 | if (! wxSize_helper(_obj5, &_arg5)) | |
3852 | return NULL; | |
3853 | } | |
3854 | { | |
4268f798 | 3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3856 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
09f3d4e6 | 3857 | |
4268f798 | 3858 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3859 | if (PyErr_Occurred()) return NULL; |
3860 | } _resultobj = Py_BuildValue("i",_result); | |
3861 | { | |
3862 | if (_obj3) | |
3863 | delete _arg3; | |
3864 | } | |
3865 | return _resultobj; | |
3866 | } | |
3867 | ||
8bf5d46e RD |
3868 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
3869 | wxStaticLine *src; | |
3870 | wxControl *dest; | |
3871 | src = (wxStaticLine *) ptr; | |
3872 | dest = (wxControl *) src; | |
3873 | return (void *) dest; | |
3874 | } | |
3875 | ||
3876 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3877 | wxStaticLine *src; | |
3878 | wxWindow *dest; | |
3879 | src = (wxStaticLine *) ptr; | |
3880 | dest = (wxWindow *) src; | |
3881 | return (void *) dest; | |
3882 | } | |
3883 | ||
3884 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3885 | wxStaticLine *src; | |
3886 | wxEvtHandler *dest; | |
3887 | src = (wxStaticLine *) ptr; | |
3888 | dest = (wxEvtHandler *) src; | |
3889 | return (void *) dest; | |
3890 | } | |
3891 | ||
9416aa89 RD |
3892 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
3893 | wxStaticLine *src; | |
3894 | wxObject *dest; | |
3895 | src = (wxStaticLine *) ptr; | |
3896 | dest = (wxObject *) src; | |
3897 | return (void *) dest; | |
3898 | } | |
3899 | ||
8bf5d46e | 3900 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 3901 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3902 | PyObject * _resultobj; |
3903 | wxStaticLine * _result; | |
3904 | wxWindow * _arg0; | |
3905 | wxWindowID _arg1; | |
e508a2b6 RD |
3906 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3907 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
3908 | long _arg4 = (long ) wxLI_HORIZONTAL; |
3909 | char * _arg5 = (char *) "staticLine"; | |
3910 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3911 | wxPoint temp; |
3912 | PyObject * _obj2 = 0; | |
3913 | wxSize temp0; | |
3914 | PyObject * _obj3 = 0; | |
efc5f224 | 3915 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8bf5d46e RD |
3916 | char _ptemp[128]; |
3917 | ||
3918 | self = self; | |
2f90df85 | 3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8bf5d46e | 3920 | return NULL; |
1d99702e RD |
3921 | if (_argo0) { |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
3925 | return NULL; | |
3926 | } | |
3927 | } | |
2f90df85 RD |
3928 | if (_obj2) |
3929 | { | |
3930 | _arg2 = &temp; | |
3931 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3932 | return NULL; |
2f90df85 RD |
3933 | } |
3934 | if (_obj3) | |
3935 | { | |
3936 | _arg3 = &temp0; | |
3937 | if (! wxSize_helper(_obj3, &_arg3)) | |
8bf5d46e | 3938 | return NULL; |
2f90df85 | 3939 | } |
8bf5d46e | 3940 | { |
4268f798 | 3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3942 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
8bf5d46e | 3943 | |
4268f798 | 3944 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3945 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3946 | } if (_result) { |
3947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3948 | _resultobj = Py_BuildValue("s",_ptemp); | |
3949 | } else { | |
3950 | Py_INCREF(Py_None); | |
3951 | _resultobj = Py_None; | |
3952 | } | |
8bf5d46e RD |
3953 | return _resultobj; |
3954 | } | |
3955 | ||
09f3d4e6 RD |
3956 | #define new_wxPreStaticLine() (new wxStaticLine()) |
3957 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject * _resultobj; | |
3959 | wxStaticLine * _result; | |
3960 | char *_kwnames[] = { NULL }; | |
3961 | char _ptemp[128]; | |
3962 | ||
3963 | self = self; | |
3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
3965 | return NULL; | |
3966 | { | |
4268f798 | 3967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3968 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
09f3d4e6 | 3969 | |
4268f798 | 3970 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3971 | if (PyErr_Occurred()) return NULL; |
3972 | } if (_result) { | |
3973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3974 | _resultobj = Py_BuildValue("s",_ptemp); | |
3975 | } else { | |
3976 | Py_INCREF(Py_None); | |
3977 | _resultobj = Py_None; | |
3978 | } | |
3979 | return _resultobj; | |
3980 | } | |
3981 | ||
3982 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3983 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject * _resultobj; | |
3985 | bool _result; | |
3986 | wxStaticLine * _arg0; | |
3987 | wxWindow * _arg1; | |
3988 | wxWindowID _arg2; | |
3989 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3990 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3991 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
3992 | char * _arg6 = (char *) "staticLine"; | |
3993 | PyObject * _argo0 = 0; | |
3994 | PyObject * _argo1 = 0; | |
3995 | wxPoint temp; | |
3996 | PyObject * _obj3 = 0; | |
3997 | wxSize temp0; | |
3998 | PyObject * _obj4 = 0; | |
3999 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4000 | ||
4001 | self = self; | |
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4003 | return NULL; | |
4004 | if (_argo0) { | |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4008 | return NULL; | |
4009 | } | |
4010 | } | |
4011 | if (_argo1) { | |
4012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4015 | return NULL; | |
4016 | } | |
4017 | } | |
4018 | if (_obj3) | |
4019 | { | |
4020 | _arg3 = &temp; | |
4021 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4022 | return NULL; | |
4023 | } | |
4024 | if (_obj4) | |
4025 | { | |
4026 | _arg4 = &temp0; | |
4027 | if (! wxSize_helper(_obj4, &_arg4)) | |
4028 | return NULL; | |
4029 | } | |
4030 | { | |
4268f798 | 4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4032 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 4033 | |
4268f798 | 4034 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4035 | if (PyErr_Occurred()) return NULL; |
4036 | } _resultobj = Py_BuildValue("i",_result); | |
4037 | return _resultobj; | |
4038 | } | |
4039 | ||
8ab979d7 RD |
4040 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4041 | wxStaticText *src; | |
4042 | wxControl *dest; | |
4043 | src = (wxStaticText *) ptr; | |
4044 | dest = (wxControl *) src; | |
4045 | return (void *) dest; | |
4046 | } | |
4047 | ||
4048 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4049 | wxStaticText *src; | |
4050 | wxWindow *dest; | |
4051 | src = (wxStaticText *) ptr; | |
4052 | dest = (wxWindow *) src; | |
4053 | return (void *) dest; | |
4054 | } | |
4055 | ||
4056 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4057 | wxStaticText *src; | |
4058 | wxEvtHandler *dest; | |
4059 | src = (wxStaticText *) ptr; | |
4060 | dest = (wxEvtHandler *) src; | |
4061 | return (void *) dest; | |
4062 | } | |
4063 | ||
9416aa89 RD |
4064 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4065 | wxStaticText *src; | |
4066 | wxObject *dest; | |
4067 | src = (wxStaticText *) ptr; | |
4068 | dest = (wxObject *) src; | |
4069 | return (void *) dest; | |
4070 | } | |
4071 | ||
8ab979d7 | 4072 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 4073 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4074 | PyObject * _resultobj; |
4075 | wxStaticText * _result; | |
4076 | wxWindow * _arg0; | |
4077 | wxWindowID _arg1; | |
4078 | wxString * _arg2; | |
e508a2b6 RD |
4079 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4080 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
4081 | long _arg5 = (long ) 0; |
4082 | char * _arg6 = (char *) "staticText"; | |
4083 | PyObject * _argo0 = 0; | |
8ab979d7 | 4084 | PyObject * _obj2 = 0; |
2f90df85 RD |
4085 | wxPoint temp; |
4086 | PyObject * _obj3 = 0; | |
4087 | wxSize temp0; | |
4088 | PyObject * _obj4 = 0; | |
efc5f224 | 4089 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
4090 | char _ptemp[128]; |
4091 | ||
4092 | self = self; | |
2f90df85 | 4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
8ab979d7 | 4094 | return NULL; |
1d99702e RD |
4095 | if (_argo0) { |
4096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4099 | return NULL; | |
4100 | } | |
4101 | } | |
4102 | { | |
c8bc7bb8 RD |
4103 | _arg2 = wxString_in_helper(_obj2); |
4104 | if (_arg2 == NULL) | |
185d7c3e | 4105 | return NULL; |
8ab979d7 | 4106 | } |
2f90df85 RD |
4107 | if (_obj3) |
4108 | { | |
4109 | _arg3 = &temp; | |
4110 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4111 | return NULL; |
2f90df85 RD |
4112 | } |
4113 | if (_obj4) | |
4114 | { | |
4115 | _arg4 = &temp0; | |
4116 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4117 | return NULL; |
2f90df85 | 4118 | } |
cf694132 | 4119 | { |
4268f798 | 4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4121 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
cf694132 | 4122 | |
4268f798 | 4123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4124 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4125 | } if (_result) { |
4126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4127 | _resultobj = Py_BuildValue("s",_ptemp); | |
4128 | } else { | |
4129 | Py_INCREF(Py_None); | |
4130 | _resultobj = Py_None; | |
4131 | } | |
8ab979d7 RD |
4132 | { |
4133 | if (_obj2) | |
4134 | delete _arg2; | |
4135 | } | |
4136 | return _resultobj; | |
4137 | } | |
4138 | ||
09f3d4e6 RD |
4139 | #define new_wxPreStaticText() (new wxStaticText()) |
4140 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4141 | PyObject * _resultobj; | |
4142 | wxStaticText * _result; | |
4143 | char *_kwnames[] = { NULL }; | |
4144 | char _ptemp[128]; | |
4145 | ||
4146 | self = self; | |
4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4148 | return NULL; | |
4149 | { | |
4268f798 | 4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4151 | _result = (wxStaticText *)new_wxPreStaticText(); |
09f3d4e6 | 4152 | |
4268f798 | 4153 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4154 | if (PyErr_Occurred()) return NULL; |
4155 | } if (_result) { | |
4156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4157 | _resultobj = Py_BuildValue("s",_ptemp); | |
4158 | } else { | |
4159 | Py_INCREF(Py_None); | |
4160 | _resultobj = Py_None; | |
4161 | } | |
4162 | return _resultobj; | |
4163 | } | |
4164 | ||
4165 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4166 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject * _resultobj; | |
4168 | bool _result; | |
4169 | wxStaticText * _arg0; | |
4170 | wxWindow * _arg1; | |
4171 | wxWindowID _arg2; | |
4172 | wxString * _arg3; | |
4173 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4174 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4175 | long _arg6 = (long ) 0; | |
4176 | char * _arg7 = (char *) "staticText"; | |
4177 | PyObject * _argo0 = 0; | |
4178 | PyObject * _argo1 = 0; | |
4179 | PyObject * _obj3 = 0; | |
4180 | wxPoint temp; | |
4181 | PyObject * _obj4 = 0; | |
4182 | wxSize temp0; | |
4183 | PyObject * _obj5 = 0; | |
4184 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4185 | ||
4186 | self = self; | |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4188 | return NULL; | |
4189 | if (_argo0) { | |
4190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4193 | return NULL; | |
4194 | } | |
4195 | } | |
4196 | if (_argo1) { | |
4197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4200 | return NULL; | |
4201 | } | |
4202 | } | |
4203 | { | |
c8bc7bb8 RD |
4204 | _arg3 = wxString_in_helper(_obj3); |
4205 | if (_arg3 == NULL) | |
09f3d4e6 | 4206 | return NULL; |
09f3d4e6 RD |
4207 | } |
4208 | if (_obj4) | |
4209 | { | |
4210 | _arg4 = &temp; | |
4211 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4212 | return NULL; | |
4213 | } | |
4214 | if (_obj5) | |
4215 | { | |
4216 | _arg5 = &temp0; | |
4217 | if (! wxSize_helper(_obj5, &_arg5)) | |
4218 | return NULL; | |
4219 | } | |
4220 | { | |
4268f798 | 4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4222 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
09f3d4e6 | 4223 | |
4268f798 | 4224 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4225 | if (PyErr_Occurred()) return NULL; |
4226 | } _resultobj = Py_BuildValue("i",_result); | |
4227 | { | |
4228 | if (_obj3) | |
4229 | delete _arg3; | |
4230 | } | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
8ab979d7 | 4234 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 4235 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4236 | PyObject * _resultobj; |
4237 | wxString * _result; | |
4238 | wxStaticText * _arg0; | |
1d99702e | 4239 | PyObject * _argo0 = 0; |
efc5f224 | 4240 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4241 | |
4242 | self = self; | |
efc5f224 | 4243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 4244 | return NULL; |
1d99702e RD |
4245 | if (_argo0) { |
4246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4249 | return NULL; | |
4250 | } | |
4251 | } | |
8ab979d7 | 4252 | { |
4268f798 | 4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4254 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
cf694132 | 4255 | |
4268f798 | 4256 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4258 | }{ |
c8bc7bb8 RD |
4259 | #if wxUSE_UNICODE |
4260 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4261 | #else | |
eec92d76 | 4262 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4263 | #endif |
8ab979d7 RD |
4264 | } |
4265 | { | |
4266 | delete _result; | |
4267 | } | |
4268 | return _resultobj; | |
4269 | } | |
4270 | ||
4271 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 4272 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4273 | PyObject * _resultobj; |
4274 | wxStaticText * _arg0; | |
4275 | wxString * _arg1; | |
1d99702e | 4276 | PyObject * _argo0 = 0; |
8ab979d7 | 4277 | PyObject * _obj1 = 0; |
efc5f224 | 4278 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
4279 | |
4280 | self = self; | |
efc5f224 | 4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4282 | return NULL; |
1d99702e RD |
4283 | if (_argo0) { |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
4290 | { | |
c8bc7bb8 RD |
4291 | _arg1 = wxString_in_helper(_obj1); |
4292 | if (_arg1 == NULL) | |
185d7c3e | 4293 | return NULL; |
8ab979d7 | 4294 | } |
cf694132 | 4295 | { |
4268f798 | 4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4297 | wxStaticText_SetLabel(_arg0,*_arg1); |
cf694132 | 4298 | |
4268f798 | 4299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4302 | _resultobj = Py_None; |
4303 | { | |
4304 | if (_obj1) | |
4305 | delete _arg1; | |
4306 | } | |
4307 | return _resultobj; | |
4308 | } | |
4309 | ||
900d9886 RD |
4310 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4311 | wxListBox *src; | |
4312 | wxControlWithItems *dest; | |
4313 | src = (wxListBox *) ptr; | |
4314 | dest = (wxControlWithItems *) src; | |
4315 | return (void *) dest; | |
4316 | } | |
4317 | ||
8ab979d7 RD |
4318 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4319 | wxListBox *src; | |
4320 | wxControl *dest; | |
4321 | src = (wxListBox *) ptr; | |
4322 | dest = (wxControl *) src; | |
4323 | return (void *) dest; | |
4324 | } | |
4325 | ||
4326 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4327 | wxListBox *src; | |
4328 | wxWindow *dest; | |
4329 | src = (wxListBox *) ptr; | |
4330 | dest = (wxWindow *) src; | |
4331 | return (void *) dest; | |
4332 | } | |
4333 | ||
4334 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4335 | wxListBox *src; | |
4336 | wxEvtHandler *dest; | |
4337 | src = (wxListBox *) ptr; | |
4338 | dest = (wxEvtHandler *) src; | |
4339 | return (void *) dest; | |
4340 | } | |
4341 | ||
9416aa89 RD |
4342 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4343 | wxListBox *src; | |
4344 | wxObject *dest; | |
4345 | src = (wxListBox *) ptr; | |
4346 | dest = (wxObject *) src; | |
4347 | return (void *) dest; | |
4348 | } | |
4349 | ||
09f3d4e6 RD |
4350 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4351 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4352 | PyObject * _resultobj; | |
4353 | wxListBox * _result; | |
4354 | wxWindow * _arg0; | |
4355 | wxWindowID _arg1; | |
4356 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4357 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4358 | int _arg4; | |
4359 | wxString * _arg5 = (wxString *) NULL; | |
4360 | long _arg6 = (long ) 0; | |
4361 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4362 | char * _arg8 = (char *) "listBox"; | |
4363 | PyObject * _argo0 = 0; | |
4364 | wxPoint temp; | |
4365 | PyObject * _obj2 = 0; | |
4366 | wxSize temp0; | |
4367 | PyObject * _obj3 = 0; | |
4368 | PyObject * _obj5 = 0; | |
4369 | PyObject * _argo7 = 0; | |
4370 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4371 | char _ptemp[128]; | |
4372 | ||
4373 | self = self; | |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4375 | return NULL; | |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | if (_obj2) | |
4384 | { | |
4385 | _arg2 = &temp; | |
4386 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4387 | return NULL; | |
4388 | } | |
4389 | if (_obj3) | |
4390 | { | |
4391 | _arg3 = &temp0; | |
4392 | if (! wxSize_helper(_obj3, &_arg3)) | |
4393 | return NULL; | |
4394 | } | |
4395 | if (_obj5) | |
4396 | { | |
4397 | _arg5 = wxString_LIST_helper(_obj5); | |
4398 | if (_arg5 == NULL) { | |
4399 | return NULL; | |
4400 | } | |
4401 | } | |
4402 | if (_argo7) { | |
4403 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4404 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4406 | return NULL; | |
4407 | } | |
4408 | } | |
4409 | { | |
4410 | if (_obj5) { | |
4411 | _arg4 = PyList_Size(_obj5); | |
4412 | } | |
4413 | else { | |
4414 | _arg4 = 0; | |
4415 | } | |
4416 | } | |
4417 | { | |
4268f798 | 4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4419 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 4420 | |
4268f798 | 4421 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4422 | if (PyErr_Occurred()) return NULL; |
4423 | } if (_result) { | |
4424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4425 | _resultobj = Py_BuildValue("s",_ptemp); | |
4426 | } else { | |
4427 | Py_INCREF(Py_None); | |
4428 | _resultobj = Py_None; | |
4429 | } | |
4430 | { | |
4431 | delete [] _arg5; | |
4432 | } | |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
4436 | #define new_wxPreListBox() (new wxListBox()) | |
4437 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject * _resultobj; | |
4439 | wxListBox * _result; | |
4440 | char *_kwnames[] = { NULL }; | |
4441 | char _ptemp[128]; | |
4442 | ||
4443 | self = self; | |
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4445 | return NULL; | |
4446 | { | |
4268f798 | 4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4448 | _result = (wxListBox *)new_wxPreListBox(); |
09f3d4e6 | 4449 | |
4268f798 | 4450 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4451 | if (PyErr_Occurred()) return NULL; |
4452 | } if (_result) { | |
4453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4454 | _resultobj = Py_BuildValue("s",_ptemp); | |
4455 | } else { | |
4456 | Py_INCREF(Py_None); | |
4457 | _resultobj = Py_None; | |
4458 | } | |
4459 | return _resultobj; | |
4460 | } | |
4461 | ||
4462 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4463 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4464 | PyObject * _resultobj; |
09f3d4e6 RD |
4465 | bool _result; |
4466 | wxListBox * _arg0; | |
4467 | wxWindow * _arg1; | |
4468 | wxWindowID _arg2; | |
4469 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4470 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4471 | int _arg5; | |
4472 | wxString * _arg6 = (wxString *) NULL; | |
4473 | long _arg7 = (long ) 0; | |
4474 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4475 | char * _arg9 = (char *) "listBox"; | |
1d99702e | 4476 | PyObject * _argo0 = 0; |
09f3d4e6 | 4477 | PyObject * _argo1 = 0; |
2f90df85 | 4478 | wxPoint temp; |
2f90df85 | 4479 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
4480 | wxSize temp0; |
4481 | PyObject * _obj4 = 0; | |
4482 | PyObject * _obj6 = 0; | |
4483 | PyObject * _argo8 = 0; | |
4484 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
8ab979d7 RD |
4485 | |
4486 | self = self; | |
09f3d4e6 | 4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 4488 | return NULL; |
1d99702e RD |
4489 | if (_argo0) { |
4490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
4491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
4492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
8ab979d7 RD |
4493 | return NULL; |
4494 | } | |
4495 | } | |
09f3d4e6 RD |
4496 | if (_argo1) { |
4497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4500 | return NULL; | |
4501 | } | |
4502 | } | |
4503 | if (_obj3) | |
2f90df85 | 4504 | { |
09f3d4e6 RD |
4505 | _arg3 = &temp; |
4506 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4507 | return NULL; |
2f90df85 | 4508 | } |
09f3d4e6 | 4509 | if (_obj4) |
2f90df85 | 4510 | { |
09f3d4e6 RD |
4511 | _arg4 = &temp0; |
4512 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4513 | return NULL; |
2f90df85 | 4514 | } |
09f3d4e6 | 4515 | if (_obj6) |
8ab979d7 | 4516 | { |
09f3d4e6 RD |
4517 | _arg6 = wxString_LIST_helper(_obj6); |
4518 | if (_arg6 == NULL) { | |
8ab979d7 RD |
4519 | return NULL; |
4520 | } | |
4521 | } | |
09f3d4e6 RD |
4522 | if (_argo8) { |
4523 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4524 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
4526 | return NULL; |
4527 | } | |
4528 | } | |
4529 | { | |
09f3d4e6 RD |
4530 | if (_obj6) { |
4531 | _arg5 = PyList_Size(_obj6); | |
cf694132 RD |
4532 | } |
4533 | else { | |
09f3d4e6 | 4534 | _arg5 = 0; |
cf694132 | 4535 | } |
8ab979d7 | 4536 | } |
cf694132 | 4537 | { |
4268f798 | 4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4539 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 4540 | |
4268f798 | 4541 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4542 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 4543 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 4544 | { |
09f3d4e6 | 4545 | delete [] _arg6; |
8ab979d7 RD |
4546 | } |
4547 | return _resultobj; | |
4548 | } | |
4549 | ||
8ab979d7 | 4550 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
efc5f224 | 4551 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4552 | PyObject * _resultobj; |
4553 | wxListBox * _arg0; | |
1d99702e | 4554 | PyObject * _argo0 = 0; |
efc5f224 | 4555 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4556 | |
4557 | self = self; | |
efc5f224 | 4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4559 | return NULL; |
1d99702e RD |
4560 | if (_argo0) { |
4561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
4564 | return NULL; | |
4565 | } | |
4566 | } | |
cf694132 | 4567 | { |
4268f798 | 4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4569 | wxListBox_Clear(_arg0); |
cf694132 | 4570 | |
4268f798 | 4571 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4572 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4573 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4574 | _resultobj = Py_None; |
4575 | return _resultobj; | |
4576 | } | |
4577 | ||
8ab979d7 | 4578 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
efc5f224 | 4579 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4580 | PyObject * _resultobj; |
4581 | wxListBox * _arg0; | |
4582 | int _arg1; | |
1d99702e | 4583 | PyObject * _argo0 = 0; |
efc5f224 | 4584 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4585 | |
4586 | self = self; | |
efc5f224 | 4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4588 | return NULL; |
1d99702e RD |
4589 | if (_argo0) { |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
cf694132 | 4596 | { |
4268f798 | 4597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4598 | wxListBox_Deselect(_arg0,_arg1); |
cf694132 | 4599 | |
4268f798 | 4600 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4601 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4602 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4603 | _resultobj = Py_None; |
4604 | return _resultobj; | |
4605 | } | |
4606 | ||
cf694132 RD |
4607 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
4608 | wxArrayInt lst; | |
4609 | self->GetSelections(lst); | |
4610 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 4611 | for(size_t i=0; i<lst.GetCount(); i++) { |
cf694132 RD |
4612 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
4613 | } | |
4614 | return tup; | |
4615 | } | |
efc5f224 | 4616 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4617 | PyObject * _resultobj; |
4618 | PyObject * _result; | |
4619 | wxListBox * _arg0; | |
1d99702e | 4620 | PyObject * _argo0 = 0; |
efc5f224 | 4621 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4622 | |
4623 | self = self; | |
efc5f224 | 4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
cf694132 | 4625 | return NULL; |
1d99702e RD |
4626 | if (_argo0) { |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
cf694132 RD |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
4268f798 | 4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4635 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
cf694132 | 4636 | |
4268f798 | 4637 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4638 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
4639 | }{ |
4640 | _resultobj = _result; | |
4641 | } | |
8ab979d7 RD |
4642 | return _resultobj; |
4643 | } | |
4644 | ||
2f90df85 RD |
4645 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4646 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject * _resultobj; | |
4648 | wxListBox * _arg0; | |
4649 | int _arg1; | |
4650 | wxString * _arg2; | |
4651 | int _arg3; | |
4652 | PyObject * _argo0 = 0; | |
4653 | PyObject * _obj2 = 0; | |
eec92d76 | 4654 | char *_kwnames[] = { "self","choices","pos", NULL }; |
2f90df85 RD |
4655 | |
4656 | self = self; | |
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4658 | return NULL; | |
4659 | if (_argo0) { | |
4660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4663 | return NULL; | |
4664 | } | |
4665 | } | |
4666 | { | |
4667 | _arg2 = wxString_LIST_helper(_obj2); | |
4668 | if (_arg2 == NULL) { | |
4669 | return NULL; | |
4670 | } | |
4671 | } | |
4672 | { | |
4673 | if (_obj2) { | |
4674 | _arg1 = PyList_Size(_obj2); | |
4675 | } | |
4676 | else { | |
4677 | _arg1 = 0; | |
4678 | } | |
4679 | } | |
4680 | { | |
4268f798 | 4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4682 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
2f90df85 | 4683 | |
4268f798 | 4684 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4685 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4686 | } Py_INCREF(Py_None); |
4687 | _resultobj = Py_None; | |
4688 | { | |
4689 | delete [] _arg2; | |
4690 | } | |
4691 | return _resultobj; | |
4692 | } | |
4693 | ||
0adbc166 RD |
4694 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
4695 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject * _resultobj; | |
4697 | bool _result; | |
4698 | wxListBox * _arg0; | |
4699 | int _arg1; | |
4700 | PyObject * _argo0 = 0; | |
4701 | char *_kwnames[] = { "self","n", NULL }; | |
4702 | ||
4703 | self = self; | |
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4705 | return NULL; | |
4706 | if (_argo0) { | |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
4713 | { | |
4268f798 | 4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4715 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
cf694132 | 4716 | |
4268f798 | 4717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4719 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4720 | return _resultobj; |
4721 | } | |
4722 | ||
4723 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
efc5f224 | 4724 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4725 | PyObject * _resultobj; |
4726 | bool _result; | |
4727 | wxListBox * _arg0; | |
4728 | int _arg1; | |
1d99702e | 4729 | PyObject * _argo0 = 0; |
efc5f224 | 4730 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4731 | |
4732 | self = self; | |
efc5f224 | 4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4734 | return NULL; |
1d99702e RD |
4735 | if (_argo0) { |
4736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
4739 | return NULL; | |
4740 | } | |
4741 | } | |
cf694132 | 4742 | { |
4268f798 | 4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4744 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
cf694132 | 4745 | |
4268f798 | 4746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4749 | return _resultobj; |
4750 | } | |
4751 | ||
4752 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
efc5f224 | 4753 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4754 | PyObject * _resultobj; |
4755 | wxListBox * _arg0; | |
4756 | int _arg1; | |
4757 | wxString * _arg2; | |
1d99702e | 4758 | PyObject * _argo0 = 0; |
8ab979d7 | 4759 | PyObject * _obj2 = 0; |
eec92d76 | 4760 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
4761 | |
4762 | self = self; | |
efc5f224 | 4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 4764 | return NULL; |
1d99702e RD |
4765 | if (_argo0) { |
4766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
4769 | return NULL; | |
4770 | } | |
4771 | } | |
4772 | if (_obj2) | |
4773 | { | |
4774 | _arg2 = wxString_LIST_helper(_obj2); | |
4775 | if (_arg2 == NULL) { | |
4776 | return NULL; | |
4777 | } | |
4778 | } | |
4779 | { | |
cf694132 RD |
4780 | if (_obj2) { |
4781 | _arg1 = PyList_Size(_obj2); | |
4782 | } | |
4783 | else { | |
4784 | _arg1 = 0; | |
4785 | } | |
8ab979d7 | 4786 | } |
cf694132 | 4787 | { |
4268f798 | 4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4789 | wxListBox_Set(_arg0,_arg1,_arg2); |
cf694132 | 4790 | |
4268f798 | 4791 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4792 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4793 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4794 | _resultobj = Py_None; |
4795 | { | |
4796 | delete [] _arg2; | |
4797 | } | |
4798 | return _resultobj; | |
4799 | } | |
4800 | ||
4801 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 4802 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4803 | PyObject * _resultobj; |
4804 | wxListBox * _arg0; | |
4805 | int _arg1; | |
1d99702e | 4806 | PyObject * _argo0 = 0; |
efc5f224 | 4807 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4808 | |
4809 | self = self; | |
efc5f224 | 4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4811 | return NULL; |
1d99702e RD |
4812 | if (_argo0) { |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
cf694132 | 4819 | { |
4268f798 | 4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4821 | wxListBox_SetFirstItem(_arg0,_arg1); |
cf694132 | 4822 | |
4268f798 | 4823 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4824 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4825 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4826 | _resultobj = Py_None; |
4827 | return _resultobj; | |
4828 | } | |
4829 | ||
4830 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 4831 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4832 | PyObject * _resultobj; |
4833 | wxListBox * _arg0; | |
4834 | wxString * _arg1; | |
1d99702e | 4835 | PyObject * _argo0 = 0; |
8ab979d7 | 4836 | PyObject * _obj1 = 0; |
efc5f224 | 4837 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
4838 | |
4839 | self = self; | |
efc5f224 | 4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4841 | return NULL; |
1d99702e RD |
4842 | if (_argo0) { |
4843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
4846 | return NULL; | |
4847 | } | |
4848 | } | |
4849 | { | |
c8bc7bb8 RD |
4850 | _arg1 = wxString_in_helper(_obj1); |
4851 | if (_arg1 == NULL) | |
185d7c3e | 4852 | return NULL; |
8ab979d7 | 4853 | } |
cf694132 | 4854 | { |
4268f798 | 4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4856 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
cf694132 | 4857 | |
4268f798 | 4858 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4859 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4860 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4861 | _resultobj = Py_None; |
4862 | { | |
4863 | if (_obj1) | |
4864 | delete _arg1; | |
4865 | } | |
4866 | return _resultobj; | |
4867 | } | |
4868 | ||
4869 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 4870 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4871 | PyObject * _resultobj; |
4872 | wxListBox * _arg0; | |
4873 | int _arg1; | |
1d99702e RD |
4874 | bool _arg2 = (bool ) TRUE; |
4875 | PyObject * _argo0 = 0; | |
4876 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4877 | char *_kwnames[] = { "self","n","select", NULL }; |
8ab979d7 RD |
4878 | |
4879 | self = self; | |
efc5f224 | 4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4881 | return NULL; |
1d99702e RD |
4882 | if (_argo0) { |
4883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
4886 | return NULL; | |
4887 | } | |
4888 | } | |
4889 | _arg2 = (bool ) tempbool2; | |
cf694132 | 4890 | { |
4268f798 | 4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4892 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
cf694132 | 4893 | |
4268f798 | 4894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4895 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4896 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4897 | _resultobj = Py_None; |
4898 | return _resultobj; | |
4899 | } | |
4900 | ||
4901 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
efc5f224 | 4902 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4903 | PyObject * _resultobj; |
4904 | wxListBox * _arg0; | |
4905 | int _arg1; | |
4906 | wxString * _arg2; | |
1d99702e | 4907 | PyObject * _argo0 = 0; |
8ab979d7 | 4908 | PyObject * _obj2 = 0; |
efc5f224 | 4909 | char *_kwnames[] = { "self","n","string", NULL }; |
8ab979d7 RD |
4910 | |
4911 | self = self; | |
efc5f224 | 4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4913 | return NULL; |
1d99702e RD |
4914 | if (_argo0) { |
4915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
4918 | return NULL; | |
4919 | } | |
4920 | } | |
4921 | { | |
c8bc7bb8 RD |
4922 | _arg2 = wxString_in_helper(_obj2); |
4923 | if (_arg2 == NULL) | |
185d7c3e | 4924 | return NULL; |
8ab979d7 | 4925 | } |
cf694132 | 4926 | { |
4268f798 | 4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4928 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
cf694132 | 4929 | |
4268f798 | 4930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4932 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4933 | _resultobj = Py_None; |
4934 | { | |
4935 | if (_obj2) | |
4936 | delete _arg2; | |
4937 | } | |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 4942 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4943 | PyObject * _resultobj; |
4944 | wxListBox * _arg0; | |
4945 | wxString * _arg1; | |
1d99702e RD |
4946 | bool _arg2 = (bool ) TRUE; |
4947 | PyObject * _argo0 = 0; | |
8ab979d7 | 4948 | PyObject * _obj1 = 0; |
1d99702e | 4949 | int tempbool2 = (int) TRUE; |
efc5f224 | 4950 | char *_kwnames[] = { "self","string","select", NULL }; |
8ab979d7 RD |
4951 | |
4952 | self = self; | |
efc5f224 | 4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 4954 | return NULL; |
1d99702e RD |
4955 | if (_argo0) { |
4956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
4962 | { | |
c8bc7bb8 RD |
4963 | _arg1 = wxString_in_helper(_obj1); |
4964 | if (_arg1 == NULL) | |
8ab979d7 | 4965 | return NULL; |
8ab979d7 RD |
4966 | } |
4967 | _arg2 = (bool ) tempbool2; | |
cf694132 | 4968 | { |
4268f798 | 4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4970 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
cf694132 | 4971 | |
4268f798 | 4972 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4973 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4974 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4975 | _resultobj = Py_None; |
4976 | { | |
4977 | if (_obj1) | |
4978 | delete _arg1; | |
4979 | } | |
4980 | return _resultobj; | |
4981 | } | |
4982 | ||
9c039d08 RD |
4983 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
4984 | wxCheckListBox *src; | |
4985 | wxListBox *dest; | |
4986 | src = (wxCheckListBox *) ptr; | |
4987 | dest = (wxListBox *) src; | |
4988 | return (void *) dest; | |
4989 | } | |
4990 | ||
900d9886 RD |
4991 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
4992 | wxCheckListBox *src; | |
4993 | wxControlWithItems *dest; | |
4994 | src = (wxCheckListBox *) ptr; | |
4995 | dest = (wxControlWithItems *) src; | |
4996 | return (void *) dest; | |
4997 | } | |
4998 | ||
9c039d08 RD |
4999 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5000 | wxCheckListBox *src; | |
5001 | wxControl *dest; | |
5002 | src = (wxCheckListBox *) ptr; | |
5003 | dest = (wxControl *) src; | |
5004 | return (void *) dest; | |
5005 | } | |
5006 | ||
5007 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5008 | wxCheckListBox *src; | |
5009 | wxWindow *dest; | |
5010 | src = (wxCheckListBox *) ptr; | |
5011 | dest = (wxWindow *) src; | |
5012 | return (void *) dest; | |
5013 | } | |
5014 | ||
5015 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5016 | wxCheckListBox *src; | |
5017 | wxEvtHandler *dest; | |
5018 | src = (wxCheckListBox *) ptr; | |
5019 | dest = (wxEvtHandler *) src; | |
5020 | return (void *) dest; | |
5021 | } | |
5022 | ||
9416aa89 RD |
5023 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5024 | wxCheckListBox *src; | |
5025 | wxObject *dest; | |
5026 | src = (wxCheckListBox *) ptr; | |
5027 | dest = (wxObject *) src; | |
5028 | return (void *) dest; | |
5029 | } | |
5030 | ||
9c039d08 | 5031 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 5032 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5033 | PyObject * _resultobj; |
5034 | wxCheckListBox * _result; | |
5035 | wxWindow * _arg0; | |
5036 | wxWindowID _arg1; | |
e508a2b6 RD |
5037 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5038 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5039 | int _arg4 = (int ) 0; |
5040 | wxString * _arg5 = (wxString *) NULL; | |
5041 | long _arg6 = (long ) 0; | |
e508a2b6 | 5042 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5043 | char * _arg8 = (char *) "listBox"; |
5044 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5045 | wxPoint temp; |
5046 | PyObject * _obj2 = 0; | |
5047 | wxSize temp0; | |
5048 | PyObject * _obj3 = 0; | |
9c039d08 | 5049 | PyObject * _obj5 = 0; |
1d99702e | 5050 | PyObject * _argo7 = 0; |
eec92d76 | 5051 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
9c039d08 RD |
5052 | char _ptemp[128]; |
5053 | ||
5054 | self = self; | |
2f90df85 | 5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
9c039d08 | 5056 | return NULL; |
1d99702e RD |
5057 | if (_argo0) { |
5058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
5060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5061 | return NULL; | |
5062 | } | |
5063 | } | |
2f90df85 RD |
5064 | if (_obj2) |
5065 | { | |
5066 | _arg2 = &temp; | |
5067 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 5068 | return NULL; |
2f90df85 RD |
5069 | } |
5070 | if (_obj3) | |
5071 | { | |
5072 | _arg3 = &temp0; | |
5073 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 5074 | return NULL; |
2f90df85 | 5075 | } |
9c039d08 RD |
5076 | if (_obj5) |
5077 | { | |
5078 | _arg5 = wxString_LIST_helper(_obj5); | |
5079 | if (_arg5 == NULL) { | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
1d99702e RD |
5083 | if (_argo7) { |
5084 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5085 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9c039d08 RD |
5086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5087 | return NULL; | |
5088 | } | |
5089 | } | |
5090 | { | |
cf694132 RD |
5091 | if (_obj5) { |
5092 | _arg4 = PyList_Size(_obj5); | |
5093 | } | |
5094 | else { | |
5095 | _arg4 = 0; | |
5096 | } | |
9c039d08 | 5097 | } |
cf694132 | 5098 | { |
4268f798 | 5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5100 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 5101 | |
4268f798 | 5102 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5103 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5104 | } if (_result) { |
5105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5106 | _resultobj = Py_BuildValue("s",_ptemp); | |
5107 | } else { | |
5108 | Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | } | |
9c039d08 RD |
5111 | { |
5112 | delete [] _arg5; | |
5113 | } | |
5114 | return _resultobj; | |
5115 | } | |
5116 | ||
09f3d4e6 RD |
5117 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5118 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject * _resultobj; | |
5120 | wxCheckListBox * _result; | |
5121 | char *_kwnames[] = { NULL }; | |
5122 | char _ptemp[128]; | |
5123 | ||
5124 | self = self; | |
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5126 | return NULL; | |
5127 | { | |
4268f798 | 5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5129 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
09f3d4e6 | 5130 | |
4268f798 | 5131 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5132 | if (PyErr_Occurred()) return NULL; |
5133 | } if (_result) { | |
5134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | } else { | |
5137 | Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | } | |
5140 | return _resultobj; | |
5141 | } | |
5142 | ||
5143 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5144 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject * _resultobj; | |
5146 | bool _result; | |
5147 | wxCheckListBox * _arg0; | |
5148 | wxWindow * _arg1; | |
5149 | wxWindowID _arg2; | |
5150 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5151 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5152 | int _arg5 = (int ) 0; | |
5153 | wxString * _arg6 = (wxString *) NULL; | |
5154 | long _arg7 = (long ) 0; | |
5155 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5156 | char * _arg9 = (char *) "listBox"; | |
5157 | PyObject * _argo0 = 0; | |
5158 | PyObject * _argo1 = 0; | |
5159 | wxPoint temp; | |
5160 | PyObject * _obj3 = 0; | |
5161 | wxSize temp0; | |
5162 | PyObject * _obj4 = 0; | |
5163 | PyObject * _obj6 = 0; | |
5164 | PyObject * _argo8 = 0; | |
5165 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5166 | ||
5167 | self = self; | |
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5169 | return NULL; | |
5170 | if (_argo0) { | |
5171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5174 | return NULL; | |
5175 | } | |
5176 | } | |
5177 | if (_argo1) { | |
5178 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5181 | return NULL; | |
5182 | } | |
5183 | } | |
5184 | if (_obj3) | |
5185 | { | |
5186 | _arg3 = &temp; | |
5187 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5188 | return NULL; | |
5189 | } | |
5190 | if (_obj4) | |
5191 | { | |
5192 | _arg4 = &temp0; | |
5193 | if (! wxSize_helper(_obj4, &_arg4)) | |
5194 | return NULL; | |
5195 | } | |
5196 | if (_obj6) | |
5197 | { | |
5198 | _arg6 = wxString_LIST_helper(_obj6); | |
5199 | if (_arg6 == NULL) { | |
5200 | return NULL; | |
5201 | } | |
5202 | } | |
5203 | if (_argo8) { | |
5204 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5205 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5207 | return NULL; | |
5208 | } | |
5209 | } | |
5210 | { | |
5211 | if (_obj6) { | |
5212 | _arg5 = PyList_Size(_obj6); | |
5213 | } | |
5214 | else { | |
5215 | _arg5 = 0; | |
5216 | } | |
5217 | } | |
5218 | { | |
4268f798 | 5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5220 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
09f3d4e6 | 5221 | |
4268f798 | 5222 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5223 | if (PyErr_Occurred()) return NULL; |
5224 | } _resultobj = Py_BuildValue("i",_result); | |
5225 | { | |
5226 | delete [] _arg6; | |
5227 | } | |
5228 | return _resultobj; | |
5229 | } | |
5230 | ||
9c039d08 | 5231 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
efc5f224 | 5232 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5233 | PyObject * _resultobj; |
5234 | bool _result; | |
5235 | wxCheckListBox * _arg0; | |
5236 | int _arg1; | |
1d99702e | 5237 | PyObject * _argo0 = 0; |
efc5f224 | 5238 | char *_kwnames[] = { "self","uiIndex", NULL }; |
9c039d08 RD |
5239 | |
5240 | self = self; | |
efc5f224 | 5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 5242 | return NULL; |
1d99702e RD |
5243 | if (_argo0) { |
5244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5247 | return NULL; | |
5248 | } | |
5249 | } | |
cf694132 | 5250 | { |
4268f798 | 5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5252 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
cf694132 | 5253 | |
4268f798 | 5254 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5256 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5257 | return _resultobj; |
5258 | } | |
5259 | ||
5260 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 5261 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5262 | PyObject * _resultobj; |
5263 | wxCheckListBox * _arg0; | |
5264 | int _arg1; | |
694759cf | 5265 | int _arg2 = (int ) TRUE; |
1d99702e | 5266 | PyObject * _argo0 = 0; |
efc5f224 | 5267 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
9c039d08 RD |
5268 | |
5269 | self = self; | |
694759cf | 5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 5271 | return NULL; |
1d99702e RD |
5272 | if (_argo0) { |
5273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5276 | return NULL; | |
5277 | } | |
5278 | } | |
cf694132 | 5279 | { |
4268f798 | 5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5281 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
cf694132 | 5282 | |
4268f798 | 5283 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5284 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5285 | } Py_INCREF(Py_None); |
9c039d08 RD |
5286 | _resultobj = Py_None; |
5287 | return _resultobj; | |
5288 | } | |
5289 | ||
694759cf RD |
5290 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5291 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject * _resultobj; | |
5293 | wxCheckListBox * _arg0; | |
5294 | int _arg1; | |
5295 | wxString * _arg2; | |
5296 | int _arg3; | |
5297 | PyObject * _argo0 = 0; | |
5298 | PyObject * _obj2 = 0; | |
eec92d76 | 5299 | char *_kwnames[] = { "self","choices","pos", NULL }; |
694759cf RD |
5300 | |
5301 | self = self; | |
5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5303 | return NULL; | |
5304 | if (_argo0) { | |
5305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5308 | return NULL; | |
5309 | } | |
5310 | } | |
5311 | { | |
5312 | _arg2 = wxString_LIST_helper(_obj2); | |
5313 | if (_arg2 == NULL) { | |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
5317 | { | |
5318 | if (_obj2) { | |
5319 | _arg1 = PyList_Size(_obj2); | |
5320 | } | |
5321 | else { | |
5322 | _arg1 = 0; | |
5323 | } | |
5324 | } | |
5325 | { | |
4268f798 | 5326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5327 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
694759cf | 5328 | |
4268f798 | 5329 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5330 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5331 | } Py_INCREF(Py_None); |
5332 | _resultobj = Py_None; | |
5333 | { | |
5334 | delete [] _arg2; | |
5335 | } | |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
9c039d08 | 5339 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
efc5f224 | 5340 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5341 | PyObject * _resultobj; |
5342 | int _result; | |
5343 | wxCheckListBox * _arg0; | |
1d99702e | 5344 | PyObject * _argo0 = 0; |
efc5f224 | 5345 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
5346 | |
5347 | self = self; | |
efc5f224 | 5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
9c039d08 | 5349 | return NULL; |
1d99702e RD |
5350 | if (_argo0) { |
5351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5354 | return NULL; | |
5355 | } | |
5356 | } | |
cf694132 | 5357 | { |
4268f798 | 5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5359 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
cf694132 | 5360 | |
4268f798 | 5361 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5363 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5364 | return _resultobj; |
5365 | } | |
5366 | ||
d56cebe7 RD |
5367 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5368 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject * _resultobj; | |
5370 | wxTextAttr * _result; | |
5371 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5372 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5373 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5374 | wxColour temp; | |
5375 | PyObject * _obj0 = 0; | |
5376 | wxColour temp0; | |
5377 | PyObject * _obj1 = 0; | |
5378 | PyObject * _argo2 = 0; | |
5379 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5380 | char _ptemp[128]; | |
5381 | ||
5382 | self = self; | |
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5384 | return NULL; | |
5385 | if (_obj0) | |
5386 | { | |
5387 | _arg0 = &temp; | |
5388 | if (! wxColour_helper(_obj0, &_arg0)) | |
5389 | return NULL; | |
5390 | } | |
5391 | if (_obj1) | |
5392 | { | |
5393 | _arg1 = &temp0; | |
5394 | if (! wxColour_helper(_obj1, &_arg1)) | |
5395 | return NULL; | |
5396 | } | |
5397 | if (_argo2) { | |
5398 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5399 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5401 | return NULL; | |
5402 | } | |
5403 | } | |
5404 | { | |
4268f798 | 5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5406 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
d56cebe7 | 5407 | |
4268f798 | 5408 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5409 | if (PyErr_Occurred()) return NULL; |
5410 | } if (_result) { | |
5411 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5412 | _resultobj = Py_BuildValue("s",_ptemp); | |
5413 | } else { | |
5414 | Py_INCREF(Py_None); | |
5415 | _resultobj = Py_None; | |
5416 | } | |
5417 | return _resultobj; | |
5418 | } | |
5419 | ||
5420 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5421 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5422 | PyObject * _resultobj; | |
5423 | wxTextAttr * _arg0; | |
5424 | PyObject * _argo0 = 0; | |
5425 | char *_kwnames[] = { "self", NULL }; | |
5426 | ||
5427 | self = self; | |
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5429 | return NULL; | |
5430 | if (_argo0) { | |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
4268f798 | 5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5439 | delete_wxTextAttr(_arg0); |
d56cebe7 | 5440 | |
4268f798 | 5441 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5442 | if (PyErr_Occurred()) return NULL; |
5443 | } Py_INCREF(Py_None); | |
5444 | _resultobj = Py_None; | |
5445 | return _resultobj; | |
5446 | } | |
5447 | ||
5448 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5449 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject * _resultobj; | |
5451 | wxTextAttr * _arg0; | |
5452 | wxColour * _arg1; | |
5453 | PyObject * _argo0 = 0; | |
5454 | wxColour temp; | |
5455 | PyObject * _obj1 = 0; | |
5456 | char *_kwnames[] = { "self","colText", NULL }; | |
5457 | ||
5458 | self = self; | |
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5460 | return NULL; | |
5461 | if (_argo0) { | |
5462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5465 | return NULL; | |
5466 | } | |
5467 | } | |
5468 | { | |
5469 | _arg1 = &temp; | |
5470 | if (! wxColour_helper(_obj1, &_arg1)) | |
5471 | return NULL; | |
5472 | } | |
5473 | { | |
4268f798 | 5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5475 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
d56cebe7 | 5476 | |
4268f798 | 5477 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5478 | if (PyErr_Occurred()) return NULL; |
5479 | } Py_INCREF(Py_None); | |
5480 | _resultobj = Py_None; | |
5481 | return _resultobj; | |
5482 | } | |
5483 | ||
5484 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5485 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5486 | PyObject * _resultobj; | |
5487 | wxTextAttr * _arg0; | |
5488 | wxColour * _arg1; | |
5489 | PyObject * _argo0 = 0; | |
5490 | wxColour temp; | |
5491 | PyObject * _obj1 = 0; | |
5492 | char *_kwnames[] = { "self","colBack", NULL }; | |
5493 | ||
5494 | self = self; | |
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5496 | return NULL; | |
5497 | if (_argo0) { | |
5498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5501 | return NULL; | |
5502 | } | |
5503 | } | |
5504 | { | |
5505 | _arg1 = &temp; | |
5506 | if (! wxColour_helper(_obj1, &_arg1)) | |
5507 | return NULL; | |
5508 | } | |
5509 | { | |
4268f798 | 5510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5511 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
d56cebe7 | 5512 | |
4268f798 | 5513 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5514 | if (PyErr_Occurred()) return NULL; |
5515 | } Py_INCREF(Py_None); | |
5516 | _resultobj = Py_None; | |
5517 | return _resultobj; | |
5518 | } | |
5519 | ||
5520 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5521 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5522 | PyObject * _resultobj; | |
5523 | wxTextAttr * _arg0; | |
5524 | wxFont * _arg1; | |
5525 | PyObject * _argo0 = 0; | |
5526 | PyObject * _argo1 = 0; | |
5527 | char *_kwnames[] = { "self","font", NULL }; | |
5528 | ||
5529 | self = self; | |
5530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5531 | return NULL; | |
5532 | if (_argo0) { | |
5533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5536 | return NULL; | |
5537 | } | |
5538 | } | |
5539 | if (_argo1) { | |
5540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5543 | return NULL; | |
5544 | } | |
5545 | } | |
5546 | { | |
4268f798 | 5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5548 | wxTextAttr_SetFont(_arg0,*_arg1); |
d56cebe7 | 5549 | |
4268f798 | 5550 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5551 | if (PyErr_Occurred()) return NULL; |
5552 | } Py_INCREF(Py_None); | |
5553 | _resultobj = Py_None; | |
5554 | return _resultobj; | |
5555 | } | |
5556 | ||
5557 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5558 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject * _resultobj; | |
5560 | bool _result; | |
5561 | wxTextAttr * _arg0; | |
5562 | PyObject * _argo0 = 0; | |
5563 | char *_kwnames[] = { "self", NULL }; | |
5564 | ||
5565 | self = self; | |
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5567 | return NULL; | |
5568 | if (_argo0) { | |
5569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
4268f798 | 5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5577 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
d56cebe7 | 5578 | |
4268f798 | 5579 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5580 | if (PyErr_Occurred()) return NULL; |
5581 | } _resultobj = Py_BuildValue("i",_result); | |
5582 | return _resultobj; | |
5583 | } | |
5584 | ||
5585 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5586 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject * _resultobj; | |
5588 | bool _result; | |
5589 | wxTextAttr * _arg0; | |
5590 | PyObject * _argo0 = 0; | |
5591 | char *_kwnames[] = { "self", NULL }; | |
5592 | ||
5593 | self = self; | |
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5595 | return NULL; | |
5596 | if (_argo0) { | |
5597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5600 | return NULL; | |
5601 | } | |
5602 | } | |
5603 | { | |
4268f798 | 5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5605 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
d56cebe7 | 5606 | |
4268f798 | 5607 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5608 | if (PyErr_Occurred()) return NULL; |
5609 | } _resultobj = Py_BuildValue("i",_result); | |
5610 | return _resultobj; | |
5611 | } | |
5612 | ||
5613 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5614 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject * _resultobj; | |
5616 | bool _result; | |
5617 | wxTextAttr * _arg0; | |
5618 | PyObject * _argo0 = 0; | |
5619 | char *_kwnames[] = { "self", NULL }; | |
5620 | ||
5621 | self = self; | |
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5623 | return NULL; | |
5624 | if (_argo0) { | |
5625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5628 | return NULL; | |
5629 | } | |
5630 | } | |
5631 | { | |
4268f798 | 5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5633 | _result = (bool )wxTextAttr_HasFont(_arg0); |
d56cebe7 | 5634 | |
4268f798 | 5635 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5636 | if (PyErr_Occurred()) return NULL; |
5637 | } _resultobj = Py_BuildValue("i",_result); | |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5642 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | wxColour * _result; | |
5645 | wxTextAttr * _arg0; | |
5646 | PyObject * _argo0 = 0; | |
5647 | char *_kwnames[] = { "self", NULL }; | |
5648 | char _ptemp[128]; | |
5649 | ||
5650 | self = self; | |
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
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_GetTextColour. Expected _wxTextAttr_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
4268f798 | 5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5662 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
d56cebe7 | 5663 | |
4268f798 | 5664 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5665 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5667 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5668 | return _resultobj; |
5669 | } | |
5670 | ||
5671 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5672 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | wxColour * _result; | |
5675 | wxTextAttr * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "self", NULL }; | |
5678 | char _ptemp[128]; | |
5679 | ||
5680 | self = self; | |
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5682 | return NULL; | |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | { | |
4268f798 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5692 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
d56cebe7 | 5693 | |
4268f798 | 5694 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5695 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5697 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5698 | return _resultobj; |
5699 | } | |
5700 | ||
5701 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5702 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5703 | PyObject * _resultobj; | |
5704 | wxFont * _result; | |
5705 | wxTextAttr * _arg0; | |
5706 | PyObject * _argo0 = 0; | |
5707 | char *_kwnames[] = { "self", NULL }; | |
5708 | char _ptemp[128]; | |
5709 | ||
5710 | self = self; | |
5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5712 | return NULL; | |
5713 | if (_argo0) { | |
5714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5717 | return NULL; | |
5718 | } | |
5719 | } | |
5720 | { | |
4268f798 | 5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5722 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
d56cebe7 | 5723 | |
4268f798 | 5724 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 5725 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5727 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
5728 | return _resultobj; |
5729 | } | |
5730 | ||
98624b49 RD |
5731 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
5732 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5733 | PyObject * _resultobj; | |
5734 | bool _result; | |
5735 | wxTextAttr * _arg0; | |
5736 | PyObject * _argo0 = 0; | |
5737 | char *_kwnames[] = { "self", NULL }; | |
5738 | ||
5739 | self = self; | |
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
5741 | return NULL; | |
5742 | if (_argo0) { | |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
5749 | { | |
4268f798 | 5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5751 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
98624b49 | 5752 | |
4268f798 | 5753 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
5754 | if (PyErr_Occurred()) return NULL; |
5755 | } _resultobj = Py_BuildValue("i",_result); | |
5756 | return _resultobj; | |
5757 | } | |
5758 | ||
2f4e9287 RD |
5759 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
5760 | PyObject * _resultobj; | |
5761 | wxTextAttr * _result; | |
5762 | wxTextAttr * _arg0; | |
5763 | wxTextAttr * _arg1; | |
5764 | wxTextCtrl * _arg2; | |
5765 | PyObject * _argo0 = 0; | |
5766 | PyObject * _argo1 = 0; | |
5767 | PyObject * _argo2 = 0; | |
5768 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
5769 | char _ptemp[128]; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | if (_argo1) { | |
5782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
5784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5785 | return NULL; | |
5786 | } | |
5787 | } | |
5788 | if (_argo2) { | |
5789 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5790 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
5791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
5792 | return NULL; | |
5793 | } | |
5794 | } | |
5795 | { | |
4268f798 | 5796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5797 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
2f4e9287 | 5798 | |
4268f798 | 5799 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5800 | if (PyErr_Occurred()) return NULL; |
5801 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
5802 | _resultobj = Py_BuildValue("s",_ptemp); | |
5803 | return _resultobj; | |
5804 | } | |
5805 | ||
8ab979d7 RD |
5806 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
5807 | wxTextCtrl *src; | |
5808 | wxControl *dest; | |
5809 | src = (wxTextCtrl *) ptr; | |
5810 | dest = (wxControl *) src; | |
5811 | return (void *) dest; | |
5812 | } | |
5813 | ||
5814 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
5815 | wxTextCtrl *src; | |
5816 | wxWindow *dest; | |
5817 | src = (wxTextCtrl *) ptr; | |
5818 | dest = (wxWindow *) src; | |
5819 | return (void *) dest; | |
5820 | } | |
5821 | ||
5822 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
5823 | wxTextCtrl *src; | |
5824 | wxEvtHandler *dest; | |
5825 | src = (wxTextCtrl *) ptr; | |
5826 | dest = (wxEvtHandler *) src; | |
5827 | return (void *) dest; | |
5828 | } | |
5829 | ||
9416aa89 RD |
5830 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
5831 | wxTextCtrl *src; | |
5832 | wxObject *dest; | |
5833 | src = (wxTextCtrl *) ptr; | |
5834 | dest = (wxObject *) src; | |
5835 | return (void *) dest; | |
5836 | } | |
5837 | ||
8ab979d7 | 5838 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 5839 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5840 | PyObject * _resultobj; |
5841 | wxTextCtrl * _result; | |
5842 | wxWindow * _arg0; | |
5843 | wxWindowID _arg1; | |
1d99702e | 5844 | char * _arg2 = (char *) ""; |
e508a2b6 RD |
5845 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
5846 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5847 | long _arg5 = (long ) 0; |
e508a2b6 | 5848 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5849 | char * _arg7 = (char *) "text"; |
5850 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5851 | wxPoint temp; |
5852 | PyObject * _obj3 = 0; | |
5853 | wxSize temp0; | |
5854 | PyObject * _obj4 = 0; | |
1d99702e | 5855 | PyObject * _argo6 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5857 | char _ptemp[128]; |
5858 | ||
5859 | self = self; | |
09f3d4e6 RD |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
5861 | return NULL; | |
5862 | if (_argo0) { | |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
5866 | return NULL; | |
5867 | } | |
5868 | } | |
5869 | if (_obj3) | |
5870 | { | |
5871 | _arg3 = &temp; | |
5872 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5873 | return NULL; | |
5874 | } | |
5875 | if (_obj4) | |
5876 | { | |
5877 | _arg4 = &temp0; | |
5878 | if (! wxSize_helper(_obj4, &_arg4)) | |
5879 | return NULL; | |
5880 | } | |
5881 | if (_argo6) { | |
5882 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5883 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
5885 | return NULL; | |
5886 | } | |
5887 | } | |
5888 | { | |
4268f798 | 5889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5890 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
09f3d4e6 | 5891 | |
4268f798 | 5892 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5893 | if (PyErr_Occurred()) return NULL; |
5894 | } if (_result) { | |
5895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5896 | _resultobj = Py_BuildValue("s",_ptemp); | |
5897 | } else { | |
5898 | Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | } | |
5901 | return _resultobj; | |
5902 | } | |
5903 | ||
5904 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
5905 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject * _resultobj; | |
5907 | wxTextCtrl * _result; | |
5908 | char *_kwnames[] = { NULL }; | |
5909 | char _ptemp[128]; | |
5910 | ||
5911 | self = self; | |
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
5913 | return NULL; | |
5914 | { | |
4268f798 | 5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5916 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
09f3d4e6 | 5917 | |
4268f798 | 5918 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5919 | if (PyErr_Occurred()) return NULL; |
5920 | } if (_result) { | |
5921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5922 | _resultobj = Py_BuildValue("s",_ptemp); | |
5923 | } else { | |
5924 | Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | } | |
5927 | return _resultobj; | |
5928 | } | |
5929 | ||
5930 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
5931 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject * _resultobj; | |
5933 | bool _result; | |
5934 | wxTextCtrl * _arg0; | |
5935 | wxWindow * _arg1; | |
5936 | wxWindowID _arg2; | |
5937 | char * _arg3 = (char *) ""; | |
5938 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
5939 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
5940 | long _arg6 = (long ) 0; | |
5941 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5942 | char * _arg8 = (char *) "text"; | |
5943 | PyObject * _argo0 = 0; | |
5944 | PyObject * _argo1 = 0; | |
5945 | wxPoint temp; | |
5946 | PyObject * _obj4 = 0; | |
5947 | wxSize temp0; | |
5948 | PyObject * _obj5 = 0; | |
5949 | PyObject * _argo7 = 0; | |
5950 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
8ab979d7 | 5954 | return NULL; |
1d99702e RD |
5955 | if (_argo0) { |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
8ab979d7 RD |
5959 | return NULL; |
5960 | } | |
5961 | } | |
09f3d4e6 RD |
5962 | if (_argo1) { |
5963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | if (_obj4) | |
2f90df85 | 5970 | { |
09f3d4e6 RD |
5971 | _arg4 = &temp; |
5972 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 5973 | return NULL; |
2f90df85 | 5974 | } |
09f3d4e6 | 5975 | if (_obj5) |
2f90df85 | 5976 | { |
09f3d4e6 RD |
5977 | _arg5 = &temp0; |
5978 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 5979 | return NULL; |
2f90df85 | 5980 | } |
09f3d4e6 RD |
5981 | if (_argo7) { |
5982 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5983 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
5985 | return NULL; |
5986 | } | |
5987 | } | |
cf694132 | 5988 | { |
4268f798 | 5989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5990 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 5991 | |
4268f798 | 5992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5993 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 5994 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5995 | return _resultobj; |
5996 | } | |
5997 | ||
98624b49 RD |
5998 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
5999 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6000 | PyObject * _resultobj; |
98624b49 | 6001 | wxString * _result; |
8ab979d7 | 6002 | wxTextCtrl * _arg0; |
1d99702e | 6003 | PyObject * _argo0 = 0; |
efc5f224 | 6004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6005 | |
6006 | self = self; | |
98624b49 | 6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 6008 | return NULL; |
1d99702e RD |
6009 | if (_argo0) { |
6010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6013 | return NULL; |
6014 | } | |
6015 | } | |
cf694132 | 6016 | { |
4268f798 | 6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6018 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
cf694132 | 6019 | |
4268f798 | 6020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6021 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6022 | }{ |
c8bc7bb8 RD |
6023 | #if wxUSE_UNICODE |
6024 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6025 | #else | |
98624b49 | 6026 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6027 | #endif |
98624b49 RD |
6028 | } |
6029 | { | |
6030 | delete _result; | |
6031 | } | |
8ab979d7 RD |
6032 | return _resultobj; |
6033 | } | |
6034 | ||
98624b49 RD |
6035 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6036 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6037 | PyObject * _resultobj; |
6038 | wxTextCtrl * _arg0; | |
98624b49 | 6039 | wxString * _arg1; |
1d99702e | 6040 | PyObject * _argo0 = 0; |
98624b49 RD |
6041 | PyObject * _obj1 = 0; |
6042 | char *_kwnames[] = { "self","value", NULL }; | |
8ab979d7 RD |
6043 | |
6044 | self = self; | |
98624b49 | 6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6046 | return NULL; |
1d99702e RD |
6047 | if (_argo0) { |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6051 | return NULL; |
6052 | } | |
6053 | } | |
98624b49 | 6054 | { |
c8bc7bb8 RD |
6055 | _arg1 = wxString_in_helper(_obj1); |
6056 | if (_arg1 == NULL) | |
98624b49 | 6057 | return NULL; |
98624b49 | 6058 | } |
cf694132 | 6059 | { |
4268f798 | 6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6061 | wxTextCtrl_SetValue(_arg0,*_arg1); |
cf694132 | 6062 | |
4268f798 | 6063 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6065 | } Py_INCREF(Py_None); |
8ab979d7 | 6066 | _resultobj = Py_None; |
98624b49 RD |
6067 | { |
6068 | if (_obj1) | |
6069 | delete _arg1; | |
6070 | } | |
8ab979d7 RD |
6071 | return _resultobj; |
6072 | } | |
6073 | ||
68320e40 RD |
6074 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6075 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject * _resultobj; | |
6077 | wxString * _result; | |
6078 | wxTextCtrl * _arg0; | |
6079 | long _arg1; | |
6080 | long _arg2; | |
6081 | PyObject * _argo0 = 0; | |
6082 | char *_kwnames[] = { "self","from","to", NULL }; | |
6083 | ||
6084 | self = self; | |
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6086 | return NULL; | |
6087 | if (_argo0) { | |
6088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6096 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); |
68320e40 RD |
6097 | |
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) return NULL; | |
6100 | }{ | |
c8bc7bb8 RD |
6101 | #if wxUSE_UNICODE |
6102 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6103 | #else | |
68320e40 | 6104 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6105 | #endif |
68320e40 RD |
6106 | } |
6107 | { | |
6108 | delete _result; | |
6109 | } | |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
98624b49 RD |
6113 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6114 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6115 | PyObject * _resultobj; |
98624b49 | 6116 | int _result; |
8ab979d7 | 6117 | wxTextCtrl * _arg0; |
98624b49 | 6118 | long _arg1; |
1d99702e | 6119 | PyObject * _argo0 = 0; |
98624b49 | 6120 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6121 | |
6122 | self = self; | |
98624b49 | 6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6124 | return NULL; |
1d99702e RD |
6125 | if (_argo0) { |
6126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6129 | return NULL; |
6130 | } | |
6131 | } | |
cf694132 | 6132 | { |
4268f798 | 6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6134 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
cf694132 | 6135 | |
4268f798 | 6136 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6137 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6138 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6139 | return _resultobj; |
6140 | } | |
6141 | ||
98624b49 RD |
6142 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6143 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6144 | PyObject * _resultobj; |
98624b49 | 6145 | wxString * _result; |
8ab979d7 | 6146 | wxTextCtrl * _arg0; |
98624b49 | 6147 | long _arg1; |
1d99702e | 6148 | PyObject * _argo0 = 0; |
98624b49 | 6149 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6150 | |
6151 | self = self; | |
98624b49 | 6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6153 | return NULL; |
1d99702e RD |
6154 | if (_argo0) { |
6155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6158 | return NULL; |
6159 | } | |
6160 | } | |
cf694132 | 6161 | { |
4268f798 | 6162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6163 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
cf694132 | 6164 | |
4268f798 | 6165 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6166 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6167 | }{ |
c8bc7bb8 RD |
6168 | #if wxUSE_UNICODE |
6169 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6170 | #else | |
98624b49 | 6171 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6172 | #endif |
98624b49 RD |
6173 | } |
6174 | { | |
6175 | delete _result; | |
6176 | } | |
8ab979d7 RD |
6177 | return _resultobj; |
6178 | } | |
6179 | ||
98624b49 RD |
6180 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6181 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6182 | PyObject * _resultobj; |
98624b49 | 6183 | int _result; |
8ab979d7 | 6184 | wxTextCtrl * _arg0; |
1d99702e | 6185 | PyObject * _argo0 = 0; |
efc5f224 | 6186 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6187 | |
6188 | self = self; | |
98624b49 | 6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
8ab979d7 | 6190 | return NULL; |
1d99702e RD |
6191 | if (_argo0) { |
6192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6195 | return NULL; |
6196 | } | |
6197 | } | |
cf694132 | 6198 | { |
4268f798 | 6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6200 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
cf694132 | 6201 | |
4268f798 | 6202 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6203 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6204 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6205 | return _resultobj; |
6206 | } | |
6207 | ||
98624b49 RD |
6208 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6209 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6210 | PyObject * _resultobj; |
98624b49 | 6211 | bool _result; |
8ab979d7 | 6212 | wxTextCtrl * _arg0; |
1d99702e | 6213 | PyObject * _argo0 = 0; |
efc5f224 | 6214 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6215 | |
6216 | self = self; | |
98624b49 | 6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
8ab979d7 | 6218 | return NULL; |
1d99702e RD |
6219 | if (_argo0) { |
6220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6223 | return NULL; |
6224 | } | |
6225 | } | |
cf694132 | 6226 | { |
4268f798 | 6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6228 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
cf694132 | 6229 | |
4268f798 | 6230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6231 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6232 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6233 | return _resultobj; |
6234 | } | |
6235 | ||
98624b49 RD |
6236 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6237 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6238 | PyObject * _resultobj; |
98624b49 | 6239 | bool _result; |
8ab979d7 | 6240 | wxTextCtrl * _arg0; |
1d99702e | 6241 | PyObject * _argo0 = 0; |
98624b49 | 6242 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6243 | |
6244 | self = self; | |
98624b49 | 6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
8ab979d7 | 6246 | return NULL; |
1d99702e RD |
6247 | if (_argo0) { |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6251 | return NULL; |
6252 | } | |
6253 | } | |
cf694132 | 6254 | { |
4268f798 | 6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6256 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
cf694132 | 6257 | |
4268f798 | 6258 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6259 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6260 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6261 | return _resultobj; |
6262 | } | |
6263 | ||
98624b49 RD |
6264 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6265 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6266 | PyObject * _resultobj; |
8ab979d7 | 6267 | wxTextCtrl * _arg0; |
98624b49 RD |
6268 | long * _arg1; |
6269 | long temp; | |
6270 | long * _arg2; | |
6271 | long temp0; | |
1d99702e | 6272 | PyObject * _argo0 = 0; |
98624b49 | 6273 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6274 | |
6275 | self = self; | |
98624b49 RD |
6276 | { |
6277 | _arg1 = &temp; | |
6278 | } | |
6279 | { | |
6280 | _arg2 = &temp0; | |
6281 | } | |
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
8ab979d7 | 6283 | return NULL; |
1d99702e RD |
6284 | if (_argo0) { |
6285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6288 | return NULL; |
6289 | } | |
6290 | } | |
8ab979d7 | 6291 | { |
4268f798 | 6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6293 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
cf694132 | 6294 | |
4268f798 | 6295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6296 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6297 | } Py_INCREF(Py_None); |
6298 | _resultobj = Py_None; | |
6299 | { | |
6300 | PyObject *o; | |
6301 | o = PyInt_FromLong((long) (*_arg1)); | |
6302 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6303 | } |
6304 | { | |
98624b49 RD |
6305 | PyObject *o; |
6306 | o = PyInt_FromLong((long) (*_arg2)); | |
6307 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6308 | } |
6309 | return _resultobj; | |
6310 | } | |
6311 | ||
b78b83ec RD |
6312 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6313 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6314 | PyObject * _resultobj; | |
6315 | wxString * _result; | |
6316 | wxTextCtrl * _arg0; | |
6317 | PyObject * _argo0 = 0; | |
6318 | char *_kwnames[] = { "self", NULL }; | |
6319 | ||
6320 | self = self; | |
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6322 | return NULL; | |
6323 | if (_argo0) { | |
6324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
6330 | { | |
4268f798 | 6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6332 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
b78b83ec | 6333 | |
4268f798 | 6334 | wxPyEndAllowThreads(__tstate); |
b78b83ec RD |
6335 | if (PyErr_Occurred()) return NULL; |
6336 | }{ | |
c8bc7bb8 RD |
6337 | #if wxUSE_UNICODE |
6338 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6339 | #else | |
b78b83ec | 6340 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6341 | #endif |
b78b83ec RD |
6342 | } |
6343 | { | |
6344 | delete _result; | |
6345 | } | |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
98624b49 RD |
6349 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6350 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6351 | PyObject * _resultobj; |
8ab979d7 | 6352 | wxTextCtrl * _arg0; |
1d99702e | 6353 | PyObject * _argo0 = 0; |
efc5f224 | 6354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6355 | |
6356 | self = self; | |
98624b49 | 6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
8ab979d7 | 6358 | return NULL; |
1d99702e RD |
6359 | if (_argo0) { |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6363 | return NULL; |
6364 | } | |
6365 | } | |
cf694132 | 6366 | { |
4268f798 | 6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6368 | wxTextCtrl_Clear(_arg0); |
cf694132 | 6369 | |
4268f798 | 6370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6371 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6372 | } Py_INCREF(Py_None); |
6373 | _resultobj = Py_None; | |
8ab979d7 RD |
6374 | return _resultobj; |
6375 | } | |
6376 | ||
98624b49 RD |
6377 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
6378 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6379 | PyObject * _resultobj; |
8ab979d7 | 6380 | wxTextCtrl * _arg0; |
98624b49 RD |
6381 | long _arg1; |
6382 | long _arg2; | |
6383 | wxString * _arg3; | |
1d99702e | 6384 | PyObject * _argo0 = 0; |
98624b49 RD |
6385 | PyObject * _obj3 = 0; |
6386 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
8ab979d7 RD |
6387 | |
6388 | self = self; | |
98624b49 | 6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 6390 | return NULL; |
1d99702e RD |
6391 | if (_argo0) { |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6395 | return NULL; |
6396 | } | |
6397 | } | |
98624b49 | 6398 | { |
c8bc7bb8 RD |
6399 | _arg3 = wxString_in_helper(_obj3); |
6400 | if (_arg3 == NULL) | |
98624b49 | 6401 | return NULL; |
98624b49 | 6402 | } |
8ab979d7 | 6403 | { |
4268f798 | 6404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6405 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 6406 | |
4268f798 | 6407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6408 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6409 | } Py_INCREF(Py_None); |
6410 | _resultobj = Py_None; | |
8ab979d7 | 6411 | { |
98624b49 RD |
6412 | if (_obj3) |
6413 | delete _arg3; | |
8ab979d7 RD |
6414 | } |
6415 | return _resultobj; | |
6416 | } | |
6417 | ||
98624b49 RD |
6418 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
6419 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject * _resultobj; | |
8ab979d7 | 6421 | wxTextCtrl * _arg0; |
98624b49 RD |
6422 | long _arg1; |
6423 | long _arg2; | |
1d99702e | 6424 | PyObject * _argo0 = 0; |
98624b49 | 6425 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
6426 | |
6427 | self = self; | |
98624b49 | 6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6429 | return NULL; |
1d99702e RD |
6430 | if (_argo0) { |
6431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6434 | return NULL; |
6435 | } | |
6436 | } | |
cf694132 | 6437 | { |
4268f798 | 6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6439 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
cf694132 | 6440 | |
4268f798 | 6441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6442 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6443 | } Py_INCREF(Py_None); |
6444 | _resultobj = Py_None; | |
8ab979d7 RD |
6445 | return _resultobj; |
6446 | } | |
6447 | ||
6448 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
efc5f224 | 6449 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6450 | PyObject * _resultobj; |
6451 | bool _result; | |
6452 | wxTextCtrl * _arg0; | |
6453 | wxString * _arg1; | |
1d99702e | 6454 | PyObject * _argo0 = 0; |
8ab979d7 | 6455 | PyObject * _obj1 = 0; |
98624b49 | 6456 | char *_kwnames[] = { "self","file", NULL }; |
8ab979d7 RD |
6457 | |
6458 | self = self; | |
efc5f224 | 6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6460 | return NULL; |
1d99702e RD |
6461 | if (_argo0) { |
6462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
6465 | return NULL; | |
6466 | } | |
6467 | } | |
6468 | { | |
c8bc7bb8 RD |
6469 | _arg1 = wxString_in_helper(_obj1); |
6470 | if (_arg1 == NULL) | |
185d7c3e | 6471 | return NULL; |
8ab979d7 | 6472 | } |
cf694132 | 6473 | { |
4268f798 | 6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6475 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
cf694132 | 6476 | |
4268f798 | 6477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6479 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6480 | { |
6481 | if (_obj1) | |
6482 | delete _arg1; | |
6483 | } | |
6484 | return _resultobj; | |
6485 | } | |
6486 | ||
98624b49 RD |
6487 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
6488 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6489 | PyObject * _resultobj; |
98624b49 | 6490 | bool _result; |
8ab979d7 | 6491 | wxTextCtrl * _arg0; |
98624b49 | 6492 | wxString * _arg1 = (wxString *) &wxEmptyString; |
1d99702e | 6493 | PyObject * _argo0 = 0; |
98624b49 RD |
6494 | PyObject * _obj1 = 0; |
6495 | char *_kwnames[] = { "self","file", NULL }; | |
8ab979d7 RD |
6496 | |
6497 | self = self; | |
98624b49 | 6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6499 | return NULL; |
1d99702e RD |
6500 | if (_argo0) { |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6504 | return NULL; |
6505 | } | |
6506 | } | |
98624b49 RD |
6507 | if (_obj1) |
6508 | { | |
c8bc7bb8 RD |
6509 | _arg1 = wxString_in_helper(_obj1); |
6510 | if (_arg1 == NULL) | |
98624b49 | 6511 | return NULL; |
98624b49 | 6512 | } |
cf694132 | 6513 | { |
4268f798 | 6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6515 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
cf694132 | 6516 | |
4268f798 | 6517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6518 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6519 | } _resultobj = Py_BuildValue("i",_result); |
6520 | { | |
6521 | if (_obj1) | |
6522 | delete _arg1; | |
6523 | } | |
8ab979d7 RD |
6524 | return _resultobj; |
6525 | } | |
6526 | ||
98624b49 RD |
6527 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
6528 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6529 | PyObject * _resultobj; |
6530 | wxTextCtrl * _arg0; | |
1d99702e | 6531 | PyObject * _argo0 = 0; |
98624b49 | 6532 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6533 | |
6534 | self = self; | |
98624b49 | 6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
8ab979d7 | 6536 | return NULL; |
1d99702e RD |
6537 | if (_argo0) { |
6538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6541 | return NULL; |
6542 | } | |
6543 | } | |
cf694132 | 6544 | { |
4268f798 | 6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6546 | wxTextCtrl_DiscardEdits(_arg0); |
cf694132 | 6547 | |
4268f798 | 6548 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6549 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6550 | } Py_INCREF(Py_None); |
8ab979d7 | 6551 | _resultobj = Py_None; |
8ab979d7 RD |
6552 | return _resultobj; |
6553 | } | |
6554 | ||
98624b49 RD |
6555 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
6556 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6557 | PyObject * _resultobj; |
6558 | wxTextCtrl * _arg0; | |
98624b49 | 6559 | unsigned long _arg1; |
1d99702e | 6560 | PyObject * _argo0 = 0; |
98624b49 | 6561 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
6562 | |
6563 | self = self; | |
98624b49 | 6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6565 | return NULL; |
1d99702e RD |
6566 | if (_argo0) { |
6567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6570 | return NULL; |
6571 | } | |
6572 | } | |
cf694132 | 6573 | { |
4268f798 | 6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6575 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
cf694132 | 6576 | |
4268f798 | 6577 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6578 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6579 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6580 | _resultobj = Py_None; |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
98624b49 RD |
6584 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
6585 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6586 | PyObject * _resultobj; |
6587 | wxTextCtrl * _arg0; | |
98624b49 | 6588 | wxString * _arg1; |
1d99702e | 6589 | PyObject * _argo0 = 0; |
98624b49 RD |
6590 | PyObject * _obj1 = 0; |
6591 | char *_kwnames[] = { "self","text", NULL }; | |
8ab979d7 RD |
6592 | |
6593 | self = self; | |
98624b49 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6595 | return NULL; |
1d99702e RD |
6596 | if (_argo0) { |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6600 | return NULL; |
6601 | } | |
6602 | } | |
6603 | { | |
c8bc7bb8 RD |
6604 | _arg1 = wxString_in_helper(_obj1); |
6605 | if (_arg1 == NULL) | |
8ab979d7 | 6606 | return NULL; |
8ab979d7 | 6607 | } |
cf694132 | 6608 | { |
4268f798 | 6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6610 | wxTextCtrl_WriteText(_arg0,*_arg1); |
cf694132 | 6611 | |
4268f798 | 6612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6613 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6614 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6615 | _resultobj = Py_None; |
6616 | { | |
98624b49 RD |
6617 | if (_obj1) |
6618 | delete _arg1; | |
8ab979d7 RD |
6619 | } |
6620 | return _resultobj; | |
6621 | } | |
6622 | ||
98624b49 RD |
6623 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
6624 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6625 | PyObject * _resultobj; |
8ab979d7 RD |
6626 | wxTextCtrl * _arg0; |
6627 | wxString * _arg1; | |
1d99702e | 6628 | PyObject * _argo0 = 0; |
8ab979d7 | 6629 | PyObject * _obj1 = 0; |
98624b49 | 6630 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
6631 | |
6632 | self = self; | |
98624b49 | 6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6634 | return NULL; |
1d99702e RD |
6635 | if (_argo0) { |
6636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6639 | return NULL; |
6640 | } | |
6641 | } | |
6642 | { | |
c8bc7bb8 RD |
6643 | _arg1 = wxString_in_helper(_obj1); |
6644 | if (_arg1 == NULL) | |
185d7c3e | 6645 | return NULL; |
8ab979d7 | 6646 | } |
cf694132 | 6647 | { |
4268f798 | 6648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6649 | wxTextCtrl_AppendText(_arg0,*_arg1); |
cf694132 | 6650 | |
4268f798 | 6651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6652 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6653 | } Py_INCREF(Py_None); |
6654 | _resultobj = Py_None; | |
8ab979d7 RD |
6655 | { |
6656 | if (_obj1) | |
6657 | delete _arg1; | |
6658 | } | |
6659 | return _resultobj; | |
6660 | } | |
6661 | ||
98624b49 RD |
6662 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
6663 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6664 | PyObject * _resultobj; |
98624b49 | 6665 | bool _result; |
8ab979d7 | 6666 | wxTextCtrl * _arg0; |
98624b49 RD |
6667 | long _arg1; |
6668 | long _arg2; | |
6669 | wxTextAttr * _arg3; | |
1d99702e | 6670 | PyObject * _argo0 = 0; |
98624b49 RD |
6671 | PyObject * _argo3 = 0; |
6672 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
8ab979d7 RD |
6673 | |
6674 | self = self; | |
98624b49 | 6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
8ab979d7 | 6676 | return NULL; |
1d99702e RD |
6677 | if (_argo0) { |
6678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
6680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
6681 | return NULL; | |
6682 | } | |
6683 | } | |
6684 | if (_argo3) { | |
6685 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6686 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
6688 | return NULL; |
6689 | } | |
6690 | } | |
cf694132 | 6691 | { |
4268f798 | 6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6693 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 6694 | |
4268f798 | 6695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6696 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6697 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6698 | return _resultobj; |
6699 | } | |
6700 | ||
98624b49 RD |
6701 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
6702 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6703 | PyObject * _resultobj; |
98624b49 | 6704 | bool _result; |
8ab979d7 | 6705 | wxTextCtrl * _arg0; |
98624b49 | 6706 | wxTextAttr * _arg1; |
1d99702e | 6707 | PyObject * _argo0 = 0; |
98624b49 RD |
6708 | PyObject * _argo1 = 0; |
6709 | char *_kwnames[] = { "self","style", NULL }; | |
8ab979d7 RD |
6710 | |
6711 | self = self; | |
98624b49 | 6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6713 | return NULL; |
1d99702e RD |
6714 | if (_argo0) { |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
6721 | if (_argo1) { | |
6722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
6725 | return NULL; |
6726 | } | |
6727 | } | |
cf694132 | 6728 | { |
4268f798 | 6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6730 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
cf694132 | 6731 | |
4268f798 | 6732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6733 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6734 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6735 | return _resultobj; |
6736 | } | |
6737 | ||
98624b49 RD |
6738 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
6739 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6740 | PyObject * _resultobj; |
98624b49 | 6741 | wxTextAttr * _result; |
8ab979d7 | 6742 | wxTextCtrl * _arg0; |
1d99702e | 6743 | PyObject * _argo0 = 0; |
efc5f224 | 6744 | char *_kwnames[] = { "self", NULL }; |
98624b49 | 6745 | char _ptemp[128]; |
8ab979d7 RD |
6746 | |
6747 | self = self; | |
98624b49 | 6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
8ab979d7 | 6749 | return NULL; |
1d99702e RD |
6750 | if (_argo0) { |
6751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6754 | return NULL; |
6755 | } | |
6756 | } | |
cf694132 | 6757 | { |
4268f798 | 6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6759 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
98624b49 | 6760 | _result = (wxTextAttr *) &_result_ref; |
cf694132 | 6761 | |
4268f798 | 6762 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6763 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6764 | } if (_result) { |
6765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6766 | _resultobj = Py_BuildValue("s",_ptemp); | |
6767 | } else { | |
6768 | Py_INCREF(Py_None); | |
6769 | _resultobj = Py_None; | |
6770 | } | |
8ab979d7 RD |
6771 | return _resultobj; |
6772 | } | |
6773 | ||
98624b49 RD |
6774 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
6775 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6776 | PyObject * _resultobj; |
98624b49 | 6777 | long _result; |
8ab979d7 RD |
6778 | wxTextCtrl * _arg0; |
6779 | long _arg1; | |
6780 | long _arg2; | |
1d99702e | 6781 | PyObject * _argo0 = 0; |
98624b49 | 6782 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6783 | |
6784 | self = self; | |
98624b49 | 6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6786 | return NULL; |
1d99702e RD |
6787 | if (_argo0) { |
6788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6791 | return NULL; |
6792 | } | |
6793 | } | |
cf694132 | 6794 | { |
4268f798 | 6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6796 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
cf694132 | 6797 | |
4268f798 | 6798 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6799 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6800 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6801 | return _resultobj; |
6802 | } | |
6803 | ||
98624b49 RD |
6804 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
6805 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6806 | PyObject * _resultobj; |
6807 | wxTextCtrl * _arg0; | |
98624b49 RD |
6808 | long _arg1; |
6809 | long * _arg2; | |
6810 | long temp; | |
6811 | long * _arg3; | |
6812 | long temp0; | |
1d99702e | 6813 | PyObject * _argo0 = 0; |
98624b49 | 6814 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
6815 | |
6816 | self = self; | |
98624b49 RD |
6817 | { |
6818 | _arg2 = &temp; | |
6819 | } | |
6820 | { | |
6821 | _arg3 = &temp0; | |
6822 | } | |
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 6824 | return NULL; |
1d99702e RD |
6825 | if (_argo0) { |
6826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6829 | return NULL; |
6830 | } | |
6831 | } | |
cf694132 | 6832 | { |
4268f798 | 6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6834 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 6835 | |
4268f798 | 6836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6837 | if (PyErr_Occurred()) return NULL; |
68320e40 RD |
6838 | } Py_INCREF(Py_None); |
6839 | _resultobj = Py_None; | |
8ab979d7 | 6840 | { |
98624b49 RD |
6841 | PyObject *o; |
6842 | o = PyInt_FromLong((long) (*_arg2)); | |
6843 | _resultobj = t_output_helper(_resultobj, o); | |
6844 | } | |
6845 | { | |
6846 | PyObject *o; | |
6847 | o = PyInt_FromLong((long) (*_arg3)); | |
6848 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6849 | } |
6850 | return _resultobj; | |
6851 | } | |
6852 | ||
6853 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
efc5f224 | 6854 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6855 | PyObject * _resultobj; |
6856 | wxTextCtrl * _arg0; | |
6857 | long _arg1; | |
1d99702e | 6858 | PyObject * _argo0 = 0; |
efc5f224 | 6859 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
6860 | |
6861 | self = self; | |
efc5f224 | 6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6863 | return NULL; |
1d99702e RD |
6864 | if (_argo0) { |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
cf694132 | 6871 | { |
4268f798 | 6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6873 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
cf694132 | 6874 | |
4268f798 | 6875 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6877 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6878 | _resultobj = Py_None; |
6879 | return _resultobj; | |
6880 | } | |
6881 | ||
98624b49 RD |
6882 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
6883 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6884 | PyObject * _resultobj; |
6885 | wxTextCtrl * _arg0; | |
1d99702e | 6886 | PyObject * _argo0 = 0; |
98624b49 | 6887 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6888 | |
6889 | self = self; | |
98624b49 | 6890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
8ab979d7 | 6891 | return NULL; |
1d99702e RD |
6892 | if (_argo0) { |
6893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6896 | return NULL; |
6897 | } | |
6898 | } | |
cf694132 | 6899 | { |
4268f798 | 6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6901 | wxTextCtrl_Copy(_arg0); |
cf694132 | 6902 | |
4268f798 | 6903 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6904 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6905 | } Py_INCREF(Py_None); |
6906 | _resultobj = Py_None; | |
cf694132 RD |
6907 | return _resultobj; |
6908 | } | |
6909 | ||
98624b49 RD |
6910 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
6911 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
6912 | PyObject * _resultobj; |
6913 | wxTextCtrl * _arg0; | |
1d99702e | 6914 | PyObject * _argo0 = 0; |
98624b49 | 6915 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
6916 | |
6917 | self = self; | |
98624b49 | 6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
cf694132 | 6919 | return NULL; |
1d99702e RD |
6920 | if (_argo0) { |
6921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
cf694132 RD |
6924 | return NULL; |
6925 | } | |
6926 | } | |
cf694132 | 6927 | { |
4268f798 | 6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6929 | wxTextCtrl_Cut(_arg0); |
cf694132 | 6930 | |
4268f798 | 6931 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6932 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6933 | } Py_INCREF(Py_None); |
8ab979d7 | 6934 | _resultobj = Py_None; |
8ab979d7 RD |
6935 | return _resultobj; |
6936 | } | |
6937 | ||
98624b49 RD |
6938 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
6939 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6940 | PyObject * _resultobj; |
8ab979d7 | 6941 | wxTextCtrl * _arg0; |
1d99702e | 6942 | PyObject * _argo0 = 0; |
98624b49 | 6943 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6944 | |
6945 | self = self; | |
98624b49 | 6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
8ab979d7 | 6947 | return NULL; |
1d99702e RD |
6948 | if (_argo0) { |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6952 | return NULL; |
6953 | } | |
6954 | } | |
cf694132 | 6955 | { |
4268f798 | 6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6957 | wxTextCtrl_Paste(_arg0); |
cf694132 | 6958 | |
4268f798 | 6959 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6960 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6961 | } Py_INCREF(Py_None); |
6962 | _resultobj = Py_None; | |
8ab979d7 RD |
6963 | return _resultobj; |
6964 | } | |
6965 | ||
c127177f | 6966 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
efc5f224 | 6967 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
6968 | PyObject * _resultobj; |
6969 | bool _result; | |
6970 | wxTextCtrl * _arg0; | |
1d99702e | 6971 | PyObject * _argo0 = 0; |
efc5f224 | 6972 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
6973 | |
6974 | self = self; | |
efc5f224 | 6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
c127177f | 6976 | return NULL; |
1d99702e RD |
6977 | if (_argo0) { |
6978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
6980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
6981 | return NULL; | |
6982 | } | |
6983 | } | |
6984 | { | |
4268f798 | 6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6986 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
c127177f | 6987 | |
4268f798 | 6988 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6989 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
6990 | } _resultobj = Py_BuildValue("i",_result); |
6991 | return _resultobj; | |
6992 | } | |
6993 | ||
6994 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
efc5f224 | 6995 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
6996 | PyObject * _resultobj; |
6997 | bool _result; | |
6998 | wxTextCtrl * _arg0; | |
1d99702e | 6999 | PyObject * _argo0 = 0; |
efc5f224 | 7000 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7001 | |
7002 | self = self; | |
efc5f224 | 7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
c127177f | 7004 | return NULL; |
1d99702e RD |
7005 | if (_argo0) { |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
7012 | { | |
4268f798 | 7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7014 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
c127177f | 7015 | |
4268f798 | 7016 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7017 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7018 | } _resultobj = Py_BuildValue("i",_result); |
7019 | return _resultobj; | |
7020 | } | |
7021 | ||
7022 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
efc5f224 | 7023 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7024 | PyObject * _resultobj; |
7025 | bool _result; | |
7026 | wxTextCtrl * _arg0; | |
1d99702e | 7027 | PyObject * _argo0 = 0; |
efc5f224 | 7028 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7029 | |
7030 | self = self; | |
efc5f224 | 7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
c127177f | 7032 | return NULL; |
1d99702e RD |
7033 | if (_argo0) { |
7034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7037 | return NULL; | |
7038 | } | |
7039 | } | |
7040 | { | |
4268f798 | 7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7042 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
c127177f | 7043 | |
4268f798 | 7044 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7045 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7046 | } _resultobj = Py_BuildValue("i",_result); |
7047 | return _resultobj; | |
7048 | } | |
7049 | ||
98624b49 RD |
7050 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7051 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7052 | PyObject * _resultobj; |
c127177f | 7053 | wxTextCtrl * _arg0; |
1d99702e | 7054 | PyObject * _argo0 = 0; |
efc5f224 | 7055 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7056 | |
7057 | self = self; | |
98624b49 | 7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
c127177f | 7059 | return NULL; |
1d99702e RD |
7060 | if (_argo0) { |
7061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
c127177f RD |
7064 | return NULL; |
7065 | } | |
7066 | } | |
7067 | { | |
4268f798 | 7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7069 | wxTextCtrl_Undo(_arg0); |
c127177f | 7070 | |
4268f798 | 7071 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7072 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7073 | } Py_INCREF(Py_None); |
7074 | _resultobj = Py_None; | |
c127177f RD |
7075 | return _resultobj; |
7076 | } | |
7077 | ||
98624b49 RD |
7078 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7079 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7080 | PyObject * _resultobj; |
c127177f | 7081 | wxTextCtrl * _arg0; |
1d99702e | 7082 | PyObject * _argo0 = 0; |
efc5f224 | 7083 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7084 | |
7085 | self = self; | |
98624b49 | 7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
c127177f | 7087 | return NULL; |
1d99702e RD |
7088 | if (_argo0) { |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
c127177f RD |
7092 | return NULL; |
7093 | } | |
7094 | } | |
7095 | { | |
4268f798 | 7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7097 | wxTextCtrl_Redo(_arg0); |
c127177f | 7098 | |
4268f798 | 7099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7100 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7101 | } Py_INCREF(Py_None); |
7102 | _resultobj = Py_None; | |
c127177f RD |
7103 | return _resultobj; |
7104 | } | |
7105 | ||
98624b49 RD |
7106 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7107 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7108 | PyObject * _resultobj; |
98624b49 | 7109 | bool _result; |
c127177f | 7110 | wxTextCtrl * _arg0; |
1d99702e | 7111 | PyObject * _argo0 = 0; |
efc5f224 | 7112 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7113 | |
7114 | self = self; | |
98624b49 | 7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
c127177f | 7116 | return NULL; |
1d99702e RD |
7117 | if (_argo0) { |
7118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
c127177f RD |
7121 | return NULL; |
7122 | } | |
7123 | } | |
7124 | { | |
4268f798 | 7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7126 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
c127177f | 7127 | |
4268f798 | 7128 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7129 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7130 | } _resultobj = Py_BuildValue("i",_result); |
c127177f RD |
7131 | return _resultobj; |
7132 | } | |
7133 | ||
98624b49 RD |
7134 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7135 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f RD |
7136 | PyObject * _resultobj; |
7137 | bool _result; | |
7138 | wxTextCtrl * _arg0; | |
1d99702e | 7139 | PyObject * _argo0 = 0; |
efc5f224 | 7140 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7141 | |
7142 | self = self; | |
98624b49 | 7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
c127177f | 7144 | return NULL; |
1d99702e RD |
7145 | if (_argo0) { |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
c127177f RD |
7149 | return NULL; |
7150 | } | |
7151 | } | |
7152 | { | |
4268f798 | 7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7154 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
c127177f | 7155 | |
4268f798 | 7156 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7157 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7158 | } _resultobj = Py_BuildValue("i",_result); |
7159 | return _resultobj; | |
7160 | } | |
7161 | ||
98624b49 RD |
7162 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7163 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7164 | PyObject * _resultobj; |
7165 | wxTextCtrl * _arg0; | |
98624b49 | 7166 | long _arg1; |
b1462dfa | 7167 | PyObject * _argo0 = 0; |
98624b49 | 7168 | char *_kwnames[] = { "self","pos", NULL }; |
b1462dfa RD |
7169 | |
7170 | self = self; | |
98624b49 | 7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
7172 | return NULL; |
7173 | if (_argo0) { | |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7177 | return NULL; |
7178 | } | |
7179 | } | |
7180 | { | |
4268f798 | 7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7182 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
b1462dfa | 7183 | |
4268f798 | 7184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7185 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7186 | } Py_INCREF(Py_None); |
7187 | _resultobj = Py_None; | |
7188 | return _resultobj; | |
7189 | } | |
7190 | ||
98624b49 RD |
7191 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7192 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7193 | PyObject * _resultobj; |
7194 | wxTextCtrl * _arg0; | |
7195 | PyObject * _argo0 = 0; | |
7196 | char *_kwnames[] = { "self", NULL }; | |
7197 | ||
7198 | self = self; | |
98624b49 | 7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
b1462dfa RD |
7200 | return NULL; |
7201 | if (_argo0) { | |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7205 | return NULL; |
7206 | } | |
7207 | } | |
7208 | { | |
4268f798 | 7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7210 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
b1462dfa | 7211 | |
4268f798 | 7212 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7213 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7214 | } Py_INCREF(Py_None); |
7215 | _resultobj = Py_None; | |
7216 | return _resultobj; | |
7217 | } | |
7218 | ||
98624b49 RD |
7219 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7220 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7221 | PyObject * _resultobj; |
98624b49 | 7222 | long _result; |
d56cebe7 | 7223 | wxTextCtrl * _arg0; |
d56cebe7 | 7224 | PyObject * _argo0 = 0; |
98624b49 | 7225 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7226 | |
7227 | self = self; | |
98624b49 | 7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
d56cebe7 RD |
7229 | return NULL; |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7234 | return NULL; |
7235 | } | |
7236 | } | |
7237 | { | |
4268f798 | 7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7239 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
d56cebe7 | 7240 | |
4268f798 | 7241 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7242 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7243 | } _resultobj = Py_BuildValue("l",_result); |
d56cebe7 RD |
7244 | return _resultobj; |
7245 | } | |
7246 | ||
98624b49 RD |
7247 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7248 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7249 | PyObject * _resultobj; |
98624b49 | 7250 | long _result; |
d56cebe7 | 7251 | wxTextCtrl * _arg0; |
d56cebe7 | 7252 | PyObject * _argo0 = 0; |
98624b49 | 7253 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7254 | |
7255 | self = self; | |
98624b49 | 7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
d56cebe7 RD |
7257 | return NULL; |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7262 | return NULL; |
7263 | } | |
7264 | } | |
98624b49 | 7265 | { |
4268f798 | 7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7267 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
98624b49 | 7268 | |
4268f798 | 7269 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
7270 | if (PyErr_Occurred()) return NULL; |
7271 | } _resultobj = Py_BuildValue("l",_result); | |
7272 | return _resultobj; | |
7273 | } | |
7274 | ||
7275 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7276 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject * _resultobj; | |
7278 | wxTextCtrl * _arg0; | |
7279 | long _arg1; | |
7280 | long _arg2; | |
7281 | PyObject * _argo0 = 0; | |
7282 | char *_kwnames[] = { "self","from","to", NULL }; | |
7283 | ||
7284 | self = self; | |
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7286 | return NULL; | |
7287 | if (_argo0) { | |
7288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
d56cebe7 RD |
7291 | return NULL; |
7292 | } | |
7293 | } | |
7294 | { | |
4268f798 | 7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7296 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
d56cebe7 | 7297 | |
4268f798 | 7298 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7299 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7300 | } Py_INCREF(Py_None); |
7301 | _resultobj = Py_None; | |
d56cebe7 RD |
7302 | return _resultobj; |
7303 | } | |
7304 | ||
98624b49 RD |
7305 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7306 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7307 | PyObject * _resultobj; |
d56cebe7 RD |
7308 | wxTextCtrl * _arg0; |
7309 | PyObject * _argo0 = 0; | |
7310 | char *_kwnames[] = { "self", NULL }; | |
d56cebe7 RD |
7311 | |
7312 | self = self; | |
98624b49 | 7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
d56cebe7 RD |
7314 | return NULL; |
7315 | if (_argo0) { | |
7316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7319 | return NULL; |
7320 | } | |
7321 | } | |
7322 | { | |
4268f798 | 7323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7324 | wxTextCtrl_SelectAll(_arg0); |
d56cebe7 | 7325 | |
4268f798 | 7326 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7327 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7328 | } Py_INCREF(Py_None); |
7329 | _resultobj = Py_None; | |
d56cebe7 RD |
7330 | return _resultobj; |
7331 | } | |
7332 | ||
98624b49 RD |
7333 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7334 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
00b6c4e3 RD |
7335 | PyObject * _resultobj; |
7336 | wxTextCtrl * _arg0; | |
98624b49 | 7337 | bool _arg1; |
00b6c4e3 | 7338 | PyObject * _argo0 = 0; |
98624b49 RD |
7339 | int tempbool1; |
7340 | char *_kwnames[] = { "self","editable", NULL }; | |
00b6c4e3 RD |
7341 | |
7342 | self = self; | |
98624b49 | 7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
00b6c4e3 RD |
7344 | return NULL; |
7345 | if (_argo0) { | |
7346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
00b6c4e3 RD |
7349 | return NULL; |
7350 | } | |
7351 | } | |
98624b49 | 7352 | _arg1 = (bool ) tempbool1; |
00b6c4e3 | 7353 | { |
4268f798 | 7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7355 | wxTextCtrl_SetEditable(_arg0,_arg1); |
00b6c4e3 | 7356 | |
4268f798 | 7357 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
7358 | if (PyErr_Occurred()) return NULL; |
7359 | } Py_INCREF(Py_None); | |
7360 | _resultobj = Py_None; | |
7361 | return _resultobj; | |
7362 | } | |
7363 | ||
b1462dfa | 7364 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
d56cebe7 | 7365 | self->AppendText(text); |
b1462dfa RD |
7366 | } |
7367 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject * _resultobj; | |
7369 | wxTextCtrl * _arg0; | |
7370 | wxString * _arg1; | |
7371 | PyObject * _argo0 = 0; | |
7372 | PyObject * _obj1 = 0; | |
7373 | char *_kwnames[] = { "self","text", NULL }; | |
7374 | ||
7375 | self = self; | |
7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7377 | return NULL; | |
7378 | if (_argo0) { | |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7382 | return NULL; | |
7383 | } | |
7384 | } | |
7385 | { | |
c8bc7bb8 RD |
7386 | _arg1 = wxString_in_helper(_obj1); |
7387 | if (_arg1 == NULL) | |
185d7c3e | 7388 | return NULL; |
b1462dfa RD |
7389 | } |
7390 | { | |
4268f798 | 7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7392 | wxTextCtrl_write(_arg0,*_arg1); |
b1462dfa | 7393 | |
4268f798 | 7394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7395 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7396 | } Py_INCREF(Py_None); |
7397 | _resultobj = Py_None; | |
7398 | { | |
7399 | if (_obj1) | |
7400 | delete _arg1; | |
7401 | } | |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
2f4e9287 RD |
7405 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
7406 | return self->GetValue().Mid(from, to-from); | |
7407 | } | |
7408 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject * _resultobj; | |
7410 | wxString * _result; | |
7411 | wxTextCtrl * _arg0; | |
7412 | long _arg1; | |
7413 | long _arg2; | |
7414 | PyObject * _argo0 = 0; | |
7415 | char *_kwnames[] = { "self","from","to", NULL }; | |
7416 | ||
7417 | self = self; | |
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7419 | return NULL; | |
7420 | if (_argo0) { | |
7421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7424 | return NULL; | |
7425 | } | |
7426 | } | |
7427 | { | |
4268f798 | 7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7429 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
2f4e9287 | 7430 | |
4268f798 | 7431 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
7432 | if (PyErr_Occurred()) return NULL; |
7433 | }{ | |
c8bc7bb8 RD |
7434 | #if wxUSE_UNICODE |
7435 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7436 | #else | |
2f4e9287 | 7437 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7438 | #endif |
2f4e9287 RD |
7439 | } |
7440 | { | |
7441 | delete _result; | |
7442 | } | |
7443 | return _resultobj; | |
7444 | } | |
7445 | ||
8ab979d7 RD |
7446 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7447 | wxScrollBar *src; | |
7448 | wxControl *dest; | |
7449 | src = (wxScrollBar *) ptr; | |
7450 | dest = (wxControl *) src; | |
7451 | return (void *) dest; | |
7452 | } | |
7453 | ||
7454 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7455 | wxScrollBar *src; | |
7456 | wxWindow *dest; | |
7457 | src = (wxScrollBar *) ptr; | |
7458 | dest = (wxWindow *) src; | |
7459 | return (void *) dest; | |
7460 | } | |
7461 | ||
7462 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7463 | wxScrollBar *src; | |
7464 | wxEvtHandler *dest; | |
7465 | src = (wxScrollBar *) ptr; | |
7466 | dest = (wxEvtHandler *) src; | |
7467 | return (void *) dest; | |
7468 | } | |
7469 | ||
9416aa89 RD |
7470 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
7471 | wxScrollBar *src; | |
7472 | wxObject *dest; | |
7473 | src = (wxScrollBar *) ptr; | |
7474 | dest = (wxObject *) src; | |
7475 | return (void *) dest; | |
7476 | } | |
7477 | ||
8ab979d7 | 7478 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7479 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7480 | PyObject * _resultobj; |
7481 | wxScrollBar * _result; | |
7482 | wxWindow * _arg0; | |
1d99702e | 7483 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
7484 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7485 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 7486 | long _arg4 = (long ) wxSB_HORIZONTAL; |
e508a2b6 | 7487 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
7488 | char * _arg6 = (char *) "scrollBar"; |
7489 | PyObject * _argo0 = 0; | |
2f90df85 RD |
7490 | wxPoint temp; |
7491 | PyObject * _obj2 = 0; | |
7492 | wxSize temp0; | |
7493 | PyObject * _obj3 = 0; | |
1d99702e | 7494 | PyObject * _argo5 = 0; |
efc5f224 | 7495 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
7496 | char _ptemp[128]; |
7497 | ||
7498 | self = self; | |
2f90df85 | 7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 7500 | return NULL; |
1d99702e RD |
7501 | if (_argo0) { |
7502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
7505 | return NULL; | |
7506 | } | |
7507 | } | |
2f90df85 RD |
7508 | if (_obj2) |
7509 | { | |
7510 | _arg2 = &temp; | |
7511 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 7512 | return NULL; |
2f90df85 RD |
7513 | } |
7514 | if (_obj3) | |
7515 | { | |
7516 | _arg3 = &temp0; | |
7517 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 7518 | return NULL; |
2f90df85 | 7519 | } |
1d99702e RD |
7520 | if (_argo5) { |
7521 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
cf694132 | 7527 | { |
4268f798 | 7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7529 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 | 7530 | |
4268f798 | 7531 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7532 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7533 | } if (_result) { |
7534 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7535 | _resultobj = Py_BuildValue("s",_ptemp); | |
7536 | } else { | |
7537 | Py_INCREF(Py_None); | |
7538 | _resultobj = Py_None; | |
7539 | } | |
8ab979d7 RD |
7540 | return _resultobj; |
7541 | } | |
7542 | ||
09f3d4e6 RD |
7543 | #define new_wxPreScrollBar() (new wxScrollBar()) |
7544 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7545 | PyObject * _resultobj; | |
7546 | wxScrollBar * _result; | |
7547 | char *_kwnames[] = { NULL }; | |
7548 | char _ptemp[128]; | |
7549 | ||
7550 | self = self; | |
7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7552 | return NULL; | |
7553 | { | |
4268f798 | 7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7555 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
09f3d4e6 | 7556 | |
4268f798 | 7557 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7558 | if (PyErr_Occurred()) return NULL; |
7559 | } if (_result) { | |
7560 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7561 | _resultobj = Py_BuildValue("s",_ptemp); | |
7562 | } else { | |
7563 | Py_INCREF(Py_None); | |
7564 | _resultobj = Py_None; | |
7565 | } | |
7566 | return _resultobj; | |
7567 | } | |
7568 | ||
7569 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7570 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7571 | PyObject * _resultobj; | |
7572 | bool _result; | |
7573 | wxScrollBar * _arg0; | |
7574 | wxWindow * _arg1; | |
7575 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7576 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7577 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7578 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7579 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7580 | char * _arg7 = (char *) "scrollBar"; | |
7581 | PyObject * _argo0 = 0; | |
7582 | PyObject * _argo1 = 0; | |
7583 | wxPoint temp; | |
7584 | PyObject * _obj3 = 0; | |
7585 | wxSize temp0; | |
7586 | PyObject * _obj4 = 0; | |
7587 | PyObject * _argo6 = 0; | |
7588 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7589 | ||
7590 | self = self; | |
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7592 | return NULL; | |
7593 | if (_argo0) { | |
7594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7597 | return NULL; | |
7598 | } | |
7599 | } | |
7600 | if (_argo1) { | |
7601 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
7607 | if (_obj3) | |
7608 | { | |
7609 | _arg3 = &temp; | |
7610 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7611 | return NULL; | |
7612 | } | |
7613 | if (_obj4) | |
7614 | { | |
7615 | _arg4 = &temp0; | |
7616 | if (! wxSize_helper(_obj4, &_arg4)) | |
7617 | return NULL; | |
7618 | } | |
7619 | if (_argo6) { | |
7620 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7621 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7623 | return NULL; | |
7624 | } | |
7625 | } | |
7626 | { | |
4268f798 | 7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7628 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
09f3d4e6 | 7629 | |
4268f798 | 7630 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7631 | if (PyErr_Occurred()) return NULL; |
7632 | } _resultobj = Py_BuildValue("i",_result); | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
8ab979d7 | 7636 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
efc5f224 | 7637 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7638 | PyObject * _resultobj; |
7639 | int _result; | |
7640 | wxScrollBar * _arg0; | |
1d99702e | 7641 | PyObject * _argo0 = 0; |
efc5f224 | 7642 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7643 | |
7644 | self = self; | |
efc5f224 | 7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 7646 | return NULL; |
1d99702e RD |
7647 | if (_argo0) { |
7648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
7651 | return NULL; | |
7652 | } | |
7653 | } | |
cf694132 | 7654 | { |
4268f798 | 7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7656 | _result = (int )wxScrollBar_GetRange(_arg0); |
cf694132 | 7657 | |
4268f798 | 7658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7659 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7660 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7661 | return _resultobj; |
7662 | } | |
7663 | ||
7664 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 7665 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7666 | PyObject * _resultobj; |
7667 | int _result; | |
7668 | wxScrollBar * _arg0; | |
1d99702e | 7669 | PyObject * _argo0 = 0; |
efc5f224 | 7670 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7671 | |
7672 | self = self; | |
efc5f224 | 7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 7674 | return NULL; |
1d99702e RD |
7675 | if (_argo0) { |
7676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
7679 | return NULL; | |
7680 | } | |
7681 | } | |
cf694132 | 7682 | { |
4268f798 | 7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7684 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
cf694132 | 7685 | |
4268f798 | 7686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7687 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7688 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7689 | return _resultobj; |
7690 | } | |
7691 | ||
b8b8dda7 | 7692 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
efc5f224 | 7693 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7694 | PyObject * _resultobj; |
7695 | int _result; | |
7696 | wxScrollBar * _arg0; | |
1d99702e | 7697 | PyObject * _argo0 = 0; |
efc5f224 | 7698 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7699 | |
7700 | self = self; | |
efc5f224 | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
8ab979d7 | 7702 | return NULL; |
1d99702e RD |
7703 | if (_argo0) { |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
7707 | return NULL; |
7708 | } | |
7709 | } | |
cf694132 | 7710 | { |
4268f798 | 7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7712 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
cf694132 | 7713 | |
4268f798 | 7714 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7715 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7716 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7717 | return _resultobj; |
7718 | } | |
7719 | ||
7720 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
efc5f224 | 7721 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7722 | PyObject * _resultobj; |
7723 | int _result; | |
7724 | wxScrollBar * _arg0; | |
1d99702e | 7725 | PyObject * _argo0 = 0; |
efc5f224 | 7726 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7727 | |
7728 | self = self; | |
efc5f224 | 7729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
8ab979d7 | 7730 | return NULL; |
1d99702e RD |
7731 | if (_argo0) { |
7732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
7735 | return NULL; | |
7736 | } | |
7737 | } | |
cf694132 | 7738 | { |
4268f798 | 7739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7740 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
cf694132 | 7741 | |
4268f798 | 7742 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7743 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7744 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7745 | return _resultobj; |
7746 | } | |
7747 | ||
ebf4302c RD |
7748 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
7749 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7750 | PyObject * _resultobj; | |
7751 | bool _result; | |
7752 | wxScrollBar * _arg0; | |
7753 | PyObject * _argo0 = 0; | |
7754 | char *_kwnames[] = { "self", NULL }; | |
7755 | ||
7756 | self = self; | |
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
7758 | return NULL; | |
7759 | if (_argo0) { | |
7760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
7763 | return NULL; | |
7764 | } | |
7765 | } | |
7766 | { | |
4268f798 | 7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7768 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
ebf4302c | 7769 | |
4268f798 | 7770 | wxPyEndAllowThreads(__tstate); |
ebf4302c RD |
7771 | if (PyErr_Occurred()) return NULL; |
7772 | } _resultobj = Py_BuildValue("i",_result); | |
7773 | return _resultobj; | |
7774 | } | |
7775 | ||
b8b8dda7 | 7776 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
efc5f224 | 7777 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7778 | PyObject * _resultobj; |
7779 | wxScrollBar * _arg0; | |
7780 | int _arg1; | |
1d99702e | 7781 | PyObject * _argo0 = 0; |
efc5f224 | 7782 | char *_kwnames[] = { "self","viewStart", NULL }; |
8ab979d7 RD |
7783 | |
7784 | self = self; | |
efc5f224 | 7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7786 | return NULL; |
1d99702e RD |
7787 | if (_argo0) { |
7788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
7791 | return NULL; |
7792 | } | |
7793 | } | |
cf694132 | 7794 | { |
4268f798 | 7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7796 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
cf694132 | 7797 | |
4268f798 | 7798 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7800 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7801 | _resultobj = Py_None; |
7802 | return _resultobj; | |
7803 | } | |
7804 | ||
7805 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 7806 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7807 | PyObject * _resultobj; |
7808 | wxScrollBar * _arg0; | |
7809 | int _arg1; | |
7810 | int _arg2; | |
7811 | int _arg3; | |
7812 | int _arg4; | |
1d99702e RD |
7813 | bool _arg5 = (bool ) TRUE; |
7814 | PyObject * _argo0 = 0; | |
7815 | int tempbool5 = (int) TRUE; | |
efc5f224 | 7816 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
8ab979d7 RD |
7817 | |
7818 | self = self; | |
efc5f224 | 7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
8ab979d7 | 7820 | return NULL; |
1d99702e RD |
7821 | if (_argo0) { |
7822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
7825 | return NULL; | |
7826 | } | |
7827 | } | |
7828 | _arg5 = (bool ) tempbool5; | |
cf694132 | 7829 | { |
4268f798 | 7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7831 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 7832 | |
4268f798 | 7833 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7835 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7836 | _resultobj = Py_None; |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
7841 | wxSpinButton *src; | |
7842 | wxControl *dest; | |
7843 | src = (wxSpinButton *) ptr; | |
7844 | dest = (wxControl *) src; | |
7845 | return (void *) dest; | |
7846 | } | |
7847 | ||
7848 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
7849 | wxSpinButton *src; | |
7850 | wxWindow *dest; | |
7851 | src = (wxSpinButton *) ptr; | |
7852 | dest = (wxWindow *) src; | |
7853 | return (void *) dest; | |
7854 | } | |
7855 | ||
7856 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
7857 | wxSpinButton *src; | |
7858 | wxEvtHandler *dest; | |
7859 | src = (wxSpinButton *) ptr; | |
7860 | dest = (wxEvtHandler *) src; | |
7861 | return (void *) dest; | |
7862 | } | |
7863 | ||
9416aa89 RD |
7864 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
7865 | wxSpinButton *src; | |
7866 | wxObject *dest; | |
7867 | src = (wxSpinButton *) ptr; | |
7868 | dest = (wxObject *) src; | |
7869 | return (void *) dest; | |
7870 | } | |
7871 | ||
8ab979d7 | 7872 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 7873 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7874 | PyObject * _resultobj; |
7875 | wxSpinButton * _result; | |
7876 | wxWindow * _arg0; | |
1d99702e | 7877 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
7878 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7879 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
7880 | long _arg4 = (long ) wxSP_HORIZONTAL; |
7881 | char * _arg5 = (char *) "spinButton"; | |
7882 | PyObject * _argo0 = 0; | |
2f90df85 RD |
7883 | wxPoint temp; |
7884 | PyObject * _obj2 = 0; | |
7885 | wxSize temp0; | |
7886 | PyObject * _obj3 = 0; | |
efc5f224 | 7887 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
7888 | char _ptemp[128]; |
7889 | ||
7890 | self = self; | |
2f90df85 | 7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 7892 | return NULL; |
1d99702e RD |
7893 | if (_argo0) { |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
2f90df85 RD |
7900 | if (_obj2) |
7901 | { | |
7902 | _arg2 = &temp; | |
7903 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 7904 | return NULL; |
2f90df85 RD |
7905 | } |
7906 | if (_obj3) | |
7907 | { | |
7908 | _arg3 = &temp0; | |
7909 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 7910 | return NULL; |
2f90df85 | 7911 | } |
cf694132 | 7912 | { |
4268f798 | 7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7914 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 7915 | |
4268f798 | 7916 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7917 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7918 | } if (_result) { |
7919 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7920 | _resultobj = Py_BuildValue("s",_ptemp); | |
7921 | } else { | |
7922 | Py_INCREF(Py_None); | |
7923 | _resultobj = Py_None; | |
7924 | } | |
8ab979d7 RD |
7925 | return _resultobj; |
7926 | } | |
7927 | ||
09f3d4e6 RD |
7928 | #define new_wxPreSpinButton() (new wxSpinButton()) |
7929 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject * _resultobj; | |
7931 | wxSpinButton * _result; | |
7932 | char *_kwnames[] = { NULL }; | |
7933 | char _ptemp[128]; | |
7934 | ||
7935 | self = self; | |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
7937 | return NULL; | |
7938 | { | |
4268f798 | 7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7940 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
09f3d4e6 | 7941 | |
4268f798 | 7942 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
7943 | if (PyErr_Occurred()) return NULL; |
7944 | } if (_result) { | |
7945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7946 | _resultobj = Py_BuildValue("s",_ptemp); | |
7947 | } else { | |
7948 | Py_INCREF(Py_None); | |
7949 | _resultobj = Py_None; | |
7950 | } | |
7951 | return _resultobj; | |
7952 | } | |
7953 | ||
7954 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7955 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject * _resultobj; | |
7957 | bool _result; | |
7958 | wxSpinButton * _arg0; | |
7959 | wxWindow * _arg1; | |
7960 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7961 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7962 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7963 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
7964 | char * _arg6 = (char *) "spinButton"; | |
7965 | PyObject * _argo0 = 0; | |
7966 | PyObject * _argo1 = 0; | |
7967 | wxPoint temp; | |
7968 | PyObject * _obj3 = 0; | |
7969 | wxSize temp0; | |
7970 | PyObject * _obj4 = 0; | |
7971 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
7972 | ||
7973 | self = self; | |
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
7975 | return NULL; | |
7976 | if (_argo0) { | |
7977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
7979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
7980 | return NULL; | |
7981 | } | |
7982 | } | |
7983 | if (_argo1) { | |
7984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
7987 | return NULL; | |
7988 | } | |
7989 | } | |
7990 | if (_obj3) | |
7991 | { | |
7992 | _arg3 = &temp; | |
7993 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7994 | return NULL; | |
7995 | } | |
7996 | if (_obj4) | |
7997 | { | |
7998 | _arg4 = &temp0; | |
7999 | if (! wxSize_helper(_obj4, &_arg4)) | |
8000 | return NULL; | |
8001 | } | |
8002 | { | |
4268f798 | 8003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8004 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 8005 | |
4268f798 | 8006 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8007 | if (PyErr_Occurred()) return NULL; |
8008 | } _resultobj = Py_BuildValue("i",_result); | |
8009 | return _resultobj; | |
8010 | } | |
8011 | ||
8ab979d7 | 8012 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
efc5f224 | 8013 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8014 | PyObject * _resultobj; |
8015 | int _result; | |
8016 | wxSpinButton * _arg0; | |
1d99702e | 8017 | PyObject * _argo0 = 0; |
efc5f224 | 8018 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8019 | |
8020 | self = self; | |
efc5f224 | 8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 8022 | return NULL; |
1d99702e RD |
8023 | if (_argo0) { |
8024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8027 | return NULL; | |
8028 | } | |
8029 | } | |
cf694132 | 8030 | { |
4268f798 | 8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8032 | _result = (int )wxSpinButton_GetMax(_arg0); |
cf694132 | 8033 | |
4268f798 | 8034 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8036 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8037 | return _resultobj; |
8038 | } | |
8039 | ||
8040 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 8041 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8042 | PyObject * _resultobj; |
8043 | int _result; | |
8044 | wxSpinButton * _arg0; | |
1d99702e | 8045 | PyObject * _argo0 = 0; |
efc5f224 | 8046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8047 | |
8048 | self = self; | |
efc5f224 | 8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 8050 | return NULL; |
1d99702e RD |
8051 | if (_argo0) { |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8055 | return NULL; | |
8056 | } | |
8057 | } | |
cf694132 | 8058 | { |
4268f798 | 8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8060 | _result = (int )wxSpinButton_GetMin(_arg0); |
cf694132 | 8061 | |
4268f798 | 8062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8064 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8065 | return _resultobj; |
8066 | } | |
8067 | ||
8068 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 8069 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8070 | PyObject * _resultobj; |
8071 | int _result; | |
8072 | wxSpinButton * _arg0; | |
1d99702e | 8073 | PyObject * _argo0 = 0; |
efc5f224 | 8074 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8075 | |
8076 | self = self; | |
efc5f224 | 8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 8078 | return NULL; |
1d99702e RD |
8079 | if (_argo0) { |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8083 | return NULL; | |
8084 | } | |
8085 | } | |
cf694132 | 8086 | { |
4268f798 | 8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8088 | _result = (int )wxSpinButton_GetValue(_arg0); |
cf694132 | 8089 | |
4268f798 | 8090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8092 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8093 | return _resultobj; |
8094 | } | |
8095 | ||
8096 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 8097 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8098 | PyObject * _resultobj; |
8099 | wxSpinButton * _arg0; | |
8100 | int _arg1; | |
8101 | int _arg2; | |
1d99702e | 8102 | PyObject * _argo0 = 0; |
efc5f224 | 8103 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
8104 | |
8105 | self = self; | |
efc5f224 | 8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8107 | return NULL; |
1d99702e RD |
8108 | if (_argo0) { |
8109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8112 | return NULL; | |
8113 | } | |
8114 | } | |
cf694132 | 8115 | { |
4268f798 | 8116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8117 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
cf694132 | 8118 | |
4268f798 | 8119 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8120 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8121 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8122 | _resultobj = Py_None; |
8123 | return _resultobj; | |
8124 | } | |
8125 | ||
8126 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 8127 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8128 | PyObject * _resultobj; |
8129 | wxSpinButton * _arg0; | |
8130 | int _arg1; | |
1d99702e | 8131 | PyObject * _argo0 = 0; |
efc5f224 | 8132 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
8133 | |
8134 | self = self; | |
efc5f224 | 8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8136 | return NULL; |
1d99702e RD |
8137 | if (_argo0) { |
8138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8141 | return NULL; | |
8142 | } | |
8143 | } | |
cf694132 | 8144 | { |
4268f798 | 8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8146 | wxSpinButton_SetValue(_arg0,_arg1); |
cf694132 | 8147 | |
4268f798 | 8148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8150 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8151 | _resultobj = Py_None; |
8152 | return _resultobj; | |
8153 | } | |
8154 | ||
8155 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8156 | wxStaticBitmap *src; | |
8157 | wxControl *dest; | |
8158 | src = (wxStaticBitmap *) ptr; | |
8159 | dest = (wxControl *) src; | |
8160 | return (void *) dest; | |
8161 | } | |
8162 | ||
8163 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8164 | wxStaticBitmap *src; | |
8165 | wxWindow *dest; | |
8166 | src = (wxStaticBitmap *) ptr; | |
8167 | dest = (wxWindow *) src; | |
8168 | return (void *) dest; | |
8169 | } | |
8170 | ||
8171 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8172 | wxStaticBitmap *src; | |
8173 | wxEvtHandler *dest; | |
8174 | src = (wxStaticBitmap *) ptr; | |
8175 | dest = (wxEvtHandler *) src; | |
8176 | return (void *) dest; | |
8177 | } | |
8178 | ||
9416aa89 RD |
8179 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8180 | wxStaticBitmap *src; | |
8181 | wxObject *dest; | |
8182 | src = (wxStaticBitmap *) ptr; | |
8183 | dest = (wxObject *) src; | |
8184 | return (void *) dest; | |
8185 | } | |
8186 | ||
8ab979d7 | 8187 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 8188 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8189 | PyObject * _resultobj; |
8190 | wxStaticBitmap * _result; | |
8191 | wxWindow * _arg0; | |
8192 | wxWindowID _arg1; | |
8193 | wxBitmap * _arg2; | |
e508a2b6 RD |
8194 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8195 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
8196 | long _arg5 = (long ) 0; |
8197 | char * _arg6 = (char *) "staticBitmap"; | |
8198 | PyObject * _argo0 = 0; | |
09f3d4e6 RD |
8199 | PyObject * _argo2 = 0; |
8200 | wxPoint temp; | |
8201 | PyObject * _obj3 = 0; | |
8202 | wxSize temp0; | |
8203 | PyObject * _obj4 = 0; | |
8204 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8205 | char _ptemp[128]; | |
8206 | ||
8207 | self = self; | |
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8209 | return NULL; | |
8210 | if (_argo0) { | |
8211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8214 | return NULL; | |
8215 | } | |
8216 | } | |
8217 | if (_argo2) { | |
8218 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | if (_obj3) | |
8225 | { | |
8226 | _arg3 = &temp; | |
8227 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8228 | return NULL; | |
8229 | } | |
8230 | if (_obj4) | |
8231 | { | |
8232 | _arg4 = &temp0; | |
8233 | if (! wxSize_helper(_obj4, &_arg4)) | |
8234 | return NULL; | |
8235 | } | |
8236 | { | |
4268f798 | 8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8238 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 8239 | |
4268f798 | 8240 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8241 | if (PyErr_Occurred()) return NULL; |
8242 | } if (_result) { | |
8243 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8244 | _resultobj = Py_BuildValue("s",_ptemp); | |
8245 | } else { | |
8246 | Py_INCREF(Py_None); | |
8247 | _resultobj = Py_None; | |
8248 | } | |
8249 | return _resultobj; | |
8250 | } | |
8251 | ||
8252 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8253 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8254 | PyObject * _resultobj; | |
8255 | wxStaticBitmap * _result; | |
8256 | char *_kwnames[] = { NULL }; | |
8257 | char _ptemp[128]; | |
8258 | ||
8259 | self = self; | |
8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8261 | return NULL; | |
8262 | { | |
4268f798 | 8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8264 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
09f3d4e6 | 8265 | |
4268f798 | 8266 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8267 | if (PyErr_Occurred()) return NULL; |
8268 | } if (_result) { | |
8269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8270 | _resultobj = Py_BuildValue("s",_ptemp); | |
8271 | } else { | |
8272 | Py_INCREF(Py_None); | |
8273 | _resultobj = Py_None; | |
8274 | } | |
8275 | return _resultobj; | |
8276 | } | |
8277 | ||
8278 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8279 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject * _resultobj; | |
8281 | bool _result; | |
8282 | wxStaticBitmap * _arg0; | |
8283 | wxWindow * _arg1; | |
8284 | wxWindowID _arg2; | |
8285 | wxBitmap * _arg3; | |
8286 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8287 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8288 | long _arg6 = (long ) 0; | |
8289 | char * _arg7 = (char *) "staticBitmap"; | |
8290 | PyObject * _argo0 = 0; | |
8291 | PyObject * _argo1 = 0; | |
8292 | PyObject * _argo3 = 0; | |
2f90df85 | 8293 | wxPoint temp; |
2f90df85 | 8294 | PyObject * _obj4 = 0; |
09f3d4e6 RD |
8295 | wxSize temp0; |
8296 | PyObject * _obj5 = 0; | |
8297 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
8ab979d7 RD |
8298 | |
8299 | self = self; | |
09f3d4e6 | 8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) |
8ab979d7 | 8301 | return NULL; |
1d99702e RD |
8302 | if (_argo0) { |
8303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
8304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8ab979d7 RD |
8306 | return NULL; |
8307 | } | |
8308 | } | |
09f3d4e6 RD |
8309 | if (_argo1) { |
8310 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8ab979d7 RD |
8313 | return NULL; |
8314 | } | |
8315 | } | |
09f3d4e6 RD |
8316 | if (_argo3) { |
8317 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | if (_obj4) | |
2f90df85 | 8324 | { |
09f3d4e6 RD |
8325 | _arg4 = &temp; |
8326 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 8327 | return NULL; |
2f90df85 | 8328 | } |
09f3d4e6 | 8329 | if (_obj5) |
2f90df85 | 8330 | { |
09f3d4e6 RD |
8331 | _arg5 = &temp0; |
8332 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 8333 | return NULL; |
2f90df85 | 8334 | } |
cf694132 | 8335 | { |
4268f798 | 8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8337 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
cf694132 | 8338 | |
4268f798 | 8339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8340 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 8341 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8342 | return _resultobj; |
8343 | } | |
8344 | ||
8345 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
efc5f224 | 8346 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8347 | PyObject * _resultobj; |
8348 | wxBitmap * _result; | |
8349 | wxStaticBitmap * _arg0; | |
1d99702e | 8350 | PyObject * _argo0 = 0; |
efc5f224 | 8351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8352 | char _ptemp[128]; |
8353 | ||
8354 | self = self; | |
efc5f224 | 8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
8ab979d7 | 8356 | return NULL; |
1d99702e RD |
8357 | if (_argo0) { |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
cf694132 | 8364 | { |
4268f798 | 8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8366 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
cf694132 | 8367 | |
4268f798 | 8368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8369 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8370 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
8371 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8372 | return _resultobj; |
8373 | } | |
8374 | ||
8375 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
efc5f224 | 8376 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8377 | PyObject * _resultobj; |
8378 | wxStaticBitmap * _arg0; | |
8379 | wxBitmap * _arg1; | |
1d99702e RD |
8380 | PyObject * _argo0 = 0; |
8381 | PyObject * _argo1 = 0; | |
efc5f224 | 8382 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
8383 | |
8384 | self = self; | |
efc5f224 | 8385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8386 | return NULL; |
1d99702e RD |
8387 | if (_argo0) { |
8388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
8391 | return NULL; | |
8392 | } | |
8393 | } | |
1d99702e RD |
8394 | if (_argo1) { |
8395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
8398 | return NULL; | |
8399 | } | |
8400 | } | |
cf694132 | 8401 | { |
4268f798 | 8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8403 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
cf694132 | 8404 | |
4268f798 | 8405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8407 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8408 | _resultobj = Py_None; |
8409 | return _resultobj; | |
8410 | } | |
8411 | ||
8bf5d46e | 8412 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
efc5f224 | 8413 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
8414 | PyObject * _resultobj; |
8415 | wxStaticBitmap * _arg0; | |
8416 | wxIcon * _arg1; | |
1d99702e RD |
8417 | PyObject * _argo0 = 0; |
8418 | PyObject * _argo1 = 0; | |
efc5f224 | 8419 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
8420 | |
8421 | self = self; | |
efc5f224 | 8422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 8423 | return NULL; |
1d99702e RD |
8424 | if (_argo0) { |
8425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
8427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
8428 | return NULL; | |
8429 | } | |
8430 | } | |
1d99702e RD |
8431 | if (_argo1) { |
8432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
8434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
8435 | return NULL; | |
8436 | } | |
8437 | } | |
8438 | { | |
4268f798 | 8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8440 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8bf5d46e | 8441 | |
4268f798 | 8442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8443 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8444 | } Py_INCREF(Py_None); |
8445 | _resultobj = Py_None; | |
8446 | return _resultobj; | |
8447 | } | |
8448 | ||
8ab979d7 RD |
8449 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
8450 | wxRadioBox *src; | |
8451 | wxControl *dest; | |
8452 | src = (wxRadioBox *) ptr; | |
8453 | dest = (wxControl *) src; | |
8454 | return (void *) dest; | |
8455 | } | |
8456 | ||
8457 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8458 | wxRadioBox *src; | |
8459 | wxWindow *dest; | |
8460 | src = (wxRadioBox *) ptr; | |
8461 | dest = (wxWindow *) src; | |
8462 | return (void *) dest; | |
8463 | } | |
8464 | ||
8465 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8466 | wxRadioBox *src; | |
8467 | wxEvtHandler *dest; | |
8468 | src = (wxRadioBox *) ptr; | |
8469 | dest = (wxEvtHandler *) src; | |
8470 | return (void *) dest; | |
8471 | } | |
8472 | ||
9416aa89 RD |
8473 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
8474 | wxRadioBox *src; | |
8475 | wxObject *dest; | |
8476 | src = (wxRadioBox *) ptr; | |
8477 | dest = (wxObject *) src; | |
8478 | return (void *) dest; | |
8479 | } | |
8480 | ||
8ab979d7 | 8481 | #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 | 8482 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8483 | PyObject * _resultobj; |
8484 | wxRadioBox * _result; | |
8485 | wxWindow * _arg0; | |
8486 | wxWindowID _arg1; | |
8487 | wxString * _arg2; | |
e508a2b6 RD |
8488 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8489 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
8490 | int _arg5 = (int ) 0; |
8491 | wxString * _arg6 = (wxString *) NULL; | |
8492 | int _arg7 = (int ) 0; | |
8493 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
e508a2b6 | 8494 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
8495 | char * _arg10 = (char *) "radioBox"; |
8496 | PyObject * _argo0 = 0; | |
8ab979d7 | 8497 | PyObject * _obj2 = 0; |
2f90df85 RD |
8498 | wxPoint temp; |
8499 | PyObject * _obj3 = 0; | |
8500 | wxSize temp0; | |
8501 | PyObject * _obj4 = 0; | |
8ab979d7 | 8502 | PyObject * _obj6 = 0; |
1d99702e | 8503 | PyObject * _argo9 = 0; |
eec92d76 | 8504 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
8ab979d7 RD |
8505 | char _ptemp[128]; |
8506 | ||
8507 | self = self; | |
2f90df85 | 8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
8ab979d7 | 8509 | return NULL; |
1d99702e RD |
8510 | if (_argo0) { |
8511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
8514 | return NULL; | |
8515 | } | |
8516 | } | |
8517 | { | |
c8bc7bb8 RD |
8518 | _arg2 = wxString_in_helper(_obj2); |
8519 | if (_arg2 == NULL) | |
185d7c3e | 8520 | return NULL; |
8ab979d7 | 8521 | } |
2f90df85 RD |
8522 | if (_obj3) |
8523 | { | |
8524 | _arg3 = &temp; | |
8525 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 8526 | return NULL; |
2f90df85 RD |
8527 | } |
8528 | if (_obj4) | |
8529 | { | |
8530 | _arg4 = &temp0; | |
8531 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 8532 | return NULL; |
2f90df85 | 8533 | } |
8ab979d7 RD |
8534 | if (_obj6) |
8535 | { | |
8536 | _arg6 = wxString_LIST_helper(_obj6); | |
8537 | if (_arg6 == NULL) { | |
8538 | return NULL; | |
8539 | } | |
8540 | } | |
1d99702e RD |
8541 | if (_argo9) { |
8542 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8543 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8ab979d7 RD |
8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
8545 | return NULL; | |
8546 | } | |
8547 | } | |
8548 | { | |
cf694132 RD |
8549 | if (_obj6) { |
8550 | _arg5 = PyList_Size(_obj6); | |
8551 | } | |
8552 | else { | |
8553 | _arg5 = 0; | |
8554 | } | |
8ab979d7 | 8555 | } |
cf694132 | 8556 | { |
4268f798 | 8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8558 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
cf694132 | 8559 | |
4268f798 | 8560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8561 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8562 | } if (_result) { |
8563 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8564 | _resultobj = Py_BuildValue("s",_ptemp); | |
8565 | } else { | |
8566 | Py_INCREF(Py_None); | |
8567 | _resultobj = Py_None; | |
8568 | } | |
8ab979d7 RD |
8569 | { |
8570 | if (_obj2) | |
8571 | delete _arg2; | |
8572 | } | |
8573 | { | |
8574 | delete [] _arg6; | |
8575 | } | |
8576 | return _resultobj; | |
8577 | } | |
8578 | ||
09f3d4e6 RD |
8579 | #define new_wxPreRadioBox() (new wxRadioBox()) |
8580 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject * _resultobj; | |
8582 | wxRadioBox * _result; | |
8583 | char *_kwnames[] = { NULL }; | |
8584 | char _ptemp[128]; | |
8585 | ||
8586 | self = self; | |
8587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8588 | return NULL; | |
8589 | { | |
4268f798 | 8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8591 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
09f3d4e6 | 8592 | |
4268f798 | 8593 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8594 | if (PyErr_Occurred()) return NULL; |
8595 | } if (_result) { | |
8596 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8597 | _resultobj = Py_BuildValue("s",_ptemp); | |
8598 | } else { | |
8599 | Py_INCREF(Py_None); | |
8600 | _resultobj = Py_None; | |
8601 | } | |
8602 | return _resultobj; | |
8603 | } | |
8604 | ||
8605 | #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)) | |
8606 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8607 | PyObject * _resultobj; | |
8608 | bool _result; | |
8609 | wxRadioBox * _arg0; | |
8610 | wxWindow * _arg1; | |
8611 | wxWindowID _arg2; | |
8612 | wxString * _arg3; | |
8613 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8614 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8615 | int _arg6 = (int ) 0; | |
8616 | wxString * _arg7 = (wxString *) NULL; | |
8617 | int _arg8 = (int ) 0; | |
8618 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8619 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8620 | char * _arg11 = (char *) "radioBox"; | |
8621 | PyObject * _argo0 = 0; | |
8622 | PyObject * _argo1 = 0; | |
8623 | PyObject * _obj3 = 0; | |
8624 | wxPoint temp; | |
8625 | PyObject * _obj4 = 0; | |
8626 | wxSize temp0; | |
8627 | PyObject * _obj5 = 0; | |
8628 | PyObject * _obj7 = 0; | |
8629 | PyObject * _argo10 = 0; | |
8630 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8631 | ||
8632 | self = self; | |
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8634 | return NULL; | |
8635 | if (_argo0) { | |
8636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8639 | return NULL; | |
8640 | } | |
8641 | } | |
8642 | if (_argo1) { | |
8643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8646 | return NULL; | |
8647 | } | |
8648 | } | |
8649 | { | |
c8bc7bb8 RD |
8650 | _arg3 = wxString_in_helper(_obj3); |
8651 | if (_arg3 == NULL) | |
09f3d4e6 | 8652 | return NULL; |
09f3d4e6 RD |
8653 | } |
8654 | if (_obj4) | |
8655 | { | |
8656 | _arg4 = &temp; | |
8657 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8658 | return NULL; | |
8659 | } | |
8660 | if (_obj5) | |
8661 | { | |
8662 | _arg5 = &temp0; | |
8663 | if (! wxSize_helper(_obj5, &_arg5)) | |
8664 | return NULL; | |
8665 | } | |
8666 | if (_obj7) | |
8667 | { | |
8668 | _arg7 = wxString_LIST_helper(_obj7); | |
8669 | if (_arg7 == NULL) { | |
8670 | return NULL; | |
8671 | } | |
8672 | } | |
8673 | if (_argo10) { | |
8674 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8675 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8677 | return NULL; | |
8678 | } | |
8679 | } | |
8680 | { | |
8681 | if (_obj7) { | |
8682 | _arg6 = PyList_Size(_obj7); | |
8683 | } | |
8684 | else { | |
8685 | _arg6 = 0; | |
8686 | } | |
8687 | } | |
8688 | { | |
4268f798 | 8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8690 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); |
09f3d4e6 | 8691 | |
4268f798 | 8692 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8693 | if (PyErr_Occurred()) return NULL; |
8694 | } _resultobj = Py_BuildValue("i",_result); | |
8695 | { | |
8696 | if (_obj3) | |
8697 | delete _arg3; | |
8698 | } | |
8699 | { | |
8700 | delete [] _arg7; | |
8701 | } | |
8702 | return _resultobj; | |
8703 | } | |
8704 | ||
0699c864 | 8705 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 8706 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8707 | PyObject * _resultobj; |
8708 | wxRadioBox * _arg0; | |
8709 | bool _arg1; | |
1d99702e | 8710 | PyObject * _argo0 = 0; |
8ab979d7 | 8711 | int tempbool1; |
efc5f224 | 8712 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
8713 | |
8714 | self = self; | |
efc5f224 | 8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 8716 | return NULL; |
1d99702e RD |
8717 | if (_argo0) { |
8718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8721 | return NULL; |
8722 | } | |
8723 | } | |
8724 | _arg1 = (bool ) tempbool1; | |
cf694132 | 8725 | { |
4268f798 | 8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8727 | wxRadioBox_Enable(_arg0,_arg1); |
cf694132 | 8728 | |
4268f798 | 8729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8730 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8731 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8732 | _resultobj = Py_None; |
8733 | return _resultobj; | |
8734 | } | |
8735 | ||
0699c864 | 8736 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8737 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8738 | PyObject * _resultobj; |
8739 | wxRadioBox * _arg0; | |
8740 | int _arg1; | |
8741 | bool _arg2; | |
1d99702e | 8742 | PyObject * _argo0 = 0; |
8ab979d7 | 8743 | int tempbool2; |
efc5f224 | 8744 | char *_kwnames[] = { "self","n","enable", NULL }; |
8ab979d7 RD |
8745 | |
8746 | self = self; | |
efc5f224 | 8747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8748 | return NULL; |
1d99702e RD |
8749 | if (_argo0) { |
8750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 8752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8753 | return NULL; |
8754 | } | |
8755 | } | |
8756 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8757 | { |
4268f798 | 8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8759 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
cf694132 | 8760 | |
4268f798 | 8761 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8762 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8763 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8764 | _resultobj = Py_None; |
8765 | return _resultobj; | |
8766 | } | |
8767 | ||
8768 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 8769 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8770 | PyObject * _resultobj; |
8771 | int _result; | |
8772 | wxRadioBox * _arg0; | |
8773 | wxString * _arg1; | |
1d99702e | 8774 | PyObject * _argo0 = 0; |
8ab979d7 | 8775 | PyObject * _obj1 = 0; |
efc5f224 | 8776 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
8777 | |
8778 | self = self; | |
efc5f224 | 8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8780 | return NULL; |
1d99702e RD |
8781 | if (_argo0) { |
8782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
8784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
8785 | return NULL; | |
8786 | } | |
8787 | } | |
8788 | { | |
c8bc7bb8 RD |
8789 | _arg1 = wxString_in_helper(_obj1); |
8790 | if (_arg1 == NULL) | |
185d7c3e | 8791 | return NULL; |
8ab979d7 | 8792 | } |
cf694132 | 8793 | { |
4268f798 | 8794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8795 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
cf694132 | 8796 | |
4268f798 | 8797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8798 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8799 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8800 | { |
8801 | if (_obj1) | |
8802 | delete _arg1; | |
8803 | } | |
8804 | return _resultobj; | |
8805 | } | |
8806 | ||
0adbc166 RD |
8807 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
8808 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8809 | PyObject * _resultobj; |
8810 | wxString * _result; | |
8811 | wxRadioBox * _arg0; | |
8812 | int _arg1; | |
1d99702e | 8813 | PyObject * _argo0 = 0; |
efc5f224 | 8814 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
8815 | |
8816 | self = self; | |
0adbc166 | 8817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8818 | return NULL; |
1d99702e RD |
8819 | if (_argo0) { |
8820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 8822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8823 | return NULL; |
8824 | } | |
8825 | } | |
8ab979d7 | 8826 | { |
4268f798 | 8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8828 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
cf694132 | 8829 | |
4268f798 | 8830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8832 | }{ |
c8bc7bb8 RD |
8833 | #if wxUSE_UNICODE |
8834 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8835 | #else | |
eec92d76 | 8836 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8837 | #endif |
8ab979d7 RD |
8838 | } |
8839 | { | |
8840 | delete _result; | |
8841 | } | |
8842 | return _resultobj; | |
8843 | } | |
8844 | ||
0adbc166 RD |
8845 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
8846 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8847 | PyObject * _resultobj; |
8ab979d7 | 8848 | wxRadioBox * _arg0; |
0adbc166 RD |
8849 | int _arg1; |
8850 | wxString * _arg2; | |
1d99702e | 8851 | PyObject * _argo0 = 0; |
0adbc166 RD |
8852 | PyObject * _obj2 = 0; |
8853 | char *_kwnames[] = { "self","n","label", NULL }; | |
8ab979d7 RD |
8854 | |
8855 | self = self; | |
0adbc166 | 8856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8857 | return NULL; |
1d99702e RD |
8858 | if (_argo0) { |
8859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 8861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8862 | return NULL; |
8863 | } | |
8864 | } | |
0adbc166 | 8865 | { |
c8bc7bb8 RD |
8866 | _arg2 = wxString_in_helper(_obj2); |
8867 | if (_arg2 == NULL) | |
0adbc166 | 8868 | return NULL; |
0adbc166 | 8869 | } |
cf694132 | 8870 | { |
4268f798 | 8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8872 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); |
cf694132 | 8873 | |
4268f798 | 8874 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8875 | if (PyErr_Occurred()) return NULL; |
0adbc166 RD |
8876 | } Py_INCREF(Py_None); |
8877 | _resultobj = Py_None; | |
8878 | { | |
8879 | if (_obj2) | |
8880 | delete _arg2; | |
8881 | } | |
8ab979d7 RD |
8882 | return _resultobj; |
8883 | } | |
8884 | ||
3a0958b1 RD |
8885 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
8886 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8887 | PyObject * _resultobj; |
0adbc166 | 8888 | int _result; |
8ab979d7 | 8889 | wxRadioBox * _arg0; |
1d99702e | 8890 | PyObject * _argo0 = 0; |
0adbc166 | 8891 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8892 | |
8893 | self = self; | |
3a0958b1 | 8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 8895 | return NULL; |
1d99702e RD |
8896 | if (_argo0) { |
8897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 8899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8900 | return NULL; |
8901 | } | |
8902 | } | |
8ab979d7 | 8903 | { |
4268f798 | 8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8905 | _result = (int )wxRadioBox_GetColumnCount(_arg0); |
cf694132 | 8906 | |
4268f798 | 8907 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8908 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 8909 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8910 | return _resultobj; |
8911 | } | |
8912 | ||
3a0958b1 RD |
8913 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) |
8914 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8915 | PyObject * _resultobj; |
3a0958b1 | 8916 | int _result; |
8ab979d7 | 8917 | wxRadioBox * _arg0; |
1d99702e | 8918 | PyObject * _argo0 = 0; |
efc5f224 | 8919 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8920 | |
8921 | self = self; | |
3a0958b1 | 8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) |
8ab979d7 | 8923 | return NULL; |
1d99702e RD |
8924 | if (_argo0) { |
8925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 8927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8928 | return NULL; |
8929 | } | |
8930 | } | |
8ab979d7 | 8931 | { |
4268f798 | 8932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8933 | _result = (int )wxRadioBox_GetRowCount(_arg0); |
cf694132 | 8934 | |
4268f798 | 8935 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8936 | if (PyErr_Occurred()) return NULL; |
3a0958b1 | 8937 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8938 | return _resultobj; |
8939 | } | |
8940 | ||
3a0958b1 RD |
8941 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
8942 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8943 | PyObject * _resultobj; |
8944 | int _result; | |
8945 | wxRadioBox * _arg0; | |
1d99702e | 8946 | PyObject * _argo0 = 0; |
efc5f224 | 8947 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8948 | |
8949 | self = self; | |
3a0958b1 | 8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 8951 | return NULL; |
1d99702e RD |
8952 | if (_argo0) { |
8953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 8955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8956 | return NULL; |
8957 | } | |
8958 | } | |
cf694132 | 8959 | { |
4268f798 | 8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8961 | _result = (int )wxRadioBox_GetSelection(_arg0); |
cf694132 | 8962 | |
4268f798 | 8963 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8964 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8965 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8966 | return _resultobj; |
8967 | } | |
8968 | ||
3a0958b1 RD |
8969 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
8970 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8971 | PyObject * _resultobj; |
3a0958b1 | 8972 | wxString * _result; |
8ab979d7 | 8973 | wxRadioBox * _arg0; |
1d99702e | 8974 | PyObject * _argo0 = 0; |
0adbc166 | 8975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8976 | |
8977 | self = self; | |
3a0958b1 | 8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 8979 | return NULL; |
1d99702e RD |
8980 | if (_argo0) { |
8981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 8983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
8984 | return NULL; |
8985 | } | |
8986 | } | |
8987 | { | |
4268f798 | 8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8989 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
0adbc166 | 8990 | |
4268f798 | 8991 | wxPyEndAllowThreads(__tstate); |
0adbc166 | 8992 | if (PyErr_Occurred()) return NULL; |
3a0958b1 | 8993 | }{ |
c8bc7bb8 RD |
8994 | #if wxUSE_UNICODE |
8995 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8996 | #else | |
3a0958b1 | 8997 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8998 | #endif |
3a0958b1 RD |
8999 | } |
9000 | { | |
9001 | delete _result; | |
9002 | } | |
0adbc166 RD |
9003 | return _resultobj; |
9004 | } | |
9005 | ||
3a0958b1 RD |
9006 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9007 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0adbc166 RD |
9008 | PyObject * _resultobj; |
9009 | int _result; | |
9010 | wxRadioBox * _arg0; | |
9011 | PyObject * _argo0 = 0; | |
9012 | char *_kwnames[] = { "self", NULL }; | |
9013 | ||
9014 | self = self; | |
3a0958b1 | 9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
185d7c3e | 9016 | return NULL; |
0adbc166 RD |
9017 | if (_argo0) { |
9018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
8ab979d7 | 9021 | return NULL; |
0adbc166 | 9022 | } |
8ab979d7 | 9023 | } |
cf694132 | 9024 | { |
4268f798 | 9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9026 | _result = (int )wxRadioBox_GetCount(_arg0); |
cf694132 | 9027 | |
4268f798 | 9028 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9029 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 9030 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9031 | return _resultobj; |
9032 | } | |
9033 | ||
9034 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 9035 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9036 | PyObject * _resultobj; |
9037 | wxRadioBox * _arg0; | |
9038 | int _arg1; | |
1d99702e | 9039 | PyObject * _argo0 = 0; |
efc5f224 | 9040 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
9041 | |
9042 | self = self; | |
efc5f224 | 9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9044 | return NULL; |
1d99702e RD |
9045 | if (_argo0) { |
9046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9049 | return NULL; | |
9050 | } | |
9051 | } | |
cf694132 | 9052 | { |
4268f798 | 9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9054 | wxRadioBox_SetSelection(_arg0,_arg1); |
cf694132 | 9055 | |
4268f798 | 9056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9058 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9059 | _resultobj = Py_None; |
9060 | return _resultobj; | |
9061 | } | |
9062 | ||
9063 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 9064 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9065 | PyObject * _resultobj; |
9066 | wxRadioBox * _arg0; | |
9067 | wxString * _arg1; | |
1d99702e | 9068 | PyObject * _argo0 = 0; |
8ab979d7 | 9069 | PyObject * _obj1 = 0; |
efc5f224 | 9070 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
9071 | |
9072 | self = self; | |
efc5f224 | 9073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9074 | return NULL; |
1d99702e RD |
9075 | if (_argo0) { |
9076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9079 | return NULL; | |
9080 | } | |
9081 | } | |
9082 | { | |
c8bc7bb8 RD |
9083 | _arg1 = wxString_in_helper(_obj1); |
9084 | if (_arg1 == NULL) | |
185d7c3e | 9085 | return NULL; |
8ab979d7 | 9086 | } |
cf694132 | 9087 | { |
4268f798 | 9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9089 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
cf694132 | 9090 | |
4268f798 | 9091 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9092 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9093 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9094 | _resultobj = Py_None; |
9095 | { | |
9096 | if (_obj1) | |
9097 | delete _arg1; | |
9098 | } | |
9099 | return _resultobj; | |
9100 | } | |
9101 | ||
9102 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 9103 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9104 | PyObject * _resultobj; |
9105 | wxRadioBox * _arg0; | |
9106 | bool _arg1; | |
1d99702e | 9107 | PyObject * _argo0 = 0; |
8ab979d7 | 9108 | int tempbool1; |
efc5f224 | 9109 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
9110 | |
9111 | self = self; | |
efc5f224 | 9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9113 | return NULL; |
1d99702e RD |
9114 | if (_argo0) { |
9115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9118 | return NULL; | |
9119 | } | |
9120 | } | |
9121 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9122 | { |
4268f798 | 9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9124 | wxRadioBox_Show(_arg0,_arg1); |
cf694132 | 9125 | |
4268f798 | 9126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9127 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9128 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9129 | _resultobj = Py_None; |
9130 | return _resultobj; | |
9131 | } | |
9132 | ||
9133 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
efc5f224 | 9134 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9135 | PyObject * _resultobj; |
9136 | wxRadioBox * _arg0; | |
9137 | int _arg1; | |
9138 | bool _arg2; | |
1d99702e | 9139 | PyObject * _argo0 = 0; |
8ab979d7 | 9140 | int tempbool2; |
efc5f224 | 9141 | char *_kwnames[] = { "self","item","show", NULL }; |
8ab979d7 RD |
9142 | |
9143 | self = self; | |
efc5f224 | 9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 9145 | return NULL; |
1d99702e RD |
9146 | if (_argo0) { |
9147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
9153 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9154 | { |
4268f798 | 9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9156 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
cf694132 | 9157 | |
4268f798 | 9158 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9160 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9161 | _resultobj = Py_None; |
9162 | return _resultobj; | |
9163 | } | |
9164 | ||
9165 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9166 | wxRadioButton *src; | |
9167 | wxControl *dest; | |
9168 | src = (wxRadioButton *) ptr; | |
9169 | dest = (wxControl *) src; | |
9170 | return (void *) dest; | |
9171 | } | |
9172 | ||
9173 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9174 | wxRadioButton *src; | |
9175 | wxWindow *dest; | |
9176 | src = (wxRadioButton *) ptr; | |
9177 | dest = (wxWindow *) src; | |
9178 | return (void *) dest; | |
9179 | } | |
9180 | ||
9181 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9182 | wxRadioButton *src; | |
9183 | wxEvtHandler *dest; | |
9184 | src = (wxRadioButton *) ptr; | |
9185 | dest = (wxEvtHandler *) src; | |
9186 | return (void *) dest; | |
9187 | } | |
9188 | ||
9416aa89 RD |
9189 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9190 | wxRadioButton *src; | |
9191 | wxObject *dest; | |
9192 | src = (wxRadioButton *) ptr; | |
9193 | dest = (wxObject *) src; | |
9194 | return (void *) dest; | |
9195 | } | |
9196 | ||
8ab979d7 | 9197 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 9198 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9199 | PyObject * _resultobj; |
9200 | wxRadioButton * _result; | |
9201 | wxWindow * _arg0; | |
9202 | wxWindowID _arg1; | |
9203 | wxString * _arg2; | |
e508a2b6 RD |
9204 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9205 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 9206 | long _arg5 = (long ) 0; |
e508a2b6 | 9207 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
9208 | char * _arg7 = (char *) "radioButton"; |
9209 | PyObject * _argo0 = 0; | |
8ab979d7 | 9210 | PyObject * _obj2 = 0; |
2f90df85 RD |
9211 | wxPoint temp; |
9212 | PyObject * _obj3 = 0; | |
9213 | wxSize temp0; | |
9214 | PyObject * _obj4 = 0; | |
1d99702e | 9215 | PyObject * _argo6 = 0; |
efc5f224 | 9216 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
9217 | char _ptemp[128]; |
9218 | ||
9219 | self = self; | |
2f90df85 | 9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
8ab979d7 | 9221 | return NULL; |
1d99702e RD |
9222 | if (_argo0) { |
9223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9226 | return NULL; | |
9227 | } | |
9228 | } | |
9229 | { | |
c8bc7bb8 RD |
9230 | _arg2 = wxString_in_helper(_obj2); |
9231 | if (_arg2 == NULL) | |
8ab979d7 | 9232 | return NULL; |
8ab979d7 | 9233 | } |
2f90df85 RD |
9234 | if (_obj3) |
9235 | { | |
09f3d4e6 RD |
9236 | _arg3 = &temp; |
9237 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9238 | return NULL; | |
9239 | } | |
9240 | if (_obj4) | |
9241 | { | |
9242 | _arg4 = &temp0; | |
9243 | if (! wxSize_helper(_obj4, &_arg4)) | |
9244 | return NULL; | |
9245 | } | |
9246 | if (_argo6) { | |
9247 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9248 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9250 | return NULL; | |
9251 | } | |
9252 | } | |
9253 | { | |
4268f798 | 9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9255 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
09f3d4e6 | 9256 | |
4268f798 | 9257 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9258 | if (PyErr_Occurred()) return NULL; |
9259 | } if (_result) { | |
9260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9261 | _resultobj = Py_BuildValue("s",_ptemp); | |
9262 | } else { | |
9263 | Py_INCREF(Py_None); | |
9264 | _resultobj = Py_None; | |
9265 | } | |
9266 | { | |
9267 | if (_obj2) | |
9268 | delete _arg2; | |
9269 | } | |
9270 | return _resultobj; | |
9271 | } | |
9272 | ||
9273 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9274 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject * _resultobj; | |
9276 | wxRadioButton * _result; | |
9277 | char *_kwnames[] = { NULL }; | |
9278 | char _ptemp[128]; | |
9279 | ||
9280 | self = self; | |
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9282 | return NULL; | |
9283 | { | |
4268f798 | 9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9285 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
09f3d4e6 | 9286 | |
4268f798 | 9287 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9288 | if (PyErr_Occurred()) return NULL; |
9289 | } if (_result) { | |
9290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9291 | _resultobj = Py_BuildValue("s",_ptemp); | |
9292 | } else { | |
9293 | Py_INCREF(Py_None); | |
9294 | _resultobj = Py_None; | |
9295 | } | |
9296 | return _resultobj; | |
9297 | } | |
9298 | ||
9299 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9300 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject * _resultobj; | |
9302 | bool _result; | |
9303 | wxRadioButton * _arg0; | |
9304 | wxWindow * _arg1; | |
9305 | wxWindowID _arg2; | |
9306 | wxString * _arg3; | |
9307 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9308 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9309 | long _arg6 = (long ) 0; | |
9310 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9311 | char * _arg8 = (char *) "radioButton"; | |
9312 | PyObject * _argo0 = 0; | |
9313 | PyObject * _argo1 = 0; | |
9314 | PyObject * _obj3 = 0; | |
9315 | wxPoint temp; | |
9316 | PyObject * _obj4 = 0; | |
9317 | wxSize temp0; | |
9318 | PyObject * _obj5 = 0; | |
9319 | PyObject * _argo7 = 0; | |
9320 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9321 | ||
9322 | self = self; | |
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9324 | return NULL; | |
9325 | if (_argo0) { | |
9326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9329 | return NULL; | |
9330 | } | |
9331 | } | |
9332 | if (_argo1) { | |
9333 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9334 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9336 | return NULL; | |
9337 | } | |
9338 | } | |
9339 | { | |
c8bc7bb8 RD |
9340 | _arg3 = wxString_in_helper(_obj3); |
9341 | if (_arg3 == NULL) | |
09f3d4e6 | 9342 | return NULL; |
09f3d4e6 RD |
9343 | } |
9344 | if (_obj4) | |
9345 | { | |
9346 | _arg4 = &temp; | |
9347 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 9348 | return NULL; |
2f90df85 | 9349 | } |
09f3d4e6 | 9350 | if (_obj5) |
2f90df85 | 9351 | { |
09f3d4e6 RD |
9352 | _arg5 = &temp0; |
9353 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 9354 | return NULL; |
2f90df85 | 9355 | } |
09f3d4e6 RD |
9356 | if (_argo7) { |
9357 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9358 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
9360 | return NULL; |
9361 | } | |
9362 | } | |
cf694132 | 9363 | { |
4268f798 | 9364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9365 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
cf694132 | 9366 | |
4268f798 | 9367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9368 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 9369 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 9370 | { |
09f3d4e6 RD |
9371 | if (_obj3) |
9372 | delete _arg3; | |
8ab979d7 RD |
9373 | } |
9374 | return _resultobj; | |
9375 | } | |
9376 | ||
9377 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 9378 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9379 | PyObject * _resultobj; |
9380 | bool _result; | |
9381 | wxRadioButton * _arg0; | |
1d99702e | 9382 | PyObject * _argo0 = 0; |
efc5f224 | 9383 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9384 | |
9385 | self = self; | |
efc5f224 | 9386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 9387 | return NULL; |
1d99702e RD |
9388 | if (_argo0) { |
9389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
9391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
9392 | return NULL; | |
9393 | } | |
9394 | } | |
cf694132 | 9395 | { |
4268f798 | 9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9397 | _result = (bool )wxRadioButton_GetValue(_arg0); |
cf694132 | 9398 | |
4268f798 | 9399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9401 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9402 | return _resultobj; |
9403 | } | |
9404 | ||
9405 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 9406 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9407 | PyObject * _resultobj; |
9408 | wxRadioButton * _arg0; | |
9409 | bool _arg1; | |
1d99702e | 9410 | PyObject * _argo0 = 0; |
8ab979d7 | 9411 | int tempbool1; |
efc5f224 | 9412 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
9413 | |
9414 | self = self; | |
efc5f224 | 9415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9416 | return NULL; |
1d99702e RD |
9417 | if (_argo0) { |
9418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
9420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
9421 | return NULL; | |
9422 | } | |
9423 | } | |
9424 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9425 | { |
4268f798 | 9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9427 | wxRadioButton_SetValue(_arg0,_arg1); |
cf694132 | 9428 | |
4268f798 | 9429 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9431 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9432 | _resultobj = Py_None; |
9433 | return _resultobj; | |
9434 | } | |
9435 | ||
9436 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9437 | wxSlider *src; | |
9438 | wxControl *dest; | |
9439 | src = (wxSlider *) ptr; | |
9440 | dest = (wxControl *) src; | |
9441 | return (void *) dest; | |
9442 | } | |
9443 | ||
9444 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9445 | wxSlider *src; | |
9446 | wxWindow *dest; | |
9447 | src = (wxSlider *) ptr; | |
9448 | dest = (wxWindow *) src; | |
9449 | return (void *) dest; | |
9450 | } | |
9451 | ||
9452 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9453 | wxSlider *src; | |
9454 | wxEvtHandler *dest; | |
9455 | src = (wxSlider *) ptr; | |
9456 | dest = (wxEvtHandler *) src; | |
9457 | return (void *) dest; | |
9458 | } | |
9459 | ||
9416aa89 RD |
9460 | static void *SwigwxSliderTowxObject(void *ptr) { |
9461 | wxSlider *src; | |
9462 | wxObject *dest; | |
9463 | src = (wxSlider *) ptr; | |
9464 | dest = (wxObject *) src; | |
9465 | return (void *) dest; | |
9466 | } | |
9467 | ||
8ab979d7 | 9468 | #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 | 9469 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9470 | PyObject * _resultobj; |
9471 | wxSlider * _result; | |
9472 | wxWindow * _arg0; | |
9473 | wxWindowID _arg1; | |
9474 | int _arg2; | |
9475 | int _arg3; | |
9476 | int _arg4; | |
e508a2b6 RD |
9477 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
9478 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
1d99702e | 9479 | long _arg7 = (long ) wxSL_HORIZONTAL; |
e508a2b6 | 9480 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
9481 | char * _arg9 = (char *) "slider"; |
9482 | PyObject * _argo0 = 0; | |
2f90df85 RD |
9483 | wxPoint temp; |
9484 | PyObject * _obj5 = 0; | |
9485 | wxSize temp0; | |
9486 | PyObject * _obj6 = 0; | |
1d99702e | 9487 | PyObject * _argo8 = 0; |
efc5f224 | 9488 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
8ab979d7 RD |
9489 | char _ptemp[128]; |
9490 | ||
9491 | self = self; | |
2f90df85 | 9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
8ab979d7 | 9493 | return NULL; |
1d99702e RD |
9494 | if (_argo0) { |
9495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
9498 | return NULL; | |
9499 | } | |
9500 | } | |
2f90df85 RD |
9501 | if (_obj5) |
9502 | { | |
9503 | _arg5 = &temp; | |
9504 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 9505 | return NULL; |
2f90df85 RD |
9506 | } |
9507 | if (_obj6) | |
9508 | { | |
9509 | _arg6 = &temp0; | |
9510 | if (! wxSize_helper(_obj6, &_arg6)) | |
8ab979d7 | 9511 | return NULL; |
2f90df85 | 9512 | } |
1d99702e RD |
9513 | if (_argo8) { |
9514 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
cf694132 | 9520 | { |
4268f798 | 9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9522 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); |
cf694132 | 9523 | |
4268f798 | 9524 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9525 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9526 | } if (_result) { |
9527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9528 | _resultobj = Py_BuildValue("s",_ptemp); | |
9529 | } else { | |
9530 | Py_INCREF(Py_None); | |
9531 | _resultobj = Py_None; | |
9532 | } | |
8ab979d7 RD |
9533 | return _resultobj; |
9534 | } | |
9535 | ||
09f3d4e6 RD |
9536 | #define new_wxPreSlider() (new wxSlider()) |
9537 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject * _resultobj; | |
9539 | wxSlider * _result; | |
9540 | char *_kwnames[] = { NULL }; | |
9541 | char _ptemp[128]; | |
9542 | ||
9543 | self = self; | |
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9545 | return NULL; | |
9546 | { | |
4268f798 | 9547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9548 | _result = (wxSlider *)new_wxPreSlider(); |
09f3d4e6 | 9549 | |
4268f798 | 9550 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9551 | if (PyErr_Occurred()) return NULL; |
9552 | } if (_result) { | |
9553 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9554 | _resultobj = Py_BuildValue("s",_ptemp); | |
9555 | } else { | |
9556 | Py_INCREF(Py_None); | |
9557 | _resultobj = Py_None; | |
9558 | } | |
9559 | return _resultobj; | |
9560 | } | |
9561 | ||
9562 | #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)) | |
9563 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject * _resultobj; | |
9565 | bool _result; | |
9566 | wxSlider * _arg0; | |
9567 | wxWindow * _arg1; | |
9568 | wxWindowID _arg2; | |
9569 | int _arg3; | |
9570 | int _arg4; | |
9571 | int _arg5; | |
9572 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9573 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9574 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9575 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9576 | char * _arg10 = (char *) "slider"; | |
9577 | PyObject * _argo0 = 0; | |
9578 | PyObject * _argo1 = 0; | |
9579 | wxPoint temp; | |
9580 | PyObject * _obj6 = 0; | |
9581 | wxSize temp0; | |
9582 | PyObject * _obj7 = 0; | |
9583 | PyObject * _argo9 = 0; | |
9584 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9585 | ||
9586 | self = self; | |
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9588 | return NULL; | |
9589 | if (_argo0) { | |
9590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9593 | return NULL; | |
9594 | } | |
9595 | } | |
9596 | if (_argo1) { | |
9597 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9598 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9600 | return NULL; | |
9601 | } | |
9602 | } | |
9603 | if (_obj6) | |
9604 | { | |
9605 | _arg6 = &temp; | |
9606 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9607 | return NULL; | |
9608 | } | |
9609 | if (_obj7) | |
9610 | { | |
9611 | _arg7 = &temp0; | |
9612 | if (! wxSize_helper(_obj7, &_arg7)) | |
9613 | return NULL; | |
9614 | } | |
9615 | if (_argo9) { | |
9616 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9617 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9619 | return NULL; | |
9620 | } | |
9621 | } | |
9622 | { | |
4268f798 | 9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9624 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); |
09f3d4e6 | 9625 | |
4268f798 | 9626 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9627 | if (PyErr_Occurred()) return NULL; |
9628 | } _resultobj = Py_BuildValue("i",_result); | |
9629 | return _resultobj; | |
9630 | } | |
9631 | ||
8ab979d7 | 9632 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
efc5f224 | 9633 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9634 | PyObject * _resultobj; |
9635 | wxSlider * _arg0; | |
1d99702e | 9636 | PyObject * _argo0 = 0; |
efc5f224 | 9637 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9638 | |
9639 | self = self; | |
efc5f224 | 9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
8ab979d7 | 9641 | return NULL; |
1d99702e RD |
9642 | if (_argo0) { |
9643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
9646 | return NULL; | |
9647 | } | |
9648 | } | |
cf694132 | 9649 | { |
4268f798 | 9650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9651 | wxSlider_ClearSel(_arg0); |
cf694132 | 9652 | |
4268f798 | 9653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9655 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9656 | _resultobj = Py_None; |
9657 | return _resultobj; | |
9658 | } | |
9659 | ||
9660 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
efc5f224 | 9661 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9662 | PyObject * _resultobj; |
9663 | wxSlider * _arg0; | |
1d99702e | 9664 | PyObject * _argo0 = 0; |
efc5f224 | 9665 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9666 | |
9667 | self = self; | |
efc5f224 | 9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
8ab979d7 | 9669 | return NULL; |
1d99702e RD |
9670 | if (_argo0) { |
9671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
9674 | return NULL; | |
9675 | } | |
9676 | } | |
cf694132 | 9677 | { |
4268f798 | 9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9679 | wxSlider_ClearTicks(_arg0); |
cf694132 | 9680 | |
4268f798 | 9681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9682 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9683 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9684 | _resultobj = Py_None; |
9685 | return _resultobj; | |
9686 | } | |
9687 | ||
9688 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
efc5f224 | 9689 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9690 | PyObject * _resultobj; |
9691 | int _result; | |
9692 | wxSlider * _arg0; | |
1d99702e | 9693 | PyObject * _argo0 = 0; |
efc5f224 | 9694 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9695 | |
9696 | self = self; | |
efc5f224 | 9697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
8ab979d7 | 9698 | return NULL; |
1d99702e RD |
9699 | if (_argo0) { |
9700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
9703 | return NULL; | |
9704 | } | |
9705 | } | |
cf694132 | 9706 | { |
4268f798 | 9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9708 | _result = (int )wxSlider_GetLineSize(_arg0); |
cf694132 | 9709 | |
4268f798 | 9710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9711 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9712 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9713 | return _resultobj; |
9714 | } | |
9715 | ||
9716 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 9717 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9718 | PyObject * _resultobj; |
9719 | int _result; | |
9720 | wxSlider * _arg0; | |
1d99702e | 9721 | PyObject * _argo0 = 0; |
efc5f224 | 9722 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9723 | |
9724 | self = self; | |
efc5f224 | 9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 9726 | return NULL; |
1d99702e RD |
9727 | if (_argo0) { |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
9731 | return NULL; | |
9732 | } | |
9733 | } | |
cf694132 | 9734 | { |
4268f798 | 9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9736 | _result = (int )wxSlider_GetMax(_arg0); |
cf694132 | 9737 | |
4268f798 | 9738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9740 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9741 | return _resultobj; |
9742 | } | |
9743 | ||
9744 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 9745 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9746 | PyObject * _resultobj; |
9747 | int _result; | |
9748 | wxSlider * _arg0; | |
1d99702e | 9749 | PyObject * _argo0 = 0; |
efc5f224 | 9750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9751 | |
9752 | self = self; | |
efc5f224 | 9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 9754 | return NULL; |
1d99702e RD |
9755 | if (_argo0) { |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
cf694132 | 9762 | { |
4268f798 | 9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9764 | _result = (int )wxSlider_GetMin(_arg0); |
cf694132 | 9765 | |
4268f798 | 9766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9767 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9768 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9769 | return _resultobj; |
9770 | } | |
9771 | ||
9772 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 9773 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9774 | PyObject * _resultobj; |
9775 | int _result; | |
9776 | wxSlider * _arg0; | |
1d99702e | 9777 | PyObject * _argo0 = 0; |
efc5f224 | 9778 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9779 | |
9780 | self = self; | |
efc5f224 | 9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 9782 | return NULL; |
1d99702e RD |
9783 | if (_argo0) { |
9784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
9787 | return NULL; | |
9788 | } | |
9789 | } | |
cf694132 | 9790 | { |
4268f798 | 9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9792 | _result = (int )wxSlider_GetPageSize(_arg0); |
cf694132 | 9793 | |
4268f798 | 9794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9796 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9797 | return _resultobj; |
9798 | } | |
9799 | ||
9800 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
efc5f224 | 9801 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9802 | PyObject * _resultobj; |
9803 | int _result; | |
9804 | wxSlider * _arg0; | |
1d99702e | 9805 | PyObject * _argo0 = 0; |
efc5f224 | 9806 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9807 | |
9808 | self = self; | |
efc5f224 | 9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
8ab979d7 | 9810 | return NULL; |
1d99702e RD |
9811 | if (_argo0) { |
9812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
9815 | return NULL; | |
9816 | } | |
9817 | } | |
cf694132 | 9818 | { |
4268f798 | 9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9820 | _result = (int )wxSlider_GetSelEnd(_arg0); |
cf694132 | 9821 | |
4268f798 | 9822 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9823 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9824 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9825 | return _resultobj; |
9826 | } | |
9827 | ||
9828 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
efc5f224 | 9829 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9830 | PyObject * _resultobj; |
9831 | int _result; | |
9832 | wxSlider * _arg0; | |
1d99702e | 9833 | PyObject * _argo0 = 0; |
efc5f224 | 9834 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9835 | |
9836 | self = self; | |
efc5f224 | 9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
8ab979d7 | 9838 | return NULL; |
1d99702e RD |
9839 | if (_argo0) { |
9840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
9843 | return NULL; | |
9844 | } | |
9845 | } | |
cf694132 | 9846 | { |
4268f798 | 9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9848 | _result = (int )wxSlider_GetSelStart(_arg0); |
cf694132 | 9849 | |
4268f798 | 9850 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9851 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9852 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9853 | return _resultobj; |
9854 | } | |
9855 | ||
9856 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
efc5f224 | 9857 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9858 | PyObject * _resultobj; |
9859 | int _result; | |
9860 | wxSlider * _arg0; | |
1d99702e | 9861 | PyObject * _argo0 = 0; |
efc5f224 | 9862 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9863 | |
9864 | self = self; | |
efc5f224 | 9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
8ab979d7 | 9866 | return NULL; |
1d99702e RD |
9867 | if (_argo0) { |
9868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
9871 | return NULL; | |
9872 | } | |
9873 | } | |
cf694132 | 9874 | { |
4268f798 | 9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9876 | _result = (int )wxSlider_GetThumbLength(_arg0); |
cf694132 | 9877 | |
4268f798 | 9878 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9880 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9881 | return _resultobj; |
9882 | } | |
9883 | ||
9884 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
efc5f224 | 9885 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9886 | PyObject * _resultobj; |
9887 | int _result; | |
9888 | wxSlider * _arg0; | |
1d99702e | 9889 | PyObject * _argo0 = 0; |
efc5f224 | 9890 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9891 | |
9892 | self = self; | |
efc5f224 | 9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
8ab979d7 | 9894 | return NULL; |
1d99702e RD |
9895 | if (_argo0) { |
9896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
9899 | return NULL; | |
9900 | } | |
9901 | } | |
cf694132 | 9902 | { |
4268f798 | 9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9904 | _result = (int )wxSlider_GetTickFreq(_arg0); |
cf694132 | 9905 | |
4268f798 | 9906 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9908 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9909 | return _resultobj; |
9910 | } | |
9911 | ||
9912 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 9913 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9914 | PyObject * _resultobj; |
9915 | int _result; | |
9916 | wxSlider * _arg0; | |
1d99702e | 9917 | PyObject * _argo0 = 0; |
efc5f224 | 9918 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9919 | |
9920 | self = self; | |
efc5f224 | 9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 9922 | return NULL; |
1d99702e RD |
9923 | if (_argo0) { |
9924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
9927 | return NULL; | |
9928 | } | |
9929 | } | |
cf694132 | 9930 | { |
4268f798 | 9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9932 | _result = (int )wxSlider_GetValue(_arg0); |
cf694132 | 9933 | |
4268f798 | 9934 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9936 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9937 | return _resultobj; |
9938 | } | |
9939 | ||
9940 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 9941 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9942 | PyObject * _resultobj; |
9943 | wxSlider * _arg0; | |
9944 | int _arg1; | |
9945 | int _arg2; | |
1d99702e | 9946 | PyObject * _argo0 = 0; |
efc5f224 | 9947 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
8ab979d7 RD |
9948 | |
9949 | self = self; | |
efc5f224 | 9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9951 | return NULL; |
1d99702e RD |
9952 | if (_argo0) { |
9953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
9956 | return NULL; | |
9957 | } | |
9958 | } | |
cf694132 | 9959 | { |
4268f798 | 9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9961 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
cf694132 | 9962 | |
4268f798 | 9963 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9964 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9965 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9966 | _resultobj = Py_None; |
9967 | return _resultobj; | |
9968 | } | |
9969 | ||
9970 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
efc5f224 | 9971 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9972 | PyObject * _resultobj; |
9973 | wxSlider * _arg0; | |
9974 | int _arg1; | |
9975 | int _arg2; | |
1d99702e | 9976 | PyObject * _argo0 = 0; |
efc5f224 | 9977 | char *_kwnames[] = { "self","n","pos", NULL }; |
8ab979d7 RD |
9978 | |
9979 | self = self; | |
efc5f224 | 9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9981 | return NULL; |
1d99702e RD |
9982 | if (_argo0) { |
9983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
9985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
9986 | return NULL; | |
9987 | } | |
9988 | } | |
cf694132 | 9989 | { |
4268f798 | 9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9991 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
cf694132 | 9992 | |
4268f798 | 9993 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9996 | _resultobj = Py_None; |
9997 | return _resultobj; | |
9998 | } | |
9999 | ||
10000 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
efc5f224 | 10001 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10002 | PyObject * _resultobj; |
10003 | wxSlider * _arg0; | |
10004 | int _arg1; | |
1d99702e | 10005 | PyObject * _argo0 = 0; |
efc5f224 | 10006 | char *_kwnames[] = { "self","lineSize", NULL }; |
8ab979d7 RD |
10007 | |
10008 | self = self; | |
efc5f224 | 10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10010 | return NULL; |
1d99702e RD |
10011 | if (_argo0) { |
10012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10015 | return NULL; | |
10016 | } | |
10017 | } | |
cf694132 | 10018 | { |
4268f798 | 10019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10020 | wxSlider_SetLineSize(_arg0,_arg1); |
cf694132 | 10021 | |
4268f798 | 10022 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10024 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10025 | _resultobj = Py_None; |
10026 | return _resultobj; | |
10027 | } | |
10028 | ||
10029 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
efc5f224 | 10030 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10031 | PyObject * _resultobj; |
10032 | wxSlider * _arg0; | |
10033 | int _arg1; | |
1d99702e | 10034 | PyObject * _argo0 = 0; |
efc5f224 | 10035 | char *_kwnames[] = { "self","pageSize", NULL }; |
8ab979d7 RD |
10036 | |
10037 | self = self; | |
efc5f224 | 10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10039 | return NULL; |
1d99702e RD |
10040 | if (_argo0) { |
10041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10044 | return NULL; | |
10045 | } | |
10046 | } | |
cf694132 | 10047 | { |
4268f798 | 10048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10049 | wxSlider_SetPageSize(_arg0,_arg1); |
cf694132 | 10050 | |
4268f798 | 10051 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10052 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10053 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10054 | _resultobj = Py_None; |
10055 | return _resultobj; | |
10056 | } | |
10057 | ||
10058 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 10059 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10060 | PyObject * _resultobj; |
10061 | wxSlider * _arg0; | |
10062 | int _arg1; | |
10063 | int _arg2; | |
1d99702e | 10064 | PyObject * _argo0 = 0; |
efc5f224 | 10065 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
8ab979d7 RD |
10066 | |
10067 | self = self; | |
efc5f224 | 10068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10069 | return NULL; |
1d99702e RD |
10070 | if (_argo0) { |
10071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10074 | return NULL; | |
10075 | } | |
10076 | } | |
cf694132 | 10077 | { |
4268f798 | 10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10079 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
cf694132 | 10080 | |
4268f798 | 10081 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10082 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10083 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10084 | _resultobj = Py_None; |
10085 | return _resultobj; | |
10086 | } | |
10087 | ||
10088 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
efc5f224 | 10089 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10090 | PyObject * _resultobj; |
10091 | wxSlider * _arg0; | |
10092 | int _arg1; | |
1d99702e | 10093 | PyObject * _argo0 = 0; |
efc5f224 | 10094 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
10095 | |
10096 | self = self; | |
efc5f224 | 10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10098 | return NULL; |
1d99702e RD |
10099 | if (_argo0) { |
10100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10103 | return NULL; | |
10104 | } | |
10105 | } | |
cf694132 | 10106 | { |
4268f798 | 10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10108 | wxSlider_SetThumbLength(_arg0,_arg1); |
cf694132 | 10109 | |
4268f798 | 10110 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10111 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10112 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10113 | _resultobj = Py_None; |
10114 | return _resultobj; | |
10115 | } | |
10116 | ||
10117 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
efc5f224 | 10118 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10119 | PyObject * _resultobj; |
10120 | wxSlider * _arg0; | |
10121 | int _arg1; | |
1d99702e | 10122 | PyObject * _argo0 = 0; |
efc5f224 | 10123 | char *_kwnames[] = { "self","tickPos", NULL }; |
8ab979d7 RD |
10124 | |
10125 | self = self; | |
efc5f224 | 10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10127 | return NULL; |
1d99702e RD |
10128 | if (_argo0) { |
10129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10132 | return NULL; | |
10133 | } | |
10134 | } | |
cf694132 | 10135 | { |
4268f798 | 10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10137 | wxSlider_SetTick(_arg0,_arg1); |
cf694132 | 10138 | |
4268f798 | 10139 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10140 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10141 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10142 | _resultobj = Py_None; |
10143 | return _resultobj; | |
10144 | } | |
10145 | ||
10146 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 10147 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10148 | PyObject * _resultobj; |
10149 | wxSlider * _arg0; | |
10150 | int _arg1; | |
1d99702e | 10151 | PyObject * _argo0 = 0; |
efc5f224 | 10152 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
10153 | |
10154 | self = self; | |
efc5f224 | 10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
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_SetValue. Expected _wxSlider_p."); |
10161 | return NULL; | |
10162 | } | |
10163 | } | |
cf694132 | 10164 | { |
4268f798 | 10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10166 | wxSlider_SetValue(_arg0,_arg1); |
cf694132 | 10167 | |
4268f798 | 10168 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10169 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10170 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10171 | _resultobj = Py_None; |
10172 | return _resultobj; | |
10173 | } | |
10174 | ||
f6bcfd97 BP |
10175 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10176 | wxSpinCtrl *src; | |
10177 | wxSpinButton *dest; | |
10178 | src = (wxSpinCtrl *) ptr; | |
10179 | dest = (wxSpinButton *) src; | |
10180 | return (void *) dest; | |
10181 | } | |
10182 | ||
10183 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10184 | wxSpinCtrl *src; | |
10185 | wxControl *dest; | |
10186 | src = (wxSpinCtrl *) ptr; | |
10187 | dest = (wxControl *) src; | |
10188 | return (void *) dest; | |
10189 | } | |
10190 | ||
10191 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10192 | wxSpinCtrl *src; | |
10193 | wxWindow *dest; | |
10194 | src = (wxSpinCtrl *) ptr; | |
10195 | dest = (wxWindow *) src; | |
10196 | return (void *) dest; | |
10197 | } | |
10198 | ||
10199 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10200 | wxSpinCtrl *src; | |
10201 | wxEvtHandler *dest; | |
10202 | src = (wxSpinCtrl *) ptr; | |
10203 | dest = (wxEvtHandler *) src; | |
10204 | return (void *) dest; | |
10205 | } | |
10206 | ||
9416aa89 RD |
10207 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10208 | wxSpinCtrl *src; | |
10209 | wxObject *dest; | |
10210 | src = (wxSpinCtrl *) ptr; | |
10211 | dest = (wxObject *) src; | |
10212 | return (void *) dest; | |
10213 | } | |
10214 | ||
f6bcfd97 BP |
10215 | #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)) |
10216 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject * _resultobj; | |
10218 | wxSpinCtrl * _result; | |
10219 | wxWindow * _arg0; | |
10220 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10221 | char * _arg2 = (char *) ""; | |
e508a2b6 RD |
10222 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10223 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
10224 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
10225 | int _arg6 = (int ) 0; | |
10226 | int _arg7 = (int ) 100; | |
10227 | int _arg8 = (int ) 0; | |
10228 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10229 | PyObject * _argo0 = 0; | |
10230 | wxPoint temp; | |
10231 | PyObject * _obj3 = 0; | |
10232 | wxSize temp0; | |
10233 | PyObject * _obj4 = 0; | |
10234 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10235 | char _ptemp[128]; | |
10236 | ||
10237 | self = self; | |
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10239 | return NULL; | |
10240 | if (_argo0) { | |
10241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10244 | return NULL; | |
10245 | } | |
10246 | } | |
10247 | if (_obj3) | |
10248 | { | |
10249 | _arg3 = &temp; | |
10250 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10251 | return NULL; | |
10252 | } | |
10253 | if (_obj4) | |
10254 | { | |
10255 | _arg4 = &temp0; | |
10256 | if (! wxSize_helper(_obj4, &_arg4)) | |
10257 | return NULL; | |
10258 | } | |
10259 | { | |
4268f798 | 10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10261 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
f6bcfd97 | 10262 | |
4268f798 | 10263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10264 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10265 | } if (_result) { |
10266 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10267 | _resultobj = Py_BuildValue("s",_ptemp); | |
10268 | } else { | |
10269 | Py_INCREF(Py_None); | |
10270 | _resultobj = Py_None; | |
10271 | } | |
10272 | return _resultobj; | |
10273 | } | |
10274 | ||
09f3d4e6 RD |
10275 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
10276 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject * _resultobj; | |
10278 | wxSpinCtrl * _result; | |
10279 | char *_kwnames[] = { NULL }; | |
10280 | char _ptemp[128]; | |
10281 | ||
10282 | self = self; | |
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10284 | return NULL; | |
10285 | { | |
4268f798 | 10286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10287 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
09f3d4e6 | 10288 | |
4268f798 | 10289 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10290 | if (PyErr_Occurred()) return NULL; |
10291 | } if (_result) { | |
10292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10293 | _resultobj = Py_BuildValue("s",_ptemp); | |
10294 | } else { | |
10295 | Py_INCREF(Py_None); | |
10296 | _resultobj = Py_None; | |
10297 | } | |
10298 | return _resultobj; | |
10299 | } | |
10300 | ||
10301 | #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)) | |
10302 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10303 | PyObject * _resultobj; | |
10304 | bool _result; | |
10305 | wxSpinCtrl * _arg0; | |
10306 | wxWindow * _arg1; | |
10307 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10308 | char * _arg3 = (char *) ""; | |
10309 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10310 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10311 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10312 | int _arg7 = (int ) 0; | |
10313 | int _arg8 = (int ) 100; | |
10314 | int _arg9 = (int ) 0; | |
10315 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10316 | PyObject * _argo0 = 0; | |
10317 | PyObject * _argo1 = 0; | |
10318 | wxPoint temp; | |
10319 | PyObject * _obj4 = 0; | |
10320 | wxSize temp0; | |
10321 | PyObject * _obj5 = 0; | |
10322 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10323 | ||
10324 | self = self; | |
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10326 | return NULL; | |
10327 | if (_argo0) { | |
10328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10331 | return NULL; | |
10332 | } | |
10333 | } | |
10334 | if (_argo1) { | |
10335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10338 | return NULL; | |
10339 | } | |
10340 | } | |
10341 | if (_obj4) | |
10342 | { | |
10343 | _arg4 = &temp; | |
10344 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10345 | return NULL; | |
10346 | } | |
10347 | if (_obj5) | |
10348 | { | |
10349 | _arg5 = &temp0; | |
10350 | if (! wxSize_helper(_obj5, &_arg5)) | |
10351 | return NULL; | |
10352 | } | |
10353 | { | |
4268f798 | 10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10355 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); |
09f3d4e6 | 10356 | |
4268f798 | 10357 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10358 | if (PyErr_Occurred()) return NULL; |
10359 | } _resultobj = Py_BuildValue("i",_result); | |
10360 | return _resultobj; | |
10361 | } | |
10362 | ||
c368d904 RD |
10363 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
10364 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject * _resultobj; | |
10366 | int _result; | |
10367 | wxSpinCtrl * _arg0; | |
10368 | PyObject * _argo0 = 0; | |
10369 | char *_kwnames[] = { "self", NULL }; | |
10370 | ||
10371 | self = self; | |
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10373 | return NULL; | |
10374 | if (_argo0) { | |
10375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10378 | return NULL; | |
10379 | } | |
10380 | } | |
10381 | { | |
4268f798 | 10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10383 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
c368d904 | 10384 | |
4268f798 | 10385 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10386 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10387 | } _resultobj = Py_BuildValue("i",_result); |
10388 | return _resultobj; | |
10389 | } | |
10390 | ||
10391 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10392 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject * _resultobj; | |
10394 | int _result; | |
10395 | wxSpinCtrl * _arg0; | |
10396 | PyObject * _argo0 = 0; | |
10397 | char *_kwnames[] = { "self", NULL }; | |
10398 | ||
10399 | self = self; | |
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10401 | return NULL; | |
10402 | if (_argo0) { | |
10403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10406 | return NULL; | |
10407 | } | |
10408 | } | |
10409 | { | |
4268f798 | 10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10411 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
c368d904 | 10412 | |
4268f798 | 10413 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10414 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10415 | } _resultobj = Py_BuildValue("i",_result); |
10416 | return _resultobj; | |
10417 | } | |
10418 | ||
10419 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10420 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10421 | PyObject * _resultobj; | |
10422 | int _result; | |
10423 | wxSpinCtrl * _arg0; | |
10424 | PyObject * _argo0 = 0; | |
10425 | char *_kwnames[] = { "self", NULL }; | |
10426 | ||
10427 | self = self; | |
10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10429 | return NULL; | |
10430 | if (_argo0) { | |
10431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10434 | return NULL; | |
10435 | } | |
10436 | } | |
10437 | { | |
4268f798 | 10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10439 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
c368d904 | 10440 | |
4268f798 | 10441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10442 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10443 | } _resultobj = Py_BuildValue("i",_result); |
10444 | return _resultobj; | |
10445 | } | |
10446 | ||
10447 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10448 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10449 | PyObject * _resultobj; | |
10450 | wxSpinCtrl * _arg0; | |
10451 | int _arg1; | |
10452 | int _arg2; | |
10453 | PyObject * _argo0 = 0; | |
10454 | char *_kwnames[] = { "self","min","max", NULL }; | |
10455 | ||
10456 | self = self; | |
10457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10458 | return NULL; | |
10459 | if (_argo0) { | |
10460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10463 | return NULL; | |
10464 | } | |
10465 | } | |
10466 | { | |
4268f798 | 10467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10468 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
c368d904 | 10469 | |
4268f798 | 10470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10471 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10472 | } Py_INCREF(Py_None); |
10473 | _resultobj = Py_None; | |
10474 | return _resultobj; | |
10475 | } | |
10476 | ||
10477 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10478 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10479 | PyObject * _resultobj; | |
10480 | wxSpinCtrl * _arg0; | |
10481 | int _arg1; | |
10482 | PyObject * _argo0 = 0; | |
10483 | char *_kwnames[] = { "self","value", NULL }; | |
10484 | ||
10485 | self = self; | |
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10487 | return NULL; | |
10488 | if (_argo0) { | |
10489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10492 | return NULL; | |
10493 | } | |
10494 | } | |
10495 | { | |
4268f798 | 10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10497 | wxSpinCtrl_SetValue(_arg0,_arg1); |
c368d904 | 10498 | |
4268f798 | 10499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10500 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10501 | } Py_INCREF(Py_None); |
10502 | _resultobj = Py_None; | |
10503 | return _resultobj; | |
10504 | } | |
10505 | ||
d1679124 RD |
10506 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
10507 | wxToggleButton *src; | |
10508 | wxControl *dest; | |
10509 | src = (wxToggleButton *) ptr; | |
10510 | dest = (wxControl *) src; | |
10511 | return (void *) dest; | |
10512 | } | |
10513 | ||
10514 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10515 | wxToggleButton *src; | |
10516 | wxWindow *dest; | |
10517 | src = (wxToggleButton *) ptr; | |
10518 | dest = (wxWindow *) src; | |
10519 | return (void *) dest; | |
10520 | } | |
10521 | ||
10522 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10523 | wxToggleButton *src; | |
10524 | wxEvtHandler *dest; | |
10525 | src = (wxToggleButton *) ptr; | |
10526 | dest = (wxEvtHandler *) src; | |
10527 | return (void *) dest; | |
10528 | } | |
10529 | ||
9416aa89 RD |
10530 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
10531 | wxToggleButton *src; | |
10532 | wxObject *dest; | |
10533 | src = (wxToggleButton *) ptr; | |
10534 | dest = (wxObject *) src; | |
10535 | return (void *) dest; | |
10536 | } | |
10537 | ||
d1679124 RD |
10538 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
10539 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10540 | PyObject * _resultobj; | |
10541 | wxToggleButton * _result; | |
10542 | wxWindow * _arg0; | |
10543 | wxWindowID _arg1; | |
10544 | wxString * _arg2; | |
10545 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10546 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10547 | long _arg5 = (long ) 0; | |
10548 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10549 | char * _arg7 = (char *) "toggle"; | |
10550 | PyObject * _argo0 = 0; | |
10551 | PyObject * _obj2 = 0; | |
10552 | wxPoint temp; | |
10553 | PyObject * _obj3 = 0; | |
10554 | wxSize temp0; | |
10555 | PyObject * _obj4 = 0; | |
10556 | PyObject * _argo6 = 0; | |
10557 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10558 | char _ptemp[128]; | |
10559 | ||
10560 | self = self; | |
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10562 | return NULL; | |
10563 | if (_argo0) { | |
10564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10567 | return NULL; | |
10568 | } | |
10569 | } | |
10570 | { | |
c8bc7bb8 RD |
10571 | _arg2 = wxString_in_helper(_obj2); |
10572 | if (_arg2 == NULL) | |
d1679124 | 10573 | return NULL; |
d1679124 RD |
10574 | } |
10575 | if (_obj3) | |
10576 | { | |
10577 | _arg3 = &temp; | |
10578 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10579 | return NULL; | |
10580 | } | |
10581 | if (_obj4) | |
10582 | { | |
10583 | _arg4 = &temp0; | |
10584 | if (! wxSize_helper(_obj4, &_arg4)) | |
10585 | return NULL; | |
10586 | } | |
10587 | if (_argo6) { | |
10588 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10589 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10591 | return NULL; | |
10592 | } | |
10593 | } | |
10594 | { | |
4268f798 | 10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10596 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
d1679124 | 10597 | |
4268f798 | 10598 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10599 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
10600 | } if (_result) { |
10601 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10602 | _resultobj = Py_BuildValue("s",_ptemp); | |
10603 | } else { | |
10604 | Py_INCREF(Py_None); | |
10605 | _resultobj = Py_None; | |
10606 | } | |
10607 | { | |
10608 | if (_obj2) | |
10609 | delete _arg2; | |
10610 | } | |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
09f3d4e6 RD |
10614 | #define new_wxPreToggleButton() (new wxToggleButton()) |
10615 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | wxToggleButton * _result; | |
10618 | char *_kwnames[] = { NULL }; | |
10619 | char _ptemp[128]; | |
10620 | ||
10621 | self = self; | |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10623 | return NULL; | |
10624 | { | |
4268f798 | 10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10626 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
09f3d4e6 | 10627 | |
4268f798 | 10628 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10629 | if (PyErr_Occurred()) return NULL; |
10630 | } if (_result) { | |
10631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10632 | _resultobj = Py_BuildValue("s",_ptemp); | |
10633 | } else { | |
10634 | Py_INCREF(Py_None); | |
10635 | _resultobj = Py_None; | |
10636 | } | |
10637 | return _resultobj; | |
10638 | } | |
10639 | ||
10640 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10641 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10642 | PyObject * _resultobj; | |
10643 | bool _result; | |
10644 | wxToggleButton * _arg0; | |
10645 | wxWindow * _arg1; | |
10646 | wxWindowID _arg2; | |
10647 | wxString * _arg3; | |
10648 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10649 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10650 | long _arg6 = (long ) 0; | |
10651 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10652 | char * _arg8 = (char *) "toggle"; | |
10653 | PyObject * _argo0 = 0; | |
10654 | PyObject * _argo1 = 0; | |
10655 | PyObject * _obj3 = 0; | |
10656 | wxPoint temp; | |
10657 | PyObject * _obj4 = 0; | |
10658 | wxSize temp0; | |
10659 | PyObject * _obj5 = 0; | |
10660 | PyObject * _argo7 = 0; | |
10661 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10662 | ||
10663 | self = self; | |
10664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
10665 | return NULL; | |
10666 | if (_argo0) { | |
10667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
10670 | return NULL; | |
10671 | } | |
10672 | } | |
10673 | if (_argo1) { | |
10674 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10675 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
10677 | return NULL; | |
10678 | } | |
10679 | } | |
10680 | { | |
c8bc7bb8 RD |
10681 | _arg3 = wxString_in_helper(_obj3); |
10682 | if (_arg3 == NULL) | |
09f3d4e6 | 10683 | return NULL; |
09f3d4e6 RD |
10684 | } |
10685 | if (_obj4) | |
10686 | { | |
10687 | _arg4 = &temp; | |
10688 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10689 | return NULL; | |
10690 | } | |
10691 | if (_obj5) | |
10692 | { | |
10693 | _arg5 = &temp0; | |
10694 | if (! wxSize_helper(_obj5, &_arg5)) | |
10695 | return NULL; | |
10696 | } | |
10697 | if (_argo7) { | |
10698 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10699 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
10701 | return NULL; | |
10702 | } | |
10703 | } | |
10704 | { | |
4268f798 | 10705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10706 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
09f3d4e6 | 10707 | |
4268f798 | 10708 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10709 | if (PyErr_Occurred()) return NULL; |
10710 | } _resultobj = Py_BuildValue("i",_result); | |
10711 | { | |
10712 | if (_obj3) | |
10713 | delete _arg3; | |
10714 | } | |
10715 | return _resultobj; | |
10716 | } | |
10717 | ||
d1679124 RD |
10718 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
10719 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10720 | PyObject * _resultobj; | |
10721 | wxToggleButton * _arg0; | |
10722 | bool _arg1; | |
10723 | PyObject * _argo0 = 0; | |
10724 | int tempbool1; | |
10725 | char *_kwnames[] = { "self","value", NULL }; | |
10726 | ||
10727 | self = self; | |
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10729 | return NULL; | |
10730 | if (_argo0) { | |
10731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
10734 | return NULL; | |
10735 | } | |
10736 | } | |
10737 | _arg1 = (bool ) tempbool1; | |
10738 | { | |
4268f798 | 10739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10740 | wxToggleButton_SetValue(_arg0,_arg1); |
d1679124 | 10741 | |
4268f798 | 10742 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10743 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
10744 | } Py_INCREF(Py_None); |
10745 | _resultobj = Py_None; | |
10746 | return _resultobj; | |
10747 | } | |
10748 | ||
10749 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
10750 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject * _resultobj; | |
10752 | bool _result; | |
10753 | wxToggleButton * _arg0; | |
10754 | PyObject * _argo0 = 0; | |
10755 | char *_kwnames[] = { "self", NULL }; | |
10756 | ||
10757 | self = self; | |
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
10759 | return NULL; | |
10760 | if (_argo0) { | |
10761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
10764 | return NULL; | |
10765 | } | |
10766 | } | |
10767 | { | |
4268f798 | 10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10769 | _result = (bool )wxToggleButton_GetValue(_arg0); |
d1679124 | 10770 | |
4268f798 | 10771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10772 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
10773 | } _resultobj = Py_BuildValue("i",_result); |
10774 | return _resultobj; | |
10775 | } | |
10776 | ||
10777 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
10778 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10779 | PyObject * _resultobj; | |
10780 | wxToggleButton * _arg0; | |
10781 | wxString * _arg1; | |
10782 | PyObject * _argo0 = 0; | |
10783 | PyObject * _obj1 = 0; | |
10784 | char *_kwnames[] = { "self","label", NULL }; | |
10785 | ||
10786 | self = self; | |
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
10788 | return NULL; | |
10789 | if (_argo0) { | |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
10796 | { | |
c8bc7bb8 RD |
10797 | _arg1 = wxString_in_helper(_obj1); |
10798 | if (_arg1 == NULL) | |
d1679124 | 10799 | return NULL; |
d1679124 RD |
10800 | } |
10801 | { | |
4268f798 | 10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10803 | wxToggleButton_SetLabel(_arg0,*_arg1); |
d1679124 | 10804 | |
4268f798 | 10805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10806 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
10807 | } Py_INCREF(Py_None); |
10808 | _resultobj = Py_None; | |
10809 | { | |
10810 | if (_obj1) | |
10811 | delete _arg1; | |
10812 | } | |
10813 | return _resultobj; | |
10814 | } | |
10815 | ||
8ab979d7 | 10816 | static PyMethodDef controlscMethods[] = { |
d1679124 RD |
10817 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10818 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10820 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10821 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 | 10822 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10823 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10824 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10828 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10829 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10830 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10831 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10832 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10850 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
10851 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10852 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
10853 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10855 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10856 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10857 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
10858 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 10862 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10863 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10864 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
10865 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, |
10866 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 RD |
10867 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, |
10868 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10869 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
10870 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10872 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
10873 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10874 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
10875 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10878 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
10879 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10880 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
10881 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10886 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
10887 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10888 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
10889 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
ebf4302c | 10891 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 10892 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10893 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
10894 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10897 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
10898 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10899 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 10900 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10901 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
10902 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
10903 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10911 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
10912 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10913 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
10914 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
10916 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
10917 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10921 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
10922 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
10923 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10925 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
10926 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
10927 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
10928 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10929 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10930 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
10931 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
10932 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
b78b83ec | 10934 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
10935 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10936 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10937 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10938 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
10939 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10941 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
10942 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10943 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10944 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10945 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10946 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 10947 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
98624b49 | 10948 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 RD |
10949 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10950 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10960 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 10961 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10962 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
10963 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10964 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
10965 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10966 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
10967 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 10974 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10975 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10976 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10977 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10978 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10979 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
10980 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10981 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
10982 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
10984 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
10985 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10986 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10987 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
10988 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10989 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10990 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
10991 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10992 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
10993 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11001 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11002 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11003 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11004 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11005 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11006 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11013 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11014 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11015 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11016 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11017 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11018 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11019 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11020 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11021 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11022 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11023 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11025 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11026 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11027 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11028 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11029 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11030 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11032 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11033 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11034 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11035 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11036 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11038 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11039 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11046 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11047 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11048 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11049 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
11050 | { "wxButton_SetImageMargins", (PyCFunction) _wrap_wxButton_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxButton_SetImageLabel", (PyCFunction) _wrap_wxButton_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11052 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11053 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11054 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11055 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11056 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11057 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
ce914f73 | 11058 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, |
900d9886 RD |
11059 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11060 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11061 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11062 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11063 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11064 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11065 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11066 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11067 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11068 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11070 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11071 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11073 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11074 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 11075 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11076 | { NULL, NULL } |
11077 | }; | |
1d99702e RD |
11078 | #ifdef __cplusplus |
11079 | } | |
11080 | #endif | |
11081 | /* | |
11082 | * This table is used by the pointer type-checker | |
11083 | */ | |
11084 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11085 | { "_signed_long","_long",0}, |
b1462dfa | 11086 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11087 | { "_wxPrintQuality","_int",0}, |
11088 | { "_wxPrintQuality","_signed_int",0}, | |
11089 | { "_wxPrintQuality","_unsigned_int",0}, | |
11090 | { "_wxPrintQuality","_wxWindowID",0}, | |
11091 | { "_wxPrintQuality","_uint",0}, | |
11092 | { "_wxPrintQuality","_EBool",0}, | |
11093 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11094 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11095 | { "_byte","_unsigned_char",0}, |
1d99702e | 11096 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, |
1d99702e RD |
11097 | { "_long","_unsigned_long",0}, |
11098 | { "_long","_signed_long",0}, | |
b1462dfa | 11099 | { "_size_t","_wxCoord",0}, |
1d99702e | 11100 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11101 | { "_size_t","_time_t",0}, |
1d99702e RD |
11102 | { "_size_t","_unsigned_int",0}, |
11103 | { "_size_t","_int",0}, | |
11104 | { "_size_t","_wxWindowID",0}, | |
11105 | { "_size_t","_uint",0}, | |
b1462dfa | 11106 | { "_uint","_wxCoord",0}, |
1d99702e | 11107 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11108 | { "_uint","_time_t",0}, |
1d99702e RD |
11109 | { "_uint","_size_t",0}, |
11110 | { "_uint","_unsigned_int",0}, | |
11111 | { "_uint","_int",0}, | |
11112 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11113 | { "_wxChar","_char",0}, |
f6bcfd97 | 11114 | { "_char","_wxChar",0}, |
f6bcfd97 | 11115 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
cdf14688 | 11116 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11117 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11118 | { "_EBool","_wxPrintQuality",0}, |
11119 | { "_EBool","_signed_int",0}, | |
11120 | { "_EBool","_int",0}, | |
11121 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11122 | { "_unsigned_long","_long",0}, |
cdf14688 | 11123 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11124 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11125 | { "_signed_int","_wxPrintQuality",0}, |
11126 | { "_signed_int","_EBool",0}, | |
11127 | { "_signed_int","_wxWindowID",0}, | |
11128 | { "_signed_int","_int",0}, | |
1d99702e | 11129 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
1d99702e RD |
11130 | { "_WXTYPE","_short",0}, |
11131 | { "_WXTYPE","_signed_short",0}, | |
11132 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11133 | { "_unsigned_short","_WXTYPE",0}, |
11134 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11135 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9416aa89 | 11136 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9416aa89 | 11137 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9416aa89 | 11138 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9416aa89 | 11139 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9416aa89 | 11140 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9416aa89 | 11141 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9416aa89 | 11142 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9416aa89 | 11143 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9416aa89 | 11144 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9416aa89 | 11145 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9416aa89 | 11146 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9416aa89 | 11147 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9416aa89 | 11148 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9416aa89 | 11149 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9416aa89 | 11150 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9416aa89 | 11151 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9416aa89 | 11152 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9416aa89 | 11153 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9416aa89 | 11154 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
900d9886 | 11155 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9416aa89 | 11156 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
1d99702e RD |
11157 | { "_signed_short","_WXTYPE",0}, |
11158 | { "_signed_short","_short",0}, | |
1d99702e | 11159 | { "_unsigned_char","_byte",0}, |
d1679124 | 11160 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 11161 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
1d99702e | 11162 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
1d99702e | 11163 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
1d99702e | 11164 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
1d99702e | 11165 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
1d99702e | 11166 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
1d99702e | 11167 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
1d99702e | 11168 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
1d99702e | 11169 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
1d99702e | 11170 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
1d99702e | 11171 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
1d99702e | 11172 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
1d99702e | 11173 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
1d99702e | 11174 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
1d99702e | 11175 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
1d99702e | 11176 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
1d99702e | 11177 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
1d99702e | 11178 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
1d99702e | 11179 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
900d9886 | 11180 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
b1462dfa | 11181 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11182 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11183 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11184 | { "_unsigned_int","_size_t",0}, |
11185 | { "_unsigned_int","_uint",0}, | |
11186 | { "_unsigned_int","_wxWindowID",0}, | |
11187 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11188 | { "_short","_WXTYPE",0}, |
11189 | { "_short","_unsigned_short",0}, | |
11190 | { "_short","_signed_short",0}, | |
900d9886 RD |
11191 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
11192 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11193 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11194 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
b1462dfa | 11195 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11196 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11197 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11198 | { "_wxWindowID","_size_t",0}, |
11199 | { "_wxWindowID","_EBool",0}, | |
11200 | { "_wxWindowID","_uint",0}, | |
11201 | { "_wxWindowID","_int",0}, | |
11202 | { "_wxWindowID","_signed_int",0}, | |
11203 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11204 | { "_int","_wxCoord",0}, |
1d99702e | 11205 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11206 | { "_int","_time_t",0}, |
1d99702e RD |
11207 | { "_int","_size_t",0}, |
11208 | { "_int","_EBool",0}, | |
11209 | { "_int","_uint",0}, | |
11210 | { "_int","_wxWindowID",0}, | |
11211 | { "_int","_unsigned_int",0}, | |
11212 | { "_int","_signed_int",0}, | |
c368d904 RD |
11213 | { "_time_t","_wxCoord",0}, |
11214 | { "_time_t","_wxPrintQuality",0}, | |
11215 | { "_time_t","_unsigned_int",0}, | |
11216 | { "_time_t","_int",0}, | |
11217 | { "_time_t","_wxWindowID",0}, | |
11218 | { "_time_t","_uint",0}, | |
11219 | { "_time_t","_size_t",0}, | |
1d99702e | 11220 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
b1462dfa RD |
11221 | { "_wxCoord","_int",0}, |
11222 | { "_wxCoord","_signed_int",0}, | |
11223 | { "_wxCoord","_unsigned_int",0}, | |
11224 | { "_wxCoord","_wxWindowID",0}, | |
11225 | { "_wxCoord","_uint",0}, | |
11226 | { "_wxCoord","_EBool",0}, | |
11227 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11228 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11229 | { "_wxCoord","_wxPrintQuality",0}, |
d1679124 | 11230 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 11231 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
1d99702e | 11232 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
1d99702e | 11233 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
1d99702e | 11234 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
1d99702e | 11235 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
1d99702e | 11236 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
1d99702e | 11237 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
1d99702e | 11238 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
1d99702e | 11239 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
1d99702e | 11240 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
1d99702e | 11241 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
1d99702e | 11242 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
1d99702e | 11243 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
1d99702e | 11244 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
1d99702e | 11245 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
1d99702e | 11246 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
1d99702e | 11247 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
1d99702e | 11248 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
1d99702e | 11249 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
900d9886 | 11250 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
1d99702e | 11251 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
d1679124 | 11252 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 11253 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
1d99702e | 11254 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
1d99702e | 11255 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
1d99702e | 11256 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
1d99702e | 11257 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
1d99702e | 11258 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
1d99702e | 11259 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
1d99702e | 11260 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
1d99702e | 11261 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
1d99702e | 11262 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
1d99702e | 11263 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
1d99702e | 11264 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
1d99702e | 11265 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
1d99702e | 11266 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
1d99702e | 11267 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
1d99702e | 11268 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
1d99702e | 11269 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
1d99702e | 11270 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
1d99702e | 11271 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
900d9886 | 11272 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
1d99702e | 11273 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
1d99702e RD |
11274 | {0,0,0}}; |
11275 | ||
8ab979d7 RD |
11276 | static PyObject *SWIG_globals; |
11277 | #ifdef __cplusplus | |
11278 | extern "C" | |
11279 | #endif | |
1d99702e | 11280 | SWIGEXPORT(void) initcontrolsc() { |
8ab979d7 RD |
11281 | PyObject *m, *d; |
11282 | SWIG_globals = SWIG_newvarlink(); | |
11283 | m = Py_InitModule("controlsc", controlscMethods); | |
11284 | d = PyModule_GetDict(m); | |
2f90df85 RD |
11285 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11286 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
d1679124 | 11287 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
1d99702e RD |
11288 | { |
11289 | int i; | |
11290 | for (i = 0; _swig_mapping[i].n1; i++) | |
11291 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11292 | } | |
8ab979d7 | 11293 | } |