]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/controls.cpp
Fixed some warnings in wxSTC
[wxWidgets.git] / wxPython / src / gtk / controls.cpp
CommitLineData
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
42extern "C" {
43#endif
3bcd5e1c 44
70551f47
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
70551f47
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern 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
78static PyObject* t_output_helper(PyObject* target, PyObject* o) {
79 PyObject* o2;
80 PyObject* o3;
81
3bcd5e1c 82 if (!target) {
70551f47 83 target = o;
3bcd5e1c 84 } else if (target == Py_None) {
70551f47
RD
85 Py_DECREF(Py_None);
86 target = o;
3bcd5e1c 87 } else {
70551f47
RD
88 if (!PyTuple_Check(target)) {
89 o2 = target;
90 target = PyTuple_New(1);
91 PyTuple_SetItem(target, 0, o2);
92 }
3bcd5e1c
RD
93 o3 = PyTuple_New(1);
94 PyTuple_SetItem(o3, 0, o);
70551f47
RD
95
96 o2 = target;
3bcd5e1c
RD
97 target = PySequence_Concat(o2, o3);
98 Py_DECREF(o2);
70551f47
RD
99 Py_DECREF(o3);
100 }
101 return target;
102}
103
7a446686
RD
104#if PYTHON_API_VERSION >= 1009
105 static char* wxStringErrorMsg = "String or Unicode type required";
106#else
0220cbc1 107 static char* wxStringErrorMsg = "String type required";
7a446686 108#endif
2d091820
RD
109#ifdef __cplusplus
110extern "C" {
111#endif
37f6a977
RD
112static int _wrap_wxDefaultValidator_set(PyObject *val) {
113
114 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only.");
115 return 1;
116}
117
118static PyObject *_wrap_wxDefaultValidator_get() {
119 PyObject * pyobj;
120 char ptemp[128];
121
122 SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p");
123 pyobj = PyString_FromString(ptemp);
124 return pyobj;
125}
126
70551f47
RD
127static void *SwigwxControlTowxWindow(void *ptr) {
128 wxControl *src;
129 wxWindow *dest;
130 src = (wxControl *) ptr;
131 dest = (wxWindow *) src;
132 return (void *) dest;
133}
134
135static void *SwigwxControlTowxEvtHandler(void *ptr) {
136 wxControl *src;
137 wxEvtHandler *dest;
138 src = (wxControl *) ptr;
139 dest = (wxEvtHandler *) src;
140 return (void *) dest;
141}
142
9df61a29
RD
143static void *SwigwxControlTowxObject(void *ptr) {
144 wxControl *src;
145 wxObject *dest;
146 src = (wxControl *) ptr;
147 dest = (wxObject *) src;
148 return (void *) dest;
149}
150
ab2208b5 151#define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
56f5d962
RD
152static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) {
153 PyObject * _resultobj;
154 wxControl * _result;
ab2208b5
RD
155 wxWindow * _arg0;
156 wxWindowID _arg1;
b68dc582
RD
157 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
158 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
ab2208b5 159 long _arg4 = (long ) 0;
b68dc582 160 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
ab2208b5 161 char * _arg6 = (char *) "control";
56f5d962 162 PyObject * _argo0 = 0;
56f5d962 163 wxPoint temp;
ab2208b5 164 PyObject * _obj2 = 0;
56f5d962 165 wxSize temp0;
ab2208b5
RD
166 PyObject * _obj3 = 0;
167 PyObject * _argo5 = 0;
168 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
169 char _ptemp[128];
56f5d962
RD
170
171 self = self;
ab2208b5 172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
56f5d962
RD
173 return NULL;
174 if (_argo0) {
175 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p.");
56f5d962
RD
178 return NULL;
179 }
180 }
ab2208b5 181 if (_obj2)
56f5d962 182{
ab2208b5
RD
183 _arg2 = &temp;
184 if (! wxPoint_helper(_obj2, &_arg2))
56f5d962
RD
185 return NULL;
186}
ab2208b5 187 if (_obj3)
56f5d962 188{
ab2208b5
RD
189 _arg3 = &temp0;
190 if (! wxSize_helper(_obj3, &_arg3))
56f5d962
RD
191 return NULL;
192}
ab2208b5
RD
193 if (_argo5) {
194 if (_argo5 == Py_None) { _arg5 = NULL; }
195 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
196 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p.");
56f5d962
RD
197 return NULL;
198 }
199 }
200{
201 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 202 _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
56f5d962
RD
203
204 wxPy_END_ALLOW_THREADS;
4dfaa61e 205 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
206} if (_result) {
207 SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
208 _resultobj = Py_BuildValue("s",_ptemp);
209 } else {
210 Py_INCREF(Py_None);
211 _resultobj = Py_None;
212 }
56f5d962
RD
213 return _resultobj;
214}
215
aa2a5b86
RD
216#define new_wxPreControl() (new wxControl())
217static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
218 PyObject * _resultobj;
219 wxControl * _result;
220 char *_kwnames[] = { NULL };
221 char _ptemp[128];
222
223 self = self;
224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames))
225 return NULL;
226{
227 wxPy_BEGIN_ALLOW_THREADS;
228 _result = (wxControl *)new_wxPreControl();
229
230 wxPy_END_ALLOW_THREADS;
231 if (PyErr_Occurred()) return NULL;
232} if (_result) {
233 SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
234 _resultobj = Py_BuildValue("s",_ptemp);
235 } else {
236 Py_INCREF(Py_None);
237 _resultobj = Py_None;
238 }
239 return _resultobj;
240}
241
242#define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
243static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
244 PyObject * _resultobj;
245 bool _result;
246 wxControl * _arg0;
247 wxWindow * _arg1;
248 wxWindowID _arg2;
249 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
250 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
251 long _arg5 = (long ) 0;
252 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
253 char * _arg7 = (char *) "control";
254 PyObject * _argo0 = 0;
255 PyObject * _argo1 = 0;
256 wxPoint temp;
257 PyObject * _obj3 = 0;
258 wxSize temp0;
259 PyObject * _obj4 = 0;
260 PyObject * _argo6 = 0;
261 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
262
263 self = self;
264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
265 return NULL;
266 if (_argo0) {
267 if (_argo0 == Py_None) { _arg0 = NULL; }
268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p.");
270 return NULL;
271 }
272 }
273 if (_argo1) {
274 if (_argo1 == Py_None) { _arg1 = NULL; }
275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p.");
277 return NULL;
278 }
279 }
280 if (_obj3)
281{
282 _arg3 = &temp;
283 if (! wxPoint_helper(_obj3, &_arg3))
284 return NULL;
285}
286 if (_obj4)
287{
288 _arg4 = &temp0;
289 if (! wxSize_helper(_obj4, &_arg4))
290 return NULL;
291}
292 if (_argo6) {
293 if (_argo6 == Py_None) { _arg6 = NULL; }
294 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p.");
296 return NULL;
297 }
298 }
299{
300 wxPy_BEGIN_ALLOW_THREADS;
301 _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
302
303 wxPy_END_ALLOW_THREADS;
304 if (PyErr_Occurred()) return NULL;
305} _resultobj = Py_BuildValue("i",_result);
306 return _resultobj;
307}
308
56f5d962
RD
309#define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
310static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
311 PyObject * _resultobj;
312 wxControl * _arg0;
313 wxCommandEvent * _arg1;
314 PyObject * _argo0 = 0;
315 PyObject * _argo1 = 0;
316 char *_kwnames[] = { "self","event", NULL };
317
318 self = self;
319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1))
320 return NULL;
321 if (_argo0) {
322 if (_argo0 == Py_None) { _arg0 = NULL; }
323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p.");
325 return NULL;
326 }
327 }
328 if (_argo1) {
329 if (_argo1 == Py_None) { _arg1 = NULL; }
330 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) {
331 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p.");
332 return NULL;
333 }
334 }
335{
336 wxPy_BEGIN_ALLOW_THREADS;
337 wxControl_Command(_arg0,*_arg1);
338
339 wxPy_END_ALLOW_THREADS;
4dfaa61e 340 if (PyErr_Occurred()) return NULL;
56f5d962
RD
341} Py_INCREF(Py_None);
342 _resultobj = Py_None;
343 return _resultobj;
344}
345
70551f47 346#define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel())
107e4716 347static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
348 PyObject * _resultobj;
349 wxString * _result;
350 wxControl * _arg0;
2d091820 351 PyObject * _argo0 = 0;
107e4716 352 char *_kwnames[] = { "self", NULL };
70551f47
RD
353
354 self = self;
107e4716 355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0))
70551f47 356 return NULL;
2d091820
RD
357 if (_argo0) {
358 if (_argo0 == Py_None) { _arg0 = NULL; }
359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
70551f47
RD
360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p.");
361 return NULL;
362 }
363 }
70551f47 364{
ab9bc19b
RD
365 wxPy_BEGIN_ALLOW_THREADS;
366 _result = new wxString (wxControl_GetLabel(_arg0));
367
368 wxPy_END_ALLOW_THREADS;
4dfaa61e 369 if (PyErr_Occurred()) return NULL;
ab9bc19b 370}{
e02c03a4 371 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
70551f47
RD
372}
373{
374 delete _result;
375}
376 return _resultobj;
377}
378
379#define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
107e4716 380static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
381 PyObject * _resultobj;
382 wxControl * _arg0;
383 wxString * _arg1;
2d091820 384 PyObject * _argo0 = 0;
70551f47 385 PyObject * _obj1 = 0;
107e4716 386 char *_kwnames[] = { "self","label", NULL };
70551f47
RD
387
388 self = self;
107e4716 389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1))
70551f47 390 return NULL;
2d091820
RD
391 if (_argo0) {
392 if (_argo0 == Py_None) { _arg0 = NULL; }
393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
70551f47
RD
394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p.");
395 return NULL;
396 }
397 }
398{
2cd2fac8
RD
399#if PYTHON_API_VERSION >= 1009
400 char* tmpPtr; int tmpSize;
401 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 402 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
403 return NULL;
404 }
405 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
406 return NULL;
407 _arg1 = new wxString(tmpPtr, tmpSize);
408#else
70551f47
RD
409 if (!PyString_Check(_obj1)) {
410 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
411 return NULL;
412 }
2cd2fac8
RD
413 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
414#endif
70551f47 415}
ab9bc19b
RD
416{
417 wxPy_BEGIN_ALLOW_THREADS;
418 wxControl_SetLabel(_arg0,*_arg1);
419
420 wxPy_END_ALLOW_THREADS;
4dfaa61e 421 if (PyErr_Occurred()) return NULL;
ab9bc19b 422} Py_INCREF(Py_None);
70551f47
RD
423 _resultobj = Py_None;
424{
425 if (_obj1)
426 delete _arg1;
427}
428 return _resultobj;
429}
430
65191ae8
RD
431static void *SwigwxControlWithItemsTowxControl(void *ptr) {
432 wxControlWithItems *src;
433 wxControl *dest;
434 src = (wxControlWithItems *) ptr;
435 dest = (wxControl *) src;
436 return (void *) dest;
437}
438
439static void *SwigwxControlWithItemsTowxWindow(void *ptr) {
440 wxControlWithItems *src;
441 wxWindow *dest;
442 src = (wxControlWithItems *) ptr;
443 dest = (wxWindow *) src;
444 return (void *) dest;
445}
446
447static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) {
448 wxControlWithItems *src;
449 wxEvtHandler *dest;
450 src = (wxControlWithItems *) ptr;
451 dest = (wxEvtHandler *) src;
452 return (void *) dest;
453}
454
455static void *SwigwxControlWithItemsTowxObject(void *ptr) {
456 wxControlWithItems *src;
457 wxObject *dest;
458 src = (wxControlWithItems *) ptr;
459 dest = (wxObject *) src;
460 return (void *) dest;
461}
462
463#define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
464static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
465 PyObject * _resultobj;
466 wxControlWithItems * _arg0;
467 int _arg1;
468 PyObject * _argo0 = 0;
469 char *_kwnames[] = { "self","n", NULL };
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1))
473 return NULL;
474 if (_argo0) {
475 if (_argo0 == Py_None) { _arg0 = NULL; }
476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p.");
478 return NULL;
479 }
480 }
481{
482 wxPy_BEGIN_ALLOW_THREADS;
483 wxControlWithItems_Delete(_arg0,_arg1);
484
485 wxPy_END_ALLOW_THREADS;
486 if (PyErr_Occurred()) return NULL;
487} Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 return _resultobj;
490}
491
492#define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount())
493static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 int _result;
496 wxControlWithItems * _arg0;
497 PyObject * _argo0 = 0;
498 char *_kwnames[] = { "self", NULL };
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0))
502 return NULL;
503 if (_argo0) {
504 if (_argo0 == Py_None) { _arg0 = NULL; }
505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p.");
507 return NULL;
508 }
509 }
510{
511 wxPy_BEGIN_ALLOW_THREADS;
512 _result = (int )wxControlWithItems_GetCount(_arg0);
513
514 wxPy_END_ALLOW_THREADS;
515 if (PyErr_Occurred()) return NULL;
516} _resultobj = Py_BuildValue("i",_result);
517 return _resultobj;
518}
519
520#define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
521static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
522 PyObject * _resultobj;
523 wxString * _result;
524 wxControlWithItems * _arg0;
525 int _arg1;
526 PyObject * _argo0 = 0;
527 char *_kwnames[] = { "self","n", NULL };
528
529 self = self;
530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1))
531 return NULL;
532 if (_argo0) {
533 if (_argo0 == Py_None) { _arg0 = NULL; }
534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p.");
536 return NULL;
537 }
538 }
539{
540 wxPy_BEGIN_ALLOW_THREADS;
541 _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1));
542
543 wxPy_END_ALLOW_THREADS;
544 if (PyErr_Occurred()) return NULL;
545}{
546 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
547}
548{
549 delete _result;
550}
551 return _resultobj;
552}
553
554#define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
555static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
556 PyObject * _resultobj;
557 wxControlWithItems * _arg0;
558 int _arg1;
559 wxString * _arg2;
560 PyObject * _argo0 = 0;
561 PyObject * _obj2 = 0;
562 char *_kwnames[] = { "self","n","s", NULL };
563
564 self = self;
565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
566 return NULL;
567 if (_argo0) {
568 if (_argo0 == Py_None) { _arg0 = NULL; }
569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p.");
571 return NULL;
572 }
573 }
574{
575#if PYTHON_API_VERSION >= 1009
576 char* tmpPtr; int tmpSize;
577 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
578 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
579 return NULL;
580 }
581 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
582 return NULL;
583 _arg2 = new wxString(tmpPtr, tmpSize);
584#else
585 if (!PyString_Check(_obj2)) {
586 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
587 return NULL;
588 }
589 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
590#endif
591}
592{
593 wxPy_BEGIN_ALLOW_THREADS;
594 wxControlWithItems_SetString(_arg0,_arg1,*_arg2);
595
596 wxPy_END_ALLOW_THREADS;
597 if (PyErr_Occurred()) return NULL;
598} Py_INCREF(Py_None);
599 _resultobj = Py_None;
600{
601 if (_obj2)
602 delete _arg2;
603}
604 return _resultobj;
605}
606
607#define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
608static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject * _resultobj;
610 int _result;
611 wxControlWithItems * _arg0;
612 wxString * _arg1;
613 PyObject * _argo0 = 0;
614 PyObject * _obj1 = 0;
615 char *_kwnames[] = { "self","s", NULL };
616
617 self = self;
618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1))
619 return NULL;
620 if (_argo0) {
621 if (_argo0 == Py_None) { _arg0 = NULL; }
622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p.");
624 return NULL;
625 }
626 }
627{
628#if PYTHON_API_VERSION >= 1009
629 char* tmpPtr; int tmpSize;
630 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
632 return NULL;
633 }
634 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
635 return NULL;
636 _arg1 = new wxString(tmpPtr, tmpSize);
637#else
638 if (!PyString_Check(_obj1)) {
639 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
640 return NULL;
641 }
642 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
643#endif
644}
645{
646 wxPy_BEGIN_ALLOW_THREADS;
647 _result = (int )wxControlWithItems_FindString(_arg0,*_arg1);
648
649 wxPy_END_ALLOW_THREADS;
650 if (PyErr_Occurred()) return NULL;
651} _resultobj = Py_BuildValue("i",_result);
652{
653 if (_obj1)
654 delete _arg1;
655}
656 return _resultobj;
657}
658
659#define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0))
660static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
661 PyObject * _resultobj;
662 wxControlWithItems * _arg0;
663 int _arg1;
664 PyObject * _argo0 = 0;
665 char *_kwnames[] = { "self","n", NULL };
666
667 self = self;
668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1))
669 return NULL;
670 if (_argo0) {
671 if (_argo0 == Py_None) { _arg0 = NULL; }
672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p.");
674 return NULL;
675 }
676 }
677{
678 wxPy_BEGIN_ALLOW_THREADS;
679 wxControlWithItems_Select(_arg0,_arg1);
680
681 wxPy_END_ALLOW_THREADS;
682 if (PyErr_Occurred()) return NULL;
683} Py_INCREF(Py_None);
684 _resultobj = Py_None;
685 return _resultobj;
686}
687
688#define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection())
689static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
690 PyObject * _resultobj;
691 int _result;
692 wxControlWithItems * _arg0;
693 PyObject * _argo0 = 0;
694 char *_kwnames[] = { "self", NULL };
695
696 self = self;
697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0))
698 return NULL;
699 if (_argo0) {
700 if (_argo0 == Py_None) { _arg0 = NULL; }
701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p.");
703 return NULL;
704 }
705 }
706{
707 wxPy_BEGIN_ALLOW_THREADS;
708 _result = (int )wxControlWithItems_GetSelection(_arg0);
709
710 wxPy_END_ALLOW_THREADS;
711 if (PyErr_Occurred()) return NULL;
712} _resultobj = Py_BuildValue("i",_result);
713 return _resultobj;
714}
715
716#define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
717static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
718 PyObject * _resultobj;
719 wxString * _result;
720 wxControlWithItems * _arg0;
721 PyObject * _argo0 = 0;
722 char *_kwnames[] = { "self", NULL };
723
724 self = self;
725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0))
726 return NULL;
727 if (_argo0) {
728 if (_argo0 == Py_None) { _arg0 = NULL; }
729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p.");
731 return NULL;
732 }
733 }
734{
735 wxPy_BEGIN_ALLOW_THREADS;
736 _result = new wxString (wxControlWithItems_GetStringSelection(_arg0));
737
738 wxPy_END_ALLOW_THREADS;
739 if (PyErr_Occurred()) return NULL;
740}{
741 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
742}
743{
744 delete _result;
745}
746 return _resultobj;
747}
748
749static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) {
750 if (clientData) {
751 wxPyClientData* data = new wxPyClientData(clientData);
752 self->Append(item, data);
753 } else
754 self->Append(item);
755 }
756static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject * _resultobj;
758 wxControlWithItems * _arg0;
759 wxString * _arg1;
760 PyObject * _arg2 = (PyObject *) NULL;
761 PyObject * _argo0 = 0;
762 PyObject * _obj1 = 0;
763 PyObject * _obj2 = 0;
764 char *_kwnames[] = { "self","item","clientData", NULL };
765
766 self = self;
767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2))
768 return NULL;
769 if (_argo0) {
770 if (_argo0 == Py_None) { _arg0 = NULL; }
771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p.");
773 return NULL;
774 }
775 }
776{
777#if PYTHON_API_VERSION >= 1009
778 char* tmpPtr; int tmpSize;
779 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
780 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
781 return NULL;
782 }
783 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
784 return NULL;
785 _arg1 = new wxString(tmpPtr, tmpSize);
786#else
787 if (!PyString_Check(_obj1)) {
788 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
789 return NULL;
790 }
791 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
792#endif
793}
794 if (_obj2)
795{
796 _arg2 = _obj2;
797}
798{
799 wxPy_BEGIN_ALLOW_THREADS;
800 wxControlWithItems_Append(_arg0,*_arg1,_arg2);
801
802 wxPy_END_ALLOW_THREADS;
803 if (PyErr_Occurred()) return NULL;
804} Py_INCREF(Py_None);
805 _resultobj = Py_None;
806{
807 if (_obj1)
808 delete _arg1;
809}
810 return _resultobj;
811}
812
813static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) {
814 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
815 if (data) {
816 Py_INCREF(data->m_obj);
817 return data->m_obj;
818 } else {
819 Py_INCREF(Py_None);
820 return Py_None;
821 }
822 }
823static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
824 PyObject * _resultobj;
825 PyObject * _result;
826 wxControlWithItems * _arg0;
827 int _arg1;
828 PyObject * _argo0 = 0;
829 char *_kwnames[] = { "self","n", NULL };
830
831 self = self;
832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1))
833 return NULL;
834 if (_argo0) {
835 if (_argo0 == Py_None) { _arg0 = NULL; }
836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p.");
838 return NULL;
839 }
840 }
841{
842 wxPy_BEGIN_ALLOW_THREADS;
843 _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1);
844
845 wxPy_END_ALLOW_THREADS;
846 if (PyErr_Occurred()) return NULL;
847}{
848 _resultobj = _result;
849}
850 return _resultobj;
851}
852
853static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) {
854 wxPyClientData* data = new wxPyClientData(clientData);
855 self->SetClientObject(n, data);
856 }
857static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
858 PyObject * _resultobj;
859 wxControlWithItems * _arg0;
860 int _arg1;
861 PyObject * _arg2;
862 PyObject * _argo0 = 0;
863 PyObject * _obj2 = 0;
864 char *_kwnames[] = { "self","n","clientData", NULL };
865
866 self = self;
867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2))
868 return NULL;
869 if (_argo0) {
870 if (_argo0 == Py_None) { _arg0 = NULL; }
871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p.");
873 return NULL;
874 }
875 }
876{
877 _arg2 = _obj2;
878}
879{
880 wxPy_BEGIN_ALLOW_THREADS;
881 wxControlWithItems_SetClientData(_arg0,_arg1,_arg2);
882
883 wxPy_END_ALLOW_THREADS;
884 if (PyErr_Occurred()) return NULL;
885} Py_INCREF(Py_None);
886 _resultobj = Py_None;
887 return _resultobj;
888}
889
70551f47
RD
890static void *SwigwxButtonTowxControl(void *ptr) {
891 wxButton *src;
892 wxControl *dest;
893 src = (wxButton *) ptr;
894 dest = (wxControl *) src;
895 return (void *) dest;
896}
897
898static void *SwigwxButtonTowxWindow(void *ptr) {
899 wxButton *src;
900 wxWindow *dest;
901 src = (wxButton *) ptr;
902 dest = (wxWindow *) src;
903 return (void *) dest;
904}
905
906static void *SwigwxButtonTowxEvtHandler(void *ptr) {
907 wxButton *src;
908 wxEvtHandler *dest;
909 src = (wxButton *) ptr;
910 dest = (wxEvtHandler *) src;
911 return (void *) dest;
912}
913
9df61a29
RD
914static void *SwigwxButtonTowxObject(void *ptr) {
915 wxButton *src;
916 wxObject *dest;
917 src = (wxButton *) ptr;
918 dest = (wxObject *) src;
919 return (void *) dest;
920}
921
70551f47 922#define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 923static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
924 PyObject * _resultobj;
925 wxButton * _result;
926 wxWindow * _arg0;
927 wxWindowID _arg1;
928 wxString * _arg2;
b68dc582
RD
929 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
930 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 931 long _arg5 = (long ) 0;
b68dc582 932 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
933 char * _arg7 = (char *) "button";
934 PyObject * _argo0 = 0;
70551f47 935 PyObject * _obj2 = 0;
37f6a977
RD
936 wxPoint temp;
937 PyObject * _obj3 = 0;
938 wxSize temp0;
939 PyObject * _obj4 = 0;
2d091820 940 PyObject * _argo6 = 0;
107e4716 941 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
70551f47
RD
942 char _ptemp[128];
943
944 self = self;
37f6a977 945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 946 return NULL;
2d091820
RD
947 if (_argo0) {
948 if (_argo0 == Py_None) { _arg0 = NULL; }
949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p.");
951 return NULL;
952 }
953 }
954{
2cd2fac8
RD
955#if PYTHON_API_VERSION >= 1009
956 char* tmpPtr; int tmpSize;
957 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 958 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
959 return NULL;
960 }
961 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
962 return NULL;
963 _arg2 = new wxString(tmpPtr, tmpSize);
964#else
70551f47
RD
965 if (!PyString_Check(_obj2)) {
966 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
967 return NULL;
968 }
2cd2fac8
RD
969 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
970#endif
70551f47 971}
37f6a977
RD
972 if (_obj3)
973{
974 _arg3 = &temp;
975 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 976 return NULL;
37f6a977
RD
977}
978 if (_obj4)
979{
980 _arg4 = &temp0;
981 if (! wxSize_helper(_obj4, &_arg4))
70551f47 982 return NULL;
37f6a977 983}
2d091820
RD
984 if (_argo6) {
985 if (_argo6 == Py_None) { _arg6 = NULL; }
986 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
70551f47
RD
987 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p.");
988 return NULL;
989 }
990 }
ab9bc19b
RD
991{
992 wxPy_BEGIN_ALLOW_THREADS;
993 _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
994
995 wxPy_END_ALLOW_THREADS;
4dfaa61e 996 if (PyErr_Occurred()) return NULL;
2d091820
RD
997} if (_result) {
998 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
999 _resultobj = Py_BuildValue("s",_ptemp);
1000 } else {
1001 Py_INCREF(Py_None);
1002 _resultobj = Py_None;
1003 }
70551f47
RD
1004{
1005 if (_obj2)
1006 delete _arg2;
1007}
1008 return _resultobj;
1009}
1010
aa2a5b86
RD
1011#define new_wxPreButton() (new wxButton())
1012static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1013 PyObject * _resultobj;
1014 wxButton * _result;
1015 char *_kwnames[] = { NULL };
1016 char _ptemp[128];
1017
1018 self = self;
1019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames))
1020 return NULL;
1021{
1022 wxPy_BEGIN_ALLOW_THREADS;
1023 _result = (wxButton *)new_wxPreButton();
1024
1025 wxPy_END_ALLOW_THREADS;
1026 if (PyErr_Occurred()) return NULL;
1027} if (_result) {
1028 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
1029 _resultobj = Py_BuildValue("s",_ptemp);
1030 } else {
1031 Py_INCREF(Py_None);
1032 _resultobj = Py_None;
1033 }
1034 return _resultobj;
1035}
1036
1037#define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1038static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject * _resultobj;
1040 bool _result;
1041 wxButton * _arg0;
1042 wxWindow * _arg1;
1043 wxWindowID _arg2;
1044 wxString * _arg3;
1045 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1046 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1047 long _arg6 = (long ) 0;
1048 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1049 char * _arg8 = (char *) "button";
1050 PyObject * _argo0 = 0;
1051 PyObject * _argo1 = 0;
1052 PyObject * _obj3 = 0;
1053 wxPoint temp;
1054 PyObject * _obj4 = 0;
1055 wxSize temp0;
1056 PyObject * _obj5 = 0;
1057 PyObject * _argo7 = 0;
1058 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
1059
1060 self = self;
1061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
1062 return NULL;
1063 if (_argo0) {
1064 if (_argo0 == Py_None) { _arg0 = NULL; }
1065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p.");
1067 return NULL;
1068 }
1069 }
1070 if (_argo1) {
1071 if (_argo1 == Py_None) { _arg1 = NULL; }
1072 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1073 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p.");
1074 return NULL;
1075 }
1076 }
1077{
1078#if PYTHON_API_VERSION >= 1009
1079 char* tmpPtr; int tmpSize;
1080 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1081 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1082 return NULL;
1083 }
1084 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1085 return NULL;
1086 _arg3 = new wxString(tmpPtr, tmpSize);
1087#else
1088 if (!PyString_Check(_obj3)) {
1089 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1090 return NULL;
1091 }
1092 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1093#endif
1094}
1095 if (_obj4)
1096{
1097 _arg4 = &temp;
1098 if (! wxPoint_helper(_obj4, &_arg4))
1099 return NULL;
1100}
1101 if (_obj5)
1102{
1103 _arg5 = &temp0;
1104 if (! wxSize_helper(_obj5, &_arg5))
1105 return NULL;
1106}
1107 if (_argo7) {
1108 if (_argo7 == Py_None) { _arg7 = NULL; }
1109 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1110 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p.");
1111 return NULL;
1112 }
1113 }
1114{
1115 wxPy_BEGIN_ALLOW_THREADS;
1116 _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
1117
1118 wxPy_END_ALLOW_THREADS;
1119 if (PyErr_Occurred()) return NULL;
1120} _resultobj = Py_BuildValue("i",_result);
1121{
1122 if (_obj3)
1123 delete _arg3;
1124}
1125 return _resultobj;
1126}
1127
70551f47 1128#define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault())
107e4716 1129static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1130 PyObject * _resultobj;
1131 wxButton * _arg0;
2d091820 1132 PyObject * _argo0 = 0;
107e4716 1133 char *_kwnames[] = { "self", NULL };
70551f47
RD
1134
1135 self = self;
107e4716 1136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0))
70551f47 1137 return NULL;
2d091820
RD
1138 if (_argo0) {
1139 if (_argo0 == Py_None) { _arg0 = NULL; }
1140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
70551f47
RD
1141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p.");
1142 return NULL;
1143 }
1144 }
ab9bc19b
RD
1145{
1146 wxPy_BEGIN_ALLOW_THREADS;
1147 wxButton_SetDefault(_arg0);
1148
1149 wxPy_END_ALLOW_THREADS;
4dfaa61e 1150 if (PyErr_Occurred()) return NULL;
ab9bc19b 1151} Py_INCREF(Py_None);
70551f47
RD
1152 _resultobj = Py_None;
1153 return _resultobj;
1154}
1155
ab2208b5
RD
1156#define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
1157static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1158 PyObject * _resultobj;
1159 wxButton * _arg0;
1160 wxColour * _arg1;
1161 PyObject * _argo0 = 0;
f6bcfd97
BP
1162 wxColour temp;
1163 PyObject * _obj1 = 0;
ab2208b5
RD
1164 char *_kwnames[] = { "self","colour", NULL };
1165
1166 self = self;
f6bcfd97 1167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
ab2208b5
RD
1168 return NULL;
1169 if (_argo0) {
1170 if (_argo0 == Py_None) { _arg0 = NULL; }
1171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p.");
1173 return NULL;
1174 }
1175 }
f6bcfd97
BP
1176{
1177 _arg1 = &temp;
1178 if (! wxColour_helper(_obj1, &_arg1))
ab2208b5 1179 return NULL;
f6bcfd97 1180}
ab2208b5
RD
1181{
1182 wxPy_BEGIN_ALLOW_THREADS;
1183 wxButton_SetBackgroundColour(_arg0,*_arg1);
1184
1185 wxPy_END_ALLOW_THREADS;
4dfaa61e 1186 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1187} Py_INCREF(Py_None);
1188 _resultobj = Py_None;
1189 return _resultobj;
1190}
1191
1192#define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
1193static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1194 PyObject * _resultobj;
1195 wxButton * _arg0;
1196 wxColour * _arg1;
1197 PyObject * _argo0 = 0;
f6bcfd97
BP
1198 wxColour temp;
1199 PyObject * _obj1 = 0;
ab2208b5
RD
1200 char *_kwnames[] = { "self","colour", NULL };
1201
1202 self = self;
f6bcfd97 1203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1))
ab2208b5
RD
1204 return NULL;
1205 if (_argo0) {
1206 if (_argo0 == Py_None) { _arg0 = NULL; }
1207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p.");
1209 return NULL;
1210 }
1211 }
f6bcfd97
BP
1212{
1213 _arg1 = &temp;
1214 if (! wxColour_helper(_obj1, &_arg1))
ab2208b5 1215 return NULL;
f6bcfd97 1216}
ab2208b5
RD
1217{
1218 wxPy_BEGIN_ALLOW_THREADS;
1219 wxButton_SetForegroundColour(_arg0,*_arg1);
1220
1221 wxPy_END_ALLOW_THREADS;
4dfaa61e 1222 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1223} Py_INCREF(Py_None);
1224 _resultobj = Py_None;
1225 return _resultobj;
1226}
1227
aa2a5b86
RD
1228static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1229 PyObject * _resultobj;
1230 wxSize * _result;
1231 char *_kwnames[] = { NULL };
1232 char _ptemp[128];
1233
1234 self = self;
1235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames))
1236 return NULL;
1237{
1238 wxPy_BEGIN_ALLOW_THREADS;
1239 _result = new wxSize (wxButton::GetDefaultSize());
1240
1241 wxPy_END_ALLOW_THREADS;
1242 if (PyErr_Occurred()) return NULL;
1243} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1244 _resultobj = Py_BuildValue("s",_ptemp);
1245 return _resultobj;
1246}
1247
1248static void *SwigwxBitmapButtonTowxButton(void *ptr) {
1249 wxBitmapButton *src;
1250 wxButton *dest;
1251 src = (wxBitmapButton *) ptr;
1252 dest = (wxButton *) src;
1253 return (void *) dest;
1254}
1255
1256static void *SwigwxBitmapButtonTowxControl(void *ptr) {
1257 wxBitmapButton *src;
1258 wxControl *dest;
1259 src = (wxBitmapButton *) ptr;
1260 dest = (wxControl *) src;
1261 return (void *) dest;
1262}
1263
1264static void *SwigwxBitmapButtonTowxWindow(void *ptr) {
1265 wxBitmapButton *src;
1266 wxWindow *dest;
1267 src = (wxBitmapButton *) ptr;
1268 dest = (wxWindow *) src;
1269 return (void *) dest;
1270}
1271
1272static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) {
1273 wxBitmapButton *src;
1274 wxEvtHandler *dest;
1275 src = (wxBitmapButton *) ptr;
1276 dest = (wxEvtHandler *) src;
1277 return (void *) dest;
1278}
1279
1280static void *SwigwxBitmapButtonTowxObject(void *ptr) {
1281 wxBitmapButton *src;
1282 wxObject *dest;
1283 src = (wxBitmapButton *) ptr;
1284 dest = (wxObject *) src;
9df61a29
RD
1285 return (void *) dest;
1286}
1287
70551f47 1288#define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 1289static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1290 PyObject * _resultobj;
1291 wxBitmapButton * _result;
1292 wxWindow * _arg0;
1293 wxWindowID _arg1;
1294 wxBitmap * _arg2;
b68dc582
RD
1295 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1296 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 1297 long _arg5 = (long ) wxBU_AUTODRAW;
b68dc582 1298 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
1299 char * _arg7 = (char *) "button";
1300 PyObject * _argo0 = 0;
1301 PyObject * _argo2 = 0;
37f6a977
RD
1302 wxPoint temp;
1303 PyObject * _obj3 = 0;
1304 wxSize temp0;
1305 PyObject * _obj4 = 0;
2d091820 1306 PyObject * _argo6 = 0;
107e4716 1307 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL };
70551f47
RD
1308 char _ptemp[128];
1309
1310 self = self;
37f6a977 1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 1312 return NULL;
2d091820
RD
1313 if (_argo0) {
1314 if (_argo0 == Py_None) { _arg0 = NULL; }
1315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
1316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p.");
1317 return NULL;
1318 }
1319 }
2d091820
RD
1320 if (_argo2) {
1321 if (_argo2 == Py_None) { _arg2 = NULL; }
1322 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
70551f47
RD
1323 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p.");
1324 return NULL;
1325 }
1326 }
37f6a977
RD
1327 if (_obj3)
1328{
1329 _arg3 = &temp;
1330 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 1331 return NULL;
37f6a977
RD
1332}
1333 if (_obj4)
1334{
1335 _arg4 = &temp0;
1336 if (! wxSize_helper(_obj4, &_arg4))
70551f47 1337 return NULL;
37f6a977 1338}
2d091820
RD
1339 if (_argo6) {
1340 if (_argo6 == Py_None) { _arg6 = NULL; }
1341 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
70551f47
RD
1342 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p.");
1343 return NULL;
1344 }
1345 }
ab9bc19b
RD
1346{
1347 wxPy_BEGIN_ALLOW_THREADS;
1348 _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
1349
1350 wxPy_END_ALLOW_THREADS;
4dfaa61e 1351 if (PyErr_Occurred()) return NULL;
2d091820
RD
1352} if (_result) {
1353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
1354 _resultobj = Py_BuildValue("s",_ptemp);
1355 } else {
1356 Py_INCREF(Py_None);
1357 _resultobj = Py_None;
1358 }
70551f47
RD
1359 return _resultobj;
1360}
1361
aa2a5b86
RD
1362#define new_wxPreBitmapButton() (new wxBitmapButton())
1363static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1364 PyObject * _resultobj;
1365 wxBitmapButton * _result;
1366 char *_kwnames[] = { NULL };
1367 char _ptemp[128];
1368
1369 self = self;
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames))
1371 return NULL;
1372{
1373 wxPy_BEGIN_ALLOW_THREADS;
1374 _result = (wxBitmapButton *)new_wxPreBitmapButton();
1375
1376 wxPy_END_ALLOW_THREADS;
1377 if (PyErr_Occurred()) return NULL;
1378} if (_result) {
1379 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
1380 _resultobj = Py_BuildValue("s",_ptemp);
1381 } else {
1382 Py_INCREF(Py_None);
1383 _resultobj = Py_None;
1384 }
1385 return _resultobj;
1386}
1387
1388#define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1389static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject * _resultobj;
1391 bool _result;
1392 wxBitmapButton * _arg0;
1393 wxWindow * _arg1;
1394 wxWindowID _arg2;
1395 wxBitmap * _arg3;
1396 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1397 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1398 long _arg6 = (long ) wxBU_AUTODRAW;
1399 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1400 char * _arg8 = (char *) "button";
1401 PyObject * _argo0 = 0;
1402 PyObject * _argo1 = 0;
1403 PyObject * _argo3 = 0;
1404 wxPoint temp;
1405 PyObject * _obj4 = 0;
1406 wxSize temp0;
1407 PyObject * _obj5 = 0;
1408 PyObject * _argo7 = 0;
1409 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL };
1410
1411 self = self;
1412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
1413 return NULL;
1414 if (_argo0) {
1415 if (_argo0 == Py_None) { _arg0 = NULL; }
1416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p.");
1418 return NULL;
1419 }
1420 }
1421 if (_argo1) {
1422 if (_argo1 == Py_None) { _arg1 = NULL; }
1423 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1424 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p.");
1425 return NULL;
1426 }
1427 }
1428 if (_argo3) {
1429 if (_argo3 == Py_None) { _arg3 = NULL; }
1430 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1431 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p.");
1432 return NULL;
1433 }
1434 }
1435 if (_obj4)
1436{
1437 _arg4 = &temp;
1438 if (! wxPoint_helper(_obj4, &_arg4))
1439 return NULL;
1440}
1441 if (_obj5)
1442{
1443 _arg5 = &temp0;
1444 if (! wxSize_helper(_obj5, &_arg5))
1445 return NULL;
1446}
1447 if (_argo7) {
1448 if (_argo7 == Py_None) { _arg7 = NULL; }
1449 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1450 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p.");
1451 return NULL;
1452 }
1453 }
1454{
1455 wxPy_BEGIN_ALLOW_THREADS;
1456 _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
1457
1458 wxPy_END_ALLOW_THREADS;
1459 if (PyErr_Occurred()) return NULL;
1460} _resultobj = Py_BuildValue("i",_result);
1461 return _resultobj;
1462}
1463
70551f47 1464#define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel())
107e4716 1465static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1466 PyObject * _resultobj;
1467 wxBitmap * _result;
1468 wxBitmapButton * _arg0;
2d091820 1469 PyObject * _argo0 = 0;
107e4716 1470 char *_kwnames[] = { "self", NULL };
70551f47
RD
1471 char _ptemp[128];
1472
1473 self = self;
107e4716 1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0))
70551f47 1475 return NULL;
2d091820
RD
1476 if (_argo0) {
1477 if (_argo0 == Py_None) { _arg0 = NULL; }
1478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
70551f47
RD
1479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p.");
1480 return NULL;
1481 }
1482 }
ab9bc19b
RD
1483{
1484 wxPy_BEGIN_ALLOW_THREADS;
1485 wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0);
70551f47 1486 _result = (wxBitmap *) &_result_ref;
ab9bc19b
RD
1487
1488 wxPy_END_ALLOW_THREADS;
4dfaa61e 1489 if (PyErr_Occurred()) return NULL;
2d091820
RD
1490} if (_result) {
1491 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1492 _resultobj = Py_BuildValue("s",_ptemp);
1493 } else {
1494 Py_INCREF(Py_None);
1495 _resultobj = Py_None;
1496 }
70551f47
RD
1497 return _resultobj;
1498}
1499
c95e68d8 1500#define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled())
107e4716 1501static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1502 PyObject * _resultobj;
1503 wxBitmap * _result;
1504 wxBitmapButton * _arg0;
2d091820 1505 PyObject * _argo0 = 0;
107e4716 1506 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
1507 char _ptemp[128];
1508
1509 self = self;
107e4716 1510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0))
c95e68d8 1511 return NULL;
2d091820
RD
1512 if (_argo0) {
1513 if (_argo0 == Py_None) { _arg0 = NULL; }
1514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p.");
1516 return NULL;
1517 }
1518 }
ab9bc19b
RD
1519{
1520 wxPy_BEGIN_ALLOW_THREADS;
1521 wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0);
c95e68d8 1522 _result = (wxBitmap *) &_result_ref;
ab9bc19b
RD
1523
1524 wxPy_END_ALLOW_THREADS;
4dfaa61e 1525 if (PyErr_Occurred()) return NULL;
2d091820
RD
1526} if (_result) {
1527 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1528 _resultobj = Py_BuildValue("s",_ptemp);
1529 } else {
1530 Py_INCREF(Py_None);
1531 _resultobj = Py_None;
1532 }
c95e68d8
RD
1533 return _resultobj;
1534}
1535
1536#define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus())
107e4716 1537static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1538 PyObject * _resultobj;
1539 wxBitmap * _result;
1540 wxBitmapButton * _arg0;
2d091820 1541 PyObject * _argo0 = 0;
107e4716 1542 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
1543 char _ptemp[128];
1544
1545 self = self;
107e4716 1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0))
c95e68d8 1547 return NULL;
2d091820
RD
1548 if (_argo0) {
1549 if (_argo0 == Py_None) { _arg0 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p.");
1552 return NULL;
1553 }
1554 }
ab9bc19b
RD
1555{
1556 wxPy_BEGIN_ALLOW_THREADS;
1557 wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0);
c95e68d8 1558 _result = (wxBitmap *) &_result_ref;
ab9bc19b
RD
1559
1560 wxPy_END_ALLOW_THREADS;
4dfaa61e 1561 if (PyErr_Occurred()) return NULL;
2d091820
RD
1562} if (_result) {
1563 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1564 _resultobj = Py_BuildValue("s",_ptemp);
1565 } else {
1566 Py_INCREF(Py_None);
1567 _resultobj = Py_None;
1568 }
c95e68d8
RD
1569 return _resultobj;
1570}
1571
1572#define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected())
107e4716 1573static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1574 PyObject * _resultobj;
1575 wxBitmap * _result;
1576 wxBitmapButton * _arg0;
2d091820 1577 PyObject * _argo0 = 0;
107e4716 1578 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
1579 char _ptemp[128];
1580
1581 self = self;
107e4716 1582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0))
c95e68d8 1583 return NULL;
2d091820
RD
1584 if (_argo0) {
1585 if (_argo0 == Py_None) { _arg0 = NULL; }
1586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p.");
1588 return NULL;
1589 }
1590 }
ab9bc19b
RD
1591{
1592 wxPy_BEGIN_ALLOW_THREADS;
1593 wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0);
c95e68d8 1594 _result = (wxBitmap *) &_result_ref;
ab9bc19b
RD
1595
1596 wxPy_END_ALLOW_THREADS;
4dfaa61e 1597 if (PyErr_Occurred()) return NULL;
2d091820
RD
1598} if (_result) {
1599 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1600 _resultobj = Py_BuildValue("s",_ptemp);
1601 } else {
1602 Py_INCREF(Py_None);
1603 _resultobj = Py_None;
1604 }
c95e68d8
RD
1605 return _resultobj;
1606}
1607
1608#define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0))
107e4716 1609static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1610 PyObject * _resultobj;
1611 wxBitmapButton * _arg0;
1612 wxBitmap * _arg1;
2d091820
RD
1613 PyObject * _argo0 = 0;
1614 PyObject * _argo1 = 0;
107e4716 1615 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
1616
1617 self = self;
107e4716 1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1))
c95e68d8 1619 return NULL;
2d091820
RD
1620 if (_argo0) {
1621 if (_argo0 == Py_None) { _arg0 = NULL; }
1622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p.");
1624 return NULL;
1625 }
1626 }
2d091820
RD
1627 if (_argo1) {
1628 if (_argo1 == Py_None) { _arg1 = NULL; }
1629 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
1630 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p.");
1631 return NULL;
1632 }
1633 }
ab9bc19b
RD
1634{
1635 wxPy_BEGIN_ALLOW_THREADS;
1636 wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1);
1637
1638 wxPy_END_ALLOW_THREADS;
4dfaa61e 1639 if (PyErr_Occurred()) return NULL;
ab9bc19b 1640} Py_INCREF(Py_None);
c95e68d8
RD
1641 _resultobj = Py_None;
1642 return _resultobj;
1643}
1644
1645#define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0))
107e4716 1646static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1647 PyObject * _resultobj;
1648 wxBitmapButton * _arg0;
1649 wxBitmap * _arg1;
2d091820
RD
1650 PyObject * _argo0 = 0;
1651 PyObject * _argo1 = 0;
107e4716 1652 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
1653
1654 self = self;
107e4716 1655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1))
c95e68d8 1656 return NULL;
2d091820
RD
1657 if (_argo0) {
1658 if (_argo0 == Py_None) { _arg0 = NULL; }
1659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p.");
1661 return NULL;
1662 }
1663 }
2d091820
RD
1664 if (_argo1) {
1665 if (_argo1 == Py_None) { _arg1 = NULL; }
1666 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
1667 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p.");
1668 return NULL;
1669 }
1670 }
ab9bc19b
RD
1671{
1672 wxPy_BEGIN_ALLOW_THREADS;
1673 wxBitmapButton_SetBitmapFocus(_arg0,*_arg1);
1674
1675 wxPy_END_ALLOW_THREADS;
4dfaa61e 1676 if (PyErr_Occurred()) return NULL;
ab9bc19b 1677} Py_INCREF(Py_None);
c95e68d8
RD
1678 _resultobj = Py_None;
1679 return _resultobj;
1680}
1681
1682#define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0))
107e4716 1683static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
1684 PyObject * _resultobj;
1685 wxBitmapButton * _arg0;
1686 wxBitmap * _arg1;
2d091820
RD
1687 PyObject * _argo0 = 0;
1688 PyObject * _argo1 = 0;
107e4716 1689 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
1690
1691 self = self;
107e4716 1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1))
c95e68d8 1693 return NULL;
2d091820
RD
1694 if (_argo0) {
1695 if (_argo0 == Py_None) { _arg0 = NULL; }
1696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
c95e68d8
RD
1697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p.");
1698 return NULL;
1699 }
1700 }
2d091820
RD
1701 if (_argo1) {
1702 if (_argo1 == Py_None) { _arg1 = NULL; }
1703 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
1704 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p.");
1705 return NULL;
1706 }
1707 }
ab9bc19b
RD
1708{
1709 wxPy_BEGIN_ALLOW_THREADS;
1710 wxBitmapButton_SetBitmapSelected(_arg0,*_arg1);
1711
1712 wxPy_END_ALLOW_THREADS;
4dfaa61e 1713 if (PyErr_Occurred()) return NULL;
ab9bc19b 1714} Py_INCREF(Py_None);
c95e68d8
RD
1715 _resultobj = Py_None;
1716 return _resultobj;
1717}
1718
70551f47 1719#define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0))
107e4716 1720static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1721 PyObject * _resultobj;
1722 wxBitmapButton * _arg0;
1723 wxBitmap * _arg1;
2d091820
RD
1724 PyObject * _argo0 = 0;
1725 PyObject * _argo1 = 0;
107e4716 1726 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
1727
1728 self = self;
107e4716 1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1))
70551f47 1730 return NULL;
2d091820
RD
1731 if (_argo0) {
1732 if (_argo0 == Py_None) { _arg0 = NULL; }
1733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
70551f47
RD
1734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p.");
1735 return NULL;
1736 }
1737 }
2d091820
RD
1738 if (_argo1) {
1739 if (_argo1 == Py_None) { _arg1 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p.");
1742 return NULL;
1743 }
1744 }
ab9bc19b
RD
1745{
1746 wxPy_BEGIN_ALLOW_THREADS;
1747 wxBitmapButton_SetBitmapLabel(_arg0,*_arg1);
1748
1749 wxPy_END_ALLOW_THREADS;
4dfaa61e 1750 if (PyErr_Occurred()) return NULL;
ab9bc19b 1751} Py_INCREF(Py_None);
70551f47
RD
1752 _resultobj = Py_None;
1753 return _resultobj;
1754}
1755
f6bcfd97
BP
1756#define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
1757static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject * _resultobj;
1759 wxBitmapButton * _arg0;
1760 int _arg1;
1761 int _arg2;
1762 PyObject * _argo0 = 0;
1763 char *_kwnames[] = { "self","x","y", NULL };
1764
1765 self = self;
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2))
1767 return NULL;
1768 if (_argo0) {
1769 if (_argo0 == Py_None) { _arg0 = NULL; }
1770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p.");
1772 return NULL;
1773 }
1774 }
1775{
1776 wxPy_BEGIN_ALLOW_THREADS;
1777 wxBitmapButton_SetMargins(_arg0,_arg1,_arg2);
1778
1779 wxPy_END_ALLOW_THREADS;
4dfaa61e 1780 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1781} Py_INCREF(Py_None);
1782 _resultobj = Py_None;
1783 return _resultobj;
1784}
1785
1786#define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX())
1787static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject * _resultobj;
1789 int _result;
1790 wxBitmapButton * _arg0;
1791 PyObject * _argo0 = 0;
1792 char *_kwnames[] = { "self", NULL };
1793
1794 self = self;
1795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0))
1796 return NULL;
1797 if (_argo0) {
1798 if (_argo0 == Py_None) { _arg0 = NULL; }
1799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p.");
1801 return NULL;
1802 }
1803 }
1804{
1805 wxPy_BEGIN_ALLOW_THREADS;
1806 _result = (int )wxBitmapButton_GetMarginX(_arg0);
1807
1808 wxPy_END_ALLOW_THREADS;
4dfaa61e 1809 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1810} _resultobj = Py_BuildValue("i",_result);
1811 return _resultobj;
1812}
1813
1814#define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY())
1815static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject * _resultobj;
1817 int _result;
1818 wxBitmapButton * _arg0;
1819 PyObject * _argo0 = 0;
1820 char *_kwnames[] = { "self", NULL };
1821
1822 self = self;
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0))
1824 return NULL;
1825 if (_argo0) {
1826 if (_argo0 == Py_None) { _arg0 = NULL; }
1827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p.");
1829 return NULL;
1830 }
1831 }
1832{
1833 wxPy_BEGIN_ALLOW_THREADS;
1834 _result = (int )wxBitmapButton_GetMarginY(_arg0);
1835
1836 wxPy_END_ALLOW_THREADS;
4dfaa61e 1837 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1838} _resultobj = Py_BuildValue("i",_result);
1839 return _resultobj;
1840}
1841
70551f47
RD
1842static void *SwigwxCheckBoxTowxControl(void *ptr) {
1843 wxCheckBox *src;
1844 wxControl *dest;
1845 src = (wxCheckBox *) ptr;
1846 dest = (wxControl *) src;
1847 return (void *) dest;
1848}
1849
1850static void *SwigwxCheckBoxTowxWindow(void *ptr) {
1851 wxCheckBox *src;
1852 wxWindow *dest;
1853 src = (wxCheckBox *) ptr;
1854 dest = (wxWindow *) src;
1855 return (void *) dest;
1856}
1857
1858static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) {
1859 wxCheckBox *src;
1860 wxEvtHandler *dest;
1861 src = (wxCheckBox *) ptr;
1862 dest = (wxEvtHandler *) src;
1863 return (void *) dest;
1864}
1865
9df61a29
RD
1866static void *SwigwxCheckBoxTowxObject(void *ptr) {
1867 wxCheckBox *src;
1868 wxObject *dest;
1869 src = (wxCheckBox *) ptr;
1870 dest = (wxObject *) src;
1871 return (void *) dest;
1872}
1873
70551f47 1874#define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 1875static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1876 PyObject * _resultobj;
1877 wxCheckBox * _result;
1878 wxWindow * _arg0;
1879 wxWindowID _arg1;
1880 wxString * _arg2;
b68dc582
RD
1881 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1882 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 1883 long _arg5 = (long ) 0;
b68dc582 1884 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
1885 char * _arg7 = (char *) "checkBox";
1886 PyObject * _argo0 = 0;
70551f47 1887 PyObject * _obj2 = 0;
37f6a977
RD
1888 wxPoint temp;
1889 PyObject * _obj3 = 0;
1890 wxSize temp0;
1891 PyObject * _obj4 = 0;
2d091820 1892 PyObject * _argo6 = 0;
107e4716 1893 char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL };
70551f47
RD
1894 char _ptemp[128];
1895
1896 self = self;
37f6a977 1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 1898 return NULL;
2d091820
RD
1899 if (_argo0) {
1900 if (_argo0 == Py_None) { _arg0 = NULL; }
1901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
1902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p.");
1903 return NULL;
1904 }
1905 }
1906{
2cd2fac8
RD
1907#if PYTHON_API_VERSION >= 1009
1908 char* tmpPtr; int tmpSize;
1909 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 1910 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1911 return NULL;
1912 }
1913 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1914 return NULL;
1915 _arg2 = new wxString(tmpPtr, tmpSize);
1916#else
70551f47
RD
1917 if (!PyString_Check(_obj2)) {
1918 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1919 return NULL;
1920 }
2cd2fac8
RD
1921 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1922#endif
70551f47 1923}
37f6a977
RD
1924 if (_obj3)
1925{
1926 _arg3 = &temp;
1927 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 1928 return NULL;
37f6a977
RD
1929}
1930 if (_obj4)
1931{
1932 _arg4 = &temp0;
1933 if (! wxSize_helper(_obj4, &_arg4))
70551f47 1934 return NULL;
37f6a977 1935}
2d091820
RD
1936 if (_argo6) {
1937 if (_argo6 == Py_None) { _arg6 = NULL; }
1938 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
70551f47
RD
1939 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p.");
1940 return NULL;
1941 }
1942 }
ab9bc19b
RD
1943{
1944 wxPy_BEGIN_ALLOW_THREADS;
1945 _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
1946
1947 wxPy_END_ALLOW_THREADS;
4dfaa61e 1948 if (PyErr_Occurred()) return NULL;
2d091820
RD
1949} if (_result) {
1950 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1951 _resultobj = Py_BuildValue("s",_ptemp);
1952 } else {
1953 Py_INCREF(Py_None);
1954 _resultobj = Py_None;
1955 }
70551f47
RD
1956{
1957 if (_obj2)
1958 delete _arg2;
1959}
1960 return _resultobj;
1961}
1962
aa2a5b86
RD
1963#define new_wxPreCheckBox() (new wxCheckBox())
1964static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject * _resultobj;
1966 wxCheckBox * _result;
1967 char *_kwnames[] = { NULL };
1968 char _ptemp[128];
1969
1970 self = self;
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames))
1972 return NULL;
1973{
1974 wxPy_BEGIN_ALLOW_THREADS;
1975 _result = (wxCheckBox *)new_wxPreCheckBox();
1976
1977 wxPy_END_ALLOW_THREADS;
1978 if (PyErr_Occurred()) return NULL;
1979} if (_result) {
1980 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1981 _resultobj = Py_BuildValue("s",_ptemp);
1982 } else {
1983 Py_INCREF(Py_None);
1984 _resultobj = Py_None;
1985 }
1986 return _resultobj;
1987}
1988
1989#define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1990static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1991 PyObject * _resultobj;
1992 bool _result;
1993 wxCheckBox * _arg0;
1994 wxWindow * _arg1;
1995 wxWindowID _arg2;
1996 wxString * _arg3;
1997 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1998 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1999 long _arg6 = (long ) 0;
2000 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
2001 char * _arg8 = (char *) "checkBox";
2002 PyObject * _argo0 = 0;
2003 PyObject * _argo1 = 0;
2004 PyObject * _obj3 = 0;
2005 wxPoint temp;
2006 PyObject * _obj4 = 0;
2007 wxSize temp0;
2008 PyObject * _obj5 = 0;
2009 PyObject * _argo7 = 0;
2010 char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL };
2011
2012 self = self;
2013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
2014 return NULL;
2015 if (_argo0) {
2016 if (_argo0 == Py_None) { _arg0 = NULL; }
2017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p.");
2019 return NULL;
2020 }
2021 }
2022 if (_argo1) {
2023 if (_argo1 == Py_None) { _arg1 = NULL; }
2024 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2025 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p.");
2026 return NULL;
2027 }
2028 }
2029{
2030#if PYTHON_API_VERSION >= 1009
2031 char* tmpPtr; int tmpSize;
2032 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
2033 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2034 return NULL;
2035 }
2036 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
2037 return NULL;
2038 _arg3 = new wxString(tmpPtr, tmpSize);
2039#else
2040 if (!PyString_Check(_obj3)) {
2041 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2042 return NULL;
2043 }
2044 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
2045#endif
2046}
2047 if (_obj4)
2048{
2049 _arg4 = &temp;
2050 if (! wxPoint_helper(_obj4, &_arg4))
2051 return NULL;
2052}
2053 if (_obj5)
2054{
2055 _arg5 = &temp0;
2056 if (! wxSize_helper(_obj5, &_arg5))
2057 return NULL;
2058}
2059 if (_argo7) {
2060 if (_argo7 == Py_None) { _arg7 = NULL; }
2061 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
2062 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p.");
2063 return NULL;
2064 }
2065 }
2066{
2067 wxPy_BEGIN_ALLOW_THREADS;
2068 _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
2069
2070 wxPy_END_ALLOW_THREADS;
2071 if (PyErr_Occurred()) return NULL;
2072} _resultobj = Py_BuildValue("i",_result);
2073{
2074 if (_obj3)
2075 delete _arg3;
2076}
2077 return _resultobj;
2078}
2079
70551f47 2080#define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 2081static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2082 PyObject * _resultobj;
2083 bool _result;
2084 wxCheckBox * _arg0;
2d091820 2085 PyObject * _argo0 = 0;
107e4716 2086 char *_kwnames[] = { "self", NULL };
70551f47
RD
2087
2088 self = self;
107e4716 2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0))
70551f47 2090 return NULL;
2d091820
RD
2091 if (_argo0) {
2092 if (_argo0 == Py_None) { _arg0 = NULL; }
2093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
70551f47
RD
2094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p.");
2095 return NULL;
2096 }
2097 }
ab9bc19b
RD
2098{
2099 wxPy_BEGIN_ALLOW_THREADS;
2100 _result = (bool )wxCheckBox_GetValue(_arg0);
2101
2102 wxPy_END_ALLOW_THREADS;
4dfaa61e 2103 if (PyErr_Occurred()) return NULL;
ab9bc19b 2104} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2105 return _resultobj;
2106}
2107
2108#define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 2109static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2110 PyObject * _resultobj;
2111 wxCheckBox * _arg0;
2112 bool _arg1;
2d091820 2113 PyObject * _argo0 = 0;
70551f47 2114 int tempbool1;
107e4716 2115 char *_kwnames[] = { "self","state", NULL };
70551f47
RD
2116
2117 self = self;
107e4716 2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1))
70551f47 2119 return NULL;
2d091820
RD
2120 if (_argo0) {
2121 if (_argo0 == Py_None) { _arg0 = NULL; }
2122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
70551f47
RD
2123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p.");
2124 return NULL;
2125 }
2126 }
2127 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
2128{
2129 wxPy_BEGIN_ALLOW_THREADS;
2130 wxCheckBox_SetValue(_arg0,_arg1);
2131
2132 wxPy_END_ALLOW_THREADS;
4dfaa61e 2133 if (PyErr_Occurred()) return NULL;
ab9bc19b 2134} Py_INCREF(Py_None);
70551f47
RD
2135 _resultobj = Py_None;
2136 return _resultobj;
2137}
2138
65191ae8
RD
2139static void *SwigwxChoiceTowxControlWithItems(void *ptr) {
2140 wxChoice *src;
2141 wxControlWithItems *dest;
2142 src = (wxChoice *) ptr;
2143 dest = (wxControlWithItems *) src;
2144 return (void *) dest;
2145}
2146
70551f47
RD
2147static void *SwigwxChoiceTowxControl(void *ptr) {
2148 wxChoice *src;
2149 wxControl *dest;
2150 src = (wxChoice *) ptr;
2151 dest = (wxControl *) src;
2152 return (void *) dest;
2153}
2154
2155static void *SwigwxChoiceTowxWindow(void *ptr) {
2156 wxChoice *src;
2157 wxWindow *dest;
2158 src = (wxChoice *) ptr;
2159 dest = (wxWindow *) src;
2160 return (void *) dest;
2161}
2162
2163static void *SwigwxChoiceTowxEvtHandler(void *ptr) {
2164 wxChoice *src;
2165 wxEvtHandler *dest;
2166 src = (wxChoice *) ptr;
2167 dest = (wxEvtHandler *) src;
2168 return (void *) dest;
2169}
2170
9df61a29
RD
2171static void *SwigwxChoiceTowxObject(void *ptr) {
2172 wxChoice *src;
2173 wxObject *dest;
2174 src = (wxChoice *) ptr;
2175 dest = (wxObject *) src;
2176 return (void *) dest;
2177}
2178
70551f47 2179#define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
107e4716 2180static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2181 PyObject * _resultobj;
2182 wxChoice * _result;
2183 wxWindow * _arg0;
2184 wxWindowID _arg1;
b68dc582
RD
2185 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2186 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2d091820
RD
2187 int _arg4 = (int ) 0;
2188 wxString * _arg5 = (wxString *) NULL;
2189 long _arg6 = (long ) 0;
b68dc582 2190 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
2191 char * _arg8 = (char *) "choice";
2192 PyObject * _argo0 = 0;
37f6a977
RD
2193 wxPoint temp;
2194 PyObject * _obj2 = 0;
2195 wxSize temp0;
2196 PyObject * _obj3 = 0;
70551f47 2197 PyObject * _obj5 = 0;
2d091820 2198 PyObject * _argo7 = 0;
e02c03a4 2199 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
70551f47
RD
2200 char _ptemp[128];
2201
2202 self = self;
37f6a977 2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
70551f47 2204 return NULL;
2d091820
RD
2205 if (_argo0) {
2206 if (_argo0 == Py_None) { _arg0 = NULL; }
2207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
2208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p.");
2209 return NULL;
2210 }
2211 }
37f6a977
RD
2212 if (_obj2)
2213{
2214 _arg2 = &temp;
2215 if (! wxPoint_helper(_obj2, &_arg2))
70551f47 2216 return NULL;
37f6a977
RD
2217}
2218 if (_obj3)
2219{
2220 _arg3 = &temp0;
2221 if (! wxSize_helper(_obj3, &_arg3))
70551f47 2222 return NULL;
37f6a977 2223}
70551f47
RD
2224 if (_obj5)
2225{
2226 _arg5 = wxString_LIST_helper(_obj5);
2227 if (_arg5 == NULL) {
2228 return NULL;
2229 }
2230}
2d091820
RD
2231 if (_argo7) {
2232 if (_argo7 == Py_None) { _arg7 = NULL; }
2233 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
70551f47
RD
2234 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p.");
2235 return NULL;
2236 }
2237 }
2238{
ab9bc19b
RD
2239 if (_obj5) {
2240 _arg4 = PyList_Size(_obj5);
2241 }
2242 else {
2243 _arg4 = 0;
2244 }
70551f47 2245}
ab9bc19b
RD
2246{
2247 wxPy_BEGIN_ALLOW_THREADS;
2248 _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
2249
2250 wxPy_END_ALLOW_THREADS;
4dfaa61e 2251 if (PyErr_Occurred()) return NULL;
2d091820
RD
2252} if (_result) {
2253 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
2254 _resultobj = Py_BuildValue("s",_ptemp);
2255 } else {
2256 Py_INCREF(Py_None);
2257 _resultobj = Py_None;
2258 }
70551f47
RD
2259{
2260 delete [] _arg5;
2261}
2262 return _resultobj;
2263}
2264
aa2a5b86
RD
2265#define new_wxPreChoice() (new wxChoice())
2266static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2267 PyObject * _resultobj;
aa2a5b86
RD
2268 wxChoice * _result;
2269 char *_kwnames[] = { NULL };
2270 char _ptemp[128];
70551f47
RD
2271
2272 self = self;
aa2a5b86
RD
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames))
2274 return NULL;
2275{
2276 wxPy_BEGIN_ALLOW_THREADS;
2277 _result = (wxChoice *)new_wxPreChoice();
2278
2279 wxPy_END_ALLOW_THREADS;
2280 if (PyErr_Occurred()) return NULL;
2281} if (_result) {
2282 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
2283 _resultobj = Py_BuildValue("s",_ptemp);
2284 } else {
2285 Py_INCREF(Py_None);
2286 _resultobj = Py_None;
2287 }
2288 return _resultobj;
2289}
2290
2291#define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
2292static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2293 PyObject * _resultobj;
2294 bool _result;
2295 wxChoice * _arg0;
2296 wxWindow * _arg1;
2297 wxWindowID _arg2;
2298 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2299 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2300 int _arg5 = (int ) 0;
2301 wxString * _arg6 = (wxString *) NULL;
2302 long _arg7 = (long ) 0;
2303 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2304 char * _arg9 = (char *) "choice";
2305 PyObject * _argo0 = 0;
2306 PyObject * _argo1 = 0;
2307 wxPoint temp;
2308 PyObject * _obj3 = 0;
2309 wxSize temp0;
2310 PyObject * _obj4 = 0;
2311 PyObject * _obj6 = 0;
2312 PyObject * _argo8 = 0;
2313 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
2314
2315 self = self;
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
2317 return NULL;
2318 if (_argo0) {
2319 if (_argo0 == Py_None) { _arg0 = NULL; }
2320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p.");
2322 return NULL;
2323 }
2324 }
2325 if (_argo1) {
2326 if (_argo1 == Py_None) { _arg1 = NULL; }
2327 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2328 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p.");
2329 return NULL;
2330 }
2331 }
2332 if (_obj3)
2333{
2334 _arg3 = &temp;
2335 if (! wxPoint_helper(_obj3, &_arg3))
2336 return NULL;
2337}
2338 if (_obj4)
2339{
2340 _arg4 = &temp0;
2341 if (! wxSize_helper(_obj4, &_arg4))
2342 return NULL;
2343}
2344 if (_obj6)
2345{
2346 _arg6 = wxString_LIST_helper(_obj6);
2347 if (_arg6 == NULL) {
2348 return NULL;
2349 }
2350}
2351 if (_argo8) {
2352 if (_argo8 == Py_None) { _arg8 = NULL; }
2353 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
2354 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p.");
2355 return NULL;
2356 }
2357 }
2358{
2359 if (_obj6) {
65191ae8
RD
2360 _arg5 = PyList_Size(_obj6);
2361 }
2362 else {
2363 _arg5 = 0;
70551f47 2364 }
65191ae8 2365}
70551f47 2366{
ab9bc19b 2367 wxPy_BEGIN_ALLOW_THREADS;
65191ae8 2368 _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
ab9bc19b
RD
2369
2370 wxPy_END_ALLOW_THREADS;
4dfaa61e 2371 if (PyErr_Occurred()) return NULL;
65191ae8 2372} _resultobj = Py_BuildValue("i",_result);
70551f47 2373{
65191ae8 2374 delete [] _arg6;
70551f47
RD
2375}
2376 return _resultobj;
2377}
2378
65191ae8
RD
2379#define wxChoice_Clear(_swigobj) (_swigobj->Clear())
2380static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2381 PyObject * _resultobj;
70551f47 2382 wxChoice * _arg0;
2d091820 2383 PyObject * _argo0 = 0;
107e4716 2384 char *_kwnames[] = { "self", NULL };
70551f47
RD
2385
2386 self = self;
65191ae8 2387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0))
70551f47 2388 return NULL;
2d091820
RD
2389 if (_argo0) {
2390 if (_argo0 == Py_None) { _arg0 = NULL; }
2391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
65191ae8 2392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p.");
70551f47
RD
2393 return NULL;
2394 }
2395 }
70551f47 2396{
ab9bc19b 2397 wxPy_BEGIN_ALLOW_THREADS;
65191ae8 2398 wxChoice_Clear(_arg0);
ab9bc19b
RD
2399
2400 wxPy_END_ALLOW_THREADS;
4dfaa61e 2401 if (PyErr_Occurred()) return NULL;
65191ae8
RD
2402} Py_INCREF(Py_None);
2403 _resultobj = Py_None;
70551f47
RD
2404 return _resultobj;
2405}
2406
65191ae8
RD
2407#define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns())
2408static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2409 PyObject * _resultobj;
2410 int _result;
2411 wxChoice * _arg0;
2d091820 2412 PyObject * _argo0 = 0;
107e4716 2413 char *_kwnames[] = { "self", NULL };
70551f47
RD
2414
2415 self = self;
65191ae8 2416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0))
70551f47 2417 return NULL;
2d091820
RD
2418 if (_argo0) {
2419 if (_argo0 == Py_None) { _arg0 = NULL; }
2420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
65191ae8 2421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p.");
70551f47
RD
2422 return NULL;
2423 }
2424 }
ab9bc19b
RD
2425{
2426 wxPy_BEGIN_ALLOW_THREADS;
65191ae8 2427 _result = (int )wxChoice_GetColumns(_arg0);
ab9bc19b
RD
2428
2429 wxPy_END_ALLOW_THREADS;
4dfaa61e 2430 if (PyErr_Occurred()) return NULL;
ab9bc19b 2431} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2432 return _resultobj;
2433}
2434
2435#define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0))
107e4716 2436static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2437 PyObject * _resultobj;
2438 wxChoice * _arg0;
2d091820
RD
2439 int _arg1 = (int ) 1;
2440 PyObject * _argo0 = 0;
107e4716 2441 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
2442
2443 self = self;
107e4716 2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1))
70551f47 2445 return NULL;
2d091820
RD
2446 if (_argo0) {
2447 if (_argo0 == Py_None) { _arg0 = NULL; }
2448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
70551f47
RD
2449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p.");
2450 return NULL;
2451 }
2452 }
ab9bc19b
RD
2453{
2454 wxPy_BEGIN_ALLOW_THREADS;
2455 wxChoice_SetColumns(_arg0,_arg1);
2456
2457 wxPy_END_ALLOW_THREADS;
4dfaa61e 2458 if (PyErr_Occurred()) return NULL;
ab9bc19b 2459} Py_INCREF(Py_None);
70551f47
RD
2460 _resultobj = Py_None;
2461 return _resultobj;
2462}
2463
2464#define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
107e4716 2465static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2466 PyObject * _resultobj;
2467 wxChoice * _arg0;
2468 int _arg1;
2d091820 2469 PyObject * _argo0 = 0;
107e4716 2470 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
2471
2472 self = self;
107e4716 2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1))
70551f47 2474 return NULL;
2d091820
RD
2475 if (_argo0) {
2476 if (_argo0 == Py_None) { _arg0 = NULL; }
2477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
70551f47
RD
2478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p.");
2479 return NULL;
2480 }
2481 }
ab9bc19b
RD
2482{
2483 wxPy_BEGIN_ALLOW_THREADS;
2484 wxChoice_SetSelection(_arg0,_arg1);
2485
2486 wxPy_END_ALLOW_THREADS;
4dfaa61e 2487 if (PyErr_Occurred()) return NULL;
ab9bc19b 2488} Py_INCREF(Py_None);
70551f47
RD
2489 _resultobj = Py_None;
2490 return _resultobj;
2491}
2492
2493#define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
107e4716 2494static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2495 PyObject * _resultobj;
2496 wxChoice * _arg0;
2497 wxString * _arg1;
2d091820 2498 PyObject * _argo0 = 0;
70551f47 2499 PyObject * _obj1 = 0;
107e4716 2500 char *_kwnames[] = { "self","string", NULL };
70551f47
RD
2501
2502 self = self;
107e4716 2503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1))
70551f47 2504 return NULL;
2d091820
RD
2505 if (_argo0) {
2506 if (_argo0 == Py_None) { _arg0 = NULL; }
2507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
70551f47
RD
2508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p.");
2509 return NULL;
2510 }
2511 }
2512{
2cd2fac8
RD
2513#if PYTHON_API_VERSION >= 1009
2514 char* tmpPtr; int tmpSize;
2515 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 2516 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2517 return NULL;
2518 }
2519 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2520 return NULL;
2521 _arg1 = new wxString(tmpPtr, tmpSize);
2522#else
70551f47
RD
2523 if (!PyString_Check(_obj1)) {
2524 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2525 return NULL;
2526 }
2cd2fac8
RD
2527 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2528#endif
70551f47 2529}
ab9bc19b
RD
2530{
2531 wxPy_BEGIN_ALLOW_THREADS;
2532 wxChoice_SetStringSelection(_arg0,*_arg1);
2533
2534 wxPy_END_ALLOW_THREADS;
4dfaa61e 2535 if (PyErr_Occurred()) return NULL;
ab9bc19b 2536} Py_INCREF(Py_None);
70551f47
RD
2537 _resultobj = Py_None;
2538{
2539 if (_obj1)
2540 delete _arg1;
2541}
2542 return _resultobj;
2543}
2544
2c8a649d
RD
2545#define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
2546static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject * _resultobj;
2548 wxChoice * _arg0;
2549 int _arg1;
2550 wxString * _arg2;
2551 PyObject * _argo0 = 0;
2552 PyObject * _obj2 = 0;
2553 char *_kwnames[] = { "self","n","s", NULL };
2554
2555 self = self;
2556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
2557 return NULL;
2558 if (_argo0) {
2559 if (_argo0 == Py_None) { _arg0 = NULL; }
2560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p.");
2562 return NULL;
2563 }
2564 }
2565{
2566#if PYTHON_API_VERSION >= 1009
2567 char* tmpPtr; int tmpSize;
2568 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2569 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2570 return NULL;
2571 }
2572 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2573 return NULL;
2574 _arg2 = new wxString(tmpPtr, tmpSize);
2575#else
2576 if (!PyString_Check(_obj2)) {
2577 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2578 return NULL;
2579 }
2580 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2581#endif
2582}
2583{
2584 wxPy_BEGIN_ALLOW_THREADS;
2585 wxChoice_SetString(_arg0,_arg1,*_arg2);
2586
2587 wxPy_END_ALLOW_THREADS;
2588 if (PyErr_Occurred()) return NULL;
2589} Py_INCREF(Py_None);
2590 _resultobj = Py_None;
2591{
2592 if (_obj2)
2593 delete _arg2;
2594}
2595 return _resultobj;
2596}
2597
70551f47
RD
2598static void *SwigwxComboBoxTowxControl(void *ptr) {
2599 wxComboBox *src;
2600 wxControl *dest;
2601 src = (wxComboBox *) ptr;
2602 dest = (wxControl *) src;
2603 return (void *) dest;
2604}
2605
2606static void *SwigwxComboBoxTowxWindow(void *ptr) {
2607 wxComboBox *src;
2608 wxWindow *dest;
2609 src = (wxComboBox *) ptr;
2610 dest = (wxWindow *) src;
2611 return (void *) dest;
2612}
2613
2614static void *SwigwxComboBoxTowxEvtHandler(void *ptr) {
2615 wxComboBox *src;
2616 wxEvtHandler *dest;
2617 src = (wxComboBox *) ptr;
2618 dest = (wxEvtHandler *) src;
2619 return (void *) dest;
2620}
2621
9df61a29
RD
2622static void *SwigwxComboBoxTowxObject(void *ptr) {
2623 wxComboBox *src;
2624 wxObject *dest;
2625 src = (wxComboBox *) ptr;
2626 dest = (wxObject *) src;
2627 return (void *) dest;
2628}
2629
70551f47 2630#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 2631static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2632 PyObject * _resultobj;
2633 wxComboBox * _result;
2634 wxWindow * _arg0;
2635 wxWindowID _arg1;
2d091820 2636 char * _arg2 = (char *) "";
b68dc582
RD
2637 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2638 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820
RD
2639 int _arg5 = (int ) 0;
2640 wxString * _arg6 = (wxString *) NULL;
2641 long _arg7 = (long ) 0;
b68dc582 2642 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
2643 char * _arg9 = (char *) "comboBox";
2644 PyObject * _argo0 = 0;
37f6a977
RD
2645 wxPoint temp;
2646 PyObject * _obj3 = 0;
2647 wxSize temp0;
2648 PyObject * _obj4 = 0;
70551f47 2649 PyObject * _obj6 = 0;
2d091820 2650 PyObject * _argo8 = 0;
e02c03a4 2651 char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL };
70551f47
RD
2652 char _ptemp[128];
2653
2654 self = self;
37f6a977 2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
70551f47 2656 return NULL;
2d091820
RD
2657 if (_argo0) {
2658 if (_argo0 == Py_None) { _arg0 = NULL; }
2659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
2660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p.");
2661 return NULL;
2662 }
2663 }
37f6a977
RD
2664 if (_obj3)
2665{
2666 _arg3 = &temp;
2667 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 2668 return NULL;
37f6a977
RD
2669}
2670 if (_obj4)
2671{
2672 _arg4 = &temp0;
2673 if (! wxSize_helper(_obj4, &_arg4))
70551f47 2674 return NULL;
37f6a977 2675}
70551f47
RD
2676 if (_obj6)
2677{
2678 _arg6 = wxString_LIST_helper(_obj6);
2679 if (_arg6 == NULL) {
2680 return NULL;
2681 }
2682}
2d091820
RD
2683 if (_argo8) {
2684 if (_argo8 == Py_None) { _arg8 = NULL; }
2685 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
70551f47
RD
2686 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p.");
2687 return NULL;
2688 }
2689 }
2690{
ab9bc19b
RD
2691 if (_obj6) {
2692 _arg5 = PyList_Size(_obj6);
2693 }
2694 else {
2695 _arg5 = 0;
2696 }
70551f47 2697}
ab9bc19b
RD
2698{
2699 wxPy_BEGIN_ALLOW_THREADS;
2700 _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
2701
2702 wxPy_END_ALLOW_THREADS;
4dfaa61e 2703 if (PyErr_Occurred()) return NULL;
2d091820
RD
2704} if (_result) {
2705 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2706 _resultobj = Py_BuildValue("s",_ptemp);
2707 } else {
2708 Py_INCREF(Py_None);
2709 _resultobj = Py_None;
2710 }
70551f47
RD
2711{
2712 delete [] _arg6;
2713}
2714 return _resultobj;
2715}
2716
aa2a5b86
RD
2717#define new_wxPreComboBox() (new wxComboBox())
2718static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2719 PyObject * _resultobj;
2720 wxComboBox * _result;
2721 char *_kwnames[] = { NULL };
2722 char _ptemp[128];
2723
2724 self = self;
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames))
2726 return NULL;
2727{
2728 wxPy_BEGIN_ALLOW_THREADS;
2729 _result = (wxComboBox *)new_wxPreComboBox();
2730
2731 wxPy_END_ALLOW_THREADS;
2732 if (PyErr_Occurred()) return NULL;
2733} if (_result) {
2734 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2735 _resultobj = Py_BuildValue("s",_ptemp);
2736 } else {
2737 Py_INCREF(Py_None);
2738 _resultobj = Py_None;
2739 }
2740 return _resultobj;
2741}
2742
2743#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))
2744static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2745 PyObject * _resultobj;
2746 bool _result;
2747 wxComboBox * _arg0;
2748 wxWindow * _arg1;
2749 wxWindowID _arg2;
2750 char * _arg3 = (char *) "";
2751 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2752 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2753 int _arg6 = (int ) 0;
2754 wxString * _arg7 = (wxString *) NULL;
2755 long _arg8 = (long ) 0;
2756 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
2757 char * _arg10 = (char *) "comboBox";
2758 PyObject * _argo0 = 0;
2759 PyObject * _argo1 = 0;
2760 wxPoint temp;
2761 PyObject * _obj4 = 0;
2762 wxSize temp0;
2763 PyObject * _obj5 = 0;
2764 PyObject * _obj7 = 0;
2765 PyObject * _argo9 = 0;
2766 char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL };
2767
2768 self = self;
2769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10))
2770 return NULL;
2771 if (_argo0) {
2772 if (_argo0 == Py_None) { _arg0 = NULL; }
2773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p.");
2775 return NULL;
2776 }
2777 }
2778 if (_argo1) {
2779 if (_argo1 == Py_None) { _arg1 = NULL; }
2780 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2781 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p.");
2782 return NULL;
2783 }
2784 }
2785 if (_obj4)
2786{
2787 _arg4 = &temp;
2788 if (! wxPoint_helper(_obj4, &_arg4))
2789 return NULL;
2790}
2791 if (_obj5)
2792{
2793 _arg5 = &temp0;
2794 if (! wxSize_helper(_obj5, &_arg5))
2795 return NULL;
2796}
2797 if (_obj7)
2798{
2799 _arg7 = wxString_LIST_helper(_obj7);
2800 if (_arg7 == NULL) {
2801 return NULL;
2802 }
2803}
2804 if (_argo9) {
2805 if (_argo9 == Py_None) { _arg9 = NULL; }
2806 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
2807 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p.");
2808 return NULL;
2809 }
2810 }
2811{
2812 if (_obj7) {
2813 _arg6 = PyList_Size(_obj7);
2814 }
2815 else {
2816 _arg6 = 0;
2817 }
2818}
2819{
2820 wxPy_BEGIN_ALLOW_THREADS;
2821 _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
2822
2823 wxPy_END_ALLOW_THREADS;
2824 if (PyErr_Occurred()) return NULL;
2825} _resultobj = Py_BuildValue("i",_result);
2826{
2827 delete [] _arg7;
2828}
2829 return _resultobj;
2830}
2831
70551f47 2832#define wxComboBox_Copy(_swigobj) (_swigobj->Copy())
107e4716 2833static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2834 PyObject * _resultobj;
2835 wxComboBox * _arg0;
2d091820 2836 PyObject * _argo0 = 0;
107e4716 2837 char *_kwnames[] = { "self", NULL };
70551f47
RD
2838
2839 self = self;
107e4716 2840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0))
70551f47 2841 return NULL;
2d091820
RD
2842 if (_argo0) {
2843 if (_argo0 == Py_None) { _arg0 = NULL; }
2844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
2845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p.");
2846 return NULL;
2847 }
2848 }
ab9bc19b
RD
2849{
2850 wxPy_BEGIN_ALLOW_THREADS;
2851 wxComboBox_Copy(_arg0);
2852
2853 wxPy_END_ALLOW_THREADS;
4dfaa61e 2854 if (PyErr_Occurred()) return NULL;
ab9bc19b 2855} Py_INCREF(Py_None);
70551f47
RD
2856 _resultobj = Py_None;
2857 return _resultobj;
2858}
2859
2860#define wxComboBox_Cut(_swigobj) (_swigobj->Cut())
107e4716 2861static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2862 PyObject * _resultobj;
2863 wxComboBox * _arg0;
2d091820 2864 PyObject * _argo0 = 0;
107e4716 2865 char *_kwnames[] = { "self", NULL };
70551f47
RD
2866
2867 self = self;
107e4716 2868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0))
70551f47 2869 return NULL;
2d091820
RD
2870 if (_argo0) {
2871 if (_argo0 == Py_None) { _arg0 = NULL; }
2872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
2873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p.");
2874 return NULL;
2875 }
2876 }
ab9bc19b
RD
2877{
2878 wxPy_BEGIN_ALLOW_THREADS;
2879 wxComboBox_Cut(_arg0);
2880
2881 wxPy_END_ALLOW_THREADS;
4dfaa61e 2882 if (PyErr_Occurred()) return NULL;
ab9bc19b 2883} Py_INCREF(Py_None);
70551f47
RD
2884 _resultobj = Py_None;
2885 return _resultobj;
2886}
2887
70551f47 2888#define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
107e4716 2889static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2890 PyObject * _resultobj;
2891 long _result;
2892 wxComboBox * _arg0;
2d091820 2893 PyObject * _argo0 = 0;
65191ae8 2894 char *_kwnames[] = { "self", NULL };
70551f47
RD
2895
2896 self = self;
65191ae8 2897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0))
70551f47 2898 return NULL;
2d091820
RD
2899 if (_argo0) {
2900 if (_argo0 == Py_None) { _arg0 = NULL; }
2901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
65191ae8 2902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p.");
70551f47
RD
2903 return NULL;
2904 }
2905 }
70551f47 2906{
ab9bc19b 2907 wxPy_BEGIN_ALLOW_THREADS;
65191ae8 2908 _result = (long )wxComboBox_GetInsertionPoint(_arg0);
ab9bc19b
RD
2909
2910 wxPy_END_ALLOW_THREADS;
4dfaa61e 2911 if (PyErr_Occurred()) return NULL;
65191ae8 2912} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
2913 return _resultobj;
2914}
2915
65191ae8
RD
2916#define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
2917static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2918 PyObject * _resultobj;
65191ae8 2919 long _result;
70551f47 2920 wxComboBox * _arg0;
2d091820 2921 PyObject * _argo0 = 0;
107e4716 2922 char *_kwnames[] = { "self", NULL };
70551f47
RD
2923
2924 self = self;
65191ae8 2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0))
70551f47 2926 return NULL;
2d091820
RD
2927 if (_argo0) {
2928 if (_argo0 == Py_None) { _arg0 = NULL; }
2929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
65191ae8 2930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p.");
70551f47
RD
2931 return NULL;
2932 }
2933 }
70551f47 2934{
ab9bc19b 2935 wxPy_BEGIN_ALLOW_THREADS;
65191ae8 2936 _result = (long )wxComboBox_GetLastPosition(_arg0);
ab9bc19b
RD
2937
2938 wxPy_END_ALLOW_THREADS;
4dfaa61e 2939 if (PyErr_Occurred()) return NULL;
65191ae8 2940} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
2941 return _resultobj;
2942}
2943
2944#define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 2945static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2946 PyObject * _resultobj;
2947 wxString * _result;
2948 wxComboBox * _arg0;
2d091820 2949 PyObject * _argo0 = 0;
107e4716 2950 char *_kwnames[] = { "self", NULL };
70551f47
RD
2951
2952 self = self;
107e4716 2953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0))
70551f47 2954 return NULL;
2d091820
RD
2955 if (_argo0) {
2956 if (_argo0 == Py_None) { _arg0 = NULL; }
2957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
2958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p.");
2959 return NULL;
2960 }
2961 }
70551f47 2962{
ab9bc19b
RD
2963 wxPy_BEGIN_ALLOW_THREADS;
2964 _result = new wxString (wxComboBox_GetValue(_arg0));
2965
2966 wxPy_END_ALLOW_THREADS;
4dfaa61e 2967 if (PyErr_Occurred()) return NULL;
ab9bc19b 2968}{
e02c03a4 2969 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
70551f47
RD
2970}
2971{
2972 delete _result;
2973}
2974 return _resultobj;
2975}
2976
70551f47 2977#define wxComboBox_Paste(_swigobj) (_swigobj->Paste())
107e4716 2978static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2979 PyObject * _resultobj;
2980 wxComboBox * _arg0;
2d091820 2981 PyObject * _argo0 = 0;
107e4716 2982 char *_kwnames[] = { "self", NULL };
70551f47
RD
2983
2984 self = self;
107e4716 2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0))
70551f47 2986 return NULL;
2d091820
RD
2987 if (_argo0) {
2988 if (_argo0 == Py_None) { _arg0 = NULL; }
2989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
2990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p.");
2991 return NULL;
2992 }
2993 }
ab9bc19b
RD
2994{
2995 wxPy_BEGIN_ALLOW_THREADS;
2996 wxComboBox_Paste(_arg0);
2997
2998 wxPy_END_ALLOW_THREADS;
4dfaa61e 2999 if (PyErr_Occurred()) return NULL;
ab9bc19b 3000} Py_INCREF(Py_None);
70551f47
RD
3001 _resultobj = Py_None;
3002 return _resultobj;
3003}
3004
3005#define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
107e4716 3006static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3007 PyObject * _resultobj;
3008 wxComboBox * _arg0;
3009 long _arg1;
3010 long _arg2;
3011 wxString * _arg3;
2d091820 3012 PyObject * _argo0 = 0;
70551f47 3013 PyObject * _obj3 = 0;
107e4716 3014 char *_kwnames[] = { "self","from","to","text", NULL };
70551f47
RD
3015
3016 self = self;
107e4716 3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
70551f47 3018 return NULL;
2d091820
RD
3019 if (_argo0) {
3020 if (_argo0 == Py_None) { _arg0 = NULL; }
3021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p.");
3023 return NULL;
3024 }
3025 }
3026{
2cd2fac8
RD
3027#if PYTHON_API_VERSION >= 1009
3028 char* tmpPtr; int tmpSize;
3029 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7a446686 3030 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
3031 return NULL;
3032 }
3033 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3034 return NULL;
3035 _arg3 = new wxString(tmpPtr, tmpSize);
3036#else
70551f47
RD
3037 if (!PyString_Check(_obj3)) {
3038 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3039 return NULL;
3040 }
2cd2fac8
RD
3041 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3042#endif
70551f47 3043}
ab9bc19b
RD
3044{
3045 wxPy_BEGIN_ALLOW_THREADS;
3046 wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3);
3047
3048 wxPy_END_ALLOW_THREADS;
4dfaa61e 3049 if (PyErr_Occurred()) return NULL;
ab9bc19b 3050} Py_INCREF(Py_None);
70551f47
RD
3051 _resultobj = Py_None;
3052{
3053 if (_obj3)
3054 delete _arg3;
3055}
3056 return _resultobj;
3057}
3058
3059#define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
107e4716 3060static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3061 PyObject * _resultobj;
3062 wxComboBox * _arg0;
3063 long _arg1;
3064 long _arg2;
2d091820 3065 PyObject * _argo0 = 0;
107e4716 3066 char *_kwnames[] = { "self","from","to", NULL };
70551f47
RD
3067
3068 self = self;
107e4716 3069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 3070 return NULL;
2d091820
RD
3071 if (_argo0) {
3072 if (_argo0 == Py_None) { _arg0 = NULL; }
3073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p.");
3075 return NULL;
3076 }
3077 }
ab9bc19b
RD
3078{
3079 wxPy_BEGIN_ALLOW_THREADS;
3080 wxComboBox_Remove(_arg0,_arg1,_arg2);
3081
3082 wxPy_END_ALLOW_THREADS;
4dfaa61e 3083 if (PyErr_Occurred()) return NULL;
ab9bc19b 3084} Py_INCREF(Py_None);
70551f47
RD
3085 _resultobj = Py_None;
3086 return _resultobj;
3087}
3088
3089#define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
107e4716 3090static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3091 PyObject * _resultobj;
3092 wxComboBox * _arg0;
3093 long _arg1;
2d091820 3094 PyObject * _argo0 = 0;
107e4716 3095 char *_kwnames[] = { "self","pos", NULL };
70551f47
RD
3096
3097 self = self;
107e4716 3098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
70551f47 3099 return NULL;
2d091820
RD
3100 if (_argo0) {
3101 if (_argo0 == Py_None) { _arg0 = NULL; }
3102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p.");
3104 return NULL;
3105 }
3106 }
ab9bc19b
RD
3107{
3108 wxPy_BEGIN_ALLOW_THREADS;
3109 wxComboBox_SetInsertionPoint(_arg0,_arg1);
3110
3111 wxPy_END_ALLOW_THREADS;
4dfaa61e 3112 if (PyErr_Occurred()) return NULL;
ab9bc19b 3113} Py_INCREF(Py_None);
70551f47
RD
3114 _resultobj = Py_None;
3115 return _resultobj;
3116}
3117
3118#define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
107e4716 3119static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3120 PyObject * _resultobj;
3121 wxComboBox * _arg0;
2d091820 3122 PyObject * _argo0 = 0;
107e4716 3123 char *_kwnames[] = { "self", NULL };
70551f47
RD
3124
3125 self = self;
107e4716 3126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0))
70551f47 3127 return NULL;
2d091820
RD
3128 if (_argo0) {
3129 if (_argo0 == Py_None) { _arg0 = NULL; }
3130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p.");
3132 return NULL;
3133 }
3134 }
ab9bc19b
RD
3135{
3136 wxPy_BEGIN_ALLOW_THREADS;
3137 wxComboBox_SetInsertionPointEnd(_arg0);
3138
3139 wxPy_END_ALLOW_THREADS;
4dfaa61e 3140 if (PyErr_Occurred()) return NULL;
ab9bc19b 3141} Py_INCREF(Py_None);
70551f47
RD
3142 _resultobj = Py_None;
3143 return _resultobj;
3144}
3145
2d091820 3146#define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
107e4716 3147static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2d091820
RD
3148 PyObject * _resultobj;
3149 wxComboBox * _arg0;
3150 int _arg1;
3151 PyObject * _argo0 = 0;
107e4716 3152 char *_kwnames[] = { "self","n", NULL };
2d091820
RD
3153
3154 self = self;
107e4716 3155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1))
2d091820
RD
3156 return NULL;
3157 if (_argo0) {
3158 if (_argo0 == Py_None) { _arg0 = NULL; }
3159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p.");
3161 return NULL;
3162 }
3163 }
3164{
3165 wxPy_BEGIN_ALLOW_THREADS;
3166 wxComboBox_SetSelection(_arg0,_arg1);
3167
3168 wxPy_END_ALLOW_THREADS;
4dfaa61e 3169 if (PyErr_Occurred()) return NULL;
2d091820
RD
3170} Py_INCREF(Py_None);
3171 _resultobj = Py_None;
3172 return _resultobj;
3173}
3174
70551f47 3175#define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
107e4716 3176static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3177 PyObject * _resultobj;
3178 wxComboBox * _arg0;
3179 long _arg1;
3180 long _arg2;
2d091820 3181 PyObject * _argo0 = 0;
107e4716 3182 char *_kwnames[] = { "self","from","to", NULL };
70551f47
RD
3183
3184 self = self;
107e4716 3185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 3186 return NULL;
2d091820
RD
3187 if (_argo0) {
3188 if (_argo0 == Py_None) { _arg0 = NULL; }
3189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p.");
3191 return NULL;
3192 }
3193 }
ab9bc19b
RD
3194{
3195 wxPy_BEGIN_ALLOW_THREADS;
3196 wxComboBox_SetMark(_arg0,_arg1,_arg2);
3197
3198 wxPy_END_ALLOW_THREADS;
4dfaa61e 3199 if (PyErr_Occurred()) return NULL;
ab9bc19b 3200} Py_INCREF(Py_None);
70551f47
RD
3201 _resultobj = Py_None;
3202 return _resultobj;
3203}
3204
3205#define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 3206static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3207 PyObject * _resultobj;
3208 wxComboBox * _arg0;
3209 wxString * _arg1;
2d091820 3210 PyObject * _argo0 = 0;
70551f47 3211 PyObject * _obj1 = 0;
107e4716 3212 char *_kwnames[] = { "self","text", NULL };
70551f47
RD
3213
3214 self = self;
107e4716 3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1))
70551f47 3216 return NULL;
2d091820
RD
3217 if (_argo0) {
3218 if (_argo0 == Py_None) { _arg0 = NULL; }
3219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
70551f47
RD
3220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p.");
3221 return NULL;
3222 }
3223 }
3224{
2cd2fac8
RD
3225#if PYTHON_API_VERSION >= 1009
3226 char* tmpPtr; int tmpSize;
3227 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 3228 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
3229 return NULL;
3230 }
3231 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3232 return NULL;
3233 _arg1 = new wxString(tmpPtr, tmpSize);
3234#else
70551f47
RD
3235 if (!PyString_Check(_obj1)) {
3236 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3237 return NULL;
3238 }
2cd2fac8
RD
3239 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3240#endif
70551f47 3241}
ab9bc19b
RD
3242{
3243 wxPy_BEGIN_ALLOW_THREADS;
3244 wxComboBox_SetValue(_arg0,*_arg1);
3245
3246 wxPy_END_ALLOW_THREADS;
4dfaa61e 3247 if (PyErr_Occurred()) return NULL;
ab9bc19b 3248} Py_INCREF(Py_None);
70551f47
RD
3249 _resultobj = Py_None;
3250{
3251 if (_obj1)
3252 delete _arg1;
3253}
3254 return _resultobj;
3255}
3256
2c8a649d
RD
3257#define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
3258static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3259 PyObject * _resultobj;
3260 wxComboBox * _arg0;
3261 bool _arg1;
3262 PyObject * _argo0 = 0;
3263 int tempbool1;
3264 char *_kwnames[] = { "self","editable", NULL };
3265
3266 self = self;
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1))
3268 return NULL;
3269 if (_argo0) {
3270 if (_argo0 == Py_None) { _arg0 = NULL; }
3271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p.");
3273 return NULL;
3274 }
3275 }
3276 _arg1 = (bool ) tempbool1;
3277{
3278 wxPy_BEGIN_ALLOW_THREADS;
3279 wxComboBox_SetEditable(_arg0,_arg1);
3280
3281 wxPy_END_ALLOW_THREADS;
3282 if (PyErr_Occurred()) return NULL;
3283} Py_INCREF(Py_None);
3284 _resultobj = Py_None;
3285 return _resultobj;
3286}
3287
c70fd24f
RD
3288#define wxComboBox_Clear(_swigobj) (_swigobj->Clear())
3289static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3290 PyObject * _resultobj;
3291 wxComboBox * _arg0;
3292 PyObject * _argo0 = 0;
3293 char *_kwnames[] = { "self", NULL };
3294
3295 self = self;
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0))
3297 return NULL;
3298 if (_argo0) {
3299 if (_argo0 == Py_None) { _arg0 = NULL; }
3300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p.");
3302 return NULL;
3303 }
3304 }
3305{
3306 wxPy_BEGIN_ALLOW_THREADS;
3307 wxComboBox_Clear(_arg0);
3308
3309 wxPy_END_ALLOW_THREADS;
3310 if (PyErr_Occurred()) return NULL;
3311} Py_INCREF(Py_None);
3312 _resultobj = Py_None;
3313 return _resultobj;
3314}
3315
3316#define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
3317static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
3318 PyObject * _resultobj;
3319 wxComboBox * _arg0;
3320 int _arg1;
3321 PyObject * _argo0 = 0;
3322 char *_kwnames[] = { "self","n", NULL };
3323
3324 self = self;
3325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1))
3326 return NULL;
3327 if (_argo0) {
3328 if (_argo0 == Py_None) { _arg0 = NULL; }
3329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p.");
3331 return NULL;
3332 }
3333 }
3334{
3335 wxPy_BEGIN_ALLOW_THREADS;
3336 wxComboBox_Delete(_arg0,_arg1);
3337
3338 wxPy_END_ALLOW_THREADS;
3339 if (PyErr_Occurred()) return NULL;
3340} Py_INCREF(Py_None);
3341 _resultobj = Py_None;
3342 return _resultobj;
3343}
3344
3345#define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount())
3346static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3347 PyObject * _resultobj;
3348 int _result;
3349 wxComboBox * _arg0;
3350 PyObject * _argo0 = 0;
3351 char *_kwnames[] = { "self", NULL };
3352
3353 self = self;
3354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0))
3355 return NULL;
3356 if (_argo0) {
3357 if (_argo0 == Py_None) { _arg0 = NULL; }
3358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p.");
3360 return NULL;
3361 }
3362 }
3363{
3364 wxPy_BEGIN_ALLOW_THREADS;
3365 _result = (int )wxComboBox_GetCount(_arg0);
3366
3367 wxPy_END_ALLOW_THREADS;
3368 if (PyErr_Occurred()) return NULL;
3369} _resultobj = Py_BuildValue("i",_result);
3370 return _resultobj;
3371}
3372
3373#define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
3374static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3375 PyObject * _resultobj;
3376 wxString * _result;
3377 wxComboBox * _arg0;
3378 int _arg1;
3379 PyObject * _argo0 = 0;
3380 char *_kwnames[] = { "self","n", NULL };
3381
3382 self = self;
3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1))
3384 return NULL;
3385 if (_argo0) {
3386 if (_argo0 == Py_None) { _arg0 = NULL; }
3387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p.");
3389 return NULL;
3390 }
3391 }
3392{
3393 wxPy_BEGIN_ALLOW_THREADS;
3394 _result = new wxString (wxComboBox_GetString(_arg0,_arg1));
3395
3396 wxPy_END_ALLOW_THREADS;
3397 if (PyErr_Occurred()) return NULL;
3398}{
3399 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3400}
3401{
3402 delete _result;
3403}
3404 return _resultobj;
3405}
3406
3407#define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
3408static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3409 PyObject * _resultobj;
3410 int _result;
3411 wxComboBox * _arg0;
3412 wxString * _arg1;
3413 PyObject * _argo0 = 0;
3414 PyObject * _obj1 = 0;
3415 char *_kwnames[] = { "self","s", NULL };
3416
3417 self = self;
3418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1))
3419 return NULL;
3420 if (_argo0) {
3421 if (_argo0 == Py_None) { _arg0 = NULL; }
3422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p.");
3424 return NULL;
3425 }
3426 }
3427{
3428#if PYTHON_API_VERSION >= 1009
3429 char* tmpPtr; int tmpSize;
3430 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3431 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3432 return NULL;
3433 }
3434 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3435 return NULL;
3436 _arg1 = new wxString(tmpPtr, tmpSize);
3437#else
3438 if (!PyString_Check(_obj1)) {
3439 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3440 return NULL;
3441 }
3442 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3443#endif
3444}
3445{
3446 wxPy_BEGIN_ALLOW_THREADS;
3447 _result = (int )wxComboBox_FindString(_arg0,*_arg1);
3448
3449 wxPy_END_ALLOW_THREADS;
3450 if (PyErr_Occurred()) return NULL;
3451} _resultobj = Py_BuildValue("i",_result);
3452{
3453 if (_obj1)
3454 delete _arg1;
3455}
3456 return _resultobj;
3457}
3458
3459#define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection())
3460static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3461 PyObject * _resultobj;
3462 int _result;
3463 wxComboBox * _arg0;
3464 PyObject * _argo0 = 0;
3465 char *_kwnames[] = { "self", NULL };
3466
3467 self = self;
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0))
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_GetSelection. Expected _wxComboBox_p.");
3474 return NULL;
3475 }
3476 }
3477{
3478 wxPy_BEGIN_ALLOW_THREADS;
3479 _result = (int )wxComboBox_GetSelection(_arg0);
3480
3481 wxPy_END_ALLOW_THREADS;
3482 if (PyErr_Occurred()) return NULL;
3483} _resultobj = Py_BuildValue("i",_result);
3484 return _resultobj;
3485}
3486
3487#define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
3488static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3489 PyObject * _resultobj;
3490 wxString * _result;
3491 wxComboBox * _arg0;
3492 PyObject * _argo0 = 0;
3493 char *_kwnames[] = { "self", NULL };
3494
3495 self = self;
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0))
3497 return NULL;
3498 if (_argo0) {
3499 if (_argo0 == Py_None) { _arg0 = NULL; }
3500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p.");
3502 return NULL;
3503 }
3504 }
3505{
3506 wxPy_BEGIN_ALLOW_THREADS;
3507 _result = new wxString (wxComboBox_GetStringSelection(_arg0));
3508
3509 wxPy_END_ALLOW_THREADS;
3510 if (PyErr_Occurred()) return NULL;
3511}{
3512 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3513}
3514{
3515 delete _result;
3516}
3517 return _resultobj;
3518}
3519
3520static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) {
3521 if (clientData) {
3522 wxPyClientData* data = new wxPyClientData(clientData);
3523 self->Append(item, data);
3524 } else
3525 self->Append(item);
3526 }
3527static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
3528 PyObject * _resultobj;
3529 wxComboBox * _arg0;
3530 wxString * _arg1;
3531 PyObject * _arg2 = (PyObject *) NULL;
3532 PyObject * _argo0 = 0;
3533 PyObject * _obj1 = 0;
3534 PyObject * _obj2 = 0;
3535 char *_kwnames[] = { "self","item","clientData", NULL };
3536
3537 self = self;
3538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2))
3539 return NULL;
3540 if (_argo0) {
3541 if (_argo0 == Py_None) { _arg0 = NULL; }
3542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p.");
3544 return NULL;
3545 }
3546 }
3547{
3548#if PYTHON_API_VERSION >= 1009
3549 char* tmpPtr; int tmpSize;
3550 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3551 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3552 return NULL;
3553 }
3554 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3555 return NULL;
3556 _arg1 = new wxString(tmpPtr, tmpSize);
3557#else
3558 if (!PyString_Check(_obj1)) {
3559 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3560 return NULL;
3561 }
3562 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3563#endif
3564}
3565 if (_obj2)
3566{
3567 _arg2 = _obj2;
3568}
3569{
3570 wxPy_BEGIN_ALLOW_THREADS;
3571 wxComboBox_Append(_arg0,*_arg1,_arg2);
3572
3573 wxPy_END_ALLOW_THREADS;
3574 if (PyErr_Occurred()) return NULL;
3575} Py_INCREF(Py_None);
3576 _resultobj = Py_None;
3577{
3578 if (_obj1)
3579 delete _arg1;
3580}
3581 return _resultobj;
3582}
3583
3584static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) {
3585 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
3586 if (data) {
3587 Py_INCREF(data->m_obj);
3588 return data->m_obj;
3589 } else {
3590 Py_INCREF(Py_None);
3591 return Py_None;
3592 }
3593 }
3594static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject * _resultobj;
3596 PyObject * _result;
3597 wxComboBox * _arg0;
3598 int _arg1;
3599 PyObject * _argo0 = 0;
3600 char *_kwnames[] = { "self","n", NULL };
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p.");
3609 return NULL;
3610 }
3611 }
3612{
3613 wxPy_BEGIN_ALLOW_THREADS;
3614 _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1);
3615
3616 wxPy_END_ALLOW_THREADS;
3617 if (PyErr_Occurred()) return NULL;
3618}{
3619 _resultobj = _result;
3620}
3621 return _resultobj;
3622}
3623
3624static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) {
3625 wxPyClientData* data = new wxPyClientData(clientData);
3626 self->SetClientObject(n, data);
3627 }
3628static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
3629 PyObject * _resultobj;
3630 wxComboBox * _arg0;
3631 int _arg1;
3632 PyObject * _arg2;
3633 PyObject * _argo0 = 0;
3634 PyObject * _obj2 = 0;
3635 char *_kwnames[] = { "self","n","clientData", NULL };
3636
3637 self = self;
3638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2))
3639 return NULL;
3640 if (_argo0) {
3641 if (_argo0 == Py_None) { _arg0 = NULL; }
3642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p.");
3644 return NULL;
3645 }
3646 }
3647{
3648 _arg2 = _obj2;
3649}
3650{
3651 wxPy_BEGIN_ALLOW_THREADS;
3652 wxComboBox_SetClientData(_arg0,_arg1,_arg2);
3653
3654 wxPy_END_ALLOW_THREADS;
3655 if (PyErr_Occurred()) return NULL;
3656} Py_INCREF(Py_None);
3657 _resultobj = Py_None;
3658 return _resultobj;
3659}
3660
70551f47
RD
3661static void *SwigwxGaugeTowxControl(void *ptr) {
3662 wxGauge *src;
3663 wxControl *dest;
3664 src = (wxGauge *) ptr;
3665 dest = (wxControl *) src;
3666 return (void *) dest;
3667}
3668
3669static void *SwigwxGaugeTowxWindow(void *ptr) {
3670 wxGauge *src;
3671 wxWindow *dest;
3672 src = (wxGauge *) ptr;
3673 dest = (wxWindow *) src;
3674 return (void *) dest;
3675}
3676
3677static void *SwigwxGaugeTowxEvtHandler(void *ptr) {
3678 wxGauge *src;
3679 wxEvtHandler *dest;
3680 src = (wxGauge *) ptr;
3681 dest = (wxEvtHandler *) src;
3682 return (void *) dest;
3683}
3684
9df61a29
RD
3685static void *SwigwxGaugeTowxObject(void *ptr) {
3686 wxGauge *src;
3687 wxObject *dest;
3688 src = (wxGauge *) ptr;
3689 dest = (wxObject *) src;
3690 return (void *) dest;
3691}
3692
70551f47 3693#define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 3694static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3695 PyObject * _resultobj;
3696 wxGauge * _result;
3697 wxWindow * _arg0;
3698 wxWindowID _arg1;
3699 int _arg2;
b68dc582
RD
3700 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3701 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 3702 long _arg5 = (long ) wxGA_HORIZONTAL;
b68dc582 3703 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
3704 char * _arg7 = (char *) "gauge";
3705 PyObject * _argo0 = 0;
37f6a977
RD
3706 wxPoint temp;
3707 PyObject * _obj3 = 0;
3708 wxSize temp0;
3709 PyObject * _obj4 = 0;
2d091820 3710 PyObject * _argo6 = 0;
107e4716 3711 char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL };
70551f47
RD
3712 char _ptemp[128];
3713
3714 self = self;
37f6a977 3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 3716 return NULL;
2d091820
RD
3717 if (_argo0) {
3718 if (_argo0 == Py_None) { _arg0 = NULL; }
3719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
3720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p.");
3721 return NULL;
3722 }
3723 }
37f6a977
RD
3724 if (_obj3)
3725{
3726 _arg3 = &temp;
3727 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 3728 return NULL;
37f6a977
RD
3729}
3730 if (_obj4)
3731{
3732 _arg4 = &temp0;
3733 if (! wxSize_helper(_obj4, &_arg4))
70551f47 3734 return NULL;
37f6a977 3735}
2d091820
RD
3736 if (_argo6) {
3737 if (_argo6 == Py_None) { _arg6 = NULL; }
3738 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
70551f47
RD
3739 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p.");
3740 return NULL;
3741 }
3742 }
ab9bc19b
RD
3743{
3744 wxPy_BEGIN_ALLOW_THREADS;
3745 _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3746
3747 wxPy_END_ALLOW_THREADS;
4dfaa61e 3748 if (PyErr_Occurred()) return NULL;
2d091820
RD
3749} if (_result) {
3750 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3751 _resultobj = Py_BuildValue("s",_ptemp);
3752 } else {
3753 Py_INCREF(Py_None);
3754 _resultobj = Py_None;
3755 }
70551f47
RD
3756 return _resultobj;
3757}
3758
aa2a5b86
RD
3759#define new_wxPreGauge() (new wxGauge())
3760static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3761 PyObject * _resultobj;
3762 wxGauge * _result;
3763 char *_kwnames[] = { NULL };
3764 char _ptemp[128];
3765
3766 self = self;
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames))
3768 return NULL;
3769{
3770 wxPy_BEGIN_ALLOW_THREADS;
3771 _result = (wxGauge *)new_wxPreGauge();
3772
3773 wxPy_END_ALLOW_THREADS;
3774 if (PyErr_Occurred()) return NULL;
3775} if (_result) {
3776 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3777 _resultobj = Py_BuildValue("s",_ptemp);
3778 } else {
3779 Py_INCREF(Py_None);
3780 _resultobj = Py_None;
3781 }
3782 return _resultobj;
3783}
3784
3785#define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3786static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject * _resultobj;
3788 bool _result;
3789 wxGauge * _arg0;
3790 wxWindow * _arg1;
3791 wxWindowID _arg2;
3792 int _arg3;
3793 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3794 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3795 long _arg6 = (long ) wxGA_HORIZONTAL;
3796 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
3797 char * _arg8 = (char *) "gauge";
3798 PyObject * _argo0 = 0;
3799 PyObject * _argo1 = 0;
3800 wxPoint temp;
3801 PyObject * _obj4 = 0;
3802 wxSize temp0;
3803 PyObject * _obj5 = 0;
3804 PyObject * _argo7 = 0;
3805 char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL };
3806
3807 self = self;
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
3809 return NULL;
3810 if (_argo0) {
3811 if (_argo0 == Py_None) { _arg0 = NULL; }
3812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p.");
3814 return NULL;
3815 }
3816 }
3817 if (_argo1) {
3818 if (_argo1 == Py_None) { _arg1 = NULL; }
3819 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3820 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p.");
3821 return NULL;
3822 }
3823 }
3824 if (_obj4)
3825{
3826 _arg4 = &temp;
3827 if (! wxPoint_helper(_obj4, &_arg4))
3828 return NULL;
3829}
3830 if (_obj5)
3831{
3832 _arg5 = &temp0;
3833 if (! wxSize_helper(_obj5, &_arg5))
3834 return NULL;
3835}
3836 if (_argo7) {
3837 if (_argo7 == Py_None) { _arg7 = NULL; }
3838 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
3839 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p.");
3840 return NULL;
3841 }
3842 }
3843{
3844 wxPy_BEGIN_ALLOW_THREADS;
3845 _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
3846
3847 wxPy_END_ALLOW_THREADS;
3848 if (PyErr_Occurred()) return NULL;
3849} _resultobj = Py_BuildValue("i",_result);
3850 return _resultobj;
3851}
3852
70551f47 3853#define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace())
107e4716 3854static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3855 PyObject * _resultobj;
3856 int _result;
3857 wxGauge * _arg0;
2d091820 3858 PyObject * _argo0 = 0;
107e4716 3859 char *_kwnames[] = { "self", NULL };
70551f47
RD
3860
3861 self = self;
107e4716 3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0))
70551f47 3863 return NULL;
2d091820
RD
3864 if (_argo0) {
3865 if (_argo0 == Py_None) { _arg0 = NULL; }
3866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
3867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p.");
3868 return NULL;
3869 }
3870 }
ab9bc19b
RD
3871{
3872 wxPy_BEGIN_ALLOW_THREADS;
3873 _result = (int )wxGauge_GetBezelFace(_arg0);
3874
3875 wxPy_END_ALLOW_THREADS;
4dfaa61e 3876 if (PyErr_Occurred()) return NULL;
ab9bc19b 3877} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3878 return _resultobj;
3879}
3880
3881#define wxGauge_GetRange(_swigobj) (_swigobj->GetRange())
107e4716 3882static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3883 PyObject * _resultobj;
3884 int _result;
3885 wxGauge * _arg0;
2d091820 3886 PyObject * _argo0 = 0;
107e4716 3887 char *_kwnames[] = { "self", NULL };
70551f47
RD
3888
3889 self = self;
107e4716 3890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0))
70551f47 3891 return NULL;
2d091820
RD
3892 if (_argo0) {
3893 if (_argo0 == Py_None) { _arg0 = NULL; }
3894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
3895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p.");
3896 return NULL;
3897 }
3898 }
ab9bc19b
RD
3899{
3900 wxPy_BEGIN_ALLOW_THREADS;
3901 _result = (int )wxGauge_GetRange(_arg0);
3902
3903 wxPy_END_ALLOW_THREADS;
4dfaa61e 3904 if (PyErr_Occurred()) return NULL;
ab9bc19b 3905} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3906 return _resultobj;
3907}
3908
3909#define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth())
107e4716 3910static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3911 PyObject * _resultobj;
3912 int _result;
3913 wxGauge * _arg0;
2d091820 3914 PyObject * _argo0 = 0;
107e4716 3915 char *_kwnames[] = { "self", NULL };
70551f47
RD
3916
3917 self = self;
107e4716 3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0))
70551f47 3919 return NULL;
2d091820
RD
3920 if (_argo0) {
3921 if (_argo0 == Py_None) { _arg0 = NULL; }
3922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
3923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p.");
3924 return NULL;
3925 }
3926 }
ab9bc19b
RD
3927{
3928 wxPy_BEGIN_ALLOW_THREADS;
3929 _result = (int )wxGauge_GetShadowWidth(_arg0);
3930
3931 wxPy_END_ALLOW_THREADS;
4dfaa61e 3932 if (PyErr_Occurred()) return NULL;
ab9bc19b 3933} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3934 return _resultobj;
3935}
3936
3937#define wxGauge_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 3938static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3939 PyObject * _resultobj;
3940 int _result;
3941 wxGauge * _arg0;
2d091820 3942 PyObject * _argo0 = 0;
107e4716 3943 char *_kwnames[] = { "self", NULL };
70551f47
RD
3944
3945 self = self;
107e4716 3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0))
70551f47 3947 return NULL;
2d091820
RD
3948 if (_argo0) {
3949 if (_argo0 == Py_None) { _arg0 = NULL; }
3950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
3951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p.");
3952 return NULL;
3953 }
3954 }
ab9bc19b
RD
3955{
3956 wxPy_BEGIN_ALLOW_THREADS;
3957 _result = (int )wxGauge_GetValue(_arg0);
3958
3959 wxPy_END_ALLOW_THREADS;
4dfaa61e 3960 if (PyErr_Occurred()) return NULL;
ab9bc19b 3961} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3962 return _resultobj;
3963}
3964
3965#define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0))
107e4716 3966static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3967 PyObject * _resultobj;
3968 wxGauge * _arg0;
3969 int _arg1;
2d091820 3970 PyObject * _argo0 = 0;
107e4716 3971 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
3972
3973 self = self;
107e4716 3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1))
70551f47 3975 return NULL;
2d091820
RD
3976 if (_argo0) {
3977 if (_argo0 == Py_None) { _arg0 = NULL; }
3978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
3979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p.");
3980 return NULL;
3981 }
3982 }
ab9bc19b
RD
3983{
3984 wxPy_BEGIN_ALLOW_THREADS;
3985 wxGauge_SetBezelFace(_arg0,_arg1);
3986
3987 wxPy_END_ALLOW_THREADS;
4dfaa61e 3988 if (PyErr_Occurred()) return NULL;
ab9bc19b 3989} Py_INCREF(Py_None);
70551f47
RD
3990 _resultobj = Py_None;
3991 return _resultobj;
3992}
3993
3994#define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0))
107e4716 3995static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3996 PyObject * _resultobj;
3997 wxGauge * _arg0;
3998 int _arg1;
2d091820 3999 PyObject * _argo0 = 0;
107e4716 4000 char *_kwnames[] = { "self","range", NULL };
70551f47
RD
4001
4002 self = self;
107e4716 4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1))
70551f47 4004 return NULL;
2d091820
RD
4005 if (_argo0) {
4006 if (_argo0 == Py_None) { _arg0 = NULL; }
4007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
4008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p.");
4009 return NULL;
4010 }
4011 }
ab9bc19b
RD
4012{
4013 wxPy_BEGIN_ALLOW_THREADS;
4014 wxGauge_SetRange(_arg0,_arg1);
4015
4016 wxPy_END_ALLOW_THREADS;
4dfaa61e 4017 if (PyErr_Occurred()) return NULL;
ab9bc19b 4018} Py_INCREF(Py_None);
70551f47
RD
4019 _resultobj = Py_None;
4020 return _resultobj;
4021}
4022
4023#define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0))
107e4716 4024static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4025 PyObject * _resultobj;
4026 wxGauge * _arg0;
4027 int _arg1;
2d091820 4028 PyObject * _argo0 = 0;
107e4716 4029 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
4030
4031 self = self;
107e4716 4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1))
70551f47 4033 return NULL;
2d091820
RD
4034 if (_argo0) {
4035 if (_argo0 == Py_None) { _arg0 = NULL; }
4036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
4037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p.");
4038 return NULL;
4039 }
4040 }
ab9bc19b
RD
4041{
4042 wxPy_BEGIN_ALLOW_THREADS;
4043 wxGauge_SetShadowWidth(_arg0,_arg1);
4044
4045 wxPy_END_ALLOW_THREADS;
4dfaa61e 4046 if (PyErr_Occurred()) return NULL;
ab9bc19b 4047} Py_INCREF(Py_None);
70551f47
RD
4048 _resultobj = Py_None;
4049 return _resultobj;
4050}
4051
4052#define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 4053static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4054 PyObject * _resultobj;
4055 wxGauge * _arg0;
4056 int _arg1;
2d091820 4057 PyObject * _argo0 = 0;
107e4716 4058 char *_kwnames[] = { "self","pos", NULL };
70551f47
RD
4059
4060 self = self;
107e4716 4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1))
70551f47 4062 return NULL;
2d091820
RD
4063 if (_argo0) {
4064 if (_argo0 == Py_None) { _arg0 = NULL; }
4065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
70551f47
RD
4066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p.");
4067 return NULL;
4068 }
4069 }
ab9bc19b
RD
4070{
4071 wxPy_BEGIN_ALLOW_THREADS;
4072 wxGauge_SetValue(_arg0,_arg1);
4073
4074 wxPy_END_ALLOW_THREADS;
4dfaa61e 4075 if (PyErr_Occurred()) return NULL;
ab9bc19b 4076} Py_INCREF(Py_None);
70551f47
RD
4077 _resultobj = Py_None;
4078 return _resultobj;
4079}
4080
4081static void *SwigwxStaticBoxTowxControl(void *ptr) {
4082 wxStaticBox *src;
4083 wxControl *dest;
4084 src = (wxStaticBox *) ptr;
4085 dest = (wxControl *) src;
4086 return (void *) dest;
4087}
4088
4089static void *SwigwxStaticBoxTowxWindow(void *ptr) {
4090 wxStaticBox *src;
4091 wxWindow *dest;
4092 src = (wxStaticBox *) ptr;
4093 dest = (wxWindow *) src;
4094 return (void *) dest;
4095}
4096
4097static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) {
4098 wxStaticBox *src;
4099 wxEvtHandler *dest;
4100 src = (wxStaticBox *) ptr;
4101 dest = (wxEvtHandler *) src;
4102 return (void *) dest;
4103}
4104
9df61a29
RD
4105static void *SwigwxStaticBoxTowxObject(void *ptr) {
4106 wxStaticBox *src;
4107 wxObject *dest;
4108 src = (wxStaticBox *) ptr;
4109 dest = (wxObject *) src;
4110 return (void *) dest;
4111}
4112
70551f47 4113#define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
107e4716 4114static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4115 PyObject * _resultobj;
4116 wxStaticBox * _result;
4117 wxWindow * _arg0;
4118 wxWindowID _arg1;
4119 wxString * _arg2;
b68dc582
RD
4120 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4121 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820
RD
4122 long _arg5 = (long ) 0;
4123 char * _arg6 = (char *) "staticBox";
4124 PyObject * _argo0 = 0;
70551f47 4125 PyObject * _obj2 = 0;
37f6a977
RD
4126 wxPoint temp;
4127 PyObject * _obj3 = 0;
4128 wxSize temp0;
4129 PyObject * _obj4 = 0;
107e4716 4130 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
70551f47
RD
4131 char _ptemp[128];
4132
4133 self = self;
37f6a977 4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
70551f47 4135 return NULL;
2d091820
RD
4136 if (_argo0) {
4137 if (_argo0 == Py_None) { _arg0 = NULL; }
4138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
4139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p.");
4140 return NULL;
4141 }
4142 }
4143{
2cd2fac8
RD
4144#if PYTHON_API_VERSION >= 1009
4145 char* tmpPtr; int tmpSize;
4146 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 4147 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
4148 return NULL;
4149 }
4150 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4151 return NULL;
4152 _arg2 = new wxString(tmpPtr, tmpSize);
4153#else
70551f47
RD
4154 if (!PyString_Check(_obj2)) {
4155 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4156 return NULL;
4157 }
2cd2fac8
RD
4158 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4159#endif
70551f47 4160}
37f6a977
RD
4161 if (_obj3)
4162{
4163 _arg3 = &temp;
4164 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 4165 return NULL;
37f6a977
RD
4166}
4167 if (_obj4)
4168{
4169 _arg4 = &temp0;
4170 if (! wxSize_helper(_obj4, &_arg4))
70551f47 4171 return NULL;
37f6a977 4172}
ab9bc19b
RD
4173{
4174 wxPy_BEGIN_ALLOW_THREADS;
4175 _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4176
4177 wxPy_END_ALLOW_THREADS;
4dfaa61e 4178 if (PyErr_Occurred()) return NULL;
2d091820
RD
4179} if (_result) {
4180 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
4181 _resultobj = Py_BuildValue("s",_ptemp);
4182 } else {
4183 Py_INCREF(Py_None);
4184 _resultobj = Py_None;
4185 }
70551f47
RD
4186{
4187 if (_obj2)
4188 delete _arg2;
4189}
4190 return _resultobj;
4191}
4192
aa2a5b86
RD
4193#define new_wxPreStaticBox() (new wxStaticBox())
4194static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4195 PyObject * _resultobj;
4196 wxStaticBox * _result;
4197 char *_kwnames[] = { NULL };
4198 char _ptemp[128];
4199
4200 self = self;
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames))
4202 return NULL;
4203{
4204 wxPy_BEGIN_ALLOW_THREADS;
4205 _result = (wxStaticBox *)new_wxPreStaticBox();
4206
4207 wxPy_END_ALLOW_THREADS;
4208 if (PyErr_Occurred()) return NULL;
4209} if (_result) {
4210 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
4211 _resultobj = Py_BuildValue("s",_ptemp);
4212 } else {
4213 Py_INCREF(Py_None);
4214 _resultobj = Py_None;
4215 }
4216 return _resultobj;
4217}
4218
4219#define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4220static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject * _resultobj;
4222 bool _result;
4223 wxStaticBox * _arg0;
4224 wxWindow * _arg1;
4225 wxWindowID _arg2;
4226 wxString * _arg3;
4227 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4228 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4229 long _arg6 = (long ) 0;
4230 char * _arg7 = (char *) "staticBox";
4231 PyObject * _argo0 = 0;
4232 PyObject * _argo1 = 0;
4233 PyObject * _obj3 = 0;
4234 wxPoint temp;
4235 PyObject * _obj4 = 0;
4236 wxSize temp0;
4237 PyObject * _obj5 = 0;
4238 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4239
4240 self = self;
4241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
4242 return NULL;
4243 if (_argo0) {
4244 if (_argo0 == Py_None) { _arg0 = NULL; }
4245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
4246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p.");
4247 return NULL;
4248 }
4249 }
4250 if (_argo1) {
4251 if (_argo1 == Py_None) { _arg1 = NULL; }
4252 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4253 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p.");
4254 return NULL;
4255 }
4256 }
4257{
4258#if PYTHON_API_VERSION >= 1009
4259 char* tmpPtr; int tmpSize;
4260 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
4261 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4262 return NULL;
4263 }
4264 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
4265 return NULL;
4266 _arg3 = new wxString(tmpPtr, tmpSize);
4267#else
4268 if (!PyString_Check(_obj3)) {
4269 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4270 return NULL;
4271 }
4272 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
4273#endif
4274}
4275 if (_obj4)
4276{
4277 _arg4 = &temp;
4278 if (! wxPoint_helper(_obj4, &_arg4))
4279 return NULL;
4280}
4281 if (_obj5)
4282{
4283 _arg5 = &temp0;
4284 if (! wxSize_helper(_obj5, &_arg5))
4285 return NULL;
4286}
4287{
4288 wxPy_BEGIN_ALLOW_THREADS;
4289 _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
4290
4291 wxPy_END_ALLOW_THREADS;
4292 if (PyErr_Occurred()) return NULL;
4293} _resultobj = Py_BuildValue("i",_result);
4294{
4295 if (_obj3)
4296 delete _arg3;
4297}
4298 return _resultobj;
4299}
4300
d24a34bb
RD
4301static void *SwigwxStaticLineTowxControl(void *ptr) {
4302 wxStaticLine *src;
4303 wxControl *dest;
4304 src = (wxStaticLine *) ptr;
4305 dest = (wxControl *) src;
4306 return (void *) dest;
4307}
4308
4309static void *SwigwxStaticLineTowxWindow(void *ptr) {
4310 wxStaticLine *src;
4311 wxWindow *dest;
4312 src = (wxStaticLine *) ptr;
4313 dest = (wxWindow *) src;
4314 return (void *) dest;
4315}
4316
4317static void *SwigwxStaticLineTowxEvtHandler(void *ptr) {
4318 wxStaticLine *src;
4319 wxEvtHandler *dest;
4320 src = (wxStaticLine *) ptr;
4321 dest = (wxEvtHandler *) src;
4322 return (void *) dest;
4323}
4324
9df61a29
RD
4325static void *SwigwxStaticLineTowxObject(void *ptr) {
4326 wxStaticLine *src;
4327 wxObject *dest;
4328 src = (wxStaticLine *) ptr;
4329 dest = (wxObject *) src;
4330 return (void *) dest;
4331}
4332
d24a34bb 4333#define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 4334static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
4335 PyObject * _resultobj;
4336 wxStaticLine * _result;
4337 wxWindow * _arg0;
4338 wxWindowID _arg1;
b68dc582
RD
4339 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4340 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2d091820
RD
4341 long _arg4 = (long ) wxLI_HORIZONTAL;
4342 char * _arg5 = (char *) "staticLine";
4343 PyObject * _argo0 = 0;
37f6a977
RD
4344 wxPoint temp;
4345 PyObject * _obj2 = 0;
4346 wxSize temp0;
4347 PyObject * _obj3 = 0;
107e4716 4348 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
d24a34bb
RD
4349 char _ptemp[128];
4350
4351 self = self;
37f6a977 4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
d24a34bb 4353 return NULL;
2d091820
RD
4354 if (_argo0) {
4355 if (_argo0 == Py_None) { _arg0 = NULL; }
4356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
d24a34bb
RD
4357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p.");
4358 return NULL;
4359 }
4360 }
37f6a977
RD
4361 if (_obj2)
4362{
4363 _arg2 = &temp;
4364 if (! wxPoint_helper(_obj2, &_arg2))
d24a34bb 4365 return NULL;
37f6a977
RD
4366}
4367 if (_obj3)
4368{
4369 _arg3 = &temp0;
4370 if (! wxSize_helper(_obj3, &_arg3))
d24a34bb 4371 return NULL;
37f6a977 4372}
d24a34bb
RD
4373{
4374 wxPy_BEGIN_ALLOW_THREADS;
4375 _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4376
4377 wxPy_END_ALLOW_THREADS;
4dfaa61e 4378 if (PyErr_Occurred()) return NULL;
2d091820
RD
4379} if (_result) {
4380 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4381 _resultobj = Py_BuildValue("s",_ptemp);
4382 } else {
4383 Py_INCREF(Py_None);
4384 _resultobj = Py_None;
4385 }
d24a34bb
RD
4386 return _resultobj;
4387}
4388
aa2a5b86
RD
4389#define new_wxPreStaticLine() (new wxStaticLine())
4390static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4391 PyObject * _resultobj;
4392 wxStaticLine * _result;
4393 char *_kwnames[] = { NULL };
4394 char _ptemp[128];
4395
4396 self = self;
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames))
4398 return NULL;
4399{
4400 wxPy_BEGIN_ALLOW_THREADS;
4401 _result = (wxStaticLine *)new_wxPreStaticLine();
4402
4403 wxPy_END_ALLOW_THREADS;
4404 if (PyErr_Occurred()) return NULL;
4405} if (_result) {
4406 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4407 _resultobj = Py_BuildValue("s",_ptemp);
4408 } else {
4409 Py_INCREF(Py_None);
4410 _resultobj = Py_None;
4411 }
4412 return _resultobj;
4413}
4414
4415#define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4416static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4417 PyObject * _resultobj;
4418 bool _result;
4419 wxStaticLine * _arg0;
4420 wxWindow * _arg1;
4421 wxWindowID _arg2;
4422 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4423 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4424 long _arg5 = (long ) wxLI_HORIZONTAL;
4425 char * _arg6 = (char *) "staticLine";
4426 PyObject * _argo0 = 0;
4427 PyObject * _argo1 = 0;
4428 wxPoint temp;
4429 PyObject * _obj3 = 0;
4430 wxSize temp0;
4431 PyObject * _obj4 = 0;
4432 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
4433
4434 self = self;
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
4436 return NULL;
4437 if (_argo0) {
4438 if (_argo0 == Py_None) { _arg0 = NULL; }
4439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) {
4440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p.");
4441 return NULL;
4442 }
4443 }
4444 if (_argo1) {
4445 if (_argo1 == Py_None) { _arg1 = NULL; }
4446 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4447 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p.");
4448 return NULL;
4449 }
4450 }
4451 if (_obj3)
4452{
4453 _arg3 = &temp;
4454 if (! wxPoint_helper(_obj3, &_arg3))
4455 return NULL;
4456}
4457 if (_obj4)
4458{
4459 _arg4 = &temp0;
4460 if (! wxSize_helper(_obj4, &_arg4))
4461 return NULL;
4462}
4463{
4464 wxPy_BEGIN_ALLOW_THREADS;
4465 _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
4466
4467 wxPy_END_ALLOW_THREADS;
4468 if (PyErr_Occurred()) return NULL;
4469} _resultobj = Py_BuildValue("i",_result);
4470 return _resultobj;
4471}
4472
70551f47
RD
4473static void *SwigwxStaticTextTowxControl(void *ptr) {
4474 wxStaticText *src;
4475 wxControl *dest;
4476 src = (wxStaticText *) ptr;
4477 dest = (wxControl *) src;
4478 return (void *) dest;
4479}
4480
4481static void *SwigwxStaticTextTowxWindow(void *ptr) {
4482 wxStaticText *src;
4483 wxWindow *dest;
4484 src = (wxStaticText *) ptr;
4485 dest = (wxWindow *) src;
4486 return (void *) dest;
4487}
4488
4489static void *SwigwxStaticTextTowxEvtHandler(void *ptr) {
4490 wxStaticText *src;
4491 wxEvtHandler *dest;
4492 src = (wxStaticText *) ptr;
4493 dest = (wxEvtHandler *) src;
4494 return (void *) dest;
4495}
4496
9df61a29
RD
4497static void *SwigwxStaticTextTowxObject(void *ptr) {
4498 wxStaticText *src;
4499 wxObject *dest;
4500 src = (wxStaticText *) ptr;
4501 dest = (wxObject *) src;
4502 return (void *) dest;
4503}
4504
70551f47 4505#define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
107e4716 4506static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4507 PyObject * _resultobj;
4508 wxStaticText * _result;
4509 wxWindow * _arg0;
4510 wxWindowID _arg1;
4511 wxString * _arg2;
b68dc582
RD
4512 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4513 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820
RD
4514 long _arg5 = (long ) 0;
4515 char * _arg6 = (char *) "staticText";
4516 PyObject * _argo0 = 0;
70551f47 4517 PyObject * _obj2 = 0;
37f6a977
RD
4518 wxPoint temp;
4519 PyObject * _obj3 = 0;
4520 wxSize temp0;
4521 PyObject * _obj4 = 0;
107e4716 4522 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
70551f47
RD
4523 char _ptemp[128];
4524
4525 self = self;
37f6a977 4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
70551f47 4527 return NULL;
2d091820
RD
4528 if (_argo0) {
4529 if (_argo0 == Py_None) { _arg0 = NULL; }
4530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
4531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p.");
4532 return NULL;
4533 }
4534 }
4535{
2cd2fac8
RD
4536#if PYTHON_API_VERSION >= 1009
4537 char* tmpPtr; int tmpSize;
4538 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 4539 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
4540 return NULL;
4541 }
4542 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4543 return NULL;
4544 _arg2 = new wxString(tmpPtr, tmpSize);
4545#else
70551f47
RD
4546 if (!PyString_Check(_obj2)) {
4547 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4548 return NULL;
4549 }
2cd2fac8
RD
4550 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4551#endif
70551f47 4552}
37f6a977
RD
4553 if (_obj3)
4554{
4555 _arg3 = &temp;
4556 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 4557 return NULL;
37f6a977
RD
4558}
4559 if (_obj4)
4560{
4561 _arg4 = &temp0;
4562 if (! wxSize_helper(_obj4, &_arg4))
70551f47 4563 return NULL;
37f6a977 4564}
ab9bc19b
RD
4565{
4566 wxPy_BEGIN_ALLOW_THREADS;
4567 _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4568
4569 wxPy_END_ALLOW_THREADS;
4dfaa61e 4570 if (PyErr_Occurred()) return NULL;
2d091820
RD
4571} if (_result) {
4572 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4573 _resultobj = Py_BuildValue("s",_ptemp);
4574 } else {
4575 Py_INCREF(Py_None);
4576 _resultobj = Py_None;
4577 }
70551f47
RD
4578{
4579 if (_obj2)
4580 delete _arg2;
4581}
4582 return _resultobj;
4583}
4584
aa2a5b86
RD
4585#define new_wxPreStaticText() (new wxStaticText())
4586static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4587 PyObject * _resultobj;
4588 wxStaticText * _result;
4589 char *_kwnames[] = { NULL };
4590 char _ptemp[128];
4591
4592 self = self;
4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames))
4594 return NULL;
4595{
4596 wxPy_BEGIN_ALLOW_THREADS;
4597 _result = (wxStaticText *)new_wxPreStaticText();
4598
4599 wxPy_END_ALLOW_THREADS;
4600 if (PyErr_Occurred()) return NULL;
4601} if (_result) {
4602 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4603 _resultobj = Py_BuildValue("s",_ptemp);
4604 } else {
4605 Py_INCREF(Py_None);
4606 _resultobj = Py_None;
4607 }
4608 return _resultobj;
4609}
4610
4611#define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4612static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4613 PyObject * _resultobj;
4614 bool _result;
4615 wxStaticText * _arg0;
4616 wxWindow * _arg1;
4617 wxWindowID _arg2;
4618 wxString * _arg3;
4619 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4620 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4621 long _arg6 = (long ) 0;
4622 char * _arg7 = (char *) "staticText";
4623 PyObject * _argo0 = 0;
4624 PyObject * _argo1 = 0;
4625 PyObject * _obj3 = 0;
4626 wxPoint temp;
4627 PyObject * _obj4 = 0;
4628 wxSize temp0;
4629 PyObject * _obj5 = 0;
4630 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4631
4632 self = self;
4633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
4634 return NULL;
4635 if (_argo0) {
4636 if (_argo0 == Py_None) { _arg0 = NULL; }
4637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p.");
4639 return NULL;
4640 }
4641 }
4642 if (_argo1) {
4643 if (_argo1 == Py_None) { _arg1 = NULL; }
4644 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4645 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p.");
4646 return NULL;
4647 }
4648 }
4649{
4650#if PYTHON_API_VERSION >= 1009
4651 char* tmpPtr; int tmpSize;
4652 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
4653 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4654 return NULL;
4655 }
4656 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
4657 return NULL;
4658 _arg3 = new wxString(tmpPtr, tmpSize);
4659#else
4660 if (!PyString_Check(_obj3)) {
4661 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4662 return NULL;
4663 }
4664 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
4665#endif
4666}
4667 if (_obj4)
4668{
4669 _arg4 = &temp;
4670 if (! wxPoint_helper(_obj4, &_arg4))
4671 return NULL;
4672}
4673 if (_obj5)
4674{
4675 _arg5 = &temp0;
4676 if (! wxSize_helper(_obj5, &_arg5))
4677 return NULL;
4678}
4679{
4680 wxPy_BEGIN_ALLOW_THREADS;
4681 _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
4682
4683 wxPy_END_ALLOW_THREADS;
4684 if (PyErr_Occurred()) return NULL;
4685} _resultobj = Py_BuildValue("i",_result);
4686{
4687 if (_obj3)
4688 delete _arg3;
4689}
4690 return _resultobj;
4691}
4692
70551f47 4693#define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel())
107e4716 4694static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4695 PyObject * _resultobj;
4696 wxString * _result;
4697 wxStaticText * _arg0;
2d091820 4698 PyObject * _argo0 = 0;
107e4716 4699 char *_kwnames[] = { "self", NULL };
70551f47
RD
4700
4701 self = self;
107e4716 4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0))
70551f47 4703 return NULL;
2d091820
RD
4704 if (_argo0) {
4705 if (_argo0 == Py_None) { _arg0 = NULL; }
4706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
70551f47
RD
4707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p.");
4708 return NULL;
4709 }
4710 }
70551f47 4711{
ab9bc19b
RD
4712 wxPy_BEGIN_ALLOW_THREADS;
4713 _result = new wxString (wxStaticText_GetLabel(_arg0));
4714
4715 wxPy_END_ALLOW_THREADS;
4dfaa61e 4716 if (PyErr_Occurred()) return NULL;
ab9bc19b 4717}{
e02c03a4 4718 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
70551f47
RD
4719}
4720{
4721 delete _result;
4722}
4723 return _resultobj;
4724}
4725
4726#define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
107e4716 4727static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4728 PyObject * _resultobj;
4729 wxStaticText * _arg0;
4730 wxString * _arg1;
2d091820 4731 PyObject * _argo0 = 0;
70551f47 4732 PyObject * _obj1 = 0;
107e4716 4733 char *_kwnames[] = { "self","label", NULL };
70551f47
RD
4734
4735 self = self;
107e4716 4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1))
70551f47 4737 return NULL;
2d091820
RD
4738 if (_argo0) {
4739 if (_argo0 == Py_None) { _arg0 = NULL; }
4740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
70551f47
RD
4741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p.");
4742 return NULL;
4743 }
4744 }
4745{
2cd2fac8
RD
4746#if PYTHON_API_VERSION >= 1009
4747 char* tmpPtr; int tmpSize;
4748 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 4749 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
4750 return NULL;
4751 }
4752 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4753 return NULL;
4754 _arg1 = new wxString(tmpPtr, tmpSize);
4755#else
70551f47
RD
4756 if (!PyString_Check(_obj1)) {
4757 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4758 return NULL;
4759 }
2cd2fac8
RD
4760 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4761#endif
70551f47 4762}
ab9bc19b
RD
4763{
4764 wxPy_BEGIN_ALLOW_THREADS;
4765 wxStaticText_SetLabel(_arg0,*_arg1);
4766
4767 wxPy_END_ALLOW_THREADS;
4dfaa61e 4768 if (PyErr_Occurred()) return NULL;
ab9bc19b 4769} Py_INCREF(Py_None);
70551f47
RD
4770 _resultobj = Py_None;
4771{
4772 if (_obj1)
4773 delete _arg1;
4774}
4775 return _resultobj;
4776}
4777
65191ae8
RD
4778static void *SwigwxListBoxTowxControlWithItems(void *ptr) {
4779 wxListBox *src;
4780 wxControlWithItems *dest;
4781 src = (wxListBox *) ptr;
4782 dest = (wxControlWithItems *) src;
4783 return (void *) dest;
4784}
4785
70551f47
RD
4786static void *SwigwxListBoxTowxControl(void *ptr) {
4787 wxListBox *src;
4788 wxControl *dest;
4789 src = (wxListBox *) ptr;
4790 dest = (wxControl *) src;
4791 return (void *) dest;
4792}
4793
4794static void *SwigwxListBoxTowxWindow(void *ptr) {
4795 wxListBox *src;
4796 wxWindow *dest;
4797 src = (wxListBox *) ptr;
4798 dest = (wxWindow *) src;
4799 return (void *) dest;
4800}
4801
4802static void *SwigwxListBoxTowxEvtHandler(void *ptr) {
4803 wxListBox *src;
4804 wxEvtHandler *dest;
4805 src = (wxListBox *) ptr;
4806 dest = (wxEvtHandler *) src;
4807 return (void *) dest;
4808}
4809
9df61a29
RD
4810static void *SwigwxListBoxTowxObject(void *ptr) {
4811 wxListBox *src;
4812 wxObject *dest;
4813 src = (wxListBox *) ptr;
4814 dest = (wxObject *) src;
4815 return (void *) dest;
4816}
4817
aa2a5b86
RD
4818#define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4819static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject * _resultobj;
4821 wxListBox * _result;
4822 wxWindow * _arg0;
4823 wxWindowID _arg1;
4824 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4825 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4826 int _arg4;
4827 wxString * _arg5 = (wxString *) NULL;
4828 long _arg6 = (long ) 0;
4829 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
4830 char * _arg8 = (char *) "listBox";
4831 PyObject * _argo0 = 0;
4832 wxPoint temp;
4833 PyObject * _obj2 = 0;
4834 wxSize temp0;
4835 PyObject * _obj3 = 0;
4836 PyObject * _obj5 = 0;
4837 PyObject * _argo7 = 0;
4838 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
4839 char _ptemp[128];
4840
4841 self = self;
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
4843 return NULL;
4844 if (_argo0) {
4845 if (_argo0 == Py_None) { _arg0 = NULL; }
4846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p.");
4848 return NULL;
4849 }
4850 }
4851 if (_obj2)
4852{
4853 _arg2 = &temp;
4854 if (! wxPoint_helper(_obj2, &_arg2))
4855 return NULL;
4856}
4857 if (_obj3)
4858{
4859 _arg3 = &temp0;
4860 if (! wxSize_helper(_obj3, &_arg3))
4861 return NULL;
4862}
4863 if (_obj5)
4864{
4865 _arg5 = wxString_LIST_helper(_obj5);
4866 if (_arg5 == NULL) {
4867 return NULL;
4868 }
4869}
4870 if (_argo7) {
4871 if (_argo7 == Py_None) { _arg7 = NULL; }
4872 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
4873 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p.");
4874 return NULL;
4875 }
4876 }
4877{
4878 if (_obj5) {
4879 _arg4 = PyList_Size(_obj5);
4880 }
4881 else {
4882 _arg4 = 0;
4883 }
4884}
4885{
4886 wxPy_BEGIN_ALLOW_THREADS;
4887 _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
4888
4889 wxPy_END_ALLOW_THREADS;
4890 if (PyErr_Occurred()) return NULL;
4891} if (_result) {
4892 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4893 _resultobj = Py_BuildValue("s",_ptemp);
4894 } else {
4895 Py_INCREF(Py_None);
4896 _resultobj = Py_None;
4897 }
4898{
4899 delete [] _arg5;
4900}
4901 return _resultobj;
4902}
4903
4904#define new_wxPreListBox() (new wxListBox())
4905static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4906 PyObject * _resultobj;
4907 wxListBox * _result;
4908 char *_kwnames[] = { NULL };
4909 char _ptemp[128];
4910
4911 self = self;
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames))
4913 return NULL;
4914{
4915 wxPy_BEGIN_ALLOW_THREADS;
4916 _result = (wxListBox *)new_wxPreListBox();
4917
4918 wxPy_END_ALLOW_THREADS;
4919 if (PyErr_Occurred()) return NULL;
4920} if (_result) {
4921 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4922 _resultobj = Py_BuildValue("s",_ptemp);
4923 } else {
4924 Py_INCREF(Py_None);
4925 _resultobj = Py_None;
4926 }
4927 return _resultobj;
4928}
4929
4930#define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4931static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4932 PyObject * _resultobj;
aa2a5b86
RD
4933 bool _result;
4934 wxListBox * _arg0;
4935 wxWindow * _arg1;
4936 wxWindowID _arg2;
4937 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4938 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4939 int _arg5;
4940 wxString * _arg6 = (wxString *) NULL;
4941 long _arg7 = (long ) 0;
4942 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
4943 char * _arg9 = (char *) "listBox";
2d091820 4944 PyObject * _argo0 = 0;
aa2a5b86 4945 PyObject * _argo1 = 0;
37f6a977 4946 wxPoint temp;
37f6a977 4947 PyObject * _obj3 = 0;
aa2a5b86
RD
4948 wxSize temp0;
4949 PyObject * _obj4 = 0;
4950 PyObject * _obj6 = 0;
4951 PyObject * _argo8 = 0;
4952 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
70551f47
RD
4953
4954 self = self;
aa2a5b86 4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
70551f47 4956 return NULL;
2d091820
RD
4957 if (_argo0) {
4958 if (_argo0 == Py_None) { _arg0 = NULL; }
aa2a5b86
RD
4959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p.");
70551f47
RD
4961 return NULL;
4962 }
4963 }
aa2a5b86
RD
4964 if (_argo1) {
4965 if (_argo1 == Py_None) { _arg1 = NULL; }
4966 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4967 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p.");
4968 return NULL;
4969 }
4970 }
4971 if (_obj3)
37f6a977 4972{
aa2a5b86
RD
4973 _arg3 = &temp;
4974 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 4975 return NULL;
37f6a977 4976}
aa2a5b86 4977 if (_obj4)
37f6a977 4978{
aa2a5b86
RD
4979 _arg4 = &temp0;
4980 if (! wxSize_helper(_obj4, &_arg4))
70551f47 4981 return NULL;
37f6a977 4982}
aa2a5b86 4983 if (_obj6)
70551f47 4984{
aa2a5b86
RD
4985 _arg6 = wxString_LIST_helper(_obj6);
4986 if (_arg6 == NULL) {
70551f47
RD
4987 return NULL;
4988 }
4989}
aa2a5b86
RD
4990 if (_argo8) {
4991 if (_argo8 == Py_None) { _arg8 = NULL; }
4992 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
4993 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p.");
70551f47
RD
4994 return NULL;
4995 }
4996 }
4997{
aa2a5b86
RD
4998 if (_obj6) {
4999 _arg5 = PyList_Size(_obj6);
ab9bc19b
RD
5000 }
5001 else {
aa2a5b86 5002 _arg5 = 0;
ab9bc19b 5003 }
70551f47 5004}
ab9bc19b
RD
5005{
5006 wxPy_BEGIN_ALLOW_THREADS;
aa2a5b86 5007 _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
ab9bc19b
RD
5008
5009 wxPy_END_ALLOW_THREADS;
4dfaa61e 5010 if (PyErr_Occurred()) return NULL;
aa2a5b86 5011} _resultobj = Py_BuildValue("i",_result);
70551f47 5012{
aa2a5b86 5013 delete [] _arg6;
70551f47
RD
5014}
5015 return _resultobj;
5016}
5017
70551f47 5018#define wxListBox_Clear(_swigobj) (_swigobj->Clear())
107e4716 5019static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5020 PyObject * _resultobj;
5021 wxListBox * _arg0;
2d091820 5022 PyObject * _argo0 = 0;
107e4716 5023 char *_kwnames[] = { "self", NULL };
70551f47
RD
5024
5025 self = self;
107e4716 5026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0))
70551f47 5027 return NULL;
2d091820
RD
5028 if (_argo0) {
5029 if (_argo0 == Py_None) { _arg0 = NULL; }
5030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p.");
5032 return NULL;
5033 }
5034 }
ab9bc19b
RD
5035{
5036 wxPy_BEGIN_ALLOW_THREADS;
5037 wxListBox_Clear(_arg0);
5038
5039 wxPy_END_ALLOW_THREADS;
4dfaa61e 5040 if (PyErr_Occurred()) return NULL;
ab9bc19b 5041} Py_INCREF(Py_None);
70551f47
RD
5042 _resultobj = Py_None;
5043 return _resultobj;
5044}
5045
70551f47 5046#define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0))
107e4716 5047static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5048 PyObject * _resultobj;
5049 wxListBox * _arg0;
5050 int _arg1;
2d091820 5051 PyObject * _argo0 = 0;
107e4716 5052 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
5053
5054 self = self;
107e4716 5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1))
70551f47 5056 return NULL;
2d091820
RD
5057 if (_argo0) {
5058 if (_argo0 == Py_None) { _arg0 = NULL; }
5059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p.");
5061 return NULL;
5062 }
5063 }
ab9bc19b
RD
5064{
5065 wxPy_BEGIN_ALLOW_THREADS;
5066 wxListBox_Deselect(_arg0,_arg1);
5067
5068 wxPy_END_ALLOW_THREADS;
4dfaa61e 5069 if (PyErr_Occurred()) return NULL;
ab9bc19b 5070} Py_INCREF(Py_None);
70551f47
RD
5071 _resultobj = Py_None;
5072 return _resultobj;
5073}
5074
ab9bc19b
RD
5075static PyObject * wxListBox_GetSelections(wxListBox *self) {
5076 wxArrayInt lst;
5077 self->GetSelections(lst);
5078 PyObject *tup = PyTuple_New(lst.GetCount());
f6bcfd97 5079 for(size_t i=0; i<lst.GetCount(); i++) {
ab9bc19b
RD
5080 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
5081 }
5082 return tup;
5083 }
107e4716 5084static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
5085 PyObject * _resultobj;
5086 PyObject * _result;
5087 wxListBox * _arg0;
2d091820 5088 PyObject * _argo0 = 0;
107e4716 5089 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
5090
5091 self = self;
107e4716 5092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0))
ab9bc19b 5093 return NULL;
2d091820
RD
5094 if (_argo0) {
5095 if (_argo0 == Py_None) { _arg0 = NULL; }
5096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
ab9bc19b
RD
5097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p.");
5098 return NULL;
5099 }
5100 }
5101{
5102 wxPy_BEGIN_ALLOW_THREADS;
5103 _result = (PyObject *)wxListBox_GetSelections(_arg0);
5104
5105 wxPy_END_ALLOW_THREADS;
4dfaa61e 5106 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
5107}{
5108 _resultobj = _result;
5109}
70551f47
RD
5110 return _resultobj;
5111}
5112
37f6a977
RD
5113#define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
5114static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5115 PyObject * _resultobj;
5116 wxListBox * _arg0;
5117 int _arg1;
5118 wxString * _arg2;
5119 int _arg3;
5120 PyObject * _argo0 = 0;
5121 PyObject * _obj2 = 0;
e02c03a4 5122 char *_kwnames[] = { "self","choices","pos", NULL };
37f6a977
RD
5123
5124 self = self;
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
5126 return NULL;
5127 if (_argo0) {
5128 if (_argo0 == Py_None) { _arg0 = NULL; }
5129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p.");
5131 return NULL;
5132 }
5133 }
5134{
5135 _arg2 = wxString_LIST_helper(_obj2);
5136 if (_arg2 == NULL) {
5137 return NULL;
5138 }
5139}
5140{
5141 if (_obj2) {
5142 _arg1 = PyList_Size(_obj2);
5143 }
5144 else {
5145 _arg1 = 0;
5146 }
5147}
5148{
5149 wxPy_BEGIN_ALLOW_THREADS;
5150 wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
5151
5152 wxPy_END_ALLOW_THREADS;
4dfaa61e 5153 if (PyErr_Occurred()) return NULL;
37f6a977
RD
5154} Py_INCREF(Py_None);
5155 _resultobj = Py_None;
5156{
5157 delete [] _arg2;
5158}
5159 return _resultobj;
5160}
5161
2c8a649d
RD
5162#define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5163static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5164 PyObject * _resultobj;
5165 bool _result;
5166 wxListBox * _arg0;
5167 int _arg1;
5168 PyObject * _argo0 = 0;
5169 char *_kwnames[] = { "self","n", NULL };
5170
5171 self = self;
5172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1))
70551f47 5173 return NULL;
2d091820
RD
5174 if (_argo0) {
5175 if (_argo0 == Py_None) { _arg0 = NULL; }
5176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
2c8a649d 5177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p.");
70551f47
RD
5178 return NULL;
5179 }
5180 }
ab9bc19b
RD
5181{
5182 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 5183 _result = (bool )wxListBox_IsSelected(_arg0,_arg1);
ab9bc19b
RD
5184
5185 wxPy_END_ALLOW_THREADS;
4dfaa61e 5186 if (PyErr_Occurred()) return NULL;
ab9bc19b 5187} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5188 return _resultobj;
5189}
5190
5191#define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0))
107e4716 5192static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5193 PyObject * _resultobj;
5194 bool _result;
5195 wxListBox * _arg0;
5196 int _arg1;
2d091820 5197 PyObject * _argo0 = 0;
107e4716 5198 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
5199
5200 self = self;
107e4716 5201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1))
70551f47 5202 return NULL;
2d091820
RD
5203 if (_argo0) {
5204 if (_argo0 == Py_None) { _arg0 = NULL; }
5205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p.");
5207 return NULL;
5208 }
5209 }
ab9bc19b
RD
5210{
5211 wxPy_BEGIN_ALLOW_THREADS;
5212 _result = (bool )wxListBox_Selected(_arg0,_arg1);
5213
5214 wxPy_END_ALLOW_THREADS;
4dfaa61e 5215 if (PyErr_Occurred()) return NULL;
ab9bc19b 5216} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5217 return _resultobj;
5218}
5219
5220#define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
107e4716 5221static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5222 PyObject * _resultobj;
5223 wxListBox * _arg0;
5224 int _arg1;
5225 wxString * _arg2;
2d091820 5226 PyObject * _argo0 = 0;
70551f47 5227 PyObject * _obj2 = 0;
e02c03a4 5228 char *_kwnames[] = { "self","choices", NULL };
70551f47
RD
5229
5230 self = self;
107e4716 5231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2))
70551f47 5232 return NULL;
2d091820
RD
5233 if (_argo0) {
5234 if (_argo0 == Py_None) { _arg0 = NULL; }
5235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p.");
5237 return NULL;
5238 }
5239 }
5240 if (_obj2)
5241{
5242 _arg2 = wxString_LIST_helper(_obj2);
5243 if (_arg2 == NULL) {
5244 return NULL;
5245 }
5246}
5247{
ab9bc19b
RD
5248 if (_obj2) {
5249 _arg1 = PyList_Size(_obj2);
5250 }
5251 else {
5252 _arg1 = 0;
5253 }
70551f47 5254}
ab9bc19b
RD
5255{
5256 wxPy_BEGIN_ALLOW_THREADS;
5257 wxListBox_Set(_arg0,_arg1,_arg2);
5258
5259 wxPy_END_ALLOW_THREADS;
4dfaa61e 5260 if (PyErr_Occurred()) return NULL;
ab9bc19b 5261} Py_INCREF(Py_None);
70551f47
RD
5262 _resultobj = Py_None;
5263{
5264 delete [] _arg2;
5265}
5266 return _resultobj;
5267}
5268
5269#define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
107e4716 5270static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5271 PyObject * _resultobj;
5272 wxListBox * _arg0;
5273 int _arg1;
2d091820 5274 PyObject * _argo0 = 0;
107e4716 5275 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
5276
5277 self = self;
107e4716 5278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1))
70551f47 5279 return NULL;
2d091820
RD
5280 if (_argo0) {
5281 if (_argo0 == Py_None) { _arg0 = NULL; }
5282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p.");
5284 return NULL;
5285 }
5286 }
ab9bc19b
RD
5287{
5288 wxPy_BEGIN_ALLOW_THREADS;
5289 wxListBox_SetFirstItem(_arg0,_arg1);
5290
5291 wxPy_END_ALLOW_THREADS;
4dfaa61e 5292 if (PyErr_Occurred()) return NULL;
ab9bc19b 5293} Py_INCREF(Py_None);
70551f47
RD
5294 _resultobj = Py_None;
5295 return _resultobj;
5296}
5297
5298#define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
107e4716 5299static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5300 PyObject * _resultobj;
5301 wxListBox * _arg0;
5302 wxString * _arg1;
2d091820 5303 PyObject * _argo0 = 0;
70551f47 5304 PyObject * _obj1 = 0;
107e4716 5305 char *_kwnames[] = { "self","string", NULL };
70551f47
RD
5306
5307 self = self;
107e4716 5308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1))
70551f47 5309 return NULL;
2d091820
RD
5310 if (_argo0) {
5311 if (_argo0 == Py_None) { _arg0 = NULL; }
5312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p.");
5314 return NULL;
5315 }
5316 }
5317{
2cd2fac8
RD
5318#if PYTHON_API_VERSION >= 1009
5319 char* tmpPtr; int tmpSize;
5320 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 5321 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
5322 return NULL;
5323 }
5324 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5325 return NULL;
5326 _arg1 = new wxString(tmpPtr, tmpSize);
5327#else
70551f47
RD
5328 if (!PyString_Check(_obj1)) {
5329 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5330 return NULL;
5331 }
2cd2fac8
RD
5332 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5333#endif
70551f47 5334}
ab9bc19b
RD
5335{
5336 wxPy_BEGIN_ALLOW_THREADS;
5337 wxListBox_SetFirstItemStr(_arg0,*_arg1);
5338
5339 wxPy_END_ALLOW_THREADS;
4dfaa61e 5340 if (PyErr_Occurred()) return NULL;
ab9bc19b 5341} Py_INCREF(Py_None);
70551f47
RD
5342 _resultobj = Py_None;
5343{
5344 if (_obj1)
5345 delete _arg1;
5346}
5347 return _resultobj;
5348}
5349
5350#define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
107e4716 5351static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5352 PyObject * _resultobj;
5353 wxListBox * _arg0;
5354 int _arg1;
2d091820
RD
5355 bool _arg2 = (bool ) TRUE;
5356 PyObject * _argo0 = 0;
5357 int tempbool2 = (int) TRUE;
107e4716 5358 char *_kwnames[] = { "self","n","select", NULL };
70551f47
RD
5359
5360 self = self;
107e4716 5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2))
70551f47 5362 return NULL;
2d091820
RD
5363 if (_argo0) {
5364 if (_argo0 == Py_None) { _arg0 = NULL; }
5365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p.");
5367 return NULL;
5368 }
5369 }
5370 _arg2 = (bool ) tempbool2;
ab9bc19b
RD
5371{
5372 wxPy_BEGIN_ALLOW_THREADS;
5373 wxListBox_SetSelection(_arg0,_arg1,_arg2);
5374
5375 wxPy_END_ALLOW_THREADS;
4dfaa61e 5376 if (PyErr_Occurred()) return NULL;
ab9bc19b 5377} Py_INCREF(Py_None);
70551f47
RD
5378 _resultobj = Py_None;
5379 return _resultobj;
5380}
5381
5382#define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
107e4716 5383static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5384 PyObject * _resultobj;
5385 wxListBox * _arg0;
5386 int _arg1;
5387 wxString * _arg2;
2d091820 5388 PyObject * _argo0 = 0;
70551f47 5389 PyObject * _obj2 = 0;
107e4716 5390 char *_kwnames[] = { "self","n","string", NULL };
70551f47
RD
5391
5392 self = self;
107e4716 5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
70551f47 5394 return NULL;
2d091820
RD
5395 if (_argo0) {
5396 if (_argo0 == Py_None) { _arg0 = NULL; }
5397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p.");
5399 return NULL;
5400 }
5401 }
5402{
2cd2fac8
RD
5403#if PYTHON_API_VERSION >= 1009
5404 char* tmpPtr; int tmpSize;
5405 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 5406 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
5407 return NULL;
5408 }
5409 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5410 return NULL;
5411 _arg2 = new wxString(tmpPtr, tmpSize);
5412#else
70551f47
RD
5413 if (!PyString_Check(_obj2)) {
5414 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5415 return NULL;
5416 }
2cd2fac8
RD
5417 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5418#endif
70551f47 5419}
ab9bc19b
RD
5420{
5421 wxPy_BEGIN_ALLOW_THREADS;
5422 wxListBox_SetString(_arg0,_arg1,*_arg2);
5423
5424 wxPy_END_ALLOW_THREADS;
4dfaa61e 5425 if (PyErr_Occurred()) return NULL;
ab9bc19b 5426} Py_INCREF(Py_None);
70551f47
RD
5427 _resultobj = Py_None;
5428{
5429 if (_obj2)
5430 delete _arg2;
5431}
5432 return _resultobj;
5433}
5434
5435#define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1))
107e4716 5436static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5437 PyObject * _resultobj;
5438 wxListBox * _arg0;
5439 wxString * _arg1;
2d091820
RD
5440 bool _arg2 = (bool ) TRUE;
5441 PyObject * _argo0 = 0;
70551f47 5442 PyObject * _obj1 = 0;
2d091820 5443 int tempbool2 = (int) TRUE;
107e4716 5444 char *_kwnames[] = { "self","string","select", NULL };
70551f47
RD
5445
5446 self = self;
107e4716 5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2))
70551f47 5448 return NULL;
2d091820
RD
5449 if (_argo0) {
5450 if (_argo0 == Py_None) { _arg0 = NULL; }
5451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
70551f47
RD
5452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p.");
5453 return NULL;
5454 }
5455 }
5456{
2cd2fac8
RD
5457#if PYTHON_API_VERSION >= 1009
5458 char* tmpPtr; int tmpSize;
5459 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 5460 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
5461 return NULL;
5462 }
5463 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5464 return NULL;
5465 _arg1 = new wxString(tmpPtr, tmpSize);
5466#else
70551f47
RD
5467 if (!PyString_Check(_obj1)) {
5468 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5469 return NULL;
5470 }
2cd2fac8
RD
5471 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5472#endif
70551f47
RD
5473}
5474 _arg2 = (bool ) tempbool2;
ab9bc19b
RD
5475{
5476 wxPy_BEGIN_ALLOW_THREADS;
5477 wxListBox_SetStringSelection(_arg0,*_arg1,_arg2);
5478
5479 wxPy_END_ALLOW_THREADS;
4dfaa61e 5480 if (PyErr_Occurred()) return NULL;
ab9bc19b 5481} Py_INCREF(Py_None);
70551f47
RD
5482 _resultobj = Py_None;
5483{
5484 if (_obj1)
5485 delete _arg1;
5486}
5487 return _resultobj;
5488}
5489
c95e68d8
RD
5490static void *SwigwxCheckListBoxTowxListBox(void *ptr) {
5491 wxCheckListBox *src;
5492 wxListBox *dest;
5493 src = (wxCheckListBox *) ptr;
5494 dest = (wxListBox *) src;
5495 return (void *) dest;
5496}
5497
65191ae8
RD
5498static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) {
5499 wxCheckListBox *src;
5500 wxControlWithItems *dest;
5501 src = (wxCheckListBox *) ptr;
5502 dest = (wxControlWithItems *) src;
5503 return (void *) dest;
5504}
5505
c95e68d8
RD
5506static void *SwigwxCheckListBoxTowxControl(void *ptr) {
5507 wxCheckListBox *src;
5508 wxControl *dest;
5509 src = (wxCheckListBox *) ptr;
5510 dest = (wxControl *) src;
5511 return (void *) dest;
5512}
5513
5514static void *SwigwxCheckListBoxTowxWindow(void *ptr) {
5515 wxCheckListBox *src;
5516 wxWindow *dest;
5517 src = (wxCheckListBox *) ptr;
5518 dest = (wxWindow *) src;
5519 return (void *) dest;
5520}
5521
5522static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) {
5523 wxCheckListBox *src;
5524 wxEvtHandler *dest;
5525 src = (wxCheckListBox *) ptr;
5526 dest = (wxEvtHandler *) src;
5527 return (void *) dest;
5528}
5529
9df61a29
RD
5530static void *SwigwxCheckListBoxTowxObject(void *ptr) {
5531 wxCheckListBox *src;
5532 wxObject *dest;
5533 src = (wxCheckListBox *) ptr;
5534 dest = (wxObject *) src;
5535 return (void *) dest;
5536}
5537
c95e68d8 5538#define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
107e4716 5539static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5540 PyObject * _resultobj;
5541 wxCheckListBox * _result;
5542 wxWindow * _arg0;
5543 wxWindowID _arg1;
b68dc582
RD
5544 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5545 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2d091820
RD
5546 int _arg4 = (int ) 0;
5547 wxString * _arg5 = (wxString *) NULL;
5548 long _arg6 = (long ) 0;
b68dc582 5549 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
5550 char * _arg8 = (char *) "listBox";
5551 PyObject * _argo0 = 0;
37f6a977
RD
5552 wxPoint temp;
5553 PyObject * _obj2 = 0;
5554 wxSize temp0;
5555 PyObject * _obj3 = 0;
c95e68d8 5556 PyObject * _obj5 = 0;
2d091820 5557 PyObject * _argo7 = 0;
e02c03a4 5558 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
c95e68d8
RD
5559 char _ptemp[128];
5560
5561 self = self;
37f6a977 5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
c95e68d8 5563 return NULL;
2d091820
RD
5564 if (_argo0) {
5565 if (_argo0 == Py_None) { _arg0 = NULL; }
5566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
5567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p.");
5568 return NULL;
5569 }
5570 }
37f6a977
RD
5571 if (_obj2)
5572{
5573 _arg2 = &temp;
5574 if (! wxPoint_helper(_obj2, &_arg2))
c95e68d8 5575 return NULL;
37f6a977
RD
5576}
5577 if (_obj3)
5578{
5579 _arg3 = &temp0;
5580 if (! wxSize_helper(_obj3, &_arg3))
c95e68d8 5581 return NULL;
37f6a977 5582}
c95e68d8
RD
5583 if (_obj5)
5584{
5585 _arg5 = wxString_LIST_helper(_obj5);
5586 if (_arg5 == NULL) {
5587 return NULL;
5588 }
5589}
2d091820
RD
5590 if (_argo7) {
5591 if (_argo7 == Py_None) { _arg7 = NULL; }
5592 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
c95e68d8
RD
5593 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p.");
5594 return NULL;
5595 }
5596 }
5597{
ab9bc19b
RD
5598 if (_obj5) {
5599 _arg4 = PyList_Size(_obj5);
5600 }
5601 else {
5602 _arg4 = 0;
5603 }
c95e68d8 5604}
ab9bc19b
RD
5605{
5606 wxPy_BEGIN_ALLOW_THREADS;
5607 _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
5608
5609 wxPy_END_ALLOW_THREADS;
4dfaa61e 5610 if (PyErr_Occurred()) return NULL;
2d091820
RD
5611} if (_result) {
5612 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5613 _resultobj = Py_BuildValue("s",_ptemp);
5614 } else {
5615 Py_INCREF(Py_None);
5616 _resultobj = Py_None;
5617 }
c95e68d8
RD
5618{
5619 delete [] _arg5;
5620}
5621 return _resultobj;
5622}
5623
aa2a5b86
RD
5624#define new_wxPreCheckListBox() (new wxCheckListBox())
5625static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxCheckListBox * _result;
5628 char *_kwnames[] = { NULL };
5629 char _ptemp[128];
5630
5631 self = self;
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames))
5633 return NULL;
5634{
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 _result = (wxCheckListBox *)new_wxPreCheckListBox();
5637
5638 wxPy_END_ALLOW_THREADS;
5639 if (PyErr_Occurred()) return NULL;
5640} if (_result) {
5641 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5642 _resultobj = Py_BuildValue("s",_ptemp);
5643 } else {
5644 Py_INCREF(Py_None);
5645 _resultobj = Py_None;
5646 }
5647 return _resultobj;
5648}
5649
5650#define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5651static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5652 PyObject * _resultobj;
5653 bool _result;
5654 wxCheckListBox * _arg0;
5655 wxWindow * _arg1;
5656 wxWindowID _arg2;
5657 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5658 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5659 int _arg5 = (int ) 0;
5660 wxString * _arg6 = (wxString *) NULL;
5661 long _arg7 = (long ) 0;
5662 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
5663 char * _arg9 = (char *) "listBox";
5664 PyObject * _argo0 = 0;
5665 PyObject * _argo1 = 0;
5666 wxPoint temp;
5667 PyObject * _obj3 = 0;
5668 wxSize temp0;
5669 PyObject * _obj4 = 0;
5670 PyObject * _obj6 = 0;
5671 PyObject * _argo8 = 0;
5672 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
5673
5674 self = self;
5675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
5676 return NULL;
5677 if (_argo0) {
5678 if (_argo0 == Py_None) { _arg0 = NULL; }
5679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p.");
5681 return NULL;
5682 }
5683 }
5684 if (_argo1) {
5685 if (_argo1 == Py_None) { _arg1 = NULL; }
5686 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5687 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p.");
5688 return NULL;
5689 }
5690 }
5691 if (_obj3)
5692{
5693 _arg3 = &temp;
5694 if (! wxPoint_helper(_obj3, &_arg3))
5695 return NULL;
5696}
5697 if (_obj4)
5698{
5699 _arg4 = &temp0;
5700 if (! wxSize_helper(_obj4, &_arg4))
5701 return NULL;
5702}
5703 if (_obj6)
5704{
5705 _arg6 = wxString_LIST_helper(_obj6);
5706 if (_arg6 == NULL) {
5707 return NULL;
5708 }
5709}
5710 if (_argo8) {
5711 if (_argo8 == Py_None) { _arg8 = NULL; }
5712 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
5713 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p.");
5714 return NULL;
5715 }
5716 }
5717{
5718 if (_obj6) {
5719 _arg5 = PyList_Size(_obj6);
5720 }
5721 else {
5722 _arg5 = 0;
5723 }
5724}
5725{
5726 wxPy_BEGIN_ALLOW_THREADS;
5727 _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
5728
5729 wxPy_END_ALLOW_THREADS;
5730 if (PyErr_Occurred()) return NULL;
5731} _resultobj = Py_BuildValue("i",_result);
5732{
5733 delete [] _arg6;
5734}
5735 return _resultobj;
5736}
5737
c95e68d8 5738#define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
107e4716 5739static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5740 PyObject * _resultobj;
5741 bool _result;
5742 wxCheckListBox * _arg0;
5743 int _arg1;
2d091820 5744 PyObject * _argo0 = 0;
107e4716 5745 char *_kwnames[] = { "self","uiIndex", NULL };
c95e68d8
RD
5746
5747 self = self;
107e4716 5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1))
c95e68d8 5749 return NULL;
2d091820
RD
5750 if (_argo0) {
5751 if (_argo0 == Py_None) { _arg0 = NULL; }
5752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
c95e68d8
RD
5753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p.");
5754 return NULL;
5755 }
5756 }
ab9bc19b
RD
5757{
5758 wxPy_BEGIN_ALLOW_THREADS;
5759 _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1);
5760
5761 wxPy_END_ALLOW_THREADS;
4dfaa61e 5762 if (PyErr_Occurred()) return NULL;
ab9bc19b 5763} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
5764 return _resultobj;
5765}
5766
5767#define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
107e4716 5768static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5769 PyObject * _resultobj;
5770 wxCheckListBox * _arg0;
5771 int _arg1;
d29aba2f 5772 int _arg2 = (int ) TRUE;
2d091820 5773 PyObject * _argo0 = 0;
107e4716 5774 char *_kwnames[] = { "self","uiIndex","bCheck", NULL };
c95e68d8
RD
5775
5776 self = self;
d29aba2f 5777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2))
c95e68d8 5778 return NULL;
2d091820
RD
5779 if (_argo0) {
5780 if (_argo0 == Py_None) { _arg0 = NULL; }
5781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
c95e68d8
RD
5782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p.");
5783 return NULL;
5784 }
5785 }
ab9bc19b
RD
5786{
5787 wxPy_BEGIN_ALLOW_THREADS;
5788 wxCheckListBox_Check(_arg0,_arg1,_arg2);
5789
5790 wxPy_END_ALLOW_THREADS;
4dfaa61e 5791 if (PyErr_Occurred()) return NULL;
ab9bc19b 5792} Py_INCREF(Py_None);
c95e68d8
RD
5793 _resultobj = Py_None;
5794 return _resultobj;
5795}
5796
d29aba2f
RD
5797#define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
5798static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5799 PyObject * _resultobj;
5800 wxCheckListBox * _arg0;
5801 int _arg1;
5802 wxString * _arg2;
5803 int _arg3;
5804 PyObject * _argo0 = 0;
5805 PyObject * _obj2 = 0;
e02c03a4 5806 char *_kwnames[] = { "self","choices","pos", NULL };
d29aba2f
RD
5807
5808 self = self;
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
5810 return NULL;
5811 if (_argo0) {
5812 if (_argo0 == Py_None) { _arg0 = NULL; }
5813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p.");
5815 return NULL;
5816 }
5817 }
5818{
5819 _arg2 = wxString_LIST_helper(_obj2);
5820 if (_arg2 == NULL) {
5821 return NULL;
5822 }
5823}
5824{
5825 if (_obj2) {
5826 _arg1 = PyList_Size(_obj2);
5827 }
5828 else {
5829 _arg1 = 0;
5830 }
5831}
5832{
5833 wxPy_BEGIN_ALLOW_THREADS;
5834 wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
5835
5836 wxPy_END_ALLOW_THREADS;
4dfaa61e 5837 if (PyErr_Occurred()) return NULL;
d29aba2f
RD
5838} Py_INCREF(Py_None);
5839 _resultobj = Py_None;
5840{
5841 delete [] _arg2;
5842}
5843 return _resultobj;
5844}
5845
c95e68d8 5846#define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight())
107e4716 5847static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5848 PyObject * _resultobj;
5849 int _result;
5850 wxCheckListBox * _arg0;
2d091820 5851 PyObject * _argo0 = 0;
107e4716 5852 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
5853
5854 self = self;
107e4716 5855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0))
c95e68d8 5856 return NULL;
2d091820
RD
5857 if (_argo0) {
5858 if (_argo0 == Py_None) { _arg0 = NULL; }
5859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
c95e68d8
RD
5860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p.");
5861 return NULL;
5862 }
5863 }
ab9bc19b
RD
5864{
5865 wxPy_BEGIN_ALLOW_THREADS;
5866 _result = (int )wxCheckListBox_GetItemHeight(_arg0);
5867
5868 wxPy_END_ALLOW_THREADS;
4dfaa61e 5869 if (PyErr_Occurred()) return NULL;
ab9bc19b 5870} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
5871 return _resultobj;
5872}
5873
9d6da64a
RD
5874#define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2))
5875static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject * _resultobj;
5877 wxTextAttr * _result;
5878 wxColour * _arg0 = (wxColour *) &wxNullColour;
5879 wxColour * _arg1 = (wxColour *) &wxNullColour;
5880 wxFont * _arg2 = (wxFont *) &wxNullFont;
5881 wxColour temp;
5882 PyObject * _obj0 = 0;
5883 wxColour temp0;
5884 PyObject * _obj1 = 0;
5885 PyObject * _argo2 = 0;
5886 char *_kwnames[] = { "colText","colBack","font", NULL };
5887 char _ptemp[128];
5888
5889 self = self;
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5891 return NULL;
5892 if (_obj0)
5893{
5894 _arg0 = &temp;
5895 if (! wxColour_helper(_obj0, &_arg0))
5896 return NULL;
5897}
5898 if (_obj1)
5899{
5900 _arg1 = &temp0;
5901 if (! wxColour_helper(_obj1, &_arg1))
5902 return NULL;
5903}
5904 if (_argo2) {
5905 if (_argo2 == Py_None) { _arg2 = NULL; }
5906 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5907 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p.");
5908 return NULL;
5909 }
5910 }
5911{
5912 wxPy_BEGIN_ALLOW_THREADS;
5913 _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2);
5914
5915 wxPy_END_ALLOW_THREADS;
5916 if (PyErr_Occurred()) return NULL;
5917} if (_result) {
5918 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
5919 _resultobj = Py_BuildValue("s",_ptemp);
5920 } else {
5921 Py_INCREF(Py_None);
5922 _resultobj = Py_None;
5923 }
5924 return _resultobj;
5925}
5926
5927#define delete_wxTextAttr(_swigobj) (delete _swigobj)
5928static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject * _resultobj;
5930 wxTextAttr * _arg0;
5931 PyObject * _argo0 = 0;
5932 char *_kwnames[] = { "self", NULL };
5933
5934 self = self;
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0))
5936 return NULL;
5937 if (_argo0) {
5938 if (_argo0 == Py_None) { _arg0 = NULL; }
5939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p.");
5941 return NULL;
5942 }
5943 }
5944{
5945 wxPy_BEGIN_ALLOW_THREADS;
5946 delete_wxTextAttr(_arg0);
5947
5948 wxPy_END_ALLOW_THREADS;
5949 if (PyErr_Occurred()) return NULL;
5950} Py_INCREF(Py_None);
5951 _resultobj = Py_None;
5952 return _resultobj;
5953}
5954
5955#define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5956static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5957 PyObject * _resultobj;
5958 wxTextAttr * _arg0;
5959 wxColour * _arg1;
5960 PyObject * _argo0 = 0;
5961 wxColour temp;
5962 PyObject * _obj1 = 0;
5963 char *_kwnames[] = { "self","colText", NULL };
5964
5965 self = self;
5966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5967 return NULL;
5968 if (_argo0) {
5969 if (_argo0 == Py_None) { _arg0 = NULL; }
5970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p.");
5972 return NULL;
5973 }
5974 }
5975{
5976 _arg1 = &temp;
5977 if (! wxColour_helper(_obj1, &_arg1))
5978 return NULL;
5979}
5980{
5981 wxPy_BEGIN_ALLOW_THREADS;
5982 wxTextAttr_SetTextColour(_arg0,*_arg1);
5983
5984 wxPy_END_ALLOW_THREADS;
5985 if (PyErr_Occurred()) return NULL;
5986} Py_INCREF(Py_None);
5987 _resultobj = Py_None;
5988 return _resultobj;
5989}
5990
5991#define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5992static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5993 PyObject * _resultobj;
5994 wxTextAttr * _arg0;
5995 wxColour * _arg1;
5996 PyObject * _argo0 = 0;
5997 wxColour temp;
5998 PyObject * _obj1 = 0;
5999 char *_kwnames[] = { "self","colBack", NULL };
6000
6001 self = self;
6002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
6003 return NULL;
6004 if (_argo0) {
6005 if (_argo0 == Py_None) { _arg0 = NULL; }
6006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p.");
6008 return NULL;
6009 }
6010 }
6011{
6012 _arg1 = &temp;
6013 if (! wxColour_helper(_obj1, &_arg1))
6014 return NULL;
6015}
6016{
6017 wxPy_BEGIN_ALLOW_THREADS;
6018 wxTextAttr_SetBackgroundColour(_arg0,*_arg1);
6019
6020 wxPy_END_ALLOW_THREADS;
6021 if (PyErr_Occurred()) return NULL;
6022} Py_INCREF(Py_None);
6023 _resultobj = Py_None;
6024 return _resultobj;
6025}
6026
6027#define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6028static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject * _resultobj;
6030 wxTextAttr * _arg0;
6031 wxFont * _arg1;
6032 PyObject * _argo0 = 0;
6033 PyObject * _argo1 = 0;
6034 char *_kwnames[] = { "self","font", NULL };
6035
6036 self = self;
6037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1))
6038 return NULL;
6039 if (_argo0) {
6040 if (_argo0 == Py_None) { _arg0 = NULL; }
6041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p.");
6043 return NULL;
6044 }
6045 }
6046 if (_argo1) {
6047 if (_argo1 == Py_None) { _arg1 = NULL; }
6048 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
6049 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p.");
6050 return NULL;
6051 }
6052 }
6053{
6054 wxPy_BEGIN_ALLOW_THREADS;
6055 wxTextAttr_SetFont(_arg0,*_arg1);
6056
6057 wxPy_END_ALLOW_THREADS;
6058 if (PyErr_Occurred()) return NULL;
6059} Py_INCREF(Py_None);
6060 _resultobj = Py_None;
6061 return _resultobj;
6062}
6063
6064#define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
6065static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject * _resultobj;
6067 bool _result;
6068 wxTextAttr * _arg0;
6069 PyObject * _argo0 = 0;
6070 char *_kwnames[] = { "self", NULL };
6071
6072 self = self;
6073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0))
6074 return NULL;
6075 if (_argo0) {
6076 if (_argo0 == Py_None) { _arg0 = NULL; }
6077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p.");
6079 return NULL;
6080 }
6081 }
6082{
6083 wxPy_BEGIN_ALLOW_THREADS;
6084 _result = (bool )wxTextAttr_HasTextColour(_arg0);
6085
6086 wxPy_END_ALLOW_THREADS;
6087 if (PyErr_Occurred()) return NULL;
6088} _resultobj = Py_BuildValue("i",_result);
6089 return _resultobj;
6090}
6091
6092#define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
6093static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6094 PyObject * _resultobj;
6095 bool _result;
6096 wxTextAttr * _arg0;
6097 PyObject * _argo0 = 0;
6098 char *_kwnames[] = { "self", NULL };
6099
6100 self = self;
6101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0))
6102 return NULL;
6103 if (_argo0) {
6104 if (_argo0 == Py_None) { _arg0 = NULL; }
6105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p.");
6107 return NULL;
6108 }
6109 }
6110{
6111 wxPy_BEGIN_ALLOW_THREADS;
6112 _result = (bool )wxTextAttr_HasBackgroundColour(_arg0);
6113
6114 wxPy_END_ALLOW_THREADS;
6115 if (PyErr_Occurred()) return NULL;
6116} _resultobj = Py_BuildValue("i",_result);
6117 return _resultobj;
6118}
6119
6120#define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont())
6121static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6122 PyObject * _resultobj;
6123 bool _result;
6124 wxTextAttr * _arg0;
6125 PyObject * _argo0 = 0;
6126 char *_kwnames[] = { "self", NULL };
6127
6128 self = self;
6129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0))
6130 return NULL;
6131 if (_argo0) {
6132 if (_argo0 == Py_None) { _arg0 = NULL; }
6133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p.");
6135 return NULL;
6136 }
6137 }
6138{
6139 wxPy_BEGIN_ALLOW_THREADS;
6140 _result = (bool )wxTextAttr_HasFont(_arg0);
6141
6142 wxPy_END_ALLOW_THREADS;
6143 if (PyErr_Occurred()) return NULL;
6144} _resultobj = Py_BuildValue("i",_result);
6145 return _resultobj;
6146}
6147
6148#define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
6149static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6150 PyObject * _resultobj;
6151 wxColour * _result;
6152 wxTextAttr * _arg0;
6153 PyObject * _argo0 = 0;
6154 char *_kwnames[] = { "self", NULL };
6155 char _ptemp[128];
6156
6157 self = self;
6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0))
6159 return NULL;
6160 if (_argo0) {
6161 if (_argo0 == Py_None) { _arg0 = NULL; }
6162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p.");
6164 return NULL;
6165 }
6166 }
6167{
6168 wxPy_BEGIN_ALLOW_THREADS;
6169 const wxColour & _result_ref = wxTextAttr_GetTextColour(_arg0);
6170 _result = (wxColour *) &_result_ref;
6171
6172 wxPy_END_ALLOW_THREADS;
6173 if (PyErr_Occurred()) return NULL;
6174} if (_result) {
6175 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6176 _resultobj = Py_BuildValue("s",_ptemp);
6177 } else {
6178 Py_INCREF(Py_None);
6179 _resultobj = Py_None;
6180 }
6181 return _resultobj;
6182}
6183
6184#define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
6185static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6186 PyObject * _resultobj;
6187 wxColour * _result;
6188 wxTextAttr * _arg0;
6189 PyObject * _argo0 = 0;
6190 char *_kwnames[] = { "self", NULL };
6191 char _ptemp[128];
6192
6193 self = self;
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0))
6195 return NULL;
6196 if (_argo0) {
6197 if (_argo0 == Py_None) { _arg0 = NULL; }
6198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p.");
6200 return NULL;
6201 }
6202 }
6203{
6204 wxPy_BEGIN_ALLOW_THREADS;
6205 const wxColour & _result_ref = wxTextAttr_GetBackgroundColour(_arg0);
6206 _result = (wxColour *) &_result_ref;
6207
6208 wxPy_END_ALLOW_THREADS;
6209 if (PyErr_Occurred()) return NULL;
6210} if (_result) {
6211 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6212 _resultobj = Py_BuildValue("s",_ptemp);
6213 } else {
6214 Py_INCREF(Py_None);
6215 _resultobj = Py_None;
6216 }
6217 return _resultobj;
6218}
6219
6220#define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont())
6221static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject * _resultobj;
6223 wxFont * _result;
6224 wxTextAttr * _arg0;
6225 PyObject * _argo0 = 0;
6226 char *_kwnames[] = { "self", NULL };
6227 char _ptemp[128];
6228
6229 self = self;
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0))
6231 return NULL;
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p.");
6236 return NULL;
6237 }
6238 }
6239{
6240 wxPy_BEGIN_ALLOW_THREADS;
6241 const wxFont & _result_ref = wxTextAttr_GetFont(_arg0);
6242 _result = (wxFont *) &_result_ref;
6243
6244 wxPy_END_ALLOW_THREADS;
6245 if (PyErr_Occurred()) return NULL;
6246} if (_result) {
6247 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
6248 _resultobj = Py_BuildValue("s",_ptemp);
6249 } else {
6250 Py_INCREF(Py_None);
6251 _resultobj = Py_None;
6252 }
6253 return _resultobj;
6254}
6255
a57d56d6
RD
6256#define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault())
6257static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject * _resultobj;
6259 bool _result;
6260 wxTextAttr * _arg0;
6261 PyObject * _argo0 = 0;
6262 char *_kwnames[] = { "self", NULL };
6263
6264 self = self;
6265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0))
6266 return NULL;
6267 if (_argo0) {
6268 if (_argo0 == Py_None) { _arg0 = NULL; }
6269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p.");
6271 return NULL;
6272 }
6273 }
6274{
6275 wxPy_BEGIN_ALLOW_THREADS;
6276 _result = (bool )wxTextAttr_IsDefault(_arg0);
6277
6278 wxPy_END_ALLOW_THREADS;
6279 if (PyErr_Occurred()) return NULL;
6280} _resultobj = Py_BuildValue("i",_result);
6281 return _resultobj;
6282}
6283
7a9b33db
RD
6284static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
6285 PyObject * _resultobj;
6286 wxTextAttr * _result;
6287 wxTextAttr * _arg0;
6288 wxTextAttr * _arg1;
6289 wxTextCtrl * _arg2;
6290 PyObject * _argo0 = 0;
6291 PyObject * _argo1 = 0;
6292 PyObject * _argo2 = 0;
6293 char *_kwnames[] = { "attr","attrDef","text", NULL };
6294 char _ptemp[128];
6295
6296 self = self;
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2))
6298 return NULL;
6299 if (_argo0) {
6300 if (_argo0 == Py_None) { _arg0 = NULL; }
6301 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
6303 return NULL;
6304 }
6305 }
6306 if (_argo1) {
6307 if (_argo1 == Py_None) { _arg1 = NULL; }
6308 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
6309 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
6310 return NULL;
6311 }
6312 }
6313 if (_argo2) {
6314 if (_argo2 == Py_None) { _arg2 = NULL; }
6315 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) {
6316 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p.");
6317 return NULL;
6318 }
6319 }
6320{
6321 wxPy_BEGIN_ALLOW_THREADS;
6322 _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2));
6323
6324 wxPy_END_ALLOW_THREADS;
6325 if (PyErr_Occurred()) return NULL;
6326} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p");
6327 _resultobj = Py_BuildValue("s",_ptemp);
6328 return _resultobj;
6329}
6330
70551f47
RD
6331static void *SwigwxTextCtrlTowxControl(void *ptr) {
6332 wxTextCtrl *src;
6333 wxControl *dest;
6334 src = (wxTextCtrl *) ptr;
6335 dest = (wxControl *) src;
6336 return (void *) dest;
6337}
6338
6339static void *SwigwxTextCtrlTowxWindow(void *ptr) {
6340 wxTextCtrl *src;
6341 wxWindow *dest;
6342 src = (wxTextCtrl *) ptr;
6343 dest = (wxWindow *) src;
6344 return (void *) dest;
6345}
6346
6347static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) {
6348 wxTextCtrl *src;
6349 wxEvtHandler *dest;
6350 src = (wxTextCtrl *) ptr;
6351 dest = (wxEvtHandler *) src;
6352 return (void *) dest;
6353}
6354
9df61a29
RD
6355static void *SwigwxTextCtrlTowxObject(void *ptr) {
6356 wxTextCtrl *src;
6357 wxObject *dest;
6358 src = (wxTextCtrl *) ptr;
6359 dest = (wxObject *) src;
6360 return (void *) dest;
6361}
6362
70551f47 6363#define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 6364static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6365 PyObject * _resultobj;
6366 wxTextCtrl * _result;
6367 wxWindow * _arg0;
6368 wxWindowID _arg1;
2d091820 6369 char * _arg2 = (char *) "";
b68dc582
RD
6370 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6371 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 6372 long _arg5 = (long ) 0;
b68dc582 6373 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
6374 char * _arg7 = (char *) "text";
6375 PyObject * _argo0 = 0;
37f6a977
RD
6376 wxPoint temp;
6377 PyObject * _obj3 = 0;
6378 wxSize temp0;
6379 PyObject * _obj4 = 0;
2d091820 6380 PyObject * _argo6 = 0;
107e4716 6381 char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL };
70551f47
RD
6382 char _ptemp[128];
6383
6384 self = self;
37f6a977 6385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 6386 return NULL;
2d091820
RD
6387 if (_argo0) {
6388 if (_argo0 == Py_None) { _arg0 = NULL; }
6389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
6390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p.");
6391 return NULL;
6392 }
6393 }
37f6a977
RD
6394 if (_obj3)
6395{
6396 _arg3 = &temp;
6397 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 6398 return NULL;
37f6a977
RD
6399}
6400 if (_obj4)
6401{
6402 _arg4 = &temp0;
6403 if (! wxSize_helper(_obj4, &_arg4))
70551f47 6404 return NULL;
37f6a977 6405}
2d091820
RD
6406 if (_argo6) {
6407 if (_argo6 == Py_None) { _arg6 = NULL; }
6408 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
70551f47
RD
6409 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p.");
6410 return NULL;
6411 }
6412 }
ab9bc19b
RD
6413{
6414 wxPy_BEGIN_ALLOW_THREADS;
aa2a5b86
RD
6415 _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6416
6417 wxPy_END_ALLOW_THREADS;
6418 if (PyErr_Occurred()) return NULL;
6419} if (_result) {
6420 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
6421 _resultobj = Py_BuildValue("s",_ptemp);
6422 } else {
6423 Py_INCREF(Py_None);
6424 _resultobj = Py_None;
6425 }
6426 return _resultobj;
6427}
6428
6429#define new_wxPreTextCtrl() (new wxTextCtrl())
6430static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject * _resultobj;
6432 wxTextCtrl * _result;
6433 char *_kwnames[] = { NULL };
6434 char _ptemp[128];
6435
6436 self = self;
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames))
6438 return NULL;
6439{
6440 wxPy_BEGIN_ALLOW_THREADS;
6441 _result = (wxTextCtrl *)new_wxPreTextCtrl();
6442
6443 wxPy_END_ALLOW_THREADS;
6444 if (PyErr_Occurred()) return NULL;
6445} if (_result) {
6446 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
6447 _resultobj = Py_BuildValue("s",_ptemp);
6448 } else {
6449 Py_INCREF(Py_None);
6450 _resultobj = Py_None;
6451 }
6452 return _resultobj;
6453}
6454
6455#define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
6456static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject * _resultobj;
6458 bool _result;
6459 wxTextCtrl * _arg0;
6460 wxWindow * _arg1;
6461 wxWindowID _arg2;
6462 char * _arg3 = (char *) "";
6463 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
6464 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
6465 long _arg6 = (long ) 0;
6466 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
6467 char * _arg8 = (char *) "text";
6468 PyObject * _argo0 = 0;
6469 PyObject * _argo1 = 0;
6470 wxPoint temp;
6471 PyObject * _obj4 = 0;
6472 wxSize temp0;
6473 PyObject * _obj5 = 0;
6474 PyObject * _argo7 = 0;
6475 char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL };
6476
6477 self = self;
6478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
6479 return NULL;
6480 if (_argo0) {
6481 if (_argo0 == Py_None) { _arg0 = NULL; }
6482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p.");
6484 return NULL;
6485 }
6486 }
6487 if (_argo1) {
6488 if (_argo1 == Py_None) { _arg1 = NULL; }
6489 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6490 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p.");
6491 return NULL;
6492 }
6493 }
6494 if (_obj4)
6495{
6496 _arg4 = &temp;
6497 if (! wxPoint_helper(_obj4, &_arg4))
6498 return NULL;
6499}
6500 if (_obj5)
6501{
6502 _arg5 = &temp0;
6503 if (! wxSize_helper(_obj5, &_arg5))
6504 return NULL;
6505}
6506 if (_argo7) {
6507 if (_argo7 == Py_None) { _arg7 = NULL; }
6508 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
6509 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p.");
6510 return NULL;
6511 }
6512 }
6513{
6514 wxPy_BEGIN_ALLOW_THREADS;
6515 _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
ab9bc19b
RD
6516
6517 wxPy_END_ALLOW_THREADS;
4dfaa61e 6518 if (PyErr_Occurred()) return NULL;
aa2a5b86 6519} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6520 return _resultobj;
6521}
6522
a57d56d6
RD
6523#define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue())
6524static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6525 PyObject * _resultobj;
a57d56d6 6526 wxString * _result;
70551f47 6527 wxTextCtrl * _arg0;
2d091820 6528 PyObject * _argo0 = 0;
107e4716 6529 char *_kwnames[] = { "self", NULL };
70551f47
RD
6530
6531 self = self;
a57d56d6 6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0))
70551f47 6533 return NULL;
2d091820
RD
6534 if (_argo0) {
6535 if (_argo0 == Py_None) { _arg0 = NULL; }
6536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p.");
70551f47
RD
6538 return NULL;
6539 }
6540 }
ab9bc19b
RD
6541{
6542 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6543 _result = new wxString (wxTextCtrl_GetValue(_arg0));
ab9bc19b
RD
6544
6545 wxPy_END_ALLOW_THREADS;
4dfaa61e 6546 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6547}{
6548 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6549}
6550{
6551 delete _result;
6552}
70551f47
RD
6553 return _resultobj;
6554}
6555
a57d56d6
RD
6556#define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
6557static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6558 PyObject * _resultobj;
6559 wxTextCtrl * _arg0;
a57d56d6 6560 wxString * _arg1;
2d091820 6561 PyObject * _argo0 = 0;
a57d56d6
RD
6562 PyObject * _obj1 = 0;
6563 char *_kwnames[] = { "self","value", NULL };
70551f47
RD
6564
6565 self = self;
a57d56d6 6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1))
70551f47 6567 return NULL;
2d091820
RD
6568 if (_argo0) {
6569 if (_argo0 == Py_None) { _arg0 = NULL; }
6570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p.");
70551f47
RD
6572 return NULL;
6573 }
6574 }
a57d56d6
RD
6575{
6576#if PYTHON_API_VERSION >= 1009
6577 char* tmpPtr; int tmpSize;
6578 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6579 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6580 return NULL;
6581 }
6582 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6583 return NULL;
6584 _arg1 = new wxString(tmpPtr, tmpSize);
6585#else
6586 if (!PyString_Check(_obj1)) {
6587 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6588 return NULL;
6589 }
6590 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6591#endif
6592}
ab9bc19b
RD
6593{
6594 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6595 wxTextCtrl_SetValue(_arg0,*_arg1);
ab9bc19b
RD
6596
6597 wxPy_END_ALLOW_THREADS;
4dfaa61e 6598 if (PyErr_Occurred()) return NULL;
ab9bc19b 6599} Py_INCREF(Py_None);
70551f47 6600 _resultobj = Py_None;
a57d56d6
RD
6601{
6602 if (_obj1)
6603 delete _arg1;
6604}
70551f47
RD
6605 return _resultobj;
6606}
6607
a57d56d6
RD
6608#define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0))
6609static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6610 PyObject * _resultobj;
a57d56d6 6611 int _result;
70551f47 6612 wxTextCtrl * _arg0;
a57d56d6 6613 long _arg1;
2d091820 6614 PyObject * _argo0 = 0;
a57d56d6 6615 char *_kwnames[] = { "self","lineNo", NULL };
70551f47
RD
6616
6617 self = self;
a57d56d6 6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1))
70551f47 6619 return NULL;
2d091820
RD
6620 if (_argo0) {
6621 if (_argo0 == Py_None) { _arg0 = NULL; }
6622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p.");
70551f47
RD
6624 return NULL;
6625 }
6626 }
ab9bc19b
RD
6627{
6628 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6629 _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1);
ab9bc19b
RD
6630
6631 wxPy_END_ALLOW_THREADS;
4dfaa61e 6632 if (PyErr_Occurred()) return NULL;
a57d56d6 6633} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6634 return _resultobj;
6635}
6636
a57d56d6
RD
6637#define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0))
6638static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6639 PyObject * _resultobj;
a57d56d6 6640 wxString * _result;
70551f47 6641 wxTextCtrl * _arg0;
a57d56d6 6642 long _arg1;
2d091820 6643 PyObject * _argo0 = 0;
a57d56d6 6644 char *_kwnames[] = { "self","lineNo", NULL };
70551f47
RD
6645
6646 self = self;
a57d56d6 6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1))
70551f47 6648 return NULL;
2d091820
RD
6649 if (_argo0) {
6650 if (_argo0 == Py_None) { _arg0 = NULL; }
6651 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6652 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p.");
70551f47
RD
6653 return NULL;
6654 }
6655 }
ab9bc19b
RD
6656{
6657 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6658 _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1));
ab9bc19b
RD
6659
6660 wxPy_END_ALLOW_THREADS;
4dfaa61e 6661 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6662}{
6663 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6664}
6665{
6666 delete _result;
6667}
70551f47
RD
6668 return _resultobj;
6669}
6670
a57d56d6
RD
6671#define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines())
6672static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6673 PyObject * _resultobj;
a57d56d6 6674 int _result;
70551f47 6675 wxTextCtrl * _arg0;
2d091820 6676 PyObject * _argo0 = 0;
107e4716 6677 char *_kwnames[] = { "self", NULL };
70551f47
RD
6678
6679 self = self;
a57d56d6 6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0))
70551f47 6681 return NULL;
2d091820
RD
6682 if (_argo0) {
6683 if (_argo0 == Py_None) { _arg0 = NULL; }
6684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p.");
70551f47
RD
6686 return NULL;
6687 }
6688 }
ab9bc19b
RD
6689{
6690 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6691 _result = (int )wxTextCtrl_GetNumberOfLines(_arg0);
ab9bc19b
RD
6692
6693 wxPy_END_ALLOW_THREADS;
4dfaa61e 6694 if (PyErr_Occurred()) return NULL;
a57d56d6 6695} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6696 return _resultobj;
6697}
6698
a57d56d6
RD
6699#define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified())
6700static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6701 PyObject * _resultobj;
a57d56d6 6702 bool _result;
70551f47 6703 wxTextCtrl * _arg0;
2d091820 6704 PyObject * _argo0 = 0;
107e4716 6705 char *_kwnames[] = { "self", NULL };
70551f47
RD
6706
6707 self = self;
a57d56d6 6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0))
70551f47 6709 return NULL;
2d091820
RD
6710 if (_argo0) {
6711 if (_argo0 == Py_None) { _arg0 = NULL; }
6712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p.");
70551f47
RD
6714 return NULL;
6715 }
6716 }
ab9bc19b
RD
6717{
6718 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6719 _result = (bool )wxTextCtrl_IsModified(_arg0);
ab9bc19b
RD
6720
6721 wxPy_END_ALLOW_THREADS;
4dfaa61e 6722 if (PyErr_Occurred()) return NULL;
a57d56d6 6723} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6724 return _resultobj;
6725}
6726
a57d56d6
RD
6727#define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable())
6728static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
faf3cb35 6729 PyObject * _resultobj;
a57d56d6 6730 bool _result;
faf3cb35 6731 wxTextCtrl * _arg0;
2d091820 6732 PyObject * _argo0 = 0;
a57d56d6 6733 char *_kwnames[] = { "self", NULL };
faf3cb35
RD
6734
6735 self = self;
a57d56d6 6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0))
faf3cb35 6737 return NULL;
2d091820
RD
6738 if (_argo0) {
6739 if (_argo0 == Py_None) { _arg0 = NULL; }
6740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p.");
faf3cb35
RD
6742 return NULL;
6743 }
6744 }
ab9bc19b
RD
6745{
6746 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6747 _result = (bool )wxTextCtrl_IsEditable(_arg0);
ab9bc19b
RD
6748
6749 wxPy_END_ALLOW_THREADS;
4dfaa61e 6750 if (PyErr_Occurred()) return NULL;
ab9bc19b 6751} _resultobj = Py_BuildValue("i",_result);
faf3cb35
RD
6752 return _resultobj;
6753}
6754
a57d56d6
RD
6755#define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1))
6756static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
faf3cb35 6757 PyObject * _resultobj;
faf3cb35 6758 wxTextCtrl * _arg0;
a57d56d6
RD
6759 long * _arg1;
6760 long temp;
6761 long * _arg2;
6762 long temp0;
2d091820 6763 PyObject * _argo0 = 0;
a57d56d6 6764 char *_kwnames[] = { "self", NULL };
faf3cb35
RD
6765
6766 self = self;
a57d56d6
RD
6767{
6768 _arg1 = &temp;
6769}
6770{
6771 _arg2 = &temp0;
6772}
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0))
faf3cb35 6774 return NULL;
2d091820
RD
6775 if (_argo0) {
6776 if (_argo0 == Py_None) { _arg0 = NULL; }
6777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p.");
faf3cb35
RD
6779 return NULL;
6780 }
6781 }
faf3cb35 6782{
ab9bc19b 6783 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6784 wxTextCtrl_GetSelection(_arg0,_arg1,_arg2);
ab9bc19b
RD
6785
6786 wxPy_END_ALLOW_THREADS;
4dfaa61e 6787 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6788} Py_INCREF(Py_None);
6789 _resultobj = Py_None;
6790{
6791 PyObject *o;
6792 o = PyInt_FromLong((long) (*_arg1));
6793 _resultobj = t_output_helper(_resultobj, o);
faf3cb35
RD
6794}
6795{
a57d56d6
RD
6796 PyObject *o;
6797 o = PyInt_FromLong((long) (*_arg2));
6798 _resultobj = t_output_helper(_resultobj, o);
faf3cb35
RD
6799}
6800 return _resultobj;
6801}
6802
93283355
RD
6803#define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
6804static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6805 PyObject * _resultobj;
6806 wxString * _result;
6807 wxTextCtrl * _arg0;
6808 PyObject * _argo0 = 0;
6809 char *_kwnames[] = { "self", NULL };
6810
6811 self = self;
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0))
6813 return NULL;
6814 if (_argo0) {
6815 if (_argo0 == Py_None) { _arg0 = NULL; }
6816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p.");
6818 return NULL;
6819 }
6820 }
6821{
6822 wxPy_BEGIN_ALLOW_THREADS;
6823 _result = new wxString (wxTextCtrl_GetStringSelection(_arg0));
6824
6825 wxPy_END_ALLOW_THREADS;
6826 if (PyErr_Occurred()) return NULL;
6827}{
6828 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6829}
6830{
6831 delete _result;
6832}
6833 return _resultobj;
6834}
6835
a57d56d6
RD
6836#define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear())
6837static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
faf3cb35 6838 PyObject * _resultobj;
faf3cb35 6839 wxTextCtrl * _arg0;
2d091820 6840 PyObject * _argo0 = 0;
107e4716 6841 char *_kwnames[] = { "self", NULL };
faf3cb35
RD
6842
6843 self = self;
a57d56d6 6844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0))
faf3cb35 6845 return NULL;
2d091820
RD
6846 if (_argo0) {
6847 if (_argo0 == Py_None) { _arg0 = NULL; }
6848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p.");
faf3cb35
RD
6850 return NULL;
6851 }
6852 }
ab9bc19b
RD
6853{
6854 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6855 wxTextCtrl_Clear(_arg0);
ab9bc19b
RD
6856
6857 wxPy_END_ALLOW_THREADS;
4dfaa61e 6858 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6859} Py_INCREF(Py_None);
6860 _resultobj = Py_None;
faf3cb35
RD
6861 return _resultobj;
6862}
6863
a57d56d6
RD
6864#define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
6865static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6866 PyObject * _resultobj;
70551f47 6867 wxTextCtrl * _arg0;
a57d56d6
RD
6868 long _arg1;
6869 long _arg2;
6870 wxString * _arg3;
2d091820 6871 PyObject * _argo0 = 0;
a57d56d6
RD
6872 PyObject * _obj3 = 0;
6873 char *_kwnames[] = { "self","from","to","value", NULL };
70551f47
RD
6874
6875 self = self;
a57d56d6 6876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
70551f47 6877 return NULL;
2d091820
RD
6878 if (_argo0) {
6879 if (_argo0 == Py_None) { _arg0 = NULL; }
6880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p.");
70551f47
RD
6882 return NULL;
6883 }
6884 }
a57d56d6
RD
6885{
6886#if PYTHON_API_VERSION >= 1009
6887 char* tmpPtr; int tmpSize;
6888 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
6889 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6890 return NULL;
6891 }
6892 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
6893 return NULL;
6894 _arg3 = new wxString(tmpPtr, tmpSize);
6895#else
6896 if (!PyString_Check(_obj3)) {
6897 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6898 return NULL;
6899 }
6900 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
6901#endif
6902}
70551f47 6903{
ab9bc19b 6904 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6905 wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3);
ab9bc19b
RD
6906
6907 wxPy_END_ALLOW_THREADS;
4dfaa61e 6908 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6909} Py_INCREF(Py_None);
6910 _resultobj = Py_None;
70551f47 6911{
a57d56d6
RD
6912 if (_obj3)
6913 delete _arg3;
70551f47
RD
6914}
6915 return _resultobj;
6916}
6917
a57d56d6
RD
6918#define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
6919static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
6920 PyObject * _resultobj;
70551f47 6921 wxTextCtrl * _arg0;
a57d56d6
RD
6922 long _arg1;
6923 long _arg2;
2d091820 6924 PyObject * _argo0 = 0;
a57d56d6 6925 char *_kwnames[] = { "self","from","to", NULL };
70551f47
RD
6926
6927 self = self;
a57d56d6 6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6929 return NULL;
2d091820
RD
6930 if (_argo0) {
6931 if (_argo0 == Py_None) { _arg0 = NULL; }
6932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 6933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p.");
70551f47
RD
6934 return NULL;
6935 }
6936 }
ab9bc19b
RD
6937{
6938 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 6939 wxTextCtrl_Remove(_arg0,_arg1,_arg2);
ab9bc19b
RD
6940
6941 wxPy_END_ALLOW_THREADS;
4dfaa61e 6942 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
6943} Py_INCREF(Py_None);
6944 _resultobj = Py_None;
70551f47
RD
6945 return _resultobj;
6946}
6947
6948#define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
107e4716 6949static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6950 PyObject * _resultobj;
6951 bool _result;
6952 wxTextCtrl * _arg0;
6953 wxString * _arg1;
2d091820 6954 PyObject * _argo0 = 0;
70551f47 6955 PyObject * _obj1 = 0;
a57d56d6 6956 char *_kwnames[] = { "self","file", NULL };
70551f47
RD
6957
6958 self = self;
107e4716 6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
70551f47 6960 return NULL;
2d091820
RD
6961 if (_argo0) {
6962 if (_argo0 == Py_None) { _arg0 = NULL; }
6963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
70551f47
RD
6964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p.");
6965 return NULL;
6966 }
6967 }
6968{
2cd2fac8
RD
6969#if PYTHON_API_VERSION >= 1009
6970 char* tmpPtr; int tmpSize;
6971 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 6972 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
6973 return NULL;
6974 }
6975 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6976 return NULL;
6977 _arg1 = new wxString(tmpPtr, tmpSize);
6978#else
70551f47
RD
6979 if (!PyString_Check(_obj1)) {
6980 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6981 return NULL;
6982 }
2cd2fac8
RD
6983 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6984#endif
70551f47 6985}
ab9bc19b
RD
6986{
6987 wxPy_BEGIN_ALLOW_THREADS;
6988 _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1);
6989
6990 wxPy_END_ALLOW_THREADS;
4dfaa61e 6991 if (PyErr_Occurred()) return NULL;
ab9bc19b 6992} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6993{
6994 if (_obj1)
6995 delete _arg1;
6996}
6997 return _resultobj;
6998}
6999
a57d56d6
RD
7000#define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
7001static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7002 PyObject * _resultobj;
a57d56d6 7003 bool _result;
70551f47 7004 wxTextCtrl * _arg0;
a57d56d6 7005 wxString * _arg1 = (wxString *) &wxEmptyString;
2d091820 7006 PyObject * _argo0 = 0;
a57d56d6
RD
7007 PyObject * _obj1 = 0;
7008 char *_kwnames[] = { "self","file", NULL };
70551f47
RD
7009
7010 self = self;
a57d56d6 7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
70551f47 7012 return NULL;
2d091820
RD
7013 if (_argo0) {
7014 if (_argo0 == Py_None) { _arg0 = NULL; }
7015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p.");
70551f47
RD
7017 return NULL;
7018 }
7019 }
a57d56d6
RD
7020 if (_obj1)
7021{
7022#if PYTHON_API_VERSION >= 1009
7023 char* tmpPtr; int tmpSize;
7024 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7025 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7026 return NULL;
7027 }
7028 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7029 return NULL;
7030 _arg1 = new wxString(tmpPtr, tmpSize);
7031#else
7032 if (!PyString_Check(_obj1)) {
7033 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7034 return NULL;
7035 }
7036 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7037#endif
7038}
ab9bc19b
RD
7039{
7040 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7041 _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1);
ab9bc19b
RD
7042
7043 wxPy_END_ALLOW_THREADS;
4dfaa61e 7044 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7045} _resultobj = Py_BuildValue("i",_result);
7046{
7047 if (_obj1)
7048 delete _arg1;
7049}
70551f47
RD
7050 return _resultobj;
7051}
7052
a57d56d6
RD
7053#define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits())
7054static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
faf3cb35
RD
7055 PyObject * _resultobj;
7056 wxTextCtrl * _arg0;
2d091820 7057 PyObject * _argo0 = 0;
a57d56d6 7058 char *_kwnames[] = { "self", NULL };
faf3cb35
RD
7059
7060 self = self;
a57d56d6 7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0))
faf3cb35 7062 return NULL;
2d091820
RD
7063 if (_argo0) {
7064 if (_argo0 == Py_None) { _arg0 = NULL; }
7065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p.");
faf3cb35
RD
7067 return NULL;
7068 }
7069 }
ab9bc19b
RD
7070{
7071 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7072 wxTextCtrl_DiscardEdits(_arg0);
ab9bc19b
RD
7073
7074 wxPy_END_ALLOW_THREADS;
4dfaa61e 7075 if (PyErr_Occurred()) return NULL;
ab9bc19b 7076} Py_INCREF(Py_None);
faf3cb35 7077 _resultobj = Py_None;
faf3cb35
RD
7078 return _resultobj;
7079}
7080
a57d56d6
RD
7081#define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0))
7082static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7083 PyObject * _resultobj;
7084 wxTextCtrl * _arg0;
a57d56d6 7085 unsigned long _arg1;
2d091820 7086 PyObject * _argo0 = 0;
a57d56d6 7087 char *_kwnames[] = { "self","len", NULL };
70551f47
RD
7088
7089 self = self;
a57d56d6 7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1))
70551f47 7091 return NULL;
2d091820
RD
7092 if (_argo0) {
7093 if (_argo0 == Py_None) { _arg0 = NULL; }
7094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p.");
70551f47
RD
7096 return NULL;
7097 }
7098 }
ab9bc19b
RD
7099{
7100 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7101 wxTextCtrl_SetMaxLength(_arg0,_arg1);
ab9bc19b
RD
7102
7103 wxPy_END_ALLOW_THREADS;
4dfaa61e 7104 if (PyErr_Occurred()) return NULL;
ab9bc19b 7105} Py_INCREF(Py_None);
70551f47
RD
7106 _resultobj = Py_None;
7107 return _resultobj;
7108}
7109
a57d56d6
RD
7110#define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0))
7111static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7112 PyObject * _resultobj;
7113 wxTextCtrl * _arg0;
a57d56d6 7114 wxString * _arg1;
2d091820 7115 PyObject * _argo0 = 0;
a57d56d6
RD
7116 PyObject * _obj1 = 0;
7117 char *_kwnames[] = { "self","text", NULL };
70551f47
RD
7118
7119 self = self;
a57d56d6 7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1))
70551f47 7121 return NULL;
2d091820
RD
7122 if (_argo0) {
7123 if (_argo0 == Py_None) { _arg0 = NULL; }
7124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p.");
70551f47
RD
7126 return NULL;
7127 }
7128 }
7129{
2cd2fac8
RD
7130#if PYTHON_API_VERSION >= 1009
7131 char* tmpPtr; int tmpSize;
a57d56d6 7132 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 7133 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
7134 return NULL;
7135 }
a57d56d6 7136 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2cd2fac8 7137 return NULL;
a57d56d6 7138 _arg1 = new wxString(tmpPtr, tmpSize);
2cd2fac8 7139#else
a57d56d6 7140 if (!PyString_Check(_obj1)) {
70551f47
RD
7141 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7142 return NULL;
7143 }
a57d56d6 7144 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2cd2fac8 7145#endif
70551f47 7146}
ab9bc19b
RD
7147{
7148 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7149 wxTextCtrl_WriteText(_arg0,*_arg1);
ab9bc19b
RD
7150
7151 wxPy_END_ALLOW_THREADS;
4dfaa61e 7152 if (PyErr_Occurred()) return NULL;
ab9bc19b 7153} Py_INCREF(Py_None);
70551f47
RD
7154 _resultobj = Py_None;
7155{
a57d56d6
RD
7156 if (_obj1)
7157 delete _arg1;
70551f47
RD
7158}
7159 return _resultobj;
7160}
7161
a57d56d6
RD
7162#define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0))
7163static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7164 PyObject * _resultobj;
70551f47
RD
7165 wxTextCtrl * _arg0;
7166 wxString * _arg1;
2d091820 7167 PyObject * _argo0 = 0;
70551f47 7168 PyObject * _obj1 = 0;
a57d56d6 7169 char *_kwnames[] = { "self","text", NULL };
70551f47
RD
7170
7171 self = self;
a57d56d6 7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1))
70551f47 7173 return NULL;
2d091820
RD
7174 if (_argo0) {
7175 if (_argo0 == Py_None) { _arg0 = NULL; }
7176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p.");
70551f47
RD
7178 return NULL;
7179 }
7180 }
7181{
2cd2fac8
RD
7182#if PYTHON_API_VERSION >= 1009
7183 char* tmpPtr; int tmpSize;
7184 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 7185 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
7186 return NULL;
7187 }
7188 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7189 return NULL;
7190 _arg1 = new wxString(tmpPtr, tmpSize);
7191#else
70551f47
RD
7192 if (!PyString_Check(_obj1)) {
7193 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7194 return NULL;
7195 }
2cd2fac8
RD
7196 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7197#endif
70551f47 7198}
ab9bc19b
RD
7199{
7200 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7201 wxTextCtrl_AppendText(_arg0,*_arg1);
ab9bc19b
RD
7202
7203 wxPy_END_ALLOW_THREADS;
4dfaa61e 7204 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7205} Py_INCREF(Py_None);
7206 _resultobj = Py_None;
70551f47
RD
7207{
7208 if (_obj1)
7209 delete _arg1;
7210}
7211 return _resultobj;
7212}
7213
a57d56d6
RD
7214#define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2))
7215static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7216 PyObject * _resultobj;
a57d56d6 7217 bool _result;
70551f47 7218 wxTextCtrl * _arg0;
a57d56d6
RD
7219 long _arg1;
7220 long _arg2;
7221 wxTextAttr * _arg3;
2d091820 7222 PyObject * _argo0 = 0;
a57d56d6
RD
7223 PyObject * _argo3 = 0;
7224 char *_kwnames[] = { "self","start","end","style", NULL };
70551f47
RD
7225
7226 self = self;
a57d56d6 7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
70551f47 7228 return NULL;
2d091820
RD
7229 if (_argo0) {
7230 if (_argo0 == Py_None) { _arg0 = NULL; }
7231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6
RD
7232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p.");
7233 return NULL;
7234 }
7235 }
7236 if (_argo3) {
7237 if (_argo3 == Py_None) { _arg3 = NULL; }
7238 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) {
7239 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p.");
70551f47
RD
7240 return NULL;
7241 }
7242 }
ab9bc19b
RD
7243{
7244 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7245 _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3);
ab9bc19b
RD
7246
7247 wxPy_END_ALLOW_THREADS;
4dfaa61e 7248 if (PyErr_Occurred()) return NULL;
a57d56d6 7249} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7250 return _resultobj;
7251}
7252
a57d56d6
RD
7253#define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0))
7254static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7255 PyObject * _resultobj;
a57d56d6 7256 bool _result;
70551f47 7257 wxTextCtrl * _arg0;
a57d56d6 7258 wxTextAttr * _arg1;
2d091820 7259 PyObject * _argo0 = 0;
a57d56d6
RD
7260 PyObject * _argo1 = 0;
7261 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
7262
7263 self = self;
a57d56d6 7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1))
70551f47 7265 return NULL;
2d091820
RD
7266 if (_argo0) {
7267 if (_argo0 == Py_None) { _arg0 = NULL; }
7268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6
RD
7269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p.");
7270 return NULL;
7271 }
7272 }
7273 if (_argo1) {
7274 if (_argo1 == Py_None) { _arg1 = NULL; }
7275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
7276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p.");
70551f47
RD
7277 return NULL;
7278 }
7279 }
ab9bc19b
RD
7280{
7281 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7282 _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1);
ab9bc19b
RD
7283
7284 wxPy_END_ALLOW_THREADS;
4dfaa61e 7285 if (PyErr_Occurred()) return NULL;
a57d56d6 7286} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7287 return _resultobj;
7288}
7289
a57d56d6
RD
7290#define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle())
7291static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7292 PyObject * _resultobj;
a57d56d6 7293 wxTextAttr * _result;
70551f47 7294 wxTextCtrl * _arg0;
2d091820 7295 PyObject * _argo0 = 0;
107e4716 7296 char *_kwnames[] = { "self", NULL };
a57d56d6 7297 char _ptemp[128];
70551f47
RD
7298
7299 self = self;
a57d56d6 7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0))
70551f47 7301 return NULL;
2d091820
RD
7302 if (_argo0) {
7303 if (_argo0 == Py_None) { _arg0 = NULL; }
7304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p.");
70551f47
RD
7306 return NULL;
7307 }
7308 }
ab9bc19b
RD
7309{
7310 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6
RD
7311 const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0);
7312 _result = (wxTextAttr *) &_result_ref;
ab9bc19b
RD
7313
7314 wxPy_END_ALLOW_THREADS;
4dfaa61e 7315 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7316} if (_result) {
7317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
7318 _resultobj = Py_BuildValue("s",_ptemp);
7319 } else {
7320 Py_INCREF(Py_None);
7321 _resultobj = Py_None;
7322 }
70551f47
RD
7323 return _resultobj;
7324}
7325
a57d56d6
RD
7326#define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1))
7327static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7328 PyObject * _resultobj;
a57d56d6 7329 long _result;
70551f47
RD
7330 wxTextCtrl * _arg0;
7331 long _arg1;
7332 long _arg2;
2d091820 7333 PyObject * _argo0 = 0;
a57d56d6 7334 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
7335
7336 self = self;
a57d56d6 7337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7338 return NULL;
2d091820
RD
7339 if (_argo0) {
7340 if (_argo0 == Py_None) { _arg0 = NULL; }
7341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p.");
70551f47
RD
7343 return NULL;
7344 }
7345 }
ab9bc19b
RD
7346{
7347 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7348 _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2);
ab9bc19b
RD
7349
7350 wxPy_END_ALLOW_THREADS;
4dfaa61e 7351 if (PyErr_Occurred()) return NULL;
a57d56d6 7352} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7353 return _resultobj;
7354}
7355
a57d56d6
RD
7356#define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2))
7357static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7358 PyObject * _resultobj;
a57d56d6 7359 bool _result;
70551f47 7360 wxTextCtrl * _arg0;
a57d56d6
RD
7361 long _arg1;
7362 long * _arg2;
7363 long temp;
7364 long * _arg3;
7365 long temp0;
2d091820 7366 PyObject * _argo0 = 0;
a57d56d6 7367 char *_kwnames[] = { "self","pos", NULL };
70551f47
RD
7368
7369 self = self;
a57d56d6
RD
7370{
7371 _arg2 = &temp;
7372}
7373{
7374 _arg3 = &temp0;
7375}
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1))
70551f47 7377 return NULL;
2d091820
RD
7378 if (_argo0) {
7379 if (_argo0 == Py_None) { _arg0 = NULL; }
7380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p.");
70551f47
RD
7382 return NULL;
7383 }
7384 }
ab9bc19b
RD
7385{
7386 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7387 _result = (bool )wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3);
ab9bc19b
RD
7388
7389 wxPy_END_ALLOW_THREADS;
4dfaa61e 7390 if (PyErr_Occurred()) return NULL;
a57d56d6 7391} _resultobj = Py_BuildValue("i",_result);
70551f47 7392{
a57d56d6
RD
7393 PyObject *o;
7394 o = PyInt_FromLong((long) (*_arg2));
7395 _resultobj = t_output_helper(_resultobj, o);
7396}
7397{
7398 PyObject *o;
7399 o = PyInt_FromLong((long) (*_arg3));
7400 _resultobj = t_output_helper(_resultobj, o);
70551f47
RD
7401}
7402 return _resultobj;
7403}
7404
7405#define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0))
107e4716 7406static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7407 PyObject * _resultobj;
7408 wxTextCtrl * _arg0;
7409 long _arg1;
2d091820 7410 PyObject * _argo0 = 0;
107e4716 7411 char *_kwnames[] = { "self","pos", NULL };
70551f47
RD
7412
7413 self = self;
107e4716 7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1))
70551f47 7415 return NULL;
2d091820
RD
7416 if (_argo0) {
7417 if (_argo0 == Py_None) { _arg0 = NULL; }
7418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
70551f47
RD
7419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p.");
7420 return NULL;
7421 }
7422 }
ab9bc19b
RD
7423{
7424 wxPy_BEGIN_ALLOW_THREADS;
7425 wxTextCtrl_ShowPosition(_arg0,_arg1);
7426
7427 wxPy_END_ALLOW_THREADS;
4dfaa61e 7428 if (PyErr_Occurred()) return NULL;
ab9bc19b 7429} Py_INCREF(Py_None);
70551f47
RD
7430 _resultobj = Py_None;
7431 return _resultobj;
7432}
7433
a57d56d6
RD
7434#define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy())
7435static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7436 PyObject * _resultobj;
7437 wxTextCtrl * _arg0;
2d091820 7438 PyObject * _argo0 = 0;
a57d56d6 7439 char *_kwnames[] = { "self", NULL };
70551f47
RD
7440
7441 self = self;
a57d56d6 7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0))
70551f47 7443 return NULL;
2d091820
RD
7444 if (_argo0) {
7445 if (_argo0 == Py_None) { _arg0 = NULL; }
7446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p.");
70551f47
RD
7448 return NULL;
7449 }
7450 }
ab9bc19b
RD
7451{
7452 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7453 wxTextCtrl_Copy(_arg0);
ab9bc19b
RD
7454
7455 wxPy_END_ALLOW_THREADS;
4dfaa61e 7456 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
7457} Py_INCREF(Py_None);
7458 _resultobj = Py_None;
ab9bc19b
RD
7459 return _resultobj;
7460}
7461
a57d56d6
RD
7462#define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut())
7463static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
7464 PyObject * _resultobj;
7465 wxTextCtrl * _arg0;
2d091820 7466 PyObject * _argo0 = 0;
a57d56d6 7467 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
7468
7469 self = self;
a57d56d6 7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0))
ab9bc19b 7471 return NULL;
2d091820
RD
7472 if (_argo0) {
7473 if (_argo0 == Py_None) { _arg0 = NULL; }
7474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p.");
ab9bc19b
RD
7476 return NULL;
7477 }
7478 }
ab9bc19b
RD
7479{
7480 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7481 wxTextCtrl_Cut(_arg0);
ab9bc19b
RD
7482
7483 wxPy_END_ALLOW_THREADS;
4dfaa61e 7484 if (PyErr_Occurred()) return NULL;
ab9bc19b 7485} Py_INCREF(Py_None);
70551f47 7486 _resultobj = Py_None;
70551f47
RD
7487 return _resultobj;
7488}
7489
a57d56d6
RD
7490#define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste())
7491static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
faf3cb35 7492 PyObject * _resultobj;
faf3cb35 7493 wxTextCtrl * _arg0;
2d091820 7494 PyObject * _argo0 = 0;
a57d56d6 7495 char *_kwnames[] = { "self", NULL };
faf3cb35
RD
7496
7497 self = self;
a57d56d6 7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0))
faf3cb35 7499 return NULL;
2d091820
RD
7500 if (_argo0) {
7501 if (_argo0 == Py_None) { _arg0 = NULL; }
7502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p.");
faf3cb35
RD
7504 return NULL;
7505 }
7506 }
ab9bc19b
RD
7507{
7508 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7509 wxTextCtrl_Paste(_arg0);
ab9bc19b
RD
7510
7511 wxPy_END_ALLOW_THREADS;
4dfaa61e 7512 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7513} Py_INCREF(Py_None);
7514 _resultobj = Py_None;
faf3cb35
RD
7515 return _resultobj;
7516}
7517
53920141 7518#define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy())
107e4716 7519static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141
RD
7520 PyObject * _resultobj;
7521 bool _result;
7522 wxTextCtrl * _arg0;
2d091820 7523 PyObject * _argo0 = 0;
107e4716 7524 char *_kwnames[] = { "self", NULL };
53920141
RD
7525
7526 self = self;
107e4716 7527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0))
53920141 7528 return NULL;
2d091820
RD
7529 if (_argo0) {
7530 if (_argo0 == Py_None) { _arg0 = NULL; }
7531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
53920141
RD
7532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p.");
7533 return NULL;
7534 }
7535 }
7536{
7537 wxPy_BEGIN_ALLOW_THREADS;
7538 _result = (bool )wxTextCtrl_CanCopy(_arg0);
7539
7540 wxPy_END_ALLOW_THREADS;
4dfaa61e 7541 if (PyErr_Occurred()) return NULL;
53920141
RD
7542} _resultobj = Py_BuildValue("i",_result);
7543 return _resultobj;
7544}
7545
7546#define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut())
107e4716 7547static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141
RD
7548 PyObject * _resultobj;
7549 bool _result;
7550 wxTextCtrl * _arg0;
2d091820 7551 PyObject * _argo0 = 0;
107e4716 7552 char *_kwnames[] = { "self", NULL };
53920141
RD
7553
7554 self = self;
107e4716 7555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0))
53920141 7556 return NULL;
2d091820
RD
7557 if (_argo0) {
7558 if (_argo0 == Py_None) { _arg0 = NULL; }
7559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
53920141
RD
7560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p.");
7561 return NULL;
7562 }
7563 }
7564{
7565 wxPy_BEGIN_ALLOW_THREADS;
7566 _result = (bool )wxTextCtrl_CanCut(_arg0);
7567
7568 wxPy_END_ALLOW_THREADS;
4dfaa61e 7569 if (PyErr_Occurred()) return NULL;
53920141
RD
7570} _resultobj = Py_BuildValue("i",_result);
7571 return _resultobj;
7572}
7573
7574#define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste())
107e4716 7575static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141
RD
7576 PyObject * _resultobj;
7577 bool _result;
7578 wxTextCtrl * _arg0;
2d091820 7579 PyObject * _argo0 = 0;
107e4716 7580 char *_kwnames[] = { "self", NULL };
53920141
RD
7581
7582 self = self;
107e4716 7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0))
53920141 7584 return NULL;
2d091820
RD
7585 if (_argo0) {
7586 if (_argo0 == Py_None) { _arg0 = NULL; }
7587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
53920141
RD
7588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p.");
7589 return NULL;
7590 }
7591 }
7592{
7593 wxPy_BEGIN_ALLOW_THREADS;
7594 _result = (bool )wxTextCtrl_CanPaste(_arg0);
7595
7596 wxPy_END_ALLOW_THREADS;
4dfaa61e 7597 if (PyErr_Occurred()) return NULL;
53920141
RD
7598} _resultobj = Py_BuildValue("i",_result);
7599 return _resultobj;
7600}
7601
a57d56d6
RD
7602#define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo())
7603static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141 7604 PyObject * _resultobj;
53920141 7605 wxTextCtrl * _arg0;
2d091820 7606 PyObject * _argo0 = 0;
107e4716 7607 char *_kwnames[] = { "self", NULL };
53920141
RD
7608
7609 self = self;
a57d56d6 7610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0))
53920141 7611 return NULL;
2d091820
RD
7612 if (_argo0) {
7613 if (_argo0 == Py_None) { _arg0 = NULL; }
7614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p.");
53920141
RD
7616 return NULL;
7617 }
7618 }
7619{
7620 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7621 wxTextCtrl_Undo(_arg0);
53920141
RD
7622
7623 wxPy_END_ALLOW_THREADS;
4dfaa61e 7624 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7625} Py_INCREF(Py_None);
7626 _resultobj = Py_None;
53920141
RD
7627 return _resultobj;
7628}
7629
a57d56d6
RD
7630#define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo())
7631static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141 7632 PyObject * _resultobj;
53920141 7633 wxTextCtrl * _arg0;
2d091820 7634 PyObject * _argo0 = 0;
107e4716 7635 char *_kwnames[] = { "self", NULL };
53920141
RD
7636
7637 self = self;
a57d56d6 7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0))
53920141 7639 return NULL;
2d091820
RD
7640 if (_argo0) {
7641 if (_argo0 == Py_None) { _arg0 = NULL; }
7642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p.");
53920141
RD
7644 return NULL;
7645 }
7646 }
7647{
7648 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7649 wxTextCtrl_Redo(_arg0);
53920141
RD
7650
7651 wxPy_END_ALLOW_THREADS;
4dfaa61e 7652 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7653} Py_INCREF(Py_None);
7654 _resultobj = Py_None;
53920141
RD
7655 return _resultobj;
7656}
7657
a57d56d6
RD
7658#define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo())
7659static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141 7660 PyObject * _resultobj;
a57d56d6 7661 bool _result;
53920141 7662 wxTextCtrl * _arg0;
2d091820 7663 PyObject * _argo0 = 0;
107e4716 7664 char *_kwnames[] = { "self", NULL };
53920141
RD
7665
7666 self = self;
a57d56d6 7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0))
53920141 7668 return NULL;
2d091820
RD
7669 if (_argo0) {
7670 if (_argo0 == Py_None) { _arg0 = NULL; }
7671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p.");
53920141
RD
7673 return NULL;
7674 }
7675 }
7676{
7677 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7678 _result = (bool )wxTextCtrl_CanUndo(_arg0);
53920141
RD
7679
7680 wxPy_END_ALLOW_THREADS;
4dfaa61e 7681 if (PyErr_Occurred()) return NULL;
a57d56d6 7682} _resultobj = Py_BuildValue("i",_result);
53920141
RD
7683 return _resultobj;
7684}
7685
a57d56d6
RD
7686#define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo())
7687static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
53920141
RD
7688 PyObject * _resultobj;
7689 bool _result;
7690 wxTextCtrl * _arg0;
2d091820 7691 PyObject * _argo0 = 0;
107e4716 7692 char *_kwnames[] = { "self", NULL };
53920141
RD
7693
7694 self = self;
a57d56d6 7695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0))
53920141 7696 return NULL;
2d091820
RD
7697 if (_argo0) {
7698 if (_argo0 == Py_None) { _arg0 = NULL; }
7699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p.");
53920141
RD
7701 return NULL;
7702 }
7703 }
7704{
7705 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7706 _result = (bool )wxTextCtrl_CanRedo(_arg0);
53920141
RD
7707
7708 wxPy_END_ALLOW_THREADS;
4dfaa61e 7709 if (PyErr_Occurred()) return NULL;
53920141
RD
7710} _resultobj = Py_BuildValue("i",_result);
7711 return _resultobj;
7712}
7713
a57d56d6
RD
7714#define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
7715static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4120ef2b
RD
7716 PyObject * _resultobj;
7717 wxTextCtrl * _arg0;
a57d56d6 7718 long _arg1;
4120ef2b 7719 PyObject * _argo0 = 0;
a57d56d6 7720 char *_kwnames[] = { "self","pos", NULL };
4120ef2b
RD
7721
7722 self = self;
a57d56d6 7723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
4120ef2b
RD
7724 return NULL;
7725 if (_argo0) {
7726 if (_argo0 == Py_None) { _arg0 = NULL; }
7727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p.");
4120ef2b
RD
7729 return NULL;
7730 }
7731 }
7732{
7733 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7734 wxTextCtrl_SetInsertionPoint(_arg0,_arg1);
4120ef2b
RD
7735
7736 wxPy_END_ALLOW_THREADS;
4dfaa61e 7737 if (PyErr_Occurred()) return NULL;
4120ef2b
RD
7738} Py_INCREF(Py_None);
7739 _resultobj = Py_None;
7740 return _resultobj;
7741}
7742
a57d56d6
RD
7743#define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
7744static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
4120ef2b
RD
7745 PyObject * _resultobj;
7746 wxTextCtrl * _arg0;
7747 PyObject * _argo0 = 0;
7748 char *_kwnames[] = { "self", NULL };
7749
7750 self = self;
a57d56d6 7751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0))
4120ef2b
RD
7752 return NULL;
7753 if (_argo0) {
7754 if (_argo0 == Py_None) { _arg0 = NULL; }
7755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p.");
4120ef2b
RD
7757 return NULL;
7758 }
7759 }
7760{
7761 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7762 wxTextCtrl_SetInsertionPointEnd(_arg0);
4120ef2b
RD
7763
7764 wxPy_END_ALLOW_THREADS;
4dfaa61e 7765 if (PyErr_Occurred()) return NULL;
4120ef2b
RD
7766} Py_INCREF(Py_None);
7767 _resultobj = Py_None;
7768 return _resultobj;
7769}
7770
a57d56d6
RD
7771#define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
7772static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9d6da64a 7773 PyObject * _resultobj;
a57d56d6 7774 long _result;
9d6da64a 7775 wxTextCtrl * _arg0;
9d6da64a 7776 PyObject * _argo0 = 0;
a57d56d6 7777 char *_kwnames[] = { "self", NULL };
9d6da64a
RD
7778
7779 self = self;
a57d56d6 7780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0))
9d6da64a
RD
7781 return NULL;
7782 if (_argo0) {
7783 if (_argo0 == Py_None) { _arg0 = NULL; }
7784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p.");
9d6da64a
RD
7786 return NULL;
7787 }
7788 }
7789{
7790 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7791 _result = (long )wxTextCtrl_GetInsertionPoint(_arg0);
9d6da64a
RD
7792
7793 wxPy_END_ALLOW_THREADS;
7794 if (PyErr_Occurred()) return NULL;
a57d56d6 7795} _resultobj = Py_BuildValue("l",_result);
9d6da64a
RD
7796 return _resultobj;
7797}
7798
a57d56d6
RD
7799#define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
7800static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9d6da64a 7801 PyObject * _resultobj;
a57d56d6 7802 long _result;
9d6da64a 7803 wxTextCtrl * _arg0;
9d6da64a 7804 PyObject * _argo0 = 0;
a57d56d6 7805 char *_kwnames[] = { "self", NULL };
9d6da64a
RD
7806
7807 self = self;
a57d56d6 7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0))
9d6da64a
RD
7809 return NULL;
7810 if (_argo0) {
7811 if (_argo0 == Py_None) { _arg0 = NULL; }
7812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p.");
9d6da64a
RD
7814 return NULL;
7815 }
7816 }
a57d56d6
RD
7817{
7818 wxPy_BEGIN_ALLOW_THREADS;
7819 _result = (long )wxTextCtrl_GetLastPosition(_arg0);
7820
7821 wxPy_END_ALLOW_THREADS;
7822 if (PyErr_Occurred()) return NULL;
7823} _resultobj = Py_BuildValue("l",_result);
7824 return _resultobj;
7825}
7826
7827#define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
7828static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7829 PyObject * _resultobj;
7830 wxTextCtrl * _arg0;
7831 long _arg1;
7832 long _arg2;
7833 PyObject * _argo0 = 0;
7834 char *_kwnames[] = { "self","from","to", NULL };
7835
7836 self = self;
7837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
7838 return NULL;
7839 if (_argo0) {
7840 if (_argo0 == Py_None) { _arg0 = NULL; }
7841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p.");
9d6da64a
RD
7843 return NULL;
7844 }
7845 }
7846{
7847 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7848 wxTextCtrl_SetSelection(_arg0,_arg1,_arg2);
9d6da64a
RD
7849
7850 wxPy_END_ALLOW_THREADS;
7851 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7852} Py_INCREF(Py_None);
7853 _resultobj = Py_None;
9d6da64a
RD
7854 return _resultobj;
7855}
7856
a57d56d6
RD
7857#define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll())
7858static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9d6da64a 7859 PyObject * _resultobj;
9d6da64a
RD
7860 wxTextCtrl * _arg0;
7861 PyObject * _argo0 = 0;
7862 char *_kwnames[] = { "self", NULL };
9d6da64a
RD
7863
7864 self = self;
a57d56d6 7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0))
9d6da64a
RD
7866 return NULL;
7867 if (_argo0) {
7868 if (_argo0 == Py_None) { _arg0 = NULL; }
7869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p.");
9d6da64a
RD
7871 return NULL;
7872 }
7873 }
7874{
7875 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7876 wxTextCtrl_SelectAll(_arg0);
9d6da64a
RD
7877
7878 wxPy_END_ALLOW_THREADS;
7879 if (PyErr_Occurred()) return NULL;
a57d56d6
RD
7880} Py_INCREF(Py_None);
7881 _resultobj = Py_None;
9d6da64a
RD
7882 return _resultobj;
7883}
7884
a57d56d6
RD
7885#define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
7886static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
aa2a5b86
RD
7887 PyObject * _resultobj;
7888 wxTextCtrl * _arg0;
a57d56d6 7889 bool _arg1;
aa2a5b86 7890 PyObject * _argo0 = 0;
a57d56d6
RD
7891 int tempbool1;
7892 char *_kwnames[] = { "self","editable", NULL };
aa2a5b86
RD
7893
7894 self = self;
a57d56d6 7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1))
aa2a5b86
RD
7896 return NULL;
7897 if (_argo0) {
7898 if (_argo0 == Py_None) { _arg0 = NULL; }
7899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
a57d56d6 7900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p.");
aa2a5b86
RD
7901 return NULL;
7902 }
7903 }
a57d56d6 7904 _arg1 = (bool ) tempbool1;
aa2a5b86
RD
7905{
7906 wxPy_BEGIN_ALLOW_THREADS;
a57d56d6 7907 wxTextCtrl_SetEditable(_arg0,_arg1);
aa2a5b86
RD
7908
7909 wxPy_END_ALLOW_THREADS;
7910 if (PyErr_Occurred()) return NULL;
7911} Py_INCREF(Py_None);
7912 _resultobj = Py_None;
7913 return _resultobj;
7914}
7915
4120ef2b 7916static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) {
9d6da64a 7917 self->AppendText(text);
4120ef2b
RD
7918 }
7919static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
7920 PyObject * _resultobj;
7921 wxTextCtrl * _arg0;
7922 wxString * _arg1;
7923 PyObject * _argo0 = 0;
7924 PyObject * _obj1 = 0;
7925 char *_kwnames[] = { "self","text", NULL };
7926
7927 self = self;
7928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1))
7929 return NULL;
7930 if (_argo0) {
7931 if (_argo0 == Py_None) { _arg0 = NULL; }
7932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p.");
7934 return NULL;
7935 }
7936 }
7937{
2cd2fac8
RD
7938#if PYTHON_API_VERSION >= 1009
7939 char* tmpPtr; int tmpSize;
7940 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 7941 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
7942 return NULL;
7943 }
7944 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7945 return NULL;
7946 _arg1 = new wxString(tmpPtr, tmpSize);
7947#else
4120ef2b
RD
7948 if (!PyString_Check(_obj1)) {
7949 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7950 return NULL;
7951 }
2cd2fac8
RD
7952 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7953#endif
4120ef2b
RD
7954}
7955{
7956 wxPy_BEGIN_ALLOW_THREADS;
7957 wxTextCtrl_write(_arg0,*_arg1);
7958
7959 wxPy_END_ALLOW_THREADS;
4dfaa61e 7960 if (PyErr_Occurred()) return NULL;
4120ef2b
RD
7961} Py_INCREF(Py_None);
7962 _resultobj = Py_None;
7963{
7964 if (_obj1)
7965 delete _arg1;
7966}
7967 return _resultobj;
7968}
7969
7a9b33db
RD
7970static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) {
7971 return self->GetValue().Mid(from, to-from);
7972 }
7973static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
7974 PyObject * _resultobj;
7975 wxString * _result;
7976 wxTextCtrl * _arg0;
7977 long _arg1;
7978 long _arg2;
7979 PyObject * _argo0 = 0;
7980 char *_kwnames[] = { "self","from","to", NULL };
7981
7982 self = self;
7983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2))
7984 return NULL;
7985 if (_argo0) {
7986 if (_argo0 == Py_None) { _arg0 = NULL; }
7987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p.");
7989 return NULL;
7990 }
7991 }
7992{
7993 wxPy_BEGIN_ALLOW_THREADS;
7994 _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2));
7995
7996 wxPy_END_ALLOW_THREADS;
7997 if (PyErr_Occurred()) return NULL;
7998}{
7999 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8000}
8001{
8002 delete _result;
8003}
8004 return _resultobj;
8005}
8006
70551f47
RD
8007static void *SwigwxScrollBarTowxControl(void *ptr) {
8008 wxScrollBar *src;
8009 wxControl *dest;
8010 src = (wxScrollBar *) ptr;
8011 dest = (wxControl *) src;
8012 return (void *) dest;
8013}
8014
8015static void *SwigwxScrollBarTowxWindow(void *ptr) {
8016 wxScrollBar *src;
8017 wxWindow *dest;
8018 src = (wxScrollBar *) ptr;
8019 dest = (wxWindow *) src;
8020 return (void *) dest;
8021}
8022
8023static void *SwigwxScrollBarTowxEvtHandler(void *ptr) {
8024 wxScrollBar *src;
8025 wxEvtHandler *dest;
8026 src = (wxScrollBar *) ptr;
8027 dest = (wxEvtHandler *) src;
8028 return (void *) dest;
8029}
8030
9df61a29
RD
8031static void *SwigwxScrollBarTowxObject(void *ptr) {
8032 wxScrollBar *src;
8033 wxObject *dest;
8034 src = (wxScrollBar *) ptr;
8035 dest = (wxObject *) src;
8036 return (void *) dest;
8037}
8038
70551f47 8039#define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
107e4716 8040static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8041 PyObject * _resultobj;
8042 wxScrollBar * _result;
8043 wxWindow * _arg0;
2d091820 8044 wxWindowID _arg1 = (wxWindowID ) -1;
b68dc582
RD
8045 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
8046 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2d091820 8047 long _arg4 = (long ) wxSB_HORIZONTAL;
b68dc582 8048 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
8049 char * _arg6 = (char *) "scrollBar";
8050 PyObject * _argo0 = 0;
37f6a977
RD
8051 wxPoint temp;
8052 PyObject * _obj2 = 0;
8053 wxSize temp0;
8054 PyObject * _obj3 = 0;
2d091820 8055 PyObject * _argo5 = 0;
107e4716 8056 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
70551f47
RD
8057 char _ptemp[128];
8058
8059 self = self;
37f6a977 8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
70551f47 8061 return NULL;
2d091820
RD
8062 if (_argo0) {
8063 if (_argo0 == Py_None) { _arg0 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p.");
8066 return NULL;
8067 }
8068 }
37f6a977
RD
8069 if (_obj2)
8070{
8071 _arg2 = &temp;
8072 if (! wxPoint_helper(_obj2, &_arg2))
70551f47 8073 return NULL;
37f6a977
RD
8074}
8075 if (_obj3)
8076{
8077 _arg3 = &temp0;
8078 if (! wxSize_helper(_obj3, &_arg3))
70551f47 8079 return NULL;
37f6a977 8080}
2d091820
RD
8081 if (_argo5) {
8082 if (_argo5 == Py_None) { _arg5 = NULL; }
8083 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
70551f47
RD
8084 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p.");
8085 return NULL;
8086 }
8087 }
ab9bc19b
RD
8088{
8089 wxPy_BEGIN_ALLOW_THREADS;
8090 _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
8091
8092 wxPy_END_ALLOW_THREADS;
4dfaa61e 8093 if (PyErr_Occurred()) return NULL;
2d091820
RD
8094} if (_result) {
8095 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
8096 _resultobj = Py_BuildValue("s",_ptemp);
8097 } else {
8098 Py_INCREF(Py_None);
8099 _resultobj = Py_None;
8100 }
70551f47
RD
8101 return _resultobj;
8102}
8103
aa2a5b86
RD
8104#define new_wxPreScrollBar() (new wxScrollBar())
8105static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
8106 PyObject * _resultobj;
8107 wxScrollBar * _result;
8108 char *_kwnames[] = { NULL };
8109 char _ptemp[128];
8110
8111 self = self;
8112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames))
8113 return NULL;
8114{
8115 wxPy_BEGIN_ALLOW_THREADS;
8116 _result = (wxScrollBar *)new_wxPreScrollBar();
8117
8118 wxPy_END_ALLOW_THREADS;
8119 if (PyErr_Occurred()) return NULL;
8120} if (_result) {
8121 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
8122 _resultobj = Py_BuildValue("s",_ptemp);
8123 } else {
8124 Py_INCREF(Py_None);
8125 _resultobj = Py_None;
8126 }
8127 return _resultobj;
8128}
8129
8130#define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8131static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8132 PyObject * _resultobj;
8133 bool _result;
8134 wxScrollBar * _arg0;
8135 wxWindow * _arg1;
8136 wxWindowID _arg2 = (wxWindowID ) -1;
8137 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8138 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8139 long _arg5 = (long ) wxSB_HORIZONTAL;
8140 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
8141 char * _arg7 = (char *) "scrollBar";
8142 PyObject * _argo0 = 0;
8143 PyObject * _argo1 = 0;
8144 wxPoint temp;
8145 PyObject * _obj3 = 0;
8146 wxSize temp0;
8147 PyObject * _obj4 = 0;
8148 PyObject * _argo6 = 0;
8149 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
8150
8151 self = self;
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
8153 return NULL;
8154 if (_argo0) {
8155 if (_argo0 == Py_None) { _arg0 = NULL; }
8156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p.");
8158 return NULL;
8159 }
8160 }
8161 if (_argo1) {
8162 if (_argo1 == Py_None) { _arg1 = NULL; }
8163 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8164 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p.");
8165 return NULL;
8166 }
8167 }
8168 if (_obj3)
8169{
8170 _arg3 = &temp;
8171 if (! wxPoint_helper(_obj3, &_arg3))
8172 return NULL;
8173}
8174 if (_obj4)
8175{
8176 _arg4 = &temp0;
8177 if (! wxSize_helper(_obj4, &_arg4))
8178 return NULL;
8179}
8180 if (_argo6) {
8181 if (_argo6 == Py_None) { _arg6 = NULL; }
8182 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
8183 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p.");
8184 return NULL;
8185 }
8186 }
8187{
8188 wxPy_BEGIN_ALLOW_THREADS;
8189 _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
8190
8191 wxPy_END_ALLOW_THREADS;
8192 if (PyErr_Occurred()) return NULL;
8193} _resultobj = Py_BuildValue("i",_result);
8194 return _resultobj;
8195}
8196
70551f47 8197#define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange())
107e4716 8198static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8199 PyObject * _resultobj;
8200 int _result;
8201 wxScrollBar * _arg0;
2d091820 8202 PyObject * _argo0 = 0;
107e4716 8203 char *_kwnames[] = { "self", NULL };
70551f47
RD
8204
8205 self = self;
107e4716 8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0))
70551f47 8207 return NULL;
2d091820
RD
8208 if (_argo0) {
8209 if (_argo0 == Py_None) { _arg0 = NULL; }
8210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
70551f47
RD
8211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p.");
8212 return NULL;
8213 }
8214 }
ab9bc19b
RD
8215{
8216 wxPy_BEGIN_ALLOW_THREADS;
8217 _result = (int )wxScrollBar_GetRange(_arg0);
8218
8219 wxPy_END_ALLOW_THREADS;
4dfaa61e 8220 if (PyErr_Occurred()) return NULL;
ab9bc19b 8221} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8222 return _resultobj;
8223}
8224
8225#define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize())
107e4716 8226static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8227 PyObject * _resultobj;
8228 int _result;
8229 wxScrollBar * _arg0;
2d091820 8230 PyObject * _argo0 = 0;
107e4716 8231 char *_kwnames[] = { "self", NULL };
70551f47
RD
8232
8233 self = self;
107e4716 8234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0))
70551f47 8235 return NULL;
2d091820
RD
8236 if (_argo0) {
8237 if (_argo0 == Py_None) { _arg0 = NULL; }
8238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
70551f47
RD
8239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p.");
8240 return NULL;
8241 }
8242 }
ab9bc19b
RD
8243{
8244 wxPy_BEGIN_ALLOW_THREADS;
8245 _result = (int )wxScrollBar_GetPageSize(_arg0);
8246
8247 wxPy_END_ALLOW_THREADS;
4dfaa61e 8248 if (PyErr_Occurred()) return NULL;
ab9bc19b 8249} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8250 return _resultobj;
8251}
8252
105e45b9 8253#define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition())
107e4716 8254static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8255 PyObject * _resultobj;
8256 int _result;
8257 wxScrollBar * _arg0;
2d091820 8258 PyObject * _argo0 = 0;
107e4716 8259 char *_kwnames[] = { "self", NULL };
70551f47
RD
8260
8261 self = self;
107e4716 8262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0))
70551f47 8263 return NULL;
2d091820
RD
8264 if (_argo0) {
8265 if (_argo0 == Py_None) { _arg0 = NULL; }
8266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
105e45b9 8267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p.");
70551f47
RD
8268 return NULL;
8269 }
8270 }
ab9bc19b
RD
8271{
8272 wxPy_BEGIN_ALLOW_THREADS;
8273 _result = (int )wxScrollBar_GetThumbPosition(_arg0);
8274
8275 wxPy_END_ALLOW_THREADS;
4dfaa61e 8276 if (PyErr_Occurred()) return NULL;
ab9bc19b 8277} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8278 return _resultobj;
8279}
8280
8281#define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize())
107e4716 8282static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8283 PyObject * _resultobj;
8284 int _result;
8285 wxScrollBar * _arg0;
2d091820 8286 PyObject * _argo0 = 0;
107e4716 8287 char *_kwnames[] = { "self", NULL };
70551f47
RD
8288
8289 self = self;
107e4716 8290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0))
70551f47 8291 return NULL;
2d091820
RD
8292 if (_argo0) {
8293 if (_argo0 == Py_None) { _arg0 = NULL; }
8294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
70551f47
RD
8295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p.");
8296 return NULL;
8297 }
8298 }
ab9bc19b
RD
8299{
8300 wxPy_BEGIN_ALLOW_THREADS;
8301 _result = (int )wxScrollBar_GetThumbSize(_arg0);
8302
8303 wxPy_END_ALLOW_THREADS;
4dfaa61e 8304 if (PyErr_Occurred()) return NULL;
ab9bc19b 8305} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8306 return _resultobj;
8307}
8308
6e8a778a
RD
8309#define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical())
8310static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject * _resultobj;
8312 bool _result;
8313 wxScrollBar * _arg0;
8314 PyObject * _argo0 = 0;
8315 char *_kwnames[] = { "self", NULL };
8316
8317 self = self;
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0))
8319 return NULL;
8320 if (_argo0) {
8321 if (_argo0 == Py_None) { _arg0 = NULL; }
8322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p.");
8324 return NULL;
8325 }
8326 }
8327{
8328 wxPy_BEGIN_ALLOW_THREADS;
8329 _result = (bool )wxScrollBar_IsVertical(_arg0);
8330
8331 wxPy_END_ALLOW_THREADS;
8332 if (PyErr_Occurred()) return NULL;
8333} _resultobj = Py_BuildValue("i",_result);
8334 return _resultobj;
8335}
8336
105e45b9 8337#define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0))
107e4716 8338static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8339 PyObject * _resultobj;
8340 wxScrollBar * _arg0;
8341 int _arg1;
2d091820 8342 PyObject * _argo0 = 0;
107e4716 8343 char *_kwnames[] = { "self","viewStart", NULL };
70551f47
RD
8344
8345 self = self;
107e4716 8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1))
70551f47 8347 return NULL;
2d091820
RD
8348 if (_argo0) {
8349 if (_argo0 == Py_None) { _arg0 = NULL; }
8350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
105e45b9 8351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p.");
70551f47
RD
8352 return NULL;
8353 }
8354 }
ab9bc19b
RD
8355{
8356 wxPy_BEGIN_ALLOW_THREADS;
8357 wxScrollBar_SetThumbPosition(_arg0,_arg1);
8358
8359 wxPy_END_ALLOW_THREADS;
4dfaa61e 8360 if (PyErr_Occurred()) return NULL;
ab9bc19b 8361} Py_INCREF(Py_None);
70551f47
RD
8362 _resultobj = Py_None;
8363 return _resultobj;
8364}
8365
8366#define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 8367static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8368 PyObject * _resultobj;
8369 wxScrollBar * _arg0;
8370 int _arg1;
8371 int _arg2;
8372 int _arg3;
8373 int _arg4;
2d091820
RD
8374 bool _arg5 = (bool ) TRUE;
8375 PyObject * _argo0 = 0;
8376 int tempbool5 = (int) TRUE;
107e4716 8377 char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL };
70551f47
RD
8378
8379 self = self;
107e4716 8380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
70551f47 8381 return NULL;
2d091820
RD
8382 if (_argo0) {
8383 if (_argo0 == Py_None) { _arg0 = NULL; }
8384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
70551f47
RD
8385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p.");
8386 return NULL;
8387 }
8388 }
8389 _arg5 = (bool ) tempbool5;
ab9bc19b
RD
8390{
8391 wxPy_BEGIN_ALLOW_THREADS;
8392 wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
8393
8394 wxPy_END_ALLOW_THREADS;
4dfaa61e 8395 if (PyErr_Occurred()) return NULL;
ab9bc19b 8396} Py_INCREF(Py_None);
70551f47
RD
8397 _resultobj = Py_None;
8398 return _resultobj;
8399}
8400
62bd0874
RD
8401static void *SwigwxSpinButtonTowxControl(void *ptr) {
8402 wxSpinButton *src;
8403 wxControl *dest;
8404 src = (wxSpinButton *) ptr;
8405 dest = (wxControl *) src;
8406 return (void *) dest;
8407}
8408
8409static void *SwigwxSpinButtonTowxWindow(void *ptr) {
8410 wxSpinButton *src;
8411 wxWindow *dest;
8412 src = (wxSpinButton *) ptr;
8413 dest = (wxWindow *) src;
8414 return (void *) dest;
8415}
8416
8417static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) {
8418 wxSpinButton *src;
8419 wxEvtHandler *dest;
8420 src = (wxSpinButton *) ptr;
8421 dest = (wxEvtHandler *) src;
8422 return (void *) dest;
8423}
8424
9df61a29
RD
8425static void *SwigwxSpinButtonTowxObject(void *ptr) {
8426 wxSpinButton *src;
8427 wxObject *dest;
8428 src = (wxSpinButton *) ptr;
8429 dest = (wxObject *) src;
8430 return (void *) dest;
8431}
8432
62bd0874 8433#define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 8434static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8435 PyObject * _resultobj;
8436 wxSpinButton * _result;
8437 wxWindow * _arg0;
2d091820 8438 wxWindowID _arg1 = (wxWindowID ) -1;
b68dc582
RD
8439 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
8440 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2d091820
RD
8441 long _arg4 = (long ) wxSP_HORIZONTAL;
8442 char * _arg5 = (char *) "spinButton";
8443 PyObject * _argo0 = 0;
37f6a977
RD
8444 wxPoint temp;
8445 PyObject * _obj2 = 0;
8446 wxSize temp0;
8447 PyObject * _obj3 = 0;
107e4716 8448 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
62bd0874
RD
8449 char _ptemp[128];
8450
8451 self = self;
37f6a977 8452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
62bd0874 8453 return NULL;
2d091820
RD
8454 if (_argo0) {
8455 if (_argo0 == Py_None) { _arg0 = NULL; }
8456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
62bd0874
RD
8457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p.");
8458 return NULL;
8459 }
8460 }
37f6a977
RD
8461 if (_obj2)
8462{
8463 _arg2 = &temp;
8464 if (! wxPoint_helper(_obj2, &_arg2))
62bd0874 8465 return NULL;
37f6a977
RD
8466}
8467 if (_obj3)
8468{
8469 _arg3 = &temp0;
8470 if (! wxSize_helper(_obj3, &_arg3))
62bd0874 8471 return NULL;
37f6a977 8472}
ab9bc19b
RD
8473{
8474 wxPy_BEGIN_ALLOW_THREADS;
8475 _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
8476
8477 wxPy_END_ALLOW_THREADS;
4dfaa61e 8478 if (PyErr_Occurred()) return NULL;
2d091820
RD
8479} if (_result) {
8480 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
8481 _resultobj = Py_BuildValue("s",_ptemp);
8482 } else {
8483 Py_INCREF(Py_None);
8484 _resultobj = Py_None;
8485 }
62bd0874
RD
8486 return _resultobj;
8487}
8488
aa2a5b86
RD
8489#define new_wxPreSpinButton() (new wxSpinButton())
8490static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
8491 PyObject * _resultobj;
8492 wxSpinButton * _result;
8493 char *_kwnames[] = { NULL };
8494 char _ptemp[128];
8495
8496 self = self;
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames))
8498 return NULL;
8499{
8500 wxPy_BEGIN_ALLOW_THREADS;
8501 _result = (wxSpinButton *)new_wxPreSpinButton();
8502
8503 wxPy_END_ALLOW_THREADS;
8504 if (PyErr_Occurred()) return NULL;
8505} if (_result) {
8506 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
8507 _resultobj = Py_BuildValue("s",_ptemp);
8508 } else {
8509 Py_INCREF(Py_None);
8510 _resultobj = Py_None;
8511 }
8512 return _resultobj;
8513}
8514
8515#define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8516static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8517 PyObject * _resultobj;
8518 bool _result;
8519 wxSpinButton * _arg0;
8520 wxWindow * _arg1;
8521 wxWindowID _arg2 = (wxWindowID ) -1;
8522 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8523 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8524 long _arg5 = (long ) wxSP_HORIZONTAL;
8525 char * _arg6 = (char *) "spinButton";
8526 PyObject * _argo0 = 0;
8527 PyObject * _argo1 = 0;
8528 wxPoint temp;
8529 PyObject * _obj3 = 0;
8530 wxSize temp0;
8531 PyObject * _obj4 = 0;
8532 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
8533
8534 self = self;
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
8536 return NULL;
8537 if (_argo0) {
8538 if (_argo0 == Py_None) { _arg0 = NULL; }
8539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p.");
8541 return NULL;
8542 }
8543 }
8544 if (_argo1) {
8545 if (_argo1 == Py_None) { _arg1 = NULL; }
8546 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8547 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p.");
8548 return NULL;
8549 }
8550 }
8551 if (_obj3)
8552{
8553 _arg3 = &temp;
8554 if (! wxPoint_helper(_obj3, &_arg3))
8555 return NULL;
8556}
8557 if (_obj4)
8558{
8559 _arg4 = &temp0;
8560 if (! wxSize_helper(_obj4, &_arg4))
8561 return NULL;
8562}
8563{
8564 wxPy_BEGIN_ALLOW_THREADS;
8565 _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
8566
8567 wxPy_END_ALLOW_THREADS;
8568 if (PyErr_Occurred()) return NULL;
8569} _resultobj = Py_BuildValue("i",_result);
8570 return _resultobj;
8571}
8572
62bd0874 8573#define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax())
107e4716 8574static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8575 PyObject * _resultobj;
8576 int _result;
8577 wxSpinButton * _arg0;
2d091820 8578 PyObject * _argo0 = 0;
107e4716 8579 char *_kwnames[] = { "self", NULL };
62bd0874
RD
8580
8581 self = self;
107e4716 8582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0))
62bd0874 8583 return NULL;
2d091820
RD
8584 if (_argo0) {
8585 if (_argo0 == Py_None) { _arg0 = NULL; }
8586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
62bd0874
RD
8587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p.");
8588 return NULL;
8589 }
8590 }
ab9bc19b
RD
8591{
8592 wxPy_BEGIN_ALLOW_THREADS;
8593 _result = (int )wxSpinButton_GetMax(_arg0);
8594
8595 wxPy_END_ALLOW_THREADS;
4dfaa61e 8596 if (PyErr_Occurred()) return NULL;
ab9bc19b 8597} _resultobj = Py_BuildValue("i",_result);
62bd0874
RD
8598 return _resultobj;
8599}
8600
8601#define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin())
107e4716 8602static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8603 PyObject * _resultobj;
8604 int _result;
8605 wxSpinButton * _arg0;
2d091820 8606 PyObject * _argo0 = 0;
107e4716 8607 char *_kwnames[] = { "self", NULL };
62bd0874
RD
8608
8609 self = self;
107e4716 8610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0))
62bd0874 8611 return NULL;
2d091820
RD
8612 if (_argo0) {
8613 if (_argo0 == Py_None) { _arg0 = NULL; }
8614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
62bd0874
RD
8615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p.");
8616 return NULL;
8617 }
8618 }
ab9bc19b
RD
8619{
8620 wxPy_BEGIN_ALLOW_THREADS;
8621 _result = (int )wxSpinButton_GetMin(_arg0);
8622
8623 wxPy_END_ALLOW_THREADS;
4dfaa61e 8624 if (PyErr_Occurred()) return NULL;
ab9bc19b 8625} _resultobj = Py_BuildValue("i",_result);
62bd0874
RD
8626 return _resultobj;
8627}
8628
8629#define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 8630static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8631 PyObject * _resultobj;
8632 int _result;
8633 wxSpinButton * _arg0;
2d091820 8634 PyObject * _argo0 = 0;
107e4716 8635 char *_kwnames[] = { "self", NULL };
62bd0874
RD
8636
8637 self = self;
107e4716 8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0))
62bd0874 8639 return NULL;
2d091820
RD
8640 if (_argo0) {
8641 if (_argo0 == Py_None) { _arg0 = NULL; }
8642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
62bd0874
RD
8643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p.");
8644 return NULL;
8645 }
8646 }
ab9bc19b
RD
8647{
8648 wxPy_BEGIN_ALLOW_THREADS;
8649 _result = (int )wxSpinButton_GetValue(_arg0);
8650
8651 wxPy_END_ALLOW_THREADS;
4dfaa61e 8652 if (PyErr_Occurred()) return NULL;
ab9bc19b 8653} _resultobj = Py_BuildValue("i",_result);
62bd0874
RD
8654 return _resultobj;
8655}
8656
8657#define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
107e4716 8658static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8659 PyObject * _resultobj;
8660 wxSpinButton * _arg0;
8661 int _arg1;
8662 int _arg2;
2d091820 8663 PyObject * _argo0 = 0;
107e4716 8664 char *_kwnames[] = { "self","min","max", NULL };
62bd0874
RD
8665
8666 self = self;
107e4716 8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
62bd0874 8668 return NULL;
2d091820
RD
8669 if (_argo0) {
8670 if (_argo0 == Py_None) { _arg0 = NULL; }
8671 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
62bd0874
RD
8672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p.");
8673 return NULL;
8674 }
8675 }
ab9bc19b
RD
8676{
8677 wxPy_BEGIN_ALLOW_THREADS;
8678 wxSpinButton_SetRange(_arg0,_arg1,_arg2);
8679
8680 wxPy_END_ALLOW_THREADS;
4dfaa61e 8681 if (PyErr_Occurred()) return NULL;
ab9bc19b 8682} Py_INCREF(Py_None);
62bd0874
RD
8683 _resultobj = Py_None;
8684 return _resultobj;
8685}
8686
8687#define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 8688static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
62bd0874
RD
8689 PyObject * _resultobj;
8690 wxSpinButton * _arg0;
8691 int _arg1;
2d091820 8692 PyObject * _argo0 = 0;
107e4716 8693 char *_kwnames[] = { "self","value", NULL };
62bd0874
RD
8694
8695 self = self;
107e4716 8696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1))
62bd0874 8697 return NULL;
2d091820
RD
8698 if (_argo0) {
8699 if (_argo0 == Py_None) { _arg0 = NULL; }
8700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
62bd0874
RD
8701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p.");
8702 return NULL;
8703 }
8704 }
ab9bc19b
RD
8705{
8706 wxPy_BEGIN_ALLOW_THREADS;
8707 wxSpinButton_SetValue(_arg0,_arg1);
8708
8709 wxPy_END_ALLOW_THREADS;
4dfaa61e 8710 if (PyErr_Occurred()) return NULL;
ab9bc19b 8711} Py_INCREF(Py_None);
62bd0874
RD
8712 _resultobj = Py_None;
8713 return _resultobj;
8714}
8715
70551f47
RD
8716static void *SwigwxStaticBitmapTowxControl(void *ptr) {
8717 wxStaticBitmap *src;
8718 wxControl *dest;
8719 src = (wxStaticBitmap *) ptr;
8720 dest = (wxControl *) src;
8721 return (void *) dest;
8722}
8723
8724static void *SwigwxStaticBitmapTowxWindow(void *ptr) {
8725 wxStaticBitmap *src;
8726 wxWindow *dest;
8727 src = (wxStaticBitmap *) ptr;
8728 dest = (wxWindow *) src;
8729 return (void *) dest;
8730}
8731
8732static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) {
8733 wxStaticBitmap *src;
8734 wxEvtHandler *dest;
8735 src = (wxStaticBitmap *) ptr;
8736 dest = (wxEvtHandler *) src;
8737 return (void *) dest;
8738}
8739
9df61a29
RD
8740static void *SwigwxStaticBitmapTowxObject(void *ptr) {
8741 wxStaticBitmap *src;
8742 wxObject *dest;
8743 src = (wxStaticBitmap *) ptr;
8744 dest = (wxObject *) src;
8745 return (void *) dest;
8746}
8747
70551f47 8748#define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
107e4716 8749static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8750 PyObject * _resultobj;
8751 wxStaticBitmap * _result;
8752 wxWindow * _arg0;
8753 wxWindowID _arg1;
8754 wxBitmap * _arg2;
b68dc582
RD
8755 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8756 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820
RD
8757 long _arg5 = (long ) 0;
8758 char * _arg6 = (char *) "staticBitmap";
8759 PyObject * _argo0 = 0;
aa2a5b86
RD
8760 PyObject * _argo2 = 0;
8761 wxPoint temp;
8762 PyObject * _obj3 = 0;
8763 wxSize temp0;
8764 PyObject * _obj4 = 0;
8765 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL };
8766 char _ptemp[128];
8767
8768 self = self;
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
8770 return NULL;
8771 if (_argo0) {
8772 if (_argo0 == Py_None) { _arg0 = NULL; }
8773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p.");
8775 return NULL;
8776 }
8777 }
8778 if (_argo2) {
8779 if (_argo2 == Py_None) { _arg2 = NULL; }
8780 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8781 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p.");
8782 return NULL;
8783 }
8784 }
8785 if (_obj3)
8786{
8787 _arg3 = &temp;
8788 if (! wxPoint_helper(_obj3, &_arg3))
8789 return NULL;
8790}
8791 if (_obj4)
8792{
8793 _arg4 = &temp0;
8794 if (! wxSize_helper(_obj4, &_arg4))
8795 return NULL;
8796}
8797{
8798 wxPy_BEGIN_ALLOW_THREADS;
8799 _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
8800
8801 wxPy_END_ALLOW_THREADS;
8802 if (PyErr_Occurred()) return NULL;
8803} if (_result) {
8804 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8805 _resultobj = Py_BuildValue("s",_ptemp);
8806 } else {
8807 Py_INCREF(Py_None);
8808 _resultobj = Py_None;
8809 }
8810 return _resultobj;
8811}
8812
8813#define new_wxPreStaticBitmap() (new wxStaticBitmap())
8814static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8815 PyObject * _resultobj;
8816 wxStaticBitmap * _result;
8817 char *_kwnames[] = { NULL };
8818 char _ptemp[128];
8819
8820 self = self;
8821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames))
8822 return NULL;
8823{
8824 wxPy_BEGIN_ALLOW_THREADS;
8825 _result = (wxStaticBitmap *)new_wxPreStaticBitmap();
8826
8827 wxPy_END_ALLOW_THREADS;
8828 if (PyErr_Occurred()) return NULL;
8829} if (_result) {
8830 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8831 _resultobj = Py_BuildValue("s",_ptemp);
8832 } else {
8833 Py_INCREF(Py_None);
8834 _resultobj = Py_None;
8835 }
8836 return _resultobj;
8837}
8838
8839#define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8840static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8841 PyObject * _resultobj;
8842 bool _result;
8843 wxStaticBitmap * _arg0;
8844 wxWindow * _arg1;
8845 wxWindowID _arg2;
8846 wxBitmap * _arg3;
8847 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
8848 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
8849 long _arg6 = (long ) 0;
8850 char * _arg7 = (char *) "staticBitmap";
8851 PyObject * _argo0 = 0;
8852 PyObject * _argo1 = 0;
8853 PyObject * _argo3 = 0;
37f6a977 8854 wxPoint temp;
37f6a977 8855 PyObject * _obj4 = 0;
aa2a5b86
RD
8856 wxSize temp0;
8857 PyObject * _obj5 = 0;
8858 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL };
70551f47
RD
8859
8860 self = self;
aa2a5b86 8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7))
70551f47 8862 return NULL;
2d091820
RD
8863 if (_argo0) {
8864 if (_argo0 == Py_None) { _arg0 = NULL; }
aa2a5b86
RD
8865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p.");
70551f47
RD
8867 return NULL;
8868 }
8869 }
aa2a5b86
RD
8870 if (_argo1) {
8871 if (_argo1 == Py_None) { _arg1 = NULL; }
8872 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8873 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p.");
70551f47
RD
8874 return NULL;
8875 }
8876 }
aa2a5b86
RD
8877 if (_argo3) {
8878 if (_argo3 == Py_None) { _arg3 = NULL; }
8879 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
8880 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p.");
8881 return NULL;
8882 }
8883 }
8884 if (_obj4)
37f6a977 8885{
aa2a5b86
RD
8886 _arg4 = &temp;
8887 if (! wxPoint_helper(_obj4, &_arg4))
70551f47 8888 return NULL;
37f6a977 8889}
aa2a5b86 8890 if (_obj5)
37f6a977 8891{
aa2a5b86
RD
8892 _arg5 = &temp0;
8893 if (! wxSize_helper(_obj5, &_arg5))
70551f47 8894 return NULL;
37f6a977 8895}
ab9bc19b
RD
8896{
8897 wxPy_BEGIN_ALLOW_THREADS;
aa2a5b86 8898 _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
ab9bc19b
RD
8899
8900 wxPy_END_ALLOW_THREADS;
4dfaa61e 8901 if (PyErr_Occurred()) return NULL;
aa2a5b86 8902} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8903 return _resultobj;
8904}
8905
8906#define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap())
107e4716 8907static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8908 PyObject * _resultobj;
8909 wxBitmap * _result;
8910 wxStaticBitmap * _arg0;
2d091820 8911 PyObject * _argo0 = 0;
107e4716 8912 char *_kwnames[] = { "self", NULL };
70551f47
RD
8913 char _ptemp[128];
8914
8915 self = self;
107e4716 8916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0))
70551f47 8917 return NULL;
2d091820
RD
8918 if (_argo0) {
8919 if (_argo0 == Py_None) { _arg0 = NULL; }
8920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
70551f47
RD
8921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p.");
8922 return NULL;
8923 }
8924 }
ab9bc19b
RD
8925{
8926 wxPy_BEGIN_ALLOW_THREADS;
8927 const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0);
70551f47 8928 _result = (wxBitmap *) &_result_ref;
ab9bc19b
RD
8929
8930 wxPy_END_ALLOW_THREADS;
4dfaa61e 8931 if (PyErr_Occurred()) return NULL;
2d091820
RD
8932} if (_result) {
8933 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
8934 _resultobj = Py_BuildValue("s",_ptemp);
8935 } else {
8936 Py_INCREF(Py_None);
8937 _resultobj = Py_None;
8938 }
70551f47
RD
8939 return _resultobj;
8940}
8941
8942#define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
107e4716 8943static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8944 PyObject * _resultobj;
8945 wxStaticBitmap * _arg0;
8946 wxBitmap * _arg1;
2d091820
RD
8947 PyObject * _argo0 = 0;
8948 PyObject * _argo1 = 0;
107e4716 8949 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
8950
8951 self = self;
107e4716 8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1))
70551f47 8953 return NULL;
2d091820
RD
8954 if (_argo0) {
8955 if (_argo0 == Py_None) { _arg0 = NULL; }
8956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
70551f47
RD
8957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p.");
8958 return NULL;
8959 }
8960 }
2d091820
RD
8961 if (_argo1) {
8962 if (_argo1 == Py_None) { _arg1 = NULL; }
8963 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
8964 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p.");
8965 return NULL;
8966 }
8967 }
ab9bc19b
RD
8968{
8969 wxPy_BEGIN_ALLOW_THREADS;
8970 wxStaticBitmap_SetBitmap(_arg0,*_arg1);
8971
8972 wxPy_END_ALLOW_THREADS;
4dfaa61e 8973 if (PyErr_Occurred()) return NULL;
ab9bc19b 8974} Py_INCREF(Py_None);
70551f47
RD
8975 _resultobj = Py_None;
8976 return _resultobj;
8977}
8978
8bf5d46e 8979#define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
107e4716 8980static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
8981 PyObject * _resultobj;
8982 wxStaticBitmap * _arg0;
8983 wxIcon * _arg1;
2d091820
RD
8984 PyObject * _argo0 = 0;
8985 PyObject * _argo1 = 0;
107e4716 8986 char *_kwnames[] = { "self","icon", NULL };
8bf5d46e
RD
8987
8988 self = self;
107e4716 8989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1))
8bf5d46e 8990 return NULL;
2d091820
RD
8991 if (_argo0) {
8992 if (_argo0 == Py_None) { _arg0 = NULL; }
8993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8bf5d46e
RD
8994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p.");
8995 return NULL;
8996 }
8997 }
2d091820
RD
8998 if (_argo1) {
8999 if (_argo1 == Py_None) { _arg1 = NULL; }
9000 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8bf5d46e
RD
9001 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p.");
9002 return NULL;
9003 }
9004 }
9005{
9006 wxPy_BEGIN_ALLOW_THREADS;
9007 wxStaticBitmap_SetIcon(_arg0,*_arg1);
9008
9009 wxPy_END_ALLOW_THREADS;
4dfaa61e 9010 if (PyErr_Occurred()) return NULL;
8bf5d46e
RD
9011} Py_INCREF(Py_None);
9012 _resultobj = Py_None;
9013 return _resultobj;
9014}
9015
70551f47
RD
9016static void *SwigwxRadioBoxTowxControl(void *ptr) {
9017 wxRadioBox *src;
9018 wxControl *dest;
9019 src = (wxRadioBox *) ptr;
9020 dest = (wxControl *) src;
9021 return (void *) dest;
9022}
9023
9024static void *SwigwxRadioBoxTowxWindow(void *ptr) {
9025 wxRadioBox *src;
9026 wxWindow *dest;
9027 src = (wxRadioBox *) ptr;
9028 dest = (wxWindow *) src;
9029 return (void *) dest;
9030}
9031
9032static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) {
9033 wxRadioBox *src;
9034 wxEvtHandler *dest;
9035 src = (wxRadioBox *) ptr;
9036 dest = (wxEvtHandler *) src;
9037 return (void *) dest;
9038}
9039
9df61a29
RD
9040static void *SwigwxRadioBoxTowxObject(void *ptr) {
9041 wxRadioBox *src;
9042 wxObject *dest;
9043 src = (wxRadioBox *) ptr;
9044 dest = (wxObject *) src;
9045 return (void *) dest;
9046}
9047
70551f47 9048#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 9049static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9050 PyObject * _resultobj;
9051 wxRadioBox * _result;
9052 wxWindow * _arg0;
9053 wxWindowID _arg1;
9054 wxString * _arg2;
b68dc582
RD
9055 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9056 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820
RD
9057 int _arg5 = (int ) 0;
9058 wxString * _arg6 = (wxString *) NULL;
9059 int _arg7 = (int ) 0;
9060 long _arg8 = (long ) wxRA_HORIZONTAL;
b68dc582 9061 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
9062 char * _arg10 = (char *) "radioBox";
9063 PyObject * _argo0 = 0;
70551f47 9064 PyObject * _obj2 = 0;
37f6a977
RD
9065 wxPoint temp;
9066 PyObject * _obj3 = 0;
9067 wxSize temp0;
9068 PyObject * _obj4 = 0;
70551f47 9069 PyObject * _obj6 = 0;
2d091820 9070 PyObject * _argo9 = 0;
e02c03a4 9071 char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
70551f47
RD
9072 char _ptemp[128];
9073
9074 self = self;
37f6a977 9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10))
70551f47 9076 return NULL;
2d091820
RD
9077 if (_argo0) {
9078 if (_argo0 == Py_None) { _arg0 = NULL; }
9079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p.");
9081 return NULL;
9082 }
9083 }
9084{
2cd2fac8
RD
9085#if PYTHON_API_VERSION >= 1009
9086 char* tmpPtr; int tmpSize;
9087 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 9088 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
9089 return NULL;
9090 }
9091 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9092 return NULL;
9093 _arg2 = new wxString(tmpPtr, tmpSize);
9094#else
70551f47
RD
9095 if (!PyString_Check(_obj2)) {
9096 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9097 return NULL;
9098 }
2cd2fac8
RD
9099 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9100#endif
70551f47 9101}
37f6a977
RD
9102 if (_obj3)
9103{
9104 _arg3 = &temp;
9105 if (! wxPoint_helper(_obj3, &_arg3))
70551f47 9106 return NULL;
37f6a977
RD
9107}
9108 if (_obj4)
9109{
9110 _arg4 = &temp0;
9111 if (! wxSize_helper(_obj4, &_arg4))
70551f47 9112 return NULL;
37f6a977 9113}
70551f47
RD
9114 if (_obj6)
9115{
9116 _arg6 = wxString_LIST_helper(_obj6);
9117 if (_arg6 == NULL) {
9118 return NULL;
9119 }
9120}
2d091820
RD
9121 if (_argo9) {
9122 if (_argo9 == Py_None) { _arg9 = NULL; }
9123 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
70551f47
RD
9124 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p.");
9125 return NULL;
9126 }
9127 }
9128{
ab9bc19b
RD
9129 if (_obj6) {
9130 _arg5 = PyList_Size(_obj6);
9131 }
9132 else {
9133 _arg5 = 0;
9134 }
70551f47 9135}
ab9bc19b
RD
9136{
9137 wxPy_BEGIN_ALLOW_THREADS;
9138 _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
9139
9140 wxPy_END_ALLOW_THREADS;
4dfaa61e 9141 if (PyErr_Occurred()) return NULL;
2d091820
RD
9142} if (_result) {
9143 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
9144 _resultobj = Py_BuildValue("s",_ptemp);
9145 } else {
9146 Py_INCREF(Py_None);
9147 _resultobj = Py_None;
9148 }
70551f47
RD
9149{
9150 if (_obj2)
9151 delete _arg2;
9152}
9153{
9154 delete [] _arg6;
9155}
9156 return _resultobj;
9157}
9158
aa2a5b86
RD
9159#define new_wxPreRadioBox() (new wxRadioBox())
9160static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9161 PyObject * _resultobj;
9162 wxRadioBox * _result;
9163 char *_kwnames[] = { NULL };
9164 char _ptemp[128];
9165
9166 self = self;
9167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames))
9168 return NULL;
9169{
9170 wxPy_BEGIN_ALLOW_THREADS;
9171 _result = (wxRadioBox *)new_wxPreRadioBox();
9172
9173 wxPy_END_ALLOW_THREADS;
9174 if (PyErr_Occurred()) return NULL;
9175} if (_result) {
9176 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
9177 _resultobj = Py_BuildValue("s",_ptemp);
9178 } else {
9179 Py_INCREF(Py_None);
9180 _resultobj = Py_None;
9181 }
9182 return _resultobj;
9183}
9184
9185#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))
9186static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject * _resultobj;
9188 bool _result;
9189 wxRadioBox * _arg0;
9190 wxWindow * _arg1;
9191 wxWindowID _arg2;
9192 wxString * _arg3;
9193 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
9194 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
9195 int _arg6 = (int ) 0;
9196 wxString * _arg7 = (wxString *) NULL;
9197 int _arg8 = (int ) 0;
9198 long _arg9 = (long ) wxRA_HORIZONTAL;
9199 wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator;
9200 char * _arg11 = (char *) "radioBox";
9201 PyObject * _argo0 = 0;
9202 PyObject * _argo1 = 0;
9203 PyObject * _obj3 = 0;
9204 wxPoint temp;
9205 PyObject * _obj4 = 0;
9206 wxSize temp0;
9207 PyObject * _obj5 = 0;
9208 PyObject * _obj7 = 0;
9209 PyObject * _argo10 = 0;
9210 char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
9211
9212 self = self;
9213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11))
9214 return NULL;
9215 if (_argo0) {
9216 if (_argo0 == Py_None) { _arg0 = NULL; }
9217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p.");
9219 return NULL;
9220 }
9221 }
9222 if (_argo1) {
9223 if (_argo1 == Py_None) { _arg1 = NULL; }
9224 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9225 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p.");
9226 return NULL;
9227 }
9228 }
9229{
9230#if PYTHON_API_VERSION >= 1009
9231 char* tmpPtr; int tmpSize;
9232 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
9233 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9234 return NULL;
9235 }
9236 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
9237 return NULL;
9238 _arg3 = new wxString(tmpPtr, tmpSize);
9239#else
9240 if (!PyString_Check(_obj3)) {
9241 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9242 return NULL;
9243 }
9244 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
9245#endif
9246}
9247 if (_obj4)
9248{
9249 _arg4 = &temp;
9250 if (! wxPoint_helper(_obj4, &_arg4))
9251 return NULL;
9252}
9253 if (_obj5)
9254{
9255 _arg5 = &temp0;
9256 if (! wxSize_helper(_obj5, &_arg5))
9257 return NULL;
9258}
9259 if (_obj7)
9260{
9261 _arg7 = wxString_LIST_helper(_obj7);
9262 if (_arg7 == NULL) {
9263 return NULL;
9264 }
9265}
9266 if (_argo10) {
9267 if (_argo10 == Py_None) { _arg10 = NULL; }
9268 else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) {
9269 PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p.");
9270 return NULL;
9271 }
9272 }
9273{
9274 if (_obj7) {
9275 _arg6 = PyList_Size(_obj7);
9276 }
9277 else {
9278 _arg6 = 0;
9279 }
9280}
9281{
9282 wxPy_BEGIN_ALLOW_THREADS;
9283 _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11);
9284
9285 wxPy_END_ALLOW_THREADS;
9286 if (PyErr_Occurred()) return NULL;
9287} _resultobj = Py_BuildValue("i",_result);
9288{
9289 if (_obj3)
9290 delete _arg3;
9291}
9292{
9293 delete [] _arg7;
9294}
9295 return _resultobj;
9296}
9297
c3c1cebe 9298#define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
107e4716 9299static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9300 PyObject * _resultobj;
9301 wxRadioBox * _arg0;
9302 bool _arg1;
2d091820 9303 PyObject * _argo0 = 0;
70551f47 9304 int tempbool1;
107e4716 9305 char *_kwnames[] = { "self","enable", NULL };
70551f47
RD
9306
9307 self = self;
107e4716 9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1))
70551f47 9309 return NULL;
2d091820
RD
9310 if (_argo0) {
9311 if (_argo0 == Py_None) { _arg0 = NULL; }
9312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
c3c1cebe 9313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p.");
70551f47
RD
9314 return NULL;
9315 }
9316 }
9317 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
9318{
9319 wxPy_BEGIN_ALLOW_THREADS;
9320 wxRadioBox_Enable(_arg0,_arg1);
9321
9322 wxPy_END_ALLOW_THREADS;
4dfaa61e 9323 if (PyErr_Occurred()) return NULL;
ab9bc19b 9324} Py_INCREF(Py_None);
70551f47
RD
9325 _resultobj = Py_None;
9326 return _resultobj;
9327}
9328
c3c1cebe 9329#define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
107e4716 9330static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9331 PyObject * _resultobj;
9332 wxRadioBox * _arg0;
9333 int _arg1;
9334 bool _arg2;
2d091820 9335 PyObject * _argo0 = 0;
70551f47 9336 int tempbool2;
107e4716 9337 char *_kwnames[] = { "self","n","enable", NULL };
70551f47
RD
9338
9339 self = self;
107e4716 9340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2))
70551f47 9341 return NULL;
2d091820
RD
9342 if (_argo0) {
9343 if (_argo0 == Py_None) { _arg0 = NULL; }
9344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
c3c1cebe 9345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p.");
70551f47
RD
9346 return NULL;
9347 }
9348 }
9349 _arg2 = (bool ) tempbool2;
ab9bc19b
RD
9350{
9351 wxPy_BEGIN_ALLOW_THREADS;
9352 wxRadioBox_EnableItem(_arg0,_arg1,_arg2);
9353
9354 wxPy_END_ALLOW_THREADS;
4dfaa61e 9355 if (PyErr_Occurred()) return NULL;
ab9bc19b 9356} Py_INCREF(Py_None);
70551f47
RD
9357 _resultobj = Py_None;
9358 return _resultobj;
9359}
9360
9361#define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
107e4716 9362static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9363 PyObject * _resultobj;
9364 int _result;
9365 wxRadioBox * _arg0;
9366 wxString * _arg1;
2d091820 9367 PyObject * _argo0 = 0;
70551f47 9368 PyObject * _obj1 = 0;
107e4716 9369 char *_kwnames[] = { "self","string", NULL };
70551f47
RD
9370
9371 self = self;
107e4716 9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1))
70551f47 9373 return NULL;
2d091820
RD
9374 if (_argo0) {
9375 if (_argo0 == Py_None) { _arg0 = NULL; }
9376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
70551f47
RD
9377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p.");
9378 return NULL;
9379 }
9380 }
9381{
2cd2fac8
RD
9382#if PYTHON_API_VERSION >= 1009
9383 char* tmpPtr; int tmpSize;
9384 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 9385 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
9386 return NULL;
9387 }
9388 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9389 return NULL;
9390 _arg1 = new wxString(tmpPtr, tmpSize);
9391#else
70551f47
RD
9392 if (!PyString_Check(_obj1)) {
9393 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9394 return NULL;
9395 }
2cd2fac8
RD
9396 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9397#endif
70551f47 9398}
ab9bc19b
RD
9399{
9400 wxPy_BEGIN_ALLOW_THREADS;
9401 _result = (int )wxRadioBox_FindString(_arg0,*_arg1);
9402
9403 wxPy_END_ALLOW_THREADS;
4dfaa61e 9404 if (PyErr_Occurred()) return NULL;
ab9bc19b 9405} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9406{
9407 if (_obj1)
9408 delete _arg1;
9409}
9410 return _resultobj;
9411}
9412
2c8a649d
RD
9413#define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
9414static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9415 PyObject * _resultobj;
9416 wxString * _result;
9417 wxRadioBox * _arg0;
9418 int _arg1;
2d091820 9419 PyObject * _argo0 = 0;
107e4716 9420 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
9421
9422 self = self;
2c8a649d 9423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1))
70551f47 9424 return NULL;
2d091820
RD
9425 if (_argo0) {
9426 if (_argo0 == Py_None) { _arg0 = NULL; }
9427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p.");
70551f47
RD
9429 return NULL;
9430 }
9431 }
70551f47 9432{
ab9bc19b 9433 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9434 _result = new wxString (wxRadioBox_GetString(_arg0,_arg1));
ab9bc19b
RD
9435
9436 wxPy_END_ALLOW_THREADS;
4dfaa61e 9437 if (PyErr_Occurred()) return NULL;
ab9bc19b 9438}{
e02c03a4 9439 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
70551f47
RD
9440}
9441{
9442 delete _result;
9443}
9444 return _resultobj;
9445}
9446
2c8a649d
RD
9447#define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9448static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 9449 PyObject * _resultobj;
2c8a649d 9450 wxString * _result;
70551f47 9451 wxRadioBox * _arg0;
2c8a649d 9452 int _arg1;
2d091820 9453 PyObject * _argo0 = 0;
2c8a649d 9454 char *_kwnames[] = { "self","item", NULL };
70551f47
RD
9455
9456 self = self;
2c8a649d 9457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1))
70551f47 9458 return NULL;
2d091820
RD
9459 if (_argo0) {
9460 if (_argo0 == Py_None) { _arg0 = NULL; }
9461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p.");
70551f47
RD
9463 return NULL;
9464 }
9465 }
ab9bc19b
RD
9466{
9467 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9468 _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1));
ab9bc19b
RD
9469
9470 wxPy_END_ALLOW_THREADS;
4dfaa61e 9471 if (PyErr_Occurred()) return NULL;
2c8a649d
RD
9472}{
9473 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9474}
9475{
9476 delete _result;
9477}
70551f47
RD
9478 return _resultobj;
9479}
9480
2c8a649d
RD
9481#define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9482static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 9483 PyObject * _resultobj;
70551f47
RD
9484 wxRadioBox * _arg0;
9485 int _arg1;
2c8a649d 9486 wxString * _arg2;
2d091820 9487 PyObject * _argo0 = 0;
2c8a649d
RD
9488 PyObject * _obj2 = 0;
9489 char *_kwnames[] = { "self","item","label", NULL };
70551f47
RD
9490
9491 self = self;
2c8a649d 9492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2))
70551f47 9493 return NULL;
2d091820
RD
9494 if (_argo0) {
9495 if (_argo0 == Py_None) { _arg0 = NULL; }
9496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p.");
70551f47
RD
9498 return NULL;
9499 }
9500 }
2c8a649d
RD
9501{
9502#if PYTHON_API_VERSION >= 1009
9503 char* tmpPtr; int tmpSize;
9504 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9505 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9506 return NULL;
9507 }
9508 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9509 return NULL;
9510 _arg2 = new wxString(tmpPtr, tmpSize);
9511#else
9512 if (!PyString_Check(_obj2)) {
9513 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9514 return NULL;
9515 }
9516 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9517#endif
9518}
70551f47 9519{
ab9bc19b 9520 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9521 wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2);
ab9bc19b
RD
9522
9523 wxPy_END_ALLOW_THREADS;
4dfaa61e 9524 if (PyErr_Occurred()) return NULL;
2c8a649d
RD
9525} Py_INCREF(Py_None);
9526 _resultobj = Py_None;
70551f47 9527{
2c8a649d
RD
9528 if (_obj2)
9529 delete _arg2;
70551f47
RD
9530}
9531 return _resultobj;
9532}
9533
2c8a649d
RD
9534#define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection())
9535static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 9536 PyObject * _resultobj;
2c8a649d 9537 int _result;
70551f47 9538 wxRadioBox * _arg0;
2d091820 9539 PyObject * _argo0 = 0;
107e4716 9540 char *_kwnames[] = { "self", NULL };
70551f47
RD
9541
9542 self = self;
2c8a649d 9543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0))
70551f47 9544 return NULL;
2d091820
RD
9545 if (_argo0) {
9546 if (_argo0 == Py_None) { _arg0 = NULL; }
9547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p.");
70551f47
RD
9549 return NULL;
9550 }
9551 }
70551f47 9552{
ab9bc19b 9553 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9554 _result = (int )wxRadioBox_GetSelection(_arg0);
ab9bc19b
RD
9555
9556 wxPy_END_ALLOW_THREADS;
4dfaa61e 9557 if (PyErr_Occurred()) return NULL;
2c8a649d 9558} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9559 return _resultobj;
9560}
9561
2c8a649d
RD
9562#define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
9563static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 9564 PyObject * _resultobj;
2c8a649d 9565 wxString * _result;
70551f47 9566 wxRadioBox * _arg0;
2d091820 9567 PyObject * _argo0 = 0;
107e4716 9568 char *_kwnames[] = { "self", NULL };
70551f47
RD
9569
9570 self = self;
2c8a649d 9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0))
70551f47 9572 return NULL;
2d091820
RD
9573 if (_argo0) {
9574 if (_argo0 == Py_None) { _arg0 = NULL; }
9575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p.");
70551f47
RD
9577 return NULL;
9578 }
9579 }
ab9bc19b
RD
9580{
9581 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9582 _result = new wxString (wxRadioBox_GetStringSelection(_arg0));
ab9bc19b
RD
9583
9584 wxPy_END_ALLOW_THREADS;
4dfaa61e 9585 if (PyErr_Occurred()) return NULL;
2c8a649d
RD
9586}{
9587 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9588}
9589{
9590 delete _result;
9591}
70551f47
RD
9592 return _resultobj;
9593}
9594
2c8a649d
RD
9595#define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount())
9596static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 9597 PyObject * _resultobj;
2c8a649d 9598 int _result;
70551f47 9599 wxRadioBox * _arg0;
2d091820 9600 PyObject * _argo0 = 0;
2c8a649d 9601 char *_kwnames[] = { "self", NULL };
70551f47
RD
9602
9603 self = self;
2c8a649d 9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0))
70551f47 9605 return NULL;
2d091820
RD
9606 if (_argo0) {
9607 if (_argo0 == Py_None) { _arg0 = NULL; }
9608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
2c8a649d 9609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p.");
70551f47
RD
9610 return NULL;
9611 }
9612 }
ab9bc19b
RD
9613{
9614 wxPy_BEGIN_ALLOW_THREADS;
2c8a649d 9615 _result = (int )wxRadioBox_GetCount(_arg0);
ab9bc19b
RD
9616
9617 wxPy_END_ALLOW_THREADS;
4dfaa61e 9618 if (PyErr_Occurred()) return NULL;
2c8a649d 9619} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9620 return _resultobj;
9621}
9622
9623#define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
107e4716 9624static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9625 PyObject * _resultobj;
9626 wxRadioBox * _arg0;
9627 int _arg1;
2d091820 9628 PyObject * _argo0 = 0;
107e4716 9629 char *_kwnames[] = { "self","n", NULL };
70551f47
RD
9630
9631 self = self;
107e4716 9632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1))
70551f47 9633 return NULL;
2d091820
RD
9634 if (_argo0) {
9635 if (_argo0 == Py_None) { _arg0 = NULL; }
9636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
70551f47
RD
9637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p.");
9638 return NULL;
9639 }
9640 }
ab9bc19b
RD
9641{
9642 wxPy_BEGIN_ALLOW_THREADS;
9643 wxRadioBox_SetSelection(_arg0,_arg1);
9644
9645 wxPy_END_ALLOW_THREADS;
4dfaa61e 9646 if (PyErr_Occurred()) return NULL;
ab9bc19b 9647} Py_INCREF(Py_None);
70551f47
RD
9648 _resultobj = Py_None;
9649 return _resultobj;
9650}
9651
9652#define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
107e4716 9653static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9654 PyObject * _resultobj;
9655 wxRadioBox * _arg0;
9656 wxString * _arg1;
2d091820 9657 PyObject * _argo0 = 0;
70551f47 9658 PyObject * _obj1 = 0;
107e4716 9659 char *_kwnames[] = { "self","string", NULL };
70551f47
RD
9660
9661 self = self;
107e4716 9662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1))
70551f47 9663 return NULL;
2d091820
RD
9664 if (_argo0) {
9665 if (_argo0 == Py_None) { _arg0 = NULL; }
9666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
70551f47
RD
9667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p.");
9668 return NULL;
9669 }
9670 }
9671{
2cd2fac8
RD
9672#if PYTHON_API_VERSION >= 1009
9673 char* tmpPtr; int tmpSize;
9674 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 9675 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
9676 return NULL;
9677 }
9678 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9679 return NULL;
9680 _arg1 = new wxString(tmpPtr, tmpSize);
9681#else
70551f47
RD
9682 if (!PyString_Check(_obj1)) {
9683 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9684 return NULL;
9685 }
2cd2fac8
RD
9686 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9687#endif
70551f47 9688}
ab9bc19b
RD
9689{
9690 wxPy_BEGIN_ALLOW_THREADS;
9691 wxRadioBox_SetStringSelection(_arg0,*_arg1);
9692
9693 wxPy_END_ALLOW_THREADS;
4dfaa61e 9694 if (PyErr_Occurred()) return NULL;
ab9bc19b 9695} Py_INCREF(Py_None);
70551f47
RD
9696 _resultobj = Py_None;
9697{
9698 if (_obj1)
9699 delete _arg1;
9700}
9701 return _resultobj;
9702}
9703
9704#define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
107e4716 9705static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9706 PyObject * _resultobj;
9707 wxRadioBox * _arg0;
9708 bool _arg1;
2d091820 9709 PyObject * _argo0 = 0;
70551f47 9710 int tempbool1;
107e4716 9711 char *_kwnames[] = { "self","show", NULL };
70551f47
RD
9712
9713 self = self;
107e4716 9714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1))
70551f47 9715 return NULL;
2d091820
RD
9716 if (_argo0) {
9717 if (_argo0 == Py_None) { _arg0 = NULL; }
9718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
70551f47
RD
9719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p.");
9720 return NULL;
9721 }
9722 }
9723 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
9724{
9725 wxPy_BEGIN_ALLOW_THREADS;
9726 wxRadioBox_Show(_arg0,_arg1);
9727
9728 wxPy_END_ALLOW_THREADS;
4dfaa61e 9729 if (PyErr_Occurred()) return NULL;
ab9bc19b 9730} Py_INCREF(Py_None);
70551f47
RD
9731 _resultobj = Py_None;
9732 return _resultobj;
9733}
9734
9735#define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1))
107e4716 9736static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9737 PyObject * _resultobj;
9738 wxRadioBox * _arg0;
9739 int _arg1;
9740 bool _arg2;
2d091820 9741 PyObject * _argo0 = 0;
70551f47 9742 int tempbool2;
107e4716 9743 char *_kwnames[] = { "self","item","show", NULL };
70551f47
RD
9744
9745 self = self;
107e4716 9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2))
70551f47 9747 return NULL;
2d091820
RD
9748 if (_argo0) {
9749 if (_argo0 == Py_None) { _arg0 = NULL; }
9750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
70551f47
RD
9751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p.");
9752 return NULL;
9753 }
9754 }
9755 _arg2 = (bool ) tempbool2;
ab9bc19b
RD
9756{
9757 wxPy_BEGIN_ALLOW_THREADS;
9758 wxRadioBox_ShowItem(_arg0,_arg1,_arg2);
9759
9760 wxPy_END_ALLOW_THREADS;
4dfaa61e 9761 if (PyErr_Occurred()) return NULL;
ab9bc19b 9762} Py_INCREF(Py_None);
70551f47
RD
9763 _resultobj = Py_None;
9764 return _resultobj;
9765}
9766
9767static void *SwigwxRadioButtonTowxControl(void *ptr) {
9768 wxRadioButton *src;
9769 wxControl *dest;
9770 src = (wxRadioButton *) ptr;
9771 dest = (wxControl *) src;
9772 return (void *) dest;
9773}
9774
9775static void *SwigwxRadioButtonTowxWindow(void *ptr) {
9776 wxRadioButton *src;
9777 wxWindow *dest;
9778 src = (wxRadioButton *) ptr;
9779 dest = (wxWindow *) src;
9780 return (void *) dest;
9781}
9782
9783static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) {
9784 wxRadioButton *src;
9785 wxEvtHandler *dest;
9786 src = (wxRadioButton *) ptr;
9787 dest = (wxEvtHandler *) src;
9788 return (void *) dest;
9789}
9790
9df61a29
RD
9791static void *SwigwxRadioButtonTowxObject(void *ptr) {
9792 wxRadioButton *src;
9793 wxObject *dest;
9794 src = (wxRadioButton *) ptr;
9795 dest = (wxObject *) src;
9796 return (void *) dest;
9797}
9798
70551f47 9799#define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
107e4716 9800static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9801 PyObject * _resultobj;
9802 wxRadioButton * _result;
9803 wxWindow * _arg0;
9804 wxWindowID _arg1;
9805 wxString * _arg2;
b68dc582
RD
9806 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9807 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2d091820 9808 long _arg5 = (long ) 0;
b68dc582 9809 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
9810 char * _arg7 = (char *) "radioButton";
9811 PyObject * _argo0 = 0;
70551f47 9812 PyObject * _obj2 = 0;
37f6a977
RD
9813 wxPoint temp;
9814 PyObject * _obj3 = 0;
9815 wxSize temp0;
9816 PyObject * _obj4 = 0;
2d091820 9817 PyObject * _argo6 = 0;
107e4716 9818 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
70551f47
RD
9819 char _ptemp[128];
9820
9821 self = self;
37f6a977 9822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
70551f47 9823 return NULL;
2d091820
RD
9824 if (_argo0) {
9825 if (_argo0 == Py_None) { _arg0 = NULL; }
9826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p.");
9828 return NULL;
9829 }
9830 }
9831{
2cd2fac8
RD
9832#if PYTHON_API_VERSION >= 1009
9833 char* tmpPtr; int tmpSize;
9834 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 9835 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
9836 return NULL;
9837 }
9838 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9839 return NULL;
9840 _arg2 = new wxString(tmpPtr, tmpSize);
9841#else
70551f47
RD
9842 if (!PyString_Check(_obj2)) {
9843 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9844 return NULL;
9845 }
2cd2fac8
RD
9846 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9847#endif
70551f47 9848}
37f6a977
RD
9849 if (_obj3)
9850{
aa2a5b86
RD
9851 _arg3 = &temp;
9852 if (! wxPoint_helper(_obj3, &_arg3))
9853 return NULL;
9854}
9855 if (_obj4)
9856{
9857 _arg4 = &temp0;
9858 if (! wxSize_helper(_obj4, &_arg4))
9859 return NULL;
9860}
9861 if (_argo6) {
9862 if (_argo6 == Py_None) { _arg6 = NULL; }
9863 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
9864 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p.");
9865 return NULL;
9866 }
9867 }
9868{
9869 wxPy_BEGIN_ALLOW_THREADS;
9870 _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
9871
9872 wxPy_END_ALLOW_THREADS;
9873 if (PyErr_Occurred()) return NULL;
9874} if (_result) {
9875 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9876 _resultobj = Py_BuildValue("s",_ptemp);
9877 } else {
9878 Py_INCREF(Py_None);
9879 _resultobj = Py_None;
9880 }
9881{
9882 if (_obj2)
9883 delete _arg2;
9884}
9885 return _resultobj;
9886}
9887
9888#define new_wxPreRadioButton() (new wxRadioButton())
9889static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9890 PyObject * _resultobj;
9891 wxRadioButton * _result;
9892 char *_kwnames[] = { NULL };
9893 char _ptemp[128];
9894
9895 self = self;
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames))
9897 return NULL;
9898{
9899 wxPy_BEGIN_ALLOW_THREADS;
9900 _result = (wxRadioButton *)new_wxPreRadioButton();
9901
9902 wxPy_END_ALLOW_THREADS;
9903 if (PyErr_Occurred()) return NULL;
9904} if (_result) {
9905 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9906 _resultobj = Py_BuildValue("s",_ptemp);
9907 } else {
9908 Py_INCREF(Py_None);
9909 _resultobj = Py_None;
9910 }
9911 return _resultobj;
9912}
9913
9914#define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
9915static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject * _resultobj;
9917 bool _result;
9918 wxRadioButton * _arg0;
9919 wxWindow * _arg1;
9920 wxWindowID _arg2;
9921 wxString * _arg3;
9922 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
9923 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
9924 long _arg6 = (long ) 0;
9925 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
9926 char * _arg8 = (char *) "radioButton";
9927 PyObject * _argo0 = 0;
9928 PyObject * _argo1 = 0;
9929 PyObject * _obj3 = 0;
9930 wxPoint temp;
9931 PyObject * _obj4 = 0;
9932 wxSize temp0;
9933 PyObject * _obj5 = 0;
9934 PyObject * _argo7 = 0;
9935 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
9936
9937 self = self;
9938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
9939 return NULL;
9940 if (_argo0) {
9941 if (_argo0 == Py_None) { _arg0 = NULL; }
9942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p.");
9944 return NULL;
9945 }
9946 }
9947 if (_argo1) {
9948 if (_argo1 == Py_None) { _arg1 = NULL; }
9949 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9950 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p.");
9951 return NULL;
9952 }
9953 }
9954{
9955#if PYTHON_API_VERSION >= 1009
9956 char* tmpPtr; int tmpSize;
9957 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
9958 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9959 return NULL;
9960 }
9961 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
9962 return NULL;
9963 _arg3 = new wxString(tmpPtr, tmpSize);
9964#else
9965 if (!PyString_Check(_obj3)) {
9966 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9967 return NULL;
9968 }
9969 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
9970#endif
9971}
9972 if (_obj4)
9973{
9974 _arg4 = &temp;
9975 if (! wxPoint_helper(_obj4, &_arg4))
70551f47 9976 return NULL;
37f6a977 9977}
aa2a5b86 9978 if (_obj5)
37f6a977 9979{
aa2a5b86
RD
9980 _arg5 = &temp0;
9981 if (! wxSize_helper(_obj5, &_arg5))
70551f47 9982 return NULL;
37f6a977 9983}
aa2a5b86
RD
9984 if (_argo7) {
9985 if (_argo7 == Py_None) { _arg7 = NULL; }
9986 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
9987 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p.");
70551f47
RD
9988 return NULL;
9989 }
9990 }
ab9bc19b
RD
9991{
9992 wxPy_BEGIN_ALLOW_THREADS;
aa2a5b86 9993 _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
ab9bc19b
RD
9994
9995 wxPy_END_ALLOW_THREADS;
4dfaa61e 9996 if (PyErr_Occurred()) return NULL;
aa2a5b86 9997} _resultobj = Py_BuildValue("i",_result);
70551f47 9998{
aa2a5b86
RD
9999 if (_obj3)
10000 delete _arg3;
70551f47
RD
10001}
10002 return _resultobj;
10003}
10004
10005#define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 10006static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10007 PyObject * _resultobj;
10008 bool _result;
10009 wxRadioButton * _arg0;
2d091820 10010 PyObject * _argo0 = 0;
107e4716 10011 char *_kwnames[] = { "self", NULL };
70551f47
RD
10012
10013 self = self;
107e4716 10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0))
70551f47 10015 return NULL;
2d091820
RD
10016 if (_argo0) {
10017 if (_argo0 == Py_None) { _arg0 = NULL; }
10018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
70551f47
RD
10019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p.");
10020 return NULL;
10021 }
10022 }
ab9bc19b
RD
10023{
10024 wxPy_BEGIN_ALLOW_THREADS;
10025 _result = (bool )wxRadioButton_GetValue(_arg0);
10026
10027 wxPy_END_ALLOW_THREADS;
4dfaa61e 10028 if (PyErr_Occurred()) return NULL;
ab9bc19b 10029} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10030 return _resultobj;
10031}
10032
10033#define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 10034static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10035 PyObject * _resultobj;
10036 wxRadioButton * _arg0;
10037 bool _arg1;
2d091820 10038 PyObject * _argo0 = 0;
70551f47 10039 int tempbool1;
107e4716 10040 char *_kwnames[] = { "self","value", NULL };
70551f47
RD
10041
10042 self = self;
107e4716 10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1))
70551f47 10044 return NULL;
2d091820
RD
10045 if (_argo0) {
10046 if (_argo0 == Py_None) { _arg0 = NULL; }
10047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
70551f47
RD
10048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p.");
10049 return NULL;
10050 }
10051 }
10052 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
10053{
10054 wxPy_BEGIN_ALLOW_THREADS;
10055 wxRadioButton_SetValue(_arg0,_arg1);
10056
10057 wxPy_END_ALLOW_THREADS;
4dfaa61e 10058 if (PyErr_Occurred()) return NULL;
ab9bc19b 10059} Py_INCREF(Py_None);
70551f47
RD
10060 _resultobj = Py_None;
10061 return _resultobj;
10062}
10063
10064static void *SwigwxSliderTowxControl(void *ptr) {
10065 wxSlider *src;
10066 wxControl *dest;
10067 src = (wxSlider *) ptr;
10068 dest = (wxControl *) src;
10069 return (void *) dest;
10070}
10071
10072static void *SwigwxSliderTowxWindow(void *ptr) {
10073 wxSlider *src;
10074 wxWindow *dest;
10075 src = (wxSlider *) ptr;
10076 dest = (wxWindow *) src;
10077 return (void *) dest;
10078}
10079
10080static void *SwigwxSliderTowxEvtHandler(void *ptr) {
10081 wxSlider *src;
10082 wxEvtHandler *dest;
10083 src = (wxSlider *) ptr;
10084 dest = (wxEvtHandler *) src;
10085 return (void *) dest;
10086}
10087
9df61a29
RD
10088static void *SwigwxSliderTowxObject(void *ptr) {
10089 wxSlider *src;
10090 wxObject *dest;
10091 src = (wxSlider *) ptr;
10092 dest = (wxObject *) src;
10093 return (void *) dest;
10094}
10095
70551f47 10096#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 10097static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10098 PyObject * _resultobj;
10099 wxSlider * _result;
10100 wxWindow * _arg0;
10101 wxWindowID _arg1;
10102 int _arg2;
10103 int _arg3;
10104 int _arg4;
b68dc582
RD
10105 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
10106 wxSize * _arg6 = (wxSize *) &wxDefaultSize;
2d091820 10107 long _arg7 = (long ) wxSL_HORIZONTAL;
b68dc582 10108 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2d091820
RD
10109 char * _arg9 = (char *) "slider";
10110 PyObject * _argo0 = 0;
37f6a977
RD
10111 wxPoint temp;
10112 PyObject * _obj5 = 0;
10113 wxSize temp0;
10114 PyObject * _obj6 = 0;
2d091820 10115 PyObject * _argo8 = 0;
107e4716 10116 char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
70551f47
RD
10117 char _ptemp[128];
10118
10119 self = self;
37f6a977 10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9))
70551f47 10121 return NULL;
2d091820
RD
10122 if (_argo0) {
10123 if (_argo0 == Py_None) { _arg0 = NULL; }
10124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
10125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p.");
10126 return NULL;
10127 }
10128 }
37f6a977
RD
10129 if (_obj5)
10130{
10131 _arg5 = &temp;
10132 if (! wxPoint_helper(_obj5, &_arg5))
70551f47 10133 return NULL;
37f6a977
RD
10134}
10135 if (_obj6)
10136{
10137 _arg6 = &temp0;
10138 if (! wxSize_helper(_obj6, &_arg6))
70551f47 10139 return NULL;
37f6a977 10140}
2d091820
RD
10141 if (_argo8) {
10142 if (_argo8 == Py_None) { _arg8 = NULL; }
10143 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
70551f47
RD
10144 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p.");
10145 return NULL;
10146 }
10147 }
ab9bc19b
RD
10148{
10149 wxPy_BEGIN_ALLOW_THREADS;
10150 _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9);
10151
10152 wxPy_END_ALLOW_THREADS;
4dfaa61e 10153 if (PyErr_Occurred()) return NULL;
2d091820
RD
10154} if (_result) {
10155 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
10156 _resultobj = Py_BuildValue("s",_ptemp);
10157 } else {
10158 Py_INCREF(Py_None);
10159 _resultobj = Py_None;
10160 }
70551f47
RD
10161 return _resultobj;
10162}
10163
aa2a5b86
RD
10164#define new_wxPreSlider() (new wxSlider())
10165static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
10166 PyObject * _resultobj;
10167 wxSlider * _result;
10168 char *_kwnames[] = { NULL };
10169 char _ptemp[128];
10170
10171 self = self;
10172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames))
10173 return NULL;
10174{
10175 wxPy_BEGIN_ALLOW_THREADS;
10176 _result = (wxSlider *)new_wxPreSlider();
10177
10178 wxPy_END_ALLOW_THREADS;
10179 if (PyErr_Occurred()) return NULL;
10180} if (_result) {
10181 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
10182 _resultobj = Py_BuildValue("s",_ptemp);
10183 } else {
10184 Py_INCREF(Py_None);
10185 _resultobj = Py_None;
10186 }
10187 return _resultobj;
10188}
10189
10190#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))
10191static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10192 PyObject * _resultobj;
10193 bool _result;
10194 wxSlider * _arg0;
10195 wxWindow * _arg1;
10196 wxWindowID _arg2;
10197 int _arg3;
10198 int _arg4;
10199 int _arg5;
10200 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
10201 wxSize * _arg7 = (wxSize *) &wxDefaultSize;
10202 long _arg8 = (long ) wxSL_HORIZONTAL;
10203 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
10204 char * _arg10 = (char *) "slider";
10205 PyObject * _argo0 = 0;
10206 PyObject * _argo1 = 0;
10207 wxPoint temp;
10208 PyObject * _obj6 = 0;
10209 wxSize temp0;
10210 PyObject * _obj7 = 0;
10211 PyObject * _argo9 = 0;
10212 char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
10213
10214 self = self;
10215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10))
10216 return NULL;
10217 if (_argo0) {
10218 if (_argo0 == Py_None) { _arg0 = NULL; }
10219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p.");
10221 return NULL;
10222 }
10223 }
10224 if (_argo1) {
10225 if (_argo1 == Py_None) { _arg1 = NULL; }
10226 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10227 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p.");
10228 return NULL;
10229 }
10230 }
10231 if (_obj6)
10232{
10233 _arg6 = &temp;
10234 if (! wxPoint_helper(_obj6, &_arg6))
10235 return NULL;
10236}
10237 if (_obj7)
10238{
10239 _arg7 = &temp0;
10240 if (! wxSize_helper(_obj7, &_arg7))
10241 return NULL;
10242}
10243 if (_argo9) {
10244 if (_argo9 == Py_None) { _arg9 = NULL; }
10245 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
10246 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p.");
10247 return NULL;
10248 }
10249 }
10250{
10251 wxPy_BEGIN_ALLOW_THREADS;
10252 _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10);
10253
10254 wxPy_END_ALLOW_THREADS;
10255 if (PyErr_Occurred()) return NULL;
10256} _resultobj = Py_BuildValue("i",_result);
10257 return _resultobj;
10258}
10259
70551f47 10260#define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel())
107e4716 10261static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10262 PyObject * _resultobj;
10263 wxSlider * _arg0;
2d091820 10264 PyObject * _argo0 = 0;
107e4716 10265 char *_kwnames[] = { "self", NULL };
70551f47
RD
10266
10267 self = self;
107e4716 10268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0))
70551f47 10269 return NULL;
2d091820
RD
10270 if (_argo0) {
10271 if (_argo0 == Py_None) { _arg0 = NULL; }
10272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p.");
10274 return NULL;
10275 }
10276 }
ab9bc19b
RD
10277{
10278 wxPy_BEGIN_ALLOW_THREADS;
10279 wxSlider_ClearSel(_arg0);
10280
10281 wxPy_END_ALLOW_THREADS;
4dfaa61e 10282 if (PyErr_Occurred()) return NULL;
ab9bc19b 10283} Py_INCREF(Py_None);
70551f47
RD
10284 _resultobj = Py_None;
10285 return _resultobj;
10286}
10287
10288#define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks())
107e4716 10289static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10290 PyObject * _resultobj;
10291 wxSlider * _arg0;
2d091820 10292 PyObject * _argo0 = 0;
107e4716 10293 char *_kwnames[] = { "self", NULL };
70551f47
RD
10294
10295 self = self;
107e4716 10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0))
70551f47 10297 return NULL;
2d091820
RD
10298 if (_argo0) {
10299 if (_argo0 == Py_None) { _arg0 = NULL; }
10300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p.");
10302 return NULL;
10303 }
10304 }
ab9bc19b
RD
10305{
10306 wxPy_BEGIN_ALLOW_THREADS;
10307 wxSlider_ClearTicks(_arg0);
10308
10309 wxPy_END_ALLOW_THREADS;
4dfaa61e 10310 if (PyErr_Occurred()) return NULL;
ab9bc19b 10311} Py_INCREF(Py_None);
70551f47
RD
10312 _resultobj = Py_None;
10313 return _resultobj;
10314}
10315
10316#define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize())
107e4716 10317static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10318 PyObject * _resultobj;
10319 int _result;
10320 wxSlider * _arg0;
2d091820 10321 PyObject * _argo0 = 0;
107e4716 10322 char *_kwnames[] = { "self", NULL };
70551f47
RD
10323
10324 self = self;
107e4716 10325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0))
70551f47 10326 return NULL;
2d091820
RD
10327 if (_argo0) {
10328 if (_argo0 == Py_None) { _arg0 = NULL; }
10329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p.");
10331 return NULL;
10332 }
10333 }
ab9bc19b
RD
10334{
10335 wxPy_BEGIN_ALLOW_THREADS;
10336 _result = (int )wxSlider_GetLineSize(_arg0);
10337
10338 wxPy_END_ALLOW_THREADS;
4dfaa61e 10339 if (PyErr_Occurred()) return NULL;
ab9bc19b 10340} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10341 return _resultobj;
10342}
10343
10344#define wxSlider_GetMax(_swigobj) (_swigobj->GetMax())
107e4716 10345static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10346 PyObject * _resultobj;
10347 int _result;
10348 wxSlider * _arg0;
2d091820 10349 PyObject * _argo0 = 0;
107e4716 10350 char *_kwnames[] = { "self", NULL };
70551f47
RD
10351
10352 self = self;
107e4716 10353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0))
70551f47 10354 return NULL;
2d091820
RD
10355 if (_argo0) {
10356 if (_argo0 == Py_None) { _arg0 = NULL; }
10357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p.");
10359 return NULL;
10360 }
10361 }
ab9bc19b
RD
10362{
10363 wxPy_BEGIN_ALLOW_THREADS;
10364 _result = (int )wxSlider_GetMax(_arg0);
10365
10366 wxPy_END_ALLOW_THREADS;
4dfaa61e 10367 if (PyErr_Occurred()) return NULL;
ab9bc19b 10368} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10369 return _resultobj;
10370}
10371
10372#define wxSlider_GetMin(_swigobj) (_swigobj->GetMin())
107e4716 10373static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10374 PyObject * _resultobj;
10375 int _result;
10376 wxSlider * _arg0;
2d091820 10377 PyObject * _argo0 = 0;
107e4716 10378 char *_kwnames[] = { "self", NULL };
70551f47
RD
10379
10380 self = self;
107e4716 10381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0))
70551f47 10382 return NULL;
2d091820
RD
10383 if (_argo0) {
10384 if (_argo0 == Py_None) { _arg0 = NULL; }
10385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p.");
10387 return NULL;
10388 }
10389 }
ab9bc19b
RD
10390{
10391 wxPy_BEGIN_ALLOW_THREADS;
10392 _result = (int )wxSlider_GetMin(_arg0);
10393
10394 wxPy_END_ALLOW_THREADS;
4dfaa61e 10395 if (PyErr_Occurred()) return NULL;
ab9bc19b 10396} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10397 return _resultobj;
10398}
10399
10400#define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize())
107e4716 10401static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10402 PyObject * _resultobj;
10403 int _result;
10404 wxSlider * _arg0;
2d091820 10405 PyObject * _argo0 = 0;
107e4716 10406 char *_kwnames[] = { "self", NULL };
70551f47
RD
10407
10408 self = self;
107e4716 10409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0))
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_GetPageSize. Expected _wxSlider_p.");
10415 return NULL;
10416 }
10417 }
ab9bc19b
RD
10418{
10419 wxPy_BEGIN_ALLOW_THREADS;
10420 _result = (int )wxSlider_GetPageSize(_arg0);
10421
10422 wxPy_END_ALLOW_THREADS;
4dfaa61e 10423 if (PyErr_Occurred()) return NULL;
ab9bc19b 10424} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10425 return _resultobj;
10426}
10427
10428#define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd())
107e4716 10429static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10430 PyObject * _resultobj;
10431 int _result;
10432 wxSlider * _arg0;
2d091820 10433 PyObject * _argo0 = 0;
107e4716 10434 char *_kwnames[] = { "self", NULL };
70551f47
RD
10435
10436 self = self;
107e4716 10437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0))
70551f47 10438 return NULL;
2d091820
RD
10439 if (_argo0) {
10440 if (_argo0 == Py_None) { _arg0 = NULL; }
10441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p.");
10443 return NULL;
10444 }
10445 }
ab9bc19b
RD
10446{
10447 wxPy_BEGIN_ALLOW_THREADS;
10448 _result = (int )wxSlider_GetSelEnd(_arg0);
10449
10450 wxPy_END_ALLOW_THREADS;
4dfaa61e 10451 if (PyErr_Occurred()) return NULL;
ab9bc19b 10452} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10453 return _resultobj;
10454}
10455
10456#define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart())
107e4716 10457static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10458 PyObject * _resultobj;
10459 int _result;
10460 wxSlider * _arg0;
2d091820 10461 PyObject * _argo0 = 0;
107e4716 10462 char *_kwnames[] = { "self", NULL };
70551f47
RD
10463
10464 self = self;
107e4716 10465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0))
70551f47 10466 return NULL;
2d091820
RD
10467 if (_argo0) {
10468 if (_argo0 == Py_None) { _arg0 = NULL; }
10469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p.");
10471 return NULL;
10472 }
10473 }
ab9bc19b
RD
10474{
10475 wxPy_BEGIN_ALLOW_THREADS;
10476 _result = (int )wxSlider_GetSelStart(_arg0);
10477
10478 wxPy_END_ALLOW_THREADS;
4dfaa61e 10479 if (PyErr_Occurred()) return NULL;
ab9bc19b 10480} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10481 return _resultobj;
10482}
10483
10484#define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength())
107e4716 10485static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10486 PyObject * _resultobj;
10487 int _result;
10488 wxSlider * _arg0;
2d091820 10489 PyObject * _argo0 = 0;
107e4716 10490 char *_kwnames[] = { "self", NULL };
70551f47
RD
10491
10492 self = self;
107e4716 10493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0))
70551f47 10494 return NULL;
2d091820
RD
10495 if (_argo0) {
10496 if (_argo0 == Py_None) { _arg0 = NULL; }
10497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p.");
10499 return NULL;
10500 }
10501 }
ab9bc19b
RD
10502{
10503 wxPy_BEGIN_ALLOW_THREADS;
10504 _result = (int )wxSlider_GetThumbLength(_arg0);
10505
10506 wxPy_END_ALLOW_THREADS;
4dfaa61e 10507 if (PyErr_Occurred()) return NULL;
ab9bc19b 10508} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10509 return _resultobj;
10510}
10511
10512#define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq())
107e4716 10513static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10514 PyObject * _resultobj;
10515 int _result;
10516 wxSlider * _arg0;
2d091820 10517 PyObject * _argo0 = 0;
107e4716 10518 char *_kwnames[] = { "self", NULL };
70551f47
RD
10519
10520 self = self;
107e4716 10521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0))
70551f47 10522 return NULL;
2d091820
RD
10523 if (_argo0) {
10524 if (_argo0 == Py_None) { _arg0 = NULL; }
10525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p.");
10527 return NULL;
10528 }
10529 }
ab9bc19b
RD
10530{
10531 wxPy_BEGIN_ALLOW_THREADS;
10532 _result = (int )wxSlider_GetTickFreq(_arg0);
10533
10534 wxPy_END_ALLOW_THREADS;
4dfaa61e 10535 if (PyErr_Occurred()) return NULL;
ab9bc19b 10536} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10537 return _resultobj;
10538}
10539
10540#define wxSlider_GetValue(_swigobj) (_swigobj->GetValue())
107e4716 10541static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10542 PyObject * _resultobj;
10543 int _result;
10544 wxSlider * _arg0;
2d091820 10545 PyObject * _argo0 = 0;
107e4716 10546 char *_kwnames[] = { "self", NULL };
70551f47
RD
10547
10548 self = self;
107e4716 10549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0))
70551f47 10550 return NULL;
2d091820
RD
10551 if (_argo0) {
10552 if (_argo0 == Py_None) { _arg0 = NULL; }
10553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p.");
10555 return NULL;
10556 }
10557 }
ab9bc19b
RD
10558{
10559 wxPy_BEGIN_ALLOW_THREADS;
10560 _result = (int )wxSlider_GetValue(_arg0);
10561
10562 wxPy_END_ALLOW_THREADS;
4dfaa61e 10563 if (PyErr_Occurred()) return NULL;
ab9bc19b 10564} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
10565 return _resultobj;
10566}
10567
10568#define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
107e4716 10569static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10570 PyObject * _resultobj;
10571 wxSlider * _arg0;
10572 int _arg1;
10573 int _arg2;
2d091820 10574 PyObject * _argo0 = 0;
107e4716 10575 char *_kwnames[] = { "self","minValue","maxValue", NULL };
70551f47
RD
10576
10577 self = self;
107e4716 10578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 10579 return NULL;
2d091820
RD
10580 if (_argo0) {
10581 if (_argo0 == Py_None) { _arg0 = NULL; }
10582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p.");
10584 return NULL;
10585 }
10586 }
ab9bc19b
RD
10587{
10588 wxPy_BEGIN_ALLOW_THREADS;
10589 wxSlider_SetRange(_arg0,_arg1,_arg2);
10590
10591 wxPy_END_ALLOW_THREADS;
4dfaa61e 10592 if (PyErr_Occurred()) return NULL;
ab9bc19b 10593} Py_INCREF(Py_None);
70551f47
RD
10594 _resultobj = Py_None;
10595 return _resultobj;
10596}
10597
10598#define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1))
107e4716 10599static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10600 PyObject * _resultobj;
10601 wxSlider * _arg0;
10602 int _arg1;
10603 int _arg2;
2d091820 10604 PyObject * _argo0 = 0;
107e4716 10605 char *_kwnames[] = { "self","n","pos", NULL };
70551f47
RD
10606
10607 self = self;
107e4716 10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 10609 return NULL;
2d091820
RD
10610 if (_argo0) {
10611 if (_argo0 == Py_None) { _arg0 = NULL; }
10612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p.");
10614 return NULL;
10615 }
10616 }
ab9bc19b
RD
10617{
10618 wxPy_BEGIN_ALLOW_THREADS;
10619 wxSlider_SetTickFreq(_arg0,_arg1,_arg2);
10620
10621 wxPy_END_ALLOW_THREADS;
4dfaa61e 10622 if (PyErr_Occurred()) return NULL;
ab9bc19b 10623} Py_INCREF(Py_None);
70551f47
RD
10624 _resultobj = Py_None;
10625 return _resultobj;
10626}
10627
10628#define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0))
107e4716 10629static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10630 PyObject * _resultobj;
10631 wxSlider * _arg0;
10632 int _arg1;
2d091820 10633 PyObject * _argo0 = 0;
107e4716 10634 char *_kwnames[] = { "self","lineSize", NULL };
70551f47
RD
10635
10636 self = self;
107e4716 10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1))
70551f47 10638 return NULL;
2d091820
RD
10639 if (_argo0) {
10640 if (_argo0 == Py_None) { _arg0 = NULL; }
10641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p.");
10643 return NULL;
10644 }
10645 }
ab9bc19b
RD
10646{
10647 wxPy_BEGIN_ALLOW_THREADS;
10648 wxSlider_SetLineSize(_arg0,_arg1);
10649
10650 wxPy_END_ALLOW_THREADS;
4dfaa61e 10651 if (PyErr_Occurred()) return NULL;
ab9bc19b 10652} Py_INCREF(Py_None);
70551f47
RD
10653 _resultobj = Py_None;
10654 return _resultobj;
10655}
10656
10657#define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
107e4716 10658static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10659 PyObject * _resultobj;
10660 wxSlider * _arg0;
10661 int _arg1;
2d091820 10662 PyObject * _argo0 = 0;
107e4716 10663 char *_kwnames[] = { "self","pageSize", NULL };
70551f47
RD
10664
10665 self = self;
107e4716 10666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1))
70551f47 10667 return NULL;
2d091820
RD
10668 if (_argo0) {
10669 if (_argo0 == Py_None) { _arg0 = NULL; }
10670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p.");
10672 return NULL;
10673 }
10674 }
ab9bc19b
RD
10675{
10676 wxPy_BEGIN_ALLOW_THREADS;
10677 wxSlider_SetPageSize(_arg0,_arg1);
10678
10679 wxPy_END_ALLOW_THREADS;
4dfaa61e 10680 if (PyErr_Occurred()) return NULL;
ab9bc19b 10681} Py_INCREF(Py_None);
70551f47
RD
10682 _resultobj = Py_None;
10683 return _resultobj;
10684}
10685
10686#define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
107e4716 10687static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10688 PyObject * _resultobj;
10689 wxSlider * _arg0;
10690 int _arg1;
10691 int _arg2;
2d091820 10692 PyObject * _argo0 = 0;
107e4716 10693 char *_kwnames[] = { "self","startPos","endPos", NULL };
70551f47
RD
10694
10695 self = self;
107e4716 10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 10697 return NULL;
2d091820
RD
10698 if (_argo0) {
10699 if (_argo0 == Py_None) { _arg0 = NULL; }
10700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p.");
10702 return NULL;
10703 }
10704 }
ab9bc19b
RD
10705{
10706 wxPy_BEGIN_ALLOW_THREADS;
10707 wxSlider_SetSelection(_arg0,_arg1,_arg2);
10708
10709 wxPy_END_ALLOW_THREADS;
4dfaa61e 10710 if (PyErr_Occurred()) return NULL;
ab9bc19b 10711} Py_INCREF(Py_None);
70551f47
RD
10712 _resultobj = Py_None;
10713 return _resultobj;
10714}
10715
10716#define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0))
107e4716 10717static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10718 PyObject * _resultobj;
10719 wxSlider * _arg0;
10720 int _arg1;
2d091820 10721 PyObject * _argo0 = 0;
107e4716 10722 char *_kwnames[] = { "self","len", NULL };
70551f47
RD
10723
10724 self = self;
107e4716 10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1))
70551f47 10726 return NULL;
2d091820
RD
10727 if (_argo0) {
10728 if (_argo0 == Py_None) { _arg0 = NULL; }
10729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p.");
10731 return NULL;
10732 }
10733 }
ab9bc19b
RD
10734{
10735 wxPy_BEGIN_ALLOW_THREADS;
10736 wxSlider_SetThumbLength(_arg0,_arg1);
10737
10738 wxPy_END_ALLOW_THREADS;
4dfaa61e 10739 if (PyErr_Occurred()) return NULL;
ab9bc19b 10740} Py_INCREF(Py_None);
70551f47
RD
10741 _resultobj = Py_None;
10742 return _resultobj;
10743}
10744
10745#define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0))
107e4716 10746static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10747 PyObject * _resultobj;
10748 wxSlider * _arg0;
10749 int _arg1;
2d091820 10750 PyObject * _argo0 = 0;
107e4716 10751 char *_kwnames[] = { "self","tickPos", NULL };
70551f47
RD
10752
10753 self = self;
107e4716 10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1))
70551f47 10755 return NULL;
2d091820
RD
10756 if (_argo0) {
10757 if (_argo0 == Py_None) { _arg0 = NULL; }
10758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p.");
10760 return NULL;
10761 }
10762 }
ab9bc19b
RD
10763{
10764 wxPy_BEGIN_ALLOW_THREADS;
10765 wxSlider_SetTick(_arg0,_arg1);
10766
10767 wxPy_END_ALLOW_THREADS;
4dfaa61e 10768 if (PyErr_Occurred()) return NULL;
ab9bc19b 10769} Py_INCREF(Py_None);
70551f47
RD
10770 _resultobj = Py_None;
10771 return _resultobj;
10772}
10773
10774#define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
107e4716 10775static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
10776 PyObject * _resultobj;
10777 wxSlider * _arg0;
10778 int _arg1;
2d091820 10779 PyObject * _argo0 = 0;
107e4716 10780 char *_kwnames[] = { "self","value", NULL };
70551f47
RD
10781
10782 self = self;
107e4716 10783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1))
70551f47 10784 return NULL;
2d091820
RD
10785 if (_argo0) {
10786 if (_argo0 == Py_None) { _arg0 = NULL; }
10787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
70551f47
RD
10788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p.");
10789 return NULL;
10790 }
10791 }
ab9bc19b
RD
10792{
10793 wxPy_BEGIN_ALLOW_THREADS;
10794 wxSlider_SetValue(_arg0,_arg1);
10795
10796 wxPy_END_ALLOW_THREADS;
4dfaa61e 10797 if (PyErr_Occurred()) return NULL;
ab9bc19b 10798} Py_INCREF(Py_None);
70551f47
RD
10799 _resultobj = Py_None;
10800 return _resultobj;
10801}
10802
f6bcfd97
BP
10803static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) {
10804 wxSpinCtrl *src;
10805 wxSpinButton *dest;
10806 src = (wxSpinCtrl *) ptr;
10807 dest = (wxSpinButton *) src;
10808 return (void *) dest;
10809}
10810
10811static void *SwigwxSpinCtrlTowxControl(void *ptr) {
10812 wxSpinCtrl *src;
10813 wxControl *dest;
10814 src = (wxSpinCtrl *) ptr;
10815 dest = (wxControl *) src;
10816 return (void *) dest;
10817}
10818
10819static void *SwigwxSpinCtrlTowxWindow(void *ptr) {
10820 wxSpinCtrl *src;
10821 wxWindow *dest;
10822 src = (wxSpinCtrl *) ptr;
10823 dest = (wxWindow *) src;
10824 return (void *) dest;
10825}
10826
10827static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) {
10828 wxSpinCtrl *src;
10829 wxEvtHandler *dest;
10830 src = (wxSpinCtrl *) ptr;
10831 dest = (wxEvtHandler *) src;
10832 return (void *) dest;
10833}
10834
9df61a29
RD
10835static void *SwigwxSpinCtrlTowxObject(void *ptr) {
10836 wxSpinCtrl *src;
10837 wxObject *dest;
10838 src = (wxSpinCtrl *) ptr;
10839 dest = (wxObject *) src;
10840 return (void *) dest;
10841}
10842
f6bcfd97
BP
10843#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))
10844static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject * _resultobj;
10846 wxSpinCtrl * _result;
10847 wxWindow * _arg0;
10848 wxWindowID _arg1 = (wxWindowID ) -1;
10849 char * _arg2 = (char *) "";
b68dc582
RD
10850 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10851 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
f6bcfd97
BP
10852 long _arg5 = (long ) wxSP_ARROW_KEYS;
10853 int _arg6 = (int ) 0;
10854 int _arg7 = (int ) 100;
10855 int _arg8 = (int ) 0;
10856 char * _arg9 = (char *) "wxSpinCtrl";
10857 PyObject * _argo0 = 0;
10858 wxPoint temp;
10859 PyObject * _obj3 = 0;
10860 wxSize temp0;
10861 PyObject * _obj4 = 0;
10862 char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL };
10863 char _ptemp[128];
10864
10865 self = self;
10866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9))
10867 return NULL;
10868 if (_argo0) {
10869 if (_argo0 == Py_None) { _arg0 = NULL; }
10870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p.");
10872 return NULL;
10873 }
10874 }
10875 if (_obj3)
10876{
10877 _arg3 = &temp;
10878 if (! wxPoint_helper(_obj3, &_arg3))
10879 return NULL;
10880}
10881 if (_obj4)
10882{
10883 _arg4 = &temp0;
10884 if (! wxSize_helper(_obj4, &_arg4))
10885 return NULL;
10886}
10887{
10888 wxPy_BEGIN_ALLOW_THREADS;
10889 _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
10890
10891 wxPy_END_ALLOW_THREADS;
4dfaa61e 10892 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10893} if (_result) {
10894 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10895 _resultobj = Py_BuildValue("s",_ptemp);
10896 } else {
10897 Py_INCREF(Py_None);
10898 _resultobj = Py_None;
10899 }
10900 return _resultobj;
10901}
10902
aa2a5b86
RD
10903#define new_wxPreSpinCtrl() (new wxSpinCtrl())
10904static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10905 PyObject * _resultobj;
10906 wxSpinCtrl * _result;
10907 char *_kwnames[] = { NULL };
10908 char _ptemp[128];
10909
10910 self = self;
10911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames))
10912 return NULL;
10913{
10914 wxPy_BEGIN_ALLOW_THREADS;
10915 _result = (wxSpinCtrl *)new_wxPreSpinCtrl();
10916
10917 wxPy_END_ALLOW_THREADS;
10918 if (PyErr_Occurred()) return NULL;
10919} if (_result) {
10920 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10921 _resultobj = Py_BuildValue("s",_ptemp);
10922 } else {
10923 Py_INCREF(Py_None);
10924 _resultobj = Py_None;
10925 }
10926 return _resultobj;
10927}
10928
10929#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))
10930static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10931 PyObject * _resultobj;
10932 bool _result;
10933 wxSpinCtrl * _arg0;
10934 wxWindow * _arg1;
10935 wxWindowID _arg2 = (wxWindowID ) -1;
10936 char * _arg3 = (char *) "";
10937 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10938 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10939 long _arg6 = (long ) wxSP_ARROW_KEYS;
10940 int _arg7 = (int ) 0;
10941 int _arg8 = (int ) 100;
10942 int _arg9 = (int ) 0;
10943 char * _arg10 = (char *) "wxSpinCtrl";
10944 PyObject * _argo0 = 0;
10945 PyObject * _argo1 = 0;
10946 wxPoint temp;
10947 PyObject * _obj4 = 0;
10948 wxSize temp0;
10949 PyObject * _obj5 = 0;
10950 char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL };
10951
10952 self = self;
10953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10))
10954 return NULL;
10955 if (_argo0) {
10956 if (_argo0 == Py_None) { _arg0 = NULL; }
10957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p.");
10959 return NULL;
10960 }
10961 }
10962 if (_argo1) {
10963 if (_argo1 == Py_None) { _arg1 = NULL; }
10964 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10965 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p.");
10966 return NULL;
10967 }
10968 }
10969 if (_obj4)
10970{
10971 _arg4 = &temp;
10972 if (! wxPoint_helper(_obj4, &_arg4))
10973 return NULL;
10974}
10975 if (_obj5)
10976{
10977 _arg5 = &temp0;
10978 if (! wxSize_helper(_obj5, &_arg5))
10979 return NULL;
10980}
10981{
10982 wxPy_BEGIN_ALLOW_THREADS;
10983 _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10);
10984
10985 wxPy_END_ALLOW_THREADS;
10986 if (PyErr_Occurred()) return NULL;
10987} _resultobj = Py_BuildValue("i",_result);
10988 return _resultobj;
10989}
10990
c368d904
RD
10991#define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax())
10992static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10993 PyObject * _resultobj;
10994 int _result;
10995 wxSpinCtrl * _arg0;
10996 PyObject * _argo0 = 0;
10997 char *_kwnames[] = { "self", NULL };
10998
10999 self = self;
11000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0))
11001 return NULL;
11002 if (_argo0) {
11003 if (_argo0 == Py_None) { _arg0 = NULL; }
11004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p.");
11006 return NULL;
11007 }
11008 }
11009{
11010 wxPy_BEGIN_ALLOW_THREADS;
11011 _result = (int )wxSpinCtrl_GetMax(_arg0);
11012
11013 wxPy_END_ALLOW_THREADS;
4dfaa61e 11014 if (PyErr_Occurred()) return NULL;
c368d904
RD
11015} _resultobj = Py_BuildValue("i",_result);
11016 return _resultobj;
11017}
11018
11019#define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin())
11020static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11021 PyObject * _resultobj;
11022 int _result;
11023 wxSpinCtrl * _arg0;
11024 PyObject * _argo0 = 0;
11025 char *_kwnames[] = { "self", NULL };
11026
11027 self = self;
11028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0))
11029 return NULL;
11030 if (_argo0) {
11031 if (_argo0 == Py_None) { _arg0 = NULL; }
11032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p.");
11034 return NULL;
11035 }
11036 }
11037{
11038 wxPy_BEGIN_ALLOW_THREADS;
11039 _result = (int )wxSpinCtrl_GetMin(_arg0);
11040
11041 wxPy_END_ALLOW_THREADS;
4dfaa61e 11042 if (PyErr_Occurred()) return NULL;
c368d904
RD
11043} _resultobj = Py_BuildValue("i",_result);
11044 return _resultobj;
11045}
11046
11047#define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue())
11048static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11049 PyObject * _resultobj;
11050 int _result;
11051 wxSpinCtrl * _arg0;
11052 PyObject * _argo0 = 0;
11053 char *_kwnames[] = { "self", NULL };
11054
11055 self = self;
11056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0))
11057 return NULL;
11058 if (_argo0) {
11059 if (_argo0 == Py_None) { _arg0 = NULL; }
11060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p.");
11062 return NULL;
11063 }
11064 }
11065{
11066 wxPy_BEGIN_ALLOW_THREADS;
11067 _result = (int )wxSpinCtrl_GetValue(_arg0);
11068
11069 wxPy_END_ALLOW_THREADS;
4dfaa61e 11070 if (PyErr_Occurred()) return NULL;
c368d904
RD
11071} _resultobj = Py_BuildValue("i",_result);
11072 return _resultobj;
11073}
11074
11075#define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
11076static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11077 PyObject * _resultobj;
11078 wxSpinCtrl * _arg0;
11079 int _arg1;
11080 int _arg2;
11081 PyObject * _argo0 = 0;
11082 char *_kwnames[] = { "self","min","max", NULL };
11083
11084 self = self;
11085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
11086 return NULL;
11087 if (_argo0) {
11088 if (_argo0 == Py_None) { _arg0 = NULL; }
11089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p.");
11091 return NULL;
11092 }
11093 }
11094{
11095 wxPy_BEGIN_ALLOW_THREADS;
11096 wxSpinCtrl_SetRange(_arg0,_arg1,_arg2);
11097
11098 wxPy_END_ALLOW_THREADS;
4dfaa61e 11099 if (PyErr_Occurred()) return NULL;
c368d904
RD
11100} Py_INCREF(Py_None);
11101 _resultobj = Py_None;
11102 return _resultobj;
11103}
11104
11105#define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
11106static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject * _resultobj;
11108 wxSpinCtrl * _arg0;
11109 int _arg1;
11110 PyObject * _argo0 = 0;
11111 char *_kwnames[] = { "self","value", NULL };
11112
11113 self = self;
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1))
11115 return NULL;
11116 if (_argo0) {
11117 if (_argo0 == Py_None) { _arg0 = NULL; }
11118 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11119 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p.");
11120 return NULL;
11121 }
11122 }
11123{
11124 wxPy_BEGIN_ALLOW_THREADS;
11125 wxSpinCtrl_SetValue(_arg0,_arg1);
11126
11127 wxPy_END_ALLOW_THREADS;
4dfaa61e 11128 if (PyErr_Occurred()) return NULL;
c368d904
RD
11129} Py_INCREF(Py_None);
11130 _resultobj = Py_None;
11131 return _resultobj;
11132}
11133
7a446686
RD
11134static void *SwigwxToggleButtonTowxControl(void *ptr) {
11135 wxToggleButton *src;
11136 wxControl *dest;
11137 src = (wxToggleButton *) ptr;
11138 dest = (wxControl *) src;
11139 return (void *) dest;
11140}
11141
11142static void *SwigwxToggleButtonTowxWindow(void *ptr) {
11143 wxToggleButton *src;
11144 wxWindow *dest;
11145 src = (wxToggleButton *) ptr;
11146 dest = (wxWindow *) src;
11147 return (void *) dest;
11148}
11149
11150static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) {
11151 wxToggleButton *src;
11152 wxEvtHandler *dest;
11153 src = (wxToggleButton *) ptr;
11154 dest = (wxEvtHandler *) src;
11155 return (void *) dest;
11156}
11157
9df61a29
RD
11158static void *SwigwxToggleButtonTowxObject(void *ptr) {
11159 wxToggleButton *src;
11160 wxObject *dest;
11161 src = (wxToggleButton *) ptr;
11162 dest = (wxObject *) src;
11163 return (void *) dest;
11164}
11165
7a446686
RD
11166#define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
11167static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11168 PyObject * _resultobj;
11169 wxToggleButton * _result;
11170 wxWindow * _arg0;
11171 wxWindowID _arg1;
11172 wxString * _arg2;
11173 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
11174 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
11175 long _arg5 = (long ) 0;
11176 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
11177 char * _arg7 = (char *) "toggle";
11178 PyObject * _argo0 = 0;
11179 PyObject * _obj2 = 0;
11180 wxPoint temp;
11181 PyObject * _obj3 = 0;
11182 wxSize temp0;
11183 PyObject * _obj4 = 0;
11184 PyObject * _argo6 = 0;
11185 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
11186 char _ptemp[128];
11187
11188 self = self;
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
11190 return NULL;
11191 if (_argo0) {
11192 if (_argo0 == Py_None) { _arg0 = NULL; }
11193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p.");
11195 return NULL;
11196 }
11197 }
11198{
11199#if PYTHON_API_VERSION >= 1009
11200 char* tmpPtr; int tmpSize;
11201 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
11202 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11203 return NULL;
11204 }
11205 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
11206 return NULL;
11207 _arg2 = new wxString(tmpPtr, tmpSize);
11208#else
11209 if (!PyString_Check(_obj2)) {
11210 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11211 return NULL;
11212 }
11213 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
11214#endif
11215}
11216 if (_obj3)
11217{
11218 _arg3 = &temp;
11219 if (! wxPoint_helper(_obj3, &_arg3))
11220 return NULL;
11221}
11222 if (_obj4)
11223{
11224 _arg4 = &temp0;
11225 if (! wxSize_helper(_obj4, &_arg4))
11226 return NULL;
11227}
11228 if (_argo6) {
11229 if (_argo6 == Py_None) { _arg6 = NULL; }
11230 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
11231 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p.");
11232 return NULL;
11233 }
11234 }
11235{
11236 wxPy_BEGIN_ALLOW_THREADS;
11237 _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
11238
11239 wxPy_END_ALLOW_THREADS;
4dfaa61e 11240 if (PyErr_Occurred()) return NULL;
7a446686
RD
11241} if (_result) {
11242 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
11243 _resultobj = Py_BuildValue("s",_ptemp);
11244 } else {
11245 Py_INCREF(Py_None);
11246 _resultobj = Py_None;
11247 }
11248{
11249 if (_obj2)
11250 delete _arg2;
11251}
11252 return _resultobj;
11253}
11254
aa2a5b86
RD
11255#define new_wxPreToggleButton() (new wxToggleButton())
11256static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject * _resultobj;
11258 wxToggleButton * _result;
11259 char *_kwnames[] = { NULL };
11260 char _ptemp[128];
11261
11262 self = self;
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames))
11264 return NULL;
11265{
11266 wxPy_BEGIN_ALLOW_THREADS;
11267 _result = (wxToggleButton *)new_wxPreToggleButton();
11268
11269 wxPy_END_ALLOW_THREADS;
11270 if (PyErr_Occurred()) return NULL;
11271} if (_result) {
11272 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
11273 _resultobj = Py_BuildValue("s",_ptemp);
11274 } else {
11275 Py_INCREF(Py_None);
11276 _resultobj = Py_None;
11277 }
11278 return _resultobj;
11279}
11280
11281#define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
11282static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11283 PyObject * _resultobj;
11284 bool _result;
11285 wxToggleButton * _arg0;
11286 wxWindow * _arg1;
11287 wxWindowID _arg2;
11288 wxString * _arg3;
11289 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
11290 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
11291 long _arg6 = (long ) 0;
11292 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
11293 char * _arg8 = (char *) "toggle";
11294 PyObject * _argo0 = 0;
11295 PyObject * _argo1 = 0;
11296 PyObject * _obj3 = 0;
11297 wxPoint temp;
11298 PyObject * _obj4 = 0;
11299 wxSize temp0;
11300 PyObject * _obj5 = 0;
11301 PyObject * _argo7 = 0;
11302 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
11303
11304 self = self;
11305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
11306 return NULL;
11307 if (_argo0) {
11308 if (_argo0 == Py_None) { _arg0 = NULL; }
11309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p.");
11311 return NULL;
11312 }
11313 }
11314 if (_argo1) {
11315 if (_argo1 == Py_None) { _arg1 = NULL; }
11316 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
11317 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p.");
11318 return NULL;
11319 }
11320 }
11321{
11322#if PYTHON_API_VERSION >= 1009
11323 char* tmpPtr; int tmpSize;
11324 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
11325 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11326 return NULL;
11327 }
11328 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
11329 return NULL;
11330 _arg3 = new wxString(tmpPtr, tmpSize);
11331#else
11332 if (!PyString_Check(_obj3)) {
11333 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11334 return NULL;
11335 }
11336 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
11337#endif
11338}
11339 if (_obj4)
11340{
11341 _arg4 = &temp;
11342 if (! wxPoint_helper(_obj4, &_arg4))
11343 return NULL;
11344}
11345 if (_obj5)
11346{
11347 _arg5 = &temp0;
11348 if (! wxSize_helper(_obj5, &_arg5))
11349 return NULL;
11350}
11351 if (_argo7) {
11352 if (_argo7 == Py_None) { _arg7 = NULL; }
11353 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
11354 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p.");
11355 return NULL;
11356 }
11357 }
11358{
11359 wxPy_BEGIN_ALLOW_THREADS;
11360 _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
11361
11362 wxPy_END_ALLOW_THREADS;
11363 if (PyErr_Occurred()) return NULL;
11364} _resultobj = Py_BuildValue("i",_result);
11365{
11366 if (_obj3)
11367 delete _arg3;
11368}
11369 return _resultobj;
11370}
11371
7a446686
RD
11372#define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
11373static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11374 PyObject * _resultobj;
11375 wxToggleButton * _arg0;
11376 bool _arg1;
11377 PyObject * _argo0 = 0;
11378 int tempbool1;
11379 char *_kwnames[] = { "self","value", NULL };
11380
11381 self = self;
11382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1))
11383 return NULL;
11384 if (_argo0) {
11385 if (_argo0 == Py_None) { _arg0 = NULL; }
11386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p.");
11388 return NULL;
11389 }
11390 }
11391 _arg1 = (bool ) tempbool1;
11392{
11393 wxPy_BEGIN_ALLOW_THREADS;
11394 wxToggleButton_SetValue(_arg0,_arg1);
11395
11396 wxPy_END_ALLOW_THREADS;
4dfaa61e 11397 if (PyErr_Occurred()) return NULL;
7a446686
RD
11398} Py_INCREF(Py_None);
11399 _resultobj = Py_None;
11400 return _resultobj;
11401}
11402
11403#define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue())
11404static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject * _resultobj;
11406 bool _result;
11407 wxToggleButton * _arg0;
11408 PyObject * _argo0 = 0;
11409 char *_kwnames[] = { "self", NULL };
11410
11411 self = self;
11412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0))
11413 return NULL;
11414 if (_argo0) {
11415 if (_argo0 == Py_None) { _arg0 = NULL; }
11416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p.");
11418 return NULL;
11419 }
11420 }
11421{
11422 wxPy_BEGIN_ALLOW_THREADS;
11423 _result = (bool )wxToggleButton_GetValue(_arg0);
11424
11425 wxPy_END_ALLOW_THREADS;
4dfaa61e 11426 if (PyErr_Occurred()) return NULL;
7a446686
RD
11427} _resultobj = Py_BuildValue("i",_result);
11428 return _resultobj;
11429}
11430
11431#define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
11432static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11433 PyObject * _resultobj;
11434 wxToggleButton * _arg0;
11435 wxString * _arg1;
11436 PyObject * _argo0 = 0;
11437 PyObject * _obj1 = 0;
11438 char *_kwnames[] = { "self","label", NULL };
11439
11440 self = self;
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1))
11442 return NULL;
11443 if (_argo0) {
11444 if (_argo0 == Py_None) { _arg0 = NULL; }
11445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p.");
11447 return NULL;
11448 }
11449 }
11450{
11451#if PYTHON_API_VERSION >= 1009
11452 char* tmpPtr; int tmpSize;
11453 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
11454 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11455 return NULL;
11456 }
11457 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
11458 return NULL;
11459 _arg1 = new wxString(tmpPtr, tmpSize);
11460#else
11461 if (!PyString_Check(_obj1)) {
11462 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11463 return NULL;
11464 }
11465 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
11466#endif
11467}
11468{
11469 wxPy_BEGIN_ALLOW_THREADS;
11470 wxToggleButton_SetLabel(_arg0,*_arg1);
11471
11472 wxPy_END_ALLOW_THREADS;
4dfaa61e 11473 if (PyErr_Occurred()) return NULL;
7a446686
RD
11474} Py_INCREF(Py_None);
11475 _resultobj = Py_None;
11476{
11477 if (_obj1)
11478 delete _arg1;
11479}
11480 return _resultobj;
11481}
11482
70551f47 11483static PyMethodDef controlscMethods[] = {
7a446686
RD
11484 { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
11485 { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
11486 { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11487 { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
11488 { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS },
7a446686 11489 { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS },
c368d904
RD
11490 { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
11491 { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
11492 { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
11493 { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
11494 { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11495 { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11496 { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11497 { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11498 { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS },
11499 { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS },
11500 { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
11501 { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS },
11502 { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
11503 { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
11504 { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
11505 { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS },
11506 { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS },
11507 { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
11508 { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
11509 { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
11510 { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
11511 { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
11512 { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS },
11513 { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS },
11514 { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
11515 { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
11516 { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11517 { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS },
11518 { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11519 { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS },
11520 { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
11521 { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11522 { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS },
11523 { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11524 { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS },
11525 { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
11526 { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS },
11527 { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11528 { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11529 { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
107e4716 11530 { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
107e4716 11531 { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11532 { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS },
107e4716 11533 { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11534 { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11535 { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
11536 { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
11537 { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11538 { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS },
11539 { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11540 { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS },
11541 { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
11542 { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
11543 { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11544 { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
11545 { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11546 { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS },
11547 { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
11548 { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
11549 { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
11550 { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
11551 { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11552 { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS },
11553 { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11554 { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
11555 { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
11556 { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
6e8a778a 11557 { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
2fc99549 11558 { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11559 { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
11560 { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
11561 { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
11562 { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11563 { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
11564 { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS },
107e4716 11565 { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11566 { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
4120ef2b 11567 { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11568 { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
11569 { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
11570 { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
11571 { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
11572 { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11573 { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
11574 { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11575 { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
11576 { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
4120ef2b
RD
11577 { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
11578 { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11579 { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
11580 { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
11581 { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11582 { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
11583 { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
11584 { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
11585 { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
11586 { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
107e4716 11587 { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11588 { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
11589 { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
11590 { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11591 { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
11592 { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11593 { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
11594 { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
107e4716 11595 { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 11596 { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11597 { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
11598 { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
11599 { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
93283355 11600 { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11601 { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
11602 { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
107e4716 11603 { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11604 { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
11605 { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
11606 { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
a57d56d6
RD
11607 { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
11608 { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11609 { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11610 { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS },
107e4716 11611 { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11612 { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
a57d56d6 11613 { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
9d6da64a
RD
11614 { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11615 { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11616 { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11617 { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11618 { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11619 { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11620 { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11621 { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11622 { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11623 { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
11624 { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
107e4716 11625 { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
d29aba2f 11626 { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11627 { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
11628 { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11629 { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
11630 { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11631 { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS },
11632 { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11633 { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS },
11634 { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
11635 { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
11636 { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
11637 { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS },
11638 { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11639 { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
37f6a977 11640 { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
107e4716 11641 { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
107e4716 11642 { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
107e4716 11643 { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11644 { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS },
11645 { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11646 { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS },
11647 { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS },
11648 { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11649 { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS },
11650 { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS },
107e4716 11651 { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11652 { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS },
11653 { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS },
107e4716 11654 { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11655 { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS },
11656 { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11657 { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS },
11658 { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS },
11659 { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
11660 { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS },
11661 { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
11662 { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS },
11663 { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
11664 { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS },
11665 { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11666 { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS },
11667 { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS },
107e4716 11668 { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS },
c70fd24f
RD
11669 { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS },
11670 { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS },
11671 { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS },
11672 { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11673 { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
11674 { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS },
11675 { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS },
11676 { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS },
11677 { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS },
11678 { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11679 { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11680 { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
11681 { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
11682 { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
11683 { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
11684 { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11685 { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
11686 { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
11687 { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
107e4716 11688 { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11689 { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
11690 { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11691 { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
11692 { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11693 { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS },
11694 { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS },
107e4716 11695 { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS },
2c8a649d 11696 { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11697 { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11698 { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS },
11699 { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS },
107e4716 11700 { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS },
107e4716 11701 { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11702 { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS },
11703 { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11704 { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS },
11705 { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
11706 { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11707 { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS },
11708 { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS },
107e4716 11709 { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11710 { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
11711 { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
11712 { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11713 { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
11714 { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
11715 { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
11716 { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
11717 { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
11718 { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
11719 { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
11720 { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11721 { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
11722 { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS },
107e4716 11723 { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS },
aa2a5b86 11724 { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
11725 { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
11726 { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
107e4716 11727 { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11728 { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS },
11729 { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS },
107e4716 11730 { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
11731 { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS },
11732 { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS },
11733 { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS },
11734 { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11735 { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS },
11736 { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS },
11737 { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS },
11738 { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS },
11739 { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS },
11740 { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS },
11741 { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11742 { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS },
11743 { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS },
56f5d962 11744 { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
11745 { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS },
11746 { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS },
56f5d962 11747 { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
11748 { NULL, NULL }
11749};
2d091820
RD
11750#ifdef __cplusplus
11751}
11752#endif
11753/*
11754 * This table is used by the pointer type-checker
11755 */
11756static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 11757 { "_signed_long","_long",0},
4120ef2b 11758 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
11759 { "_wxPrintQuality","_int",0},
11760 { "_wxPrintQuality","_signed_int",0},
11761 { "_wxPrintQuality","_unsigned_int",0},
11762 { "_wxPrintQuality","_wxWindowID",0},
11763 { "_wxPrintQuality","_uint",0},
11764 { "_wxPrintQuality","_EBool",0},
11765 { "_wxPrintQuality","_size_t",0},
c368d904 11766 { "_wxPrintQuality","_time_t",0},
2d091820 11767 { "_byte","_unsigned_char",0},
2d091820
RD
11768 { "_long","_unsigned_long",0},
11769 { "_long","_signed_long",0},
4120ef2b 11770 { "_size_t","_wxCoord",0},
2d091820 11771 { "_size_t","_wxPrintQuality",0},
c368d904 11772 { "_size_t","_time_t",0},
2d091820
RD
11773 { "_size_t","_unsigned_int",0},
11774 { "_size_t","_int",0},
11775 { "_size_t","_wxWindowID",0},
11776 { "_size_t","_uint",0},
4120ef2b 11777 { "_uint","_wxCoord",0},
2d091820 11778 { "_uint","_wxPrintQuality",0},
c368d904 11779 { "_uint","_time_t",0},
2d091820
RD
11780 { "_uint","_size_t",0},
11781 { "_uint","_unsigned_int",0},
11782 { "_uint","_int",0},
11783 { "_uint","_wxWindowID",0},
f6bcfd97 11784 { "_wxChar","_char",0},
f6bcfd97 11785 { "_char","_wxChar",0},
f6bcfd97 11786 { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
059a841c 11787 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 11788 { "_EBool","_wxCoord",0},
2d091820
RD
11789 { "_EBool","_wxPrintQuality",0},
11790 { "_EBool","_signed_int",0},
11791 { "_EBool","_int",0},
11792 { "_EBool","_wxWindowID",0},
2d091820 11793 { "_unsigned_long","_long",0},
059a841c 11794 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 11795 { "_signed_int","_wxCoord",0},
2d091820
RD
11796 { "_signed_int","_wxPrintQuality",0},
11797 { "_signed_int","_EBool",0},
11798 { "_signed_int","_wxWindowID",0},
11799 { "_signed_int","_int",0},
2d091820 11800 { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
2d091820
RD
11801 { "_WXTYPE","_short",0},
11802 { "_WXTYPE","_signed_short",0},
11803 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
11804 { "_unsigned_short","_WXTYPE",0},
11805 { "_unsigned_short","_short",0},
9df61a29 11806 { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
9df61a29 11807 { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
9df61a29 11808 { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
9df61a29 11809 { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
9df61a29 11810 { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
9df61a29 11811 { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
9df61a29 11812 { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
9df61a29 11813 { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
9df61a29 11814 { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
9df61a29 11815 { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
9df61a29 11816 { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
9df61a29 11817 { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
9df61a29 11818 { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
9df61a29 11819 { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
9df61a29 11820 { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
9df61a29 11821 { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
9df61a29 11822 { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
9df61a29 11823 { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
9df61a29 11824 { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
9df61a29 11825 { "_wxObject","_wxButton",SwigwxButtonTowxObject},
65191ae8 11826 { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject},
9df61a29 11827 { "_wxObject","_wxControl",SwigwxControlTowxObject},
2d091820
RD
11828 { "_signed_short","_WXTYPE",0},
11829 { "_signed_short","_short",0},
2d091820 11830 { "_unsigned_char","_byte",0},
7a446686 11831 { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl},
f6bcfd97 11832 { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
2d091820 11833 { "_wxControl","_wxSlider",SwigwxSliderTowxControl},
2d091820 11834 { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
2d091820 11835 { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
2d091820 11836 { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
2d091820 11837 { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
2d091820 11838 { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
2d091820 11839 { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
2d091820 11840 { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
2d091820 11841 { "_wxControl","_wxListBox",SwigwxListBoxTowxControl},
2d091820 11842 { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
2d091820 11843 { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
2d091820 11844 { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
2d091820 11845 { "_wxControl","_wxGauge",SwigwxGaugeTowxControl},
2d091820 11846 { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
2d091820 11847 { "_wxControl","_wxChoice",SwigwxChoiceTowxControl},
2d091820 11848 { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
2d091820 11849 { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
2d091820 11850 { "_wxControl","_wxButton",SwigwxButtonTowxControl},
65191ae8 11851 { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl},
4120ef2b 11852 { "_unsigned_int","_wxCoord",0},
2d091820 11853 { "_unsigned_int","_wxPrintQuality",0},
c368d904 11854 { "_unsigned_int","_time_t",0},
2d091820
RD
11855 { "_unsigned_int","_size_t",0},
11856 { "_unsigned_int","_uint",0},
11857 { "_unsigned_int","_wxWindowID",0},
11858 { "_unsigned_int","_int",0},
2d091820
RD
11859 { "_short","_WXTYPE",0},
11860 { "_short","_unsigned_short",0},
11861 { "_short","_signed_short",0},
65191ae8 11862 { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems},
65191ae8 11863 { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems},
65191ae8 11864 { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems},
4120ef2b 11865 { "_wxWindowID","_wxCoord",0},
2d091820 11866 { "_wxWindowID","_wxPrintQuality",0},
c368d904 11867 { "_wxWindowID","_time_t",0},
2d091820
RD
11868 { "_wxWindowID","_size_t",0},
11869 { "_wxWindowID","_EBool",0},
11870 { "_wxWindowID","_uint",0},
11871 { "_wxWindowID","_int",0},
11872 { "_wxWindowID","_signed_int",0},
11873 { "_wxWindowID","_unsigned_int",0},
4120ef2b 11874 { "_int","_wxCoord",0},
2d091820 11875 { "_int","_wxPrintQuality",0},
c368d904 11876 { "_int","_time_t",0},
2d091820
RD
11877 { "_int","_size_t",0},
11878 { "_int","_EBool",0},
11879 { "_int","_uint",0},
11880 { "_int","_wxWindowID",0},
11881 { "_int","_unsigned_int",0},
11882 { "_int","_signed_int",0},
c368d904
RD
11883 { "_time_t","_wxCoord",0},
11884 { "_time_t","_wxPrintQuality",0},
11885 { "_time_t","_unsigned_int",0},
11886 { "_time_t","_int",0},
11887 { "_time_t","_wxWindowID",0},
11888 { "_time_t","_uint",0},
11889 { "_time_t","_size_t",0},
2d091820 11890 { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
4120ef2b
RD
11891 { "_wxCoord","_int",0},
11892 { "_wxCoord","_signed_int",0},
11893 { "_wxCoord","_unsigned_int",0},
11894 { "_wxCoord","_wxWindowID",0},
11895 { "_wxCoord","_uint",0},
11896 { "_wxCoord","_EBool",0},
11897 { "_wxCoord","_size_t",0},
c368d904 11898 { "_wxCoord","_time_t",0},
4120ef2b 11899 { "_wxCoord","_wxPrintQuality",0},
7a446686 11900 { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
f6bcfd97 11901 { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
2d091820 11902 { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
2d091820 11903 { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
2d091820 11904 { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
2d091820 11905 { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
2d091820 11906 { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
2d091820 11907 { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
2d091820 11908 { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
2d091820 11909 { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
2d091820 11910 { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
2d091820 11911 { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
2d091820 11912 { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
2d091820 11913 { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
2d091820 11914 { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
2d091820 11915 { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
2d091820 11916 { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
2d091820 11917 { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
2d091820 11918 { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
2d091820 11919 { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
65191ae8 11920 { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler},
2d091820 11921 { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
7a446686 11922 { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow},
f6bcfd97 11923 { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
2d091820 11924 { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
2d091820 11925 { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
2d091820 11926 { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
2d091820 11927 { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
2d091820 11928 { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
2d091820 11929 { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
2d091820 11930 { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
2d091820 11931 { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
2d091820 11932 { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
2d091820 11933 { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
2d091820 11934 { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
2d091820 11935 { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
2d091820 11936 { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
2d091820 11937 { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
2d091820 11938 { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
2d091820 11939 { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
2d091820 11940 { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
2d091820 11941 { "_wxWindow","_wxButton",SwigwxButtonTowxWindow},
65191ae8 11942 { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow},
2d091820 11943 { "_wxWindow","_wxControl",SwigwxControlTowxWindow},
2d091820
RD
11944{0,0,0}};
11945
70551f47
RD
11946static PyObject *SWIG_globals;
11947#ifdef __cplusplus
11948extern "C"
11949#endif
2d091820 11950SWIGEXPORT(void) initcontrolsc() {
70551f47
RD
11951 PyObject *m, *d;
11952 SWIG_globals = SWIG_newvarlink();
11953 m = Py_InitModule("controlsc", controlscMethods);
11954 d = PyModule_GetDict(m);
37f6a977
RD
11955 PyDict_SetItemString(d,"cvar", SWIG_globals);
11956 SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set);
7a446686 11957 PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
2d091820
RD
11958{
11959 int i;
11960 for (i = 0; _swig_mapping[i].n1; i++)
11961 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11962}
70551f47 11963}