]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/controls.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
62bd0874 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
ab9bc19b | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
7a446686 | 64 | #include <wx/tglbtn.h> |
70551f47 RD |
65 | |
66 | #ifdef __WXMSW__ | |
b26e2dc4 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70551f47 RD |
70 | #endif |
71 | ||
c95e68d8 RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
d24a34bb | 76 | |
70551f47 RD |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
3bcd5e1c | 81 | if (!target) { |
70551f47 | 82 | target = o; |
3bcd5e1c | 83 | } else if (target == Py_None) { |
70551f47 RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
3bcd5e1c | 86 | } else { |
70551f47 RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
3bcd5e1c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
94 | |
95 | o2 = target; | |
3bcd5e1c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
70551f47 RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
2d091820 RD |
102 | #ifdef __cplusplus |
103 | extern "C" { | |
104 | #endif | |
37f6a977 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 | ||
70551f47 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 | ||
9df61a29 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 | ||
ab2208b5 | 144 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
56f5d962 RD |
145 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
146 | PyObject * _resultobj; | |
147 | wxControl * _result; | |
ab2208b5 RD |
148 | wxWindow * _arg0; |
149 | wxWindowID _arg1; | |
b68dc582 RD |
150 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
151 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 152 | long _arg4 = (long ) 0; |
b68dc582 | 153 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
ab2208b5 | 154 | char * _arg6 = (char *) "control"; |
56f5d962 | 155 | PyObject * _argo0 = 0; |
56f5d962 | 156 | wxPoint temp; |
ab2208b5 | 157 | PyObject * _obj2 = 0; |
56f5d962 | 158 | wxSize temp0; |
ab2208b5 RD |
159 | PyObject * _obj3 = 0; |
160 | PyObject * _argo5 = 0; | |
161 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
162 | char _ptemp[128]; | |
56f5d962 RD |
163 | |
164 | self = self; | |
ab2208b5 | 165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
56f5d962 RD |
166 | return NULL; |
167 | if (_argo0) { | |
168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
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."); | |
56f5d962 RD |
171 | return NULL; |
172 | } | |
173 | } | |
ab2208b5 | 174 | if (_obj2) |
56f5d962 | 175 | { |
ab2208b5 RD |
176 | _arg2 = &temp; |
177 | if (! wxPoint_helper(_obj2, &_arg2)) | |
56f5d962 RD |
178 | return NULL; |
179 | } | |
ab2208b5 | 180 | if (_obj3) |
56f5d962 | 181 | { |
ab2208b5 RD |
182 | _arg3 = &temp0; |
183 | if (! wxSize_helper(_obj3, &_arg3)) | |
56f5d962 RD |
184 | return NULL; |
185 | } | |
ab2208b5 RD |
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."); | |
56f5d962 RD |
190 | return NULL; |
191 | } | |
192 | } | |
193 | { | |
474c48f9 | 194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 195 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
56f5d962 | 196 | |
474c48f9 | 197 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 198 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
56f5d962 RD |
206 | return _resultobj; |
207 | } | |
208 | ||
aa2a5b86 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 | { | |
474c48f9 | 220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 221 | _result = (wxControl *)new_wxPreControl(); |
aa2a5b86 | 222 | |
474c48f9 | 223 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 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 | { | |
474c48f9 | 293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 294 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
aa2a5b86 | 295 | |
474c48f9 | 296 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
297 | if (PyErr_Occurred()) return NULL; |
298 | } _resultobj = Py_BuildValue("i",_result); | |
299 | return _resultobj; | |
300 | } | |
301 | ||
56f5d962 RD |
302 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
303 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
304 | PyObject * _resultobj; | |
305 | wxControl * _arg0; | |
306 | wxCommandEvent * _arg1; | |
307 | PyObject * _argo0 = 0; | |
308 | PyObject * _argo1 = 0; | |
309 | char *_kwnames[] = { "self","event", NULL }; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
313 | return NULL; | |
314 | if (_argo0) { | |
315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | if (_argo1) { | |
322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | { | |
474c48f9 | 329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 330 | wxControl_Command(_arg0,*_arg1); |
56f5d962 | 331 | |
474c48f9 | 332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 333 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
334 | } Py_INCREF(Py_None); |
335 | _resultobj = Py_None; | |
336 | return _resultobj; | |
337 | } | |
338 | ||
70551f47 | 339 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 340 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
341 | PyObject * _resultobj; |
342 | wxString * _result; | |
343 | wxControl * _arg0; | |
2d091820 | 344 | PyObject * _argo0 = 0; |
107e4716 | 345 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
346 | |
347 | self = self; | |
107e4716 | 348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
70551f47 | 349 | return NULL; |
2d091820 RD |
350 | if (_argo0) { |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
354 | return NULL; | |
355 | } | |
356 | } | |
70551f47 | 357 | { |
474c48f9 | 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 359 | _result = new wxString (wxControl_GetLabel(_arg0)); |
ab9bc19b | 360 | |
474c48f9 | 361 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 362 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 363 | }{ |
c8bc7bb8 RD |
364 | #if wxUSE_UNICODE |
365 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
366 | #else | |
e02c03a4 | 367 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 368 | #endif |
70551f47 RD |
369 | } |
370 | { | |
371 | delete _result; | |
372 | } | |
373 | return _resultobj; | |
374 | } | |
375 | ||
376 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 377 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
378 | PyObject * _resultobj; |
379 | wxControl * _arg0; | |
380 | wxString * _arg1; | |
2d091820 | 381 | PyObject * _argo0 = 0; |
70551f47 | 382 | PyObject * _obj1 = 0; |
107e4716 | 383 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
384 | |
385 | self = self; | |
107e4716 | 386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 387 | return NULL; |
2d091820 RD |
388 | if (_argo0) { |
389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 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) | |
70551f47 | 398 | return NULL; |
70551f47 | 399 | } |
ab9bc19b | 400 | { |
474c48f9 | 401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 402 | wxControl_SetLabel(_arg0,*_arg1); |
ab9bc19b | 403 | |
474c48f9 | 404 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 405 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 406 | } Py_INCREF(Py_None); |
70551f47 RD |
407 | _resultobj = Py_None; |
408 | { | |
409 | if (_obj1) | |
410 | delete _arg1; | |
411 | } | |
412 | return _resultobj; | |
413 | } | |
414 | ||
65191ae8 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 | { | |
474c48f9 | 466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 467 | wxControlWithItems_Delete(_arg0,_arg1); |
65191ae8 | 468 | |
474c48f9 | 469 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 496 | _result = (int )wxControlWithItems_GetCount(_arg0); |
65191ae8 | 497 | |
474c48f9 | 498 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 525 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
65191ae8 | 526 | |
474c48f9 | 527 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | |
65191ae8 | 533 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 534 | #endif |
65191ae8 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) | |
65191ae8 | 565 | return NULL; |
65191ae8 RD |
566 | } |
567 | { | |
474c48f9 | 568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 569 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
65191ae8 | 570 | |
474c48f9 | 571 | wxPyEndAllowThreads(__tstate); |
65191ae8 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) | |
65191ae8 | 605 | return NULL; |
65191ae8 RD |
606 | } |
607 | { | |
474c48f9 | 608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 609 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
65191ae8 | 610 | |
474c48f9 | 611 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 641 | wxControlWithItems_Select(_arg0,_arg1); |
65191ae8 | 642 | |
474c48f9 | 643 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 670 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
65191ae8 | 671 | |
474c48f9 | 672 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 698 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
65191ae8 | 699 | |
474c48f9 | 700 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | |
65191ae8 | 706 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 707 | #endif |
65191ae8 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) | |
65191ae8 | 745 | return NULL; |
65191ae8 RD |
746 | } |
747 | if (_obj2) | |
748 | { | |
749 | _arg2 = _obj2; | |
750 | } | |
751 | { | |
474c48f9 | 752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 753 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
65191ae8 | 754 | |
474c48f9 | 755 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 796 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
65191ae8 | 797 | |
474c48f9 | 798 | wxPyEndAllowThreads(__tstate); |
65191ae8 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 | { | |
474c48f9 | 833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 834 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
65191ae8 | 835 | |
474c48f9 | 836 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
837 | if (PyErr_Occurred()) return NULL; |
838 | } Py_INCREF(Py_None); | |
839 | _resultobj = Py_None; | |
840 | return _resultobj; | |
841 | } | |
842 | ||
85247b36 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 | |
85247b36 RD |
875 | PyObject* str = PyObject_Str(item); |
876 | _arg1->Add(PyString_AsString(str)); | |
c8bc7bb8 | 877 | #endif |
85247b36 RD |
878 | Py_DECREF(item); |
879 | Py_DECREF(str); | |
880 | } | |
881 | } | |
882 | { | |
883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 884 | wxControlWithItems_AppendItems(_arg0,*_arg1); |
85247b36 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 | ||
70551f47 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 | ||
9df61a29 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 | ||
70551f47 | 929 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 930 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
931 | PyObject * _resultobj; |
932 | wxButton * _result; | |
933 | wxWindow * _arg0; | |
934 | wxWindowID _arg1; | |
935 | wxString * _arg2; | |
b68dc582 RD |
936 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
937 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 938 | long _arg5 = (long ) 0; |
b68dc582 | 939 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
940 | char * _arg7 = (char *) "button"; |
941 | PyObject * _argo0 = 0; | |
70551f47 | 942 | PyObject * _obj2 = 0; |
37f6a977 RD |
943 | wxPoint temp; |
944 | PyObject * _obj3 = 0; | |
945 | wxSize temp0; | |
946 | PyObject * _obj4 = 0; | |
2d091820 | 947 | PyObject * _argo6 = 0; |
107e4716 | 948 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
949 | char _ptemp[128]; |
950 | ||
951 | self = self; | |
37f6a977 | 952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 953 | return NULL; |
2d091820 RD |
954 | if (_argo0) { |
955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 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) | |
70551f47 | 964 | return NULL; |
70551f47 | 965 | } |
37f6a977 RD |
966 | if (_obj3) |
967 | { | |
968 | _arg3 = &temp; | |
969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 970 | return NULL; |
37f6a977 RD |
971 | } |
972 | if (_obj4) | |
973 | { | |
974 | _arg4 = &temp0; | |
975 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 976 | return NULL; |
37f6a977 | 977 | } |
2d091820 RD |
978 | if (_argo6) { |
979 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
982 | return NULL; | |
983 | } | |
984 | } | |
ab9bc19b | 985 | { |
474c48f9 | 986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 987 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
ab9bc19b | 988 | |
474c48f9 | 989 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 990 | if (PyErr_Occurred()) return NULL; |
2d091820 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 | } | |
70551f47 RD |
998 | { |
999 | if (_obj2) | |
1000 | delete _arg2; | |
1001 | } | |
1002 | return _resultobj; | |
1003 | } | |
1004 | ||
aa2a5b86 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 | { | |
474c48f9 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | _result = (wxButton *)new_wxPreButton(); |
aa2a5b86 | 1018 | |
474c48f9 | 1019 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 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) | |
aa2a5b86 | 1074 | return NULL; |
aa2a5b86 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 | { | |
474c48f9 | 1096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1097 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 1098 | |
474c48f9 | 1099 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 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 | ||
70551f47 | 1109 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
107e4716 | 1110 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1111 | PyObject * _resultobj; |
1112 | wxButton * _arg0; | |
2d091820 | 1113 | PyObject * _argo0 = 0; |
107e4716 | 1114 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1115 | |
1116 | self = self; | |
107e4716 | 1117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
70551f47 | 1118 | return NULL; |
2d091820 RD |
1119 | if (_argo0) { |
1120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
70551f47 RD |
1122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1123 | return NULL; | |
1124 | } | |
1125 | } | |
ab9bc19b | 1126 | { |
474c48f9 | 1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1128 | wxButton_SetDefault(_arg0); |
ab9bc19b | 1129 | |
474c48f9 | 1130 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1131 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1132 | } Py_INCREF(Py_None); |
70551f47 RD |
1133 | _resultobj = Py_None; |
1134 | return _resultobj; | |
1135 | } | |
1136 | ||
ab2208b5 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; | |
ab2208b5 RD |
1145 | char *_kwnames[] = { "self","colour", NULL }; |
1146 | ||
1147 | self = self; | |
f6bcfd97 | 1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 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)) | |
ab2208b5 | 1160 | return NULL; |
f6bcfd97 | 1161 | } |
ab2208b5 | 1162 | { |
474c48f9 | 1163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1164 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
ab2208b5 | 1165 | |
474c48f9 | 1166 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1167 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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; | |
ab2208b5 RD |
1181 | char *_kwnames[] = { "self","colour", NULL }; |
1182 | ||
1183 | self = self; | |
f6bcfd97 | 1184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 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)) | |
ab2208b5 | 1196 | return NULL; |
f6bcfd97 | 1197 | } |
ab2208b5 | 1198 | { |
474c48f9 | 1199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1200 | wxButton_SetForegroundColour(_arg0,*_arg1); |
ab2208b5 | 1201 | |
474c48f9 | 1202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1203 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1204 | } Py_INCREF(Py_None); |
1205 | _resultobj = Py_None; | |
1206 | return _resultobj; | |
1207 | } | |
1208 | ||
aa2a5b86 RD |
1209 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1210 | PyObject * _resultobj; | |
1211 | wxSize * _result; | |
1212 | char *_kwnames[] = { NULL }; | |
1213 | char _ptemp[128]; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1217 | return NULL; | |
1218 | { | |
474c48f9 | 1219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1220 | _result = new wxSize (wxButton::GetDefaultSize()); |
aa2a5b86 | 1221 | |
474c48f9 | 1222 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1223 | if (PyErr_Occurred()) return NULL; |
1224 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1225 | _resultobj = Py_BuildValue("s",_ptemp); | |
1226 | return _resultobj; | |
1227 | } | |
1228 | ||
1229 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1230 | wxBitmapButton *src; | |
1231 | wxButton *dest; | |
1232 | src = (wxBitmapButton *) ptr; | |
1233 | dest = (wxButton *) src; | |
1234 | return (void *) dest; | |
1235 | } | |
1236 | ||
1237 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1238 | wxBitmapButton *src; | |
1239 | wxControl *dest; | |
1240 | src = (wxBitmapButton *) ptr; | |
1241 | dest = (wxControl *) src; | |
1242 | return (void *) dest; | |
1243 | } | |
1244 | ||
1245 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1246 | wxBitmapButton *src; | |
1247 | wxWindow *dest; | |
1248 | src = (wxBitmapButton *) ptr; | |
1249 | dest = (wxWindow *) src; | |
1250 | return (void *) dest; | |
1251 | } | |
1252 | ||
1253 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1254 | wxBitmapButton *src; | |
1255 | wxEvtHandler *dest; | |
1256 | src = (wxBitmapButton *) ptr; | |
1257 | dest = (wxEvtHandler *) src; | |
1258 | return (void *) dest; | |
1259 | } | |
1260 | ||
1261 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1262 | wxBitmapButton *src; | |
1263 | wxObject *dest; | |
1264 | src = (wxBitmapButton *) ptr; | |
1265 | dest = (wxObject *) src; | |
9df61a29 RD |
1266 | return (void *) dest; |
1267 | } | |
1268 | ||
70551f47 | 1269 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1270 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1271 | PyObject * _resultobj; |
1272 | wxBitmapButton * _result; | |
1273 | wxWindow * _arg0; | |
1274 | wxWindowID _arg1; | |
1275 | wxBitmap * _arg2; | |
b68dc582 RD |
1276 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1277 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1278 | long _arg5 = (long ) wxBU_AUTODRAW; |
b68dc582 | 1279 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1280 | char * _arg7 = (char *) "button"; |
1281 | PyObject * _argo0 = 0; | |
1282 | PyObject * _argo2 = 0; | |
37f6a977 RD |
1283 | wxPoint temp; |
1284 | PyObject * _obj3 = 0; | |
1285 | wxSize temp0; | |
1286 | PyObject * _obj4 = 0; | |
2d091820 | 1287 | PyObject * _argo6 = 0; |
107e4716 | 1288 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
70551f47 RD |
1289 | char _ptemp[128]; |
1290 | ||
1291 | self = self; | |
37f6a977 | 1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 1293 | return NULL; |
2d091820 RD |
1294 | if (_argo0) { |
1295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1298 | return NULL; | |
1299 | } | |
1300 | } | |
2d091820 RD |
1301 | if (_argo2) { |
1302 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1303 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
70551f47 RD |
1304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1305 | return NULL; | |
1306 | } | |
1307 | } | |
37f6a977 RD |
1308 | if (_obj3) |
1309 | { | |
1310 | _arg3 = &temp; | |
1311 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1312 | return NULL; |
37f6a977 RD |
1313 | } |
1314 | if (_obj4) | |
1315 | { | |
1316 | _arg4 = &temp0; | |
1317 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1318 | return NULL; |
37f6a977 | 1319 | } |
2d091820 RD |
1320 | if (_argo6) { |
1321 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1322 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1324 | return NULL; | |
1325 | } | |
1326 | } | |
ab9bc19b | 1327 | { |
474c48f9 | 1328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1329 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
ab9bc19b | 1330 | |
474c48f9 | 1331 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1332 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1333 | } if (_result) { |
1334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1335 | _resultobj = Py_BuildValue("s",_ptemp); | |
1336 | } else { | |
1337 | Py_INCREF(Py_None); | |
1338 | _resultobj = Py_None; | |
1339 | } | |
70551f47 RD |
1340 | return _resultobj; |
1341 | } | |
1342 | ||
aa2a5b86 RD |
1343 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1344 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject * _resultobj; | |
1346 | wxBitmapButton * _result; | |
1347 | char *_kwnames[] = { NULL }; | |
1348 | char _ptemp[128]; | |
1349 | ||
1350 | self = self; | |
1351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1352 | return NULL; | |
1353 | { | |
474c48f9 | 1354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1355 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
aa2a5b86 | 1356 | |
474c48f9 | 1357 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1358 | if (PyErr_Occurred()) return NULL; |
1359 | } if (_result) { | |
1360 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1361 | _resultobj = Py_BuildValue("s",_ptemp); | |
1362 | } else { | |
1363 | Py_INCREF(Py_None); | |
1364 | _resultobj = Py_None; | |
1365 | } | |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1370 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1371 | PyObject * _resultobj; | |
1372 | bool _result; | |
1373 | wxBitmapButton * _arg0; | |
1374 | wxWindow * _arg1; | |
1375 | wxWindowID _arg2; | |
1376 | wxBitmap * _arg3; | |
1377 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1378 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1379 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1380 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1381 | char * _arg8 = (char *) "button"; | |
1382 | PyObject * _argo0 = 0; | |
1383 | PyObject * _argo1 = 0; | |
1384 | PyObject * _argo3 = 0; | |
1385 | wxPoint temp; | |
1386 | PyObject * _obj4 = 0; | |
1387 | wxSize temp0; | |
1388 | PyObject * _obj5 = 0; | |
1389 | PyObject * _argo7 = 0; | |
1390 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1394 | return NULL; | |
1395 | if (_argo0) { | |
1396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1399 | return NULL; | |
1400 | } | |
1401 | } | |
1402 | if (_argo1) { | |
1403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | if (_argo3) { | |
1410 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1411 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1413 | return NULL; | |
1414 | } | |
1415 | } | |
1416 | if (_obj4) | |
1417 | { | |
1418 | _arg4 = &temp; | |
1419 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1420 | return NULL; | |
1421 | } | |
1422 | if (_obj5) | |
1423 | { | |
1424 | _arg5 = &temp0; | |
1425 | if (! wxSize_helper(_obj5, &_arg5)) | |
1426 | return NULL; | |
1427 | } | |
1428 | if (_argo7) { | |
1429 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1430 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1432 | return NULL; | |
1433 | } | |
1434 | } | |
1435 | { | |
474c48f9 | 1436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1437 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 1438 | |
474c48f9 | 1439 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1440 | if (PyErr_Occurred()) return NULL; |
1441 | } _resultobj = Py_BuildValue("i",_result); | |
1442 | return _resultobj; | |
1443 | } | |
1444 | ||
70551f47 | 1445 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
107e4716 | 1446 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1447 | PyObject * _resultobj; |
1448 | wxBitmap * _result; | |
1449 | wxBitmapButton * _arg0; | |
2d091820 | 1450 | PyObject * _argo0 = 0; |
107e4716 | 1451 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1452 | char _ptemp[128]; |
1453 | ||
1454 | self = self; | |
107e4716 | 1455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
70551f47 | 1456 | return NULL; |
2d091820 RD |
1457 | if (_argo0) { |
1458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1461 | return NULL; | |
1462 | } | |
1463 | } | |
ab9bc19b | 1464 | { |
474c48f9 | 1465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1466 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
ab9bc19b | 1467 | |
474c48f9 | 1468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1469 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1470 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1471 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
1472 | return _resultobj; |
1473 | } | |
1474 | ||
c95e68d8 | 1475 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) |
107e4716 | 1476 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1477 | PyObject * _resultobj; |
1478 | wxBitmap * _result; | |
1479 | wxBitmapButton * _arg0; | |
2d091820 | 1480 | PyObject * _argo0 = 0; |
107e4716 | 1481 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1482 | char _ptemp[128]; |
1483 | ||
1484 | self = self; | |
107e4716 | 1485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
c95e68d8 | 1486 | return NULL; |
2d091820 RD |
1487 | if (_argo0) { |
1488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1491 | return NULL; | |
1492 | } | |
1493 | } | |
ab9bc19b | 1494 | { |
474c48f9 | 1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1496 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
ab9bc19b | 1497 | |
474c48f9 | 1498 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1499 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1500 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1501 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1502 | return _resultobj; |
1503 | } | |
1504 | ||
1505 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
107e4716 | 1506 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1507 | PyObject * _resultobj; |
1508 | wxBitmap * _result; | |
1509 | wxBitmapButton * _arg0; | |
2d091820 | 1510 | PyObject * _argo0 = 0; |
107e4716 | 1511 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1512 | char _ptemp[128]; |
1513 | ||
1514 | self = self; | |
107e4716 | 1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
c95e68d8 | 1516 | return NULL; |
2d091820 RD |
1517 | if (_argo0) { |
1518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1521 | return NULL; | |
1522 | } | |
1523 | } | |
ab9bc19b | 1524 | { |
474c48f9 | 1525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1526 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
ab9bc19b | 1527 | |
474c48f9 | 1528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1529 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1530 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1531 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1532 | return _resultobj; |
1533 | } | |
1534 | ||
1535 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
107e4716 | 1536 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1537 | PyObject * _resultobj; |
1538 | wxBitmap * _result; | |
1539 | wxBitmapButton * _arg0; | |
2d091820 | 1540 | PyObject * _argo0 = 0; |
107e4716 | 1541 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1542 | char _ptemp[128]; |
1543 | ||
1544 | self = self; | |
107e4716 | 1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
c95e68d8 | 1546 | return NULL; |
2d091820 RD |
1547 | if (_argo0) { |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
ab9bc19b | 1554 | { |
474c48f9 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
ab9bc19b | 1557 | |
474c48f9 | 1558 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1559 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1560 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1561 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1562 | return _resultobj; |
1563 | } | |
1564 | ||
1565 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
107e4716 | 1566 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1567 | PyObject * _resultobj; |
1568 | wxBitmapButton * _arg0; | |
1569 | wxBitmap * _arg1; | |
2d091820 RD |
1570 | PyObject * _argo0 = 0; |
1571 | PyObject * _argo1 = 0; | |
107e4716 | 1572 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1573 | |
1574 | self = self; | |
107e4716 | 1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1576 | return NULL; |
2d091820 RD |
1577 | if (_argo0) { |
1578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1581 | return NULL; | |
1582 | } | |
1583 | } | |
2d091820 RD |
1584 | if (_argo1) { |
1585 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
ab9bc19b | 1591 | { |
474c48f9 | 1592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1593 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
ab9bc19b | 1594 | |
474c48f9 | 1595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1596 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1597 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1598 | _resultobj = Py_None; |
1599 | return _resultobj; | |
1600 | } | |
1601 | ||
1602 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
107e4716 | 1603 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1604 | PyObject * _resultobj; |
1605 | wxBitmapButton * _arg0; | |
1606 | wxBitmap * _arg1; | |
2d091820 RD |
1607 | PyObject * _argo0 = 0; |
1608 | PyObject * _argo1 = 0; | |
107e4716 | 1609 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1610 | |
1611 | self = self; | |
107e4716 | 1612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1613 | return NULL; |
2d091820 RD |
1614 | if (_argo0) { |
1615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1618 | return NULL; | |
1619 | } | |
1620 | } | |
2d091820 RD |
1621 | if (_argo1) { |
1622 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1623 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1625 | return NULL; | |
1626 | } | |
1627 | } | |
ab9bc19b | 1628 | { |
474c48f9 | 1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1630 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
ab9bc19b | 1631 | |
474c48f9 | 1632 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1633 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1634 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1635 | _resultobj = Py_None; |
1636 | return _resultobj; | |
1637 | } | |
1638 | ||
1639 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
107e4716 | 1640 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1641 | PyObject * _resultobj; |
1642 | wxBitmapButton * _arg0; | |
1643 | wxBitmap * _arg1; | |
2d091820 RD |
1644 | PyObject * _argo0 = 0; |
1645 | PyObject * _argo1 = 0; | |
107e4716 | 1646 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1647 | |
1648 | self = self; | |
107e4716 | 1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1650 | return NULL; |
2d091820 RD |
1651 | if (_argo0) { |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
2d091820 RD |
1658 | if (_argo1) { |
1659 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1660 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1662 | return NULL; | |
1663 | } | |
1664 | } | |
ab9bc19b | 1665 | { |
474c48f9 | 1666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1667 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
ab9bc19b | 1668 | |
474c48f9 | 1669 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1670 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1671 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1672 | _resultobj = Py_None; |
1673 | return _resultobj; | |
1674 | } | |
1675 | ||
70551f47 | 1676 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) |
107e4716 | 1677 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1678 | PyObject * _resultobj; |
1679 | wxBitmapButton * _arg0; | |
1680 | wxBitmap * _arg1; | |
2d091820 RD |
1681 | PyObject * _argo0 = 0; |
1682 | PyObject * _argo1 = 0; | |
107e4716 | 1683 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
1684 | |
1685 | self = self; | |
107e4716 | 1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
70551f47 | 1687 | return NULL; |
2d091820 RD |
1688 | if (_argo0) { |
1689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1692 | return NULL; | |
1693 | } | |
1694 | } | |
2d091820 RD |
1695 | if (_argo1) { |
1696 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1697 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
1698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1699 | return NULL; | |
1700 | } | |
1701 | } | |
ab9bc19b | 1702 | { |
474c48f9 | 1703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1704 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
ab9bc19b | 1705 | |
474c48f9 | 1706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1707 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1708 | } Py_INCREF(Py_None); |
70551f47 RD |
1709 | _resultobj = Py_None; |
1710 | return _resultobj; | |
1711 | } | |
1712 | ||
f6bcfd97 BP |
1713 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1714 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject * _resultobj; | |
1716 | wxBitmapButton * _arg0; | |
1717 | int _arg1; | |
1718 | int _arg2; | |
1719 | PyObject * _argo0 = 0; | |
1720 | char *_kwnames[] = { "self","x","y", NULL }; | |
1721 | ||
1722 | self = self; | |
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1724 | return NULL; | |
1725 | if (_argo0) { | |
1726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1729 | return NULL; | |
1730 | } | |
1731 | } | |
1732 | { | |
474c48f9 | 1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1734 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
f6bcfd97 | 1735 | |
474c48f9 | 1736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1737 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1738 | } Py_INCREF(Py_None); |
1739 | _resultobj = Py_None; | |
1740 | return _resultobj; | |
1741 | } | |
1742 | ||
1743 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1744 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject * _resultobj; | |
1746 | int _result; | |
1747 | wxBitmapButton * _arg0; | |
1748 | PyObject * _argo0 = 0; | |
1749 | char *_kwnames[] = { "self", NULL }; | |
1750 | ||
1751 | self = self; | |
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1753 | return NULL; | |
1754 | if (_argo0) { | |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1758 | return NULL; | |
1759 | } | |
1760 | } | |
1761 | { | |
474c48f9 | 1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1763 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
f6bcfd97 | 1764 | |
474c48f9 | 1765 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1766 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1767 | } _resultobj = Py_BuildValue("i",_result); |
1768 | return _resultobj; | |
1769 | } | |
1770 | ||
1771 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1772 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject * _resultobj; | |
1774 | int _result; | |
1775 | wxBitmapButton * _arg0; | |
1776 | PyObject * _argo0 = 0; | |
1777 | char *_kwnames[] = { "self", NULL }; | |
1778 | ||
1779 | self = self; | |
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1781 | return NULL; | |
1782 | if (_argo0) { | |
1783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
1789 | { | |
474c48f9 | 1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1791 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
f6bcfd97 | 1792 | |
474c48f9 | 1793 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1794 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1795 | } _resultobj = Py_BuildValue("i",_result); |
1796 | return _resultobj; | |
1797 | } | |
1798 | ||
70551f47 RD |
1799 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1800 | wxCheckBox *src; | |
1801 | wxControl *dest; | |
1802 | src = (wxCheckBox *) ptr; | |
1803 | dest = (wxControl *) src; | |
1804 | return (void *) dest; | |
1805 | } | |
1806 | ||
1807 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1808 | wxCheckBox *src; | |
1809 | wxWindow *dest; | |
1810 | src = (wxCheckBox *) ptr; | |
1811 | dest = (wxWindow *) src; | |
1812 | return (void *) dest; | |
1813 | } | |
1814 | ||
1815 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1816 | wxCheckBox *src; | |
1817 | wxEvtHandler *dest; | |
1818 | src = (wxCheckBox *) ptr; | |
1819 | dest = (wxEvtHandler *) src; | |
1820 | return (void *) dest; | |
1821 | } | |
1822 | ||
9df61a29 RD |
1823 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1824 | wxCheckBox *src; | |
1825 | wxObject *dest; | |
1826 | src = (wxCheckBox *) ptr; | |
1827 | dest = (wxObject *) src; | |
1828 | return (void *) dest; | |
1829 | } | |
1830 | ||
70551f47 | 1831 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1832 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1833 | PyObject * _resultobj; |
1834 | wxCheckBox * _result; | |
1835 | wxWindow * _arg0; | |
1836 | wxWindowID _arg1; | |
1837 | wxString * _arg2; | |
b68dc582 RD |
1838 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1839 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1840 | long _arg5 = (long ) 0; |
b68dc582 | 1841 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
1842 | char * _arg7 = (char *) "checkBox"; |
1843 | PyObject * _argo0 = 0; | |
70551f47 | 1844 | PyObject * _obj2 = 0; |
37f6a977 RD |
1845 | wxPoint temp; |
1846 | PyObject * _obj3 = 0; | |
1847 | wxSize temp0; | |
1848 | PyObject * _obj4 = 0; | |
2d091820 | 1849 | PyObject * _argo6 = 0; |
107e4716 | 1850 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
70551f47 RD |
1851 | char _ptemp[128]; |
1852 | ||
1853 | self = self; | |
37f6a977 | 1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 1855 | return NULL; |
2d091820 RD |
1856 | if (_argo0) { |
1857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1860 | return NULL; | |
1861 | } | |
1862 | } | |
1863 | { | |
c8bc7bb8 RD |
1864 | _arg2 = wxString_in_helper(_obj2); |
1865 | if (_arg2 == NULL) | |
70551f47 | 1866 | return NULL; |
70551f47 | 1867 | } |
37f6a977 RD |
1868 | if (_obj3) |
1869 | { | |
1870 | _arg3 = &temp; | |
1871 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1872 | return NULL; |
37f6a977 RD |
1873 | } |
1874 | if (_obj4) | |
1875 | { | |
1876 | _arg4 = &temp0; | |
1877 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1878 | return NULL; |
37f6a977 | 1879 | } |
2d091820 RD |
1880 | if (_argo6) { |
1881 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1882 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1884 | return NULL; | |
1885 | } | |
1886 | } | |
ab9bc19b | 1887 | { |
474c48f9 | 1888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1889 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
ab9bc19b | 1890 | |
474c48f9 | 1891 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1892 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1893 | } if (_result) { |
1894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1895 | _resultobj = Py_BuildValue("s",_ptemp); | |
1896 | } else { | |
1897 | Py_INCREF(Py_None); | |
1898 | _resultobj = Py_None; | |
1899 | } | |
70551f47 RD |
1900 | { |
1901 | if (_obj2) | |
1902 | delete _arg2; | |
1903 | } | |
1904 | return _resultobj; | |
1905 | } | |
1906 | ||
aa2a5b86 RD |
1907 | #define new_wxPreCheckBox() (new wxCheckBox()) |
1908 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject * _resultobj; | |
1910 | wxCheckBox * _result; | |
1911 | char *_kwnames[] = { NULL }; | |
1912 | char _ptemp[128]; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
1916 | return NULL; | |
1917 | { | |
474c48f9 | 1918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1919 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
aa2a5b86 | 1920 | |
474c48f9 | 1921 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1922 | if (PyErr_Occurred()) return NULL; |
1923 | } if (_result) { | |
1924 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1925 | _resultobj = Py_BuildValue("s",_ptemp); | |
1926 | } else { | |
1927 | Py_INCREF(Py_None); | |
1928 | _resultobj = Py_None; | |
1929 | } | |
1930 | return _resultobj; | |
1931 | } | |
1932 | ||
1933 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1934 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject * _resultobj; | |
1936 | bool _result; | |
1937 | wxCheckBox * _arg0; | |
1938 | wxWindow * _arg1; | |
1939 | wxWindowID _arg2; | |
1940 | wxString * _arg3; | |
1941 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1942 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1943 | long _arg6 = (long ) 0; | |
1944 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1945 | char * _arg8 = (char *) "checkBox"; | |
1946 | PyObject * _argo0 = 0; | |
1947 | PyObject * _argo1 = 0; | |
1948 | PyObject * _obj3 = 0; | |
1949 | wxPoint temp; | |
1950 | PyObject * _obj4 = 0; | |
1951 | wxSize temp0; | |
1952 | PyObject * _obj5 = 0; | |
1953 | PyObject * _argo7 = 0; | |
1954 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
1955 | ||
1956 | self = self; | |
1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1958 | return NULL; | |
1959 | if (_argo0) { | |
1960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
1962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
1963 | return NULL; | |
1964 | } | |
1965 | } | |
1966 | if (_argo1) { | |
1967 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
1970 | return NULL; | |
1971 | } | |
1972 | } | |
1973 | { | |
c8bc7bb8 RD |
1974 | _arg3 = wxString_in_helper(_obj3); |
1975 | if (_arg3 == NULL) | |
aa2a5b86 | 1976 | return NULL; |
aa2a5b86 RD |
1977 | } |
1978 | if (_obj4) | |
1979 | { | |
1980 | _arg4 = &temp; | |
1981 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1982 | return NULL; | |
1983 | } | |
1984 | if (_obj5) | |
1985 | { | |
1986 | _arg5 = &temp0; | |
1987 | if (! wxSize_helper(_obj5, &_arg5)) | |
1988 | return NULL; | |
1989 | } | |
1990 | if (_argo7) { | |
1991 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1992 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
1994 | return NULL; | |
1995 | } | |
1996 | } | |
1997 | { | |
474c48f9 | 1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1999 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 2000 | |
474c48f9 | 2001 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2002 | if (PyErr_Occurred()) return NULL; |
2003 | } _resultobj = Py_BuildValue("i",_result); | |
2004 | { | |
2005 | if (_obj3) | |
2006 | delete _arg3; | |
2007 | } | |
2008 | return _resultobj; | |
2009 | } | |
2010 | ||
70551f47 | 2011 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 2012 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2013 | PyObject * _resultobj; |
2014 | bool _result; | |
2015 | wxCheckBox * _arg0; | |
2d091820 | 2016 | PyObject * _argo0 = 0; |
107e4716 | 2017 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2018 | |
2019 | self = self; | |
107e4716 | 2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2021 | return NULL; |
2d091820 RD |
2022 | if (_argo0) { |
2023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
ab9bc19b | 2029 | { |
474c48f9 | 2030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2031 | _result = (bool )wxCheckBox_GetValue(_arg0); |
ab9bc19b | 2032 | |
474c48f9 | 2033 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2034 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2035 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2036 | return _resultobj; |
2037 | } | |
2038 | ||
2039 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2040 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2041 | PyObject * _resultobj; |
2042 | wxCheckBox * _arg0; | |
2043 | bool _arg1; | |
2d091820 | 2044 | PyObject * _argo0 = 0; |
70551f47 | 2045 | int tempbool1; |
107e4716 | 2046 | char *_kwnames[] = { "self","state", NULL }; |
70551f47 RD |
2047 | |
2048 | self = self; | |
107e4716 | 2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2050 | return NULL; |
2d091820 RD |
2051 | if (_argo0) { |
2052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2055 | return NULL; | |
2056 | } | |
2057 | } | |
2058 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2059 | { |
474c48f9 | 2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2061 | wxCheckBox_SetValue(_arg0,_arg1); |
ab9bc19b | 2062 | |
474c48f9 | 2063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2064 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2065 | } Py_INCREF(Py_None); |
70551f47 RD |
2066 | _resultobj = Py_None; |
2067 | return _resultobj; | |
2068 | } | |
2069 | ||
65191ae8 RD |
2070 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2071 | wxChoice *src; | |
2072 | wxControlWithItems *dest; | |
2073 | src = (wxChoice *) ptr; | |
2074 | dest = (wxControlWithItems *) src; | |
2075 | return (void *) dest; | |
2076 | } | |
2077 | ||
70551f47 RD |
2078 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2079 | wxChoice *src; | |
2080 | wxControl *dest; | |
2081 | src = (wxChoice *) ptr; | |
2082 | dest = (wxControl *) src; | |
2083 | return (void *) dest; | |
2084 | } | |
2085 | ||
2086 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2087 | wxChoice *src; | |
2088 | wxWindow *dest; | |
2089 | src = (wxChoice *) ptr; | |
2090 | dest = (wxWindow *) src; | |
2091 | return (void *) dest; | |
2092 | } | |
2093 | ||
2094 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2095 | wxChoice *src; | |
2096 | wxEvtHandler *dest; | |
2097 | src = (wxChoice *) ptr; | |
2098 | dest = (wxEvtHandler *) src; | |
2099 | return (void *) dest; | |
2100 | } | |
2101 | ||
9df61a29 RD |
2102 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2103 | wxChoice *src; | |
2104 | wxObject *dest; | |
2105 | src = (wxChoice *) ptr; | |
2106 | dest = (wxObject *) src; | |
2107 | return (void *) dest; | |
2108 | } | |
2109 | ||
70551f47 | 2110 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 2111 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2112 | PyObject * _resultobj; |
2113 | wxChoice * _result; | |
2114 | wxWindow * _arg0; | |
2115 | wxWindowID _arg1; | |
b68dc582 RD |
2116 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2117 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2118 | int _arg4 = (int ) 0; |
2119 | wxString * _arg5 = (wxString *) NULL; | |
2120 | long _arg6 = (long ) 0; | |
b68dc582 | 2121 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
2122 | char * _arg8 = (char *) "choice"; |
2123 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2124 | wxPoint temp; |
2125 | PyObject * _obj2 = 0; | |
2126 | wxSize temp0; | |
2127 | PyObject * _obj3 = 0; | |
70551f47 | 2128 | PyObject * _obj5 = 0; |
2d091820 | 2129 | PyObject * _argo7 = 0; |
e02c03a4 | 2130 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2131 | char _ptemp[128]; |
2132 | ||
2133 | self = self; | |
37f6a977 | 2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
70551f47 | 2135 | return NULL; |
2d091820 RD |
2136 | if (_argo0) { |
2137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2140 | return NULL; | |
2141 | } | |
2142 | } | |
37f6a977 RD |
2143 | if (_obj2) |
2144 | { | |
2145 | _arg2 = &temp; | |
2146 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 2147 | return NULL; |
37f6a977 RD |
2148 | } |
2149 | if (_obj3) | |
2150 | { | |
2151 | _arg3 = &temp0; | |
2152 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 2153 | return NULL; |
37f6a977 | 2154 | } |
70551f47 RD |
2155 | if (_obj5) |
2156 | { | |
2157 | _arg5 = wxString_LIST_helper(_obj5); | |
2158 | if (_arg5 == NULL) { | |
2159 | return NULL; | |
2160 | } | |
2161 | } | |
2d091820 RD |
2162 | if (_argo7) { |
2163 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2164 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
70551f47 RD |
2165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2166 | return NULL; | |
2167 | } | |
2168 | } | |
2169 | { | |
ab9bc19b RD |
2170 | if (_obj5) { |
2171 | _arg4 = PyList_Size(_obj5); | |
2172 | } | |
2173 | else { | |
2174 | _arg4 = 0; | |
2175 | } | |
70551f47 | 2176 | } |
ab9bc19b | 2177 | { |
474c48f9 | 2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2179 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
ab9bc19b | 2180 | |
474c48f9 | 2181 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2182 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2183 | } if (_result) { |
2184 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2185 | _resultobj = Py_BuildValue("s",_ptemp); | |
2186 | } else { | |
2187 | Py_INCREF(Py_None); | |
2188 | _resultobj = Py_None; | |
2189 | } | |
70551f47 RD |
2190 | { |
2191 | delete [] _arg5; | |
2192 | } | |
2193 | return _resultobj; | |
2194 | } | |
2195 | ||
aa2a5b86 RD |
2196 | #define new_wxPreChoice() (new wxChoice()) |
2197 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2198 | PyObject * _resultobj; |
aa2a5b86 RD |
2199 | wxChoice * _result; |
2200 | char *_kwnames[] = { NULL }; | |
2201 | char _ptemp[128]; | |
70551f47 RD |
2202 | |
2203 | self = self; | |
aa2a5b86 RD |
2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2205 | return NULL; | |
2206 | { | |
474c48f9 | 2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2208 | _result = (wxChoice *)new_wxPreChoice(); |
aa2a5b86 | 2209 | |
474c48f9 | 2210 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2211 | if (PyErr_Occurred()) return NULL; |
2212 | } if (_result) { | |
2213 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2214 | _resultobj = Py_BuildValue("s",_ptemp); | |
2215 | } else { | |
2216 | Py_INCREF(Py_None); | |
2217 | _resultobj = Py_None; | |
2218 | } | |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
2222 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2223 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject * _resultobj; | |
2225 | bool _result; | |
2226 | wxChoice * _arg0; | |
2227 | wxWindow * _arg1; | |
2228 | wxWindowID _arg2; | |
2229 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2230 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2231 | int _arg5 = (int ) 0; | |
2232 | wxString * _arg6 = (wxString *) NULL; | |
2233 | long _arg7 = (long ) 0; | |
2234 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2235 | char * _arg9 = (char *) "choice"; | |
2236 | PyObject * _argo0 = 0; | |
2237 | PyObject * _argo1 = 0; | |
2238 | wxPoint temp; | |
2239 | PyObject * _obj3 = 0; | |
2240 | wxSize temp0; | |
2241 | PyObject * _obj4 = 0; | |
2242 | PyObject * _obj6 = 0; | |
2243 | PyObject * _argo8 = 0; | |
2244 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2245 | ||
2246 | self = self; | |
2247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2248 | return NULL; | |
2249 | if (_argo0) { | |
2250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2253 | return NULL; | |
2254 | } | |
2255 | } | |
2256 | if (_argo1) { | |
2257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2260 | return NULL; | |
2261 | } | |
2262 | } | |
2263 | if (_obj3) | |
2264 | { | |
2265 | _arg3 = &temp; | |
2266 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2267 | return NULL; | |
2268 | } | |
2269 | if (_obj4) | |
2270 | { | |
2271 | _arg4 = &temp0; | |
2272 | if (! wxSize_helper(_obj4, &_arg4)) | |
2273 | return NULL; | |
2274 | } | |
2275 | if (_obj6) | |
2276 | { | |
2277 | _arg6 = wxString_LIST_helper(_obj6); | |
2278 | if (_arg6 == NULL) { | |
2279 | return NULL; | |
2280 | } | |
2281 | } | |
2282 | if (_argo8) { | |
2283 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
2289 | { | |
2290 | if (_obj6) { | |
65191ae8 RD |
2291 | _arg5 = PyList_Size(_obj6); |
2292 | } | |
2293 | else { | |
2294 | _arg5 = 0; | |
70551f47 | 2295 | } |
65191ae8 | 2296 | } |
70551f47 | 2297 | { |
474c48f9 | 2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2299 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b | 2300 | |
474c48f9 | 2301 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2302 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2303 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 2304 | { |
65191ae8 | 2305 | delete [] _arg6; |
70551f47 RD |
2306 | } |
2307 | return _resultobj; | |
2308 | } | |
2309 | ||
65191ae8 RD |
2310 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2311 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2312 | PyObject * _resultobj; |
70551f47 | 2313 | wxChoice * _arg0; |
2d091820 | 2314 | PyObject * _argo0 = 0; |
107e4716 | 2315 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2316 | |
2317 | self = self; | |
65191ae8 | 2318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
70551f47 | 2319 | return NULL; |
2d091820 RD |
2320 | if (_argo0) { |
2321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
70551f47 RD |
2324 | return NULL; |
2325 | } | |
2326 | } | |
70551f47 | 2327 | { |
474c48f9 | 2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2329 | wxChoice_Clear(_arg0); |
ab9bc19b | 2330 | |
474c48f9 | 2331 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2332 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
2333 | } Py_INCREF(Py_None); |
2334 | _resultobj = Py_None; | |
70551f47 RD |
2335 | return _resultobj; |
2336 | } | |
2337 | ||
65191ae8 RD |
2338 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2339 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2340 | PyObject * _resultobj; |
2341 | int _result; | |
2342 | wxChoice * _arg0; | |
2d091820 | 2343 | PyObject * _argo0 = 0; |
107e4716 | 2344 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2345 | |
2346 | self = self; | |
65191ae8 | 2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
70551f47 | 2348 | return NULL; |
2d091820 RD |
2349 | if (_argo0) { |
2350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
70551f47 RD |
2353 | return NULL; |
2354 | } | |
2355 | } | |
ab9bc19b | 2356 | { |
474c48f9 | 2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2358 | _result = (int )wxChoice_GetColumns(_arg0); |
ab9bc19b | 2359 | |
474c48f9 | 2360 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2361 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2362 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2363 | return _resultobj; |
2364 | } | |
2365 | ||
2366 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
107e4716 | 2367 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2368 | PyObject * _resultobj; |
2369 | wxChoice * _arg0; | |
2d091820 RD |
2370 | int _arg1 = (int ) 1; |
2371 | PyObject * _argo0 = 0; | |
107e4716 | 2372 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2373 | |
2374 | self = self; | |
107e4716 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2376 | return NULL; |
2d091820 RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2381 | return NULL; | |
2382 | } | |
2383 | } | |
ab9bc19b | 2384 | { |
474c48f9 | 2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2386 | wxChoice_SetColumns(_arg0,_arg1); |
ab9bc19b | 2387 | |
474c48f9 | 2388 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2389 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2390 | } Py_INCREF(Py_None); |
70551f47 RD |
2391 | _resultobj = Py_None; |
2392 | return _resultobj; | |
2393 | } | |
2394 | ||
2395 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 2396 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2397 | PyObject * _resultobj; |
2398 | wxChoice * _arg0; | |
2399 | int _arg1; | |
2d091820 | 2400 | PyObject * _argo0 = 0; |
107e4716 | 2401 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2402 | |
2403 | self = self; | |
107e4716 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2405 | return NULL; |
2d091820 RD |
2406 | if (_argo0) { |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2410 | return NULL; | |
2411 | } | |
2412 | } | |
ab9bc19b | 2413 | { |
474c48f9 | 2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2415 | wxChoice_SetSelection(_arg0,_arg1); |
ab9bc19b | 2416 | |
474c48f9 | 2417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2418 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2419 | } Py_INCREF(Py_None); |
70551f47 RD |
2420 | _resultobj = Py_None; |
2421 | return _resultobj; | |
2422 | } | |
2423 | ||
2424 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 2425 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2426 | PyObject * _resultobj; |
2427 | wxChoice * _arg0; | |
2428 | wxString * _arg1; | |
2d091820 | 2429 | PyObject * _argo0 = 0; |
70551f47 | 2430 | PyObject * _obj1 = 0; |
107e4716 | 2431 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2432 | |
2433 | self = self; | |
107e4716 | 2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2435 | return NULL; |
2d091820 RD |
2436 | if (_argo0) { |
2437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2440 | return NULL; | |
2441 | } | |
2442 | } | |
2443 | { | |
c8bc7bb8 RD |
2444 | _arg1 = wxString_in_helper(_obj1); |
2445 | if (_arg1 == NULL) | |
2cd2fac8 | 2446 | return NULL; |
70551f47 | 2447 | } |
ab9bc19b | 2448 | { |
474c48f9 | 2449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2450 | wxChoice_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 2451 | |
474c48f9 | 2452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2453 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2454 | } Py_INCREF(Py_None); |
70551f47 RD |
2455 | _resultobj = Py_None; |
2456 | { | |
2457 | if (_obj1) | |
2458 | delete _arg1; | |
2459 | } | |
2460 | return _resultobj; | |
2461 | } | |
2462 | ||
2c8a649d RD |
2463 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2464 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject * _resultobj; | |
2466 | wxChoice * _arg0; | |
2467 | int _arg1; | |
2468 | wxString * _arg2; | |
2469 | PyObject * _argo0 = 0; | |
2470 | PyObject * _obj2 = 0; | |
2471 | char *_kwnames[] = { "self","n","s", NULL }; | |
2472 | ||
2473 | self = self; | |
2474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2475 | return NULL; | |
2476 | if (_argo0) { | |
2477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2480 | return NULL; | |
2481 | } | |
2482 | } | |
2483 | { | |
c8bc7bb8 RD |
2484 | _arg2 = wxString_in_helper(_obj2); |
2485 | if (_arg2 == NULL) | |
2c8a649d | 2486 | return NULL; |
2c8a649d RD |
2487 | } |
2488 | { | |
474c48f9 | 2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2490 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
2c8a649d | 2491 | |
474c48f9 | 2492 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
2493 | if (PyErr_Occurred()) return NULL; |
2494 | } Py_INCREF(Py_None); | |
2495 | _resultobj = Py_None; | |
2496 | { | |
2497 | if (_obj2) | |
2498 | delete _arg2; | |
2499 | } | |
2500 | return _resultobj; | |
2501 | } | |
2502 | ||
70551f47 RD |
2503 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2504 | wxComboBox *src; | |
2505 | wxControl *dest; | |
2506 | src = (wxComboBox *) ptr; | |
2507 | dest = (wxControl *) src; | |
2508 | return (void *) dest; | |
2509 | } | |
2510 | ||
2511 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2512 | wxComboBox *src; | |
2513 | wxWindow *dest; | |
2514 | src = (wxComboBox *) ptr; | |
2515 | dest = (wxWindow *) src; | |
2516 | return (void *) dest; | |
2517 | } | |
2518 | ||
2519 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2520 | wxComboBox *src; | |
2521 | wxEvtHandler *dest; | |
2522 | src = (wxComboBox *) ptr; | |
2523 | dest = (wxEvtHandler *) src; | |
2524 | return (void *) dest; | |
2525 | } | |
2526 | ||
9df61a29 RD |
2527 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2528 | wxComboBox *src; | |
2529 | wxObject *dest; | |
2530 | src = (wxComboBox *) ptr; | |
2531 | dest = (wxObject *) src; | |
2532 | return (void *) dest; | |
2533 | } | |
2534 | ||
70551f47 | 2535 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
107e4716 | 2536 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2537 | PyObject * _resultobj; |
2538 | wxComboBox * _result; | |
2539 | wxWindow * _arg0; | |
2540 | wxWindowID _arg1; | |
2d091820 | 2541 | char * _arg2 = (char *) ""; |
b68dc582 RD |
2542 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2543 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2544 | int _arg5 = (int ) 0; |
2545 | wxString * _arg6 = (wxString *) NULL; | |
2546 | long _arg7 = (long ) 0; | |
b68dc582 | 2547 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
2548 | char * _arg9 = (char *) "comboBox"; |
2549 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2550 | wxPoint temp; |
2551 | PyObject * _obj3 = 0; | |
2552 | wxSize temp0; | |
2553 | PyObject * _obj4 = 0; | |
70551f47 | 2554 | PyObject * _obj6 = 0; |
2d091820 | 2555 | PyObject * _argo8 = 0; |
e02c03a4 | 2556 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2557 | char _ptemp[128]; |
2558 | ||
2559 | self = self; | |
37f6a977 | 2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 2561 | return NULL; |
2d091820 RD |
2562 | if (_argo0) { |
2563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2566 | return NULL; | |
2567 | } | |
2568 | } | |
37f6a977 RD |
2569 | if (_obj3) |
2570 | { | |
2571 | _arg3 = &temp; | |
2572 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 2573 | return NULL; |
37f6a977 RD |
2574 | } |
2575 | if (_obj4) | |
2576 | { | |
2577 | _arg4 = &temp0; | |
2578 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 2579 | return NULL; |
37f6a977 | 2580 | } |
70551f47 RD |
2581 | if (_obj6) |
2582 | { | |
2583 | _arg6 = wxString_LIST_helper(_obj6); | |
2584 | if (_arg6 == NULL) { | |
2585 | return NULL; | |
2586 | } | |
2587 | } | |
2d091820 RD |
2588 | if (_argo8) { |
2589 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
2595 | { | |
ab9bc19b RD |
2596 | if (_obj6) { |
2597 | _arg5 = PyList_Size(_obj6); | |
2598 | } | |
2599 | else { | |
2600 | _arg5 = 0; | |
2601 | } | |
70551f47 | 2602 | } |
ab9bc19b | 2603 | { |
474c48f9 | 2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2605 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b | 2606 | |
474c48f9 | 2607 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2608 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2609 | } if (_result) { |
2610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2611 | _resultobj = Py_BuildValue("s",_ptemp); | |
2612 | } else { | |
2613 | Py_INCREF(Py_None); | |
2614 | _resultobj = Py_None; | |
2615 | } | |
70551f47 RD |
2616 | { |
2617 | delete [] _arg6; | |
2618 | } | |
2619 | return _resultobj; | |
2620 | } | |
2621 | ||
aa2a5b86 RD |
2622 | #define new_wxPreComboBox() (new wxComboBox()) |
2623 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2624 | PyObject * _resultobj; | |
2625 | wxComboBox * _result; | |
2626 | char *_kwnames[] = { NULL }; | |
2627 | char _ptemp[128]; | |
2628 | ||
2629 | self = self; | |
2630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2631 | return NULL; | |
2632 | { | |
474c48f9 | 2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2634 | _result = (wxComboBox *)new_wxPreComboBox(); |
aa2a5b86 | 2635 | |
474c48f9 | 2636 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2637 | if (PyErr_Occurred()) return NULL; |
2638 | } if (_result) { | |
2639 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2640 | _resultobj = Py_BuildValue("s",_ptemp); | |
2641 | } else { | |
2642 | Py_INCREF(Py_None); | |
2643 | _resultobj = Py_None; | |
2644 | } | |
2645 | return _resultobj; | |
2646 | } | |
2647 | ||
2648 | #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)) | |
2649 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2650 | PyObject * _resultobj; | |
2651 | bool _result; | |
2652 | wxComboBox * _arg0; | |
2653 | wxWindow * _arg1; | |
2654 | wxWindowID _arg2; | |
2655 | char * _arg3 = (char *) ""; | |
2656 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2657 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2658 | int _arg6 = (int ) 0; | |
2659 | wxString * _arg7 = (wxString *) NULL; | |
2660 | long _arg8 = (long ) 0; | |
2661 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2662 | char * _arg10 = (char *) "comboBox"; | |
2663 | PyObject * _argo0 = 0; | |
2664 | PyObject * _argo1 = 0; | |
2665 | wxPoint temp; | |
2666 | PyObject * _obj4 = 0; | |
2667 | wxSize temp0; | |
2668 | PyObject * _obj5 = 0; | |
2669 | PyObject * _obj7 = 0; | |
2670 | PyObject * _argo9 = 0; | |
2671 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2672 | ||
2673 | self = self; | |
2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2675 | return NULL; | |
2676 | if (_argo0) { | |
2677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2680 | return NULL; | |
2681 | } | |
2682 | } | |
2683 | if (_argo1) { | |
2684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2687 | return NULL; | |
2688 | } | |
2689 | } | |
2690 | if (_obj4) | |
2691 | { | |
2692 | _arg4 = &temp; | |
2693 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2694 | return NULL; | |
2695 | } | |
2696 | if (_obj5) | |
2697 | { | |
2698 | _arg5 = &temp0; | |
2699 | if (! wxSize_helper(_obj5, &_arg5)) | |
2700 | return NULL; | |
2701 | } | |
2702 | if (_obj7) | |
2703 | { | |
2704 | _arg7 = wxString_LIST_helper(_obj7); | |
2705 | if (_arg7 == NULL) { | |
2706 | return NULL; | |
2707 | } | |
2708 | } | |
2709 | if (_argo9) { | |
2710 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2711 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2713 | return NULL; | |
2714 | } | |
2715 | } | |
2716 | { | |
2717 | if (_obj7) { | |
2718 | _arg6 = PyList_Size(_obj7); | |
2719 | } | |
2720 | else { | |
2721 | _arg6 = 0; | |
2722 | } | |
2723 | } | |
2724 | { | |
474c48f9 | 2725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2726 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
aa2a5b86 | 2727 | |
474c48f9 | 2728 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2729 | if (PyErr_Occurred()) return NULL; |
2730 | } _resultobj = Py_BuildValue("i",_result); | |
2731 | { | |
2732 | delete [] _arg7; | |
2733 | } | |
2734 | return _resultobj; | |
2735 | } | |
2736 | ||
70551f47 | 2737 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
107e4716 | 2738 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2739 | PyObject * _resultobj; |
2740 | wxComboBox * _arg0; | |
2d091820 | 2741 | PyObject * _argo0 = 0; |
107e4716 | 2742 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2743 | |
2744 | self = self; | |
107e4716 | 2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
70551f47 | 2746 | return NULL; |
2d091820 RD |
2747 | if (_argo0) { |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
ab9bc19b | 2754 | { |
474c48f9 | 2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2756 | wxComboBox_Copy(_arg0); |
ab9bc19b | 2757 | |
474c48f9 | 2758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2759 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2760 | } Py_INCREF(Py_None); |
70551f47 RD |
2761 | _resultobj = Py_None; |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
2765 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 2766 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2767 | PyObject * _resultobj; |
2768 | wxComboBox * _arg0; | |
2d091820 | 2769 | PyObject * _argo0 = 0; |
107e4716 | 2770 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2771 | |
2772 | self = self; | |
107e4716 | 2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
70551f47 | 2774 | return NULL; |
2d091820 RD |
2775 | if (_argo0) { |
2776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2779 | return NULL; | |
2780 | } | |
2781 | } | |
ab9bc19b | 2782 | { |
474c48f9 | 2783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2784 | wxComboBox_Cut(_arg0); |
ab9bc19b | 2785 | |
474c48f9 | 2786 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2787 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2788 | } Py_INCREF(Py_None); |
70551f47 RD |
2789 | _resultobj = Py_None; |
2790 | return _resultobj; | |
2791 | } | |
2792 | ||
70551f47 | 2793 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
107e4716 | 2794 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2795 | PyObject * _resultobj; |
2796 | long _result; | |
2797 | wxComboBox * _arg0; | |
2d091820 | 2798 | PyObject * _argo0 = 0; |
65191ae8 | 2799 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2800 | |
2801 | self = self; | |
65191ae8 | 2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 2803 | return NULL; |
2d091820 RD |
2804 | if (_argo0) { |
2805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
70551f47 RD |
2808 | return NULL; |
2809 | } | |
2810 | } | |
70551f47 | 2811 | { |
474c48f9 | 2812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2813 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
ab9bc19b | 2814 | |
474c48f9 | 2815 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2816 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2817 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2818 | return _resultobj; |
2819 | } | |
2820 | ||
65191ae8 RD |
2821 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
2822 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2823 | PyObject * _resultobj; |
65191ae8 | 2824 | long _result; |
70551f47 | 2825 | wxComboBox * _arg0; |
2d091820 | 2826 | PyObject * _argo0 = 0; |
107e4716 | 2827 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2828 | |
2829 | self = self; | |
65191ae8 | 2830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 2831 | return NULL; |
2d091820 RD |
2832 | if (_argo0) { |
2833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
70551f47 RD |
2836 | return NULL; |
2837 | } | |
2838 | } | |
70551f47 | 2839 | { |
474c48f9 | 2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2841 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
ab9bc19b | 2842 | |
474c48f9 | 2843 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2844 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2845 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2846 | return _resultobj; |
2847 | } | |
2848 | ||
2849 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 2850 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2851 | PyObject * _resultobj; |
2852 | wxString * _result; | |
2853 | wxComboBox * _arg0; | |
2d091820 | 2854 | PyObject * _argo0 = 0; |
107e4716 | 2855 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2856 | |
2857 | self = self; | |
107e4716 | 2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2859 | return NULL; |
2d091820 RD |
2860 | if (_argo0) { |
2861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
2864 | return NULL; | |
2865 | } | |
2866 | } | |
70551f47 | 2867 | { |
474c48f9 | 2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2869 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
ab9bc19b | 2870 | |
474c48f9 | 2871 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2872 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2873 | }{ |
c8bc7bb8 RD |
2874 | #if wxUSE_UNICODE |
2875 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2876 | #else | |
e02c03a4 | 2877 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2878 | #endif |
70551f47 RD |
2879 | } |
2880 | { | |
2881 | delete _result; | |
2882 | } | |
2883 | return _resultobj; | |
2884 | } | |
2885 | ||
70551f47 | 2886 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
107e4716 | 2887 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2888 | PyObject * _resultobj; |
2889 | wxComboBox * _arg0; | |
2d091820 | 2890 | PyObject * _argo0 = 0; |
107e4716 | 2891 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2892 | |
2893 | self = self; | |
107e4716 | 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
70551f47 | 2895 | return NULL; |
2d091820 RD |
2896 | if (_argo0) { |
2897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
2900 | return NULL; | |
2901 | } | |
2902 | } | |
ab9bc19b | 2903 | { |
474c48f9 | 2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2905 | wxComboBox_Paste(_arg0); |
ab9bc19b | 2906 | |
474c48f9 | 2907 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2908 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2909 | } Py_INCREF(Py_None); |
70551f47 RD |
2910 | _resultobj = Py_None; |
2911 | return _resultobj; | |
2912 | } | |
2913 | ||
2914 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 2915 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2916 | PyObject * _resultobj; |
2917 | wxComboBox * _arg0; | |
2918 | long _arg1; | |
2919 | long _arg2; | |
2920 | wxString * _arg3; | |
2d091820 | 2921 | PyObject * _argo0 = 0; |
70551f47 | 2922 | PyObject * _obj3 = 0; |
107e4716 | 2923 | char *_kwnames[] = { "self","from","to","text", NULL }; |
70551f47 RD |
2924 | |
2925 | self = self; | |
107e4716 | 2926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 2927 | return NULL; |
2d091820 RD |
2928 | if (_argo0) { |
2929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
2932 | return NULL; | |
2933 | } | |
2934 | } | |
2935 | { | |
c8bc7bb8 RD |
2936 | _arg3 = wxString_in_helper(_obj3); |
2937 | if (_arg3 == NULL) | |
70551f47 | 2938 | return NULL; |
70551f47 | 2939 | } |
ab9bc19b | 2940 | { |
474c48f9 | 2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2942 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 2943 | |
474c48f9 | 2944 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2945 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2946 | } Py_INCREF(Py_None); |
70551f47 RD |
2947 | _resultobj = Py_None; |
2948 | { | |
2949 | if (_obj3) | |
2950 | delete _arg3; | |
2951 | } | |
2952 | return _resultobj; | |
2953 | } | |
2954 | ||
2955 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
107e4716 | 2956 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2957 | PyObject * _resultobj; |
2958 | wxComboBox * _arg0; | |
2959 | long _arg1; | |
2960 | long _arg2; | |
2d091820 | 2961 | PyObject * _argo0 = 0; |
107e4716 | 2962 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
2963 | |
2964 | self = self; | |
107e4716 | 2965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 2966 | return NULL; |
2d091820 RD |
2967 | if (_argo0) { |
2968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
2971 | return NULL; | |
2972 | } | |
2973 | } | |
ab9bc19b | 2974 | { |
474c48f9 | 2975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2976 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 2977 | |
474c48f9 | 2978 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2979 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2980 | } Py_INCREF(Py_None); |
70551f47 RD |
2981 | _resultobj = Py_None; |
2982 | return _resultobj; | |
2983 | } | |
2984 | ||
2985 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 2986 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2987 | PyObject * _resultobj; |
2988 | wxComboBox * _arg0; | |
2989 | long _arg1; | |
2d091820 | 2990 | PyObject * _argo0 = 0; |
107e4716 | 2991 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
2992 | |
2993 | self = self; | |
107e4716 | 2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2995 | return NULL; |
2d091820 RD |
2996 | if (_argo0) { |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
ab9bc19b | 3003 | { |
474c48f9 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3005 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
ab9bc19b | 3006 | |
474c48f9 | 3007 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3008 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3009 | } Py_INCREF(Py_None); |
70551f47 RD |
3010 | _resultobj = Py_None; |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 3015 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3016 | PyObject * _resultobj; |
3017 | wxComboBox * _arg0; | |
2d091820 | 3018 | PyObject * _argo0 = 0; |
107e4716 | 3019 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3020 | |
3021 | self = self; | |
107e4716 | 3022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 3023 | return NULL; |
2d091820 RD |
3024 | if (_argo0) { |
3025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3028 | return NULL; | |
3029 | } | |
3030 | } | |
ab9bc19b | 3031 | { |
474c48f9 | 3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3033 | wxComboBox_SetInsertionPointEnd(_arg0); |
ab9bc19b | 3034 | |
474c48f9 | 3035 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3036 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3037 | } Py_INCREF(Py_None); |
70551f47 RD |
3038 | _resultobj = Py_None; |
3039 | return _resultobj; | |
3040 | } | |
3041 | ||
2d091820 | 3042 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
107e4716 | 3043 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2d091820 RD |
3044 | PyObject * _resultobj; |
3045 | wxComboBox * _arg0; | |
3046 | int _arg1; | |
3047 | PyObject * _argo0 = 0; | |
107e4716 | 3048 | char *_kwnames[] = { "self","n", NULL }; |
2d091820 RD |
3049 | |
3050 | self = self; | |
107e4716 | 3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
2d091820 RD |
3052 | return NULL; |
3053 | if (_argo0) { | |
3054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
3060 | { | |
474c48f9 | 3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3062 | wxComboBox_SetSelection(_arg0,_arg1); |
2d091820 | 3063 | |
474c48f9 | 3064 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3065 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3066 | } Py_INCREF(Py_None); |
3067 | _resultobj = Py_None; | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
70551f47 | 3071 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
107e4716 | 3072 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3073 | PyObject * _resultobj; |
3074 | wxComboBox * _arg0; | |
3075 | long _arg1; | |
3076 | long _arg2; | |
2d091820 | 3077 | PyObject * _argo0 = 0; |
107e4716 | 3078 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3079 | |
3080 | self = self; | |
107e4716 | 3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3082 | return NULL; |
2d091820 RD |
3083 | if (_argo0) { |
3084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
ab9bc19b | 3090 | { |
474c48f9 | 3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3092 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
ab9bc19b | 3093 | |
474c48f9 | 3094 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3095 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3096 | } Py_INCREF(Py_None); |
70551f47 RD |
3097 | _resultobj = Py_None; |
3098 | return _resultobj; | |
3099 | } | |
3100 | ||
3101 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3102 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3103 | PyObject * _resultobj; |
3104 | wxComboBox * _arg0; | |
3105 | wxString * _arg1; | |
2d091820 | 3106 | PyObject * _argo0 = 0; |
70551f47 | 3107 | PyObject * _obj1 = 0; |
107e4716 | 3108 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
3109 | |
3110 | self = self; | |
107e4716 | 3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3112 | return NULL; |
2d091820 RD |
3113 | if (_argo0) { |
3114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3117 | return NULL; | |
3118 | } | |
3119 | } | |
3120 | { | |
c8bc7bb8 RD |
3121 | _arg1 = wxString_in_helper(_obj1); |
3122 | if (_arg1 == NULL) | |
2cd2fac8 | 3123 | return NULL; |
70551f47 | 3124 | } |
ab9bc19b | 3125 | { |
474c48f9 | 3126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3127 | wxComboBox_SetValue(_arg0,*_arg1); |
ab9bc19b | 3128 | |
474c48f9 | 3129 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3130 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3131 | } Py_INCREF(Py_None); |
70551f47 RD |
3132 | _resultobj = Py_None; |
3133 | { | |
3134 | if (_obj1) | |
3135 | delete _arg1; | |
3136 | } | |
3137 | return _resultobj; | |
3138 | } | |
3139 | ||
2c8a649d RD |
3140 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3141 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject * _resultobj; | |
3143 | wxComboBox * _arg0; | |
3144 | bool _arg1; | |
3145 | PyObject * _argo0 = 0; | |
3146 | int tempbool1; | |
3147 | char *_kwnames[] = { "self","editable", NULL }; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3151 | return NULL; | |
3152 | if (_argo0) { | |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3156 | return NULL; | |
3157 | } | |
3158 | } | |
3159 | _arg1 = (bool ) tempbool1; | |
3160 | { | |
474c48f9 | 3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3162 | wxComboBox_SetEditable(_arg0,_arg1); |
2c8a649d | 3163 | |
474c48f9 | 3164 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
3165 | if (PyErr_Occurred()) return NULL; |
3166 | } Py_INCREF(Py_None); | |
3167 | _resultobj = Py_None; | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
c70fd24f RD |
3171 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) |
3172 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3173 | PyObject * _resultobj; | |
3174 | wxComboBox * _arg0; | |
3175 | PyObject * _argo0 = 0; | |
3176 | char *_kwnames[] = { "self", NULL }; | |
3177 | ||
3178 | self = self; | |
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) | |
3180 | return NULL; | |
3181 | if (_argo0) { | |
3182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); | |
3185 | return NULL; | |
3186 | } | |
3187 | } | |
3188 | { | |
474c48f9 | 3189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3190 | wxComboBox_Clear(_arg0); |
c70fd24f | 3191 | |
474c48f9 | 3192 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3193 | if (PyErr_Occurred()) return NULL; |
3194 | } Py_INCREF(Py_None); | |
3195 | _resultobj = Py_None; | |
3196 | return _resultobj; | |
3197 | } | |
3198 | ||
3199 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
3200 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3201 | PyObject * _resultobj; | |
3202 | wxComboBox * _arg0; | |
3203 | int _arg1; | |
3204 | PyObject * _argo0 = 0; | |
3205 | char *_kwnames[] = { "self","n", NULL }; | |
3206 | ||
3207 | self = self; | |
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) | |
3209 | return NULL; | |
3210 | if (_argo0) { | |
3211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); | |
3214 | return NULL; | |
3215 | } | |
3216 | } | |
3217 | { | |
474c48f9 | 3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3219 | wxComboBox_Delete(_arg0,_arg1); |
c70fd24f | 3220 | |
474c48f9 | 3221 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3222 | if (PyErr_Occurred()) return NULL; |
3223 | } Py_INCREF(Py_None); | |
3224 | _resultobj = Py_None; | |
3225 | return _resultobj; | |
3226 | } | |
3227 | ||
3228 | #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
3229 | static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject * _resultobj; | |
3231 | int _result; | |
3232 | wxComboBox * _arg0; | |
3233 | PyObject * _argo0 = 0; | |
3234 | char *_kwnames[] = { "self", NULL }; | |
3235 | ||
3236 | self = self; | |
3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0)) | |
3238 | return NULL; | |
3239 | if (_argo0) { | |
3240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p."); | |
3243 | return NULL; | |
3244 | } | |
3245 | } | |
3246 | { | |
474c48f9 | 3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3248 | _result = (int )wxComboBox_GetCount(_arg0); |
c70fd24f | 3249 | |
474c48f9 | 3250 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3251 | if (PyErr_Occurred()) return NULL; |
3252 | } _resultobj = Py_BuildValue("i",_result); | |
3253 | return _resultobj; | |
3254 | } | |
3255 | ||
3256 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
3257 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3258 | PyObject * _resultobj; | |
3259 | wxString * _result; | |
3260 | wxComboBox * _arg0; | |
3261 | int _arg1; | |
3262 | PyObject * _argo0 = 0; | |
3263 | char *_kwnames[] = { "self","n", NULL }; | |
3264 | ||
3265 | self = self; | |
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) | |
3267 | return NULL; | |
3268 | if (_argo0) { | |
3269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); | |
3272 | return NULL; | |
3273 | } | |
3274 | } | |
3275 | { | |
474c48f9 | 3276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3277 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); |
c70fd24f | 3278 | |
474c48f9 | 3279 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3280 | if (PyErr_Occurred()) return NULL; |
3281 | }{ | |
c8bc7bb8 RD |
3282 | #if wxUSE_UNICODE |
3283 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3284 | #else | |
c70fd24f | 3285 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3286 | #endif |
c70fd24f RD |
3287 | } |
3288 | { | |
3289 | delete _result; | |
3290 | } | |
3291 | return _resultobj; | |
3292 | } | |
3293 | ||
3294 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
3295 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject * _resultobj; | |
3297 | int _result; | |
3298 | wxComboBox * _arg0; | |
3299 | wxString * _arg1; | |
3300 | PyObject * _argo0 = 0; | |
3301 | PyObject * _obj1 = 0; | |
3302 | char *_kwnames[] = { "self","s", NULL }; | |
3303 | ||
3304 | self = self; | |
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) | |
3306 | return NULL; | |
3307 | if (_argo0) { | |
3308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); | |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
3314 | { | |
c8bc7bb8 RD |
3315 | _arg1 = wxString_in_helper(_obj1); |
3316 | if (_arg1 == NULL) | |
c70fd24f | 3317 | return NULL; |
c70fd24f RD |
3318 | } |
3319 | { | |
474c48f9 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3321 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); |
c70fd24f | 3322 | |
474c48f9 | 3323 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3324 | if (PyErr_Occurred()) return NULL; |
3325 | } _resultobj = Py_BuildValue("i",_result); | |
3326 | { | |
3327 | if (_obj1) | |
3328 | delete _arg1; | |
3329 | } | |
3330 | return _resultobj; | |
3331 | } | |
3332 | ||
3333 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3334 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3335 | PyObject * _resultobj; | |
3336 | int _result; | |
3337 | wxComboBox * _arg0; | |
3338 | PyObject * _argo0 = 0; | |
3339 | char *_kwnames[] = { "self", NULL }; | |
3340 | ||
3341 | self = self; | |
3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) | |
3343 | return NULL; | |
3344 | if (_argo0) { | |
3345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); | |
3348 | return NULL; | |
3349 | } | |
3350 | } | |
3351 | { | |
474c48f9 | 3352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3353 | _result = (int )wxComboBox_GetSelection(_arg0); |
c70fd24f | 3354 | |
474c48f9 | 3355 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3356 | if (PyErr_Occurred()) return NULL; |
3357 | } _resultobj = Py_BuildValue("i",_result); | |
3358 | return _resultobj; | |
3359 | } | |
3360 | ||
3361 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
3362 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject * _resultobj; | |
3364 | wxString * _result; | |
3365 | wxComboBox * _arg0; | |
3366 | PyObject * _argo0 = 0; | |
3367 | char *_kwnames[] = { "self", NULL }; | |
3368 | ||
3369 | self = self; | |
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) | |
3371 | return NULL; | |
3372 | if (_argo0) { | |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); | |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
3379 | { | |
474c48f9 | 3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3381 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); |
c70fd24f | 3382 | |
474c48f9 | 3383 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3384 | if (PyErr_Occurred()) return NULL; |
3385 | }{ | |
c8bc7bb8 RD |
3386 | #if wxUSE_UNICODE |
3387 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3388 | #else | |
c70fd24f | 3389 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3390 | #endif |
c70fd24f RD |
3391 | } |
3392 | { | |
3393 | delete _result; | |
3394 | } | |
3395 | return _resultobj; | |
3396 | } | |
3397 | ||
3398 | static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) { | |
3399 | if (clientData) { | |
3400 | wxPyClientData* data = new wxPyClientData(clientData); | |
3401 | self->Append(item, data); | |
3402 | } else | |
3403 | self->Append(item); | |
3404 | } | |
3405 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject * _resultobj; | |
3407 | wxComboBox * _arg0; | |
3408 | wxString * _arg1; | |
3409 | PyObject * _arg2 = (PyObject *) NULL; | |
3410 | PyObject * _argo0 = 0; | |
3411 | PyObject * _obj1 = 0; | |
3412 | PyObject * _obj2 = 0; | |
3413 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
3414 | ||
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | { | |
c8bc7bb8 RD |
3426 | _arg1 = wxString_in_helper(_obj1); |
3427 | if (_arg1 == NULL) | |
c70fd24f | 3428 | return NULL; |
c70fd24f RD |
3429 | } |
3430 | if (_obj2) | |
3431 | { | |
3432 | _arg2 = _obj2; | |
3433 | } | |
3434 | { | |
474c48f9 | 3435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3436 | wxComboBox_Append(_arg0,*_arg1,_arg2); |
c70fd24f | 3437 | |
474c48f9 | 3438 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3439 | if (PyErr_Occurred()) return NULL; |
3440 | } Py_INCREF(Py_None); | |
3441 | _resultobj = Py_None; | |
3442 | { | |
3443 | if (_obj1) | |
3444 | delete _arg1; | |
3445 | } | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
3449 | static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { | |
3450 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
3451 | if (data) { | |
3452 | Py_INCREF(data->m_obj); | |
3453 | return data->m_obj; | |
3454 | } else { | |
3455 | Py_INCREF(Py_None); | |
3456 | return Py_None; | |
3457 | } | |
3458 | } | |
3459 | static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject * _resultobj; | |
3461 | PyObject * _result; | |
3462 | wxComboBox * _arg0; | |
3463 | int _arg1; | |
3464 | PyObject * _argo0 = 0; | |
3465 | char *_kwnames[] = { "self","n", NULL }; | |
3466 | ||
3467 | self = self; | |
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1)) | |
3469 | return NULL; | |
3470 | if (_argo0) { | |
3471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p."); | |
3474 | return NULL; | |
3475 | } | |
3476 | } | |
3477 | { | |
474c48f9 | 3478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3479 | _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1); |
c70fd24f | 3480 | |
474c48f9 | 3481 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3482 | if (PyErr_Occurred()) return NULL; |
3483 | }{ | |
3484 | _resultobj = _result; | |
3485 | } | |
3486 | return _resultobj; | |
3487 | } | |
3488 | ||
3489 | static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { | |
3490 | wxPyClientData* data = new wxPyClientData(clientData); | |
3491 | self->SetClientObject(n, data); | |
3492 | } | |
3493 | static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3494 | PyObject * _resultobj; | |
3495 | wxComboBox * _arg0; | |
3496 | int _arg1; | |
3497 | PyObject * _arg2; | |
3498 | PyObject * _argo0 = 0; | |
3499 | PyObject * _obj2 = 0; | |
3500 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
3501 | ||
3502 | self = self; | |
3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3504 | return NULL; | |
3505 | if (_argo0) { | |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p."); | |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
3512 | { | |
3513 | _arg2 = _obj2; | |
3514 | } | |
3515 | { | |
474c48f9 | 3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3517 | wxComboBox_SetClientData(_arg0,_arg1,_arg2); |
c70fd24f | 3518 | |
474c48f9 | 3519 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3520 | if (PyErr_Occurred()) return NULL; |
3521 | } Py_INCREF(Py_None); | |
3522 | _resultobj = Py_None; | |
3523 | return _resultobj; | |
3524 | } | |
3525 | ||
70551f47 RD |
3526 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3527 | wxGauge *src; | |
3528 | wxControl *dest; | |
3529 | src = (wxGauge *) ptr; | |
3530 | dest = (wxControl *) src; | |
3531 | return (void *) dest; | |
3532 | } | |
3533 | ||
3534 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3535 | wxGauge *src; | |
3536 | wxWindow *dest; | |
3537 | src = (wxGauge *) ptr; | |
3538 | dest = (wxWindow *) src; | |
3539 | return (void *) dest; | |
3540 | } | |
3541 | ||
3542 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3543 | wxGauge *src; | |
3544 | wxEvtHandler *dest; | |
3545 | src = (wxGauge *) ptr; | |
3546 | dest = (wxEvtHandler *) src; | |
3547 | return (void *) dest; | |
3548 | } | |
3549 | ||
9df61a29 RD |
3550 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3551 | wxGauge *src; | |
3552 | wxObject *dest; | |
3553 | src = (wxGauge *) ptr; | |
3554 | dest = (wxObject *) src; | |
3555 | return (void *) dest; | |
3556 | } | |
3557 | ||
70551f47 | 3558 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 3559 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3560 | PyObject * _resultobj; |
3561 | wxGauge * _result; | |
3562 | wxWindow * _arg0; | |
3563 | wxWindowID _arg1; | |
3564 | int _arg2; | |
b68dc582 RD |
3565 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3566 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 3567 | long _arg5 = (long ) wxGA_HORIZONTAL; |
b68dc582 | 3568 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
3569 | char * _arg7 = (char *) "gauge"; |
3570 | PyObject * _argo0 = 0; | |
37f6a977 RD |
3571 | wxPoint temp; |
3572 | PyObject * _obj3 = 0; | |
3573 | wxSize temp0; | |
3574 | PyObject * _obj4 = 0; | |
2d091820 | 3575 | PyObject * _argo6 = 0; |
107e4716 | 3576 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
70551f47 RD |
3577 | char _ptemp[128]; |
3578 | ||
3579 | self = self; | |
37f6a977 | 3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 3581 | return NULL; |
2d091820 RD |
3582 | if (_argo0) { |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
37f6a977 RD |
3589 | if (_obj3) |
3590 | { | |
3591 | _arg3 = &temp; | |
3592 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3593 | return NULL; |
37f6a977 RD |
3594 | } |
3595 | if (_obj4) | |
3596 | { | |
3597 | _arg4 = &temp0; | |
3598 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3599 | return NULL; |
37f6a977 | 3600 | } |
2d091820 RD |
3601 | if (_argo6) { |
3602 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3603 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
3604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3605 | return NULL; | |
3606 | } | |
3607 | } | |
ab9bc19b | 3608 | { |
474c48f9 | 3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3610 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
ab9bc19b | 3611 | |
474c48f9 | 3612 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3613 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3614 | } if (_result) { |
3615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3616 | _resultobj = Py_BuildValue("s",_ptemp); | |
3617 | } else { | |
3618 | Py_INCREF(Py_None); | |
3619 | _resultobj = Py_None; | |
3620 | } | |
70551f47 RD |
3621 | return _resultobj; |
3622 | } | |
3623 | ||
aa2a5b86 RD |
3624 | #define new_wxPreGauge() (new wxGauge()) |
3625 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3626 | PyObject * _resultobj; | |
3627 | wxGauge * _result; | |
3628 | char *_kwnames[] = { NULL }; | |
3629 | char _ptemp[128]; | |
3630 | ||
3631 | self = self; | |
3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3633 | return NULL; | |
3634 | { | |
474c48f9 | 3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3636 | _result = (wxGauge *)new_wxPreGauge(); |
aa2a5b86 | 3637 | |
474c48f9 | 3638 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3639 | if (PyErr_Occurred()) return NULL; |
3640 | } if (_result) { | |
3641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3642 | _resultobj = Py_BuildValue("s",_ptemp); | |
3643 | } else { | |
3644 | Py_INCREF(Py_None); | |
3645 | _resultobj = Py_None; | |
3646 | } | |
3647 | return _resultobj; | |
3648 | } | |
3649 | ||
3650 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3651 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3652 | PyObject * _resultobj; | |
3653 | bool _result; | |
3654 | wxGauge * _arg0; | |
3655 | wxWindow * _arg1; | |
3656 | wxWindowID _arg2; | |
3657 | int _arg3; | |
3658 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3659 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3660 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3661 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3662 | char * _arg8 = (char *) "gauge"; | |
3663 | PyObject * _argo0 = 0; | |
3664 | PyObject * _argo1 = 0; | |
3665 | wxPoint temp; | |
3666 | PyObject * _obj4 = 0; | |
3667 | wxSize temp0; | |
3668 | PyObject * _obj5 = 0; | |
3669 | PyObject * _argo7 = 0; | |
3670 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3671 | ||
3672 | self = self; | |
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3674 | return NULL; | |
3675 | if (_argo0) { | |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | if (_argo1) { | |
3683 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3684 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3686 | return NULL; | |
3687 | } | |
3688 | } | |
3689 | if (_obj4) | |
3690 | { | |
3691 | _arg4 = &temp; | |
3692 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3693 | return NULL; | |
3694 | } | |
3695 | if (_obj5) | |
3696 | { | |
3697 | _arg5 = &temp0; | |
3698 | if (! wxSize_helper(_obj5, &_arg5)) | |
3699 | return NULL; | |
3700 | } | |
3701 | if (_argo7) { | |
3702 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3703 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3705 | return NULL; | |
3706 | } | |
3707 | } | |
3708 | { | |
474c48f9 | 3709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3710 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 3711 | |
474c48f9 | 3712 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3713 | if (PyErr_Occurred()) return NULL; |
3714 | } _resultobj = Py_BuildValue("i",_result); | |
3715 | return _resultobj; | |
3716 | } | |
3717 | ||
70551f47 | 3718 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
107e4716 | 3719 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3720 | PyObject * _resultobj; |
3721 | int _result; | |
3722 | wxGauge * _arg0; | |
2d091820 | 3723 | PyObject * _argo0 = 0; |
107e4716 | 3724 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3725 | |
3726 | self = self; | |
107e4716 | 3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
70551f47 | 3728 | return NULL; |
2d091820 RD |
3729 | if (_argo0) { |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
ab9bc19b | 3736 | { |
474c48f9 | 3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3738 | _result = (int )wxGauge_GetBezelFace(_arg0); |
ab9bc19b | 3739 | |
474c48f9 | 3740 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3741 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3742 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3743 | return _resultobj; |
3744 | } | |
3745 | ||
3746 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 3747 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3748 | PyObject * _resultobj; |
3749 | int _result; | |
3750 | wxGauge * _arg0; | |
2d091820 | 3751 | PyObject * _argo0 = 0; |
107e4716 | 3752 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3753 | |
3754 | self = self; | |
107e4716 | 3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
70551f47 | 3756 | return NULL; |
2d091820 RD |
3757 | if (_argo0) { |
3758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3761 | return NULL; | |
3762 | } | |
3763 | } | |
ab9bc19b | 3764 | { |
474c48f9 | 3765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3766 | _result = (int )wxGauge_GetRange(_arg0); |
ab9bc19b | 3767 | |
474c48f9 | 3768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3769 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3770 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3771 | return _resultobj; |
3772 | } | |
3773 | ||
3774 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
107e4716 | 3775 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3776 | PyObject * _resultobj; |
3777 | int _result; | |
3778 | wxGauge * _arg0; | |
2d091820 | 3779 | PyObject * _argo0 = 0; |
107e4716 | 3780 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3781 | |
3782 | self = self; | |
107e4716 | 3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
70551f47 | 3784 | return NULL; |
2d091820 RD |
3785 | if (_argo0) { |
3786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3789 | return NULL; | |
3790 | } | |
3791 | } | |
ab9bc19b | 3792 | { |
474c48f9 | 3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3794 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
ab9bc19b | 3795 | |
474c48f9 | 3796 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3797 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3798 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3799 | return _resultobj; |
3800 | } | |
3801 | ||
3802 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 3803 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3804 | PyObject * _resultobj; |
3805 | int _result; | |
3806 | wxGauge * _arg0; | |
2d091820 | 3807 | PyObject * _argo0 = 0; |
107e4716 | 3808 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3809 | |
3810 | self = self; | |
107e4716 | 3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
70551f47 | 3812 | return NULL; |
2d091820 RD |
3813 | if (_argo0) { |
3814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
3817 | return NULL; | |
3818 | } | |
3819 | } | |
ab9bc19b | 3820 | { |
474c48f9 | 3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3822 | _result = (int )wxGauge_GetValue(_arg0); |
ab9bc19b | 3823 | |
474c48f9 | 3824 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3825 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3826 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3827 | return _resultobj; |
3828 | } | |
3829 | ||
3830 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
107e4716 | 3831 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3832 | PyObject * _resultobj; |
3833 | wxGauge * _arg0; | |
3834 | int _arg1; | |
2d091820 | 3835 | PyObject * _argo0 = 0; |
107e4716 | 3836 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3837 | |
3838 | self = self; | |
107e4716 | 3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3840 | return NULL; |
2d091820 RD |
3841 | if (_argo0) { |
3842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
3845 | return NULL; | |
3846 | } | |
3847 | } | |
ab9bc19b | 3848 | { |
474c48f9 | 3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3850 | wxGauge_SetBezelFace(_arg0,_arg1); |
ab9bc19b | 3851 | |
474c48f9 | 3852 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3853 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3854 | } Py_INCREF(Py_None); |
70551f47 RD |
3855 | _resultobj = Py_None; |
3856 | return _resultobj; | |
3857 | } | |
3858 | ||
3859 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
107e4716 | 3860 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3861 | PyObject * _resultobj; |
3862 | wxGauge * _arg0; | |
3863 | int _arg1; | |
2d091820 | 3864 | PyObject * _argo0 = 0; |
107e4716 | 3865 | char *_kwnames[] = { "self","range", NULL }; |
70551f47 RD |
3866 | |
3867 | self = self; | |
107e4716 | 3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3869 | return NULL; |
2d091820 RD |
3870 | if (_argo0) { |
3871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
3874 | return NULL; | |
3875 | } | |
3876 | } | |
ab9bc19b | 3877 | { |
474c48f9 | 3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3879 | wxGauge_SetRange(_arg0,_arg1); |
ab9bc19b | 3880 | |
474c48f9 | 3881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3882 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3883 | } Py_INCREF(Py_None); |
70551f47 RD |
3884 | _resultobj = Py_None; |
3885 | return _resultobj; | |
3886 | } | |
3887 | ||
3888 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
107e4716 | 3889 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3890 | PyObject * _resultobj; |
3891 | wxGauge * _arg0; | |
3892 | int _arg1; | |
2d091820 | 3893 | PyObject * _argo0 = 0; |
107e4716 | 3894 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
3895 | |
3896 | self = self; | |
107e4716 | 3897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3898 | return NULL; |
2d091820 RD |
3899 | if (_argo0) { |
3900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
3903 | return NULL; | |
3904 | } | |
3905 | } | |
ab9bc19b | 3906 | { |
474c48f9 | 3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3908 | wxGauge_SetShadowWidth(_arg0,_arg1); |
ab9bc19b | 3909 | |
474c48f9 | 3910 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3911 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3912 | } Py_INCREF(Py_None); |
70551f47 RD |
3913 | _resultobj = Py_None; |
3914 | return _resultobj; | |
3915 | } | |
3916 | ||
3917 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3918 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3919 | PyObject * _resultobj; |
3920 | wxGauge * _arg0; | |
3921 | int _arg1; | |
2d091820 | 3922 | PyObject * _argo0 = 0; |
107e4716 | 3923 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3924 | |
3925 | self = self; | |
107e4716 | 3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3927 | return NULL; |
2d091820 RD |
3928 | if (_argo0) { |
3929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
3932 | return NULL; | |
3933 | } | |
3934 | } | |
ab9bc19b | 3935 | { |
474c48f9 | 3936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3937 | wxGauge_SetValue(_arg0,_arg1); |
ab9bc19b | 3938 | |
474c48f9 | 3939 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3940 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3941 | } Py_INCREF(Py_None); |
70551f47 RD |
3942 | _resultobj = Py_None; |
3943 | return _resultobj; | |
3944 | } | |
3945 | ||
3946 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3947 | wxStaticBox *src; | |
3948 | wxControl *dest; | |
3949 | src = (wxStaticBox *) ptr; | |
3950 | dest = (wxControl *) src; | |
3951 | return (void *) dest; | |
3952 | } | |
3953 | ||
3954 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3955 | wxStaticBox *src; | |
3956 | wxWindow *dest; | |
3957 | src = (wxStaticBox *) ptr; | |
3958 | dest = (wxWindow *) src; | |
3959 | return (void *) dest; | |
3960 | } | |
3961 | ||
3962 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3963 | wxStaticBox *src; | |
3964 | wxEvtHandler *dest; | |
3965 | src = (wxStaticBox *) ptr; | |
3966 | dest = (wxEvtHandler *) src; | |
3967 | return (void *) dest; | |
3968 | } | |
3969 | ||
9df61a29 RD |
3970 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
3971 | wxStaticBox *src; | |
3972 | wxObject *dest; | |
3973 | src = (wxStaticBox *) ptr; | |
3974 | dest = (wxObject *) src; | |
3975 | return (void *) dest; | |
3976 | } | |
3977 | ||
70551f47 | 3978 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 3979 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3980 | PyObject * _resultobj; |
3981 | wxStaticBox * _result; | |
3982 | wxWindow * _arg0; | |
3983 | wxWindowID _arg1; | |
3984 | wxString * _arg2; | |
b68dc582 RD |
3985 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3986 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
3987 | long _arg5 = (long ) 0; |
3988 | char * _arg6 = (char *) "staticBox"; | |
3989 | PyObject * _argo0 = 0; | |
70551f47 | 3990 | PyObject * _obj2 = 0; |
37f6a977 RD |
3991 | wxPoint temp; |
3992 | PyObject * _obj3 = 0; | |
3993 | wxSize temp0; | |
3994 | PyObject * _obj4 = 0; | |
107e4716 | 3995 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
3996 | char _ptemp[128]; |
3997 | ||
3998 | self = self; | |
37f6a977 | 3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 4000 | return NULL; |
2d091820 RD |
4001 | if (_argo0) { |
4002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
4005 | return NULL; | |
4006 | } | |
4007 | } | |
4008 | { | |
c8bc7bb8 RD |
4009 | _arg2 = wxString_in_helper(_obj2); |
4010 | if (_arg2 == NULL) | |
2cd2fac8 | 4011 | return NULL; |
70551f47 | 4012 | } |
37f6a977 RD |
4013 | if (_obj3) |
4014 | { | |
4015 | _arg3 = &temp; | |
4016 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4017 | return NULL; |
37f6a977 RD |
4018 | } |
4019 | if (_obj4) | |
4020 | { | |
4021 | _arg4 = &temp0; | |
4022 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4023 | return NULL; |
37f6a977 | 4024 | } |
ab9bc19b | 4025 | { |
474c48f9 | 4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4027 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
ab9bc19b | 4028 | |
474c48f9 | 4029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4030 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4031 | } if (_result) { |
4032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4033 | _resultobj = Py_BuildValue("s",_ptemp); | |
4034 | } else { | |
4035 | Py_INCREF(Py_None); | |
4036 | _resultobj = Py_None; | |
4037 | } | |
70551f47 RD |
4038 | { |
4039 | if (_obj2) | |
4040 | delete _arg2; | |
4041 | } | |
4042 | return _resultobj; | |
4043 | } | |
4044 | ||
aa2a5b86 RD |
4045 | #define new_wxPreStaticBox() (new wxStaticBox()) |
4046 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject * _resultobj; | |
4048 | wxStaticBox * _result; | |
4049 | char *_kwnames[] = { NULL }; | |
4050 | char _ptemp[128]; | |
4051 | ||
4052 | self = self; | |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
4054 | return NULL; | |
4055 | { | |
474c48f9 | 4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4057 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
aa2a5b86 | 4058 | |
474c48f9 | 4059 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4060 | if (PyErr_Occurred()) return NULL; |
4061 | } if (_result) { | |
4062 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4063 | _resultobj = Py_BuildValue("s",_ptemp); | |
4064 | } else { | |
4065 | Py_INCREF(Py_None); | |
4066 | _resultobj = Py_None; | |
4067 | } | |
4068 | return _resultobj; | |
4069 | } | |
4070 | ||
4071 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4072 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject * _resultobj; | |
4074 | bool _result; | |
4075 | wxStaticBox * _arg0; | |
4076 | wxWindow * _arg1; | |
4077 | wxWindowID _arg2; | |
4078 | wxString * _arg3; | |
4079 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4080 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4081 | long _arg6 = (long ) 0; | |
4082 | char * _arg7 = (char *) "staticBox"; | |
4083 | PyObject * _argo0 = 0; | |
4084 | PyObject * _argo1 = 0; | |
4085 | PyObject * _obj3 = 0; | |
4086 | wxPoint temp; | |
4087 | PyObject * _obj4 = 0; | |
4088 | wxSize temp0; | |
4089 | PyObject * _obj5 = 0; | |
4090 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4091 | ||
4092 | self = self; | |
4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4094 | return NULL; | |
4095 | if (_argo0) { | |
4096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4099 | return NULL; | |
4100 | } | |
4101 | } | |
4102 | if (_argo1) { | |
4103 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4104 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4106 | return NULL; | |
4107 | } | |
4108 | } | |
4109 | { | |
c8bc7bb8 RD |
4110 | _arg3 = wxString_in_helper(_obj3); |
4111 | if (_arg3 == NULL) | |
aa2a5b86 | 4112 | return NULL; |
aa2a5b86 RD |
4113 | } |
4114 | if (_obj4) | |
4115 | { | |
4116 | _arg4 = &temp; | |
4117 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4118 | return NULL; | |
4119 | } | |
4120 | if (_obj5) | |
4121 | { | |
4122 | _arg5 = &temp0; | |
4123 | if (! wxSize_helper(_obj5, &_arg5)) | |
4124 | return NULL; | |
4125 | } | |
4126 | { | |
474c48f9 | 4127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4128 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
aa2a5b86 | 4129 | |
474c48f9 | 4130 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4131 | if (PyErr_Occurred()) return NULL; |
4132 | } _resultobj = Py_BuildValue("i",_result); | |
4133 | { | |
4134 | if (_obj3) | |
4135 | delete _arg3; | |
4136 | } | |
4137 | return _resultobj; | |
4138 | } | |
4139 | ||
d24a34bb RD |
4140 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
4141 | wxStaticLine *src; | |
4142 | wxControl *dest; | |
4143 | src = (wxStaticLine *) ptr; | |
4144 | dest = (wxControl *) src; | |
4145 | return (void *) dest; | |
4146 | } | |
4147 | ||
4148 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4149 | wxStaticLine *src; | |
4150 | wxWindow *dest; | |
4151 | src = (wxStaticLine *) ptr; | |
4152 | dest = (wxWindow *) src; | |
4153 | return (void *) dest; | |
4154 | } | |
4155 | ||
4156 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4157 | wxStaticLine *src; | |
4158 | wxEvtHandler *dest; | |
4159 | src = (wxStaticLine *) ptr; | |
4160 | dest = (wxEvtHandler *) src; | |
4161 | return (void *) dest; | |
4162 | } | |
4163 | ||
9df61a29 RD |
4164 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
4165 | wxStaticLine *src; | |
4166 | wxObject *dest; | |
4167 | src = (wxStaticLine *) ptr; | |
4168 | dest = (wxObject *) src; | |
4169 | return (void *) dest; | |
4170 | } | |
4171 | ||
d24a34bb | 4172 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 4173 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4174 | PyObject * _resultobj; |
4175 | wxStaticLine * _result; | |
4176 | wxWindow * _arg0; | |
4177 | wxWindowID _arg1; | |
b68dc582 RD |
4178 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4179 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
4180 | long _arg4 = (long ) wxLI_HORIZONTAL; |
4181 | char * _arg5 = (char *) "staticLine"; | |
4182 | PyObject * _argo0 = 0; | |
37f6a977 RD |
4183 | wxPoint temp; |
4184 | PyObject * _obj2 = 0; | |
4185 | wxSize temp0; | |
4186 | PyObject * _obj3 = 0; | |
107e4716 | 4187 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d24a34bb RD |
4188 | char _ptemp[128]; |
4189 | ||
4190 | self = self; | |
37f6a977 | 4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
d24a34bb | 4192 | return NULL; |
2d091820 RD |
4193 | if (_argo0) { |
4194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
4196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4197 | return NULL; | |
4198 | } | |
4199 | } | |
37f6a977 RD |
4200 | if (_obj2) |
4201 | { | |
4202 | _arg2 = &temp; | |
4203 | if (! wxPoint_helper(_obj2, &_arg2)) | |
d24a34bb | 4204 | return NULL; |
37f6a977 RD |
4205 | } |
4206 | if (_obj3) | |
4207 | { | |
4208 | _arg3 = &temp0; | |
4209 | if (! wxSize_helper(_obj3, &_arg3)) | |
d24a34bb | 4210 | return NULL; |
37f6a977 | 4211 | } |
d24a34bb | 4212 | { |
474c48f9 | 4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4214 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
d24a34bb | 4215 | |
474c48f9 | 4216 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4217 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4218 | } if (_result) { |
4219 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4220 | _resultobj = Py_BuildValue("s",_ptemp); | |
4221 | } else { | |
4222 | Py_INCREF(Py_None); | |
4223 | _resultobj = Py_None; | |
4224 | } | |
d24a34bb RD |
4225 | return _resultobj; |
4226 | } | |
4227 | ||
aa2a5b86 RD |
4228 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4229 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxStaticLine * _result; | |
4232 | char *_kwnames[] = { NULL }; | |
4233 | char _ptemp[128]; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4237 | return NULL; | |
4238 | { | |
474c48f9 | 4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4240 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
aa2a5b86 | 4241 | |
474c48f9 | 4242 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4243 | if (PyErr_Occurred()) return NULL; |
4244 | } if (_result) { | |
4245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4246 | _resultobj = Py_BuildValue("s",_ptemp); | |
4247 | } else { | |
4248 | Py_INCREF(Py_None); | |
4249 | _resultobj = Py_None; | |
4250 | } | |
4251 | return _resultobj; | |
4252 | } | |
4253 | ||
4254 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4255 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4256 | PyObject * _resultobj; | |
4257 | bool _result; | |
4258 | wxStaticLine * _arg0; | |
4259 | wxWindow * _arg1; | |
4260 | wxWindowID _arg2; | |
4261 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4262 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4263 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4264 | char * _arg6 = (char *) "staticLine"; | |
4265 | PyObject * _argo0 = 0; | |
4266 | PyObject * _argo1 = 0; | |
4267 | wxPoint temp; | |
4268 | PyObject * _obj3 = 0; | |
4269 | wxSize temp0; | |
4270 | PyObject * _obj4 = 0; | |
4271 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4272 | ||
4273 | self = self; | |
4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4275 | return NULL; | |
4276 | if (_argo0) { | |
4277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4280 | return NULL; | |
4281 | } | |
4282 | } | |
4283 | if (_argo1) { | |
4284 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
4290 | if (_obj3) | |
4291 | { | |
4292 | _arg3 = &temp; | |
4293 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4294 | return NULL; | |
4295 | } | |
4296 | if (_obj4) | |
4297 | { | |
4298 | _arg4 = &temp0; | |
4299 | if (! wxSize_helper(_obj4, &_arg4)) | |
4300 | return NULL; | |
4301 | } | |
4302 | { | |
474c48f9 | 4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4304 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 4305 | |
474c48f9 | 4306 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4307 | if (PyErr_Occurred()) return NULL; |
4308 | } _resultobj = Py_BuildValue("i",_result); | |
4309 | return _resultobj; | |
4310 | } | |
4311 | ||
70551f47 RD |
4312 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4313 | wxStaticText *src; | |
4314 | wxControl *dest; | |
4315 | src = (wxStaticText *) ptr; | |
4316 | dest = (wxControl *) src; | |
4317 | return (void *) dest; | |
4318 | } | |
4319 | ||
4320 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4321 | wxStaticText *src; | |
4322 | wxWindow *dest; | |
4323 | src = (wxStaticText *) ptr; | |
4324 | dest = (wxWindow *) src; | |
4325 | return (void *) dest; | |
4326 | } | |
4327 | ||
4328 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4329 | wxStaticText *src; | |
4330 | wxEvtHandler *dest; | |
4331 | src = (wxStaticText *) ptr; | |
4332 | dest = (wxEvtHandler *) src; | |
4333 | return (void *) dest; | |
4334 | } | |
4335 | ||
9df61a29 RD |
4336 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4337 | wxStaticText *src; | |
4338 | wxObject *dest; | |
4339 | src = (wxStaticText *) ptr; | |
4340 | dest = (wxObject *) src; | |
4341 | return (void *) dest; | |
4342 | } | |
4343 | ||
70551f47 | 4344 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4345 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4346 | PyObject * _resultobj; |
4347 | wxStaticText * _result; | |
4348 | wxWindow * _arg0; | |
4349 | wxWindowID _arg1; | |
4350 | wxString * _arg2; | |
b68dc582 RD |
4351 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4352 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
4353 | long _arg5 = (long ) 0; |
4354 | char * _arg6 = (char *) "staticText"; | |
4355 | PyObject * _argo0 = 0; | |
70551f47 | 4356 | PyObject * _obj2 = 0; |
37f6a977 RD |
4357 | wxPoint temp; |
4358 | PyObject * _obj3 = 0; | |
4359 | wxSize temp0; | |
4360 | PyObject * _obj4 = 0; | |
107e4716 | 4361 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4362 | char _ptemp[128]; |
4363 | ||
4364 | self = self; | |
37f6a977 | 4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 4366 | return NULL; |
2d091820 RD |
4367 | if (_argo0) { |
4368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4371 | return NULL; | |
4372 | } | |
4373 | } | |
4374 | { | |
c8bc7bb8 RD |
4375 | _arg2 = wxString_in_helper(_obj2); |
4376 | if (_arg2 == NULL) | |
2cd2fac8 | 4377 | return NULL; |
70551f47 | 4378 | } |
37f6a977 RD |
4379 | if (_obj3) |
4380 | { | |
4381 | _arg3 = &temp; | |
4382 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4383 | return NULL; |
37f6a977 RD |
4384 | } |
4385 | if (_obj4) | |
4386 | { | |
4387 | _arg4 = &temp0; | |
4388 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4389 | return NULL; |
37f6a977 | 4390 | } |
ab9bc19b | 4391 | { |
474c48f9 | 4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4393 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
ab9bc19b | 4394 | |
474c48f9 | 4395 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4396 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4397 | } if (_result) { |
4398 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4399 | _resultobj = Py_BuildValue("s",_ptemp); | |
4400 | } else { | |
4401 | Py_INCREF(Py_None); | |
4402 | _resultobj = Py_None; | |
4403 | } | |
70551f47 RD |
4404 | { |
4405 | if (_obj2) | |
4406 | delete _arg2; | |
4407 | } | |
4408 | return _resultobj; | |
4409 | } | |
4410 | ||
aa2a5b86 RD |
4411 | #define new_wxPreStaticText() (new wxStaticText()) |
4412 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject * _resultobj; | |
4414 | wxStaticText * _result; | |
4415 | char *_kwnames[] = { NULL }; | |
4416 | char _ptemp[128]; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4420 | return NULL; | |
4421 | { | |
474c48f9 | 4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4423 | _result = (wxStaticText *)new_wxPreStaticText(); |
aa2a5b86 | 4424 | |
474c48f9 | 4425 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4426 | if (PyErr_Occurred()) return NULL; |
4427 | } if (_result) { | |
4428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4429 | _resultobj = Py_BuildValue("s",_ptemp); | |
4430 | } else { | |
4431 | Py_INCREF(Py_None); | |
4432 | _resultobj = Py_None; | |
4433 | } | |
4434 | return _resultobj; | |
4435 | } | |
4436 | ||
4437 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4438 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4439 | PyObject * _resultobj; | |
4440 | bool _result; | |
4441 | wxStaticText * _arg0; | |
4442 | wxWindow * _arg1; | |
4443 | wxWindowID _arg2; | |
4444 | wxString * _arg3; | |
4445 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4446 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4447 | long _arg6 = (long ) 0; | |
4448 | char * _arg7 = (char *) "staticText"; | |
4449 | PyObject * _argo0 = 0; | |
4450 | PyObject * _argo1 = 0; | |
4451 | PyObject * _obj3 = 0; | |
4452 | wxPoint temp; | |
4453 | PyObject * _obj4 = 0; | |
4454 | wxSize temp0; | |
4455 | PyObject * _obj5 = 0; | |
4456 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4457 | ||
4458 | self = self; | |
4459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4460 | return NULL; | |
4461 | if (_argo0) { | |
4462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4465 | return NULL; | |
4466 | } | |
4467 | } | |
4468 | if (_argo1) { | |
4469 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4470 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4472 | return NULL; | |
4473 | } | |
4474 | } | |
4475 | { | |
c8bc7bb8 RD |
4476 | _arg3 = wxString_in_helper(_obj3); |
4477 | if (_arg3 == NULL) | |
aa2a5b86 | 4478 | return NULL; |
aa2a5b86 RD |
4479 | } |
4480 | if (_obj4) | |
4481 | { | |
4482 | _arg4 = &temp; | |
4483 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4484 | return NULL; | |
4485 | } | |
4486 | if (_obj5) | |
4487 | { | |
4488 | _arg5 = &temp0; | |
4489 | if (! wxSize_helper(_obj5, &_arg5)) | |
4490 | return NULL; | |
4491 | } | |
4492 | { | |
474c48f9 | 4493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4494 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
aa2a5b86 | 4495 | |
474c48f9 | 4496 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4497 | if (PyErr_Occurred()) return NULL; |
4498 | } _resultobj = Py_BuildValue("i",_result); | |
4499 | { | |
4500 | if (_obj3) | |
4501 | delete _arg3; | |
4502 | } | |
4503 | return _resultobj; | |
4504 | } | |
4505 | ||
70551f47 | 4506 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 4507 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4508 | PyObject * _resultobj; |
4509 | wxString * _result; | |
4510 | wxStaticText * _arg0; | |
2d091820 | 4511 | PyObject * _argo0 = 0; |
107e4716 | 4512 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4513 | |
4514 | self = self; | |
107e4716 | 4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
70551f47 | 4516 | return NULL; |
2d091820 RD |
4517 | if (_argo0) { |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
70551f47 | 4524 | { |
474c48f9 | 4525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4526 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
ab9bc19b | 4527 | |
474c48f9 | 4528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4529 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4530 | }{ |
c8bc7bb8 RD |
4531 | #if wxUSE_UNICODE |
4532 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4533 | #else | |
e02c03a4 | 4534 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4535 | #endif |
70551f47 RD |
4536 | } |
4537 | { | |
4538 | delete _result; | |
4539 | } | |
4540 | return _resultobj; | |
4541 | } | |
4542 | ||
4543 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 4544 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4545 | PyObject * _resultobj; |
4546 | wxStaticText * _arg0; | |
4547 | wxString * _arg1; | |
2d091820 | 4548 | PyObject * _argo0 = 0; |
70551f47 | 4549 | PyObject * _obj1 = 0; |
107e4716 | 4550 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
4551 | |
4552 | self = self; | |
107e4716 | 4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4554 | return NULL; |
2d091820 RD |
4555 | if (_argo0) { |
4556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4559 | return NULL; | |
4560 | } | |
4561 | } | |
4562 | { | |
c8bc7bb8 RD |
4563 | _arg1 = wxString_in_helper(_obj1); |
4564 | if (_arg1 == NULL) | |
2cd2fac8 | 4565 | return NULL; |
70551f47 | 4566 | } |
ab9bc19b | 4567 | { |
474c48f9 | 4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4569 | wxStaticText_SetLabel(_arg0,*_arg1); |
ab9bc19b | 4570 | |
474c48f9 | 4571 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4572 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4573 | } Py_INCREF(Py_None); |
70551f47 RD |
4574 | _resultobj = Py_None; |
4575 | { | |
4576 | if (_obj1) | |
4577 | delete _arg1; | |
4578 | } | |
4579 | return _resultobj; | |
4580 | } | |
4581 | ||
65191ae8 RD |
4582 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4583 | wxListBox *src; | |
4584 | wxControlWithItems *dest; | |
4585 | src = (wxListBox *) ptr; | |
4586 | dest = (wxControlWithItems *) src; | |
4587 | return (void *) dest; | |
4588 | } | |
4589 | ||
70551f47 RD |
4590 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4591 | wxListBox *src; | |
4592 | wxControl *dest; | |
4593 | src = (wxListBox *) ptr; | |
4594 | dest = (wxControl *) src; | |
4595 | return (void *) dest; | |
4596 | } | |
4597 | ||
4598 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4599 | wxListBox *src; | |
4600 | wxWindow *dest; | |
4601 | src = (wxListBox *) ptr; | |
4602 | dest = (wxWindow *) src; | |
4603 | return (void *) dest; | |
4604 | } | |
4605 | ||
4606 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4607 | wxListBox *src; | |
4608 | wxEvtHandler *dest; | |
4609 | src = (wxListBox *) ptr; | |
4610 | dest = (wxEvtHandler *) src; | |
4611 | return (void *) dest; | |
4612 | } | |
4613 | ||
9df61a29 RD |
4614 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4615 | wxListBox *src; | |
4616 | wxObject *dest; | |
4617 | src = (wxListBox *) ptr; | |
4618 | dest = (wxObject *) src; | |
4619 | return (void *) dest; | |
4620 | } | |
4621 | ||
aa2a5b86 RD |
4622 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4623 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject * _resultobj; | |
4625 | wxListBox * _result; | |
4626 | wxWindow * _arg0; | |
4627 | wxWindowID _arg1; | |
4628 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4629 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4630 | int _arg4; | |
4631 | wxString * _arg5 = (wxString *) NULL; | |
4632 | long _arg6 = (long ) 0; | |
4633 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4634 | char * _arg8 = (char *) "listBox"; | |
4635 | PyObject * _argo0 = 0; | |
4636 | wxPoint temp; | |
4637 | PyObject * _obj2 = 0; | |
4638 | wxSize temp0; | |
4639 | PyObject * _obj3 = 0; | |
4640 | PyObject * _obj5 = 0; | |
4641 | PyObject * _argo7 = 0; | |
4642 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4643 | char _ptemp[128]; | |
4644 | ||
4645 | self = self; | |
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4647 | return NULL; | |
4648 | if (_argo0) { | |
4649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4652 | return NULL; | |
4653 | } | |
4654 | } | |
4655 | if (_obj2) | |
4656 | { | |
4657 | _arg2 = &temp; | |
4658 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4659 | return NULL; | |
4660 | } | |
4661 | if (_obj3) | |
4662 | { | |
4663 | _arg3 = &temp0; | |
4664 | if (! wxSize_helper(_obj3, &_arg3)) | |
4665 | return NULL; | |
4666 | } | |
4667 | if (_obj5) | |
4668 | { | |
4669 | _arg5 = wxString_LIST_helper(_obj5); | |
4670 | if (_arg5 == NULL) { | |
4671 | return NULL; | |
4672 | } | |
4673 | } | |
4674 | if (_argo7) { | |
4675 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
4681 | { | |
4682 | if (_obj5) { | |
4683 | _arg4 = PyList_Size(_obj5); | |
4684 | } | |
4685 | else { | |
4686 | _arg4 = 0; | |
4687 | } | |
4688 | } | |
4689 | { | |
474c48f9 | 4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4691 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 4692 | |
474c48f9 | 4693 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4694 | if (PyErr_Occurred()) return NULL; |
4695 | } if (_result) { | |
4696 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4697 | _resultobj = Py_BuildValue("s",_ptemp); | |
4698 | } else { | |
4699 | Py_INCREF(Py_None); | |
4700 | _resultobj = Py_None; | |
4701 | } | |
4702 | { | |
4703 | delete [] _arg5; | |
4704 | } | |
4705 | return _resultobj; | |
4706 | } | |
4707 | ||
4708 | #define new_wxPreListBox() (new wxListBox()) | |
4709 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4710 | PyObject * _resultobj; | |
4711 | wxListBox * _result; | |
4712 | char *_kwnames[] = { NULL }; | |
4713 | char _ptemp[128]; | |
4714 | ||
4715 | self = self; | |
4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4717 | return NULL; | |
4718 | { | |
474c48f9 | 4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4720 | _result = (wxListBox *)new_wxPreListBox(); |
aa2a5b86 | 4721 | |
474c48f9 | 4722 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4723 | if (PyErr_Occurred()) return NULL; |
4724 | } if (_result) { | |
4725 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4726 | _resultobj = Py_BuildValue("s",_ptemp); | |
4727 | } else { | |
4728 | Py_INCREF(Py_None); | |
4729 | _resultobj = Py_None; | |
4730 | } | |
4731 | return _resultobj; | |
4732 | } | |
4733 | ||
4734 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4735 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4736 | PyObject * _resultobj; |
aa2a5b86 RD |
4737 | bool _result; |
4738 | wxListBox * _arg0; | |
4739 | wxWindow * _arg1; | |
4740 | wxWindowID _arg2; | |
4741 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4742 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4743 | int _arg5; | |
4744 | wxString * _arg6 = (wxString *) NULL; | |
4745 | long _arg7 = (long ) 0; | |
4746 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4747 | char * _arg9 = (char *) "listBox"; | |
2d091820 | 4748 | PyObject * _argo0 = 0; |
aa2a5b86 | 4749 | PyObject * _argo1 = 0; |
37f6a977 | 4750 | wxPoint temp; |
37f6a977 | 4751 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
4752 | wxSize temp0; |
4753 | PyObject * _obj4 = 0; | |
4754 | PyObject * _obj6 = 0; | |
4755 | PyObject * _argo8 = 0; | |
4756 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
70551f47 RD |
4757 | |
4758 | self = self; | |
aa2a5b86 | 4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 4760 | return NULL; |
2d091820 RD |
4761 | if (_argo0) { |
4762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
4763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
4764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
70551f47 RD |
4765 | return NULL; |
4766 | } | |
4767 | } | |
aa2a5b86 RD |
4768 | if (_argo1) { |
4769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4772 | return NULL; | |
4773 | } | |
4774 | } | |
4775 | if (_obj3) | |
37f6a977 | 4776 | { |
aa2a5b86 RD |
4777 | _arg3 = &temp; |
4778 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4779 | return NULL; |
37f6a977 | 4780 | } |
aa2a5b86 | 4781 | if (_obj4) |
37f6a977 | 4782 | { |
aa2a5b86 RD |
4783 | _arg4 = &temp0; |
4784 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4785 | return NULL; |
37f6a977 | 4786 | } |
aa2a5b86 | 4787 | if (_obj6) |
70551f47 | 4788 | { |
aa2a5b86 RD |
4789 | _arg6 = wxString_LIST_helper(_obj6); |
4790 | if (_arg6 == NULL) { | |
70551f47 RD |
4791 | return NULL; |
4792 | } | |
4793 | } | |
aa2a5b86 RD |
4794 | if (_argo8) { |
4795 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4796 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
70551f47 RD |
4798 | return NULL; |
4799 | } | |
4800 | } | |
4801 | { | |
aa2a5b86 RD |
4802 | if (_obj6) { |
4803 | _arg5 = PyList_Size(_obj6); | |
ab9bc19b RD |
4804 | } |
4805 | else { | |
aa2a5b86 | 4806 | _arg5 = 0; |
ab9bc19b | 4807 | } |
70551f47 | 4808 | } |
ab9bc19b | 4809 | { |
474c48f9 | 4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4811 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b | 4812 | |
474c48f9 | 4813 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4814 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 4815 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 4816 | { |
aa2a5b86 | 4817 | delete [] _arg6; |
70551f47 RD |
4818 | } |
4819 | return _resultobj; | |
4820 | } | |
4821 | ||
70551f47 | 4822 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
107e4716 | 4823 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4824 | PyObject * _resultobj; |
4825 | wxListBox * _arg0; | |
2d091820 | 4826 | PyObject * _argo0 = 0; |
107e4716 | 4827 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4828 | |
4829 | self = self; | |
107e4716 | 4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
70551f47 | 4831 | return NULL; |
2d091820 RD |
4832 | if (_argo0) { |
4833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
4836 | return NULL; | |
4837 | } | |
4838 | } | |
ab9bc19b | 4839 | { |
474c48f9 | 4840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4841 | wxListBox_Clear(_arg0); |
ab9bc19b | 4842 | |
474c48f9 | 4843 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4844 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4845 | } Py_INCREF(Py_None); |
70551f47 RD |
4846 | _resultobj = Py_None; |
4847 | return _resultobj; | |
4848 | } | |
4849 | ||
70551f47 | 4850 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
107e4716 | 4851 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4852 | PyObject * _resultobj; |
4853 | wxListBox * _arg0; | |
4854 | int _arg1; | |
2d091820 | 4855 | PyObject * _argo0 = 0; |
107e4716 | 4856 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
4857 | |
4858 | self = self; | |
107e4716 | 4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4860 | return NULL; |
2d091820 RD |
4861 | if (_argo0) { |
4862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
ab9bc19b | 4868 | { |
474c48f9 | 4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4870 | wxListBox_Deselect(_arg0,_arg1); |
ab9bc19b | 4871 | |
474c48f9 | 4872 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4873 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4874 | } Py_INCREF(Py_None); |
70551f47 RD |
4875 | _resultobj = Py_None; |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
ab9bc19b RD |
4879 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
4880 | wxArrayInt lst; | |
4881 | self->GetSelections(lst); | |
4882 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 4883 | for(size_t i=0; i<lst.GetCount(); i++) { |
ab9bc19b RD |
4884 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
4885 | } | |
4886 | return tup; | |
4887 | } | |
107e4716 | 4888 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
4889 | PyObject * _resultobj; |
4890 | PyObject * _result; | |
4891 | wxListBox * _arg0; | |
2d091820 | 4892 | PyObject * _argo0 = 0; |
107e4716 | 4893 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
4894 | |
4895 | self = self; | |
107e4716 | 4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
ab9bc19b | 4897 | return NULL; |
2d091820 RD |
4898 | if (_argo0) { |
4899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
ab9bc19b RD |
4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
4902 | return NULL; | |
4903 | } | |
4904 | } | |
4905 | { | |
474c48f9 | 4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4907 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
ab9bc19b | 4908 | |
474c48f9 | 4909 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4910 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
4911 | }{ |
4912 | _resultobj = _result; | |
4913 | } | |
70551f47 RD |
4914 | return _resultobj; |
4915 | } | |
4916 | ||
37f6a977 RD |
4917 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4918 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject * _resultobj; | |
4920 | wxListBox * _arg0; | |
4921 | int _arg1; | |
4922 | wxString * _arg2; | |
4923 | int _arg3; | |
4924 | PyObject * _argo0 = 0; | |
4925 | PyObject * _obj2 = 0; | |
e02c03a4 | 4926 | char *_kwnames[] = { "self","choices","pos", NULL }; |
37f6a977 RD |
4927 | |
4928 | self = self; | |
4929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4930 | return NULL; | |
4931 | if (_argo0) { | |
4932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4935 | return NULL; | |
4936 | } | |
4937 | } | |
4938 | { | |
4939 | _arg2 = wxString_LIST_helper(_obj2); | |
4940 | if (_arg2 == NULL) { | |
4941 | return NULL; | |
4942 | } | |
4943 | } | |
4944 | { | |
4945 | if (_obj2) { | |
4946 | _arg1 = PyList_Size(_obj2); | |
4947 | } | |
4948 | else { | |
4949 | _arg1 = 0; | |
4950 | } | |
4951 | } | |
4952 | { | |
474c48f9 | 4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4954 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
37f6a977 | 4955 | |
474c48f9 | 4956 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4957 | if (PyErr_Occurred()) return NULL; |
37f6a977 RD |
4958 | } Py_INCREF(Py_None); |
4959 | _resultobj = Py_None; | |
4960 | { | |
4961 | delete [] _arg2; | |
4962 | } | |
4963 | return _resultobj; | |
4964 | } | |
4965 | ||
2c8a649d RD |
4966 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
4967 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4968 | PyObject * _resultobj; | |
4969 | bool _result; | |
4970 | wxListBox * _arg0; | |
4971 | int _arg1; | |
4972 | PyObject * _argo0 = 0; | |
4973 | char *_kwnames[] = { "self","n", NULL }; | |
4974 | ||
4975 | self = self; | |
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 4977 | return NULL; |
2d091820 RD |
4978 | if (_argo0) { |
4979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
2c8a649d | 4981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); |
70551f47 RD |
4982 | return NULL; |
4983 | } | |
4984 | } | |
ab9bc19b | 4985 | { |
474c48f9 | 4986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4987 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
ab9bc19b | 4988 | |
474c48f9 | 4989 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4990 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4991 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4992 | return _resultobj; |
4993 | } | |
4994 | ||
4995 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
107e4716 | 4996 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4997 | PyObject * _resultobj; |
4998 | bool _result; | |
4999 | wxListBox * _arg0; | |
5000 | int _arg1; | |
2d091820 | 5001 | PyObject * _argo0 = 0; |
107e4716 | 5002 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5003 | |
5004 | self = self; | |
107e4716 | 5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5006 | return NULL; |
2d091820 RD |
5007 | if (_argo0) { |
5008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
5011 | return NULL; | |
5012 | } | |
5013 | } | |
ab9bc19b | 5014 | { |
474c48f9 | 5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5016 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
ab9bc19b | 5017 | |
474c48f9 | 5018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5019 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5020 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5021 | return _resultobj; |
5022 | } | |
5023 | ||
5024 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
107e4716 | 5025 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5026 | PyObject * _resultobj; |
5027 | wxListBox * _arg0; | |
5028 | int _arg1; | |
5029 | wxString * _arg2; | |
2d091820 | 5030 | PyObject * _argo0 = 0; |
70551f47 | 5031 | PyObject * _obj2 = 0; |
e02c03a4 | 5032 | char *_kwnames[] = { "self","choices", NULL }; |
70551f47 RD |
5033 | |
5034 | self = self; | |
107e4716 | 5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
70551f47 | 5036 | return NULL; |
2d091820 RD |
5037 | if (_argo0) { |
5038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
5041 | return NULL; | |
5042 | } | |
5043 | } | |
5044 | if (_obj2) | |
5045 | { | |
5046 | _arg2 = wxString_LIST_helper(_obj2); | |
5047 | if (_arg2 == NULL) { | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | { | |
ab9bc19b RD |
5052 | if (_obj2) { |
5053 | _arg1 = PyList_Size(_obj2); | |
5054 | } | |
5055 | else { | |
5056 | _arg1 = 0; | |
5057 | } | |
70551f47 | 5058 | } |
ab9bc19b | 5059 | { |
474c48f9 | 5060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5061 | wxListBox_Set(_arg0,_arg1,_arg2); |
ab9bc19b | 5062 | |
474c48f9 | 5063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5064 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5065 | } Py_INCREF(Py_None); |
70551f47 RD |
5066 | _resultobj = Py_None; |
5067 | { | |
5068 | delete [] _arg2; | |
5069 | } | |
5070 | return _resultobj; | |
5071 | } | |
5072 | ||
5073 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5074 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5075 | PyObject * _resultobj; |
5076 | wxListBox * _arg0; | |
5077 | int _arg1; | |
2d091820 | 5078 | PyObject * _argo0 = 0; |
107e4716 | 5079 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5080 | |
5081 | self = self; | |
107e4716 | 5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5083 | return NULL; |
2d091820 RD |
5084 | if (_argo0) { |
5085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
5088 | return NULL; | |
5089 | } | |
5090 | } | |
ab9bc19b | 5091 | { |
474c48f9 | 5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5093 | wxListBox_SetFirstItem(_arg0,_arg1); |
ab9bc19b | 5094 | |
474c48f9 | 5095 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5096 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5097 | } Py_INCREF(Py_None); |
70551f47 RD |
5098 | _resultobj = Py_None; |
5099 | return _resultobj; | |
5100 | } | |
5101 | ||
5102 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5103 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5104 | PyObject * _resultobj; |
5105 | wxListBox * _arg0; | |
5106 | wxString * _arg1; | |
2d091820 | 5107 | PyObject * _argo0 = 0; |
70551f47 | 5108 | PyObject * _obj1 = 0; |
107e4716 | 5109 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
5110 | |
5111 | self = self; | |
107e4716 | 5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5113 | return NULL; |
2d091820 RD |
5114 | if (_argo0) { |
5115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
5118 | return NULL; | |
5119 | } | |
5120 | } | |
5121 | { | |
c8bc7bb8 RD |
5122 | _arg1 = wxString_in_helper(_obj1); |
5123 | if (_arg1 == NULL) | |
2cd2fac8 | 5124 | return NULL; |
70551f47 | 5125 | } |
ab9bc19b | 5126 | { |
474c48f9 | 5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5128 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
ab9bc19b | 5129 | |
474c48f9 | 5130 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5131 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5132 | } Py_INCREF(Py_None); |
70551f47 RD |
5133 | _resultobj = Py_None; |
5134 | { | |
5135 | if (_obj1) | |
5136 | delete _arg1; | |
5137 | } | |
5138 | return _resultobj; | |
5139 | } | |
5140 | ||
5141 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5142 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5143 | PyObject * _resultobj; |
5144 | wxListBox * _arg0; | |
5145 | int _arg1; | |
2d091820 RD |
5146 | bool _arg2 = (bool ) TRUE; |
5147 | PyObject * _argo0 = 0; | |
5148 | int tempbool2 = (int) TRUE; | |
107e4716 | 5149 | char *_kwnames[] = { "self","n","select", NULL }; |
70551f47 RD |
5150 | |
5151 | self = self; | |
107e4716 | 5152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5153 | return NULL; |
2d091820 RD |
5154 | if (_argo0) { |
5155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5158 | return NULL; | |
5159 | } | |
5160 | } | |
5161 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5162 | { |
474c48f9 | 5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5164 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 5165 | |
474c48f9 | 5166 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5167 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5168 | } Py_INCREF(Py_None); |
70551f47 RD |
5169 | _resultobj = Py_None; |
5170 | return _resultobj; | |
5171 | } | |
5172 | ||
5173 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
107e4716 | 5174 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5175 | PyObject * _resultobj; |
5176 | wxListBox * _arg0; | |
5177 | int _arg1; | |
5178 | wxString * _arg2; | |
2d091820 | 5179 | PyObject * _argo0 = 0; |
70551f47 | 5180 | PyObject * _obj2 = 0; |
107e4716 | 5181 | char *_kwnames[] = { "self","n","string", NULL }; |
70551f47 RD |
5182 | |
5183 | self = self; | |
107e4716 | 5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 5185 | return NULL; |
2d091820 RD |
5186 | if (_argo0) { |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5190 | return NULL; | |
5191 | } | |
5192 | } | |
5193 | { | |
c8bc7bb8 RD |
5194 | _arg2 = wxString_in_helper(_obj2); |
5195 | if (_arg2 == NULL) | |
2cd2fac8 | 5196 | return NULL; |
70551f47 | 5197 | } |
ab9bc19b | 5198 | { |
474c48f9 | 5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5200 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
ab9bc19b | 5201 | |
474c48f9 | 5202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5203 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5204 | } Py_INCREF(Py_None); |
70551f47 RD |
5205 | _resultobj = Py_None; |
5206 | { | |
5207 | if (_obj2) | |
5208 | delete _arg2; | |
5209 | } | |
5210 | return _resultobj; | |
5211 | } | |
5212 | ||
5213 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5214 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5215 | PyObject * _resultobj; |
5216 | wxListBox * _arg0; | |
5217 | wxString * _arg1; | |
2d091820 RD |
5218 | bool _arg2 = (bool ) TRUE; |
5219 | PyObject * _argo0 = 0; | |
70551f47 | 5220 | PyObject * _obj1 = 0; |
2d091820 | 5221 | int tempbool2 = (int) TRUE; |
107e4716 | 5222 | char *_kwnames[] = { "self","string","select", NULL }; |
70551f47 RD |
5223 | |
5224 | self = self; | |
107e4716 | 5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 5226 | return NULL; |
2d091820 RD |
5227 | if (_argo0) { |
5228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5231 | return NULL; | |
5232 | } | |
5233 | } | |
5234 | { | |
c8bc7bb8 RD |
5235 | _arg1 = wxString_in_helper(_obj1); |
5236 | if (_arg1 == NULL) | |
70551f47 | 5237 | return NULL; |
70551f47 RD |
5238 | } |
5239 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5240 | { |
474c48f9 | 5241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5242 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
ab9bc19b | 5243 | |
474c48f9 | 5244 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5245 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5246 | } Py_INCREF(Py_None); |
70551f47 RD |
5247 | _resultobj = Py_None; |
5248 | { | |
5249 | if (_obj1) | |
5250 | delete _arg1; | |
5251 | } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
c95e68d8 RD |
5255 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5256 | wxCheckListBox *src; | |
5257 | wxListBox *dest; | |
5258 | src = (wxCheckListBox *) ptr; | |
5259 | dest = (wxListBox *) src; | |
5260 | return (void *) dest; | |
5261 | } | |
5262 | ||
65191ae8 RD |
5263 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5264 | wxCheckListBox *src; | |
5265 | wxControlWithItems *dest; | |
5266 | src = (wxCheckListBox *) ptr; | |
5267 | dest = (wxControlWithItems *) src; | |
5268 | return (void *) dest; | |
5269 | } | |
5270 | ||
c95e68d8 RD |
5271 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5272 | wxCheckListBox *src; | |
5273 | wxControl *dest; | |
5274 | src = (wxCheckListBox *) ptr; | |
5275 | dest = (wxControl *) src; | |
5276 | return (void *) dest; | |
5277 | } | |
5278 | ||
5279 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5280 | wxCheckListBox *src; | |
5281 | wxWindow *dest; | |
5282 | src = (wxCheckListBox *) ptr; | |
5283 | dest = (wxWindow *) src; | |
5284 | return (void *) dest; | |
5285 | } | |
5286 | ||
5287 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5288 | wxCheckListBox *src; | |
5289 | wxEvtHandler *dest; | |
5290 | src = (wxCheckListBox *) ptr; | |
5291 | dest = (wxEvtHandler *) src; | |
5292 | return (void *) dest; | |
5293 | } | |
5294 | ||
9df61a29 RD |
5295 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5296 | wxCheckListBox *src; | |
5297 | wxObject *dest; | |
5298 | src = (wxCheckListBox *) ptr; | |
5299 | dest = (wxObject *) src; | |
5300 | return (void *) dest; | |
5301 | } | |
5302 | ||
c95e68d8 | 5303 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 5304 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5305 | PyObject * _resultobj; |
5306 | wxCheckListBox * _result; | |
5307 | wxWindow * _arg0; | |
5308 | wxWindowID _arg1; | |
b68dc582 RD |
5309 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5310 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
5311 | int _arg4 = (int ) 0; |
5312 | wxString * _arg5 = (wxString *) NULL; | |
5313 | long _arg6 = (long ) 0; | |
b68dc582 | 5314 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
5315 | char * _arg8 = (char *) "listBox"; |
5316 | PyObject * _argo0 = 0; | |
37f6a977 RD |
5317 | wxPoint temp; |
5318 | PyObject * _obj2 = 0; | |
5319 | wxSize temp0; | |
5320 | PyObject * _obj3 = 0; | |
c95e68d8 | 5321 | PyObject * _obj5 = 0; |
2d091820 | 5322 | PyObject * _argo7 = 0; |
e02c03a4 | 5323 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
c95e68d8 RD |
5324 | char _ptemp[128]; |
5325 | ||
5326 | self = self; | |
37f6a977 | 5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) |
c95e68d8 | 5328 | return NULL; |
2d091820 RD |
5329 | if (_argo0) { |
5330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
5332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5333 | return NULL; | |
5334 | } | |
5335 | } | |
37f6a977 RD |
5336 | if (_obj2) |
5337 | { | |
5338 | _arg2 = &temp; | |
5339 | if (! wxPoint_helper(_obj2, &_arg2)) | |
c95e68d8 | 5340 | return NULL; |
37f6a977 RD |
5341 | } |
5342 | if (_obj3) | |
5343 | { | |
5344 | _arg3 = &temp0; | |
5345 | if (! wxSize_helper(_obj3, &_arg3)) | |
c95e68d8 | 5346 | return NULL; |
37f6a977 | 5347 | } |
c95e68d8 RD |
5348 | if (_obj5) |
5349 | { | |
5350 | _arg5 = wxString_LIST_helper(_obj5); | |
5351 | if (_arg5 == NULL) { | |
5352 | return NULL; | |
5353 | } | |
5354 | } | |
2d091820 RD |
5355 | if (_argo7) { |
5356 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5357 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
c95e68d8 RD |
5358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5359 | return NULL; | |
5360 | } | |
5361 | } | |
5362 | { | |
ab9bc19b RD |
5363 | if (_obj5) { |
5364 | _arg4 = PyList_Size(_obj5); | |
5365 | } | |
5366 | else { | |
5367 | _arg4 = 0; | |
5368 | } | |
c95e68d8 | 5369 | } |
ab9bc19b | 5370 | { |
474c48f9 | 5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5372 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
ab9bc19b | 5373 | |
474c48f9 | 5374 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5375 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5376 | } if (_result) { |
5377 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5378 | _resultobj = Py_BuildValue("s",_ptemp); | |
5379 | } else { | |
5380 | Py_INCREF(Py_None); | |
5381 | _resultobj = Py_None; | |
5382 | } | |
c95e68d8 RD |
5383 | { |
5384 | delete [] _arg5; | |
5385 | } | |
5386 | return _resultobj; | |
5387 | } | |
5388 | ||
aa2a5b86 RD |
5389 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5390 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject * _resultobj; | |
5392 | wxCheckListBox * _result; | |
5393 | char *_kwnames[] = { NULL }; | |
5394 | char _ptemp[128]; | |
5395 | ||
5396 | self = self; | |
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5398 | return NULL; | |
5399 | { | |
474c48f9 | 5400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5401 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
aa2a5b86 | 5402 | |
474c48f9 | 5403 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5404 | if (PyErr_Occurred()) return NULL; |
5405 | } if (_result) { | |
5406 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5407 | _resultobj = Py_BuildValue("s",_ptemp); | |
5408 | } else { | |
5409 | Py_INCREF(Py_None); | |
5410 | _resultobj = Py_None; | |
5411 | } | |
5412 | return _resultobj; | |
5413 | } | |
5414 | ||
5415 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5416 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5417 | PyObject * _resultobj; | |
5418 | bool _result; | |
5419 | wxCheckListBox * _arg0; | |
5420 | wxWindow * _arg1; | |
5421 | wxWindowID _arg2; | |
5422 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5423 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5424 | int _arg5 = (int ) 0; | |
5425 | wxString * _arg6 = (wxString *) NULL; | |
5426 | long _arg7 = (long ) 0; | |
5427 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5428 | char * _arg9 = (char *) "listBox"; | |
5429 | PyObject * _argo0 = 0; | |
5430 | PyObject * _argo1 = 0; | |
5431 | wxPoint temp; | |
5432 | PyObject * _obj3 = 0; | |
5433 | wxSize temp0; | |
5434 | PyObject * _obj4 = 0; | |
5435 | PyObject * _obj6 = 0; | |
5436 | PyObject * _argo8 = 0; | |
5437 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5438 | ||
5439 | self = self; | |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5441 | return NULL; | |
5442 | if (_argo0) { | |
5443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | if (_argo1) { | |
5450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5453 | return NULL; | |
5454 | } | |
5455 | } | |
5456 | if (_obj3) | |
5457 | { | |
5458 | _arg3 = &temp; | |
5459 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5460 | return NULL; | |
5461 | } | |
5462 | if (_obj4) | |
5463 | { | |
5464 | _arg4 = &temp0; | |
5465 | if (! wxSize_helper(_obj4, &_arg4)) | |
5466 | return NULL; | |
5467 | } | |
5468 | if (_obj6) | |
5469 | { | |
5470 | _arg6 = wxString_LIST_helper(_obj6); | |
5471 | if (_arg6 == NULL) { | |
5472 | return NULL; | |
5473 | } | |
5474 | } | |
5475 | if (_argo8) { | |
5476 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
5482 | { | |
5483 | if (_obj6) { | |
5484 | _arg5 = PyList_Size(_obj6); | |
5485 | } | |
5486 | else { | |
5487 | _arg5 = 0; | |
5488 | } | |
5489 | } | |
5490 | { | |
474c48f9 | 5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5492 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
aa2a5b86 | 5493 | |
474c48f9 | 5494 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5495 | if (PyErr_Occurred()) return NULL; |
5496 | } _resultobj = Py_BuildValue("i",_result); | |
5497 | { | |
5498 | delete [] _arg6; | |
5499 | } | |
5500 | return _resultobj; | |
5501 | } | |
5502 | ||
c95e68d8 | 5503 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
107e4716 | 5504 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5505 | PyObject * _resultobj; |
5506 | bool _result; | |
5507 | wxCheckListBox * _arg0; | |
5508 | int _arg1; | |
2d091820 | 5509 | PyObject * _argo0 = 0; |
107e4716 | 5510 | char *_kwnames[] = { "self","uiIndex", NULL }; |
c95e68d8 RD |
5511 | |
5512 | self = self; | |
107e4716 | 5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5514 | return NULL; |
2d091820 RD |
5515 | if (_argo0) { |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
ab9bc19b | 5522 | { |
474c48f9 | 5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5524 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
ab9bc19b | 5525 | |
474c48f9 | 5526 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5527 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5528 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5529 | return _resultobj; |
5530 | } | |
5531 | ||
5532 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 5533 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5534 | PyObject * _resultobj; |
5535 | wxCheckListBox * _arg0; | |
5536 | int _arg1; | |
d29aba2f | 5537 | int _arg2 = (int ) TRUE; |
2d091820 | 5538 | PyObject * _argo0 = 0; |
107e4716 | 5539 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
c95e68d8 RD |
5540 | |
5541 | self = self; | |
d29aba2f | 5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 5543 | return NULL; |
2d091820 RD |
5544 | if (_argo0) { |
5545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5548 | return NULL; | |
5549 | } | |
5550 | } | |
ab9bc19b | 5551 | { |
474c48f9 | 5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5553 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
ab9bc19b | 5554 | |
474c48f9 | 5555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5556 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5557 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5558 | _resultobj = Py_None; |
5559 | return _resultobj; | |
5560 | } | |
5561 | ||
d29aba2f RD |
5562 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5563 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject * _resultobj; | |
5565 | wxCheckListBox * _arg0; | |
5566 | int _arg1; | |
5567 | wxString * _arg2; | |
5568 | int _arg3; | |
5569 | PyObject * _argo0 = 0; | |
5570 | PyObject * _obj2 = 0; | |
e02c03a4 | 5571 | char *_kwnames[] = { "self","choices","pos", NULL }; |
d29aba2f RD |
5572 | |
5573 | self = self; | |
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5575 | return NULL; | |
5576 | if (_argo0) { | |
5577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5580 | return NULL; | |
5581 | } | |
5582 | } | |
5583 | { | |
5584 | _arg2 = wxString_LIST_helper(_obj2); | |
5585 | if (_arg2 == NULL) { | |
5586 | return NULL; | |
5587 | } | |
5588 | } | |
5589 | { | |
5590 | if (_obj2) { | |
5591 | _arg1 = PyList_Size(_obj2); | |
5592 | } | |
5593 | else { | |
5594 | _arg1 = 0; | |
5595 | } | |
5596 | } | |
5597 | { | |
474c48f9 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5599 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
d29aba2f | 5600 | |
474c48f9 | 5601 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5602 | if (PyErr_Occurred()) return NULL; |
d29aba2f RD |
5603 | } Py_INCREF(Py_None); |
5604 | _resultobj = Py_None; | |
5605 | { | |
5606 | delete [] _arg2; | |
5607 | } | |
5608 | return _resultobj; | |
5609 | } | |
5610 | ||
c95e68d8 | 5611 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
107e4716 | 5612 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5613 | PyObject * _resultobj; |
5614 | int _result; | |
5615 | wxCheckListBox * _arg0; | |
2d091820 | 5616 | PyObject * _argo0 = 0; |
107e4716 | 5617 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
5618 | |
5619 | self = self; | |
107e4716 | 5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
c95e68d8 | 5621 | return NULL; |
2d091820 RD |
5622 | if (_argo0) { |
5623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
ab9bc19b | 5629 | { |
474c48f9 | 5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5631 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
ab9bc19b | 5632 | |
474c48f9 | 5633 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5634 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5635 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5636 | return _resultobj; |
5637 | } | |
5638 | ||
9d6da64a RD |
5639 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5640 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject * _resultobj; | |
5642 | wxTextAttr * _result; | |
5643 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5644 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5645 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5646 | wxColour temp; | |
5647 | PyObject * _obj0 = 0; | |
5648 | wxColour temp0; | |
5649 | PyObject * _obj1 = 0; | |
5650 | PyObject * _argo2 = 0; | |
5651 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5652 | char _ptemp[128]; | |
5653 | ||
5654 | self = self; | |
5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5656 | return NULL; | |
5657 | if (_obj0) | |
5658 | { | |
5659 | _arg0 = &temp; | |
5660 | if (! wxColour_helper(_obj0, &_arg0)) | |
5661 | return NULL; | |
5662 | } | |
5663 | if (_obj1) | |
5664 | { | |
5665 | _arg1 = &temp0; | |
5666 | if (! wxColour_helper(_obj1, &_arg1)) | |
5667 | return NULL; | |
5668 | } | |
5669 | if (_argo2) { | |
5670 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5671 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5673 | return NULL; | |
5674 | } | |
5675 | } | |
5676 | { | |
474c48f9 | 5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5678 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
9d6da64a | 5679 | |
474c48f9 | 5680 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5681 | if (PyErr_Occurred()) return NULL; |
5682 | } if (_result) { | |
5683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5684 | _resultobj = Py_BuildValue("s",_ptemp); | |
5685 | } else { | |
5686 | Py_INCREF(Py_None); | |
5687 | _resultobj = Py_None; | |
5688 | } | |
5689 | return _resultobj; | |
5690 | } | |
5691 | ||
5692 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5693 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5694 | PyObject * _resultobj; | |
5695 | wxTextAttr * _arg0; | |
5696 | PyObject * _argo0 = 0; | |
5697 | char *_kwnames[] = { "self", NULL }; | |
5698 | ||
5699 | self = self; | |
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5701 | return NULL; | |
5702 | if (_argo0) { | |
5703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5706 | return NULL; | |
5707 | } | |
5708 | } | |
5709 | { | |
474c48f9 | 5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5711 | delete_wxTextAttr(_arg0); |
9d6da64a | 5712 | |
474c48f9 | 5713 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5714 | if (PyErr_Occurred()) return NULL; |
5715 | } Py_INCREF(Py_None); | |
5716 | _resultobj = Py_None; | |
5717 | return _resultobj; | |
5718 | } | |
5719 | ||
5720 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5721 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject * _resultobj; | |
5723 | wxTextAttr * _arg0; | |
5724 | wxColour * _arg1; | |
5725 | PyObject * _argo0 = 0; | |
5726 | wxColour temp; | |
5727 | PyObject * _obj1 = 0; | |
5728 | char *_kwnames[] = { "self","colText", NULL }; | |
5729 | ||
5730 | self = self; | |
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5732 | return NULL; | |
5733 | if (_argo0) { | |
5734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5737 | return NULL; | |
5738 | } | |
5739 | } | |
5740 | { | |
5741 | _arg1 = &temp; | |
5742 | if (! wxColour_helper(_obj1, &_arg1)) | |
5743 | return NULL; | |
5744 | } | |
5745 | { | |
474c48f9 | 5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5747 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
9d6da64a | 5748 | |
474c48f9 | 5749 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5750 | if (PyErr_Occurred()) return NULL; |
5751 | } Py_INCREF(Py_None); | |
5752 | _resultobj = Py_None; | |
5753 | return _resultobj; | |
5754 | } | |
5755 | ||
5756 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5757 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5758 | PyObject * _resultobj; | |
5759 | wxTextAttr * _arg0; | |
5760 | wxColour * _arg1; | |
5761 | PyObject * _argo0 = 0; | |
5762 | wxColour temp; | |
5763 | PyObject * _obj1 = 0; | |
5764 | char *_kwnames[] = { "self","colBack", NULL }; | |
5765 | ||
5766 | self = self; | |
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5768 | return NULL; | |
5769 | if (_argo0) { | |
5770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | { | |
5777 | _arg1 = &temp; | |
5778 | if (! wxColour_helper(_obj1, &_arg1)) | |
5779 | return NULL; | |
5780 | } | |
5781 | { | |
474c48f9 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
9d6da64a | 5784 | |
474c48f9 | 5785 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } Py_INCREF(Py_None); | |
5788 | _resultobj = Py_None; | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
5792 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5793 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxTextAttr * _arg0; | |
5796 | wxFont * _arg1; | |
5797 | PyObject * _argo0 = 0; | |
5798 | PyObject * _argo1 = 0; | |
5799 | char *_kwnames[] = { "self","font", NULL }; | |
5800 | ||
5801 | self = self; | |
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5803 | return NULL; | |
5804 | if (_argo0) { | |
5805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | if (_argo1) { | |
5812 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5813 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5815 | return NULL; | |
5816 | } | |
5817 | } | |
5818 | { | |
474c48f9 | 5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5820 | wxTextAttr_SetFont(_arg0,*_arg1); |
9d6da64a | 5821 | |
474c48f9 | 5822 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5823 | if (PyErr_Occurred()) return NULL; |
5824 | } Py_INCREF(Py_None); | |
5825 | _resultobj = Py_None; | |
5826 | return _resultobj; | |
5827 | } | |
5828 | ||
5829 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5830 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5831 | PyObject * _resultobj; | |
5832 | bool _result; | |
5833 | wxTextAttr * _arg0; | |
5834 | PyObject * _argo0 = 0; | |
5835 | char *_kwnames[] = { "self", NULL }; | |
5836 | ||
5837 | self = self; | |
5838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5839 | return NULL; | |
5840 | if (_argo0) { | |
5841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5844 | return NULL; | |
5845 | } | |
5846 | } | |
5847 | { | |
474c48f9 | 5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5849 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
9d6da64a | 5850 | |
474c48f9 | 5851 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5852 | if (PyErr_Occurred()) return NULL; |
5853 | } _resultobj = Py_BuildValue("i",_result); | |
5854 | return _resultobj; | |
5855 | } | |
5856 | ||
5857 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5858 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject * _resultobj; | |
5860 | bool _result; | |
5861 | wxTextAttr * _arg0; | |
5862 | PyObject * _argo0 = 0; | |
5863 | char *_kwnames[] = { "self", NULL }; | |
5864 | ||
5865 | self = self; | |
5866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5867 | return NULL; | |
5868 | if (_argo0) { | |
5869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5872 | return NULL; | |
5873 | } | |
5874 | } | |
5875 | { | |
474c48f9 | 5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5877 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
9d6da64a | 5878 | |
474c48f9 | 5879 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5880 | if (PyErr_Occurred()) return NULL; |
5881 | } _resultobj = Py_BuildValue("i",_result); | |
5882 | return _resultobj; | |
5883 | } | |
5884 | ||
5885 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5886 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5887 | PyObject * _resultobj; | |
5888 | bool _result; | |
5889 | wxTextAttr * _arg0; | |
5890 | PyObject * _argo0 = 0; | |
5891 | char *_kwnames[] = { "self", NULL }; | |
5892 | ||
5893 | self = self; | |
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5895 | return NULL; | |
5896 | if (_argo0) { | |
5897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5900 | return NULL; | |
5901 | } | |
5902 | } | |
5903 | { | |
474c48f9 | 5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5905 | _result = (bool )wxTextAttr_HasFont(_arg0); |
9d6da64a | 5906 | |
474c48f9 | 5907 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5908 | if (PyErr_Occurred()) return NULL; |
5909 | } _resultobj = Py_BuildValue("i",_result); | |
5910 | return _resultobj; | |
5911 | } | |
5912 | ||
5913 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5914 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5915 | PyObject * _resultobj; | |
5916 | wxColour * _result; | |
5917 | wxTextAttr * _arg0; | |
5918 | PyObject * _argo0 = 0; | |
5919 | char *_kwnames[] = { "self", NULL }; | |
5920 | char _ptemp[128]; | |
5921 | ||
5922 | self = self; | |
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5924 | return NULL; | |
5925 | if (_argo0) { | |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
474c48f9 | 5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5934 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
9d6da64a | 5935 | |
474c48f9 | 5936 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 5937 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5938 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5939 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
5940 | return _resultobj; |
5941 | } | |
5942 | ||
5943 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5944 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5945 | PyObject * _resultobj; | |
5946 | wxColour * _result; | |
5947 | wxTextAttr * _arg0; | |
5948 | PyObject * _argo0 = 0; | |
5949 | char *_kwnames[] = { "self", NULL }; | |
5950 | char _ptemp[128]; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | { | |
474c48f9 | 5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5964 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
9d6da64a | 5965 | |
474c48f9 | 5966 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 5967 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5968 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5969 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
5970 | return _resultobj; |
5971 | } | |
5972 | ||
5973 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5974 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject * _resultobj; | |
5976 | wxFont * _result; | |
5977 | wxTextAttr * _arg0; | |
5978 | PyObject * _argo0 = 0; | |
5979 | char *_kwnames[] = { "self", NULL }; | |
5980 | char _ptemp[128]; | |
5981 | ||
5982 | self = self; | |
5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5984 | return NULL; | |
5985 | if (_argo0) { | |
5986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
5992 | { | |
474c48f9 | 5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5994 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
9d6da64a | 5995 | |
474c48f9 | 5996 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 5997 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5998 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5999 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6000 | return _resultobj; |
6001 | } | |
6002 | ||
a57d56d6 RD |
6003 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
6004 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6005 | PyObject * _resultobj; | |
6006 | bool _result; | |
6007 | wxTextAttr * _arg0; | |
6008 | PyObject * _argo0 = 0; | |
6009 | char *_kwnames[] = { "self", NULL }; | |
6010 | ||
6011 | self = self; | |
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6013 | return NULL; | |
6014 | if (_argo0) { | |
6015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6018 | return NULL; | |
6019 | } | |
6020 | } | |
6021 | { | |
474c48f9 | 6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6023 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
a57d56d6 | 6024 | |
474c48f9 | 6025 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
6026 | if (PyErr_Occurred()) return NULL; |
6027 | } _resultobj = Py_BuildValue("i",_result); | |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
7a9b33db RD |
6031 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
6032 | PyObject * _resultobj; | |
6033 | wxTextAttr * _result; | |
6034 | wxTextAttr * _arg0; | |
6035 | wxTextAttr * _arg1; | |
6036 | wxTextCtrl * _arg2; | |
6037 | PyObject * _argo0 = 0; | |
6038 | PyObject * _argo1 = 0; | |
6039 | PyObject * _argo2 = 0; | |
6040 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6041 | char _ptemp[128]; | |
6042 | ||
6043 | self = self; | |
6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6045 | return NULL; | |
6046 | if (_argo0) { | |
6047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6050 | return NULL; | |
6051 | } | |
6052 | } | |
6053 | if (_argo1) { | |
6054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6057 | return NULL; | |
6058 | } | |
6059 | } | |
6060 | if (_argo2) { | |
6061 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6062 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6064 | return NULL; | |
6065 | } | |
6066 | } | |
6067 | { | |
474c48f9 | 6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6069 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
7a9b33db | 6070 | |
474c48f9 | 6071 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
6072 | if (PyErr_Occurred()) return NULL; |
6073 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6074 | _resultobj = Py_BuildValue("s",_ptemp); | |
6075 | return _resultobj; | |
6076 | } | |
6077 | ||
70551f47 RD |
6078 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
6079 | wxTextCtrl *src; | |
6080 | wxControl *dest; | |
6081 | src = (wxTextCtrl *) ptr; | |
6082 | dest = (wxControl *) src; | |
6083 | return (void *) dest; | |
6084 | } | |
6085 | ||
6086 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6087 | wxTextCtrl *src; | |
6088 | wxWindow *dest; | |
6089 | src = (wxTextCtrl *) ptr; | |
6090 | dest = (wxWindow *) src; | |
6091 | return (void *) dest; | |
6092 | } | |
6093 | ||
6094 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6095 | wxTextCtrl *src; | |
6096 | wxEvtHandler *dest; | |
6097 | src = (wxTextCtrl *) ptr; | |
6098 | dest = (wxEvtHandler *) src; | |
6099 | return (void *) dest; | |
6100 | } | |
6101 | ||
9df61a29 RD |
6102 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
6103 | wxTextCtrl *src; | |
6104 | wxObject *dest; | |
6105 | src = (wxTextCtrl *) ptr; | |
6106 | dest = (wxObject *) src; | |
6107 | return (void *) dest; | |
6108 | } | |
6109 | ||
70551f47 | 6110 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 6111 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6112 | PyObject * _resultobj; |
6113 | wxTextCtrl * _result; | |
6114 | wxWindow * _arg0; | |
6115 | wxWindowID _arg1; | |
2d091820 | 6116 | char * _arg2 = (char *) ""; |
b68dc582 RD |
6117 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6118 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 6119 | long _arg5 = (long ) 0; |
b68dc582 | 6120 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
6121 | char * _arg7 = (char *) "text"; |
6122 | PyObject * _argo0 = 0; | |
37f6a977 RD |
6123 | wxPoint temp; |
6124 | PyObject * _obj3 = 0; | |
6125 | wxSize temp0; | |
6126 | PyObject * _obj4 = 0; | |
2d091820 | 6127 | PyObject * _argo6 = 0; |
107e4716 | 6128 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
70551f47 RD |
6129 | char _ptemp[128]; |
6130 | ||
6131 | self = self; | |
37f6a977 | 6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 6133 | return NULL; |
2d091820 RD |
6134 | if (_argo0) { |
6135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
37f6a977 RD |
6141 | if (_obj3) |
6142 | { | |
6143 | _arg3 = &temp; | |
6144 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 6145 | return NULL; |
37f6a977 RD |
6146 | } |
6147 | if (_obj4) | |
6148 | { | |
6149 | _arg4 = &temp0; | |
6150 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 6151 | return NULL; |
37f6a977 | 6152 | } |
2d091820 RD |
6153 | if (_argo6) { |
6154 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6155 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
6156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
6157 | return NULL; | |
6158 | } | |
6159 | } | |
ab9bc19b | 6160 | { |
474c48f9 | 6161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6162 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
aa2a5b86 | 6163 | |
474c48f9 | 6164 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6165 | if (PyErr_Occurred()) return NULL; |
6166 | } if (_result) { | |
6167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6168 | _resultobj = Py_BuildValue("s",_ptemp); | |
6169 | } else { | |
6170 | Py_INCREF(Py_None); | |
6171 | _resultobj = Py_None; | |
6172 | } | |
6173 | return _resultobj; | |
6174 | } | |
6175 | ||
6176 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6177 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject * _resultobj; | |
6179 | wxTextCtrl * _result; | |
6180 | char *_kwnames[] = { NULL }; | |
6181 | char _ptemp[128]; | |
6182 | ||
6183 | self = self; | |
6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6185 | return NULL; | |
6186 | { | |
474c48f9 | 6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6188 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
aa2a5b86 | 6189 | |
474c48f9 | 6190 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6191 | if (PyErr_Occurred()) return NULL; |
6192 | } if (_result) { | |
6193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6194 | _resultobj = Py_BuildValue("s",_ptemp); | |
6195 | } else { | |
6196 | Py_INCREF(Py_None); | |
6197 | _resultobj = Py_None; | |
6198 | } | |
6199 | return _resultobj; | |
6200 | } | |
6201 | ||
6202 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6203 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6204 | PyObject * _resultobj; | |
6205 | bool _result; | |
6206 | wxTextCtrl * _arg0; | |
6207 | wxWindow * _arg1; | |
6208 | wxWindowID _arg2; | |
6209 | char * _arg3 = (char *) ""; | |
6210 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6211 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6212 | long _arg6 = (long ) 0; | |
6213 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6214 | char * _arg8 = (char *) "text"; | |
6215 | PyObject * _argo0 = 0; | |
6216 | PyObject * _argo1 = 0; | |
6217 | wxPoint temp; | |
6218 | PyObject * _obj4 = 0; | |
6219 | wxSize temp0; | |
6220 | PyObject * _obj5 = 0; | |
6221 | PyObject * _argo7 = 0; | |
6222 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6223 | ||
6224 | self = self; | |
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
6226 | return NULL; | |
6227 | if (_argo0) { | |
6228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | if (_argo1) { | |
6235 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6236 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6238 | return NULL; | |
6239 | } | |
6240 | } | |
6241 | if (_obj4) | |
6242 | { | |
6243 | _arg4 = &temp; | |
6244 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6245 | return NULL; | |
6246 | } | |
6247 | if (_obj5) | |
6248 | { | |
6249 | _arg5 = &temp0; | |
6250 | if (! wxSize_helper(_obj5, &_arg5)) | |
6251 | return NULL; | |
6252 | } | |
6253 | if (_argo7) { | |
6254 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6255 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6257 | return NULL; | |
6258 | } | |
6259 | } | |
6260 | { | |
474c48f9 | 6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6262 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
ab9bc19b | 6263 | |
474c48f9 | 6264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6265 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6266 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6267 | return _resultobj; |
6268 | } | |
6269 | ||
a57d56d6 RD |
6270 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
6271 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6272 | PyObject * _resultobj; |
a57d56d6 | 6273 | wxString * _result; |
70551f47 | 6274 | wxTextCtrl * _arg0; |
2d091820 | 6275 | PyObject * _argo0 = 0; |
107e4716 | 6276 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6277 | |
6278 | self = self; | |
a57d56d6 | 6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
70551f47 | 6280 | return NULL; |
2d091820 RD |
6281 | if (_argo0) { |
6282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
6285 | return NULL; |
6286 | } | |
6287 | } | |
ab9bc19b | 6288 | { |
474c48f9 | 6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6290 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
ab9bc19b | 6291 | |
474c48f9 | 6292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6293 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6294 | }{ |
c8bc7bb8 RD |
6295 | #if wxUSE_UNICODE |
6296 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6297 | #else | |
a57d56d6 | 6298 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6299 | #endif |
a57d56d6 RD |
6300 | } |
6301 | { | |
6302 | delete _result; | |
6303 | } | |
70551f47 RD |
6304 | return _resultobj; |
6305 | } | |
6306 | ||
a57d56d6 RD |
6307 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6308 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6309 | PyObject * _resultobj; |
6310 | wxTextCtrl * _arg0; | |
a57d56d6 | 6311 | wxString * _arg1; |
2d091820 | 6312 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6313 | PyObject * _obj1 = 0; |
6314 | char *_kwnames[] = { "self","value", NULL }; | |
70551f47 RD |
6315 | |
6316 | self = self; | |
a57d56d6 | 6317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6318 | return NULL; |
2d091820 RD |
6319 | if (_argo0) { |
6320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
6323 | return NULL; |
6324 | } | |
6325 | } | |
a57d56d6 | 6326 | { |
c8bc7bb8 RD |
6327 | _arg1 = wxString_in_helper(_obj1); |
6328 | if (_arg1 == NULL) | |
a57d56d6 | 6329 | return NULL; |
a57d56d6 | 6330 | } |
ab9bc19b | 6331 | { |
474c48f9 | 6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6333 | wxTextCtrl_SetValue(_arg0,*_arg1); |
ab9bc19b | 6334 | |
474c48f9 | 6335 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6336 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6337 | } Py_INCREF(Py_None); |
70551f47 | 6338 | _resultobj = Py_None; |
a57d56d6 RD |
6339 | { |
6340 | if (_obj1) | |
6341 | delete _arg1; | |
6342 | } | |
70551f47 RD |
6343 | return _resultobj; |
6344 | } | |
6345 | ||
db34b2d4 RD |
6346 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6347 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6348 | PyObject * _resultobj; | |
6349 | wxString * _result; | |
6350 | wxTextCtrl * _arg0; | |
6351 | long _arg1; | |
6352 | long _arg2; | |
6353 | PyObject * _argo0 = 0; | |
6354 | char *_kwnames[] = { "self","from","to", NULL }; | |
6355 | ||
6356 | self = self; | |
6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6358 | return NULL; | |
6359 | if (_argo0) { | |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6368 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); |
db34b2d4 RD |
6369 | |
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) return NULL; | |
6372 | }{ | |
c8bc7bb8 RD |
6373 | #if wxUSE_UNICODE |
6374 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6375 | #else | |
db34b2d4 | 6376 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6377 | #endif |
db34b2d4 RD |
6378 | } |
6379 | { | |
6380 | delete _result; | |
6381 | } | |
6382 | return _resultobj; | |
6383 | } | |
6384 | ||
a57d56d6 RD |
6385 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6386 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6387 | PyObject * _resultobj; |
a57d56d6 | 6388 | int _result; |
70551f47 | 6389 | wxTextCtrl * _arg0; |
a57d56d6 | 6390 | long _arg1; |
2d091820 | 6391 | PyObject * _argo0 = 0; |
a57d56d6 | 6392 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
6393 | |
6394 | self = self; | |
a57d56d6 | 6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6396 | return NULL; |
2d091820 RD |
6397 | if (_argo0) { |
6398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
6401 | return NULL; |
6402 | } | |
6403 | } | |
ab9bc19b | 6404 | { |
474c48f9 | 6405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6406 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
ab9bc19b | 6407 | |
474c48f9 | 6408 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6409 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6410 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6411 | return _resultobj; |
6412 | } | |
6413 | ||
a57d56d6 RD |
6414 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6415 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6416 | PyObject * _resultobj; |
a57d56d6 | 6417 | wxString * _result; |
70551f47 | 6418 | wxTextCtrl * _arg0; |
a57d56d6 | 6419 | long _arg1; |
2d091820 | 6420 | PyObject * _argo0 = 0; |
a57d56d6 | 6421 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
6422 | |
6423 | self = self; | |
a57d56d6 | 6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6425 | return NULL; |
2d091820 RD |
6426 | if (_argo0) { |
6427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
70551f47 RD |
6430 | return NULL; |
6431 | } | |
6432 | } | |
ab9bc19b | 6433 | { |
474c48f9 | 6434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6435 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
ab9bc19b | 6436 | |
474c48f9 | 6437 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6438 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6439 | }{ |
c8bc7bb8 RD |
6440 | #if wxUSE_UNICODE |
6441 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6442 | #else | |
a57d56d6 | 6443 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6444 | #endif |
a57d56d6 RD |
6445 | } |
6446 | { | |
6447 | delete _result; | |
6448 | } | |
70551f47 RD |
6449 | return _resultobj; |
6450 | } | |
6451 | ||
a57d56d6 RD |
6452 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6453 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6454 | PyObject * _resultobj; |
a57d56d6 | 6455 | int _result; |
70551f47 | 6456 | wxTextCtrl * _arg0; |
2d091820 | 6457 | PyObject * _argo0 = 0; |
107e4716 | 6458 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6459 | |
6460 | self = self; | |
a57d56d6 | 6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
70551f47 | 6462 | return NULL; |
2d091820 RD |
6463 | if (_argo0) { |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
70551f47 RD |
6467 | return NULL; |
6468 | } | |
6469 | } | |
ab9bc19b | 6470 | { |
474c48f9 | 6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6472 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
ab9bc19b | 6473 | |
474c48f9 | 6474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6475 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6476 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6477 | return _resultobj; |
6478 | } | |
6479 | ||
a57d56d6 RD |
6480 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6481 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6482 | PyObject * _resultobj; |
a57d56d6 | 6483 | bool _result; |
70551f47 | 6484 | wxTextCtrl * _arg0; |
2d091820 | 6485 | PyObject * _argo0 = 0; |
107e4716 | 6486 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6487 | |
6488 | self = self; | |
a57d56d6 | 6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
70551f47 | 6490 | return NULL; |
2d091820 RD |
6491 | if (_argo0) { |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
70551f47 RD |
6495 | return NULL; |
6496 | } | |
6497 | } | |
ab9bc19b | 6498 | { |
474c48f9 | 6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6500 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
ab9bc19b | 6501 | |
474c48f9 | 6502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6503 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6504 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6505 | return _resultobj; |
6506 | } | |
6507 | ||
a57d56d6 RD |
6508 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6509 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6510 | PyObject * _resultobj; |
a57d56d6 | 6511 | bool _result; |
faf3cb35 | 6512 | wxTextCtrl * _arg0; |
2d091820 | 6513 | PyObject * _argo0 = 0; |
a57d56d6 | 6514 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6515 | |
6516 | self = self; | |
a57d56d6 | 6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
faf3cb35 | 6518 | return NULL; |
2d091820 RD |
6519 | if (_argo0) { |
6520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6523 | return NULL; |
6524 | } | |
6525 | } | |
ab9bc19b | 6526 | { |
474c48f9 | 6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6528 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
ab9bc19b | 6529 | |
474c48f9 | 6530 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6531 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6532 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
6533 | return _resultobj; |
6534 | } | |
6535 | ||
a57d56d6 RD |
6536 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6537 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6538 | PyObject * _resultobj; |
faf3cb35 | 6539 | wxTextCtrl * _arg0; |
a57d56d6 RD |
6540 | long * _arg1; |
6541 | long temp; | |
6542 | long * _arg2; | |
6543 | long temp0; | |
2d091820 | 6544 | PyObject * _argo0 = 0; |
a57d56d6 | 6545 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6546 | |
6547 | self = self; | |
a57d56d6 RD |
6548 | { |
6549 | _arg1 = &temp; | |
6550 | } | |
6551 | { | |
6552 | _arg2 = &temp0; | |
6553 | } | |
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
faf3cb35 | 6555 | return NULL; |
2d091820 RD |
6556 | if (_argo0) { |
6557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6560 | return NULL; |
6561 | } | |
6562 | } | |
faf3cb35 | 6563 | { |
474c48f9 | 6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6565 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 6566 | |
474c48f9 | 6567 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6568 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6569 | } Py_INCREF(Py_None); |
6570 | _resultobj = Py_None; | |
6571 | { | |
6572 | PyObject *o; | |
6573 | o = PyInt_FromLong((long) (*_arg1)); | |
6574 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
6575 | } |
6576 | { | |
a57d56d6 RD |
6577 | PyObject *o; |
6578 | o = PyInt_FromLong((long) (*_arg2)); | |
6579 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
6580 | } |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
93283355 RD |
6584 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6585 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | wxString * _result; | |
6588 | wxTextCtrl * _arg0; | |
6589 | PyObject * _argo0 = 0; | |
6590 | char *_kwnames[] = { "self", NULL }; | |
6591 | ||
6592 | self = self; | |
6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6594 | return NULL; | |
6595 | if (_argo0) { | |
6596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6599 | return NULL; | |
6600 | } | |
6601 | } | |
6602 | { | |
474c48f9 | 6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6604 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
93283355 | 6605 | |
474c48f9 | 6606 | wxPyEndAllowThreads(__tstate); |
93283355 RD |
6607 | if (PyErr_Occurred()) return NULL; |
6608 | }{ | |
c8bc7bb8 RD |
6609 | #if wxUSE_UNICODE |
6610 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6611 | #else | |
93283355 | 6612 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6613 | #endif |
93283355 RD |
6614 | } |
6615 | { | |
6616 | delete _result; | |
6617 | } | |
6618 | return _resultobj; | |
6619 | } | |
6620 | ||
a57d56d6 RD |
6621 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6622 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6623 | PyObject * _resultobj; |
faf3cb35 | 6624 | wxTextCtrl * _arg0; |
2d091820 | 6625 | PyObject * _argo0 = 0; |
107e4716 | 6626 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6627 | |
6628 | self = self; | |
a57d56d6 | 6629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
faf3cb35 | 6630 | return NULL; |
2d091820 RD |
6631 | if (_argo0) { |
6632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6635 | return NULL; |
6636 | } | |
6637 | } | |
ab9bc19b | 6638 | { |
474c48f9 | 6639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6640 | wxTextCtrl_Clear(_arg0); |
ab9bc19b | 6641 | |
474c48f9 | 6642 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6643 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6644 | } Py_INCREF(Py_None); |
6645 | _resultobj = Py_None; | |
faf3cb35 RD |
6646 | return _resultobj; |
6647 | } | |
6648 | ||
a57d56d6 RD |
6649 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
6650 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6651 | PyObject * _resultobj; |
70551f47 | 6652 | wxTextCtrl * _arg0; |
a57d56d6 RD |
6653 | long _arg1; |
6654 | long _arg2; | |
6655 | wxString * _arg3; | |
2d091820 | 6656 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6657 | PyObject * _obj3 = 0; |
6658 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
70551f47 RD |
6659 | |
6660 | self = self; | |
a57d56d6 | 6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 6662 | return NULL; |
2d091820 RD |
6663 | if (_argo0) { |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
70551f47 RD |
6667 | return NULL; |
6668 | } | |
6669 | } | |
a57d56d6 | 6670 | { |
c8bc7bb8 RD |
6671 | _arg3 = wxString_in_helper(_obj3); |
6672 | if (_arg3 == NULL) | |
a57d56d6 | 6673 | return NULL; |
a57d56d6 | 6674 | } |
70551f47 | 6675 | { |
474c48f9 | 6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6677 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 6678 | |
474c48f9 | 6679 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6680 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6681 | } Py_INCREF(Py_None); |
6682 | _resultobj = Py_None; | |
70551f47 | 6683 | { |
a57d56d6 RD |
6684 | if (_obj3) |
6685 | delete _arg3; | |
70551f47 RD |
6686 | } |
6687 | return _resultobj; | |
6688 | } | |
6689 | ||
a57d56d6 RD |
6690 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
6691 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6692 | PyObject * _resultobj; | |
70551f47 | 6693 | wxTextCtrl * _arg0; |
a57d56d6 RD |
6694 | long _arg1; |
6695 | long _arg2; | |
2d091820 | 6696 | PyObject * _argo0 = 0; |
a57d56d6 | 6697 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
6698 | |
6699 | self = self; | |
a57d56d6 | 6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6701 | return NULL; |
2d091820 RD |
6702 | if (_argo0) { |
6703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
70551f47 RD |
6706 | return NULL; |
6707 | } | |
6708 | } | |
ab9bc19b | 6709 | { |
474c48f9 | 6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6711 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 6712 | |
474c48f9 | 6713 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6714 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6715 | } Py_INCREF(Py_None); |
6716 | _resultobj = Py_None; | |
70551f47 RD |
6717 | return _resultobj; |
6718 | } | |
6719 | ||
6720 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
107e4716 | 6721 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6722 | PyObject * _resultobj; |
6723 | bool _result; | |
6724 | wxTextCtrl * _arg0; | |
6725 | wxString * _arg1; | |
2d091820 | 6726 | PyObject * _argo0 = 0; |
70551f47 | 6727 | PyObject * _obj1 = 0; |
a57d56d6 | 6728 | char *_kwnames[] = { "self","file", NULL }; |
70551f47 RD |
6729 | |
6730 | self = self; | |
107e4716 | 6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6732 | return NULL; |
2d091820 RD |
6733 | if (_argo0) { |
6734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
6736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
6737 | return NULL; | |
6738 | } | |
6739 | } | |
6740 | { | |
c8bc7bb8 RD |
6741 | _arg1 = wxString_in_helper(_obj1); |
6742 | if (_arg1 == NULL) | |
2cd2fac8 | 6743 | return NULL; |
70551f47 | 6744 | } |
ab9bc19b | 6745 | { |
474c48f9 | 6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6747 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
ab9bc19b | 6748 | |
474c48f9 | 6749 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6750 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6751 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6752 | { |
6753 | if (_obj1) | |
6754 | delete _arg1; | |
6755 | } | |
6756 | return _resultobj; | |
6757 | } | |
6758 | ||
a57d56d6 RD |
6759 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
6760 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6761 | PyObject * _resultobj; |
a57d56d6 | 6762 | bool _result; |
70551f47 | 6763 | wxTextCtrl * _arg0; |
a57d56d6 | 6764 | wxString * _arg1 = (wxString *) &wxEmptyString; |
2d091820 | 6765 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6766 | PyObject * _obj1 = 0; |
6767 | char *_kwnames[] = { "self","file", NULL }; | |
70551f47 RD |
6768 | |
6769 | self = self; | |
a57d56d6 | 6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6771 | return NULL; |
2d091820 RD |
6772 | if (_argo0) { |
6773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
70551f47 RD |
6776 | return NULL; |
6777 | } | |
6778 | } | |
a57d56d6 RD |
6779 | if (_obj1) |
6780 | { | |
c8bc7bb8 RD |
6781 | _arg1 = wxString_in_helper(_obj1); |
6782 | if (_arg1 == NULL) | |
a57d56d6 | 6783 | return NULL; |
a57d56d6 | 6784 | } |
ab9bc19b | 6785 | { |
474c48f9 | 6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6787 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
ab9bc19b | 6788 | |
474c48f9 | 6789 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6790 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6791 | } _resultobj = Py_BuildValue("i",_result); |
6792 | { | |
6793 | if (_obj1) | |
6794 | delete _arg1; | |
6795 | } | |
70551f47 RD |
6796 | return _resultobj; |
6797 | } | |
6798 | ||
a57d56d6 RD |
6799 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
6800 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 RD |
6801 | PyObject * _resultobj; |
6802 | wxTextCtrl * _arg0; | |
2d091820 | 6803 | PyObject * _argo0 = 0; |
a57d56d6 | 6804 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6805 | |
6806 | self = self; | |
a57d56d6 | 6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
faf3cb35 | 6808 | return NULL; |
2d091820 RD |
6809 | if (_argo0) { |
6810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6813 | return NULL; |
6814 | } | |
6815 | } | |
ab9bc19b | 6816 | { |
474c48f9 | 6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6818 | wxTextCtrl_DiscardEdits(_arg0); |
ab9bc19b | 6819 | |
474c48f9 | 6820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6821 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6822 | } Py_INCREF(Py_None); |
faf3cb35 | 6823 | _resultobj = Py_None; |
faf3cb35 RD |
6824 | return _resultobj; |
6825 | } | |
6826 | ||
a57d56d6 RD |
6827 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
6828 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6829 | PyObject * _resultobj; |
6830 | wxTextCtrl * _arg0; | |
a57d56d6 | 6831 | unsigned long _arg1; |
2d091820 | 6832 | PyObject * _argo0 = 0; |
a57d56d6 | 6833 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
6834 | |
6835 | self = self; | |
a57d56d6 | 6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6837 | return NULL; |
2d091820 RD |
6838 | if (_argo0) { |
6839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
6842 | return NULL; |
6843 | } | |
6844 | } | |
ab9bc19b | 6845 | { |
474c48f9 | 6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6847 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
ab9bc19b | 6848 | |
474c48f9 | 6849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6850 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6851 | } Py_INCREF(Py_None); |
70551f47 RD |
6852 | _resultobj = Py_None; |
6853 | return _resultobj; | |
6854 | } | |
6855 | ||
a57d56d6 RD |
6856 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
6857 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6858 | PyObject * _resultobj; |
6859 | wxTextCtrl * _arg0; | |
a57d56d6 | 6860 | wxString * _arg1; |
2d091820 | 6861 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6862 | PyObject * _obj1 = 0; |
6863 | char *_kwnames[] = { "self","text", NULL }; | |
70551f47 RD |
6864 | |
6865 | self = self; | |
a57d56d6 | 6866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6867 | return NULL; |
2d091820 RD |
6868 | if (_argo0) { |
6869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
70551f47 RD |
6872 | return NULL; |
6873 | } | |
6874 | } | |
6875 | { | |
c8bc7bb8 RD |
6876 | _arg1 = wxString_in_helper(_obj1); |
6877 | if (_arg1 == NULL) | |
2cd2fac8 | 6878 | return NULL; |
70551f47 | 6879 | } |
ab9bc19b | 6880 | { |
474c48f9 | 6881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6882 | wxTextCtrl_WriteText(_arg0,*_arg1); |
ab9bc19b | 6883 | |
474c48f9 | 6884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6885 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6886 | } Py_INCREF(Py_None); |
70551f47 RD |
6887 | _resultobj = Py_None; |
6888 | { | |
a57d56d6 RD |
6889 | if (_obj1) |
6890 | delete _arg1; | |
70551f47 RD |
6891 | } |
6892 | return _resultobj; | |
6893 | } | |
6894 | ||
a57d56d6 RD |
6895 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
6896 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6897 | PyObject * _resultobj; |
70551f47 RD |
6898 | wxTextCtrl * _arg0; |
6899 | wxString * _arg1; | |
2d091820 | 6900 | PyObject * _argo0 = 0; |
70551f47 | 6901 | PyObject * _obj1 = 0; |
a57d56d6 | 6902 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
6903 | |
6904 | self = self; | |
a57d56d6 | 6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6906 | return NULL; |
2d091820 RD |
6907 | if (_argo0) { |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
70551f47 RD |
6911 | return NULL; |
6912 | } | |
6913 | } | |
6914 | { | |
c8bc7bb8 RD |
6915 | _arg1 = wxString_in_helper(_obj1); |
6916 | if (_arg1 == NULL) | |
70551f47 | 6917 | return NULL; |
70551f47 | 6918 | } |
ab9bc19b | 6919 | { |
474c48f9 | 6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6921 | wxTextCtrl_AppendText(_arg0,*_arg1); |
ab9bc19b | 6922 | |
474c48f9 | 6923 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6924 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6925 | } Py_INCREF(Py_None); |
6926 | _resultobj = Py_None; | |
70551f47 RD |
6927 | { |
6928 | if (_obj1) | |
6929 | delete _arg1; | |
6930 | } | |
6931 | return _resultobj; | |
6932 | } | |
6933 | ||
a57d56d6 RD |
6934 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
6935 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6936 | PyObject * _resultobj; |
a57d56d6 | 6937 | bool _result; |
70551f47 | 6938 | wxTextCtrl * _arg0; |
a57d56d6 RD |
6939 | long _arg1; |
6940 | long _arg2; | |
6941 | wxTextAttr * _arg3; | |
2d091820 | 6942 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6943 | PyObject * _argo3 = 0; |
6944 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
70551f47 RD |
6945 | |
6946 | self = self; | |
a57d56d6 | 6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
70551f47 | 6948 | return NULL; |
2d091820 RD |
6949 | if (_argo0) { |
6950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
6952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
6953 | return NULL; | |
6954 | } | |
6955 | } | |
6956 | if (_argo3) { | |
6957 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6958 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
70551f47 RD |
6960 | return NULL; |
6961 | } | |
6962 | } | |
ab9bc19b | 6963 | { |
474c48f9 | 6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6965 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 6966 | |
474c48f9 | 6967 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6968 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6969 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6970 | return _resultobj; |
6971 | } | |
6972 | ||
a57d56d6 RD |
6973 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
6974 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6975 | PyObject * _resultobj; |
a57d56d6 | 6976 | bool _result; |
70551f47 | 6977 | wxTextCtrl * _arg0; |
a57d56d6 | 6978 | wxTextAttr * _arg1; |
2d091820 | 6979 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6980 | PyObject * _argo1 = 0; |
6981 | char *_kwnames[] = { "self","style", NULL }; | |
70551f47 RD |
6982 | |
6983 | self = self; | |
a57d56d6 | 6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6985 | return NULL; |
2d091820 RD |
6986 | if (_argo0) { |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
6990 | return NULL; | |
6991 | } | |
6992 | } | |
6993 | if (_argo1) { | |
6994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
70551f47 RD |
6997 | return NULL; |
6998 | } | |
6999 | } | |
ab9bc19b | 7000 | { |
474c48f9 | 7001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7002 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
ab9bc19b | 7003 | |
474c48f9 | 7004 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7005 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7006 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7007 | return _resultobj; |
7008 | } | |
7009 | ||
a57d56d6 RD |
7010 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
7011 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7012 | PyObject * _resultobj; |
a57d56d6 | 7013 | wxTextAttr * _result; |
70551f47 | 7014 | wxTextCtrl * _arg0; |
2d091820 | 7015 | PyObject * _argo0 = 0; |
107e4716 | 7016 | char *_kwnames[] = { "self", NULL }; |
a57d56d6 | 7017 | char _ptemp[128]; |
70551f47 RD |
7018 | |
7019 | self = self; | |
a57d56d6 | 7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
70551f47 | 7021 | return NULL; |
2d091820 RD |
7022 | if (_argo0) { |
7023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
70551f47 RD |
7026 | return NULL; |
7027 | } | |
7028 | } | |
ab9bc19b | 7029 | { |
474c48f9 | 7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7031 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
a57d56d6 | 7032 | _result = (wxTextAttr *) &_result_ref; |
ab9bc19b | 7033 | |
474c48f9 | 7034 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7035 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7036 | } if (_result) { |
7037 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7038 | _resultobj = Py_BuildValue("s",_ptemp); | |
7039 | } else { | |
7040 | Py_INCREF(Py_None); | |
7041 | _resultobj = Py_None; | |
7042 | } | |
70551f47 RD |
7043 | return _resultobj; |
7044 | } | |
7045 | ||
a57d56d6 RD |
7046 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
7047 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7048 | PyObject * _resultobj; |
a57d56d6 | 7049 | long _result; |
70551f47 RD |
7050 | wxTextCtrl * _arg0; |
7051 | long _arg1; | |
7052 | long _arg2; | |
2d091820 | 7053 | PyObject * _argo0 = 0; |
a57d56d6 | 7054 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
7055 | |
7056 | self = self; | |
a57d56d6 | 7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7058 | return NULL; |
2d091820 RD |
7059 | if (_argo0) { |
7060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
70551f47 RD |
7063 | return NULL; |
7064 | } | |
7065 | } | |
ab9bc19b | 7066 | { |
474c48f9 | 7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7068 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
ab9bc19b | 7069 | |
474c48f9 | 7070 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7071 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7072 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7073 | return _resultobj; |
7074 | } | |
7075 | ||
a57d56d6 RD |
7076 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
7077 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7078 | PyObject * _resultobj; |
7079 | wxTextCtrl * _arg0; | |
a57d56d6 RD |
7080 | long _arg1; |
7081 | long * _arg2; | |
7082 | long temp; | |
7083 | long * _arg3; | |
7084 | long temp0; | |
2d091820 | 7085 | PyObject * _argo0 = 0; |
a57d56d6 | 7086 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
7087 | |
7088 | self = self; | |
a57d56d6 RD |
7089 | { |
7090 | _arg2 = &temp; | |
7091 | } | |
7092 | { | |
7093 | _arg3 = &temp0; | |
7094 | } | |
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 7096 | return NULL; |
2d091820 RD |
7097 | if (_argo0) { |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
70551f47 RD |
7101 | return NULL; |
7102 | } | |
7103 | } | |
ab9bc19b | 7104 | { |
474c48f9 | 7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7106 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 7107 | |
474c48f9 | 7108 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7109 | if (PyErr_Occurred()) return NULL; |
db34b2d4 RD |
7110 | } Py_INCREF(Py_None); |
7111 | _resultobj = Py_None; | |
70551f47 | 7112 | { |
a57d56d6 RD |
7113 | PyObject *o; |
7114 | o = PyInt_FromLong((long) (*_arg2)); | |
7115 | _resultobj = t_output_helper(_resultobj, o); | |
7116 | } | |
7117 | { | |
7118 | PyObject *o; | |
7119 | o = PyInt_FromLong((long) (*_arg3)); | |
7120 | _resultobj = t_output_helper(_resultobj, o); | |
70551f47 RD |
7121 | } |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
7125 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
107e4716 | 7126 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7127 | PyObject * _resultobj; |
7128 | wxTextCtrl * _arg0; | |
7129 | long _arg1; | |
2d091820 | 7130 | PyObject * _argo0 = 0; |
107e4716 | 7131 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
7132 | |
7133 | self = self; | |
107e4716 | 7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7135 | return NULL; |
2d091820 RD |
7136 | if (_argo0) { |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
ab9bc19b | 7143 | { |
474c48f9 | 7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7145 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
ab9bc19b | 7146 | |
474c48f9 | 7147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7148 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7149 | } Py_INCREF(Py_None); |
70551f47 RD |
7150 | _resultobj = Py_None; |
7151 | return _resultobj; | |
7152 | } | |
7153 | ||
a57d56d6 RD |
7154 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
7155 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7156 | PyObject * _resultobj; |
7157 | wxTextCtrl * _arg0; | |
2d091820 | 7158 | PyObject * _argo0 = 0; |
a57d56d6 | 7159 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7160 | |
7161 | self = self; | |
a57d56d6 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
70551f47 | 7163 | return NULL; |
2d091820 RD |
7164 | if (_argo0) { |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
70551f47 RD |
7168 | return NULL; |
7169 | } | |
7170 | } | |
ab9bc19b | 7171 | { |
474c48f9 | 7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7173 | wxTextCtrl_Copy(_arg0); |
ab9bc19b | 7174 | |
474c48f9 | 7175 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7176 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
7177 | } Py_INCREF(Py_None); |
7178 | _resultobj = Py_None; | |
ab9bc19b RD |
7179 | return _resultobj; |
7180 | } | |
7181 | ||
a57d56d6 RD |
7182 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
7183 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
ab9bc19b RD |
7184 | PyObject * _resultobj; |
7185 | wxTextCtrl * _arg0; | |
2d091820 | 7186 | PyObject * _argo0 = 0; |
a57d56d6 | 7187 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
7188 | |
7189 | self = self; | |
a57d56d6 | 7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
ab9bc19b | 7191 | return NULL; |
2d091820 RD |
7192 | if (_argo0) { |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
ab9bc19b RD |
7196 | return NULL; |
7197 | } | |
7198 | } | |
ab9bc19b | 7199 | { |
474c48f9 | 7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7201 | wxTextCtrl_Cut(_arg0); |
ab9bc19b | 7202 | |
474c48f9 | 7203 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7204 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7205 | } Py_INCREF(Py_None); |
70551f47 | 7206 | _resultobj = Py_None; |
70551f47 RD |
7207 | return _resultobj; |
7208 | } | |
7209 | ||
a57d56d6 RD |
7210 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
7211 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 7212 | PyObject * _resultobj; |
faf3cb35 | 7213 | wxTextCtrl * _arg0; |
2d091820 | 7214 | PyObject * _argo0 = 0; |
a57d56d6 | 7215 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7216 | |
7217 | self = self; | |
a57d56d6 | 7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
faf3cb35 | 7219 | return NULL; |
2d091820 RD |
7220 | if (_argo0) { |
7221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7224 | return NULL; |
7225 | } | |
7226 | } | |
ab9bc19b | 7227 | { |
474c48f9 | 7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7229 | wxTextCtrl_Paste(_arg0); |
ab9bc19b | 7230 | |
474c48f9 | 7231 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7232 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7233 | } Py_INCREF(Py_None); |
7234 | _resultobj = Py_None; | |
faf3cb35 RD |
7235 | return _resultobj; |
7236 | } | |
7237 | ||
53920141 | 7238 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
107e4716 | 7239 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7240 | PyObject * _resultobj; |
7241 | bool _result; | |
7242 | wxTextCtrl * _arg0; | |
2d091820 | 7243 | PyObject * _argo0 = 0; |
107e4716 | 7244 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7245 | |
7246 | self = self; | |
107e4716 | 7247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
53920141 | 7248 | return NULL; |
2d091820 RD |
7249 | if (_argo0) { |
7250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
7253 | return NULL; | |
7254 | } | |
7255 | } | |
7256 | { | |
474c48f9 | 7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7258 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
53920141 | 7259 | |
474c48f9 | 7260 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7261 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7262 | } _resultobj = Py_BuildValue("i",_result); |
7263 | return _resultobj; | |
7264 | } | |
7265 | ||
7266 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
107e4716 | 7267 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7268 | PyObject * _resultobj; |
7269 | bool _result; | |
7270 | wxTextCtrl * _arg0; | |
2d091820 | 7271 | PyObject * _argo0 = 0; |
107e4716 | 7272 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7273 | |
7274 | self = self; | |
107e4716 | 7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
53920141 | 7276 | return NULL; |
2d091820 RD |
7277 | if (_argo0) { |
7278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7281 | return NULL; | |
7282 | } | |
7283 | } | |
7284 | { | |
474c48f9 | 7285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7286 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
53920141 | 7287 | |
474c48f9 | 7288 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7289 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7290 | } _resultobj = Py_BuildValue("i",_result); |
7291 | return _resultobj; | |
7292 | } | |
7293 | ||
7294 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
107e4716 | 7295 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7296 | PyObject * _resultobj; |
7297 | bool _result; | |
7298 | wxTextCtrl * _arg0; | |
2d091820 | 7299 | PyObject * _argo0 = 0; |
107e4716 | 7300 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7301 | |
7302 | self = self; | |
107e4716 | 7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
53920141 | 7304 | return NULL; |
2d091820 RD |
7305 | if (_argo0) { |
7306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7309 | return NULL; | |
7310 | } | |
7311 | } | |
7312 | { | |
474c48f9 | 7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7314 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
53920141 | 7315 | |
474c48f9 | 7316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7317 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7318 | } _resultobj = Py_BuildValue("i",_result); |
7319 | return _resultobj; | |
7320 | } | |
7321 | ||
a57d56d6 RD |
7322 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7323 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7324 | PyObject * _resultobj; |
53920141 | 7325 | wxTextCtrl * _arg0; |
2d091820 | 7326 | PyObject * _argo0 = 0; |
107e4716 | 7327 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7328 | |
7329 | self = self; | |
a57d56d6 | 7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
53920141 | 7331 | return NULL; |
2d091820 RD |
7332 | if (_argo0) { |
7333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
53920141 RD |
7336 | return NULL; |
7337 | } | |
7338 | } | |
7339 | { | |
474c48f9 | 7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7341 | wxTextCtrl_Undo(_arg0); |
53920141 | 7342 | |
474c48f9 | 7343 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7344 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7345 | } Py_INCREF(Py_None); |
7346 | _resultobj = Py_None; | |
53920141 RD |
7347 | return _resultobj; |
7348 | } | |
7349 | ||
a57d56d6 RD |
7350 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7351 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7352 | PyObject * _resultobj; |
53920141 | 7353 | wxTextCtrl * _arg0; |
2d091820 | 7354 | PyObject * _argo0 = 0; |
107e4716 | 7355 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7356 | |
7357 | self = self; | |
a57d56d6 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
53920141 | 7359 | return NULL; |
2d091820 RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
53920141 RD |
7364 | return NULL; |
7365 | } | |
7366 | } | |
7367 | { | |
474c48f9 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7369 | wxTextCtrl_Redo(_arg0); |
53920141 | 7370 | |
474c48f9 | 7371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7372 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7373 | } Py_INCREF(Py_None); |
7374 | _resultobj = Py_None; | |
53920141 RD |
7375 | return _resultobj; |
7376 | } | |
7377 | ||
a57d56d6 RD |
7378 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7379 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7380 | PyObject * _resultobj; |
a57d56d6 | 7381 | bool _result; |
53920141 | 7382 | wxTextCtrl * _arg0; |
2d091820 | 7383 | PyObject * _argo0 = 0; |
107e4716 | 7384 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7385 | |
7386 | self = self; | |
a57d56d6 | 7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
53920141 | 7388 | return NULL; |
2d091820 RD |
7389 | if (_argo0) { |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
53920141 RD |
7393 | return NULL; |
7394 | } | |
7395 | } | |
7396 | { | |
474c48f9 | 7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7398 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
53920141 | 7399 | |
474c48f9 | 7400 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7401 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7402 | } _resultobj = Py_BuildValue("i",_result); |
53920141 RD |
7403 | return _resultobj; |
7404 | } | |
7405 | ||
a57d56d6 RD |
7406 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7407 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 RD |
7408 | PyObject * _resultobj; |
7409 | bool _result; | |
7410 | wxTextCtrl * _arg0; | |
2d091820 | 7411 | PyObject * _argo0 = 0; |
107e4716 | 7412 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7413 | |
7414 | self = self; | |
a57d56d6 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
53920141 | 7416 | return NULL; |
2d091820 RD |
7417 | if (_argo0) { |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
53920141 RD |
7421 | return NULL; |
7422 | } | |
7423 | } | |
7424 | { | |
474c48f9 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7426 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
53920141 | 7427 | |
474c48f9 | 7428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7429 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7430 | } _resultobj = Py_BuildValue("i",_result); |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
a57d56d6 RD |
7434 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7435 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
7436 | PyObject * _resultobj; |
7437 | wxTextCtrl * _arg0; | |
a57d56d6 | 7438 | long _arg1; |
4120ef2b | 7439 | PyObject * _argo0 = 0; |
a57d56d6 | 7440 | char *_kwnames[] = { "self","pos", NULL }; |
4120ef2b RD |
7441 | |
7442 | self = self; | |
a57d56d6 | 7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
7444 | return NULL; |
7445 | if (_argo0) { | |
7446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
4120ef2b RD |
7449 | return NULL; |
7450 | } | |
7451 | } | |
7452 | { | |
474c48f9 | 7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7454 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
4120ef2b | 7455 | |
474c48f9 | 7456 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7457 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7458 | } Py_INCREF(Py_None); |
7459 | _resultobj = Py_None; | |
7460 | return _resultobj; | |
7461 | } | |
7462 | ||
a57d56d6 RD |
7463 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7464 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
7465 | PyObject * _resultobj; |
7466 | wxTextCtrl * _arg0; | |
7467 | PyObject * _argo0 = 0; | |
7468 | char *_kwnames[] = { "self", NULL }; | |
7469 | ||
7470 | self = self; | |
a57d56d6 | 7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
4120ef2b RD |
7472 | return NULL; |
7473 | if (_argo0) { | |
7474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
4120ef2b RD |
7477 | return NULL; |
7478 | } | |
7479 | } | |
7480 | { | |
474c48f9 | 7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7482 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
4120ef2b | 7483 | |
474c48f9 | 7484 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7485 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7486 | } Py_INCREF(Py_None); |
7487 | _resultobj = Py_None; | |
7488 | return _resultobj; | |
7489 | } | |
7490 | ||
a57d56d6 RD |
7491 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7492 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7493 | PyObject * _resultobj; |
a57d56d6 | 7494 | long _result; |
9d6da64a | 7495 | wxTextCtrl * _arg0; |
9d6da64a | 7496 | PyObject * _argo0 = 0; |
a57d56d6 | 7497 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
7498 | |
7499 | self = self; | |
a57d56d6 | 7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
9d6da64a RD |
7501 | return NULL; |
7502 | if (_argo0) { | |
7503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7506 | return NULL; |
7507 | } | |
7508 | } | |
7509 | { | |
474c48f9 | 7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7511 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
9d6da64a | 7512 | |
474c48f9 | 7513 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7514 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7515 | } _resultobj = Py_BuildValue("l",_result); |
9d6da64a RD |
7516 | return _resultobj; |
7517 | } | |
7518 | ||
a57d56d6 RD |
7519 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7520 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7521 | PyObject * _resultobj; |
a57d56d6 | 7522 | long _result; |
9d6da64a | 7523 | wxTextCtrl * _arg0; |
9d6da64a | 7524 | PyObject * _argo0 = 0; |
a57d56d6 | 7525 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
7526 | |
7527 | self = self; | |
a57d56d6 | 7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
9d6da64a RD |
7529 | return NULL; |
7530 | if (_argo0) { | |
7531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7534 | return NULL; |
7535 | } | |
7536 | } | |
a57d56d6 | 7537 | { |
474c48f9 | 7538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7539 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
a57d56d6 | 7540 | |
474c48f9 | 7541 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
7542 | if (PyErr_Occurred()) return NULL; |
7543 | } _resultobj = Py_BuildValue("l",_result); | |
7544 | return _resultobj; | |
7545 | } | |
7546 | ||
7547 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7548 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7549 | PyObject * _resultobj; | |
7550 | wxTextCtrl * _arg0; | |
7551 | long _arg1; | |
7552 | long _arg2; | |
7553 | PyObject * _argo0 = 0; | |
7554 | char *_kwnames[] = { "self","from","to", NULL }; | |
7555 | ||
7556 | self = self; | |
7557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7558 | return NULL; | |
7559 | if (_argo0) { | |
7560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
9d6da64a RD |
7563 | return NULL; |
7564 | } | |
7565 | } | |
7566 | { | |
474c48f9 | 7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7568 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
9d6da64a | 7569 | |
474c48f9 | 7570 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7571 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7572 | } Py_INCREF(Py_None); |
7573 | _resultobj = Py_None; | |
9d6da64a RD |
7574 | return _resultobj; |
7575 | } | |
7576 | ||
a57d56d6 RD |
7577 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7578 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7579 | PyObject * _resultobj; |
9d6da64a RD |
7580 | wxTextCtrl * _arg0; |
7581 | PyObject * _argo0 = 0; | |
7582 | char *_kwnames[] = { "self", NULL }; | |
9d6da64a RD |
7583 | |
7584 | self = self; | |
a57d56d6 | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
9d6da64a RD |
7586 | return NULL; |
7587 | if (_argo0) { | |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
7594 | { | |
474c48f9 | 7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7596 | wxTextCtrl_SelectAll(_arg0); |
9d6da64a | 7597 | |
474c48f9 | 7598 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7599 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7600 | } Py_INCREF(Py_None); |
7601 | _resultobj = Py_None; | |
9d6da64a RD |
7602 | return _resultobj; |
7603 | } | |
7604 | ||
a57d56d6 RD |
7605 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7606 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
aa2a5b86 RD |
7607 | PyObject * _resultobj; |
7608 | wxTextCtrl * _arg0; | |
a57d56d6 | 7609 | bool _arg1; |
aa2a5b86 | 7610 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7611 | int tempbool1; |
7612 | char *_kwnames[] = { "self","editable", NULL }; | |
aa2a5b86 RD |
7613 | |
7614 | self = self; | |
a57d56d6 | 7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
aa2a5b86 RD |
7616 | return NULL; |
7617 | if (_argo0) { | |
7618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
aa2a5b86 RD |
7621 | return NULL; |
7622 | } | |
7623 | } | |
a57d56d6 | 7624 | _arg1 = (bool ) tempbool1; |
aa2a5b86 | 7625 | { |
474c48f9 | 7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7627 | wxTextCtrl_SetEditable(_arg0,_arg1); |
aa2a5b86 | 7628 | |
474c48f9 | 7629 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7630 | if (PyErr_Occurred()) return NULL; |
7631 | } Py_INCREF(Py_None); | |
7632 | _resultobj = Py_None; | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
4120ef2b | 7636 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
9d6da64a | 7637 | self->AppendText(text); |
4120ef2b RD |
7638 | } |
7639 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7640 | PyObject * _resultobj; | |
7641 | wxTextCtrl * _arg0; | |
7642 | wxString * _arg1; | |
7643 | PyObject * _argo0 = 0; | |
7644 | PyObject * _obj1 = 0; | |
7645 | char *_kwnames[] = { "self","text", NULL }; | |
7646 | ||
7647 | self = self; | |
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7649 | return NULL; | |
7650 | if (_argo0) { | |
7651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7654 | return NULL; | |
7655 | } | |
7656 | } | |
7657 | { | |
c8bc7bb8 RD |
7658 | _arg1 = wxString_in_helper(_obj1); |
7659 | if (_arg1 == NULL) | |
4120ef2b | 7660 | return NULL; |
4120ef2b RD |
7661 | } |
7662 | { | |
474c48f9 | 7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7664 | wxTextCtrl_write(_arg0,*_arg1); |
4120ef2b | 7665 | |
474c48f9 | 7666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7667 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7668 | } Py_INCREF(Py_None); |
7669 | _resultobj = Py_None; | |
7670 | { | |
7671 | if (_obj1) | |
7672 | delete _arg1; | |
7673 | } | |
7674 | return _resultobj; | |
7675 | } | |
7676 | ||
7a9b33db RD |
7677 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
7678 | return self->GetValue().Mid(from, to-from); | |
7679 | } | |
7680 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7681 | PyObject * _resultobj; | |
7682 | wxString * _result; | |
7683 | wxTextCtrl * _arg0; | |
7684 | long _arg1; | |
7685 | long _arg2; | |
7686 | PyObject * _argo0 = 0; | |
7687 | char *_kwnames[] = { "self","from","to", NULL }; | |
7688 | ||
7689 | self = self; | |
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7691 | return NULL; | |
7692 | if (_argo0) { | |
7693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7696 | return NULL; | |
7697 | } | |
7698 | } | |
7699 | { | |
474c48f9 | 7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7701 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
7a9b33db | 7702 | |
474c48f9 | 7703 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
7704 | if (PyErr_Occurred()) return NULL; |
7705 | }{ | |
c8bc7bb8 RD |
7706 | #if wxUSE_UNICODE |
7707 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7708 | #else | |
7a9b33db | 7709 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7710 | #endif |
7a9b33db RD |
7711 | } |
7712 | { | |
7713 | delete _result; | |
7714 | } | |
7715 | return _resultobj; | |
7716 | } | |
7717 | ||
70551f47 RD |
7718 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7719 | wxScrollBar *src; | |
7720 | wxControl *dest; | |
7721 | src = (wxScrollBar *) ptr; | |
7722 | dest = (wxControl *) src; | |
7723 | return (void *) dest; | |
7724 | } | |
7725 | ||
7726 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7727 | wxScrollBar *src; | |
7728 | wxWindow *dest; | |
7729 | src = (wxScrollBar *) ptr; | |
7730 | dest = (wxWindow *) src; | |
7731 | return (void *) dest; | |
7732 | } | |
7733 | ||
7734 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7735 | wxScrollBar *src; | |
7736 | wxEvtHandler *dest; | |
7737 | src = (wxScrollBar *) ptr; | |
7738 | dest = (wxEvtHandler *) src; | |
7739 | return (void *) dest; | |
7740 | } | |
7741 | ||
9df61a29 RD |
7742 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
7743 | wxScrollBar *src; | |
7744 | wxObject *dest; | |
7745 | src = (wxScrollBar *) ptr; | |
7746 | dest = (wxObject *) src; | |
7747 | return (void *) dest; | |
7748 | } | |
7749 | ||
70551f47 | 7750 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 7751 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7752 | PyObject * _resultobj; |
7753 | wxScrollBar * _result; | |
7754 | wxWindow * _arg0; | |
2d091820 | 7755 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
7756 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7757 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 7758 | long _arg4 = (long ) wxSB_HORIZONTAL; |
b68dc582 | 7759 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
7760 | char * _arg6 = (char *) "scrollBar"; |
7761 | PyObject * _argo0 = 0; | |
37f6a977 RD |
7762 | wxPoint temp; |
7763 | PyObject * _obj2 = 0; | |
7764 | wxSize temp0; | |
7765 | PyObject * _obj3 = 0; | |
2d091820 | 7766 | PyObject * _argo5 = 0; |
107e4716 | 7767 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
70551f47 RD |
7768 | char _ptemp[128]; |
7769 | ||
7770 | self = self; | |
37f6a977 | 7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
70551f47 | 7772 | return NULL; |
2d091820 RD |
7773 | if (_argo0) { |
7774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
7777 | return NULL; | |
7778 | } | |
7779 | } | |
37f6a977 RD |
7780 | if (_obj2) |
7781 | { | |
7782 | _arg2 = &temp; | |
7783 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 7784 | return NULL; |
37f6a977 RD |
7785 | } |
7786 | if (_obj3) | |
7787 | { | |
7788 | _arg3 = &temp0; | |
7789 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 7790 | return NULL; |
37f6a977 | 7791 | } |
2d091820 RD |
7792 | if (_argo5) { |
7793 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7794 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
70551f47 RD |
7795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
7796 | return NULL; | |
7797 | } | |
7798 | } | |
ab9bc19b | 7799 | { |
474c48f9 | 7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7801 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
ab9bc19b | 7802 | |
474c48f9 | 7803 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7804 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7805 | } if (_result) { |
7806 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7807 | _resultobj = Py_BuildValue("s",_ptemp); | |
7808 | } else { | |
7809 | Py_INCREF(Py_None); | |
7810 | _resultobj = Py_None; | |
7811 | } | |
70551f47 RD |
7812 | return _resultobj; |
7813 | } | |
7814 | ||
aa2a5b86 RD |
7815 | #define new_wxPreScrollBar() (new wxScrollBar()) |
7816 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7817 | PyObject * _resultobj; | |
7818 | wxScrollBar * _result; | |
7819 | char *_kwnames[] = { NULL }; | |
7820 | char _ptemp[128]; | |
7821 | ||
7822 | self = self; | |
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7824 | return NULL; | |
7825 | { | |
474c48f9 | 7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7827 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
aa2a5b86 | 7828 | |
474c48f9 | 7829 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7830 | if (PyErr_Occurred()) return NULL; |
7831 | } if (_result) { | |
7832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7833 | _resultobj = Py_BuildValue("s",_ptemp); | |
7834 | } else { | |
7835 | Py_INCREF(Py_None); | |
7836 | _resultobj = Py_None; | |
7837 | } | |
7838 | return _resultobj; | |
7839 | } | |
7840 | ||
7841 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7842 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject * _resultobj; | |
7844 | bool _result; | |
7845 | wxScrollBar * _arg0; | |
7846 | wxWindow * _arg1; | |
7847 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7848 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7849 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7850 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7851 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7852 | char * _arg7 = (char *) "scrollBar"; | |
7853 | PyObject * _argo0 = 0; | |
7854 | PyObject * _argo1 = 0; | |
7855 | wxPoint temp; | |
7856 | PyObject * _obj3 = 0; | |
7857 | wxSize temp0; | |
7858 | PyObject * _obj4 = 0; | |
7859 | PyObject * _argo6 = 0; | |
7860 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7861 | ||
7862 | self = self; | |
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7864 | return NULL; | |
7865 | if (_argo0) { | |
7866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7869 | return NULL; | |
7870 | } | |
7871 | } | |
7872 | if (_argo1) { | |
7873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7876 | return NULL; | |
7877 | } | |
7878 | } | |
7879 | if (_obj3) | |
7880 | { | |
7881 | _arg3 = &temp; | |
7882 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7883 | return NULL; | |
7884 | } | |
7885 | if (_obj4) | |
7886 | { | |
7887 | _arg4 = &temp0; | |
7888 | if (! wxSize_helper(_obj4, &_arg4)) | |
7889 | return NULL; | |
7890 | } | |
7891 | if (_argo6) { | |
7892 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7893 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7895 | return NULL; | |
7896 | } | |
7897 | } | |
7898 | { | |
474c48f9 | 7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7900 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
aa2a5b86 | 7901 | |
474c48f9 | 7902 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7903 | if (PyErr_Occurred()) return NULL; |
7904 | } _resultobj = Py_BuildValue("i",_result); | |
7905 | return _resultobj; | |
7906 | } | |
7907 | ||
70551f47 | 7908 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
107e4716 | 7909 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7910 | PyObject * _resultobj; |
7911 | int _result; | |
7912 | wxScrollBar * _arg0; | |
2d091820 | 7913 | PyObject * _argo0 = 0; |
107e4716 | 7914 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7915 | |
7916 | self = self; | |
107e4716 | 7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
70551f47 | 7918 | return NULL; |
2d091820 RD |
7919 | if (_argo0) { |
7920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
7923 | return NULL; | |
7924 | } | |
7925 | } | |
ab9bc19b | 7926 | { |
474c48f9 | 7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7928 | _result = (int )wxScrollBar_GetRange(_arg0); |
ab9bc19b | 7929 | |
474c48f9 | 7930 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7931 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7932 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7933 | return _resultobj; |
7934 | } | |
7935 | ||
7936 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 7937 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7938 | PyObject * _resultobj; |
7939 | int _result; | |
7940 | wxScrollBar * _arg0; | |
2d091820 | 7941 | PyObject * _argo0 = 0; |
107e4716 | 7942 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7943 | |
7944 | self = self; | |
107e4716 | 7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 7946 | return NULL; |
2d091820 RD |
7947 | if (_argo0) { |
7948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
7950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
7951 | return NULL; | |
7952 | } | |
7953 | } | |
ab9bc19b | 7954 | { |
474c48f9 | 7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7956 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
ab9bc19b | 7957 | |
474c48f9 | 7958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7959 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7960 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7961 | return _resultobj; |
7962 | } | |
7963 | ||
105e45b9 | 7964 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
107e4716 | 7965 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7966 | PyObject * _resultobj; |
7967 | int _result; | |
7968 | wxScrollBar * _arg0; | |
2d091820 | 7969 | PyObject * _argo0 = 0; |
107e4716 | 7970 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7971 | |
7972 | self = self; | |
107e4716 | 7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
70551f47 | 7974 | return NULL; |
2d091820 RD |
7975 | if (_argo0) { |
7976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
7979 | return NULL; |
7980 | } | |
7981 | } | |
ab9bc19b | 7982 | { |
474c48f9 | 7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7984 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
ab9bc19b | 7985 | |
474c48f9 | 7986 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7987 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7988 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7989 | return _resultobj; |
7990 | } | |
7991 | ||
7992 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
107e4716 | 7993 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7994 | PyObject * _resultobj; |
7995 | int _result; | |
7996 | wxScrollBar * _arg0; | |
2d091820 | 7997 | PyObject * _argo0 = 0; |
107e4716 | 7998 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7999 | |
8000 | self = self; | |
107e4716 | 8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
70551f47 | 8002 | return NULL; |
2d091820 RD |
8003 | if (_argo0) { |
8004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
8007 | return NULL; | |
8008 | } | |
8009 | } | |
ab9bc19b | 8010 | { |
474c48f9 | 8011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8012 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
ab9bc19b | 8013 | |
474c48f9 | 8014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8015 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8016 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8017 | return _resultobj; |
8018 | } | |
8019 | ||
6e8a778a RD |
8020 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
8021 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8022 | PyObject * _resultobj; | |
8023 | bool _result; | |
8024 | wxScrollBar * _arg0; | |
8025 | PyObject * _argo0 = 0; | |
8026 | char *_kwnames[] = { "self", NULL }; | |
8027 | ||
8028 | self = self; | |
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
8030 | return NULL; | |
8031 | if (_argo0) { | |
8032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
8035 | return NULL; | |
8036 | } | |
8037 | } | |
8038 | { | |
474c48f9 | 8039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8040 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
6e8a778a | 8041 | |
474c48f9 | 8042 | wxPyEndAllowThreads(__tstate); |
6e8a778a RD |
8043 | if (PyErr_Occurred()) return NULL; |
8044 | } _resultobj = Py_BuildValue("i",_result); | |
8045 | return _resultobj; | |
8046 | } | |
8047 | ||
105e45b9 | 8048 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
107e4716 | 8049 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8050 | PyObject * _resultobj; |
8051 | wxScrollBar * _arg0; | |
8052 | int _arg1; | |
2d091820 | 8053 | PyObject * _argo0 = 0; |
107e4716 | 8054 | char *_kwnames[] = { "self","viewStart", NULL }; |
70551f47 RD |
8055 | |
8056 | self = self; | |
107e4716 | 8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8058 | return NULL; |
2d091820 RD |
8059 | if (_argo0) { |
8060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 8062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
8063 | return NULL; |
8064 | } | |
8065 | } | |
ab9bc19b | 8066 | { |
474c48f9 | 8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8068 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
ab9bc19b | 8069 | |
474c48f9 | 8070 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8071 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8072 | } Py_INCREF(Py_None); |
70551f47 RD |
8073 | _resultobj = Py_None; |
8074 | return _resultobj; | |
8075 | } | |
8076 | ||
8077 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 8078 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8079 | PyObject * _resultobj; |
8080 | wxScrollBar * _arg0; | |
8081 | int _arg1; | |
8082 | int _arg2; | |
8083 | int _arg3; | |
8084 | int _arg4; | |
2d091820 RD |
8085 | bool _arg5 = (bool ) TRUE; |
8086 | PyObject * _argo0 = 0; | |
8087 | int tempbool5 = (int) TRUE; | |
107e4716 | 8088 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
70551f47 RD |
8089 | |
8090 | self = self; | |
107e4716 | 8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 8092 | return NULL; |
2d091820 RD |
8093 | if (_argo0) { |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
8097 | return NULL; | |
8098 | } | |
8099 | } | |
8100 | _arg5 = (bool ) tempbool5; | |
ab9bc19b | 8101 | { |
474c48f9 | 8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8103 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 8104 | |
474c48f9 | 8105 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8106 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8107 | } Py_INCREF(Py_None); |
70551f47 RD |
8108 | _resultobj = Py_None; |
8109 | return _resultobj; | |
8110 | } | |
8111 | ||
62bd0874 RD |
8112 | static void *SwigwxSpinButtonTowxControl(void *ptr) { |
8113 | wxSpinButton *src; | |
8114 | wxControl *dest; | |
8115 | src = (wxSpinButton *) ptr; | |
8116 | dest = (wxControl *) src; | |
8117 | return (void *) dest; | |
8118 | } | |
8119 | ||
8120 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8121 | wxSpinButton *src; | |
8122 | wxWindow *dest; | |
8123 | src = (wxSpinButton *) ptr; | |
8124 | dest = (wxWindow *) src; | |
8125 | return (void *) dest; | |
8126 | } | |
8127 | ||
8128 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8129 | wxSpinButton *src; | |
8130 | wxEvtHandler *dest; | |
8131 | src = (wxSpinButton *) ptr; | |
8132 | dest = (wxEvtHandler *) src; | |
8133 | return (void *) dest; | |
8134 | } | |
8135 | ||
9df61a29 RD |
8136 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
8137 | wxSpinButton *src; | |
8138 | wxObject *dest; | |
8139 | src = (wxSpinButton *) ptr; | |
8140 | dest = (wxObject *) src; | |
8141 | return (void *) dest; | |
8142 | } | |
8143 | ||
62bd0874 | 8144 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 8145 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8146 | PyObject * _resultobj; |
8147 | wxSpinButton * _result; | |
8148 | wxWindow * _arg0; | |
2d091820 | 8149 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
8150 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8151 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
8152 | long _arg4 = (long ) wxSP_HORIZONTAL; |
8153 | char * _arg5 = (char *) "spinButton"; | |
8154 | PyObject * _argo0 = 0; | |
37f6a977 RD |
8155 | wxPoint temp; |
8156 | PyObject * _obj2 = 0; | |
8157 | wxSize temp0; | |
8158 | PyObject * _obj3 = 0; | |
107e4716 | 8159 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
62bd0874 RD |
8160 | char _ptemp[128]; |
8161 | ||
8162 | self = self; | |
37f6a977 | 8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
62bd0874 | 8164 | return NULL; |
2d091820 RD |
8165 | if (_argo0) { |
8166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
62bd0874 RD |
8168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
8169 | return NULL; | |
8170 | } | |
8171 | } | |
37f6a977 RD |
8172 | if (_obj2) |
8173 | { | |
8174 | _arg2 = &temp; | |
8175 | if (! wxPoint_helper(_obj2, &_arg2)) | |
62bd0874 | 8176 | return NULL; |
37f6a977 RD |
8177 | } |
8178 | if (_obj3) | |
8179 | { | |
8180 | _arg3 = &temp0; | |
8181 | if (! wxSize_helper(_obj3, &_arg3)) | |
62bd0874 | 8182 | return NULL; |
37f6a977 | 8183 | } |
ab9bc19b | 8184 | { |
474c48f9 | 8185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8186 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
ab9bc19b | 8187 | |
474c48f9 | 8188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8189 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8190 | } if (_result) { |
8191 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8192 | _resultobj = Py_BuildValue("s",_ptemp); | |
8193 | } else { | |
8194 | Py_INCREF(Py_None); | |
8195 | _resultobj = Py_None; | |
8196 | } | |
62bd0874 RD |
8197 | return _resultobj; |
8198 | } | |
8199 | ||
aa2a5b86 RD |
8200 | #define new_wxPreSpinButton() (new wxSpinButton()) |
8201 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8202 | PyObject * _resultobj; | |
8203 | wxSpinButton * _result; | |
8204 | char *_kwnames[] = { NULL }; | |
8205 | char _ptemp[128]; | |
8206 | ||
8207 | self = self; | |
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8209 | return NULL; | |
8210 | { | |
474c48f9 | 8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8212 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
aa2a5b86 | 8213 | |
474c48f9 | 8214 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8215 | if (PyErr_Occurred()) return NULL; |
8216 | } if (_result) { | |
8217 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8218 | _resultobj = Py_BuildValue("s",_ptemp); | |
8219 | } else { | |
8220 | Py_INCREF(Py_None); | |
8221 | _resultobj = Py_None; | |
8222 | } | |
8223 | return _resultobj; | |
8224 | } | |
8225 | ||
8226 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8227 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject * _resultobj; | |
8229 | bool _result; | |
8230 | wxSpinButton * _arg0; | |
8231 | wxWindow * _arg1; | |
8232 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8233 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8234 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8235 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8236 | char * _arg6 = (char *) "spinButton"; | |
8237 | PyObject * _argo0 = 0; | |
8238 | PyObject * _argo1 = 0; | |
8239 | wxPoint temp; | |
8240 | PyObject * _obj3 = 0; | |
8241 | wxSize temp0; | |
8242 | PyObject * _obj4 = 0; | |
8243 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8244 | ||
8245 | self = self; | |
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8247 | return NULL; | |
8248 | if (_argo0) { | |
8249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8252 | return NULL; | |
8253 | } | |
8254 | } | |
8255 | if (_argo1) { | |
8256 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8257 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8259 | return NULL; | |
8260 | } | |
8261 | } | |
8262 | if (_obj3) | |
8263 | { | |
8264 | _arg3 = &temp; | |
8265 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8266 | return NULL; | |
8267 | } | |
8268 | if (_obj4) | |
8269 | { | |
8270 | _arg4 = &temp0; | |
8271 | if (! wxSize_helper(_obj4, &_arg4)) | |
8272 | return NULL; | |
8273 | } | |
8274 | { | |
474c48f9 | 8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8276 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 8277 | |
474c48f9 | 8278 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8279 | if (PyErr_Occurred()) return NULL; |
8280 | } _resultobj = Py_BuildValue("i",_result); | |
8281 | return _resultobj; | |
8282 | } | |
8283 | ||
62bd0874 | 8284 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
107e4716 | 8285 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8286 | PyObject * _resultobj; |
8287 | int _result; | |
8288 | wxSpinButton * _arg0; | |
2d091820 | 8289 | PyObject * _argo0 = 0; |
107e4716 | 8290 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8291 | |
8292 | self = self; | |
107e4716 | 8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
62bd0874 | 8294 | return NULL; |
2d091820 RD |
8295 | if (_argo0) { |
8296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8299 | return NULL; | |
8300 | } | |
8301 | } | |
ab9bc19b | 8302 | { |
474c48f9 | 8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8304 | _result = (int )wxSpinButton_GetMax(_arg0); |
ab9bc19b | 8305 | |
474c48f9 | 8306 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8307 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8308 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8309 | return _resultobj; |
8310 | } | |
8311 | ||
8312 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 8313 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8314 | PyObject * _resultobj; |
8315 | int _result; | |
8316 | wxSpinButton * _arg0; | |
2d091820 | 8317 | PyObject * _argo0 = 0; |
107e4716 | 8318 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8319 | |
8320 | self = self; | |
107e4716 | 8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
62bd0874 | 8322 | return NULL; |
2d091820 RD |
8323 | if (_argo0) { |
8324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8327 | return NULL; | |
8328 | } | |
8329 | } | |
ab9bc19b | 8330 | { |
474c48f9 | 8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8332 | _result = (int )wxSpinButton_GetMin(_arg0); |
ab9bc19b | 8333 | |
474c48f9 | 8334 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8335 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8336 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8337 | return _resultobj; |
8338 | } | |
8339 | ||
8340 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 8341 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8342 | PyObject * _resultobj; |
8343 | int _result; | |
8344 | wxSpinButton * _arg0; | |
2d091820 | 8345 | PyObject * _argo0 = 0; |
107e4716 | 8346 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8347 | |
8348 | self = self; | |
107e4716 | 8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
62bd0874 | 8350 | return NULL; |
2d091820 RD |
8351 | if (_argo0) { |
8352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8355 | return NULL; | |
8356 | } | |
8357 | } | |
ab9bc19b | 8358 | { |
474c48f9 | 8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8360 | _result = (int )wxSpinButton_GetValue(_arg0); |
ab9bc19b | 8361 | |
474c48f9 | 8362 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8363 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8364 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8365 | return _resultobj; |
8366 | } | |
8367 | ||
8368 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 8369 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8370 | PyObject * _resultobj; |
8371 | wxSpinButton * _arg0; | |
8372 | int _arg1; | |
8373 | int _arg2; | |
2d091820 | 8374 | PyObject * _argo0 = 0; |
107e4716 | 8375 | char *_kwnames[] = { "self","min","max", NULL }; |
62bd0874 RD |
8376 | |
8377 | self = self; | |
107e4716 | 8378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
62bd0874 | 8379 | return NULL; |
2d091820 RD |
8380 | if (_argo0) { |
8381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8384 | return NULL; | |
8385 | } | |
8386 | } | |
ab9bc19b | 8387 | { |
474c48f9 | 8388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8389 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 8390 | |
474c48f9 | 8391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8392 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8393 | } Py_INCREF(Py_None); |
62bd0874 RD |
8394 | _resultobj = Py_None; |
8395 | return _resultobj; | |
8396 | } | |
8397 | ||
8398 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 8399 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8400 | PyObject * _resultobj; |
8401 | wxSpinButton * _arg0; | |
8402 | int _arg1; | |
2d091820 | 8403 | PyObject * _argo0 = 0; |
107e4716 | 8404 | char *_kwnames[] = { "self","value", NULL }; |
62bd0874 RD |
8405 | |
8406 | self = self; | |
107e4716 | 8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
62bd0874 | 8408 | return NULL; |
2d091820 RD |
8409 | if (_argo0) { |
8410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8413 | return NULL; | |
8414 | } | |
8415 | } | |
ab9bc19b | 8416 | { |
474c48f9 | 8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8418 | wxSpinButton_SetValue(_arg0,_arg1); |
ab9bc19b | 8419 | |
474c48f9 | 8420 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8421 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8422 | } Py_INCREF(Py_None); |
62bd0874 RD |
8423 | _resultobj = Py_None; |
8424 | return _resultobj; | |
8425 | } | |
8426 | ||
70551f47 RD |
8427 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { |
8428 | wxStaticBitmap *src; | |
8429 | wxControl *dest; | |
8430 | src = (wxStaticBitmap *) ptr; | |
8431 | dest = (wxControl *) src; | |
8432 | return (void *) dest; | |
8433 | } | |
8434 | ||
8435 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8436 | wxStaticBitmap *src; | |
8437 | wxWindow *dest; | |
8438 | src = (wxStaticBitmap *) ptr; | |
8439 | dest = (wxWindow *) src; | |
8440 | return (void *) dest; | |
8441 | } | |
8442 | ||
8443 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8444 | wxStaticBitmap *src; | |
8445 | wxEvtHandler *dest; | |
8446 | src = (wxStaticBitmap *) ptr; | |
8447 | dest = (wxEvtHandler *) src; | |
8448 | return (void *) dest; | |
8449 | } | |
8450 | ||
9df61a29 RD |
8451 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8452 | wxStaticBitmap *src; | |
8453 | wxObject *dest; | |
8454 | src = (wxStaticBitmap *) ptr; | |
8455 | dest = (wxObject *) src; | |
8456 | return (void *) dest; | |
8457 | } | |
8458 | ||
70551f47 | 8459 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 8460 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8461 | PyObject * _resultobj; |
8462 | wxStaticBitmap * _result; | |
8463 | wxWindow * _arg0; | |
8464 | wxWindowID _arg1; | |
8465 | wxBitmap * _arg2; | |
b68dc582 RD |
8466 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8467 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
8468 | long _arg5 = (long ) 0; |
8469 | char * _arg6 = (char *) "staticBitmap"; | |
8470 | PyObject * _argo0 = 0; | |
aa2a5b86 RD |
8471 | PyObject * _argo2 = 0; |
8472 | wxPoint temp; | |
8473 | PyObject * _obj3 = 0; | |
8474 | wxSize temp0; | |
8475 | PyObject * _obj4 = 0; | |
8476 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8477 | char _ptemp[128]; | |
8478 | ||
8479 | self = self; | |
8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8481 | return NULL; | |
8482 | if (_argo0) { | |
8483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8486 | return NULL; | |
8487 | } | |
8488 | } | |
8489 | if (_argo2) { | |
8490 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8493 | return NULL; | |
8494 | } | |
8495 | } | |
8496 | if (_obj3) | |
8497 | { | |
8498 | _arg3 = &temp; | |
8499 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8500 | return NULL; | |
8501 | } | |
8502 | if (_obj4) | |
8503 | { | |
8504 | _arg4 = &temp0; | |
8505 | if (! wxSize_helper(_obj4, &_arg4)) | |
8506 | return NULL; | |
8507 | } | |
8508 | { | |
474c48f9 | 8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8510 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 8511 | |
474c48f9 | 8512 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8513 | if (PyErr_Occurred()) return NULL; |
8514 | } if (_result) { | |
8515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8516 | _resultobj = Py_BuildValue("s",_ptemp); | |
8517 | } else { | |
8518 | Py_INCREF(Py_None); | |
8519 | _resultobj = Py_None; | |
8520 | } | |
8521 | return _resultobj; | |
8522 | } | |
8523 | ||
8524 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8525 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject * _resultobj; | |
8527 | wxStaticBitmap * _result; | |
8528 | char *_kwnames[] = { NULL }; | |
8529 | char _ptemp[128]; | |
8530 | ||
8531 | self = self; | |
8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8533 | return NULL; | |
8534 | { | |
474c48f9 | 8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8536 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
aa2a5b86 | 8537 | |
474c48f9 | 8538 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8539 | if (PyErr_Occurred()) return NULL; |
8540 | } if (_result) { | |
8541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8542 | _resultobj = Py_BuildValue("s",_ptemp); | |
8543 | } else { | |
8544 | Py_INCREF(Py_None); | |
8545 | _resultobj = Py_None; | |
8546 | } | |
8547 | return _resultobj; | |
8548 | } | |
8549 | ||
8550 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8551 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8552 | PyObject * _resultobj; | |
8553 | bool _result; | |
8554 | wxStaticBitmap * _arg0; | |
8555 | wxWindow * _arg1; | |
8556 | wxWindowID _arg2; | |
8557 | wxBitmap * _arg3; | |
8558 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8559 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8560 | long _arg6 = (long ) 0; | |
8561 | char * _arg7 = (char *) "staticBitmap"; | |
8562 | PyObject * _argo0 = 0; | |
8563 | PyObject * _argo1 = 0; | |
8564 | PyObject * _argo3 = 0; | |
37f6a977 | 8565 | wxPoint temp; |
37f6a977 | 8566 | PyObject * _obj4 = 0; |
aa2a5b86 RD |
8567 | wxSize temp0; |
8568 | PyObject * _obj5 = 0; | |
8569 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
70551f47 RD |
8570 | |
8571 | self = self; | |
aa2a5b86 | 8572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) |
70551f47 | 8573 | return NULL; |
2d091820 RD |
8574 | if (_argo0) { |
8575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
8576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
8577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
70551f47 RD |
8578 | return NULL; |
8579 | } | |
8580 | } | |
aa2a5b86 RD |
8581 | if (_argo1) { |
8582 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8583 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
70551f47 RD |
8585 | return NULL; |
8586 | } | |
8587 | } | |
aa2a5b86 RD |
8588 | if (_argo3) { |
8589 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8590 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8592 | return NULL; | |
8593 | } | |
8594 | } | |
8595 | if (_obj4) | |
37f6a977 | 8596 | { |
aa2a5b86 RD |
8597 | _arg4 = &temp; |
8598 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 8599 | return NULL; |
37f6a977 | 8600 | } |
aa2a5b86 | 8601 | if (_obj5) |
37f6a977 | 8602 | { |
aa2a5b86 RD |
8603 | _arg5 = &temp0; |
8604 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 8605 | return NULL; |
37f6a977 | 8606 | } |
ab9bc19b | 8607 | { |
474c48f9 | 8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8609 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
ab9bc19b | 8610 | |
474c48f9 | 8611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8612 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 8613 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8614 | return _resultobj; |
8615 | } | |
8616 | ||
8617 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
107e4716 | 8618 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8619 | PyObject * _resultobj; |
8620 | wxBitmap * _result; | |
8621 | wxStaticBitmap * _arg0; | |
2d091820 | 8622 | PyObject * _argo0 = 0; |
107e4716 | 8623 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8624 | char _ptemp[128]; |
8625 | ||
8626 | self = self; | |
107e4716 | 8627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
70551f47 | 8628 | return NULL; |
2d091820 RD |
8629 | if (_argo0) { |
8630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
8632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
8633 | return NULL; | |
8634 | } | |
8635 | } | |
ab9bc19b | 8636 | { |
474c48f9 | 8637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8638 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
ab9bc19b | 8639 | |
474c48f9 | 8640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8641 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
8642 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
8643 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
8644 | return _resultobj; |
8645 | } | |
8646 | ||
8647 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
107e4716 | 8648 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8649 | PyObject * _resultobj; |
8650 | wxStaticBitmap * _arg0; | |
8651 | wxBitmap * _arg1; | |
2d091820 RD |
8652 | PyObject * _argo0 = 0; |
8653 | PyObject * _argo1 = 0; | |
107e4716 | 8654 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
8655 | |
8656 | self = self; | |
107e4716 | 8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8658 | return NULL; |
2d091820 RD |
8659 | if (_argo0) { |
8660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
8662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
8663 | return NULL; | |
8664 | } | |
8665 | } | |
2d091820 RD |
8666 | if (_argo1) { |
8667 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8668 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
8670 | return NULL; | |
8671 | } | |
8672 | } | |
ab9bc19b | 8673 | { |
474c48f9 | 8674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8675 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
ab9bc19b | 8676 | |
474c48f9 | 8677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8678 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8679 | } Py_INCREF(Py_None); |
70551f47 RD |
8680 | _resultobj = Py_None; |
8681 | return _resultobj; | |
8682 | } | |
8683 | ||
8bf5d46e | 8684 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
107e4716 | 8685 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
8686 | PyObject * _resultobj; |
8687 | wxStaticBitmap * _arg0; | |
8688 | wxIcon * _arg1; | |
2d091820 RD |
8689 | PyObject * _argo0 = 0; |
8690 | PyObject * _argo1 = 0; | |
107e4716 | 8691 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
8692 | |
8693 | self = self; | |
107e4716 | 8694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 8695 | return NULL; |
2d091820 RD |
8696 | if (_argo0) { |
8697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
8699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
8700 | return NULL; | |
8701 | } | |
8702 | } | |
2d091820 RD |
8703 | if (_argo1) { |
8704 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8705 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
8707 | return NULL; | |
8708 | } | |
8709 | } | |
8710 | { | |
474c48f9 | 8711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8712 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8bf5d46e | 8713 | |
474c48f9 | 8714 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8715 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8716 | } Py_INCREF(Py_None); |
8717 | _resultobj = Py_None; | |
8718 | return _resultobj; | |
8719 | } | |
8720 | ||
70551f47 RD |
8721 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
8722 | wxRadioBox *src; | |
8723 | wxControl *dest; | |
8724 | src = (wxRadioBox *) ptr; | |
8725 | dest = (wxControl *) src; | |
8726 | return (void *) dest; | |
8727 | } | |
8728 | ||
8729 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8730 | wxRadioBox *src; | |
8731 | wxWindow *dest; | |
8732 | src = (wxRadioBox *) ptr; | |
8733 | dest = (wxWindow *) src; | |
8734 | return (void *) dest; | |
8735 | } | |
8736 | ||
8737 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8738 | wxRadioBox *src; | |
8739 | wxEvtHandler *dest; | |
8740 | src = (wxRadioBox *) ptr; | |
8741 | dest = (wxEvtHandler *) src; | |
8742 | return (void *) dest; | |
8743 | } | |
8744 | ||
9df61a29 RD |
8745 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
8746 | wxRadioBox *src; | |
8747 | wxObject *dest; | |
8748 | src = (wxRadioBox *) ptr; | |
8749 | dest = (wxObject *) src; | |
8750 | return (void *) dest; | |
8751 | } | |
8752 | ||
70551f47 | 8753 | #define new_wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (new wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10)) |
107e4716 | 8754 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8755 | PyObject * _resultobj; |
8756 | wxRadioBox * _result; | |
8757 | wxWindow * _arg0; | |
8758 | wxWindowID _arg1; | |
8759 | wxString * _arg2; | |
b68dc582 RD |
8760 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8761 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
8762 | int _arg5 = (int ) 0; |
8763 | wxString * _arg6 = (wxString *) NULL; | |
8764 | int _arg7 = (int ) 0; | |
8765 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
b68dc582 | 8766 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
8767 | char * _arg10 = (char *) "radioBox"; |
8768 | PyObject * _argo0 = 0; | |
70551f47 | 8769 | PyObject * _obj2 = 0; |
37f6a977 RD |
8770 | wxPoint temp; |
8771 | PyObject * _obj3 = 0; | |
8772 | wxSize temp0; | |
8773 | PyObject * _obj4 = 0; | |
70551f47 | 8774 | PyObject * _obj6 = 0; |
2d091820 | 8775 | PyObject * _argo9 = 0; |
e02c03a4 | 8776 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
70551f47 RD |
8777 | char _ptemp[128]; |
8778 | ||
8779 | self = self; | |
37f6a977 | 8780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) |
70551f47 | 8781 | return NULL; |
2d091820 RD |
8782 | if (_argo0) { |
8783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
8786 | return NULL; | |
8787 | } | |
8788 | } | |
8789 | { | |
c8bc7bb8 RD |
8790 | _arg2 = wxString_in_helper(_obj2); |
8791 | if (_arg2 == NULL) | |
70551f47 | 8792 | return NULL; |
70551f47 | 8793 | } |
37f6a977 RD |
8794 | if (_obj3) |
8795 | { | |
8796 | _arg3 = &temp; | |
8797 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 8798 | return NULL; |
37f6a977 RD |
8799 | } |
8800 | if (_obj4) | |
8801 | { | |
8802 | _arg4 = &temp0; | |
8803 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 8804 | return NULL; |
37f6a977 | 8805 | } |
70551f47 RD |
8806 | if (_obj6) |
8807 | { | |
8808 | _arg6 = wxString_LIST_helper(_obj6); | |
8809 | if (_arg6 == NULL) { | |
8810 | return NULL; | |
8811 | } | |
8812 | } | |
2d091820 RD |
8813 | if (_argo9) { |
8814 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8815 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
70551f47 RD |
8816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
8817 | return NULL; | |
8818 | } | |
8819 | } | |
8820 | { | |
ab9bc19b RD |
8821 | if (_obj6) { |
8822 | _arg5 = PyList_Size(_obj6); | |
8823 | } | |
8824 | else { | |
8825 | _arg5 = 0; | |
8826 | } | |
70551f47 | 8827 | } |
ab9bc19b | 8828 | { |
474c48f9 | 8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8830 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
ab9bc19b | 8831 | |
474c48f9 | 8832 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8833 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8834 | } if (_result) { |
8835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8836 | _resultobj = Py_BuildValue("s",_ptemp); | |
8837 | } else { | |
8838 | Py_INCREF(Py_None); | |
8839 | _resultobj = Py_None; | |
8840 | } | |
70551f47 RD |
8841 | { |
8842 | if (_obj2) | |
8843 | delete _arg2; | |
8844 | } | |
8845 | { | |
8846 | delete [] _arg6; | |
8847 | } | |
8848 | return _resultobj; | |
8849 | } | |
8850 | ||
aa2a5b86 RD |
8851 | #define new_wxPreRadioBox() (new wxRadioBox()) |
8852 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8853 | PyObject * _resultobj; | |
8854 | wxRadioBox * _result; | |
8855 | char *_kwnames[] = { NULL }; | |
8856 | char _ptemp[128]; | |
8857 | ||
8858 | self = self; | |
8859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8860 | return NULL; | |
8861 | { | |
474c48f9 | 8862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8863 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
aa2a5b86 | 8864 | |
474c48f9 | 8865 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8866 | if (PyErr_Occurred()) return NULL; |
8867 | } if (_result) { | |
8868 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8869 | _resultobj = Py_BuildValue("s",_ptemp); | |
8870 | } else { | |
8871 | Py_INCREF(Py_None); | |
8872 | _resultobj = Py_None; | |
8873 | } | |
8874 | return _resultobj; | |
8875 | } | |
8876 | ||
8877 | #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)) | |
8878 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject * _resultobj; | |
8880 | bool _result; | |
8881 | wxRadioBox * _arg0; | |
8882 | wxWindow * _arg1; | |
8883 | wxWindowID _arg2; | |
8884 | wxString * _arg3; | |
8885 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8886 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8887 | int _arg6 = (int ) 0; | |
8888 | wxString * _arg7 = (wxString *) NULL; | |
8889 | int _arg8 = (int ) 0; | |
8890 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8891 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8892 | char * _arg11 = (char *) "radioBox"; | |
8893 | PyObject * _argo0 = 0; | |
8894 | PyObject * _argo1 = 0; | |
8895 | PyObject * _obj3 = 0; | |
8896 | wxPoint temp; | |
8897 | PyObject * _obj4 = 0; | |
8898 | wxSize temp0; | |
8899 | PyObject * _obj5 = 0; | |
8900 | PyObject * _obj7 = 0; | |
8901 | PyObject * _argo10 = 0; | |
8902 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8903 | ||
8904 | self = self; | |
8905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8906 | return NULL; | |
8907 | if (_argo0) { | |
8908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8911 | return NULL; | |
8912 | } | |
8913 | } | |
8914 | if (_argo1) { | |
8915 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8916 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8918 | return NULL; | |
8919 | } | |
8920 | } | |
8921 | { | |
c8bc7bb8 RD |
8922 | _arg3 = wxString_in_helper(_obj3); |
8923 | if (_arg3 == NULL) | |
aa2a5b86 | 8924 | return NULL; |
aa2a5b86 RD |
8925 | } |
8926 | if (_obj4) | |
8927 | { | |
8928 | _arg4 = &temp; | |
8929 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8930 | return NULL; | |
8931 | } | |
8932 | if (_obj5) | |
8933 | { | |
8934 | _arg5 = &temp0; | |
8935 | if (! wxSize_helper(_obj5, &_arg5)) | |
8936 | return NULL; | |
8937 | } | |
8938 | if (_obj7) | |
8939 | { | |
8940 | _arg7 = wxString_LIST_helper(_obj7); | |
8941 | if (_arg7 == NULL) { | |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
8945 | if (_argo10) { | |
8946 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8947 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8949 | return NULL; | |
8950 | } | |
8951 | } | |
8952 | { | |
8953 | if (_obj7) { | |
8954 | _arg6 = PyList_Size(_obj7); | |
8955 | } | |
8956 | else { | |
8957 | _arg6 = 0; | |
8958 | } | |
8959 | } | |
8960 | { | |
474c48f9 | 8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8962 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); |
aa2a5b86 | 8963 | |
474c48f9 | 8964 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8965 | if (PyErr_Occurred()) return NULL; |
8966 | } _resultobj = Py_BuildValue("i",_result); | |
8967 | { | |
8968 | if (_obj3) | |
8969 | delete _arg3; | |
8970 | } | |
8971 | { | |
8972 | delete [] _arg7; | |
8973 | } | |
8974 | return _resultobj; | |
8975 | } | |
8976 | ||
c3c1cebe | 8977 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
107e4716 | 8978 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8979 | PyObject * _resultobj; |
8980 | wxRadioBox * _arg0; | |
8981 | bool _arg1; | |
2d091820 | 8982 | PyObject * _argo0 = 0; |
70551f47 | 8983 | int tempbool1; |
107e4716 | 8984 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
8985 | |
8986 | self = self; | |
107e4716 | 8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 8988 | return NULL; |
2d091820 RD |
8989 | if (_argo0) { |
8990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 8992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
70551f47 RD |
8993 | return NULL; |
8994 | } | |
8995 | } | |
8996 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 8997 | { |
474c48f9 | 8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8999 | wxRadioBox_Enable(_arg0,_arg1); |
ab9bc19b | 9000 | |
474c48f9 | 9001 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9002 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9003 | } Py_INCREF(Py_None); |
70551f47 RD |
9004 | _resultobj = Py_None; |
9005 | return _resultobj; | |
9006 | } | |
9007 | ||
c3c1cebe | 9008 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
107e4716 | 9009 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9010 | PyObject * _resultobj; |
9011 | wxRadioBox * _arg0; | |
9012 | int _arg1; | |
9013 | bool _arg2; | |
2d091820 | 9014 | PyObject * _argo0 = 0; |
70551f47 | 9015 | int tempbool2; |
107e4716 | 9016 | char *_kwnames[] = { "self","n","enable", NULL }; |
70551f47 RD |
9017 | |
9018 | self = self; | |
107e4716 | 9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 9020 | return NULL; |
2d091820 RD |
9021 | if (_argo0) { |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
70551f47 RD |
9025 | return NULL; |
9026 | } | |
9027 | } | |
9028 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 9029 | { |
474c48f9 | 9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9031 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
ab9bc19b | 9032 | |
474c48f9 | 9033 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9034 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9035 | } Py_INCREF(Py_None); |
70551f47 RD |
9036 | _resultobj = Py_None; |
9037 | return _resultobj; | |
9038 | } | |
9039 | ||
9040 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 9041 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9042 | PyObject * _resultobj; |
9043 | int _result; | |
9044 | wxRadioBox * _arg0; | |
9045 | wxString * _arg1; | |
2d091820 | 9046 | PyObject * _argo0 = 0; |
70551f47 | 9047 | PyObject * _obj1 = 0; |
107e4716 | 9048 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
9049 | |
9050 | self = self; | |
107e4716 | 9051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9052 | return NULL; |
2d091820 RD |
9053 | if (_argo0) { |
9054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
9057 | return NULL; | |
9058 | } | |
9059 | } | |
9060 | { | |
c8bc7bb8 RD |
9061 | _arg1 = wxString_in_helper(_obj1); |
9062 | if (_arg1 == NULL) | |
70551f47 | 9063 | return NULL; |
70551f47 | 9064 | } |
ab9bc19b | 9065 | { |
474c48f9 | 9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9067 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
ab9bc19b | 9068 | |
474c48f9 | 9069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9070 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9071 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9072 | { |
9073 | if (_obj1) | |
9074 | delete _arg1; | |
9075 | } | |
9076 | return _resultobj; | |
9077 | } | |
9078 | ||
2c8a649d RD |
9079 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
9080 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9081 | PyObject * _resultobj; |
9082 | wxString * _result; | |
9083 | wxRadioBox * _arg0; | |
9084 | int _arg1; | |
2d091820 | 9085 | PyObject * _argo0 = 0; |
107e4716 | 9086 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
9087 | |
9088 | self = self; | |
2c8a649d | 9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9090 | return NULL; |
2d091820 RD |
9091 | if (_argo0) { |
9092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
70551f47 RD |
9095 | return NULL; |
9096 | } | |
9097 | } | |
70551f47 | 9098 | { |
474c48f9 | 9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9100 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
ab9bc19b | 9101 | |
474c48f9 | 9102 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9103 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9104 | }{ |
c8bc7bb8 RD |
9105 | #if wxUSE_UNICODE |
9106 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9107 | #else | |
e02c03a4 | 9108 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9109 | #endif |
70551f47 RD |
9110 | } |
9111 | { | |
9112 | delete _result; | |
9113 | } | |
9114 | return _resultobj; | |
9115 | } | |
9116 | ||
2c8a649d RD |
9117 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9118 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9119 | PyObject * _resultobj; |
2c8a649d | 9120 | wxString * _result; |
70551f47 | 9121 | wxRadioBox * _arg0; |
2c8a649d | 9122 | int _arg1; |
2d091820 | 9123 | PyObject * _argo0 = 0; |
2c8a649d | 9124 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
9125 | |
9126 | self = self; | |
2c8a649d | 9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9128 | return NULL; |
2d091820 RD |
9129 | if (_argo0) { |
9130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
9133 | return NULL; |
9134 | } | |
9135 | } | |
ab9bc19b | 9136 | { |
474c48f9 | 9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9138 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); |
ab9bc19b | 9139 | |
474c48f9 | 9140 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9141 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9142 | }{ |
c8bc7bb8 RD |
9143 | #if wxUSE_UNICODE |
9144 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9145 | #else | |
2c8a649d | 9146 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9147 | #endif |
2c8a649d RD |
9148 | } |
9149 | { | |
9150 | delete _result; | |
9151 | } | |
70551f47 RD |
9152 | return _resultobj; |
9153 | } | |
9154 | ||
2c8a649d RD |
9155 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9156 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9157 | PyObject * _resultobj; |
70551f47 RD |
9158 | wxRadioBox * _arg0; |
9159 | int _arg1; | |
2c8a649d | 9160 | wxString * _arg2; |
2d091820 | 9161 | PyObject * _argo0 = 0; |
2c8a649d RD |
9162 | PyObject * _obj2 = 0; |
9163 | char *_kwnames[] = { "self","item","label", NULL }; | |
70551f47 RD |
9164 | |
9165 | self = self; | |
2c8a649d | 9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 9167 | return NULL; |
2d091820 RD |
9168 | if (_argo0) { |
9169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
9172 | return NULL; |
9173 | } | |
9174 | } | |
2c8a649d | 9175 | { |
c8bc7bb8 RD |
9176 | _arg2 = wxString_in_helper(_obj2); |
9177 | if (_arg2 == NULL) | |
2c8a649d | 9178 | return NULL; |
2c8a649d | 9179 | } |
70551f47 | 9180 | { |
474c48f9 | 9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9182 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); |
ab9bc19b | 9183 | |
474c48f9 | 9184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9185 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
9186 | } Py_INCREF(Py_None); |
9187 | _resultobj = Py_None; | |
70551f47 | 9188 | { |
2c8a649d RD |
9189 | if (_obj2) |
9190 | delete _arg2; | |
70551f47 RD |
9191 | } |
9192 | return _resultobj; | |
9193 | } | |
9194 | ||
2c8a649d RD |
9195 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
9196 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9197 | PyObject * _resultobj; |
2c8a649d | 9198 | int _result; |
70551f47 | 9199 | wxRadioBox * _arg0; |
2d091820 | 9200 | PyObject * _argo0 = 0; |
107e4716 | 9201 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9202 | |
9203 | self = self; | |
2c8a649d | 9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 9205 | return NULL; |
2d091820 RD |
9206 | if (_argo0) { |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
9210 | return NULL; |
9211 | } | |
9212 | } | |
70551f47 | 9213 | { |
474c48f9 | 9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9215 | _result = (int )wxRadioBox_GetSelection(_arg0); |
ab9bc19b | 9216 | |
474c48f9 | 9217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9218 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9219 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9220 | return _resultobj; |
9221 | } | |
9222 | ||
2c8a649d RD |
9223 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
9224 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9225 | PyObject * _resultobj; |
2c8a649d | 9226 | wxString * _result; |
70551f47 | 9227 | wxRadioBox * _arg0; |
2d091820 | 9228 | PyObject * _argo0 = 0; |
107e4716 | 9229 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9230 | |
9231 | self = self; | |
2c8a649d | 9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 9233 | return NULL; |
2d091820 RD |
9234 | if (_argo0) { |
9235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
9238 | return NULL; |
9239 | } | |
9240 | } | |
ab9bc19b | 9241 | { |
474c48f9 | 9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9243 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
ab9bc19b | 9244 | |
474c48f9 | 9245 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9246 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9247 | }{ |
c8bc7bb8 RD |
9248 | #if wxUSE_UNICODE |
9249 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9250 | #else | |
2c8a649d | 9251 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9252 | #endif |
2c8a649d RD |
9253 | } |
9254 | { | |
9255 | delete _result; | |
9256 | } | |
70551f47 RD |
9257 | return _resultobj; |
9258 | } | |
9259 | ||
2c8a649d RD |
9260 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9261 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9262 | PyObject * _resultobj; |
2c8a649d | 9263 | int _result; |
70551f47 | 9264 | wxRadioBox * _arg0; |
2d091820 | 9265 | PyObject * _argo0 = 0; |
2c8a649d | 9266 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9267 | |
9268 | self = self; | |
2c8a649d | 9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
70551f47 | 9270 | return NULL; |
2d091820 RD |
9271 | if (_argo0) { |
9272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
70551f47 RD |
9275 | return NULL; |
9276 | } | |
9277 | } | |
ab9bc19b | 9278 | { |
474c48f9 | 9279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9280 | _result = (int )wxRadioBox_GetCount(_arg0); |
ab9bc19b | 9281 | |
474c48f9 | 9282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9283 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9284 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9285 | return _resultobj; |
9286 | } | |
9287 | ||
9288 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 9289 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9290 | PyObject * _resultobj; |
9291 | wxRadioBox * _arg0; | |
9292 | int _arg1; | |
2d091820 | 9293 | PyObject * _argo0 = 0; |
107e4716 | 9294 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
9295 | |
9296 | self = self; | |
107e4716 | 9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9298 | return NULL; |
2d091820 RD |
9299 | if (_argo0) { |
9300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9303 | return NULL; | |
9304 | } | |
9305 | } | |
ab9bc19b | 9306 | { |
474c48f9 | 9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9308 | wxRadioBox_SetSelection(_arg0,_arg1); |
ab9bc19b | 9309 | |
474c48f9 | 9310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9311 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9312 | } Py_INCREF(Py_None); |
70551f47 RD |
9313 | _resultobj = Py_None; |
9314 | return _resultobj; | |
9315 | } | |
9316 | ||
9317 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 9318 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9319 | PyObject * _resultobj; |
9320 | wxRadioBox * _arg0; | |
9321 | wxString * _arg1; | |
2d091820 | 9322 | PyObject * _argo0 = 0; |
70551f47 | 9323 | PyObject * _obj1 = 0; |
107e4716 | 9324 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
9325 | |
9326 | self = self; | |
107e4716 | 9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9328 | return NULL; |
2d091820 RD |
9329 | if (_argo0) { |
9330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9333 | return NULL; | |
9334 | } | |
9335 | } | |
9336 | { | |
c8bc7bb8 RD |
9337 | _arg1 = wxString_in_helper(_obj1); |
9338 | if (_arg1 == NULL) | |
2cd2fac8 | 9339 | return NULL; |
70551f47 | 9340 | } |
ab9bc19b | 9341 | { |
474c48f9 | 9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9343 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 9344 | |
474c48f9 | 9345 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9346 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9347 | } Py_INCREF(Py_None); |
70551f47 RD |
9348 | _resultobj = Py_None; |
9349 | { | |
9350 | if (_obj1) | |
9351 | delete _arg1; | |
9352 | } | |
9353 | return _resultobj; | |
9354 | } | |
9355 | ||
9356 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 9357 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9358 | PyObject * _resultobj; |
9359 | wxRadioBox * _arg0; | |
9360 | bool _arg1; | |
2d091820 | 9361 | PyObject * _argo0 = 0; |
70551f47 | 9362 | int tempbool1; |
107e4716 | 9363 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
9364 | |
9365 | self = self; | |
107e4716 | 9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9367 | return NULL; |
2d091820 RD |
9368 | if (_argo0) { |
9369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9372 | return NULL; | |
9373 | } | |
9374 | } | |
9375 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 9376 | { |
474c48f9 | 9377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9378 | wxRadioBox_Show(_arg0,_arg1); |
ab9bc19b | 9379 | |
474c48f9 | 9380 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9381 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9382 | } Py_INCREF(Py_None); |
70551f47 RD |
9383 | _resultobj = Py_None; |
9384 | return _resultobj; | |
9385 | } | |
9386 | ||
9387 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
107e4716 | 9388 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9389 | PyObject * _resultobj; |
9390 | wxRadioBox * _arg0; | |
9391 | int _arg1; | |
9392 | bool _arg2; | |
2d091820 | 9393 | PyObject * _argo0 = 0; |
70551f47 | 9394 | int tempbool2; |
107e4716 | 9395 | char *_kwnames[] = { "self","item","show", NULL }; |
70551f47 RD |
9396 | |
9397 | self = self; | |
107e4716 | 9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 9399 | return NULL; |
2d091820 RD |
9400 | if (_argo0) { |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9404 | return NULL; | |
9405 | } | |
9406 | } | |
9407 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 9408 | { |
474c48f9 | 9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9410 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
ab9bc19b | 9411 | |
474c48f9 | 9412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9413 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9414 | } Py_INCREF(Py_None); |
70551f47 RD |
9415 | _resultobj = Py_None; |
9416 | return _resultobj; | |
9417 | } | |
9418 | ||
9419 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9420 | wxRadioButton *src; | |
9421 | wxControl *dest; | |
9422 | src = (wxRadioButton *) ptr; | |
9423 | dest = (wxControl *) src; | |
9424 | return (void *) dest; | |
9425 | } | |
9426 | ||
9427 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9428 | wxRadioButton *src; | |
9429 | wxWindow *dest; | |
9430 | src = (wxRadioButton *) ptr; | |
9431 | dest = (wxWindow *) src; | |
9432 | return (void *) dest; | |
9433 | } | |
9434 | ||
9435 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9436 | wxRadioButton *src; | |
9437 | wxEvtHandler *dest; | |
9438 | src = (wxRadioButton *) ptr; | |
9439 | dest = (wxEvtHandler *) src; | |
9440 | return (void *) dest; | |
9441 | } | |
9442 | ||
9df61a29 RD |
9443 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9444 | wxRadioButton *src; | |
9445 | wxObject *dest; | |
9446 | src = (wxRadioButton *) ptr; | |
9447 | dest = (wxObject *) src; | |
9448 | return (void *) dest; | |
9449 | } | |
9450 | ||
70551f47 | 9451 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 9452 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9453 | PyObject * _resultobj; |
9454 | wxRadioButton * _result; | |
9455 | wxWindow * _arg0; | |
9456 | wxWindowID _arg1; | |
9457 | wxString * _arg2; | |
b68dc582 RD |
9458 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9459 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9460 | long _arg5 = (long ) 0; |
b68dc582 | 9461 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
9462 | char * _arg7 = (char *) "radioButton"; |
9463 | PyObject * _argo0 = 0; | |
70551f47 | 9464 | PyObject * _obj2 = 0; |
37f6a977 RD |
9465 | wxPoint temp; |
9466 | PyObject * _obj3 = 0; | |
9467 | wxSize temp0; | |
9468 | PyObject * _obj4 = 0; | |
2d091820 | 9469 | PyObject * _argo6 = 0; |
107e4716 | 9470 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
9471 | char _ptemp[128]; |
9472 | ||
9473 | self = self; | |
37f6a977 | 9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
70551f47 | 9475 | return NULL; |
2d091820 RD |
9476 | if (_argo0) { |
9477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9480 | return NULL; | |
9481 | } | |
9482 | } | |
9483 | { | |
c8bc7bb8 RD |
9484 | _arg2 = wxString_in_helper(_obj2); |
9485 | if (_arg2 == NULL) | |
2cd2fac8 | 9486 | return NULL; |
70551f47 | 9487 | } |
37f6a977 RD |
9488 | if (_obj3) |
9489 | { | |
aa2a5b86 RD |
9490 | _arg3 = &temp; |
9491 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9492 | return NULL; | |
9493 | } | |
9494 | if (_obj4) | |
9495 | { | |
9496 | _arg4 = &temp0; | |
9497 | if (! wxSize_helper(_obj4, &_arg4)) | |
9498 | return NULL; | |
9499 | } | |
9500 | if (_argo6) { | |
9501 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9502 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9504 | return NULL; | |
9505 | } | |
9506 | } | |
9507 | { | |
474c48f9 | 9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9509 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
aa2a5b86 | 9510 | |
474c48f9 | 9511 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9512 | if (PyErr_Occurred()) return NULL; |
9513 | } if (_result) { | |
9514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9515 | _resultobj = Py_BuildValue("s",_ptemp); | |
9516 | } else { | |
9517 | Py_INCREF(Py_None); | |
9518 | _resultobj = Py_None; | |
9519 | } | |
9520 | { | |
9521 | if (_obj2) | |
9522 | delete _arg2; | |
9523 | } | |
9524 | return _resultobj; | |
9525 | } | |
9526 | ||
9527 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9528 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9529 | PyObject * _resultobj; | |
9530 | wxRadioButton * _result; | |
9531 | char *_kwnames[] = { NULL }; | |
9532 | char _ptemp[128]; | |
9533 | ||
9534 | self = self; | |
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9536 | return NULL; | |
9537 | { | |
474c48f9 | 9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9539 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
aa2a5b86 | 9540 | |
474c48f9 | 9541 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9542 | if (PyErr_Occurred()) return NULL; |
9543 | } if (_result) { | |
9544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9545 | _resultobj = Py_BuildValue("s",_ptemp); | |
9546 | } else { | |
9547 | Py_INCREF(Py_None); | |
9548 | _resultobj = Py_None; | |
9549 | } | |
9550 | return _resultobj; | |
9551 | } | |
9552 | ||
9553 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9554 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject * _resultobj; | |
9556 | bool _result; | |
9557 | wxRadioButton * _arg0; | |
9558 | wxWindow * _arg1; | |
9559 | wxWindowID _arg2; | |
9560 | wxString * _arg3; | |
9561 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9562 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9563 | long _arg6 = (long ) 0; | |
9564 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9565 | char * _arg8 = (char *) "radioButton"; | |
9566 | PyObject * _argo0 = 0; | |
9567 | PyObject * _argo1 = 0; | |
9568 | PyObject * _obj3 = 0; | |
9569 | wxPoint temp; | |
9570 | PyObject * _obj4 = 0; | |
9571 | wxSize temp0; | |
9572 | PyObject * _obj5 = 0; | |
9573 | PyObject * _argo7 = 0; | |
9574 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9575 | ||
9576 | self = self; | |
9577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9578 | return NULL; | |
9579 | if (_argo0) { | |
9580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9583 | return NULL; | |
9584 | } | |
9585 | } | |
9586 | if (_argo1) { | |
9587 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9588 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9590 | return NULL; | |
9591 | } | |
9592 | } | |
9593 | { | |
c8bc7bb8 RD |
9594 | _arg3 = wxString_in_helper(_obj3); |
9595 | if (_arg3 == NULL) | |
aa2a5b86 | 9596 | return NULL; |
aa2a5b86 RD |
9597 | } |
9598 | if (_obj4) | |
9599 | { | |
9600 | _arg4 = &temp; | |
9601 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 9602 | return NULL; |
37f6a977 | 9603 | } |
aa2a5b86 | 9604 | if (_obj5) |
37f6a977 | 9605 | { |
aa2a5b86 RD |
9606 | _arg5 = &temp0; |
9607 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 9608 | return NULL; |
37f6a977 | 9609 | } |
aa2a5b86 RD |
9610 | if (_argo7) { |
9611 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9612 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
70551f47 RD |
9614 | return NULL; |
9615 | } | |
9616 | } | |
ab9bc19b | 9617 | { |
474c48f9 | 9618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9619 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
ab9bc19b | 9620 | |
474c48f9 | 9621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9622 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 9623 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 9624 | { |
aa2a5b86 RD |
9625 | if (_obj3) |
9626 | delete _arg3; | |
70551f47 RD |
9627 | } |
9628 | return _resultobj; | |
9629 | } | |
9630 | ||
9631 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 9632 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9633 | PyObject * _resultobj; |
9634 | bool _result; | |
9635 | wxRadioButton * _arg0; | |
2d091820 | 9636 | PyObject * _argo0 = 0; |
107e4716 | 9637 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9638 | |
9639 | self = self; | |
107e4716 | 9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
70551f47 | 9641 | return NULL; |
2d091820 RD |
9642 | if (_argo0) { |
9643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
9645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
9646 | return NULL; | |
9647 | } | |
9648 | } | |
ab9bc19b | 9649 | { |
474c48f9 | 9650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9651 | _result = (bool )wxRadioButton_GetValue(_arg0); |
ab9bc19b | 9652 | |
474c48f9 | 9653 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9654 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9655 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9656 | return _resultobj; |
9657 | } | |
9658 | ||
9659 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 9660 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9661 | PyObject * _resultobj; |
9662 | wxRadioButton * _arg0; | |
9663 | bool _arg1; | |
2d091820 | 9664 | PyObject * _argo0 = 0; |
70551f47 | 9665 | int tempbool1; |
107e4716 | 9666 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
9667 | |
9668 | self = self; | |
107e4716 | 9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9670 | return NULL; |
2d091820 RD |
9671 | if (_argo0) { |
9672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
9674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
9675 | return NULL; | |
9676 | } | |
9677 | } | |
9678 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 9679 | { |
474c48f9 | 9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9681 | wxRadioButton_SetValue(_arg0,_arg1); |
ab9bc19b | 9682 | |
474c48f9 | 9683 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9684 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9685 | } Py_INCREF(Py_None); |
70551f47 RD |
9686 | _resultobj = Py_None; |
9687 | return _resultobj; | |
9688 | } | |
9689 | ||
9690 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9691 | wxSlider *src; | |
9692 | wxControl *dest; | |
9693 | src = (wxSlider *) ptr; | |
9694 | dest = (wxControl *) src; | |
9695 | return (void *) dest; | |
9696 | } | |
9697 | ||
9698 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9699 | wxSlider *src; | |
9700 | wxWindow *dest; | |
9701 | src = (wxSlider *) ptr; | |
9702 | dest = (wxWindow *) src; | |
9703 | return (void *) dest; | |
9704 | } | |
9705 | ||
9706 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9707 | wxSlider *src; | |
9708 | wxEvtHandler *dest; | |
9709 | src = (wxSlider *) ptr; | |
9710 | dest = (wxEvtHandler *) src; | |
9711 | return (void *) dest; | |
9712 | } | |
9713 | ||
9df61a29 RD |
9714 | static void *SwigwxSliderTowxObject(void *ptr) { |
9715 | wxSlider *src; | |
9716 | wxObject *dest; | |
9717 | src = (wxSlider *) ptr; | |
9718 | dest = (wxObject *) src; | |
9719 | return (void *) dest; | |
9720 | } | |
9721 | ||
70551f47 | 9722 | #define new_wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
107e4716 | 9723 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9724 | PyObject * _resultobj; |
9725 | wxSlider * _result; | |
9726 | wxWindow * _arg0; | |
9727 | wxWindowID _arg1; | |
9728 | int _arg2; | |
9729 | int _arg3; | |
9730 | int _arg4; | |
b68dc582 RD |
9731 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
9732 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9733 | long _arg7 = (long ) wxSL_HORIZONTAL; |
b68dc582 | 9734 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
2d091820 RD |
9735 | char * _arg9 = (char *) "slider"; |
9736 | PyObject * _argo0 = 0; | |
37f6a977 RD |
9737 | wxPoint temp; |
9738 | PyObject * _obj5 = 0; | |
9739 | wxSize temp0; | |
9740 | PyObject * _obj6 = 0; | |
2d091820 | 9741 | PyObject * _argo8 = 0; |
107e4716 | 9742 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
70551f47 RD |
9743 | char _ptemp[128]; |
9744 | ||
9745 | self = self; | |
37f6a977 | 9746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) |
70551f47 | 9747 | return NULL; |
2d091820 RD |
9748 | if (_argo0) { |
9749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
9752 | return NULL; | |
9753 | } | |
9754 | } | |
37f6a977 RD |
9755 | if (_obj5) |
9756 | { | |
9757 | _arg5 = &temp; | |
9758 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 9759 | return NULL; |
37f6a977 RD |
9760 | } |
9761 | if (_obj6) | |
9762 | { | |
9763 | _arg6 = &temp0; | |
9764 | if (! wxSize_helper(_obj6, &_arg6)) | |
70551f47 | 9765 | return NULL; |
37f6a977 | 9766 | } |
2d091820 RD |
9767 | if (_argo8) { |
9768 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9769 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
9770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
9771 | return NULL; | |
9772 | } | |
9773 | } | |
ab9bc19b | 9774 | { |
474c48f9 | 9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9776 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); |
ab9bc19b | 9777 | |
474c48f9 | 9778 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9779 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9780 | } if (_result) { |
9781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9782 | _resultobj = Py_BuildValue("s",_ptemp); | |
9783 | } else { | |
9784 | Py_INCREF(Py_None); | |
9785 | _resultobj = Py_None; | |
9786 | } | |
70551f47 RD |
9787 | return _resultobj; |
9788 | } | |
9789 | ||
aa2a5b86 RD |
9790 | #define new_wxPreSlider() (new wxSlider()) |
9791 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9792 | PyObject * _resultobj; | |
9793 | wxSlider * _result; | |
9794 | char *_kwnames[] = { NULL }; | |
9795 | char _ptemp[128]; | |
9796 | ||
9797 | self = self; | |
9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9799 | return NULL; | |
9800 | { | |
474c48f9 | 9801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9802 | _result = (wxSlider *)new_wxPreSlider(); |
aa2a5b86 | 9803 | |
474c48f9 | 9804 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9805 | if (PyErr_Occurred()) return NULL; |
9806 | } if (_result) { | |
9807 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9808 | _resultobj = Py_BuildValue("s",_ptemp); | |
9809 | } else { | |
9810 | Py_INCREF(Py_None); | |
9811 | _resultobj = Py_None; | |
9812 | } | |
9813 | return _resultobj; | |
9814 | } | |
9815 | ||
9816 | #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)) | |
9817 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9818 | PyObject * _resultobj; | |
9819 | bool _result; | |
9820 | wxSlider * _arg0; | |
9821 | wxWindow * _arg1; | |
9822 | wxWindowID _arg2; | |
9823 | int _arg3; | |
9824 | int _arg4; | |
9825 | int _arg5; | |
9826 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9827 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9828 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9829 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9830 | char * _arg10 = (char *) "slider"; | |
9831 | PyObject * _argo0 = 0; | |
9832 | PyObject * _argo1 = 0; | |
9833 | wxPoint temp; | |
9834 | PyObject * _obj6 = 0; | |
9835 | wxSize temp0; | |
9836 | PyObject * _obj7 = 0; | |
9837 | PyObject * _argo9 = 0; | |
9838 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9839 | ||
9840 | self = self; | |
9841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9842 | return NULL; | |
9843 | if (_argo0) { | |
9844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9847 | return NULL; | |
9848 | } | |
9849 | } | |
9850 | if (_argo1) { | |
9851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9854 | return NULL; | |
9855 | } | |
9856 | } | |
9857 | if (_obj6) | |
9858 | { | |
9859 | _arg6 = &temp; | |
9860 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9861 | return NULL; | |
9862 | } | |
9863 | if (_obj7) | |
9864 | { | |
9865 | _arg7 = &temp0; | |
9866 | if (! wxSize_helper(_obj7, &_arg7)) | |
9867 | return NULL; | |
9868 | } | |
9869 | if (_argo9) { | |
9870 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9871 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9873 | return NULL; | |
9874 | } | |
9875 | } | |
9876 | { | |
474c48f9 | 9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9878 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); |
aa2a5b86 | 9879 | |
474c48f9 | 9880 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9881 | if (PyErr_Occurred()) return NULL; |
9882 | } _resultobj = Py_BuildValue("i",_result); | |
9883 | return _resultobj; | |
9884 | } | |
9885 | ||
70551f47 | 9886 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
107e4716 | 9887 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9888 | PyObject * _resultobj; |
9889 | wxSlider * _arg0; | |
2d091820 | 9890 | PyObject * _argo0 = 0; |
107e4716 | 9891 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9892 | |
9893 | self = self; | |
107e4716 | 9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
70551f47 | 9895 | return NULL; |
2d091820 RD |
9896 | if (_argo0) { |
9897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
9900 | return NULL; | |
9901 | } | |
9902 | } | |
ab9bc19b | 9903 | { |
474c48f9 | 9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9905 | wxSlider_ClearSel(_arg0); |
ab9bc19b | 9906 | |
474c48f9 | 9907 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9908 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9909 | } Py_INCREF(Py_None); |
70551f47 RD |
9910 | _resultobj = Py_None; |
9911 | return _resultobj; | |
9912 | } | |
9913 | ||
9914 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
107e4716 | 9915 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9916 | PyObject * _resultobj; |
9917 | wxSlider * _arg0; | |
2d091820 | 9918 | PyObject * _argo0 = 0; |
107e4716 | 9919 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9920 | |
9921 | self = self; | |
107e4716 | 9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
70551f47 | 9923 | return NULL; |
2d091820 RD |
9924 | if (_argo0) { |
9925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
9928 | return NULL; | |
9929 | } | |
9930 | } | |
ab9bc19b | 9931 | { |
474c48f9 | 9932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9933 | wxSlider_ClearTicks(_arg0); |
ab9bc19b | 9934 | |
474c48f9 | 9935 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9936 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9937 | } Py_INCREF(Py_None); |
70551f47 RD |
9938 | _resultobj = Py_None; |
9939 | return _resultobj; | |
9940 | } | |
9941 | ||
9942 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
107e4716 | 9943 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9944 | PyObject * _resultobj; |
9945 | int _result; | |
9946 | wxSlider * _arg0; | |
2d091820 | 9947 | PyObject * _argo0 = 0; |
107e4716 | 9948 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9949 | |
9950 | self = self; | |
107e4716 | 9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
70551f47 | 9952 | return NULL; |
2d091820 RD |
9953 | if (_argo0) { |
9954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
9957 | return NULL; | |
9958 | } | |
9959 | } | |
ab9bc19b | 9960 | { |
474c48f9 | 9961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9962 | _result = (int )wxSlider_GetLineSize(_arg0); |
ab9bc19b | 9963 | |
474c48f9 | 9964 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9965 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9966 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9967 | return _resultobj; |
9968 | } | |
9969 | ||
9970 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 9971 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9972 | PyObject * _resultobj; |
9973 | int _result; | |
9974 | wxSlider * _arg0; | |
2d091820 | 9975 | PyObject * _argo0 = 0; |
107e4716 | 9976 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9977 | |
9978 | self = self; | |
107e4716 | 9979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
70551f47 | 9980 | return NULL; |
2d091820 RD |
9981 | if (_argo0) { |
9982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
9984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
9985 | return NULL; | |
9986 | } | |
9987 | } | |
ab9bc19b | 9988 | { |
474c48f9 | 9989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9990 | _result = (int )wxSlider_GetMax(_arg0); |
ab9bc19b | 9991 | |
474c48f9 | 9992 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9993 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9994 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9995 | return _resultobj; |
9996 | } | |
9997 | ||
9998 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 9999 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10000 | PyObject * _resultobj; |
10001 | int _result; | |
10002 | wxSlider * _arg0; | |
2d091820 | 10003 | PyObject * _argo0 = 0; |
107e4716 | 10004 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10005 | |
10006 | self = self; | |
107e4716 | 10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
70551f47 | 10008 | return NULL; |
2d091820 RD |
10009 | if (_argo0) { |
10010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
ab9bc19b | 10016 | { |
474c48f9 | 10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10018 | _result = (int )wxSlider_GetMin(_arg0); |
ab9bc19b | 10019 | |
474c48f9 | 10020 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10021 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10022 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10023 | return _resultobj; |
10024 | } | |
10025 | ||
10026 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 10027 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10028 | PyObject * _resultobj; |
10029 | int _result; | |
10030 | wxSlider * _arg0; | |
2d091820 | 10031 | PyObject * _argo0 = 0; |
107e4716 | 10032 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10033 | |
10034 | self = self; | |
107e4716 | 10035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 10036 | return NULL; |
2d091820 RD |
10037 | if (_argo0) { |
10038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
10041 | return NULL; | |
10042 | } | |
10043 | } | |
ab9bc19b | 10044 | { |
474c48f9 | 10045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10046 | _result = (int )wxSlider_GetPageSize(_arg0); |
ab9bc19b | 10047 | |
474c48f9 | 10048 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10049 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10050 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10051 | return _resultobj; |
10052 | } | |
10053 | ||
10054 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
107e4716 | 10055 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10056 | PyObject * _resultobj; |
10057 | int _result; | |
10058 | wxSlider * _arg0; | |
2d091820 | 10059 | PyObject * _argo0 = 0; |
107e4716 | 10060 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10061 | |
10062 | self = self; | |
107e4716 | 10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
70551f47 | 10064 | return NULL; |
2d091820 RD |
10065 | if (_argo0) { |
10066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
10069 | return NULL; | |
10070 | } | |
10071 | } | |
ab9bc19b | 10072 | { |
474c48f9 | 10073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10074 | _result = (int )wxSlider_GetSelEnd(_arg0); |
ab9bc19b | 10075 | |
474c48f9 | 10076 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10077 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10078 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10079 | return _resultobj; |
10080 | } | |
10081 | ||
10082 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
107e4716 | 10083 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10084 | PyObject * _resultobj; |
10085 | int _result; | |
10086 | wxSlider * _arg0; | |
2d091820 | 10087 | PyObject * _argo0 = 0; |
107e4716 | 10088 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10089 | |
10090 | self = self; | |
107e4716 | 10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
70551f47 | 10092 | return NULL; |
2d091820 RD |
10093 | if (_argo0) { |
10094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
10097 | return NULL; | |
10098 | } | |
10099 | } | |
ab9bc19b | 10100 | { |
474c48f9 | 10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10102 | _result = (int )wxSlider_GetSelStart(_arg0); |
ab9bc19b | 10103 | |
474c48f9 | 10104 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10105 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10106 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10107 | return _resultobj; |
10108 | } | |
10109 | ||
10110 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
107e4716 | 10111 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10112 | PyObject * _resultobj; |
10113 | int _result; | |
10114 | wxSlider * _arg0; | |
2d091820 | 10115 | PyObject * _argo0 = 0; |
107e4716 | 10116 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10117 | |
10118 | self = self; | |
107e4716 | 10119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
70551f47 | 10120 | return NULL; |
2d091820 RD |
10121 | if (_argo0) { |
10122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
10125 | return NULL; | |
10126 | } | |
10127 | } | |
ab9bc19b | 10128 | { |
474c48f9 | 10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10130 | _result = (int )wxSlider_GetThumbLength(_arg0); |
ab9bc19b | 10131 | |
474c48f9 | 10132 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10133 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10134 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10135 | return _resultobj; |
10136 | } | |
10137 | ||
10138 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
107e4716 | 10139 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10140 | PyObject * _resultobj; |
10141 | int _result; | |
10142 | wxSlider * _arg0; | |
2d091820 | 10143 | PyObject * _argo0 = 0; |
107e4716 | 10144 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10145 | |
10146 | self = self; | |
107e4716 | 10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
70551f47 | 10148 | return NULL; |
2d091820 RD |
10149 | if (_argo0) { |
10150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
10153 | return NULL; | |
10154 | } | |
10155 | } | |
ab9bc19b | 10156 | { |
474c48f9 | 10157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10158 | _result = (int )wxSlider_GetTickFreq(_arg0); |
ab9bc19b | 10159 | |
474c48f9 | 10160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10161 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10162 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10163 | return _resultobj; |
10164 | } | |
10165 | ||
10166 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 10167 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10168 | PyObject * _resultobj; |
10169 | int _result; | |
10170 | wxSlider * _arg0; | |
2d091820 | 10171 | PyObject * _argo0 = 0; |
107e4716 | 10172 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10173 | |
10174 | self = self; | |
107e4716 | 10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
70551f47 | 10176 | return NULL; |
2d091820 RD |
10177 | if (_argo0) { |
10178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
10181 | return NULL; | |
10182 | } | |
10183 | } | |
ab9bc19b | 10184 | { |
474c48f9 | 10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10186 | _result = (int )wxSlider_GetValue(_arg0); |
ab9bc19b | 10187 | |
474c48f9 | 10188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10189 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10190 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10191 | return _resultobj; |
10192 | } | |
10193 | ||
10194 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 10195 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10196 | PyObject * _resultobj; |
10197 | wxSlider * _arg0; | |
10198 | int _arg1; | |
10199 | int _arg2; | |
2d091820 | 10200 | PyObject * _argo0 = 0; |
107e4716 | 10201 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
70551f47 RD |
10202 | |
10203 | self = self; | |
107e4716 | 10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10205 | return NULL; |
2d091820 RD |
10206 | if (_argo0) { |
10207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
10210 | return NULL; | |
10211 | } | |
10212 | } | |
ab9bc19b | 10213 | { |
474c48f9 | 10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10215 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 10216 | |
474c48f9 | 10217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10218 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10219 | } Py_INCREF(Py_None); |
70551f47 RD |
10220 | _resultobj = Py_None; |
10221 | return _resultobj; | |
10222 | } | |
10223 | ||
10224 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
107e4716 | 10225 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10226 | PyObject * _resultobj; |
10227 | wxSlider * _arg0; | |
10228 | int _arg1; | |
10229 | int _arg2; | |
2d091820 | 10230 | PyObject * _argo0 = 0; |
107e4716 | 10231 | char *_kwnames[] = { "self","n","pos", NULL }; |
70551f47 RD |
10232 | |
10233 | self = self; | |
107e4716 | 10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10235 | return NULL; |
2d091820 RD |
10236 | if (_argo0) { |
10237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
10240 | return NULL; | |
10241 | } | |
10242 | } | |
ab9bc19b | 10243 | { |
474c48f9 | 10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10245 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
ab9bc19b | 10246 | |
474c48f9 | 10247 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10248 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10249 | } Py_INCREF(Py_None); |
70551f47 RD |
10250 | _resultobj = Py_None; |
10251 | return _resultobj; | |
10252 | } | |
10253 | ||
10254 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
107e4716 | 10255 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10256 | PyObject * _resultobj; |
10257 | wxSlider * _arg0; | |
10258 | int _arg1; | |
2d091820 | 10259 | PyObject * _argo0 = 0; |
107e4716 | 10260 | char *_kwnames[] = { "self","lineSize", NULL }; |
70551f47 RD |
10261 | |
10262 | self = self; | |
107e4716 | 10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10264 | return NULL; |
2d091820 RD |
10265 | if (_argo0) { |
10266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10269 | return NULL; | |
10270 | } | |
10271 | } | |
ab9bc19b | 10272 | { |
474c48f9 | 10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10274 | wxSlider_SetLineSize(_arg0,_arg1); |
ab9bc19b | 10275 | |
474c48f9 | 10276 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10277 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10278 | } Py_INCREF(Py_None); |
70551f47 RD |
10279 | _resultobj = Py_None; |
10280 | return _resultobj; | |
10281 | } | |
10282 | ||
10283 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
107e4716 | 10284 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10285 | PyObject * _resultobj; |
10286 | wxSlider * _arg0; | |
10287 | int _arg1; | |
2d091820 | 10288 | PyObject * _argo0 = 0; |
107e4716 | 10289 | char *_kwnames[] = { "self","pageSize", NULL }; |
70551f47 RD |
10290 | |
10291 | self = self; | |
107e4716 | 10292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10293 | return NULL; |
2d091820 RD |
10294 | if (_argo0) { |
10295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10298 | return NULL; | |
10299 | } | |
10300 | } | |
ab9bc19b | 10301 | { |
474c48f9 | 10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10303 | wxSlider_SetPageSize(_arg0,_arg1); |
ab9bc19b | 10304 | |
474c48f9 | 10305 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10306 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10307 | } Py_INCREF(Py_None); |
70551f47 RD |
10308 | _resultobj = Py_None; |
10309 | return _resultobj; | |
10310 | } | |
10311 | ||
10312 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 10313 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10314 | PyObject * _resultobj; |
10315 | wxSlider * _arg0; | |
10316 | int _arg1; | |
10317 | int _arg2; | |
2d091820 | 10318 | PyObject * _argo0 = 0; |
107e4716 | 10319 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
70551f47 RD |
10320 | |
10321 | self = self; | |
107e4716 | 10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10323 | return NULL; |
2d091820 RD |
10324 | if (_argo0) { |
10325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10328 | return NULL; | |
10329 | } | |
10330 | } | |
ab9bc19b | 10331 | { |
474c48f9 | 10332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10333 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 10334 | |
474c48f9 | 10335 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10336 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10337 | } Py_INCREF(Py_None); |
70551f47 RD |
10338 | _resultobj = Py_None; |
10339 | return _resultobj; | |
10340 | } | |
10341 | ||
10342 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
107e4716 | 10343 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10344 | PyObject * _resultobj; |
10345 | wxSlider * _arg0; | |
10346 | int _arg1; | |
2d091820 | 10347 | PyObject * _argo0 = 0; |
107e4716 | 10348 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
10349 | |
10350 | self = self; | |
107e4716 | 10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10352 | return NULL; |
2d091820 RD |
10353 | if (_argo0) { |
10354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10357 | return NULL; | |
10358 | } | |
10359 | } | |
ab9bc19b | 10360 | { |
474c48f9 | 10361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10362 | wxSlider_SetThumbLength(_arg0,_arg1); |
ab9bc19b | 10363 | |
474c48f9 | 10364 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10365 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10366 | } Py_INCREF(Py_None); |
70551f47 RD |
10367 | _resultobj = Py_None; |
10368 | return _resultobj; | |
10369 | } | |
10370 | ||
10371 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
107e4716 | 10372 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10373 | PyObject * _resultobj; |
10374 | wxSlider * _arg0; | |
10375 | int _arg1; | |
2d091820 | 10376 | PyObject * _argo0 = 0; |
107e4716 | 10377 | char *_kwnames[] = { "self","tickPos", NULL }; |
70551f47 RD |
10378 | |
10379 | self = self; | |
107e4716 | 10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10381 | return NULL; |
2d091820 RD |
10382 | if (_argo0) { |
10383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10386 | return NULL; | |
10387 | } | |
10388 | } | |
ab9bc19b | 10389 | { |
474c48f9 | 10390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10391 | wxSlider_SetTick(_arg0,_arg1); |
ab9bc19b | 10392 | |
474c48f9 | 10393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10395 | } Py_INCREF(Py_None); |
70551f47 RD |
10396 | _resultobj = Py_None; |
10397 | return _resultobj; | |
10398 | } | |
10399 | ||
10400 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 10401 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10402 | PyObject * _resultobj; |
10403 | wxSlider * _arg0; | |
10404 | int _arg1; | |
2d091820 | 10405 | PyObject * _argo0 = 0; |
107e4716 | 10406 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
10407 | |
10408 | self = self; | |
107e4716 | 10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10410 | return NULL; |
2d091820 RD |
10411 | if (_argo0) { |
10412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
ab9bc19b | 10418 | { |
474c48f9 | 10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10420 | wxSlider_SetValue(_arg0,_arg1); |
ab9bc19b | 10421 | |
474c48f9 | 10422 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10423 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10424 | } Py_INCREF(Py_None); |
70551f47 RD |
10425 | _resultobj = Py_None; |
10426 | return _resultobj; | |
10427 | } | |
10428 | ||
f6bcfd97 BP |
10429 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10430 | wxSpinCtrl *src; | |
10431 | wxSpinButton *dest; | |
10432 | src = (wxSpinCtrl *) ptr; | |
10433 | dest = (wxSpinButton *) src; | |
10434 | return (void *) dest; | |
10435 | } | |
10436 | ||
10437 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10438 | wxSpinCtrl *src; | |
10439 | wxControl *dest; | |
10440 | src = (wxSpinCtrl *) ptr; | |
10441 | dest = (wxControl *) src; | |
10442 | return (void *) dest; | |
10443 | } | |
10444 | ||
10445 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10446 | wxSpinCtrl *src; | |
10447 | wxWindow *dest; | |
10448 | src = (wxSpinCtrl *) ptr; | |
10449 | dest = (wxWindow *) src; | |
10450 | return (void *) dest; | |
10451 | } | |
10452 | ||
10453 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10454 | wxSpinCtrl *src; | |
10455 | wxEvtHandler *dest; | |
10456 | src = (wxSpinCtrl *) ptr; | |
10457 | dest = (wxEvtHandler *) src; | |
10458 | return (void *) dest; | |
10459 | } | |
10460 | ||
9df61a29 RD |
10461 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10462 | wxSpinCtrl *src; | |
10463 | wxObject *dest; | |
10464 | src = (wxSpinCtrl *) ptr; | |
10465 | dest = (wxObject *) src; | |
10466 | return (void *) dest; | |
10467 | } | |
10468 | ||
f6bcfd97 BP |
10469 | #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)) |
10470 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10471 | PyObject * _resultobj; | |
10472 | wxSpinCtrl * _result; | |
10473 | wxWindow * _arg0; | |
10474 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10475 | char * _arg2 = (char *) ""; | |
b68dc582 RD |
10476 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10477 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
10478 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
10479 | int _arg6 = (int ) 0; | |
10480 | int _arg7 = (int ) 100; | |
10481 | int _arg8 = (int ) 0; | |
10482 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10483 | PyObject * _argo0 = 0; | |
10484 | wxPoint temp; | |
10485 | PyObject * _obj3 = 0; | |
10486 | wxSize temp0; | |
10487 | PyObject * _obj4 = 0; | |
10488 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10489 | char _ptemp[128]; | |
10490 | ||
10491 | self = self; | |
10492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10493 | return NULL; | |
10494 | if (_argo0) { | |
10495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10498 | return NULL; | |
10499 | } | |
10500 | } | |
10501 | if (_obj3) | |
10502 | { | |
10503 | _arg3 = &temp; | |
10504 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10505 | return NULL; | |
10506 | } | |
10507 | if (_obj4) | |
10508 | { | |
10509 | _arg4 = &temp0; | |
10510 | if (! wxSize_helper(_obj4, &_arg4)) | |
10511 | return NULL; | |
10512 | } | |
10513 | { | |
474c48f9 | 10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10515 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
f6bcfd97 | 10516 | |
474c48f9 | 10517 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10518 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10519 | } if (_result) { |
10520 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10521 | _resultobj = Py_BuildValue("s",_ptemp); | |
10522 | } else { | |
10523 | Py_INCREF(Py_None); | |
10524 | _resultobj = Py_None; | |
10525 | } | |
10526 | return _resultobj; | |
10527 | } | |
10528 | ||
aa2a5b86 RD |
10529 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
10530 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject * _resultobj; | |
10532 | wxSpinCtrl * _result; | |
10533 | char *_kwnames[] = { NULL }; | |
10534 | char _ptemp[128]; | |
10535 | ||
10536 | self = self; | |
10537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10538 | return NULL; | |
10539 | { | |
474c48f9 | 10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10541 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
aa2a5b86 | 10542 | |
474c48f9 | 10543 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10544 | if (PyErr_Occurred()) return NULL; |
10545 | } if (_result) { | |
10546 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10547 | _resultobj = Py_BuildValue("s",_ptemp); | |
10548 | } else { | |
10549 | Py_INCREF(Py_None); | |
10550 | _resultobj = Py_None; | |
10551 | } | |
10552 | return _resultobj; | |
10553 | } | |
10554 | ||
10555 | #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)) | |
10556 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject * _resultobj; | |
10558 | bool _result; | |
10559 | wxSpinCtrl * _arg0; | |
10560 | wxWindow * _arg1; | |
10561 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10562 | char * _arg3 = (char *) ""; | |
10563 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10564 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10565 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10566 | int _arg7 = (int ) 0; | |
10567 | int _arg8 = (int ) 100; | |
10568 | int _arg9 = (int ) 0; | |
10569 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10570 | PyObject * _argo0 = 0; | |
10571 | PyObject * _argo1 = 0; | |
10572 | wxPoint temp; | |
10573 | PyObject * _obj4 = 0; | |
10574 | wxSize temp0; | |
10575 | PyObject * _obj5 = 0; | |
10576 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10577 | ||
10578 | self = self; | |
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10580 | return NULL; | |
10581 | if (_argo0) { | |
10582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10585 | return NULL; | |
10586 | } | |
10587 | } | |
10588 | if (_argo1) { | |
10589 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10590 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10592 | return NULL; | |
10593 | } | |
10594 | } | |
10595 | if (_obj4) | |
10596 | { | |
10597 | _arg4 = &temp; | |
10598 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10599 | return NULL; | |
10600 | } | |
10601 | if (_obj5) | |
10602 | { | |
10603 | _arg5 = &temp0; | |
10604 | if (! wxSize_helper(_obj5, &_arg5)) | |
10605 | return NULL; | |
10606 | } | |
10607 | { | |
474c48f9 | 10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10609 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); |
aa2a5b86 | 10610 | |
474c48f9 | 10611 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10612 | if (PyErr_Occurred()) return NULL; |
10613 | } _resultobj = Py_BuildValue("i",_result); | |
10614 | return _resultobj; | |
10615 | } | |
10616 | ||
c368d904 RD |
10617 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
10618 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10619 | PyObject * _resultobj; | |
10620 | int _result; | |
10621 | wxSpinCtrl * _arg0; | |
10622 | PyObject * _argo0 = 0; | |
10623 | char *_kwnames[] = { "self", NULL }; | |
10624 | ||
10625 | self = self; | |
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10627 | return NULL; | |
10628 | if (_argo0) { | |
10629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10632 | return NULL; | |
10633 | } | |
10634 | } | |
10635 | { | |
474c48f9 | 10636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10637 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
c368d904 | 10638 | |
474c48f9 | 10639 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10640 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10641 | } _resultobj = Py_BuildValue("i",_result); |
10642 | return _resultobj; | |
10643 | } | |
10644 | ||
10645 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10646 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10647 | PyObject * _resultobj; | |
10648 | int _result; | |
10649 | wxSpinCtrl * _arg0; | |
10650 | PyObject * _argo0 = 0; | |
10651 | char *_kwnames[] = { "self", NULL }; | |
10652 | ||
10653 | self = self; | |
10654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10655 | return NULL; | |
10656 | if (_argo0) { | |
10657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10660 | return NULL; | |
10661 | } | |
10662 | } | |
10663 | { | |
474c48f9 | 10664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10665 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
c368d904 | 10666 | |
474c48f9 | 10667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10668 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10669 | } _resultobj = Py_BuildValue("i",_result); |
10670 | return _resultobj; | |
10671 | } | |
10672 | ||
10673 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10674 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject * _resultobj; | |
10676 | int _result; | |
10677 | wxSpinCtrl * _arg0; | |
10678 | PyObject * _argo0 = 0; | |
10679 | char *_kwnames[] = { "self", NULL }; | |
10680 | ||
10681 | self = self; | |
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10683 | return NULL; | |
10684 | if (_argo0) { | |
10685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10688 | return NULL; | |
10689 | } | |
10690 | } | |
10691 | { | |
474c48f9 | 10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10693 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
c368d904 | 10694 | |
474c48f9 | 10695 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10696 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10697 | } _resultobj = Py_BuildValue("i",_result); |
10698 | return _resultobj; | |
10699 | } | |
10700 | ||
10701 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10702 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10703 | PyObject * _resultobj; | |
10704 | wxSpinCtrl * _arg0; | |
10705 | int _arg1; | |
10706 | int _arg2; | |
10707 | PyObject * _argo0 = 0; | |
10708 | char *_kwnames[] = { "self","min","max", NULL }; | |
10709 | ||
10710 | self = self; | |
10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10712 | return NULL; | |
10713 | if (_argo0) { | |
10714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10717 | return NULL; | |
10718 | } | |
10719 | } | |
10720 | { | |
474c48f9 | 10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10722 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
c368d904 | 10723 | |
474c48f9 | 10724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10725 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10726 | } Py_INCREF(Py_None); |
10727 | _resultobj = Py_None; | |
10728 | return _resultobj; | |
10729 | } | |
10730 | ||
10731 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10732 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10733 | PyObject * _resultobj; | |
10734 | wxSpinCtrl * _arg0; | |
10735 | int _arg1; | |
10736 | PyObject * _argo0 = 0; | |
10737 | char *_kwnames[] = { "self","value", NULL }; | |
10738 | ||
10739 | self = self; | |
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10741 | return NULL; | |
10742 | if (_argo0) { | |
10743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10746 | return NULL; | |
10747 | } | |
10748 | } | |
10749 | { | |
474c48f9 | 10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10751 | wxSpinCtrl_SetValue(_arg0,_arg1); |
c368d904 | 10752 | |
474c48f9 | 10753 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10754 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
10755 | } Py_INCREF(Py_None); |
10756 | _resultobj = Py_None; | |
10757 | return _resultobj; | |
10758 | } | |
10759 | ||
7a446686 RD |
10760 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
10761 | wxToggleButton *src; | |
10762 | wxControl *dest; | |
10763 | src = (wxToggleButton *) ptr; | |
10764 | dest = (wxControl *) src; | |
10765 | return (void *) dest; | |
10766 | } | |
10767 | ||
10768 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10769 | wxToggleButton *src; | |
10770 | wxWindow *dest; | |
10771 | src = (wxToggleButton *) ptr; | |
10772 | dest = (wxWindow *) src; | |
10773 | return (void *) dest; | |
10774 | } | |
10775 | ||
10776 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10777 | wxToggleButton *src; | |
10778 | wxEvtHandler *dest; | |
10779 | src = (wxToggleButton *) ptr; | |
10780 | dest = (wxEvtHandler *) src; | |
10781 | return (void *) dest; | |
10782 | } | |
10783 | ||
9df61a29 RD |
10784 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
10785 | wxToggleButton *src; | |
10786 | wxObject *dest; | |
10787 | src = (wxToggleButton *) ptr; | |
10788 | dest = (wxObject *) src; | |
10789 | return (void *) dest; | |
10790 | } | |
10791 | ||
7a446686 RD |
10792 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
10793 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10794 | PyObject * _resultobj; | |
10795 | wxToggleButton * _result; | |
10796 | wxWindow * _arg0; | |
10797 | wxWindowID _arg1; | |
10798 | wxString * _arg2; | |
10799 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10800 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10801 | long _arg5 = (long ) 0; | |
10802 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10803 | char * _arg7 = (char *) "toggle"; | |
10804 | PyObject * _argo0 = 0; | |
10805 | PyObject * _obj2 = 0; | |
10806 | wxPoint temp; | |
10807 | PyObject * _obj3 = 0; | |
10808 | wxSize temp0; | |
10809 | PyObject * _obj4 = 0; | |
10810 | PyObject * _argo6 = 0; | |
10811 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10812 | char _ptemp[128]; | |
10813 | ||
10814 | self = self; | |
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10816 | return NULL; | |
10817 | if (_argo0) { | |
10818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10821 | return NULL; | |
10822 | } | |
10823 | } | |
10824 | { | |
c8bc7bb8 RD |
10825 | _arg2 = wxString_in_helper(_obj2); |
10826 | if (_arg2 == NULL) | |
7a446686 | 10827 | return NULL; |
7a446686 RD |
10828 | } |
10829 | if (_obj3) | |
10830 | { | |
10831 | _arg3 = &temp; | |
10832 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10833 | return NULL; | |
10834 | } | |
10835 | if (_obj4) | |
10836 | { | |
10837 | _arg4 = &temp0; | |
10838 | if (! wxSize_helper(_obj4, &_arg4)) | |
10839 | return NULL; | |
10840 | } | |
10841 | if (_argo6) { | |
10842 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10843 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10845 | return NULL; | |
10846 | } | |
10847 | } | |
10848 | { | |
474c48f9 | 10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10850 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
7a446686 | 10851 | |
474c48f9 | 10852 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10853 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10854 | } if (_result) { |
10855 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10856 | _resultobj = Py_BuildValue("s",_ptemp); | |
10857 | } else { | |
10858 | Py_INCREF(Py_None); | |
10859 | _resultobj = Py_None; | |
10860 | } | |
10861 | { | |
10862 | if (_obj2) | |
10863 | delete _arg2; | |
10864 | } | |
10865 | return _resultobj; | |
10866 | } | |
10867 | ||
aa2a5b86 RD |
10868 | #define new_wxPreToggleButton() (new wxToggleButton()) |
10869 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10870 | PyObject * _resultobj; | |
10871 | wxToggleButton * _result; | |
10872 | char *_kwnames[] = { NULL }; | |
10873 | char _ptemp[128]; | |
10874 | ||
10875 | self = self; | |
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10877 | return NULL; | |
10878 | { | |
474c48f9 | 10879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10880 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
aa2a5b86 | 10881 | |
474c48f9 | 10882 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10883 | if (PyErr_Occurred()) return NULL; |
10884 | } if (_result) { | |
10885 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10886 | _resultobj = Py_BuildValue("s",_ptemp); | |
10887 | } else { | |
10888 | Py_INCREF(Py_None); | |
10889 | _resultobj = Py_None; | |
10890 | } | |
10891 | return _resultobj; | |
10892 | } | |
10893 | ||
10894 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10895 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10896 | PyObject * _resultobj; | |
10897 | bool _result; | |
10898 | wxToggleButton * _arg0; | |
10899 | wxWindow * _arg1; | |
10900 | wxWindowID _arg2; | |
10901 | wxString * _arg3; | |
10902 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10903 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10904 | long _arg6 = (long ) 0; | |
10905 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10906 | char * _arg8 = (char *) "toggle"; | |
10907 | PyObject * _argo0 = 0; | |
10908 | PyObject * _argo1 = 0; | |
10909 | PyObject * _obj3 = 0; | |
10910 | wxPoint temp; | |
10911 | PyObject * _obj4 = 0; | |
10912 | wxSize temp0; | |
10913 | PyObject * _obj5 = 0; | |
10914 | PyObject * _argo7 = 0; | |
10915 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10916 | ||
10917 | self = self; | |
10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
10919 | return NULL; | |
10920 | if (_argo0) { | |
10921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
10924 | return NULL; | |
10925 | } | |
10926 | } | |
10927 | if (_argo1) { | |
10928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
10931 | return NULL; | |
10932 | } | |
10933 | } | |
10934 | { | |
c8bc7bb8 RD |
10935 | _arg3 = wxString_in_helper(_obj3); |
10936 | if (_arg3 == NULL) | |
aa2a5b86 | 10937 | return NULL; |
aa2a5b86 RD |
10938 | } |
10939 | if (_obj4) | |
10940 | { | |
10941 | _arg4 = &temp; | |
10942 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10943 | return NULL; | |
10944 | } | |
10945 | if (_obj5) | |
10946 | { | |
10947 | _arg5 = &temp0; | |
10948 | if (! wxSize_helper(_obj5, &_arg5)) | |
10949 | return NULL; | |
10950 | } | |
10951 | if (_argo7) { | |
10952 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10953 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
10955 | return NULL; | |
10956 | } | |
10957 | } | |
10958 | { | |
474c48f9 | 10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10960 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
aa2a5b86 | 10961 | |
474c48f9 | 10962 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10963 | if (PyErr_Occurred()) return NULL; |
10964 | } _resultobj = Py_BuildValue("i",_result); | |
10965 | { | |
10966 | if (_obj3) | |
10967 | delete _arg3; | |
10968 | } | |
10969 | return _resultobj; | |
10970 | } | |
10971 | ||
7a446686 RD |
10972 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
10973 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10974 | PyObject * _resultobj; | |
10975 | wxToggleButton * _arg0; | |
10976 | bool _arg1; | |
10977 | PyObject * _argo0 = 0; | |
10978 | int tempbool1; | |
10979 | char *_kwnames[] = { "self","value", NULL }; | |
10980 | ||
10981 | self = self; | |
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10983 | return NULL; | |
10984 | if (_argo0) { | |
10985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
10988 | return NULL; | |
10989 | } | |
10990 | } | |
10991 | _arg1 = (bool ) tempbool1; | |
10992 | { | |
474c48f9 | 10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10994 | wxToggleButton_SetValue(_arg0,_arg1); |
7a446686 | 10995 | |
474c48f9 | 10996 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10997 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
10998 | } Py_INCREF(Py_None); |
10999 | _resultobj = Py_None; | |
11000 | return _resultobj; | |
11001 | } | |
11002 | ||
11003 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11004 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11005 | PyObject * _resultobj; | |
11006 | bool _result; | |
11007 | wxToggleButton * _arg0; | |
11008 | PyObject * _argo0 = 0; | |
11009 | char *_kwnames[] = { "self", NULL }; | |
11010 | ||
11011 | self = self; | |
11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11013 | return NULL; | |
11014 | if (_argo0) { | |
11015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11018 | return NULL; | |
11019 | } | |
11020 | } | |
11021 | { | |
474c48f9 | 11022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11023 | _result = (bool )wxToggleButton_GetValue(_arg0); |
7a446686 | 11024 | |
474c48f9 | 11025 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11026 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11027 | } _resultobj = Py_BuildValue("i",_result); |
11028 | return _resultobj; | |
11029 | } | |
11030 | ||
11031 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11032 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11033 | PyObject * _resultobj; | |
11034 | wxToggleButton * _arg0; | |
11035 | wxString * _arg1; | |
11036 | PyObject * _argo0 = 0; | |
11037 | PyObject * _obj1 = 0; | |
11038 | char *_kwnames[] = { "self","label", NULL }; | |
11039 | ||
11040 | self = self; | |
11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11042 | return NULL; | |
11043 | if (_argo0) { | |
11044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11047 | return NULL; | |
11048 | } | |
11049 | } | |
11050 | { | |
c8bc7bb8 RD |
11051 | _arg1 = wxString_in_helper(_obj1); |
11052 | if (_arg1 == NULL) | |
7a446686 | 11053 | return NULL; |
7a446686 RD |
11054 | } |
11055 | { | |
474c48f9 | 11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11057 | wxToggleButton_SetLabel(_arg0,*_arg1); |
7a446686 | 11058 | |
474c48f9 | 11059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11060 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11061 | } Py_INCREF(Py_None); |
11062 | _resultobj = Py_None; | |
11063 | { | |
11064 | if (_obj1) | |
11065 | delete _arg1; | |
11066 | } | |
11067 | return _resultobj; | |
11068 | } | |
11069 | ||
70551f47 | 11070 | static PyMethodDef controlscMethods[] = { |
7a446686 RD |
11071 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11072 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11074 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11075 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 | 11076 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11077 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11078 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11079 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11080 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11081 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11082 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11083 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11084 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11085 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11086 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11087 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11088 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11089 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11090 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11091 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11092 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11093 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11094 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11095 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11096 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11097 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11098 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11099 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11100 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11101 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11102 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11103 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11104 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
11105 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11106 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
11107 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11108 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11109 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11110 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11111 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
11112 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11113 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11114 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11115 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11116 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11117 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11118 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11119 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11120 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11121 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11122 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
11123 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11124 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11125 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11126 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11127 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
11128 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11129 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11130 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11131 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
11132 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11133 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
11134 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11135 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11136 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11138 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11139 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11140 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11141 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
11142 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a | 11144 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 11145 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11146 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
11147 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11148 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11149 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11150 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
11151 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11152 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11153 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 11154 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11155 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
11156 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11157 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11158 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11159 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11160 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11161 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11162 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11163 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
11164 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
11165 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11166 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
11167 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11168 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
11169 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
11170 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11171 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11172 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11173 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11174 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11175 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
11176 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11178 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
11179 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
11180 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
11181 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11182 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11183 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11184 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
11185 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
93283355 | 11187 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11188 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11189 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11190 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11191 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
11192 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
db34b2d4 | 11194 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11195 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11196 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11197 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11198 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11199 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11200 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 | 11201 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
11202 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11203 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11213 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 11214 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11215 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
11216 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11217 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11218 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11219 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
11220 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11227 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 | 11228 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11229 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11230 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11231 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11232 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11233 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11234 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
11235 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11237 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
11238 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11239 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11240 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
11241 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11242 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11243 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11244 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11245 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
11246 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11254 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11255 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11256 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
c70fd24f RD |
11257 | { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11258 | { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11267 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11268 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11269 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11276 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11277 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11278 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11279 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11280 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11281 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11282 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11283 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11284 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11285 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11286 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11288 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11289 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11290 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11291 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11292 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11293 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11295 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11296 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11297 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11298 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11299 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11301 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11302 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11309 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11310 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11311 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11312 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 RD |
11313 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11314 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11315 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11316 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11317 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11318 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
85247b36 | 11319 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
11320 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11321 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11331 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11332 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11333 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11334 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11335 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11336 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
11337 | { NULL, NULL } |
11338 | }; | |
2d091820 RD |
11339 | #ifdef __cplusplus |
11340 | } | |
11341 | #endif | |
11342 | /* | |
11343 | * This table is used by the pointer type-checker | |
11344 | */ | |
11345 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 11346 | { "_signed_long","_long",0}, |
4120ef2b | 11347 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
11348 | { "_wxPrintQuality","_int",0}, |
11349 | { "_wxPrintQuality","_signed_int",0}, | |
11350 | { "_wxPrintQuality","_unsigned_int",0}, | |
11351 | { "_wxPrintQuality","_wxWindowID",0}, | |
11352 | { "_wxPrintQuality","_uint",0}, | |
11353 | { "_wxPrintQuality","_EBool",0}, | |
11354 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11355 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 11356 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
11357 | { "_long","_unsigned_long",0}, |
11358 | { "_long","_signed_long",0}, | |
4120ef2b | 11359 | { "_size_t","_wxCoord",0}, |
2d091820 | 11360 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11361 | { "_size_t","_time_t",0}, |
2d091820 RD |
11362 | { "_size_t","_unsigned_int",0}, |
11363 | { "_size_t","_int",0}, | |
11364 | { "_size_t","_wxWindowID",0}, | |
11365 | { "_size_t","_uint",0}, | |
4120ef2b | 11366 | { "_uint","_wxCoord",0}, |
2d091820 | 11367 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11368 | { "_uint","_time_t",0}, |
2d091820 RD |
11369 | { "_uint","_size_t",0}, |
11370 | { "_uint","_unsigned_int",0}, | |
11371 | { "_uint","_int",0}, | |
11372 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11373 | { "_wxChar","_char",0}, |
f6bcfd97 | 11374 | { "_char","_wxChar",0}, |
f6bcfd97 | 11375 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
059a841c | 11376 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 11377 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
11378 | { "_EBool","_wxPrintQuality",0}, |
11379 | { "_EBool","_signed_int",0}, | |
11380 | { "_EBool","_int",0}, | |
11381 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 11382 | { "_unsigned_long","_long",0}, |
059a841c | 11383 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 11384 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
11385 | { "_signed_int","_wxPrintQuality",0}, |
11386 | { "_signed_int","_EBool",0}, | |
11387 | { "_signed_int","_wxWindowID",0}, | |
11388 | { "_signed_int","_int",0}, | |
2d091820 | 11389 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
2d091820 RD |
11390 | { "_WXTYPE","_short",0}, |
11391 | { "_WXTYPE","_signed_short",0}, | |
11392 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
11393 | { "_unsigned_short","_WXTYPE",0}, |
11394 | { "_unsigned_short","_short",0}, | |
9df61a29 | 11395 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9df61a29 | 11396 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9df61a29 | 11397 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9df61a29 | 11398 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9df61a29 | 11399 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9df61a29 | 11400 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9df61a29 | 11401 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9df61a29 | 11402 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9df61a29 | 11403 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9df61a29 | 11404 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9df61a29 | 11405 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9df61a29 | 11406 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9df61a29 | 11407 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9df61a29 | 11408 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9df61a29 | 11409 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9df61a29 | 11410 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9df61a29 | 11411 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9df61a29 | 11412 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9df61a29 | 11413 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9df61a29 | 11414 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
65191ae8 | 11415 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9df61a29 | 11416 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
2d091820 RD |
11417 | { "_signed_short","_WXTYPE",0}, |
11418 | { "_signed_short","_short",0}, | |
2d091820 | 11419 | { "_unsigned_char","_byte",0}, |
7a446686 | 11420 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 11421 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
2d091820 | 11422 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
2d091820 | 11423 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
2d091820 | 11424 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
2d091820 | 11425 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
2d091820 | 11426 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
2d091820 | 11427 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
2d091820 | 11428 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
2d091820 | 11429 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
2d091820 | 11430 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
2d091820 | 11431 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
2d091820 | 11432 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
2d091820 | 11433 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
2d091820 | 11434 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
2d091820 | 11435 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
2d091820 | 11436 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
2d091820 | 11437 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
2d091820 | 11438 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
2d091820 | 11439 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
65191ae8 | 11440 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
4120ef2b | 11441 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 11442 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11443 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
11444 | { "_unsigned_int","_size_t",0}, |
11445 | { "_unsigned_int","_uint",0}, | |
11446 | { "_unsigned_int","_wxWindowID",0}, | |
11447 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
11448 | { "_short","_WXTYPE",0}, |
11449 | { "_short","_unsigned_short",0}, | |
11450 | { "_short","_signed_short",0}, | |
65191ae8 | 11451 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
65191ae8 | 11452 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, |
65191ae8 | 11453 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, |
4120ef2b | 11454 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 11455 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11456 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
11457 | { "_wxWindowID","_size_t",0}, |
11458 | { "_wxWindowID","_EBool",0}, | |
11459 | { "_wxWindowID","_uint",0}, | |
11460 | { "_wxWindowID","_int",0}, | |
11461 | { "_wxWindowID","_signed_int",0}, | |
11462 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 11463 | { "_int","_wxCoord",0}, |
2d091820 | 11464 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11465 | { "_int","_time_t",0}, |
2d091820 RD |
11466 | { "_int","_size_t",0}, |
11467 | { "_int","_EBool",0}, | |
11468 | { "_int","_uint",0}, | |
11469 | { "_int","_wxWindowID",0}, | |
11470 | { "_int","_unsigned_int",0}, | |
11471 | { "_int","_signed_int",0}, | |
c368d904 RD |
11472 | { "_time_t","_wxCoord",0}, |
11473 | { "_time_t","_wxPrintQuality",0}, | |
11474 | { "_time_t","_unsigned_int",0}, | |
11475 | { "_time_t","_int",0}, | |
11476 | { "_time_t","_wxWindowID",0}, | |
11477 | { "_time_t","_uint",0}, | |
11478 | { "_time_t","_size_t",0}, | |
2d091820 | 11479 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
4120ef2b RD |
11480 | { "_wxCoord","_int",0}, |
11481 | { "_wxCoord","_signed_int",0}, | |
11482 | { "_wxCoord","_unsigned_int",0}, | |
11483 | { "_wxCoord","_wxWindowID",0}, | |
11484 | { "_wxCoord","_uint",0}, | |
11485 | { "_wxCoord","_EBool",0}, | |
11486 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11487 | { "_wxCoord","_time_t",0}, |
4120ef2b | 11488 | { "_wxCoord","_wxPrintQuality",0}, |
7a446686 | 11489 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 11490 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
2d091820 | 11491 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
2d091820 | 11492 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
2d091820 | 11493 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
2d091820 | 11494 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
2d091820 | 11495 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
2d091820 | 11496 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
2d091820 | 11497 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
2d091820 | 11498 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
2d091820 | 11499 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
2d091820 | 11500 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
2d091820 | 11501 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
2d091820 | 11502 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
2d091820 | 11503 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
2d091820 | 11504 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
2d091820 | 11505 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
2d091820 | 11506 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
2d091820 | 11507 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
2d091820 | 11508 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
65191ae8 | 11509 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
2d091820 | 11510 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
7a446686 | 11511 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 11512 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
2d091820 | 11513 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
2d091820 | 11514 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
2d091820 | 11515 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
2d091820 | 11516 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
2d091820 | 11517 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
2d091820 | 11518 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
2d091820 | 11519 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
2d091820 | 11520 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
2d091820 | 11521 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
2d091820 | 11522 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
2d091820 | 11523 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
2d091820 | 11524 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
2d091820 | 11525 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
2d091820 | 11526 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
2d091820 | 11527 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
2d091820 | 11528 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
2d091820 | 11529 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
2d091820 | 11530 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
65191ae8 | 11531 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
2d091820 | 11532 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
2d091820 RD |
11533 | {0,0,0}}; |
11534 | ||
70551f47 RD |
11535 | static PyObject *SWIG_globals; |
11536 | #ifdef __cplusplus | |
11537 | extern "C" | |
11538 | #endif | |
2d091820 | 11539 | SWIGEXPORT(void) initcontrolsc() { |
70551f47 RD |
11540 | PyObject *m, *d; |
11541 | SWIG_globals = SWIG_newvarlink(); | |
11542 | m = Py_InitModule("controlsc", controlscMethods); | |
11543 | d = PyModule_GetDict(m); | |
37f6a977 RD |
11544 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11545 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
7a446686 | 11546 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
2d091820 RD |
11547 | { |
11548 | int i; | |
11549 | for (i = 0; _swig_mapping[i].n1; i++) | |
11550 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11551 | } | |
70551f47 | 11552 | } |