]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/controls.cpp
patch fix for a constant definition under OS/2 VA V4.0
[wxWidgets.git] / wxPython / src / gtk / controls.cpp
1 /*
2 * FILE : src/gtk/controls.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initcontrolsc
55
56 #define SWIG_name "controlsc"
57
58 #include "helpers.h"
59 #include <wx/slider.h>
60 #include <wx/spinbutt.h>
61 #include <wx/spinctrl.h>
62 #include <wx/dynarray.h>
63 #include <wx/statline.h>
64 #include <wx/tglbtn.h>
65
66 #ifdef __WXMSW__
67 #if wxUSE_OWNER_DRAWN
68 #include <wx/checklst.h>
69 #endif
70 #endif
71
72 #ifdef __WXGTK__
73 #include <wx/checklst.h>
74 #endif
75
76
77
78 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
79 PyObject* o2;
80 PyObject* o3;
81
82 if (!target) {
83 target = o;
84 } else if (target == Py_None) {
85 Py_DECREF(Py_None);
86 target = o;
87 } else {
88 if (!PyTuple_Check(target)) {
89 o2 = target;
90 target = PyTuple_New(1);
91 PyTuple_SetItem(target, 0, o2);
92 }
93 o3 = PyTuple_New(1);
94 PyTuple_SetItem(o3, 0, o);
95
96 o2 = target;
97 target = PySequence_Concat(o2, o3);
98 Py_DECREF(o2);
99 Py_DECREF(o3);
100 }
101 return target;
102 }
103
104 #if PYTHON_API_VERSION >= 1009
105 static char* wxStringErrorMsg = "String or Unicode type required";
106 #else
107 static char* wxStringErrorMsg = "string type is required for parameter";
108 #endif
109 #ifdef __cplusplus
110 extern "C" {
111 #endif
112 static int _wrap_wxDefaultValidator_set(PyObject *val) {
113
114 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only.");
115 return 1;
116 }
117
118 static 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
127 static void *SwigwxControlTowxWindow(void *ptr) {
128 wxControl *src;
129 wxWindow *dest;
130 src = (wxControl *) ptr;
131 dest = (wxWindow *) src;
132 return (void *) dest;
133 }
134
135 static void *SwigwxControlTowxEvtHandler(void *ptr) {
136 wxControl *src;
137 wxEvtHandler *dest;
138 src = (wxControl *) ptr;
139 dest = (wxEvtHandler *) src;
140 return (void *) dest;
141 }
142
143 static void *SwigwxControlTowxObject(void *ptr) {
144 wxControl *src;
145 wxObject *dest;
146 src = (wxControl *) ptr;
147 dest = (wxObject *) src;
148 return (void *) dest;
149 }
150
151 #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
152 static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) {
153 PyObject * _resultobj;
154 wxControl * _result;
155 wxWindow * _arg0;
156 wxWindowID _arg1;
157 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
158 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
159 long _arg4 = (long ) 0;
160 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
161 char * _arg6 = (char *) "control";
162 PyObject * _argo0 = 0;
163 wxPoint temp;
164 PyObject * _obj2 = 0;
165 wxSize temp0;
166 PyObject * _obj3 = 0;
167 PyObject * _argo5 = 0;
168 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
169 char _ptemp[128];
170
171 self = self;
172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
173 return NULL;
174 if (_argo0) {
175 if (_argo0 == Py_None) { _arg0 = NULL; }
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.");
178 return NULL;
179 }
180 }
181 if (_obj2)
182 {
183 _arg2 = &temp;
184 if (! wxPoint_helper(_obj2, &_arg2))
185 return NULL;
186 }
187 if (_obj3)
188 {
189 _arg3 = &temp0;
190 if (! wxSize_helper(_obj3, &_arg3))
191 return NULL;
192 }
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.");
197 return NULL;
198 }
199 }
200 {
201 wxPy_BEGIN_ALLOW_THREADS;
202 _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
203
204 wxPy_END_ALLOW_THREADS;
205 if (PyErr_Occurred()) return NULL;
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 }
213 return _resultobj;
214 }
215
216 #define new_wxPreControl() (new wxControl())
217 static 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))
243 static 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
309 #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
310 static 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;
340 if (PyErr_Occurred()) return NULL;
341 } Py_INCREF(Py_None);
342 _resultobj = Py_None;
343 return _resultobj;
344 }
345
346 #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel())
347 static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
348 PyObject * _resultobj;
349 wxString * _result;
350 wxControl * _arg0;
351 PyObject * _argo0 = 0;
352 char *_kwnames[] = { "self", NULL };
353
354 self = self;
355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0))
356 return NULL;
357 if (_argo0) {
358 if (_argo0 == Py_None) { _arg0 = NULL; }
359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p.");
361 return NULL;
362 }
363 }
364 {
365 wxPy_BEGIN_ALLOW_THREADS;
366 _result = new wxString (wxControl_GetLabel(_arg0));
367
368 wxPy_END_ALLOW_THREADS;
369 if (PyErr_Occurred()) return NULL;
370 }{
371 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
372 }
373 {
374 delete _result;
375 }
376 return _resultobj;
377 }
378
379 #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
380 static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
381 PyObject * _resultobj;
382 wxControl * _arg0;
383 wxString * _arg1;
384 PyObject * _argo0 = 0;
385 PyObject * _obj1 = 0;
386 char *_kwnames[] = { "self","label", NULL };
387
388 self = self;
389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1))
390 return NULL;
391 if (_argo0) {
392 if (_argo0 == Py_None) { _arg0 = NULL; }
393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p.");
395 return NULL;
396 }
397 }
398 {
399 #if PYTHON_API_VERSION >= 1009
400 char* tmpPtr; int tmpSize;
401 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
402 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
403 return NULL;
404 }
405 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
406 return NULL;
407 _arg1 = new wxString(tmpPtr, tmpSize);
408 #else
409 if (!PyString_Check(_obj1)) {
410 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
411 return NULL;
412 }
413 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
414 #endif
415 }
416 {
417 wxPy_BEGIN_ALLOW_THREADS;
418 wxControl_SetLabel(_arg0,*_arg1);
419
420 wxPy_END_ALLOW_THREADS;
421 if (PyErr_Occurred()) return NULL;
422 } Py_INCREF(Py_None);
423 _resultobj = Py_None;
424 {
425 if (_obj1)
426 delete _arg1;
427 }
428 return _resultobj;
429 }
430
431 static void *SwigwxButtonTowxControl(void *ptr) {
432 wxButton *src;
433 wxControl *dest;
434 src = (wxButton *) ptr;
435 dest = (wxControl *) src;
436 return (void *) dest;
437 }
438
439 static void *SwigwxButtonTowxWindow(void *ptr) {
440 wxButton *src;
441 wxWindow *dest;
442 src = (wxButton *) ptr;
443 dest = (wxWindow *) src;
444 return (void *) dest;
445 }
446
447 static void *SwigwxButtonTowxEvtHandler(void *ptr) {
448 wxButton *src;
449 wxEvtHandler *dest;
450 src = (wxButton *) ptr;
451 dest = (wxEvtHandler *) src;
452 return (void *) dest;
453 }
454
455 static void *SwigwxButtonTowxObject(void *ptr) {
456 wxButton *src;
457 wxObject *dest;
458 src = (wxButton *) ptr;
459 dest = (wxObject *) src;
460 return (void *) dest;
461 }
462
463 #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
464 static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) {
465 PyObject * _resultobj;
466 wxButton * _result;
467 wxWindow * _arg0;
468 wxWindowID _arg1;
469 wxString * _arg2;
470 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
471 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
472 long _arg5 = (long ) 0;
473 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
474 char * _arg7 = (char *) "button";
475 PyObject * _argo0 = 0;
476 PyObject * _obj2 = 0;
477 wxPoint temp;
478 PyObject * _obj3 = 0;
479 wxSize temp0;
480 PyObject * _obj4 = 0;
481 PyObject * _argo6 = 0;
482 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
483 char _ptemp[128];
484
485 self = self;
486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
487 return NULL;
488 if (_argo0) {
489 if (_argo0 == Py_None) { _arg0 = NULL; }
490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p.");
492 return NULL;
493 }
494 }
495 {
496 #if PYTHON_API_VERSION >= 1009
497 char* tmpPtr; int tmpSize;
498 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
499 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
500 return NULL;
501 }
502 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
503 return NULL;
504 _arg2 = new wxString(tmpPtr, tmpSize);
505 #else
506 if (!PyString_Check(_obj2)) {
507 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
508 return NULL;
509 }
510 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
511 #endif
512 }
513 if (_obj3)
514 {
515 _arg3 = &temp;
516 if (! wxPoint_helper(_obj3, &_arg3))
517 return NULL;
518 }
519 if (_obj4)
520 {
521 _arg4 = &temp0;
522 if (! wxSize_helper(_obj4, &_arg4))
523 return NULL;
524 }
525 if (_argo6) {
526 if (_argo6 == Py_None) { _arg6 = NULL; }
527 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
528 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p.");
529 return NULL;
530 }
531 }
532 {
533 wxPy_BEGIN_ALLOW_THREADS;
534 _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
535
536 wxPy_END_ALLOW_THREADS;
537 if (PyErr_Occurred()) return NULL;
538 } if (_result) {
539 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
540 _resultobj = Py_BuildValue("s",_ptemp);
541 } else {
542 Py_INCREF(Py_None);
543 _resultobj = Py_None;
544 }
545 {
546 if (_obj2)
547 delete _arg2;
548 }
549 return _resultobj;
550 }
551
552 #define new_wxPreButton() (new wxButton())
553 static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
554 PyObject * _resultobj;
555 wxButton * _result;
556 char *_kwnames[] = { NULL };
557 char _ptemp[128];
558
559 self = self;
560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames))
561 return NULL;
562 {
563 wxPy_BEGIN_ALLOW_THREADS;
564 _result = (wxButton *)new_wxPreButton();
565
566 wxPy_END_ALLOW_THREADS;
567 if (PyErr_Occurred()) return NULL;
568 } if (_result) {
569 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
570 _resultobj = Py_BuildValue("s",_ptemp);
571 } else {
572 Py_INCREF(Py_None);
573 _resultobj = Py_None;
574 }
575 return _resultobj;
576 }
577
578 #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
579 static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
580 PyObject * _resultobj;
581 bool _result;
582 wxButton * _arg0;
583 wxWindow * _arg1;
584 wxWindowID _arg2;
585 wxString * _arg3;
586 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
587 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
588 long _arg6 = (long ) 0;
589 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
590 char * _arg8 = (char *) "button";
591 PyObject * _argo0 = 0;
592 PyObject * _argo1 = 0;
593 PyObject * _obj3 = 0;
594 wxPoint temp;
595 PyObject * _obj4 = 0;
596 wxSize temp0;
597 PyObject * _obj5 = 0;
598 PyObject * _argo7 = 0;
599 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
600
601 self = self;
602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
603 return NULL;
604 if (_argo0) {
605 if (_argo0 == Py_None) { _arg0 = NULL; }
606 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
607 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p.");
608 return NULL;
609 }
610 }
611 if (_argo1) {
612 if (_argo1 == Py_None) { _arg1 = NULL; }
613 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
614 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p.");
615 return NULL;
616 }
617 }
618 {
619 #if PYTHON_API_VERSION >= 1009
620 char* tmpPtr; int tmpSize;
621 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
622 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
623 return NULL;
624 }
625 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
626 return NULL;
627 _arg3 = new wxString(tmpPtr, tmpSize);
628 #else
629 if (!PyString_Check(_obj3)) {
630 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
631 return NULL;
632 }
633 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
634 #endif
635 }
636 if (_obj4)
637 {
638 _arg4 = &temp;
639 if (! wxPoint_helper(_obj4, &_arg4))
640 return NULL;
641 }
642 if (_obj5)
643 {
644 _arg5 = &temp0;
645 if (! wxSize_helper(_obj5, &_arg5))
646 return NULL;
647 }
648 if (_argo7) {
649 if (_argo7 == Py_None) { _arg7 = NULL; }
650 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
651 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p.");
652 return NULL;
653 }
654 }
655 {
656 wxPy_BEGIN_ALLOW_THREADS;
657 _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
658
659 wxPy_END_ALLOW_THREADS;
660 if (PyErr_Occurred()) return NULL;
661 } _resultobj = Py_BuildValue("i",_result);
662 {
663 if (_obj3)
664 delete _arg3;
665 }
666 return _resultobj;
667 }
668
669 #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault())
670 static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
671 PyObject * _resultobj;
672 wxButton * _arg0;
673 PyObject * _argo0 = 0;
674 char *_kwnames[] = { "self", NULL };
675
676 self = self;
677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0))
678 return NULL;
679 if (_argo0) {
680 if (_argo0 == Py_None) { _arg0 = NULL; }
681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p.");
683 return NULL;
684 }
685 }
686 {
687 wxPy_BEGIN_ALLOW_THREADS;
688 wxButton_SetDefault(_arg0);
689
690 wxPy_END_ALLOW_THREADS;
691 if (PyErr_Occurred()) return NULL;
692 } Py_INCREF(Py_None);
693 _resultobj = Py_None;
694 return _resultobj;
695 }
696
697 #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
698 static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
699 PyObject * _resultobj;
700 wxButton * _arg0;
701 wxColour * _arg1;
702 PyObject * _argo0 = 0;
703 wxColour temp;
704 PyObject * _obj1 = 0;
705 char *_kwnames[] = { "self","colour", NULL };
706
707 self = self;
708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
709 return NULL;
710 if (_argo0) {
711 if (_argo0 == Py_None) { _arg0 = NULL; }
712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p.");
714 return NULL;
715 }
716 }
717 {
718 _arg1 = &temp;
719 if (! wxColour_helper(_obj1, &_arg1))
720 return NULL;
721 }
722 {
723 wxPy_BEGIN_ALLOW_THREADS;
724 wxButton_SetBackgroundColour(_arg0,*_arg1);
725
726 wxPy_END_ALLOW_THREADS;
727 if (PyErr_Occurred()) return NULL;
728 } Py_INCREF(Py_None);
729 _resultobj = Py_None;
730 return _resultobj;
731 }
732
733 #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
734 static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject * _resultobj;
736 wxButton * _arg0;
737 wxColour * _arg1;
738 PyObject * _argo0 = 0;
739 wxColour temp;
740 PyObject * _obj1 = 0;
741 char *_kwnames[] = { "self","colour", NULL };
742
743 self = self;
744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1))
745 return NULL;
746 if (_argo0) {
747 if (_argo0 == Py_None) { _arg0 = NULL; }
748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p.");
750 return NULL;
751 }
752 }
753 {
754 _arg1 = &temp;
755 if (! wxColour_helper(_obj1, &_arg1))
756 return NULL;
757 }
758 {
759 wxPy_BEGIN_ALLOW_THREADS;
760 wxButton_SetForegroundColour(_arg0,*_arg1);
761
762 wxPy_END_ALLOW_THREADS;
763 if (PyErr_Occurred()) return NULL;
764 } Py_INCREF(Py_None);
765 _resultobj = Py_None;
766 return _resultobj;
767 }
768
769 static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
770 PyObject * _resultobj;
771 wxSize * _result;
772 char *_kwnames[] = { NULL };
773 char _ptemp[128];
774
775 self = self;
776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames))
777 return NULL;
778 {
779 wxPy_BEGIN_ALLOW_THREADS;
780 _result = new wxSize (wxButton::GetDefaultSize());
781
782 wxPy_END_ALLOW_THREADS;
783 if (PyErr_Occurred()) return NULL;
784 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
785 _resultobj = Py_BuildValue("s",_ptemp);
786 return _resultobj;
787 }
788
789 static void *SwigwxBitmapButtonTowxButton(void *ptr) {
790 wxBitmapButton *src;
791 wxButton *dest;
792 src = (wxBitmapButton *) ptr;
793 dest = (wxButton *) src;
794 return (void *) dest;
795 }
796
797 static void *SwigwxBitmapButtonTowxControl(void *ptr) {
798 wxBitmapButton *src;
799 wxControl *dest;
800 src = (wxBitmapButton *) ptr;
801 dest = (wxControl *) src;
802 return (void *) dest;
803 }
804
805 static void *SwigwxBitmapButtonTowxWindow(void *ptr) {
806 wxBitmapButton *src;
807 wxWindow *dest;
808 src = (wxBitmapButton *) ptr;
809 dest = (wxWindow *) src;
810 return (void *) dest;
811 }
812
813 static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) {
814 wxBitmapButton *src;
815 wxEvtHandler *dest;
816 src = (wxBitmapButton *) ptr;
817 dest = (wxEvtHandler *) src;
818 return (void *) dest;
819 }
820
821 static void *SwigwxBitmapButtonTowxObject(void *ptr) {
822 wxBitmapButton *src;
823 wxObject *dest;
824 src = (wxBitmapButton *) ptr;
825 dest = (wxObject *) src;
826 return (void *) dest;
827 }
828
829 #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
830 static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
831 PyObject * _resultobj;
832 wxBitmapButton * _result;
833 wxWindow * _arg0;
834 wxWindowID _arg1;
835 wxBitmap * _arg2;
836 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
837 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
838 long _arg5 = (long ) wxBU_AUTODRAW;
839 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
840 char * _arg7 = (char *) "button";
841 PyObject * _argo0 = 0;
842 PyObject * _argo2 = 0;
843 wxPoint temp;
844 PyObject * _obj3 = 0;
845 wxSize temp0;
846 PyObject * _obj4 = 0;
847 PyObject * _argo6 = 0;
848 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL };
849 char _ptemp[128];
850
851 self = self;
852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
853 return NULL;
854 if (_argo0) {
855 if (_argo0 == Py_None) { _arg0 = NULL; }
856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p.");
858 return NULL;
859 }
860 }
861 if (_argo2) {
862 if (_argo2 == Py_None) { _arg2 = NULL; }
863 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
864 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p.");
865 return NULL;
866 }
867 }
868 if (_obj3)
869 {
870 _arg3 = &temp;
871 if (! wxPoint_helper(_obj3, &_arg3))
872 return NULL;
873 }
874 if (_obj4)
875 {
876 _arg4 = &temp0;
877 if (! wxSize_helper(_obj4, &_arg4))
878 return NULL;
879 }
880 if (_argo6) {
881 if (_argo6 == Py_None) { _arg6 = NULL; }
882 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
883 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p.");
884 return NULL;
885 }
886 }
887 {
888 wxPy_BEGIN_ALLOW_THREADS;
889 _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
890
891 wxPy_END_ALLOW_THREADS;
892 if (PyErr_Occurred()) return NULL;
893 } if (_result) {
894 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
895 _resultobj = Py_BuildValue("s",_ptemp);
896 } else {
897 Py_INCREF(Py_None);
898 _resultobj = Py_None;
899 }
900 return _resultobj;
901 }
902
903 #define new_wxPreBitmapButton() (new wxBitmapButton())
904 static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
905 PyObject * _resultobj;
906 wxBitmapButton * _result;
907 char *_kwnames[] = { NULL };
908 char _ptemp[128];
909
910 self = self;
911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames))
912 return NULL;
913 {
914 wxPy_BEGIN_ALLOW_THREADS;
915 _result = (wxBitmapButton *)new_wxPreBitmapButton();
916
917 wxPy_END_ALLOW_THREADS;
918 if (PyErr_Occurred()) return NULL;
919 } if (_result) {
920 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
921 _resultobj = Py_BuildValue("s",_ptemp);
922 } else {
923 Py_INCREF(Py_None);
924 _resultobj = Py_None;
925 }
926 return _resultobj;
927 }
928
929 #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
930 static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
931 PyObject * _resultobj;
932 bool _result;
933 wxBitmapButton * _arg0;
934 wxWindow * _arg1;
935 wxWindowID _arg2;
936 wxBitmap * _arg3;
937 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
938 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
939 long _arg6 = (long ) wxBU_AUTODRAW;
940 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
941 char * _arg8 = (char *) "button";
942 PyObject * _argo0 = 0;
943 PyObject * _argo1 = 0;
944 PyObject * _argo3 = 0;
945 wxPoint temp;
946 PyObject * _obj4 = 0;
947 wxSize temp0;
948 PyObject * _obj5 = 0;
949 PyObject * _argo7 = 0;
950 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL };
951
952 self = self;
953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
954 return NULL;
955 if (_argo0) {
956 if (_argo0 == Py_None) { _arg0 = NULL; }
957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p.");
959 return NULL;
960 }
961 }
962 if (_argo1) {
963 if (_argo1 == Py_None) { _arg1 = NULL; }
964 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
965 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p.");
966 return NULL;
967 }
968 }
969 if (_argo3) {
970 if (_argo3 == Py_None) { _arg3 = NULL; }
971 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
972 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p.");
973 return NULL;
974 }
975 }
976 if (_obj4)
977 {
978 _arg4 = &temp;
979 if (! wxPoint_helper(_obj4, &_arg4))
980 return NULL;
981 }
982 if (_obj5)
983 {
984 _arg5 = &temp0;
985 if (! wxSize_helper(_obj5, &_arg5))
986 return NULL;
987 }
988 if (_argo7) {
989 if (_argo7 == Py_None) { _arg7 = NULL; }
990 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
991 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p.");
992 return NULL;
993 }
994 }
995 {
996 wxPy_BEGIN_ALLOW_THREADS;
997 _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
998
999 wxPy_END_ALLOW_THREADS;
1000 if (PyErr_Occurred()) return NULL;
1001 } _resultobj = Py_BuildValue("i",_result);
1002 return _resultobj;
1003 }
1004
1005 #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel())
1006 static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1007 PyObject * _resultobj;
1008 wxBitmap * _result;
1009 wxBitmapButton * _arg0;
1010 PyObject * _argo0 = 0;
1011 char *_kwnames[] = { "self", NULL };
1012 char _ptemp[128];
1013
1014 self = self;
1015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0))
1016 return NULL;
1017 if (_argo0) {
1018 if (_argo0 == Py_None) { _arg0 = NULL; }
1019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p.");
1021 return NULL;
1022 }
1023 }
1024 {
1025 wxPy_BEGIN_ALLOW_THREADS;
1026 wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0);
1027 _result = (wxBitmap *) &_result_ref;
1028
1029 wxPy_END_ALLOW_THREADS;
1030 if (PyErr_Occurred()) return NULL;
1031 } if (_result) {
1032 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1033 _resultobj = Py_BuildValue("s",_ptemp);
1034 } else {
1035 Py_INCREF(Py_None);
1036 _resultobj = Py_None;
1037 }
1038 return _resultobj;
1039 }
1040
1041 #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled())
1042 static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject * _resultobj;
1044 wxBitmap * _result;
1045 wxBitmapButton * _arg0;
1046 PyObject * _argo0 = 0;
1047 char *_kwnames[] = { "self", NULL };
1048 char _ptemp[128];
1049
1050 self = self;
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0))
1052 return NULL;
1053 if (_argo0) {
1054 if (_argo0 == Py_None) { _arg0 = NULL; }
1055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p.");
1057 return NULL;
1058 }
1059 }
1060 {
1061 wxPy_BEGIN_ALLOW_THREADS;
1062 wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0);
1063 _result = (wxBitmap *) &_result_ref;
1064
1065 wxPy_END_ALLOW_THREADS;
1066 if (PyErr_Occurred()) return NULL;
1067 } if (_result) {
1068 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1069 _resultobj = Py_BuildValue("s",_ptemp);
1070 } else {
1071 Py_INCREF(Py_None);
1072 _resultobj = Py_None;
1073 }
1074 return _resultobj;
1075 }
1076
1077 #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus())
1078 static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject * _resultobj;
1080 wxBitmap * _result;
1081 wxBitmapButton * _arg0;
1082 PyObject * _argo0 = 0;
1083 char *_kwnames[] = { "self", NULL };
1084 char _ptemp[128];
1085
1086 self = self;
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0))
1088 return NULL;
1089 if (_argo0) {
1090 if (_argo0 == Py_None) { _arg0 = NULL; }
1091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p.");
1093 return NULL;
1094 }
1095 }
1096 {
1097 wxPy_BEGIN_ALLOW_THREADS;
1098 wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0);
1099 _result = (wxBitmap *) &_result_ref;
1100
1101 wxPy_END_ALLOW_THREADS;
1102 if (PyErr_Occurred()) return NULL;
1103 } if (_result) {
1104 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1105 _resultobj = Py_BuildValue("s",_ptemp);
1106 } else {
1107 Py_INCREF(Py_None);
1108 _resultobj = Py_None;
1109 }
1110 return _resultobj;
1111 }
1112
1113 #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected())
1114 static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1115 PyObject * _resultobj;
1116 wxBitmap * _result;
1117 wxBitmapButton * _arg0;
1118 PyObject * _argo0 = 0;
1119 char *_kwnames[] = { "self", NULL };
1120 char _ptemp[128];
1121
1122 self = self;
1123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0))
1124 return NULL;
1125 if (_argo0) {
1126 if (_argo0 == Py_None) { _arg0 = NULL; }
1127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p.");
1129 return NULL;
1130 }
1131 }
1132 {
1133 wxPy_BEGIN_ALLOW_THREADS;
1134 wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0);
1135 _result = (wxBitmap *) &_result_ref;
1136
1137 wxPy_END_ALLOW_THREADS;
1138 if (PyErr_Occurred()) return NULL;
1139 } if (_result) {
1140 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1141 _resultobj = Py_BuildValue("s",_ptemp);
1142 } else {
1143 Py_INCREF(Py_None);
1144 _resultobj = Py_None;
1145 }
1146 return _resultobj;
1147 }
1148
1149 #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0))
1150 static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject * _resultobj;
1152 wxBitmapButton * _arg0;
1153 wxBitmap * _arg1;
1154 PyObject * _argo0 = 0;
1155 PyObject * _argo1 = 0;
1156 char *_kwnames[] = { "self","bitmap", NULL };
1157
1158 self = self;
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1))
1160 return NULL;
1161 if (_argo0) {
1162 if (_argo0 == Py_None) { _arg0 = NULL; }
1163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p.");
1165 return NULL;
1166 }
1167 }
1168 if (_argo1) {
1169 if (_argo1 == Py_None) { _arg1 = NULL; }
1170 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1171 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p.");
1172 return NULL;
1173 }
1174 }
1175 {
1176 wxPy_BEGIN_ALLOW_THREADS;
1177 wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1);
1178
1179 wxPy_END_ALLOW_THREADS;
1180 if (PyErr_Occurred()) return NULL;
1181 } Py_INCREF(Py_None);
1182 _resultobj = Py_None;
1183 return _resultobj;
1184 }
1185
1186 #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0))
1187 static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1188 PyObject * _resultobj;
1189 wxBitmapButton * _arg0;
1190 wxBitmap * _arg1;
1191 PyObject * _argo0 = 0;
1192 PyObject * _argo1 = 0;
1193 char *_kwnames[] = { "self","bitmap", NULL };
1194
1195 self = self;
1196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1))
1197 return NULL;
1198 if (_argo0) {
1199 if (_argo0 == Py_None) { _arg0 = NULL; }
1200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p.");
1202 return NULL;
1203 }
1204 }
1205 if (_argo1) {
1206 if (_argo1 == Py_None) { _arg1 = NULL; }
1207 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1208 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p.");
1209 return NULL;
1210 }
1211 }
1212 {
1213 wxPy_BEGIN_ALLOW_THREADS;
1214 wxBitmapButton_SetBitmapFocus(_arg0,*_arg1);
1215
1216 wxPy_END_ALLOW_THREADS;
1217 if (PyErr_Occurred()) return NULL;
1218 } Py_INCREF(Py_None);
1219 _resultobj = Py_None;
1220 return _resultobj;
1221 }
1222
1223 #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0))
1224 static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1225 PyObject * _resultobj;
1226 wxBitmapButton * _arg0;
1227 wxBitmap * _arg1;
1228 PyObject * _argo0 = 0;
1229 PyObject * _argo1 = 0;
1230 char *_kwnames[] = { "self","bitmap", NULL };
1231
1232 self = self;
1233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1))
1234 return NULL;
1235 if (_argo0) {
1236 if (_argo0 == Py_None) { _arg0 = NULL; }
1237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p.");
1239 return NULL;
1240 }
1241 }
1242 if (_argo1) {
1243 if (_argo1 == Py_None) { _arg1 = NULL; }
1244 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1245 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p.");
1246 return NULL;
1247 }
1248 }
1249 {
1250 wxPy_BEGIN_ALLOW_THREADS;
1251 wxBitmapButton_SetBitmapSelected(_arg0,*_arg1);
1252
1253 wxPy_END_ALLOW_THREADS;
1254 if (PyErr_Occurred()) return NULL;
1255 } Py_INCREF(Py_None);
1256 _resultobj = Py_None;
1257 return _resultobj;
1258 }
1259
1260 #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0))
1261 static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1262 PyObject * _resultobj;
1263 wxBitmapButton * _arg0;
1264 wxBitmap * _arg1;
1265 PyObject * _argo0 = 0;
1266 PyObject * _argo1 = 0;
1267 char *_kwnames[] = { "self","bitmap", NULL };
1268
1269 self = self;
1270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1))
1271 return NULL;
1272 if (_argo0) {
1273 if (_argo0 == Py_None) { _arg0 = NULL; }
1274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p.");
1276 return NULL;
1277 }
1278 }
1279 if (_argo1) {
1280 if (_argo1 == Py_None) { _arg1 = NULL; }
1281 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1282 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p.");
1283 return NULL;
1284 }
1285 }
1286 {
1287 wxPy_BEGIN_ALLOW_THREADS;
1288 wxBitmapButton_SetBitmapLabel(_arg0,*_arg1);
1289
1290 wxPy_END_ALLOW_THREADS;
1291 if (PyErr_Occurred()) return NULL;
1292 } Py_INCREF(Py_None);
1293 _resultobj = Py_None;
1294 return _resultobj;
1295 }
1296
1297 #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
1298 static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1299 PyObject * _resultobj;
1300 wxBitmapButton * _arg0;
1301 int _arg1;
1302 int _arg2;
1303 PyObject * _argo0 = 0;
1304 char *_kwnames[] = { "self","x","y", NULL };
1305
1306 self = self;
1307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2))
1308 return NULL;
1309 if (_argo0) {
1310 if (_argo0 == Py_None) { _arg0 = NULL; }
1311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p.");
1313 return NULL;
1314 }
1315 }
1316 {
1317 wxPy_BEGIN_ALLOW_THREADS;
1318 wxBitmapButton_SetMargins(_arg0,_arg1,_arg2);
1319
1320 wxPy_END_ALLOW_THREADS;
1321 if (PyErr_Occurred()) return NULL;
1322 } Py_INCREF(Py_None);
1323 _resultobj = Py_None;
1324 return _resultobj;
1325 }
1326
1327 #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX())
1328 static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1329 PyObject * _resultobj;
1330 int _result;
1331 wxBitmapButton * _arg0;
1332 PyObject * _argo0 = 0;
1333 char *_kwnames[] = { "self", NULL };
1334
1335 self = self;
1336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0))
1337 return NULL;
1338 if (_argo0) {
1339 if (_argo0 == Py_None) { _arg0 = NULL; }
1340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p.");
1342 return NULL;
1343 }
1344 }
1345 {
1346 wxPy_BEGIN_ALLOW_THREADS;
1347 _result = (int )wxBitmapButton_GetMarginX(_arg0);
1348
1349 wxPy_END_ALLOW_THREADS;
1350 if (PyErr_Occurred()) return NULL;
1351 } _resultobj = Py_BuildValue("i",_result);
1352 return _resultobj;
1353 }
1354
1355 #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY())
1356 static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject * _resultobj;
1358 int _result;
1359 wxBitmapButton * _arg0;
1360 PyObject * _argo0 = 0;
1361 char *_kwnames[] = { "self", NULL };
1362
1363 self = self;
1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0))
1365 return NULL;
1366 if (_argo0) {
1367 if (_argo0 == Py_None) { _arg0 = NULL; }
1368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p.");
1370 return NULL;
1371 }
1372 }
1373 {
1374 wxPy_BEGIN_ALLOW_THREADS;
1375 _result = (int )wxBitmapButton_GetMarginY(_arg0);
1376
1377 wxPy_END_ALLOW_THREADS;
1378 if (PyErr_Occurred()) return NULL;
1379 } _resultobj = Py_BuildValue("i",_result);
1380 return _resultobj;
1381 }
1382
1383 static void *SwigwxCheckBoxTowxControl(void *ptr) {
1384 wxCheckBox *src;
1385 wxControl *dest;
1386 src = (wxCheckBox *) ptr;
1387 dest = (wxControl *) src;
1388 return (void *) dest;
1389 }
1390
1391 static void *SwigwxCheckBoxTowxWindow(void *ptr) {
1392 wxCheckBox *src;
1393 wxWindow *dest;
1394 src = (wxCheckBox *) ptr;
1395 dest = (wxWindow *) src;
1396 return (void *) dest;
1397 }
1398
1399 static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) {
1400 wxCheckBox *src;
1401 wxEvtHandler *dest;
1402 src = (wxCheckBox *) ptr;
1403 dest = (wxEvtHandler *) src;
1404 return (void *) dest;
1405 }
1406
1407 static void *SwigwxCheckBoxTowxObject(void *ptr) {
1408 wxCheckBox *src;
1409 wxObject *dest;
1410 src = (wxCheckBox *) ptr;
1411 dest = (wxObject *) src;
1412 return (void *) dest;
1413 }
1414
1415 #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1416 static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1417 PyObject * _resultobj;
1418 wxCheckBox * _result;
1419 wxWindow * _arg0;
1420 wxWindowID _arg1;
1421 wxString * _arg2;
1422 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1423 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1424 long _arg5 = (long ) 0;
1425 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
1426 char * _arg7 = (char *) "checkBox";
1427 PyObject * _argo0 = 0;
1428 PyObject * _obj2 = 0;
1429 wxPoint temp;
1430 PyObject * _obj3 = 0;
1431 wxSize temp0;
1432 PyObject * _obj4 = 0;
1433 PyObject * _argo6 = 0;
1434 char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL };
1435 char _ptemp[128];
1436
1437 self = self;
1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
1439 return NULL;
1440 if (_argo0) {
1441 if (_argo0 == Py_None) { _arg0 = NULL; }
1442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p.");
1444 return NULL;
1445 }
1446 }
1447 {
1448 #if PYTHON_API_VERSION >= 1009
1449 char* tmpPtr; int tmpSize;
1450 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1451 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1452 return NULL;
1453 }
1454 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1455 return NULL;
1456 _arg2 = new wxString(tmpPtr, tmpSize);
1457 #else
1458 if (!PyString_Check(_obj2)) {
1459 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1460 return NULL;
1461 }
1462 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1463 #endif
1464 }
1465 if (_obj3)
1466 {
1467 _arg3 = &temp;
1468 if (! wxPoint_helper(_obj3, &_arg3))
1469 return NULL;
1470 }
1471 if (_obj4)
1472 {
1473 _arg4 = &temp0;
1474 if (! wxSize_helper(_obj4, &_arg4))
1475 return NULL;
1476 }
1477 if (_argo6) {
1478 if (_argo6 == Py_None) { _arg6 = NULL; }
1479 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
1480 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p.");
1481 return NULL;
1482 }
1483 }
1484 {
1485 wxPy_BEGIN_ALLOW_THREADS;
1486 _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
1487
1488 wxPy_END_ALLOW_THREADS;
1489 if (PyErr_Occurred()) return NULL;
1490 } if (_result) {
1491 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1492 _resultobj = Py_BuildValue("s",_ptemp);
1493 } else {
1494 Py_INCREF(Py_None);
1495 _resultobj = Py_None;
1496 }
1497 {
1498 if (_obj2)
1499 delete _arg2;
1500 }
1501 return _resultobj;
1502 }
1503
1504 #define new_wxPreCheckBox() (new wxCheckBox())
1505 static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject * _resultobj;
1507 wxCheckBox * _result;
1508 char *_kwnames[] = { NULL };
1509 char _ptemp[128];
1510
1511 self = self;
1512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames))
1513 return NULL;
1514 {
1515 wxPy_BEGIN_ALLOW_THREADS;
1516 _result = (wxCheckBox *)new_wxPreCheckBox();
1517
1518 wxPy_END_ALLOW_THREADS;
1519 if (PyErr_Occurred()) return NULL;
1520 } if (_result) {
1521 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1522 _resultobj = Py_BuildValue("s",_ptemp);
1523 } else {
1524 Py_INCREF(Py_None);
1525 _resultobj = Py_None;
1526 }
1527 return _resultobj;
1528 }
1529
1530 #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1531 static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1532 PyObject * _resultobj;
1533 bool _result;
1534 wxCheckBox * _arg0;
1535 wxWindow * _arg1;
1536 wxWindowID _arg2;
1537 wxString * _arg3;
1538 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1539 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1540 long _arg6 = (long ) 0;
1541 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1542 char * _arg8 = (char *) "checkBox";
1543 PyObject * _argo0 = 0;
1544 PyObject * _argo1 = 0;
1545 PyObject * _obj3 = 0;
1546 wxPoint temp;
1547 PyObject * _obj4 = 0;
1548 wxSize temp0;
1549 PyObject * _obj5 = 0;
1550 PyObject * _argo7 = 0;
1551 char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL };
1552
1553 self = self;
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
1555 return NULL;
1556 if (_argo0) {
1557 if (_argo0 == Py_None) { _arg0 = NULL; }
1558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
1559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p.");
1560 return NULL;
1561 }
1562 }
1563 if (_argo1) {
1564 if (_argo1 == Py_None) { _arg1 = NULL; }
1565 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1566 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p.");
1567 return NULL;
1568 }
1569 }
1570 {
1571 #if PYTHON_API_VERSION >= 1009
1572 char* tmpPtr; int tmpSize;
1573 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1574 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1575 return NULL;
1576 }
1577 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1578 return NULL;
1579 _arg3 = new wxString(tmpPtr, tmpSize);
1580 #else
1581 if (!PyString_Check(_obj3)) {
1582 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1583 return NULL;
1584 }
1585 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1586 #endif
1587 }
1588 if (_obj4)
1589 {
1590 _arg4 = &temp;
1591 if (! wxPoint_helper(_obj4, &_arg4))
1592 return NULL;
1593 }
1594 if (_obj5)
1595 {
1596 _arg5 = &temp0;
1597 if (! wxSize_helper(_obj5, &_arg5))
1598 return NULL;
1599 }
1600 if (_argo7) {
1601 if (_argo7 == Py_None) { _arg7 = NULL; }
1602 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1603 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p.");
1604 return NULL;
1605 }
1606 }
1607 {
1608 wxPy_BEGIN_ALLOW_THREADS;
1609 _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
1610
1611 wxPy_END_ALLOW_THREADS;
1612 if (PyErr_Occurred()) return NULL;
1613 } _resultobj = Py_BuildValue("i",_result);
1614 {
1615 if (_obj3)
1616 delete _arg3;
1617 }
1618 return _resultobj;
1619 }
1620
1621 #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue())
1622 static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject * _resultobj;
1624 bool _result;
1625 wxCheckBox * _arg0;
1626 PyObject * _argo0 = 0;
1627 char *_kwnames[] = { "self", NULL };
1628
1629 self = self;
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0))
1631 return NULL;
1632 if (_argo0) {
1633 if (_argo0 == Py_None) { _arg0 = NULL; }
1634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
1635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p.");
1636 return NULL;
1637 }
1638 }
1639 {
1640 wxPy_BEGIN_ALLOW_THREADS;
1641 _result = (bool )wxCheckBox_GetValue(_arg0);
1642
1643 wxPy_END_ALLOW_THREADS;
1644 if (PyErr_Occurred()) return NULL;
1645 } _resultobj = Py_BuildValue("i",_result);
1646 return _resultobj;
1647 }
1648
1649 #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1650 static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1651 PyObject * _resultobj;
1652 wxCheckBox * _arg0;
1653 bool _arg1;
1654 PyObject * _argo0 = 0;
1655 int tempbool1;
1656 char *_kwnames[] = { "self","state", NULL };
1657
1658 self = self;
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1))
1660 return NULL;
1661 if (_argo0) {
1662 if (_argo0 == Py_None) { _arg0 = NULL; }
1663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
1664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p.");
1665 return NULL;
1666 }
1667 }
1668 _arg1 = (bool ) tempbool1;
1669 {
1670 wxPy_BEGIN_ALLOW_THREADS;
1671 wxCheckBox_SetValue(_arg0,_arg1);
1672
1673 wxPy_END_ALLOW_THREADS;
1674 if (PyErr_Occurred()) return NULL;
1675 } Py_INCREF(Py_None);
1676 _resultobj = Py_None;
1677 return _resultobj;
1678 }
1679
1680 static void *SwigwxChoiceTowxControl(void *ptr) {
1681 wxChoice *src;
1682 wxControl *dest;
1683 src = (wxChoice *) ptr;
1684 dest = (wxControl *) src;
1685 return (void *) dest;
1686 }
1687
1688 static void *SwigwxChoiceTowxWindow(void *ptr) {
1689 wxChoice *src;
1690 wxWindow *dest;
1691 src = (wxChoice *) ptr;
1692 dest = (wxWindow *) src;
1693 return (void *) dest;
1694 }
1695
1696 static void *SwigwxChoiceTowxEvtHandler(void *ptr) {
1697 wxChoice *src;
1698 wxEvtHandler *dest;
1699 src = (wxChoice *) ptr;
1700 dest = (wxEvtHandler *) src;
1701 return (void *) dest;
1702 }
1703
1704 static void *SwigwxChoiceTowxObject(void *ptr) {
1705 wxChoice *src;
1706 wxObject *dest;
1707 src = (wxChoice *) ptr;
1708 dest = (wxObject *) src;
1709 return (void *) dest;
1710 }
1711
1712 #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
1713 static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject * _resultobj;
1715 wxChoice * _result;
1716 wxWindow * _arg0;
1717 wxWindowID _arg1;
1718 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1719 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1720 int _arg4 = (int ) 0;
1721 wxString * _arg5 = (wxString *) NULL;
1722 long _arg6 = (long ) 0;
1723 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1724 char * _arg8 = (char *) "choice";
1725 PyObject * _argo0 = 0;
1726 wxPoint temp;
1727 PyObject * _obj2 = 0;
1728 wxSize temp0;
1729 PyObject * _obj3 = 0;
1730 PyObject * _obj5 = 0;
1731 PyObject * _argo7 = 0;
1732 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
1733 char _ptemp[128];
1734
1735 self = self;
1736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
1737 return NULL;
1738 if (_argo0) {
1739 if (_argo0 == Py_None) { _arg0 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p.");
1742 return NULL;
1743 }
1744 }
1745 if (_obj2)
1746 {
1747 _arg2 = &temp;
1748 if (! wxPoint_helper(_obj2, &_arg2))
1749 return NULL;
1750 }
1751 if (_obj3)
1752 {
1753 _arg3 = &temp0;
1754 if (! wxSize_helper(_obj3, &_arg3))
1755 return NULL;
1756 }
1757 if (_obj5)
1758 {
1759 _arg5 = wxString_LIST_helper(_obj5);
1760 if (_arg5 == NULL) {
1761 return NULL;
1762 }
1763 }
1764 if (_argo7) {
1765 if (_argo7 == Py_None) { _arg7 = NULL; }
1766 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1767 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p.");
1768 return NULL;
1769 }
1770 }
1771 {
1772 if (_obj5) {
1773 _arg4 = PyList_Size(_obj5);
1774 }
1775 else {
1776 _arg4 = 0;
1777 }
1778 }
1779 {
1780 wxPy_BEGIN_ALLOW_THREADS;
1781 _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
1782
1783 wxPy_END_ALLOW_THREADS;
1784 if (PyErr_Occurred()) return NULL;
1785 } if (_result) {
1786 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
1787 _resultobj = Py_BuildValue("s",_ptemp);
1788 } else {
1789 Py_INCREF(Py_None);
1790 _resultobj = Py_None;
1791 }
1792 {
1793 delete [] _arg5;
1794 }
1795 return _resultobj;
1796 }
1797
1798 #define new_wxPreChoice() (new wxChoice())
1799 static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
1800 PyObject * _resultobj;
1801 wxChoice * _result;
1802 char *_kwnames[] = { NULL };
1803 char _ptemp[128];
1804
1805 self = self;
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames))
1807 return NULL;
1808 {
1809 wxPy_BEGIN_ALLOW_THREADS;
1810 _result = (wxChoice *)new_wxPreChoice();
1811
1812 wxPy_END_ALLOW_THREADS;
1813 if (PyErr_Occurred()) return NULL;
1814 } if (_result) {
1815 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
1816 _resultobj = Py_BuildValue("s",_ptemp);
1817 } else {
1818 Py_INCREF(Py_None);
1819 _resultobj = Py_None;
1820 }
1821 return _resultobj;
1822 }
1823
1824 #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
1825 static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1826 PyObject * _resultobj;
1827 bool _result;
1828 wxChoice * _arg0;
1829 wxWindow * _arg1;
1830 wxWindowID _arg2;
1831 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1832 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1833 int _arg5 = (int ) 0;
1834 wxString * _arg6 = (wxString *) NULL;
1835 long _arg7 = (long ) 0;
1836 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
1837 char * _arg9 = (char *) "choice";
1838 PyObject * _argo0 = 0;
1839 PyObject * _argo1 = 0;
1840 wxPoint temp;
1841 PyObject * _obj3 = 0;
1842 wxSize temp0;
1843 PyObject * _obj4 = 0;
1844 PyObject * _obj6 = 0;
1845 PyObject * _argo8 = 0;
1846 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
1847
1848 self = self;
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
1850 return NULL;
1851 if (_argo0) {
1852 if (_argo0 == Py_None) { _arg0 = NULL; }
1853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p.");
1855 return NULL;
1856 }
1857 }
1858 if (_argo1) {
1859 if (_argo1 == Py_None) { _arg1 = NULL; }
1860 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1861 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p.");
1862 return NULL;
1863 }
1864 }
1865 if (_obj3)
1866 {
1867 _arg3 = &temp;
1868 if (! wxPoint_helper(_obj3, &_arg3))
1869 return NULL;
1870 }
1871 if (_obj4)
1872 {
1873 _arg4 = &temp0;
1874 if (! wxSize_helper(_obj4, &_arg4))
1875 return NULL;
1876 }
1877 if (_obj6)
1878 {
1879 _arg6 = wxString_LIST_helper(_obj6);
1880 if (_arg6 == NULL) {
1881 return NULL;
1882 }
1883 }
1884 if (_argo8) {
1885 if (_argo8 == Py_None) { _arg8 = NULL; }
1886 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
1887 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p.");
1888 return NULL;
1889 }
1890 }
1891 {
1892 if (_obj6) {
1893 _arg5 = PyList_Size(_obj6);
1894 }
1895 else {
1896 _arg5 = 0;
1897 }
1898 }
1899 {
1900 wxPy_BEGIN_ALLOW_THREADS;
1901 _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
1902
1903 wxPy_END_ALLOW_THREADS;
1904 if (PyErr_Occurred()) return NULL;
1905 } _resultobj = Py_BuildValue("i",_result);
1906 {
1907 delete [] _arg6;
1908 }
1909 return _resultobj;
1910 }
1911
1912 #define wxChoice_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
1913 static PyObject *_wrap_wxChoice_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject * _resultobj;
1915 wxChoice * _arg0;
1916 wxString * _arg1;
1917 PyObject * _argo0 = 0;
1918 PyObject * _obj1 = 0;
1919 char *_kwnames[] = { "self","item", NULL };
1920
1921 self = self;
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_Append",_kwnames,&_argo0,&_obj1))
1923 return NULL;
1924 if (_argo0) {
1925 if (_argo0 == Py_None) { _arg0 = NULL; }
1926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Append. Expected _wxChoice_p.");
1928 return NULL;
1929 }
1930 }
1931 {
1932 #if PYTHON_API_VERSION >= 1009
1933 char* tmpPtr; int tmpSize;
1934 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1935 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1936 return NULL;
1937 }
1938 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1939 return NULL;
1940 _arg1 = new wxString(tmpPtr, tmpSize);
1941 #else
1942 if (!PyString_Check(_obj1)) {
1943 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1944 return NULL;
1945 }
1946 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1947 #endif
1948 }
1949 {
1950 wxPy_BEGIN_ALLOW_THREADS;
1951 wxChoice_Append(_arg0,*_arg1);
1952
1953 wxPy_END_ALLOW_THREADS;
1954 if (PyErr_Occurred()) return NULL;
1955 } Py_INCREF(Py_None);
1956 _resultobj = Py_None;
1957 {
1958 if (_obj1)
1959 delete _arg1;
1960 }
1961 return _resultobj;
1962 }
1963
1964 #define wxChoice_Clear(_swigobj) (_swigobj->Clear())
1965 static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject * _resultobj;
1967 wxChoice * _arg0;
1968 PyObject * _argo0 = 0;
1969 char *_kwnames[] = { "self", NULL };
1970
1971 self = self;
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0))
1973 return NULL;
1974 if (_argo0) {
1975 if (_argo0 == Py_None) { _arg0 = NULL; }
1976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p.");
1978 return NULL;
1979 }
1980 }
1981 {
1982 wxPy_BEGIN_ALLOW_THREADS;
1983 wxChoice_Clear(_arg0);
1984
1985 wxPy_END_ALLOW_THREADS;
1986 if (PyErr_Occurred()) return NULL;
1987 } Py_INCREF(Py_None);
1988 _resultobj = Py_None;
1989 return _resultobj;
1990 }
1991
1992 #define wxChoice_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
1993 static PyObject *_wrap_wxChoice_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject * _resultobj;
1995 wxChoice * _arg0;
1996 int _arg1;
1997 PyObject * _argo0 = 0;
1998 char *_kwnames[] = { "self","n", NULL };
1999
2000 self = self;
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_Delete",_kwnames,&_argo0,&_arg1))
2002 return NULL;
2003 if (_argo0) {
2004 if (_argo0 == Py_None) { _arg0 = NULL; }
2005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Delete. Expected _wxChoice_p.");
2007 return NULL;
2008 }
2009 }
2010 {
2011 wxPy_BEGIN_ALLOW_THREADS;
2012 wxChoice_Delete(_arg0,_arg1);
2013
2014 wxPy_END_ALLOW_THREADS;
2015 if (PyErr_Occurred()) return NULL;
2016 } Py_INCREF(Py_None);
2017 _resultobj = Py_None;
2018 return _resultobj;
2019 }
2020
2021 #define wxChoice_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
2022 static PyObject *_wrap_wxChoice_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject * _resultobj;
2024 int _result;
2025 wxChoice * _arg0;
2026 wxString * _arg1;
2027 PyObject * _argo0 = 0;
2028 PyObject * _obj1 = 0;
2029 char *_kwnames[] = { "self","string", NULL };
2030
2031 self = self;
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_FindString",_kwnames,&_argo0,&_obj1))
2033 return NULL;
2034 if (_argo0) {
2035 if (_argo0 == Py_None) { _arg0 = NULL; }
2036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_FindString. Expected _wxChoice_p.");
2038 return NULL;
2039 }
2040 }
2041 {
2042 #if PYTHON_API_VERSION >= 1009
2043 char* tmpPtr; int tmpSize;
2044 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2045 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2046 return NULL;
2047 }
2048 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2049 return NULL;
2050 _arg1 = new wxString(tmpPtr, tmpSize);
2051 #else
2052 if (!PyString_Check(_obj1)) {
2053 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2054 return NULL;
2055 }
2056 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2057 #endif
2058 }
2059 {
2060 wxPy_BEGIN_ALLOW_THREADS;
2061 _result = (int )wxChoice_FindString(_arg0,*_arg1);
2062
2063 wxPy_END_ALLOW_THREADS;
2064 if (PyErr_Occurred()) return NULL;
2065 } _resultobj = Py_BuildValue("i",_result);
2066 {
2067 if (_obj1)
2068 delete _arg1;
2069 }
2070 return _resultobj;
2071 }
2072
2073 #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns())
2074 static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 int _result;
2077 wxChoice * _arg0;
2078 PyObject * _argo0 = 0;
2079 char *_kwnames[] = { "self", NULL };
2080
2081 self = self;
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0))
2083 return NULL;
2084 if (_argo0) {
2085 if (_argo0 == Py_None) { _arg0 = NULL; }
2086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p.");
2088 return NULL;
2089 }
2090 }
2091 {
2092 wxPy_BEGIN_ALLOW_THREADS;
2093 _result = (int )wxChoice_GetColumns(_arg0);
2094
2095 wxPy_END_ALLOW_THREADS;
2096 if (PyErr_Occurred()) return NULL;
2097 } _resultobj = Py_BuildValue("i",_result);
2098 return _resultobj;
2099 }
2100
2101 #define wxChoice_GetSelection(_swigobj) (_swigobj->GetSelection())
2102 static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject * _resultobj;
2104 int _result;
2105 wxChoice * _arg0;
2106 PyObject * _argo0 = 0;
2107 char *_kwnames[] = { "self", NULL };
2108
2109 self = self;
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetSelection",_kwnames,&_argo0))
2111 return NULL;
2112 if (_argo0) {
2113 if (_argo0 == Py_None) { _arg0 = NULL; }
2114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetSelection. Expected _wxChoice_p.");
2116 return NULL;
2117 }
2118 }
2119 {
2120 wxPy_BEGIN_ALLOW_THREADS;
2121 _result = (int )wxChoice_GetSelection(_arg0);
2122
2123 wxPy_END_ALLOW_THREADS;
2124 if (PyErr_Occurred()) return NULL;
2125 } _resultobj = Py_BuildValue("i",_result);
2126 return _resultobj;
2127 }
2128
2129 #define wxChoice_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
2130 static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2131 PyObject * _resultobj;
2132 wxString * _result;
2133 wxChoice * _arg0;
2134 int _arg1;
2135 PyObject * _argo0 = 0;
2136 char *_kwnames[] = { "self","n", NULL };
2137
2138 self = self;
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_GetString",_kwnames,&_argo0,&_arg1))
2140 return NULL;
2141 if (_argo0) {
2142 if (_argo0 == Py_None) { _arg0 = NULL; }
2143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetString. Expected _wxChoice_p.");
2145 return NULL;
2146 }
2147 }
2148 {
2149 wxPy_BEGIN_ALLOW_THREADS;
2150 _result = new wxString (wxChoice_GetString(_arg0,_arg1));
2151
2152 wxPy_END_ALLOW_THREADS;
2153 if (PyErr_Occurred()) return NULL;
2154 }{
2155 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2156 }
2157 {
2158 delete _result;
2159 }
2160 return _resultobj;
2161 }
2162
2163 #define wxChoice_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
2164 static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject * _resultobj;
2166 wxString * _result;
2167 wxChoice * _arg0;
2168 PyObject * _argo0 = 0;
2169 char *_kwnames[] = { "self", NULL };
2170
2171 self = self;
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetStringSelection",_kwnames,&_argo0))
2173 return NULL;
2174 if (_argo0) {
2175 if (_argo0 == Py_None) { _arg0 = NULL; }
2176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetStringSelection. Expected _wxChoice_p.");
2178 return NULL;
2179 }
2180 }
2181 {
2182 wxPy_BEGIN_ALLOW_THREADS;
2183 _result = new wxString (wxChoice_GetStringSelection(_arg0));
2184
2185 wxPy_END_ALLOW_THREADS;
2186 if (PyErr_Occurred()) return NULL;
2187 }{
2188 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2189 }
2190 {
2191 delete _result;
2192 }
2193 return _resultobj;
2194 }
2195
2196 #define wxChoice_GetCount(_swigobj) (_swigobj->GetCount())
2197 static PyObject *_wrap_wxChoice_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject * _resultobj;
2199 int _result;
2200 wxChoice * _arg0;
2201 PyObject * _argo0 = 0;
2202 char *_kwnames[] = { "self", NULL };
2203
2204 self = self;
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetCount",_kwnames,&_argo0))
2206 return NULL;
2207 if (_argo0) {
2208 if (_argo0 == Py_None) { _arg0 = NULL; }
2209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetCount. Expected _wxChoice_p.");
2211 return NULL;
2212 }
2213 }
2214 {
2215 wxPy_BEGIN_ALLOW_THREADS;
2216 _result = (int )wxChoice_GetCount(_arg0);
2217
2218 wxPy_END_ALLOW_THREADS;
2219 if (PyErr_Occurred()) return NULL;
2220 } _resultobj = Py_BuildValue("i",_result);
2221 return _resultobj;
2222 }
2223
2224 #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0))
2225 static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject * _resultobj;
2227 wxChoice * _arg0;
2228 int _arg1 = (int ) 1;
2229 PyObject * _argo0 = 0;
2230 char *_kwnames[] = { "self","n", NULL };
2231
2232 self = self;
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1))
2234 return NULL;
2235 if (_argo0) {
2236 if (_argo0 == Py_None) { _arg0 = NULL; }
2237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p.");
2239 return NULL;
2240 }
2241 }
2242 {
2243 wxPy_BEGIN_ALLOW_THREADS;
2244 wxChoice_SetColumns(_arg0,_arg1);
2245
2246 wxPy_END_ALLOW_THREADS;
2247 if (PyErr_Occurred()) return NULL;
2248 } Py_INCREF(Py_None);
2249 _resultobj = Py_None;
2250 return _resultobj;
2251 }
2252
2253 #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
2254 static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2255 PyObject * _resultobj;
2256 wxChoice * _arg0;
2257 int _arg1;
2258 PyObject * _argo0 = 0;
2259 char *_kwnames[] = { "self","n", NULL };
2260
2261 self = self;
2262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1))
2263 return NULL;
2264 if (_argo0) {
2265 if (_argo0 == Py_None) { _arg0 = NULL; }
2266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p.");
2268 return NULL;
2269 }
2270 }
2271 {
2272 wxPy_BEGIN_ALLOW_THREADS;
2273 wxChoice_SetSelection(_arg0,_arg1);
2274
2275 wxPy_END_ALLOW_THREADS;
2276 if (PyErr_Occurred()) return NULL;
2277 } Py_INCREF(Py_None);
2278 _resultobj = Py_None;
2279 return _resultobj;
2280 }
2281
2282 #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
2283 static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject * _resultobj;
2285 wxChoice * _arg0;
2286 wxString * _arg1;
2287 PyObject * _argo0 = 0;
2288 PyObject * _obj1 = 0;
2289 char *_kwnames[] = { "self","string", NULL };
2290
2291 self = self;
2292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1))
2293 return NULL;
2294 if (_argo0) {
2295 if (_argo0 == Py_None) { _arg0 = NULL; }
2296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p.");
2298 return NULL;
2299 }
2300 }
2301 {
2302 #if PYTHON_API_VERSION >= 1009
2303 char* tmpPtr; int tmpSize;
2304 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2305 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2306 return NULL;
2307 }
2308 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2309 return NULL;
2310 _arg1 = new wxString(tmpPtr, tmpSize);
2311 #else
2312 if (!PyString_Check(_obj1)) {
2313 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2314 return NULL;
2315 }
2316 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2317 #endif
2318 }
2319 {
2320 wxPy_BEGIN_ALLOW_THREADS;
2321 wxChoice_SetStringSelection(_arg0,*_arg1);
2322
2323 wxPy_END_ALLOW_THREADS;
2324 if (PyErr_Occurred()) return NULL;
2325 } Py_INCREF(Py_None);
2326 _resultobj = Py_None;
2327 {
2328 if (_obj1)
2329 delete _arg1;
2330 }
2331 return _resultobj;
2332 }
2333
2334 #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
2335 static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2336 PyObject * _resultobj;
2337 wxChoice * _arg0;
2338 int _arg1;
2339 wxString * _arg2;
2340 PyObject * _argo0 = 0;
2341 PyObject * _obj2 = 0;
2342 char *_kwnames[] = { "self","n","s", NULL };
2343
2344 self = self;
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
2346 return NULL;
2347 if (_argo0) {
2348 if (_argo0 == Py_None) { _arg0 = NULL; }
2349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p.");
2351 return NULL;
2352 }
2353 }
2354 {
2355 #if PYTHON_API_VERSION >= 1009
2356 char* tmpPtr; int tmpSize;
2357 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2358 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2359 return NULL;
2360 }
2361 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2362 return NULL;
2363 _arg2 = new wxString(tmpPtr, tmpSize);
2364 #else
2365 if (!PyString_Check(_obj2)) {
2366 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2367 return NULL;
2368 }
2369 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2370 #endif
2371 }
2372 {
2373 wxPy_BEGIN_ALLOW_THREADS;
2374 wxChoice_SetString(_arg0,_arg1,*_arg2);
2375
2376 wxPy_END_ALLOW_THREADS;
2377 if (PyErr_Occurred()) return NULL;
2378 } Py_INCREF(Py_None);
2379 _resultobj = Py_None;
2380 {
2381 if (_obj2)
2382 delete _arg2;
2383 }
2384 return _resultobj;
2385 }
2386
2387 static void *SwigwxComboBoxTowxChoice(void *ptr) {
2388 wxComboBox *src;
2389 wxChoice *dest;
2390 src = (wxComboBox *) ptr;
2391 dest = (wxChoice *) src;
2392 return (void *) dest;
2393 }
2394
2395 static void *SwigwxComboBoxTowxControl(void *ptr) {
2396 wxComboBox *src;
2397 wxControl *dest;
2398 src = (wxComboBox *) ptr;
2399 dest = (wxControl *) src;
2400 return (void *) dest;
2401 }
2402
2403 static void *SwigwxComboBoxTowxWindow(void *ptr) {
2404 wxComboBox *src;
2405 wxWindow *dest;
2406 src = (wxComboBox *) ptr;
2407 dest = (wxWindow *) src;
2408 return (void *) dest;
2409 }
2410
2411 static void *SwigwxComboBoxTowxEvtHandler(void *ptr) {
2412 wxComboBox *src;
2413 wxEvtHandler *dest;
2414 src = (wxComboBox *) ptr;
2415 dest = (wxEvtHandler *) src;
2416 return (void *) dest;
2417 }
2418
2419 static void *SwigwxComboBoxTowxObject(void *ptr) {
2420 wxComboBox *src;
2421 wxObject *dest;
2422 src = (wxComboBox *) ptr;
2423 dest = (wxObject *) src;
2424 return (void *) dest;
2425 }
2426
2427 #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))
2428 static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2429 PyObject * _resultobj;
2430 wxComboBox * _result;
2431 wxWindow * _arg0;
2432 wxWindowID _arg1;
2433 char * _arg2 = (char *) "";
2434 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2435 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2436 int _arg5 = (int ) 0;
2437 wxString * _arg6 = (wxString *) NULL;
2438 long _arg7 = (long ) 0;
2439 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2440 char * _arg9 = (char *) "comboBox";
2441 PyObject * _argo0 = 0;
2442 wxPoint temp;
2443 PyObject * _obj3 = 0;
2444 wxSize temp0;
2445 PyObject * _obj4 = 0;
2446 PyObject * _obj6 = 0;
2447 PyObject * _argo8 = 0;
2448 char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL };
2449 char _ptemp[128];
2450
2451 self = self;
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
2453 return NULL;
2454 if (_argo0) {
2455 if (_argo0 == Py_None) { _arg0 = NULL; }
2456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p.");
2458 return NULL;
2459 }
2460 }
2461 if (_obj3)
2462 {
2463 _arg3 = &temp;
2464 if (! wxPoint_helper(_obj3, &_arg3))
2465 return NULL;
2466 }
2467 if (_obj4)
2468 {
2469 _arg4 = &temp0;
2470 if (! wxSize_helper(_obj4, &_arg4))
2471 return NULL;
2472 }
2473 if (_obj6)
2474 {
2475 _arg6 = wxString_LIST_helper(_obj6);
2476 if (_arg6 == NULL) {
2477 return NULL;
2478 }
2479 }
2480 if (_argo8) {
2481 if (_argo8 == Py_None) { _arg8 = NULL; }
2482 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
2483 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p.");
2484 return NULL;
2485 }
2486 }
2487 {
2488 if (_obj6) {
2489 _arg5 = PyList_Size(_obj6);
2490 }
2491 else {
2492 _arg5 = 0;
2493 }
2494 }
2495 {
2496 wxPy_BEGIN_ALLOW_THREADS;
2497 _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
2498
2499 wxPy_END_ALLOW_THREADS;
2500 if (PyErr_Occurred()) return NULL;
2501 } if (_result) {
2502 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2503 _resultobj = Py_BuildValue("s",_ptemp);
2504 } else {
2505 Py_INCREF(Py_None);
2506 _resultobj = Py_None;
2507 }
2508 {
2509 delete [] _arg6;
2510 }
2511 return _resultobj;
2512 }
2513
2514 #define new_wxPreComboBox() (new wxComboBox())
2515 static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2516 PyObject * _resultobj;
2517 wxComboBox * _result;
2518 char *_kwnames[] = { NULL };
2519 char _ptemp[128];
2520
2521 self = self;
2522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames))
2523 return NULL;
2524 {
2525 wxPy_BEGIN_ALLOW_THREADS;
2526 _result = (wxComboBox *)new_wxPreComboBox();
2527
2528 wxPy_END_ALLOW_THREADS;
2529 if (PyErr_Occurred()) return NULL;
2530 } if (_result) {
2531 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2532 _resultobj = Py_BuildValue("s",_ptemp);
2533 } else {
2534 Py_INCREF(Py_None);
2535 _resultobj = Py_None;
2536 }
2537 return _resultobj;
2538 }
2539
2540 #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))
2541 static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2542 PyObject * _resultobj;
2543 bool _result;
2544 wxComboBox * _arg0;
2545 wxWindow * _arg1;
2546 wxWindowID _arg2;
2547 char * _arg3 = (char *) "";
2548 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2549 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2550 int _arg6 = (int ) 0;
2551 wxString * _arg7 = (wxString *) NULL;
2552 long _arg8 = (long ) 0;
2553 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
2554 char * _arg10 = (char *) "comboBox";
2555 PyObject * _argo0 = 0;
2556 PyObject * _argo1 = 0;
2557 wxPoint temp;
2558 PyObject * _obj4 = 0;
2559 wxSize temp0;
2560 PyObject * _obj5 = 0;
2561 PyObject * _obj7 = 0;
2562 PyObject * _argo9 = 0;
2563 char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL };
2564
2565 self = self;
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10))
2567 return NULL;
2568 if (_argo0) {
2569 if (_argo0 == Py_None) { _arg0 = NULL; }
2570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p.");
2572 return NULL;
2573 }
2574 }
2575 if (_argo1) {
2576 if (_argo1 == Py_None) { _arg1 = NULL; }
2577 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2578 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p.");
2579 return NULL;
2580 }
2581 }
2582 if (_obj4)
2583 {
2584 _arg4 = &temp;
2585 if (! wxPoint_helper(_obj4, &_arg4))
2586 return NULL;
2587 }
2588 if (_obj5)
2589 {
2590 _arg5 = &temp0;
2591 if (! wxSize_helper(_obj5, &_arg5))
2592 return NULL;
2593 }
2594 if (_obj7)
2595 {
2596 _arg7 = wxString_LIST_helper(_obj7);
2597 if (_arg7 == NULL) {
2598 return NULL;
2599 }
2600 }
2601 if (_argo9) {
2602 if (_argo9 == Py_None) { _arg9 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 if (_obj7) {
2610 _arg6 = PyList_Size(_obj7);
2611 }
2612 else {
2613 _arg6 = 0;
2614 }
2615 }
2616 {
2617 wxPy_BEGIN_ALLOW_THREADS;
2618 _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
2619
2620 wxPy_END_ALLOW_THREADS;
2621 if (PyErr_Occurred()) return NULL;
2622 } _resultobj = Py_BuildValue("i",_result);
2623 {
2624 delete [] _arg7;
2625 }
2626 return _resultobj;
2627 }
2628
2629 #define wxComboBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
2630 static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject * _resultobj;
2632 wxComboBox * _arg0;
2633 wxString * _arg1;
2634 PyObject * _argo0 = 0;
2635 PyObject * _obj1 = 0;
2636 char *_kwnames[] = { "self","item", NULL };
2637
2638 self = self;
2639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_Append",_kwnames,&_argo0,&_obj1))
2640 return NULL;
2641 if (_argo0) {
2642 if (_argo0 == Py_None) { _arg0 = NULL; }
2643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p.");
2645 return NULL;
2646 }
2647 }
2648 {
2649 #if PYTHON_API_VERSION >= 1009
2650 char* tmpPtr; int tmpSize;
2651 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2652 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2653 return NULL;
2654 }
2655 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2656 return NULL;
2657 _arg1 = new wxString(tmpPtr, tmpSize);
2658 #else
2659 if (!PyString_Check(_obj1)) {
2660 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2661 return NULL;
2662 }
2663 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2664 #endif
2665 }
2666 {
2667 wxPy_BEGIN_ALLOW_THREADS;
2668 wxComboBox_Append(_arg0,*_arg1);
2669
2670 wxPy_END_ALLOW_THREADS;
2671 if (PyErr_Occurred()) return NULL;
2672 } Py_INCREF(Py_None);
2673 _resultobj = Py_None;
2674 {
2675 if (_obj1)
2676 delete _arg1;
2677 }
2678 return _resultobj;
2679 }
2680
2681 #define wxComboBox_Clear(_swigobj) (_swigobj->Clear())
2682 static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
2683 PyObject * _resultobj;
2684 wxComboBox * _arg0;
2685 PyObject * _argo0 = 0;
2686 char *_kwnames[] = { "self", NULL };
2687
2688 self = self;
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0))
2690 return NULL;
2691 if (_argo0) {
2692 if (_argo0 == Py_None) { _arg0 = NULL; }
2693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p.");
2695 return NULL;
2696 }
2697 }
2698 {
2699 wxPy_BEGIN_ALLOW_THREADS;
2700 wxComboBox_Clear(_arg0);
2701
2702 wxPy_END_ALLOW_THREADS;
2703 if (PyErr_Occurred()) return NULL;
2704 } Py_INCREF(Py_None);
2705 _resultobj = Py_None;
2706 return _resultobj;
2707 }
2708
2709 #define wxComboBox_Copy(_swigobj) (_swigobj->Copy())
2710 static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
2711 PyObject * _resultobj;
2712 wxComboBox * _arg0;
2713 PyObject * _argo0 = 0;
2714 char *_kwnames[] = { "self", NULL };
2715
2716 self = self;
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0))
2718 return NULL;
2719 if (_argo0) {
2720 if (_argo0 == Py_None) { _arg0 = NULL; }
2721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p.");
2723 return NULL;
2724 }
2725 }
2726 {
2727 wxPy_BEGIN_ALLOW_THREADS;
2728 wxComboBox_Copy(_arg0);
2729
2730 wxPy_END_ALLOW_THREADS;
2731 if (PyErr_Occurred()) return NULL;
2732 } Py_INCREF(Py_None);
2733 _resultobj = Py_None;
2734 return _resultobj;
2735 }
2736
2737 #define wxComboBox_Cut(_swigobj) (_swigobj->Cut())
2738 static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
2739 PyObject * _resultobj;
2740 wxComboBox * _arg0;
2741 PyObject * _argo0 = 0;
2742 char *_kwnames[] = { "self", NULL };
2743
2744 self = self;
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0))
2746 return NULL;
2747 if (_argo0) {
2748 if (_argo0 == Py_None) { _arg0 = NULL; }
2749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p.");
2751 return NULL;
2752 }
2753 }
2754 {
2755 wxPy_BEGIN_ALLOW_THREADS;
2756 wxComboBox_Cut(_arg0);
2757
2758 wxPy_END_ALLOW_THREADS;
2759 if (PyErr_Occurred()) return NULL;
2760 } Py_INCREF(Py_None);
2761 _resultobj = Py_None;
2762 return _resultobj;
2763 }
2764
2765 #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
2766 static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
2767 PyObject * _resultobj;
2768 wxComboBox * _arg0;
2769 int _arg1;
2770 PyObject * _argo0 = 0;
2771 char *_kwnames[] = { "self","n", NULL };
2772
2773 self = self;
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1))
2775 return NULL;
2776 if (_argo0) {
2777 if (_argo0 == Py_None) { _arg0 = NULL; }
2778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p.");
2780 return NULL;
2781 }
2782 }
2783 {
2784 wxPy_BEGIN_ALLOW_THREADS;
2785 wxComboBox_Delete(_arg0,_arg1);
2786
2787 wxPy_END_ALLOW_THREADS;
2788 if (PyErr_Occurred()) return NULL;
2789 } Py_INCREF(Py_None);
2790 _resultobj = Py_None;
2791 return _resultobj;
2792 }
2793
2794 #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
2795 static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
2796 PyObject * _resultobj;
2797 int _result;
2798 wxComboBox * _arg0;
2799 wxString * _arg1;
2800 PyObject * _argo0 = 0;
2801 PyObject * _obj1 = 0;
2802 char *_kwnames[] = { "self","string", NULL };
2803
2804 self = self;
2805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1))
2806 return NULL;
2807 if (_argo0) {
2808 if (_argo0 == Py_None) { _arg0 = NULL; }
2809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p.");
2811 return NULL;
2812 }
2813 }
2814 {
2815 #if PYTHON_API_VERSION >= 1009
2816 char* tmpPtr; int tmpSize;
2817 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2818 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2819 return NULL;
2820 }
2821 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2822 return NULL;
2823 _arg1 = new wxString(tmpPtr, tmpSize);
2824 #else
2825 if (!PyString_Check(_obj1)) {
2826 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2827 return NULL;
2828 }
2829 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2830 #endif
2831 }
2832 {
2833 wxPy_BEGIN_ALLOW_THREADS;
2834 _result = (int )wxComboBox_FindString(_arg0,*_arg1);
2835
2836 wxPy_END_ALLOW_THREADS;
2837 if (PyErr_Occurred()) return NULL;
2838 } _resultobj = Py_BuildValue("i",_result);
2839 {
2840 if (_obj1)
2841 delete _arg1;
2842 }
2843 return _resultobj;
2844 }
2845
2846 #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
2847 static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject * _resultobj;
2849 long _result;
2850 wxComboBox * _arg0;
2851 PyObject * _argo0 = 0;
2852 char *_kwnames[] = { "self", NULL };
2853
2854 self = self;
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0))
2856 return NULL;
2857 if (_argo0) {
2858 if (_argo0 == Py_None) { _arg0 = NULL; }
2859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p.");
2861 return NULL;
2862 }
2863 }
2864 {
2865 wxPy_BEGIN_ALLOW_THREADS;
2866 _result = (long )wxComboBox_GetInsertionPoint(_arg0);
2867
2868 wxPy_END_ALLOW_THREADS;
2869 if (PyErr_Occurred()) return NULL;
2870 } _resultobj = Py_BuildValue("l",_result);
2871 return _resultobj;
2872 }
2873
2874 #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
2875 static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2876 PyObject * _resultobj;
2877 long _result;
2878 wxComboBox * _arg0;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p.");
2889 return NULL;
2890 }
2891 }
2892 {
2893 wxPy_BEGIN_ALLOW_THREADS;
2894 _result = (long )wxComboBox_GetLastPosition(_arg0);
2895
2896 wxPy_END_ALLOW_THREADS;
2897 if (PyErr_Occurred()) return NULL;
2898 } _resultobj = Py_BuildValue("l",_result);
2899 return _resultobj;
2900 }
2901
2902 #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection())
2903 static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2904 PyObject * _resultobj;
2905 int _result;
2906 wxComboBox * _arg0;
2907 PyObject * _argo0 = 0;
2908 char *_kwnames[] = { "self", NULL };
2909
2910 self = self;
2911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0))
2912 return NULL;
2913 if (_argo0) {
2914 if (_argo0 == Py_None) { _arg0 = NULL; }
2915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p.");
2917 return NULL;
2918 }
2919 }
2920 {
2921 wxPy_BEGIN_ALLOW_THREADS;
2922 _result = (int )wxComboBox_GetSelection(_arg0);
2923
2924 wxPy_END_ALLOW_THREADS;
2925 if (PyErr_Occurred()) return NULL;
2926 } _resultobj = Py_BuildValue("i",_result);
2927 return _resultobj;
2928 }
2929
2930 #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
2931 static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject * _resultobj;
2933 wxString * _result;
2934 wxComboBox * _arg0;
2935 int _arg1;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self","n", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 wxPy_BEGIN_ALLOW_THREADS;
2951 _result = new wxString (wxComboBox_GetString(_arg0,_arg1));
2952
2953 wxPy_END_ALLOW_THREADS;
2954 if (PyErr_Occurred()) return NULL;
2955 }{
2956 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2957 }
2958 {
2959 delete _result;
2960 }
2961 return _resultobj;
2962 }
2963
2964 #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
2965 static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2966 PyObject * _resultobj;
2967 wxString * _result;
2968 wxComboBox * _arg0;
2969 PyObject * _argo0 = 0;
2970 char *_kwnames[] = { "self", NULL };
2971
2972 self = self;
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0))
2974 return NULL;
2975 if (_argo0) {
2976 if (_argo0 == Py_None) { _arg0 = NULL; }
2977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p.");
2979 return NULL;
2980 }
2981 }
2982 {
2983 wxPy_BEGIN_ALLOW_THREADS;
2984 _result = new wxString (wxComboBox_GetStringSelection(_arg0));
2985
2986 wxPy_END_ALLOW_THREADS;
2987 if (PyErr_Occurred()) return NULL;
2988 }{
2989 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2990 }
2991 {
2992 delete _result;
2993 }
2994 return _resultobj;
2995 }
2996
2997 #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue())
2998 static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject * _resultobj;
3000 wxString * _result;
3001 wxComboBox * _arg0;
3002 PyObject * _argo0 = 0;
3003 char *_kwnames[] = { "self", NULL };
3004
3005 self = self;
3006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0))
3007 return NULL;
3008 if (_argo0) {
3009 if (_argo0 == Py_None) { _arg0 = NULL; }
3010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p.");
3012 return NULL;
3013 }
3014 }
3015 {
3016 wxPy_BEGIN_ALLOW_THREADS;
3017 _result = new wxString (wxComboBox_GetValue(_arg0));
3018
3019 wxPy_END_ALLOW_THREADS;
3020 if (PyErr_Occurred()) return NULL;
3021 }{
3022 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3023 }
3024 {
3025 delete _result;
3026 }
3027 return _resultobj;
3028 }
3029
3030 #define wxComboBox_Paste(_swigobj) (_swigobj->Paste())
3031 static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject * _resultobj;
3033 wxComboBox * _arg0;
3034 PyObject * _argo0 = 0;
3035 char *_kwnames[] = { "self", NULL };
3036
3037 self = self;
3038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0))
3039 return NULL;
3040 if (_argo0) {
3041 if (_argo0 == Py_None) { _arg0 = NULL; }
3042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p.");
3044 return NULL;
3045 }
3046 }
3047 {
3048 wxPy_BEGIN_ALLOW_THREADS;
3049 wxComboBox_Paste(_arg0);
3050
3051 wxPy_END_ALLOW_THREADS;
3052 if (PyErr_Occurred()) return NULL;
3053 } Py_INCREF(Py_None);
3054 _resultobj = Py_None;
3055 return _resultobj;
3056 }
3057
3058 #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
3059 static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3060 PyObject * _resultobj;
3061 wxComboBox * _arg0;
3062 long _arg1;
3063 long _arg2;
3064 wxString * _arg3;
3065 PyObject * _argo0 = 0;
3066 PyObject * _obj3 = 0;
3067 char *_kwnames[] = { "self","from","to","text", NULL };
3068
3069 self = self;
3070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3071 return NULL;
3072 if (_argo0) {
3073 if (_argo0 == Py_None) { _arg0 = NULL; }
3074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p.");
3076 return NULL;
3077 }
3078 }
3079 {
3080 #if PYTHON_API_VERSION >= 1009
3081 char* tmpPtr; int tmpSize;
3082 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3083 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3084 return NULL;
3085 }
3086 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3087 return NULL;
3088 _arg3 = new wxString(tmpPtr, tmpSize);
3089 #else
3090 if (!PyString_Check(_obj3)) {
3091 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3092 return NULL;
3093 }
3094 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3095 #endif
3096 }
3097 {
3098 wxPy_BEGIN_ALLOW_THREADS;
3099 wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3);
3100
3101 wxPy_END_ALLOW_THREADS;
3102 if (PyErr_Occurred()) return NULL;
3103 } Py_INCREF(Py_None);
3104 _resultobj = Py_None;
3105 {
3106 if (_obj3)
3107 delete _arg3;
3108 }
3109 return _resultobj;
3110 }
3111
3112 #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
3113 static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3114 PyObject * _resultobj;
3115 wxComboBox * _arg0;
3116 long _arg1;
3117 long _arg2;
3118 PyObject * _argo0 = 0;
3119 char *_kwnames[] = { "self","from","to", NULL };
3120
3121 self = self;
3122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
3123 return NULL;
3124 if (_argo0) {
3125 if (_argo0 == Py_None) { _arg0 = NULL; }
3126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p.");
3128 return NULL;
3129 }
3130 }
3131 {
3132 wxPy_BEGIN_ALLOW_THREADS;
3133 wxComboBox_Remove(_arg0,_arg1,_arg2);
3134
3135 wxPy_END_ALLOW_THREADS;
3136 if (PyErr_Occurred()) return NULL;
3137 } Py_INCREF(Py_None);
3138 _resultobj = Py_None;
3139 return _resultobj;
3140 }
3141
3142 #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
3143 static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3144 PyObject * _resultobj;
3145 wxComboBox * _arg0;
3146 long _arg1;
3147 PyObject * _argo0 = 0;
3148 char *_kwnames[] = { "self","pos", NULL };
3149
3150 self = self;
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
3152 return NULL;
3153 if (_argo0) {
3154 if (_argo0 == Py_None) { _arg0 = NULL; }
3155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p.");
3157 return NULL;
3158 }
3159 }
3160 {
3161 wxPy_BEGIN_ALLOW_THREADS;
3162 wxComboBox_SetInsertionPoint(_arg0,_arg1);
3163
3164 wxPy_END_ALLOW_THREADS;
3165 if (PyErr_Occurred()) return NULL;
3166 } Py_INCREF(Py_None);
3167 _resultobj = Py_None;
3168 return _resultobj;
3169 }
3170
3171 #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
3172 static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3173 PyObject * _resultobj;
3174 wxComboBox * _arg0;
3175 PyObject * _argo0 = 0;
3176 char *_kwnames[] = { "self", NULL };
3177
3178 self = self;
3179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0))
3180 return NULL;
3181 if (_argo0) {
3182 if (_argo0 == Py_None) { _arg0 = NULL; }
3183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p.");
3185 return NULL;
3186 }
3187 }
3188 {
3189 wxPy_BEGIN_ALLOW_THREADS;
3190 wxComboBox_SetInsertionPointEnd(_arg0);
3191
3192 wxPy_END_ALLOW_THREADS;
3193 if (PyErr_Occurred()) return NULL;
3194 } Py_INCREF(Py_None);
3195 _resultobj = Py_None;
3196 return _resultobj;
3197 }
3198
3199 #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
3200 static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject * _resultobj;
3202 wxComboBox * _arg0;
3203 int _arg1;
3204 PyObject * _argo0 = 0;
3205 char *_kwnames[] = { "self","n", NULL };
3206
3207 self = self;
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1))
3209 return NULL;
3210 if (_argo0) {
3211 if (_argo0 == Py_None) { _arg0 = NULL; }
3212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p.");
3214 return NULL;
3215 }
3216 }
3217 {
3218 wxPy_BEGIN_ALLOW_THREADS;
3219 wxComboBox_SetSelection(_arg0,_arg1);
3220
3221 wxPy_END_ALLOW_THREADS;
3222 if (PyErr_Occurred()) return NULL;
3223 } Py_INCREF(Py_None);
3224 _resultobj = Py_None;
3225 return _resultobj;
3226 }
3227
3228 #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
3229 static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject * _resultobj;
3231 wxComboBox * _arg0;
3232 long _arg1;
3233 long _arg2;
3234 PyObject * _argo0 = 0;
3235 char *_kwnames[] = { "self","from","to", NULL };
3236
3237 self = self;
3238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2))
3239 return NULL;
3240 if (_argo0) {
3241 if (_argo0 == Py_None) { _arg0 = NULL; }
3242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p.");
3244 return NULL;
3245 }
3246 }
3247 {
3248 wxPy_BEGIN_ALLOW_THREADS;
3249 wxComboBox_SetMark(_arg0,_arg1,_arg2);
3250
3251 wxPy_END_ALLOW_THREADS;
3252 if (PyErr_Occurred()) return NULL;
3253 } Py_INCREF(Py_None);
3254 _resultobj = Py_None;
3255 return _resultobj;
3256 }
3257
3258 #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
3259 static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject * _resultobj;
3261 wxComboBox * _arg0;
3262 wxString * _arg1;
3263 PyObject * _argo0 = 0;
3264 PyObject * _obj1 = 0;
3265 char *_kwnames[] = { "self","text", NULL };
3266
3267 self = self;
3268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1))
3269 return NULL;
3270 if (_argo0) {
3271 if (_argo0 == Py_None) { _arg0 = NULL; }
3272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p.");
3274 return NULL;
3275 }
3276 }
3277 {
3278 #if PYTHON_API_VERSION >= 1009
3279 char* tmpPtr; int tmpSize;
3280 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3281 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3282 return NULL;
3283 }
3284 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3285 return NULL;
3286 _arg1 = new wxString(tmpPtr, tmpSize);
3287 #else
3288 if (!PyString_Check(_obj1)) {
3289 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3290 return NULL;
3291 }
3292 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3293 #endif
3294 }
3295 {
3296 wxPy_BEGIN_ALLOW_THREADS;
3297 wxComboBox_SetValue(_arg0,*_arg1);
3298
3299 wxPy_END_ALLOW_THREADS;
3300 if (PyErr_Occurred()) return NULL;
3301 } Py_INCREF(Py_None);
3302 _resultobj = Py_None;
3303 {
3304 if (_obj1)
3305 delete _arg1;
3306 }
3307 return _resultobj;
3308 }
3309
3310 #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
3311 static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3312 PyObject * _resultobj;
3313 wxComboBox * _arg0;
3314 bool _arg1;
3315 PyObject * _argo0 = 0;
3316 int tempbool1;
3317 char *_kwnames[] = { "self","editable", NULL };
3318
3319 self = self;
3320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1))
3321 return NULL;
3322 if (_argo0) {
3323 if (_argo0 == Py_None) { _arg0 = NULL; }
3324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p.");
3326 return NULL;
3327 }
3328 }
3329 _arg1 = (bool ) tempbool1;
3330 {
3331 wxPy_BEGIN_ALLOW_THREADS;
3332 wxComboBox_SetEditable(_arg0,_arg1);
3333
3334 wxPy_END_ALLOW_THREADS;
3335 if (PyErr_Occurred()) return NULL;
3336 } Py_INCREF(Py_None);
3337 _resultobj = Py_None;
3338 return _resultobj;
3339 }
3340
3341 static void *SwigwxGaugeTowxControl(void *ptr) {
3342 wxGauge *src;
3343 wxControl *dest;
3344 src = (wxGauge *) ptr;
3345 dest = (wxControl *) src;
3346 return (void *) dest;
3347 }
3348
3349 static void *SwigwxGaugeTowxWindow(void *ptr) {
3350 wxGauge *src;
3351 wxWindow *dest;
3352 src = (wxGauge *) ptr;
3353 dest = (wxWindow *) src;
3354 return (void *) dest;
3355 }
3356
3357 static void *SwigwxGaugeTowxEvtHandler(void *ptr) {
3358 wxGauge *src;
3359 wxEvtHandler *dest;
3360 src = (wxGauge *) ptr;
3361 dest = (wxEvtHandler *) src;
3362 return (void *) dest;
3363 }
3364
3365 static void *SwigwxGaugeTowxObject(void *ptr) {
3366 wxGauge *src;
3367 wxObject *dest;
3368 src = (wxGauge *) ptr;
3369 dest = (wxObject *) src;
3370 return (void *) dest;
3371 }
3372
3373 #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3374 static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3375 PyObject * _resultobj;
3376 wxGauge * _result;
3377 wxWindow * _arg0;
3378 wxWindowID _arg1;
3379 int _arg2;
3380 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3381 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3382 long _arg5 = (long ) wxGA_HORIZONTAL;
3383 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3384 char * _arg7 = (char *) "gauge";
3385 PyObject * _argo0 = 0;
3386 wxPoint temp;
3387 PyObject * _obj3 = 0;
3388 wxSize temp0;
3389 PyObject * _obj4 = 0;
3390 PyObject * _argo6 = 0;
3391 char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL };
3392 char _ptemp[128];
3393
3394 self = self;
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
3396 return NULL;
3397 if (_argo0) {
3398 if (_argo0 == Py_None) { _arg0 = NULL; }
3399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p.");
3401 return NULL;
3402 }
3403 }
3404 if (_obj3)
3405 {
3406 _arg3 = &temp;
3407 if (! wxPoint_helper(_obj3, &_arg3))
3408 return NULL;
3409 }
3410 if (_obj4)
3411 {
3412 _arg4 = &temp0;
3413 if (! wxSize_helper(_obj4, &_arg4))
3414 return NULL;
3415 }
3416 if (_argo6) {
3417 if (_argo6 == Py_None) { _arg6 = NULL; }
3418 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3419 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p.");
3420 return NULL;
3421 }
3422 }
3423 {
3424 wxPy_BEGIN_ALLOW_THREADS;
3425 _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3426
3427 wxPy_END_ALLOW_THREADS;
3428 if (PyErr_Occurred()) return NULL;
3429 } if (_result) {
3430 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3431 _resultobj = Py_BuildValue("s",_ptemp);
3432 } else {
3433 Py_INCREF(Py_None);
3434 _resultobj = Py_None;
3435 }
3436 return _resultobj;
3437 }
3438
3439 #define new_wxPreGauge() (new wxGauge())
3440 static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3441 PyObject * _resultobj;
3442 wxGauge * _result;
3443 char *_kwnames[] = { NULL };
3444 char _ptemp[128];
3445
3446 self = self;
3447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames))
3448 return NULL;
3449 {
3450 wxPy_BEGIN_ALLOW_THREADS;
3451 _result = (wxGauge *)new_wxPreGauge();
3452
3453 wxPy_END_ALLOW_THREADS;
3454 if (PyErr_Occurred()) return NULL;
3455 } if (_result) {
3456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3457 _resultobj = Py_BuildValue("s",_ptemp);
3458 } else {
3459 Py_INCREF(Py_None);
3460 _resultobj = Py_None;
3461 }
3462 return _resultobj;
3463 }
3464
3465 #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3466 static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3467 PyObject * _resultobj;
3468 bool _result;
3469 wxGauge * _arg0;
3470 wxWindow * _arg1;
3471 wxWindowID _arg2;
3472 int _arg3;
3473 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3474 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3475 long _arg6 = (long ) wxGA_HORIZONTAL;
3476 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
3477 char * _arg8 = (char *) "gauge";
3478 PyObject * _argo0 = 0;
3479 PyObject * _argo1 = 0;
3480 wxPoint temp;
3481 PyObject * _obj4 = 0;
3482 wxSize temp0;
3483 PyObject * _obj5 = 0;
3484 PyObject * _argo7 = 0;
3485 char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL };
3486
3487 self = self;
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
3489 return NULL;
3490 if (_argo0) {
3491 if (_argo0 == Py_None) { _arg0 = NULL; }
3492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p.");
3494 return NULL;
3495 }
3496 }
3497 if (_argo1) {
3498 if (_argo1 == Py_None) { _arg1 = NULL; }
3499 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3500 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p.");
3501 return NULL;
3502 }
3503 }
3504 if (_obj4)
3505 {
3506 _arg4 = &temp;
3507 if (! wxPoint_helper(_obj4, &_arg4))
3508 return NULL;
3509 }
3510 if (_obj5)
3511 {
3512 _arg5 = &temp0;
3513 if (! wxSize_helper(_obj5, &_arg5))
3514 return NULL;
3515 }
3516 if (_argo7) {
3517 if (_argo7 == Py_None) { _arg7 = NULL; }
3518 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
3519 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p.");
3520 return NULL;
3521 }
3522 }
3523 {
3524 wxPy_BEGIN_ALLOW_THREADS;
3525 _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
3526
3527 wxPy_END_ALLOW_THREADS;
3528 if (PyErr_Occurred()) return NULL;
3529 } _resultobj = Py_BuildValue("i",_result);
3530 return _resultobj;
3531 }
3532
3533 #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace())
3534 static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3535 PyObject * _resultobj;
3536 int _result;
3537 wxGauge * _arg0;
3538 PyObject * _argo0 = 0;
3539 char *_kwnames[] = { "self", NULL };
3540
3541 self = self;
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0))
3543 return NULL;
3544 if (_argo0) {
3545 if (_argo0 == Py_None) { _arg0 = NULL; }
3546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p.");
3548 return NULL;
3549 }
3550 }
3551 {
3552 wxPy_BEGIN_ALLOW_THREADS;
3553 _result = (int )wxGauge_GetBezelFace(_arg0);
3554
3555 wxPy_END_ALLOW_THREADS;
3556 if (PyErr_Occurred()) return NULL;
3557 } _resultobj = Py_BuildValue("i",_result);
3558 return _resultobj;
3559 }
3560
3561 #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange())
3562 static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3563 PyObject * _resultobj;
3564 int _result;
3565 wxGauge * _arg0;
3566 PyObject * _argo0 = 0;
3567 char *_kwnames[] = { "self", NULL };
3568
3569 self = self;
3570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0))
3571 return NULL;
3572 if (_argo0) {
3573 if (_argo0 == Py_None) { _arg0 = NULL; }
3574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p.");
3576 return NULL;
3577 }
3578 }
3579 {
3580 wxPy_BEGIN_ALLOW_THREADS;
3581 _result = (int )wxGauge_GetRange(_arg0);
3582
3583 wxPy_END_ALLOW_THREADS;
3584 if (PyErr_Occurred()) return NULL;
3585 } _resultobj = Py_BuildValue("i",_result);
3586 return _resultobj;
3587 }
3588
3589 #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth())
3590 static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject * _resultobj;
3592 int _result;
3593 wxGauge * _arg0;
3594 PyObject * _argo0 = 0;
3595 char *_kwnames[] = { "self", NULL };
3596
3597 self = self;
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0))
3599 return NULL;
3600 if (_argo0) {
3601 if (_argo0 == Py_None) { _arg0 = NULL; }
3602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p.");
3604 return NULL;
3605 }
3606 }
3607 {
3608 wxPy_BEGIN_ALLOW_THREADS;
3609 _result = (int )wxGauge_GetShadowWidth(_arg0);
3610
3611 wxPy_END_ALLOW_THREADS;
3612 if (PyErr_Occurred()) return NULL;
3613 } _resultobj = Py_BuildValue("i",_result);
3614 return _resultobj;
3615 }
3616
3617 #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue())
3618 static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3619 PyObject * _resultobj;
3620 int _result;
3621 wxGauge * _arg0;
3622 PyObject * _argo0 = 0;
3623 char *_kwnames[] = { "self", NULL };
3624
3625 self = self;
3626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0))
3627 return NULL;
3628 if (_argo0) {
3629 if (_argo0 == Py_None) { _arg0 = NULL; }
3630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p.");
3632 return NULL;
3633 }
3634 }
3635 {
3636 wxPy_BEGIN_ALLOW_THREADS;
3637 _result = (int )wxGauge_GetValue(_arg0);
3638
3639 wxPy_END_ALLOW_THREADS;
3640 if (PyErr_Occurred()) return NULL;
3641 } _resultobj = Py_BuildValue("i",_result);
3642 return _resultobj;
3643 }
3644
3645 #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0))
3646 static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject * _resultobj;
3648 wxGauge * _arg0;
3649 int _arg1;
3650 PyObject * _argo0 = 0;
3651 char *_kwnames[] = { "self","width", NULL };
3652
3653 self = self;
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1))
3655 return NULL;
3656 if (_argo0) {
3657 if (_argo0 == Py_None) { _arg0 = NULL; }
3658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p.");
3660 return NULL;
3661 }
3662 }
3663 {
3664 wxPy_BEGIN_ALLOW_THREADS;
3665 wxGauge_SetBezelFace(_arg0,_arg1);
3666
3667 wxPy_END_ALLOW_THREADS;
3668 if (PyErr_Occurred()) return NULL;
3669 } Py_INCREF(Py_None);
3670 _resultobj = Py_None;
3671 return _resultobj;
3672 }
3673
3674 #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0))
3675 static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject * _resultobj;
3677 wxGauge * _arg0;
3678 int _arg1;
3679 PyObject * _argo0 = 0;
3680 char *_kwnames[] = { "self","range", NULL };
3681
3682 self = self;
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1))
3684 return NULL;
3685 if (_argo0) {
3686 if (_argo0 == Py_None) { _arg0 = NULL; }
3687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p.");
3689 return NULL;
3690 }
3691 }
3692 {
3693 wxPy_BEGIN_ALLOW_THREADS;
3694 wxGauge_SetRange(_arg0,_arg1);
3695
3696 wxPy_END_ALLOW_THREADS;
3697 if (PyErr_Occurred()) return NULL;
3698 } Py_INCREF(Py_None);
3699 _resultobj = Py_None;
3700 return _resultobj;
3701 }
3702
3703 #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0))
3704 static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject * _resultobj;
3706 wxGauge * _arg0;
3707 int _arg1;
3708 PyObject * _argo0 = 0;
3709 char *_kwnames[] = { "self","width", NULL };
3710
3711 self = self;
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1))
3713 return NULL;
3714 if (_argo0) {
3715 if (_argo0 == Py_None) { _arg0 = NULL; }
3716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p.");
3718 return NULL;
3719 }
3720 }
3721 {
3722 wxPy_BEGIN_ALLOW_THREADS;
3723 wxGauge_SetShadowWidth(_arg0,_arg1);
3724
3725 wxPy_END_ALLOW_THREADS;
3726 if (PyErr_Occurred()) return NULL;
3727 } Py_INCREF(Py_None);
3728 _resultobj = Py_None;
3729 return _resultobj;
3730 }
3731
3732 #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
3733 static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3734 PyObject * _resultobj;
3735 wxGauge * _arg0;
3736 int _arg1;
3737 PyObject * _argo0 = 0;
3738 char *_kwnames[] = { "self","pos", NULL };
3739
3740 self = self;
3741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1))
3742 return NULL;
3743 if (_argo0) {
3744 if (_argo0 == Py_None) { _arg0 = NULL; }
3745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p.");
3747 return NULL;
3748 }
3749 }
3750 {
3751 wxPy_BEGIN_ALLOW_THREADS;
3752 wxGauge_SetValue(_arg0,_arg1);
3753
3754 wxPy_END_ALLOW_THREADS;
3755 if (PyErr_Occurred()) return NULL;
3756 } Py_INCREF(Py_None);
3757 _resultobj = Py_None;
3758 return _resultobj;
3759 }
3760
3761 static void *SwigwxStaticBoxTowxControl(void *ptr) {
3762 wxStaticBox *src;
3763 wxControl *dest;
3764 src = (wxStaticBox *) ptr;
3765 dest = (wxControl *) src;
3766 return (void *) dest;
3767 }
3768
3769 static void *SwigwxStaticBoxTowxWindow(void *ptr) {
3770 wxStaticBox *src;
3771 wxWindow *dest;
3772 src = (wxStaticBox *) ptr;
3773 dest = (wxWindow *) src;
3774 return (void *) dest;
3775 }
3776
3777 static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) {
3778 wxStaticBox *src;
3779 wxEvtHandler *dest;
3780 src = (wxStaticBox *) ptr;
3781 dest = (wxEvtHandler *) src;
3782 return (void *) dest;
3783 }
3784
3785 static void *SwigwxStaticBoxTowxObject(void *ptr) {
3786 wxStaticBox *src;
3787 wxObject *dest;
3788 src = (wxStaticBox *) ptr;
3789 dest = (wxObject *) src;
3790 return (void *) dest;
3791 }
3792
3793 #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3794 static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3795 PyObject * _resultobj;
3796 wxStaticBox * _result;
3797 wxWindow * _arg0;
3798 wxWindowID _arg1;
3799 wxString * _arg2;
3800 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3801 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3802 long _arg5 = (long ) 0;
3803 char * _arg6 = (char *) "staticBox";
3804 PyObject * _argo0 = 0;
3805 PyObject * _obj2 = 0;
3806 wxPoint temp;
3807 PyObject * _obj3 = 0;
3808 wxSize temp0;
3809 PyObject * _obj4 = 0;
3810 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
3811 char _ptemp[128];
3812
3813 self = self;
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
3815 return NULL;
3816 if (_argo0) {
3817 if (_argo0 == Py_None) { _arg0 = NULL; }
3818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p.");
3820 return NULL;
3821 }
3822 }
3823 {
3824 #if PYTHON_API_VERSION >= 1009
3825 char* tmpPtr; int tmpSize;
3826 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3827 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3828 return NULL;
3829 }
3830 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3831 return NULL;
3832 _arg2 = new wxString(tmpPtr, tmpSize);
3833 #else
3834 if (!PyString_Check(_obj2)) {
3835 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3836 return NULL;
3837 }
3838 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3839 #endif
3840 }
3841 if (_obj3)
3842 {
3843 _arg3 = &temp;
3844 if (! wxPoint_helper(_obj3, &_arg3))
3845 return NULL;
3846 }
3847 if (_obj4)
3848 {
3849 _arg4 = &temp0;
3850 if (! wxSize_helper(_obj4, &_arg4))
3851 return NULL;
3852 }
3853 {
3854 wxPy_BEGIN_ALLOW_THREADS;
3855 _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
3856
3857 wxPy_END_ALLOW_THREADS;
3858 if (PyErr_Occurred()) return NULL;
3859 } if (_result) {
3860 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
3861 _resultobj = Py_BuildValue("s",_ptemp);
3862 } else {
3863 Py_INCREF(Py_None);
3864 _resultobj = Py_None;
3865 }
3866 {
3867 if (_obj2)
3868 delete _arg2;
3869 }
3870 return _resultobj;
3871 }
3872
3873 #define new_wxPreStaticBox() (new wxStaticBox())
3874 static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject * _resultobj;
3876 wxStaticBox * _result;
3877 char *_kwnames[] = { NULL };
3878 char _ptemp[128];
3879
3880 self = self;
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames))
3882 return NULL;
3883 {
3884 wxPy_BEGIN_ALLOW_THREADS;
3885 _result = (wxStaticBox *)new_wxPreStaticBox();
3886
3887 wxPy_END_ALLOW_THREADS;
3888 if (PyErr_Occurred()) return NULL;
3889 } if (_result) {
3890 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
3891 _resultobj = Py_BuildValue("s",_ptemp);
3892 } else {
3893 Py_INCREF(Py_None);
3894 _resultobj = Py_None;
3895 }
3896 return _resultobj;
3897 }
3898
3899 #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3900 static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3901 PyObject * _resultobj;
3902 bool _result;
3903 wxStaticBox * _arg0;
3904 wxWindow * _arg1;
3905 wxWindowID _arg2;
3906 wxString * _arg3;
3907 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3908 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3909 long _arg6 = (long ) 0;
3910 char * _arg7 = (char *) "staticBox";
3911 PyObject * _argo0 = 0;
3912 PyObject * _argo1 = 0;
3913 PyObject * _obj3 = 0;
3914 wxPoint temp;
3915 PyObject * _obj4 = 0;
3916 wxSize temp0;
3917 PyObject * _obj5 = 0;
3918 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
3919
3920 self = self;
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
3922 return NULL;
3923 if (_argo0) {
3924 if (_argo0 == Py_None) { _arg0 = NULL; }
3925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
3926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p.");
3927 return NULL;
3928 }
3929 }
3930 if (_argo1) {
3931 if (_argo1 == Py_None) { _arg1 = NULL; }
3932 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3933 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p.");
3934 return NULL;
3935 }
3936 }
3937 {
3938 #if PYTHON_API_VERSION >= 1009
3939 char* tmpPtr; int tmpSize;
3940 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3941 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3942 return NULL;
3943 }
3944 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3945 return NULL;
3946 _arg3 = new wxString(tmpPtr, tmpSize);
3947 #else
3948 if (!PyString_Check(_obj3)) {
3949 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3950 return NULL;
3951 }
3952 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3953 #endif
3954 }
3955 if (_obj4)
3956 {
3957 _arg4 = &temp;
3958 if (! wxPoint_helper(_obj4, &_arg4))
3959 return NULL;
3960 }
3961 if (_obj5)
3962 {
3963 _arg5 = &temp0;
3964 if (! wxSize_helper(_obj5, &_arg5))
3965 return NULL;
3966 }
3967 {
3968 wxPy_BEGIN_ALLOW_THREADS;
3969 _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
3970
3971 wxPy_END_ALLOW_THREADS;
3972 if (PyErr_Occurred()) return NULL;
3973 } _resultobj = Py_BuildValue("i",_result);
3974 {
3975 if (_obj3)
3976 delete _arg3;
3977 }
3978 return _resultobj;
3979 }
3980
3981 static void *SwigwxStaticLineTowxControl(void *ptr) {
3982 wxStaticLine *src;
3983 wxControl *dest;
3984 src = (wxStaticLine *) ptr;
3985 dest = (wxControl *) src;
3986 return (void *) dest;
3987 }
3988
3989 static void *SwigwxStaticLineTowxWindow(void *ptr) {
3990 wxStaticLine *src;
3991 wxWindow *dest;
3992 src = (wxStaticLine *) ptr;
3993 dest = (wxWindow *) src;
3994 return (void *) dest;
3995 }
3996
3997 static void *SwigwxStaticLineTowxEvtHandler(void *ptr) {
3998 wxStaticLine *src;
3999 wxEvtHandler *dest;
4000 src = (wxStaticLine *) ptr;
4001 dest = (wxEvtHandler *) src;
4002 return (void *) dest;
4003 }
4004
4005 static void *SwigwxStaticLineTowxObject(void *ptr) {
4006 wxStaticLine *src;
4007 wxObject *dest;
4008 src = (wxStaticLine *) ptr;
4009 dest = (wxObject *) src;
4010 return (void *) dest;
4011 }
4012
4013 #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4014 static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject * _resultobj;
4016 wxStaticLine * _result;
4017 wxWindow * _arg0;
4018 wxWindowID _arg1;
4019 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4020 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4021 long _arg4 = (long ) wxLI_HORIZONTAL;
4022 char * _arg5 = (char *) "staticLine";
4023 PyObject * _argo0 = 0;
4024 wxPoint temp;
4025 PyObject * _obj2 = 0;
4026 wxSize temp0;
4027 PyObject * _obj3 = 0;
4028 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4029 char _ptemp[128];
4030
4031 self = self;
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
4033 return NULL;
4034 if (_argo0) {
4035 if (_argo0 == Py_None) { _arg0 = NULL; }
4036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p.");
4038 return NULL;
4039 }
4040 }
4041 if (_obj2)
4042 {
4043 _arg2 = &temp;
4044 if (! wxPoint_helper(_obj2, &_arg2))
4045 return NULL;
4046 }
4047 if (_obj3)
4048 {
4049 _arg3 = &temp0;
4050 if (! wxSize_helper(_obj3, &_arg3))
4051 return NULL;
4052 }
4053 {
4054 wxPy_BEGIN_ALLOW_THREADS;
4055 _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4056
4057 wxPy_END_ALLOW_THREADS;
4058 if (PyErr_Occurred()) return NULL;
4059 } if (_result) {
4060 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4061 _resultobj = Py_BuildValue("s",_ptemp);
4062 } else {
4063 Py_INCREF(Py_None);
4064 _resultobj = Py_None;
4065 }
4066 return _resultobj;
4067 }
4068
4069 #define new_wxPreStaticLine() (new wxStaticLine())
4070 static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject * _resultobj;
4072 wxStaticLine * _result;
4073 char *_kwnames[] = { NULL };
4074 char _ptemp[128];
4075
4076 self = self;
4077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames))
4078 return NULL;
4079 {
4080 wxPy_BEGIN_ALLOW_THREADS;
4081 _result = (wxStaticLine *)new_wxPreStaticLine();
4082
4083 wxPy_END_ALLOW_THREADS;
4084 if (PyErr_Occurred()) return NULL;
4085 } if (_result) {
4086 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4087 _resultobj = Py_BuildValue("s",_ptemp);
4088 } else {
4089 Py_INCREF(Py_None);
4090 _resultobj = Py_None;
4091 }
4092 return _resultobj;
4093 }
4094
4095 #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4096 static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject * _resultobj;
4098 bool _result;
4099 wxStaticLine * _arg0;
4100 wxWindow * _arg1;
4101 wxWindowID _arg2;
4102 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4103 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4104 long _arg5 = (long ) wxLI_HORIZONTAL;
4105 char * _arg6 = (char *) "staticLine";
4106 PyObject * _argo0 = 0;
4107 PyObject * _argo1 = 0;
4108 wxPoint temp;
4109 PyObject * _obj3 = 0;
4110 wxSize temp0;
4111 PyObject * _obj4 = 0;
4112 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
4113
4114 self = self;
4115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
4116 return NULL;
4117 if (_argo0) {
4118 if (_argo0 == Py_None) { _arg0 = NULL; }
4119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) {
4120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p.");
4121 return NULL;
4122 }
4123 }
4124 if (_argo1) {
4125 if (_argo1 == Py_None) { _arg1 = NULL; }
4126 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4127 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p.");
4128 return NULL;
4129 }
4130 }
4131 if (_obj3)
4132 {
4133 _arg3 = &temp;
4134 if (! wxPoint_helper(_obj3, &_arg3))
4135 return NULL;
4136 }
4137 if (_obj4)
4138 {
4139 _arg4 = &temp0;
4140 if (! wxSize_helper(_obj4, &_arg4))
4141 return NULL;
4142 }
4143 {
4144 wxPy_BEGIN_ALLOW_THREADS;
4145 _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
4146
4147 wxPy_END_ALLOW_THREADS;
4148 if (PyErr_Occurred()) return NULL;
4149 } _resultobj = Py_BuildValue("i",_result);
4150 return _resultobj;
4151 }
4152
4153 static void *SwigwxStaticTextTowxControl(void *ptr) {
4154 wxStaticText *src;
4155 wxControl *dest;
4156 src = (wxStaticText *) ptr;
4157 dest = (wxControl *) src;
4158 return (void *) dest;
4159 }
4160
4161 static void *SwigwxStaticTextTowxWindow(void *ptr) {
4162 wxStaticText *src;
4163 wxWindow *dest;
4164 src = (wxStaticText *) ptr;
4165 dest = (wxWindow *) src;
4166 return (void *) dest;
4167 }
4168
4169 static void *SwigwxStaticTextTowxEvtHandler(void *ptr) {
4170 wxStaticText *src;
4171 wxEvtHandler *dest;
4172 src = (wxStaticText *) ptr;
4173 dest = (wxEvtHandler *) src;
4174 return (void *) dest;
4175 }
4176
4177 static void *SwigwxStaticTextTowxObject(void *ptr) {
4178 wxStaticText *src;
4179 wxObject *dest;
4180 src = (wxStaticText *) ptr;
4181 dest = (wxObject *) src;
4182 return (void *) dest;
4183 }
4184
4185 #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4186 static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject * _resultobj;
4188 wxStaticText * _result;
4189 wxWindow * _arg0;
4190 wxWindowID _arg1;
4191 wxString * _arg2;
4192 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4193 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4194 long _arg5 = (long ) 0;
4195 char * _arg6 = (char *) "staticText";
4196 PyObject * _argo0 = 0;
4197 PyObject * _obj2 = 0;
4198 wxPoint temp;
4199 PyObject * _obj3 = 0;
4200 wxSize temp0;
4201 PyObject * _obj4 = 0;
4202 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
4203 char _ptemp[128];
4204
4205 self = self;
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
4207 return NULL;
4208 if (_argo0) {
4209 if (_argo0 == Py_None) { _arg0 = NULL; }
4210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p.");
4212 return NULL;
4213 }
4214 }
4215 {
4216 #if PYTHON_API_VERSION >= 1009
4217 char* tmpPtr; int tmpSize;
4218 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4220 return NULL;
4221 }
4222 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4223 return NULL;
4224 _arg2 = new wxString(tmpPtr, tmpSize);
4225 #else
4226 if (!PyString_Check(_obj2)) {
4227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4228 return NULL;
4229 }
4230 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4231 #endif
4232 }
4233 if (_obj3)
4234 {
4235 _arg3 = &temp;
4236 if (! wxPoint_helper(_obj3, &_arg3))
4237 return NULL;
4238 }
4239 if (_obj4)
4240 {
4241 _arg4 = &temp0;
4242 if (! wxSize_helper(_obj4, &_arg4))
4243 return NULL;
4244 }
4245 {
4246 wxPy_BEGIN_ALLOW_THREADS;
4247 _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4248
4249 wxPy_END_ALLOW_THREADS;
4250 if (PyErr_Occurred()) return NULL;
4251 } if (_result) {
4252 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4253 _resultobj = Py_BuildValue("s",_ptemp);
4254 } else {
4255 Py_INCREF(Py_None);
4256 _resultobj = Py_None;
4257 }
4258 {
4259 if (_obj2)
4260 delete _arg2;
4261 }
4262 return _resultobj;
4263 }
4264
4265 #define new_wxPreStaticText() (new wxStaticText())
4266 static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4267 PyObject * _resultobj;
4268 wxStaticText * _result;
4269 char *_kwnames[] = { NULL };
4270 char _ptemp[128];
4271
4272 self = self;
4273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames))
4274 return NULL;
4275 {
4276 wxPy_BEGIN_ALLOW_THREADS;
4277 _result = (wxStaticText *)new_wxPreStaticText();
4278
4279 wxPy_END_ALLOW_THREADS;
4280 if (PyErr_Occurred()) return NULL;
4281 } if (_result) {
4282 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4283 _resultobj = Py_BuildValue("s",_ptemp);
4284 } else {
4285 Py_INCREF(Py_None);
4286 _resultobj = Py_None;
4287 }
4288 return _resultobj;
4289 }
4290
4291 #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4292 static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject * _resultobj;
4294 bool _result;
4295 wxStaticText * _arg0;
4296 wxWindow * _arg1;
4297 wxWindowID _arg2;
4298 wxString * _arg3;
4299 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4300 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4301 long _arg6 = (long ) 0;
4302 char * _arg7 = (char *) "staticText";
4303 PyObject * _argo0 = 0;
4304 PyObject * _argo1 = 0;
4305 PyObject * _obj3 = 0;
4306 wxPoint temp;
4307 PyObject * _obj4 = 0;
4308 wxSize temp0;
4309 PyObject * _obj5 = 0;
4310 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4311
4312 self = self;
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
4314 return NULL;
4315 if (_argo0) {
4316 if (_argo0 == Py_None) { _arg0 = NULL; }
4317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p.");
4319 return NULL;
4320 }
4321 }
4322 if (_argo1) {
4323 if (_argo1 == Py_None) { _arg1 = NULL; }
4324 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4325 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p.");
4326 return NULL;
4327 }
4328 }
4329 {
4330 #if PYTHON_API_VERSION >= 1009
4331 char* tmpPtr; int tmpSize;
4332 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
4333 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4334 return NULL;
4335 }
4336 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
4337 return NULL;
4338 _arg3 = new wxString(tmpPtr, tmpSize);
4339 #else
4340 if (!PyString_Check(_obj3)) {
4341 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4342 return NULL;
4343 }
4344 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
4345 #endif
4346 }
4347 if (_obj4)
4348 {
4349 _arg4 = &temp;
4350 if (! wxPoint_helper(_obj4, &_arg4))
4351 return NULL;
4352 }
4353 if (_obj5)
4354 {
4355 _arg5 = &temp0;
4356 if (! wxSize_helper(_obj5, &_arg5))
4357 return NULL;
4358 }
4359 {
4360 wxPy_BEGIN_ALLOW_THREADS;
4361 _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
4362
4363 wxPy_END_ALLOW_THREADS;
4364 if (PyErr_Occurred()) return NULL;
4365 } _resultobj = Py_BuildValue("i",_result);
4366 {
4367 if (_obj3)
4368 delete _arg3;
4369 }
4370 return _resultobj;
4371 }
4372
4373 #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel())
4374 static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject * _resultobj;
4376 wxString * _result;
4377 wxStaticText * _arg0;
4378 PyObject * _argo0 = 0;
4379 char *_kwnames[] = { "self", NULL };
4380
4381 self = self;
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0))
4383 return NULL;
4384 if (_argo0) {
4385 if (_argo0 == Py_None) { _arg0 = NULL; }
4386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p.");
4388 return NULL;
4389 }
4390 }
4391 {
4392 wxPy_BEGIN_ALLOW_THREADS;
4393 _result = new wxString (wxStaticText_GetLabel(_arg0));
4394
4395 wxPy_END_ALLOW_THREADS;
4396 if (PyErr_Occurred()) return NULL;
4397 }{
4398 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4399 }
4400 {
4401 delete _result;
4402 }
4403 return _resultobj;
4404 }
4405
4406 #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
4407 static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4408 PyObject * _resultobj;
4409 wxStaticText * _arg0;
4410 wxString * _arg1;
4411 PyObject * _argo0 = 0;
4412 PyObject * _obj1 = 0;
4413 char *_kwnames[] = { "self","label", NULL };
4414
4415 self = self;
4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1))
4417 return NULL;
4418 if (_argo0) {
4419 if (_argo0 == Py_None) { _arg0 = NULL; }
4420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p.");
4422 return NULL;
4423 }
4424 }
4425 {
4426 #if PYTHON_API_VERSION >= 1009
4427 char* tmpPtr; int tmpSize;
4428 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4429 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4430 return NULL;
4431 }
4432 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4433 return NULL;
4434 _arg1 = new wxString(tmpPtr, tmpSize);
4435 #else
4436 if (!PyString_Check(_obj1)) {
4437 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4438 return NULL;
4439 }
4440 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4441 #endif
4442 }
4443 {
4444 wxPy_BEGIN_ALLOW_THREADS;
4445 wxStaticText_SetLabel(_arg0,*_arg1);
4446
4447 wxPy_END_ALLOW_THREADS;
4448 if (PyErr_Occurred()) return NULL;
4449 } Py_INCREF(Py_None);
4450 _resultobj = Py_None;
4451 {
4452 if (_obj1)
4453 delete _arg1;
4454 }
4455 return _resultobj;
4456 }
4457
4458 static void *SwigwxListBoxTowxControl(void *ptr) {
4459 wxListBox *src;
4460 wxControl *dest;
4461 src = (wxListBox *) ptr;
4462 dest = (wxControl *) src;
4463 return (void *) dest;
4464 }
4465
4466 static void *SwigwxListBoxTowxWindow(void *ptr) {
4467 wxListBox *src;
4468 wxWindow *dest;
4469 src = (wxListBox *) ptr;
4470 dest = (wxWindow *) src;
4471 return (void *) dest;
4472 }
4473
4474 static void *SwigwxListBoxTowxEvtHandler(void *ptr) {
4475 wxListBox *src;
4476 wxEvtHandler *dest;
4477 src = (wxListBox *) ptr;
4478 dest = (wxEvtHandler *) src;
4479 return (void *) dest;
4480 }
4481
4482 static void *SwigwxListBoxTowxObject(void *ptr) {
4483 wxListBox *src;
4484 wxObject *dest;
4485 src = (wxListBox *) ptr;
4486 dest = (wxObject *) src;
4487 return (void *) dest;
4488 }
4489
4490 #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4491 static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4492 PyObject * _resultobj;
4493 wxListBox * _result;
4494 wxWindow * _arg0;
4495 wxWindowID _arg1;
4496 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4497 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4498 int _arg4;
4499 wxString * _arg5 = (wxString *) NULL;
4500 long _arg6 = (long ) 0;
4501 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
4502 char * _arg8 = (char *) "listBox";
4503 PyObject * _argo0 = 0;
4504 wxPoint temp;
4505 PyObject * _obj2 = 0;
4506 wxSize temp0;
4507 PyObject * _obj3 = 0;
4508 PyObject * _obj5 = 0;
4509 PyObject * _argo7 = 0;
4510 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
4511 char _ptemp[128];
4512
4513 self = self;
4514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
4515 return NULL;
4516 if (_argo0) {
4517 if (_argo0 == Py_None) { _arg0 = NULL; }
4518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p.");
4520 return NULL;
4521 }
4522 }
4523 if (_obj2)
4524 {
4525 _arg2 = &temp;
4526 if (! wxPoint_helper(_obj2, &_arg2))
4527 return NULL;
4528 }
4529 if (_obj3)
4530 {
4531 _arg3 = &temp0;
4532 if (! wxSize_helper(_obj3, &_arg3))
4533 return NULL;
4534 }
4535 if (_obj5)
4536 {
4537 _arg5 = wxString_LIST_helper(_obj5);
4538 if (_arg5 == NULL) {
4539 return NULL;
4540 }
4541 }
4542 if (_argo7) {
4543 if (_argo7 == Py_None) { _arg7 = NULL; }
4544 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
4545 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p.");
4546 return NULL;
4547 }
4548 }
4549 {
4550 if (_obj5) {
4551 _arg4 = PyList_Size(_obj5);
4552 }
4553 else {
4554 _arg4 = 0;
4555 }
4556 }
4557 {
4558 wxPy_BEGIN_ALLOW_THREADS;
4559 _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
4560
4561 wxPy_END_ALLOW_THREADS;
4562 if (PyErr_Occurred()) return NULL;
4563 } if (_result) {
4564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4565 _resultobj = Py_BuildValue("s",_ptemp);
4566 } else {
4567 Py_INCREF(Py_None);
4568 _resultobj = Py_None;
4569 }
4570 {
4571 delete [] _arg5;
4572 }
4573 return _resultobj;
4574 }
4575
4576 #define new_wxPreListBox() (new wxListBox())
4577 static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4578 PyObject * _resultobj;
4579 wxListBox * _result;
4580 char *_kwnames[] = { NULL };
4581 char _ptemp[128];
4582
4583 self = self;
4584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames))
4585 return NULL;
4586 {
4587 wxPy_BEGIN_ALLOW_THREADS;
4588 _result = (wxListBox *)new_wxPreListBox();
4589
4590 wxPy_END_ALLOW_THREADS;
4591 if (PyErr_Occurred()) return NULL;
4592 } if (_result) {
4593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4594 _resultobj = Py_BuildValue("s",_ptemp);
4595 } else {
4596 Py_INCREF(Py_None);
4597 _resultobj = Py_None;
4598 }
4599 return _resultobj;
4600 }
4601
4602 #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4603 static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject * _resultobj;
4605 bool _result;
4606 wxListBox * _arg0;
4607 wxWindow * _arg1;
4608 wxWindowID _arg2;
4609 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4610 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4611 int _arg5;
4612 wxString * _arg6 = (wxString *) NULL;
4613 long _arg7 = (long ) 0;
4614 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
4615 char * _arg9 = (char *) "listBox";
4616 PyObject * _argo0 = 0;
4617 PyObject * _argo1 = 0;
4618 wxPoint temp;
4619 PyObject * _obj3 = 0;
4620 wxSize temp0;
4621 PyObject * _obj4 = 0;
4622 PyObject * _obj6 = 0;
4623 PyObject * _argo8 = 0;
4624 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
4625
4626 self = self;
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
4628 return NULL;
4629 if (_argo0) {
4630 if (_argo0 == Py_None) { _arg0 = NULL; }
4631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p.");
4633 return NULL;
4634 }
4635 }
4636 if (_argo1) {
4637 if (_argo1 == Py_None) { _arg1 = NULL; }
4638 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4639 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p.");
4640 return NULL;
4641 }
4642 }
4643 if (_obj3)
4644 {
4645 _arg3 = &temp;
4646 if (! wxPoint_helper(_obj3, &_arg3))
4647 return NULL;
4648 }
4649 if (_obj4)
4650 {
4651 _arg4 = &temp0;
4652 if (! wxSize_helper(_obj4, &_arg4))
4653 return NULL;
4654 }
4655 if (_obj6)
4656 {
4657 _arg6 = wxString_LIST_helper(_obj6);
4658 if (_arg6 == NULL) {
4659 return NULL;
4660 }
4661 }
4662 if (_argo8) {
4663 if (_argo8 == Py_None) { _arg8 = NULL; }
4664 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
4665 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p.");
4666 return NULL;
4667 }
4668 }
4669 {
4670 if (_obj6) {
4671 _arg5 = PyList_Size(_obj6);
4672 }
4673 else {
4674 _arg5 = 0;
4675 }
4676 }
4677 {
4678 wxPy_BEGIN_ALLOW_THREADS;
4679 _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
4680
4681 wxPy_END_ALLOW_THREADS;
4682 if (PyErr_Occurred()) return NULL;
4683 } _resultobj = Py_BuildValue("i",_result);
4684 {
4685 delete [] _arg6;
4686 }
4687 return _resultobj;
4688 }
4689
4690 #define wxListBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
4691 static PyObject *_wrap_wxListBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject * _resultobj;
4693 wxListBox * _arg0;
4694 wxString * _arg1;
4695 PyObject * _argo0 = 0;
4696 PyObject * _obj1 = 0;
4697 char *_kwnames[] = { "self","item", NULL };
4698
4699 self = self;
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Append",_kwnames,&_argo0,&_obj1))
4701 return NULL;
4702 if (_argo0) {
4703 if (_argo0 == Py_None) { _arg0 = NULL; }
4704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Append. Expected _wxListBox_p.");
4706 return NULL;
4707 }
4708 }
4709 {
4710 #if PYTHON_API_VERSION >= 1009
4711 char* tmpPtr; int tmpSize;
4712 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4713 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4714 return NULL;
4715 }
4716 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4717 return NULL;
4718 _arg1 = new wxString(tmpPtr, tmpSize);
4719 #else
4720 if (!PyString_Check(_obj1)) {
4721 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4722 return NULL;
4723 }
4724 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4725 #endif
4726 }
4727 {
4728 wxPy_BEGIN_ALLOW_THREADS;
4729 wxListBox_Append(_arg0,*_arg1);
4730
4731 wxPy_END_ALLOW_THREADS;
4732 if (PyErr_Occurred()) return NULL;
4733 } Py_INCREF(Py_None);
4734 _resultobj = Py_None;
4735 {
4736 if (_obj1)
4737 delete _arg1;
4738 }
4739 return _resultobj;
4740 }
4741
4742 #define wxListBox_Clear(_swigobj) (_swigobj->Clear())
4743 static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4744 PyObject * _resultobj;
4745 wxListBox * _arg0;
4746 PyObject * _argo0 = 0;
4747 char *_kwnames[] = { "self", NULL };
4748
4749 self = self;
4750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0))
4751 return NULL;
4752 if (_argo0) {
4753 if (_argo0 == Py_None) { _arg0 = NULL; }
4754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p.");
4756 return NULL;
4757 }
4758 }
4759 {
4760 wxPy_BEGIN_ALLOW_THREADS;
4761 wxListBox_Clear(_arg0);
4762
4763 wxPy_END_ALLOW_THREADS;
4764 if (PyErr_Occurred()) return NULL;
4765 } Py_INCREF(Py_None);
4766 _resultobj = Py_None;
4767 return _resultobj;
4768 }
4769
4770 #define wxListBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
4771 static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
4772 PyObject * _resultobj;
4773 wxListBox * _arg0;
4774 int _arg1;
4775 PyObject * _argo0 = 0;
4776 char *_kwnames[] = { "self","n", NULL };
4777
4778 self = self;
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Delete",_kwnames,&_argo0,&_arg1))
4780 return NULL;
4781 if (_argo0) {
4782 if (_argo0 == Py_None) { _arg0 = NULL; }
4783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Delete. Expected _wxListBox_p.");
4785 return NULL;
4786 }
4787 }
4788 {
4789 wxPy_BEGIN_ALLOW_THREADS;
4790 wxListBox_Delete(_arg0,_arg1);
4791
4792 wxPy_END_ALLOW_THREADS;
4793 if (PyErr_Occurred()) return NULL;
4794 } Py_INCREF(Py_None);
4795 _resultobj = Py_None;
4796 return _resultobj;
4797 }
4798
4799 #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0))
4800 static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject * _resultobj;
4802 wxListBox * _arg0;
4803 int _arg1;
4804 PyObject * _argo0 = 0;
4805 char *_kwnames[] = { "self","n", NULL };
4806
4807 self = self;
4808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1))
4809 return NULL;
4810 if (_argo0) {
4811 if (_argo0 == Py_None) { _arg0 = NULL; }
4812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p.");
4814 return NULL;
4815 }
4816 }
4817 {
4818 wxPy_BEGIN_ALLOW_THREADS;
4819 wxListBox_Deselect(_arg0,_arg1);
4820
4821 wxPy_END_ALLOW_THREADS;
4822 if (PyErr_Occurred()) return NULL;
4823 } Py_INCREF(Py_None);
4824 _resultobj = Py_None;
4825 return _resultobj;
4826 }
4827
4828 #define wxListBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
4829 static PyObject *_wrap_wxListBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
4830 PyObject * _resultobj;
4831 int _result;
4832 wxListBox * _arg0;
4833 wxString * _arg1;
4834 PyObject * _argo0 = 0;
4835 PyObject * _obj1 = 0;
4836 char *_kwnames[] = { "self","string", NULL };
4837
4838 self = self;
4839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_FindString",_kwnames,&_argo0,&_obj1))
4840 return NULL;
4841 if (_argo0) {
4842 if (_argo0 == Py_None) { _arg0 = NULL; }
4843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_FindString. Expected _wxListBox_p.");
4845 return NULL;
4846 }
4847 }
4848 {
4849 #if PYTHON_API_VERSION >= 1009
4850 char* tmpPtr; int tmpSize;
4851 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4852 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4853 return NULL;
4854 }
4855 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4856 return NULL;
4857 _arg1 = new wxString(tmpPtr, tmpSize);
4858 #else
4859 if (!PyString_Check(_obj1)) {
4860 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4861 return NULL;
4862 }
4863 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4864 #endif
4865 }
4866 {
4867 wxPy_BEGIN_ALLOW_THREADS;
4868 _result = (int )wxListBox_FindString(_arg0,*_arg1);
4869
4870 wxPy_END_ALLOW_THREADS;
4871 if (PyErr_Occurred()) return NULL;
4872 } _resultobj = Py_BuildValue("i",_result);
4873 {
4874 if (_obj1)
4875 delete _arg1;
4876 }
4877 return _resultobj;
4878 }
4879
4880 #define wxListBox_GetSelection(_swigobj) (_swigobj->GetSelection())
4881 static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4882 PyObject * _resultobj;
4883 int _result;
4884 wxListBox * _arg0;
4885 PyObject * _argo0 = 0;
4886 char *_kwnames[] = { "self", NULL };
4887
4888 self = self;
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelection",_kwnames,&_argo0))
4890 return NULL;
4891 if (_argo0) {
4892 if (_argo0 == Py_None) { _arg0 = NULL; }
4893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelection. Expected _wxListBox_p.");
4895 return NULL;
4896 }
4897 }
4898 {
4899 wxPy_BEGIN_ALLOW_THREADS;
4900 _result = (int )wxListBox_GetSelection(_arg0);
4901
4902 wxPy_END_ALLOW_THREADS;
4903 if (PyErr_Occurred()) return NULL;
4904 } _resultobj = Py_BuildValue("i",_result);
4905 return _resultobj;
4906 }
4907
4908 static PyObject * wxListBox_GetSelections(wxListBox *self) {
4909 wxArrayInt lst;
4910 self->GetSelections(lst);
4911 PyObject *tup = PyTuple_New(lst.GetCount());
4912 for(size_t i=0; i<lst.GetCount(); i++) {
4913 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
4914 }
4915 return tup;
4916 }
4917 static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
4918 PyObject * _resultobj;
4919 PyObject * _result;
4920 wxListBox * _arg0;
4921 PyObject * _argo0 = 0;
4922 char *_kwnames[] = { "self", NULL };
4923
4924 self = self;
4925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0))
4926 return NULL;
4927 if (_argo0) {
4928 if (_argo0 == Py_None) { _arg0 = NULL; }
4929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p.");
4931 return NULL;
4932 }
4933 }
4934 {
4935 wxPy_BEGIN_ALLOW_THREADS;
4936 _result = (PyObject *)wxListBox_GetSelections(_arg0);
4937
4938 wxPy_END_ALLOW_THREADS;
4939 if (PyErr_Occurred()) return NULL;
4940 }{
4941 _resultobj = _result;
4942 }
4943 return _resultobj;
4944 }
4945
4946 #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
4947 static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4948 PyObject * _resultobj;
4949 wxListBox * _arg0;
4950 int _arg1;
4951 wxString * _arg2;
4952 int _arg3;
4953 PyObject * _argo0 = 0;
4954 PyObject * _obj2 = 0;
4955 char *_kwnames[] = { "self","choices","pos", NULL };
4956
4957 self = self;
4958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
4959 return NULL;
4960 if (_argo0) {
4961 if (_argo0 == Py_None) { _arg0 = NULL; }
4962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p.");
4964 return NULL;
4965 }
4966 }
4967 {
4968 _arg2 = wxString_LIST_helper(_obj2);
4969 if (_arg2 == NULL) {
4970 return NULL;
4971 }
4972 }
4973 {
4974 if (_obj2) {
4975 _arg1 = PyList_Size(_obj2);
4976 }
4977 else {
4978 _arg1 = 0;
4979 }
4980 }
4981 {
4982 wxPy_BEGIN_ALLOW_THREADS;
4983 wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
4984
4985 wxPy_END_ALLOW_THREADS;
4986 if (PyErr_Occurred()) return NULL;
4987 } Py_INCREF(Py_None);
4988 _resultobj = Py_None;
4989 {
4990 delete [] _arg2;
4991 }
4992 return _resultobj;
4993 }
4994
4995 #define wxListBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
4996 static PyObject *_wrap_wxListBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
4997 PyObject * _resultobj;
4998 wxString * _result;
4999 wxListBox * _arg0;
5000 int _arg1;
5001 PyObject * _argo0 = 0;
5002 char *_kwnames[] = { "self","n", NULL };
5003
5004 self = self;
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_GetString",_kwnames,&_argo0,&_arg1))
5006 return NULL;
5007 if (_argo0) {
5008 if (_argo0 == Py_None) { _arg0 = NULL; }
5009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetString. Expected _wxListBox_p.");
5011 return NULL;
5012 }
5013 }
5014 {
5015 wxPy_BEGIN_ALLOW_THREADS;
5016 _result = new wxString (wxListBox_GetString(_arg0,_arg1));
5017
5018 wxPy_END_ALLOW_THREADS;
5019 if (PyErr_Occurred()) return NULL;
5020 }{
5021 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5022 }
5023 {
5024 delete _result;
5025 }
5026 return _resultobj;
5027 }
5028
5029 #define wxListBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
5030 static PyObject *_wrap_wxListBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5031 PyObject * _resultobj;
5032 wxString * _result;
5033 wxListBox * _arg0;
5034 PyObject * _argo0 = 0;
5035 char *_kwnames[] = { "self", NULL };
5036
5037 self = self;
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetStringSelection",_kwnames,&_argo0))
5039 return NULL;
5040 if (_argo0) {
5041 if (_argo0 == Py_None) { _arg0 = NULL; }
5042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetStringSelection. Expected _wxListBox_p.");
5044 return NULL;
5045 }
5046 }
5047 {
5048 wxPy_BEGIN_ALLOW_THREADS;
5049 _result = new wxString (wxListBox_GetStringSelection(_arg0));
5050
5051 wxPy_END_ALLOW_THREADS;
5052 if (PyErr_Occurred()) return NULL;
5053 }{
5054 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5055 }
5056 {
5057 delete _result;
5058 }
5059 return _resultobj;
5060 }
5061
5062 #define wxListBox_GetCount(_swigobj) (_swigobj->GetCount())
5063 static PyObject *_wrap_wxListBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5064 PyObject * _resultobj;
5065 int _result;
5066 wxListBox * _arg0;
5067 PyObject * _argo0 = 0;
5068 char *_kwnames[] = { "self", NULL };
5069
5070 self = self;
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetCount",_kwnames,&_argo0))
5072 return NULL;
5073 if (_argo0) {
5074 if (_argo0 == Py_None) { _arg0 = NULL; }
5075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetCount. Expected _wxListBox_p.");
5077 return NULL;
5078 }
5079 }
5080 {
5081 wxPy_BEGIN_ALLOW_THREADS;
5082 _result = (int )wxListBox_GetCount(_arg0);
5083
5084 wxPy_END_ALLOW_THREADS;
5085 if (PyErr_Occurred()) return NULL;
5086 } _resultobj = Py_BuildValue("i",_result);
5087 return _resultobj;
5088 }
5089
5090 #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5091 static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5092 PyObject * _resultobj;
5093 bool _result;
5094 wxListBox * _arg0;
5095 int _arg1;
5096 PyObject * _argo0 = 0;
5097 char *_kwnames[] = { "self","n", NULL };
5098
5099 self = self;
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1))
5101 return NULL;
5102 if (_argo0) {
5103 if (_argo0 == Py_None) { _arg0 = NULL; }
5104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p.");
5106 return NULL;
5107 }
5108 }
5109 {
5110 wxPy_BEGIN_ALLOW_THREADS;
5111 _result = (bool )wxListBox_IsSelected(_arg0,_arg1);
5112
5113 wxPy_END_ALLOW_THREADS;
5114 if (PyErr_Occurred()) return NULL;
5115 } _resultobj = Py_BuildValue("i",_result);
5116 return _resultobj;
5117 }
5118
5119 #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0))
5120 static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) {
5121 PyObject * _resultobj;
5122 bool _result;
5123 wxListBox * _arg0;
5124 int _arg1;
5125 PyObject * _argo0 = 0;
5126 char *_kwnames[] = { "self","n", NULL };
5127
5128 self = self;
5129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1))
5130 return NULL;
5131 if (_argo0) {
5132 if (_argo0 == Py_None) { _arg0 = NULL; }
5133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p.");
5135 return NULL;
5136 }
5137 }
5138 {
5139 wxPy_BEGIN_ALLOW_THREADS;
5140 _result = (bool )wxListBox_Selected(_arg0,_arg1);
5141
5142 wxPy_END_ALLOW_THREADS;
5143 if (PyErr_Occurred()) return NULL;
5144 } _resultobj = Py_BuildValue("i",_result);
5145 return _resultobj;
5146 }
5147
5148 #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
5149 static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5150 PyObject * _resultobj;
5151 wxListBox * _arg0;
5152 int _arg1;
5153 wxString * _arg2;
5154 PyObject * _argo0 = 0;
5155 PyObject * _obj2 = 0;
5156 char *_kwnames[] = { "self","choices", NULL };
5157
5158 self = self;
5159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2))
5160 return NULL;
5161 if (_argo0) {
5162 if (_argo0 == Py_None) { _arg0 = NULL; }
5163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p.");
5165 return NULL;
5166 }
5167 }
5168 if (_obj2)
5169 {
5170 _arg2 = wxString_LIST_helper(_obj2);
5171 if (_arg2 == NULL) {
5172 return NULL;
5173 }
5174 }
5175 {
5176 if (_obj2) {
5177 _arg1 = PyList_Size(_obj2);
5178 }
5179 else {
5180 _arg1 = 0;
5181 }
5182 }
5183 {
5184 wxPy_BEGIN_ALLOW_THREADS;
5185 wxListBox_Set(_arg0,_arg1,_arg2);
5186
5187 wxPy_END_ALLOW_THREADS;
5188 if (PyErr_Occurred()) return NULL;
5189 } Py_INCREF(Py_None);
5190 _resultobj = Py_None;
5191 {
5192 delete [] _arg2;
5193 }
5194 return _resultobj;
5195 }
5196
5197 #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
5198 static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject * _resultobj;
5200 wxListBox * _arg0;
5201 int _arg1;
5202 PyObject * _argo0 = 0;
5203 char *_kwnames[] = { "self","n", NULL };
5204
5205 self = self;
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1))
5207 return NULL;
5208 if (_argo0) {
5209 if (_argo0 == Py_None) { _arg0 = NULL; }
5210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p.");
5212 return NULL;
5213 }
5214 }
5215 {
5216 wxPy_BEGIN_ALLOW_THREADS;
5217 wxListBox_SetFirstItem(_arg0,_arg1);
5218
5219 wxPy_END_ALLOW_THREADS;
5220 if (PyErr_Occurred()) return NULL;
5221 } Py_INCREF(Py_None);
5222 _resultobj = Py_None;
5223 return _resultobj;
5224 }
5225
5226 #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
5227 static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5228 PyObject * _resultobj;
5229 wxListBox * _arg0;
5230 wxString * _arg1;
5231 PyObject * _argo0 = 0;
5232 PyObject * _obj1 = 0;
5233 char *_kwnames[] = { "self","string", NULL };
5234
5235 self = self;
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1))
5237 return NULL;
5238 if (_argo0) {
5239 if (_argo0 == Py_None) { _arg0 = NULL; }
5240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p.");
5242 return NULL;
5243 }
5244 }
5245 {
5246 #if PYTHON_API_VERSION >= 1009
5247 char* tmpPtr; int tmpSize;
5248 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5249 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5250 return NULL;
5251 }
5252 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5253 return NULL;
5254 _arg1 = new wxString(tmpPtr, tmpSize);
5255 #else
5256 if (!PyString_Check(_obj1)) {
5257 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5258 return NULL;
5259 }
5260 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5261 #endif
5262 }
5263 {
5264 wxPy_BEGIN_ALLOW_THREADS;
5265 wxListBox_SetFirstItemStr(_arg0,*_arg1);
5266
5267 wxPy_END_ALLOW_THREADS;
5268 if (PyErr_Occurred()) return NULL;
5269 } Py_INCREF(Py_None);
5270 _resultobj = Py_None;
5271 {
5272 if (_obj1)
5273 delete _arg1;
5274 }
5275 return _resultobj;
5276 }
5277
5278 #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
5279 static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5280 PyObject * _resultobj;
5281 wxListBox * _arg0;
5282 int _arg1;
5283 bool _arg2 = (bool ) TRUE;
5284 PyObject * _argo0 = 0;
5285 int tempbool2 = (int) TRUE;
5286 char *_kwnames[] = { "self","n","select", NULL };
5287
5288 self = self;
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2))
5290 return NULL;
5291 if (_argo0) {
5292 if (_argo0 == Py_None) { _arg0 = NULL; }
5293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p.");
5295 return NULL;
5296 }
5297 }
5298 _arg2 = (bool ) tempbool2;
5299 {
5300 wxPy_BEGIN_ALLOW_THREADS;
5301 wxListBox_SetSelection(_arg0,_arg1,_arg2);
5302
5303 wxPy_END_ALLOW_THREADS;
5304 if (PyErr_Occurred()) return NULL;
5305 } Py_INCREF(Py_None);
5306 _resultobj = Py_None;
5307 return _resultobj;
5308 }
5309
5310 #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
5311 static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
5312 PyObject * _resultobj;
5313 wxListBox * _arg0;
5314 int _arg1;
5315 wxString * _arg2;
5316 PyObject * _argo0 = 0;
5317 PyObject * _obj2 = 0;
5318 char *_kwnames[] = { "self","n","string", NULL };
5319
5320 self = self;
5321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
5322 return NULL;
5323 if (_argo0) {
5324 if (_argo0 == Py_None) { _arg0 = NULL; }
5325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p.");
5327 return NULL;
5328 }
5329 }
5330 {
5331 #if PYTHON_API_VERSION >= 1009
5332 char* tmpPtr; int tmpSize;
5333 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5334 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5335 return NULL;
5336 }
5337 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5338 return NULL;
5339 _arg2 = new wxString(tmpPtr, tmpSize);
5340 #else
5341 if (!PyString_Check(_obj2)) {
5342 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5343 return NULL;
5344 }
5345 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5346 #endif
5347 }
5348 {
5349 wxPy_BEGIN_ALLOW_THREADS;
5350 wxListBox_SetString(_arg0,_arg1,*_arg2);
5351
5352 wxPy_END_ALLOW_THREADS;
5353 if (PyErr_Occurred()) return NULL;
5354 } Py_INCREF(Py_None);
5355 _resultobj = Py_None;
5356 {
5357 if (_obj2)
5358 delete _arg2;
5359 }
5360 return _resultobj;
5361 }
5362
5363 #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1))
5364 static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject * _resultobj;
5366 wxListBox * _arg0;
5367 wxString * _arg1;
5368 bool _arg2 = (bool ) TRUE;
5369 PyObject * _argo0 = 0;
5370 PyObject * _obj1 = 0;
5371 int tempbool2 = (int) TRUE;
5372 char *_kwnames[] = { "self","string","select", NULL };
5373
5374 self = self;
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2))
5376 return NULL;
5377 if (_argo0) {
5378 if (_argo0 == Py_None) { _arg0 = NULL; }
5379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p.");
5381 return NULL;
5382 }
5383 }
5384 {
5385 #if PYTHON_API_VERSION >= 1009
5386 char* tmpPtr; int tmpSize;
5387 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5388 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5389 return NULL;
5390 }
5391 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5392 return NULL;
5393 _arg1 = new wxString(tmpPtr, tmpSize);
5394 #else
5395 if (!PyString_Check(_obj1)) {
5396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5397 return NULL;
5398 }
5399 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5400 #endif
5401 }
5402 _arg2 = (bool ) tempbool2;
5403 {
5404 wxPy_BEGIN_ALLOW_THREADS;
5405 wxListBox_SetStringSelection(_arg0,*_arg1,_arg2);
5406
5407 wxPy_END_ALLOW_THREADS;
5408 if (PyErr_Occurred()) return NULL;
5409 } Py_INCREF(Py_None);
5410 _resultobj = Py_None;
5411 {
5412 if (_obj1)
5413 delete _arg1;
5414 }
5415 return _resultobj;
5416 }
5417
5418 static void *SwigwxCheckListBoxTowxListBox(void *ptr) {
5419 wxCheckListBox *src;
5420 wxListBox *dest;
5421 src = (wxCheckListBox *) ptr;
5422 dest = (wxListBox *) src;
5423 return (void *) dest;
5424 }
5425
5426 static void *SwigwxCheckListBoxTowxControl(void *ptr) {
5427 wxCheckListBox *src;
5428 wxControl *dest;
5429 src = (wxCheckListBox *) ptr;
5430 dest = (wxControl *) src;
5431 return (void *) dest;
5432 }
5433
5434 static void *SwigwxCheckListBoxTowxWindow(void *ptr) {
5435 wxCheckListBox *src;
5436 wxWindow *dest;
5437 src = (wxCheckListBox *) ptr;
5438 dest = (wxWindow *) src;
5439 return (void *) dest;
5440 }
5441
5442 static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) {
5443 wxCheckListBox *src;
5444 wxEvtHandler *dest;
5445 src = (wxCheckListBox *) ptr;
5446 dest = (wxEvtHandler *) src;
5447 return (void *) dest;
5448 }
5449
5450 static void *SwigwxCheckListBoxTowxObject(void *ptr) {
5451 wxCheckListBox *src;
5452 wxObject *dest;
5453 src = (wxCheckListBox *) ptr;
5454 dest = (wxObject *) src;
5455 return (void *) dest;
5456 }
5457
5458 #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5459 static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject * _resultobj;
5461 wxCheckListBox * _result;
5462 wxWindow * _arg0;
5463 wxWindowID _arg1;
5464 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5465 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5466 int _arg4 = (int ) 0;
5467 wxString * _arg5 = (wxString *) NULL;
5468 long _arg6 = (long ) 0;
5469 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
5470 char * _arg8 = (char *) "listBox";
5471 PyObject * _argo0 = 0;
5472 wxPoint temp;
5473 PyObject * _obj2 = 0;
5474 wxSize temp0;
5475 PyObject * _obj3 = 0;
5476 PyObject * _obj5 = 0;
5477 PyObject * _argo7 = 0;
5478 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
5479 char _ptemp[128];
5480
5481 self = self;
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
5483 return NULL;
5484 if (_argo0) {
5485 if (_argo0 == Py_None) { _arg0 = NULL; }
5486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p.");
5488 return NULL;
5489 }
5490 }
5491 if (_obj2)
5492 {
5493 _arg2 = &temp;
5494 if (! wxPoint_helper(_obj2, &_arg2))
5495 return NULL;
5496 }
5497 if (_obj3)
5498 {
5499 _arg3 = &temp0;
5500 if (! wxSize_helper(_obj3, &_arg3))
5501 return NULL;
5502 }
5503 if (_obj5)
5504 {
5505 _arg5 = wxString_LIST_helper(_obj5);
5506 if (_arg5 == NULL) {
5507 return NULL;
5508 }
5509 }
5510 if (_argo7) {
5511 if (_argo7 == Py_None) { _arg7 = NULL; }
5512 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
5513 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p.");
5514 return NULL;
5515 }
5516 }
5517 {
5518 if (_obj5) {
5519 _arg4 = PyList_Size(_obj5);
5520 }
5521 else {
5522 _arg4 = 0;
5523 }
5524 }
5525 {
5526 wxPy_BEGIN_ALLOW_THREADS;
5527 _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
5528
5529 wxPy_END_ALLOW_THREADS;
5530 if (PyErr_Occurred()) return NULL;
5531 } if (_result) {
5532 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5533 _resultobj = Py_BuildValue("s",_ptemp);
5534 } else {
5535 Py_INCREF(Py_None);
5536 _resultobj = Py_None;
5537 }
5538 {
5539 delete [] _arg5;
5540 }
5541 return _resultobj;
5542 }
5543
5544 #define new_wxPreCheckListBox() (new wxCheckListBox())
5545 static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5546 PyObject * _resultobj;
5547 wxCheckListBox * _result;
5548 char *_kwnames[] = { NULL };
5549 char _ptemp[128];
5550
5551 self = self;
5552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames))
5553 return NULL;
5554 {
5555 wxPy_BEGIN_ALLOW_THREADS;
5556 _result = (wxCheckListBox *)new_wxPreCheckListBox();
5557
5558 wxPy_END_ALLOW_THREADS;
5559 if (PyErr_Occurred()) return NULL;
5560 } if (_result) {
5561 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5562 _resultobj = Py_BuildValue("s",_ptemp);
5563 } else {
5564 Py_INCREF(Py_None);
5565 _resultobj = Py_None;
5566 }
5567 return _resultobj;
5568 }
5569
5570 #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5571 static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5572 PyObject * _resultobj;
5573 bool _result;
5574 wxCheckListBox * _arg0;
5575 wxWindow * _arg1;
5576 wxWindowID _arg2;
5577 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5578 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5579 int _arg5 = (int ) 0;
5580 wxString * _arg6 = (wxString *) NULL;
5581 long _arg7 = (long ) 0;
5582 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
5583 char * _arg9 = (char *) "listBox";
5584 PyObject * _argo0 = 0;
5585 PyObject * _argo1 = 0;
5586 wxPoint temp;
5587 PyObject * _obj3 = 0;
5588 wxSize temp0;
5589 PyObject * _obj4 = 0;
5590 PyObject * _obj6 = 0;
5591 PyObject * _argo8 = 0;
5592 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
5593
5594 self = self;
5595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
5596 return NULL;
5597 if (_argo0) {
5598 if (_argo0 == Py_None) { _arg0 = NULL; }
5599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p.");
5601 return NULL;
5602 }
5603 }
5604 if (_argo1) {
5605 if (_argo1 == Py_None) { _arg1 = NULL; }
5606 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5607 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p.");
5608 return NULL;
5609 }
5610 }
5611 if (_obj3)
5612 {
5613 _arg3 = &temp;
5614 if (! wxPoint_helper(_obj3, &_arg3))
5615 return NULL;
5616 }
5617 if (_obj4)
5618 {
5619 _arg4 = &temp0;
5620 if (! wxSize_helper(_obj4, &_arg4))
5621 return NULL;
5622 }
5623 if (_obj6)
5624 {
5625 _arg6 = wxString_LIST_helper(_obj6);
5626 if (_arg6 == NULL) {
5627 return NULL;
5628 }
5629 }
5630 if (_argo8) {
5631 if (_argo8 == Py_None) { _arg8 = NULL; }
5632 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
5633 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p.");
5634 return NULL;
5635 }
5636 }
5637 {
5638 if (_obj6) {
5639 _arg5 = PyList_Size(_obj6);
5640 }
5641 else {
5642 _arg5 = 0;
5643 }
5644 }
5645 {
5646 wxPy_BEGIN_ALLOW_THREADS;
5647 _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
5648
5649 wxPy_END_ALLOW_THREADS;
5650 if (PyErr_Occurred()) return NULL;
5651 } _resultobj = Py_BuildValue("i",_result);
5652 {
5653 delete [] _arg6;
5654 }
5655 return _resultobj;
5656 }
5657
5658 #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
5659 static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject * _resultobj;
5661 bool _result;
5662 wxCheckListBox * _arg0;
5663 int _arg1;
5664 PyObject * _argo0 = 0;
5665 char *_kwnames[] = { "self","uiIndex", NULL };
5666
5667 self = self;
5668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1))
5669 return NULL;
5670 if (_argo0) {
5671 if (_argo0 == Py_None) { _arg0 = NULL; }
5672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p.");
5674 return NULL;
5675 }
5676 }
5677 {
5678 wxPy_BEGIN_ALLOW_THREADS;
5679 _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1);
5680
5681 wxPy_END_ALLOW_THREADS;
5682 if (PyErr_Occurred()) return NULL;
5683 } _resultobj = Py_BuildValue("i",_result);
5684 return _resultobj;
5685 }
5686
5687 #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5688 static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5689 PyObject * _resultobj;
5690 wxCheckListBox * _arg0;
5691 int _arg1;
5692 int _arg2 = (int ) TRUE;
5693 PyObject * _argo0 = 0;
5694 char *_kwnames[] = { "self","uiIndex","bCheck", NULL };
5695
5696 self = self;
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2))
5698 return NULL;
5699 if (_argo0) {
5700 if (_argo0 == Py_None) { _arg0 = NULL; }
5701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p.");
5703 return NULL;
5704 }
5705 }
5706 {
5707 wxPy_BEGIN_ALLOW_THREADS;
5708 wxCheckListBox_Check(_arg0,_arg1,_arg2);
5709
5710 wxPy_END_ALLOW_THREADS;
5711 if (PyErr_Occurred()) return NULL;
5712 } Py_INCREF(Py_None);
5713 _resultobj = Py_None;
5714 return _resultobj;
5715 }
5716
5717 #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
5718 static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5719 PyObject * _resultobj;
5720 wxCheckListBox * _arg0;
5721 int _arg1;
5722 wxString * _arg2;
5723 int _arg3;
5724 PyObject * _argo0 = 0;
5725 PyObject * _obj2 = 0;
5726 char *_kwnames[] = { "self","choices","pos", NULL };
5727
5728 self = self;
5729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
5730 return NULL;
5731 if (_argo0) {
5732 if (_argo0 == Py_None) { _arg0 = NULL; }
5733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p.");
5735 return NULL;
5736 }
5737 }
5738 {
5739 _arg2 = wxString_LIST_helper(_obj2);
5740 if (_arg2 == NULL) {
5741 return NULL;
5742 }
5743 }
5744 {
5745 if (_obj2) {
5746 _arg1 = PyList_Size(_obj2);
5747 }
5748 else {
5749 _arg1 = 0;
5750 }
5751 }
5752 {
5753 wxPy_BEGIN_ALLOW_THREADS;
5754 wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
5755
5756 wxPy_END_ALLOW_THREADS;
5757 if (PyErr_Occurred()) return NULL;
5758 } Py_INCREF(Py_None);
5759 _resultobj = Py_None;
5760 {
5761 delete [] _arg2;
5762 }
5763 return _resultobj;
5764 }
5765
5766 #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight())
5767 static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5768 PyObject * _resultobj;
5769 int _result;
5770 wxCheckListBox * _arg0;
5771 PyObject * _argo0 = 0;
5772 char *_kwnames[] = { "self", NULL };
5773
5774 self = self;
5775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0))
5776 return NULL;
5777 if (_argo0) {
5778 if (_argo0 == Py_None) { _arg0 = NULL; }
5779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p.");
5781 return NULL;
5782 }
5783 }
5784 {
5785 wxPy_BEGIN_ALLOW_THREADS;
5786 _result = (int )wxCheckListBox_GetItemHeight(_arg0);
5787
5788 wxPy_END_ALLOW_THREADS;
5789 if (PyErr_Occurred()) return NULL;
5790 } _resultobj = Py_BuildValue("i",_result);
5791 return _resultobj;
5792 }
5793
5794 #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2))
5795 static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5796 PyObject * _resultobj;
5797 wxTextAttr * _result;
5798 wxColour * _arg0 = (wxColour *) &wxNullColour;
5799 wxColour * _arg1 = (wxColour *) &wxNullColour;
5800 wxFont * _arg2 = (wxFont *) &wxNullFont;
5801 wxColour temp;
5802 PyObject * _obj0 = 0;
5803 wxColour temp0;
5804 PyObject * _obj1 = 0;
5805 PyObject * _argo2 = 0;
5806 char *_kwnames[] = { "colText","colBack","font", NULL };
5807 char _ptemp[128];
5808
5809 self = self;
5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5811 return NULL;
5812 if (_obj0)
5813 {
5814 _arg0 = &temp;
5815 if (! wxColour_helper(_obj0, &_arg0))
5816 return NULL;
5817 }
5818 if (_obj1)
5819 {
5820 _arg1 = &temp0;
5821 if (! wxColour_helper(_obj1, &_arg1))
5822 return NULL;
5823 }
5824 if (_argo2) {
5825 if (_argo2 == Py_None) { _arg2 = NULL; }
5826 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5827 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p.");
5828 return NULL;
5829 }
5830 }
5831 {
5832 wxPy_BEGIN_ALLOW_THREADS;
5833 _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2);
5834
5835 wxPy_END_ALLOW_THREADS;
5836 if (PyErr_Occurred()) return NULL;
5837 } if (_result) {
5838 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
5839 _resultobj = Py_BuildValue("s",_ptemp);
5840 } else {
5841 Py_INCREF(Py_None);
5842 _resultobj = Py_None;
5843 }
5844 return _resultobj;
5845 }
5846
5847 #define delete_wxTextAttr(_swigobj) (delete _swigobj)
5848 static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5849 PyObject * _resultobj;
5850 wxTextAttr * _arg0;
5851 PyObject * _argo0 = 0;
5852 char *_kwnames[] = { "self", NULL };
5853
5854 self = self;
5855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0))
5856 return NULL;
5857 if (_argo0) {
5858 if (_argo0 == Py_None) { _arg0 = NULL; }
5859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p.");
5861 return NULL;
5862 }
5863 }
5864 {
5865 wxPy_BEGIN_ALLOW_THREADS;
5866 delete_wxTextAttr(_arg0);
5867
5868 wxPy_END_ALLOW_THREADS;
5869 if (PyErr_Occurred()) return NULL;
5870 } Py_INCREF(Py_None);
5871 _resultobj = Py_None;
5872 return _resultobj;
5873 }
5874
5875 #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5876 static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5877 PyObject * _resultobj;
5878 wxTextAttr * _arg0;
5879 wxColour * _arg1;
5880 PyObject * _argo0 = 0;
5881 wxColour temp;
5882 PyObject * _obj1 = 0;
5883 char *_kwnames[] = { "self","colText", NULL };
5884
5885 self = self;
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5887 return NULL;
5888 if (_argo0) {
5889 if (_argo0 == Py_None) { _arg0 = NULL; }
5890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p.");
5892 return NULL;
5893 }
5894 }
5895 {
5896 _arg1 = &temp;
5897 if (! wxColour_helper(_obj1, &_arg1))
5898 return NULL;
5899 }
5900 {
5901 wxPy_BEGIN_ALLOW_THREADS;
5902 wxTextAttr_SetTextColour(_arg0,*_arg1);
5903
5904 wxPy_END_ALLOW_THREADS;
5905 if (PyErr_Occurred()) return NULL;
5906 } Py_INCREF(Py_None);
5907 _resultobj = Py_None;
5908 return _resultobj;
5909 }
5910
5911 #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5912 static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5913 PyObject * _resultobj;
5914 wxTextAttr * _arg0;
5915 wxColour * _arg1;
5916 PyObject * _argo0 = 0;
5917 wxColour temp;
5918 PyObject * _obj1 = 0;
5919 char *_kwnames[] = { "self","colBack", NULL };
5920
5921 self = self;
5922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5923 return NULL;
5924 if (_argo0) {
5925 if (_argo0 == Py_None) { _arg0 = NULL; }
5926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p.");
5928 return NULL;
5929 }
5930 }
5931 {
5932 _arg1 = &temp;
5933 if (! wxColour_helper(_obj1, &_arg1))
5934 return NULL;
5935 }
5936 {
5937 wxPy_BEGIN_ALLOW_THREADS;
5938 wxTextAttr_SetBackgroundColour(_arg0,*_arg1);
5939
5940 wxPy_END_ALLOW_THREADS;
5941 if (PyErr_Occurred()) return NULL;
5942 } Py_INCREF(Py_None);
5943 _resultobj = Py_None;
5944 return _resultobj;
5945 }
5946
5947 #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5948 static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5949 PyObject * _resultobj;
5950 wxTextAttr * _arg0;
5951 wxFont * _arg1;
5952 PyObject * _argo0 = 0;
5953 PyObject * _argo1 = 0;
5954 char *_kwnames[] = { "self","font", NULL };
5955
5956 self = self;
5957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1))
5958 return NULL;
5959 if (_argo0) {
5960 if (_argo0 == Py_None) { _arg0 = NULL; }
5961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p.");
5963 return NULL;
5964 }
5965 }
5966 if (_argo1) {
5967 if (_argo1 == Py_None) { _arg1 = NULL; }
5968 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5969 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p.");
5970 return NULL;
5971 }
5972 }
5973 {
5974 wxPy_BEGIN_ALLOW_THREADS;
5975 wxTextAttr_SetFont(_arg0,*_arg1);
5976
5977 wxPy_END_ALLOW_THREADS;
5978 if (PyErr_Occurred()) return NULL;
5979 } Py_INCREF(Py_None);
5980 _resultobj = Py_None;
5981 return _resultobj;
5982 }
5983
5984 #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5985 static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5986 PyObject * _resultobj;
5987 bool _result;
5988 wxTextAttr * _arg0;
5989 PyObject * _argo0 = 0;
5990 char *_kwnames[] = { "self", NULL };
5991
5992 self = self;
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0))
5994 return NULL;
5995 if (_argo0) {
5996 if (_argo0 == Py_None) { _arg0 = NULL; }
5997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p.");
5999 return NULL;
6000 }
6001 }
6002 {
6003 wxPy_BEGIN_ALLOW_THREADS;
6004 _result = (bool )wxTextAttr_HasTextColour(_arg0);
6005
6006 wxPy_END_ALLOW_THREADS;
6007 if (PyErr_Occurred()) return NULL;
6008 } _resultobj = Py_BuildValue("i",_result);
6009 return _resultobj;
6010 }
6011
6012 #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
6013 static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject * _resultobj;
6015 bool _result;
6016 wxTextAttr * _arg0;
6017 PyObject * _argo0 = 0;
6018 char *_kwnames[] = { "self", NULL };
6019
6020 self = self;
6021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0))
6022 return NULL;
6023 if (_argo0) {
6024 if (_argo0 == Py_None) { _arg0 = NULL; }
6025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p.");
6027 return NULL;
6028 }
6029 }
6030 {
6031 wxPy_BEGIN_ALLOW_THREADS;
6032 _result = (bool )wxTextAttr_HasBackgroundColour(_arg0);
6033
6034 wxPy_END_ALLOW_THREADS;
6035 if (PyErr_Occurred()) return NULL;
6036 } _resultobj = Py_BuildValue("i",_result);
6037 return _resultobj;
6038 }
6039
6040 #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont())
6041 static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject * _resultobj;
6043 bool _result;
6044 wxTextAttr * _arg0;
6045 PyObject * _argo0 = 0;
6046 char *_kwnames[] = { "self", NULL };
6047
6048 self = self;
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0))
6050 return NULL;
6051 if (_argo0) {
6052 if (_argo0 == Py_None) { _arg0 = NULL; }
6053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p.");
6055 return NULL;
6056 }
6057 }
6058 {
6059 wxPy_BEGIN_ALLOW_THREADS;
6060 _result = (bool )wxTextAttr_HasFont(_arg0);
6061
6062 wxPy_END_ALLOW_THREADS;
6063 if (PyErr_Occurred()) return NULL;
6064 } _resultobj = Py_BuildValue("i",_result);
6065 return _resultobj;
6066 }
6067
6068 #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
6069 static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6070 PyObject * _resultobj;
6071 wxColour * _result;
6072 wxTextAttr * _arg0;
6073 PyObject * _argo0 = 0;
6074 char *_kwnames[] = { "self", NULL };
6075 char _ptemp[128];
6076
6077 self = self;
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0))
6079 return NULL;
6080 if (_argo0) {
6081 if (_argo0 == Py_None) { _arg0 = NULL; }
6082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p.");
6084 return NULL;
6085 }
6086 }
6087 {
6088 wxPy_BEGIN_ALLOW_THREADS;
6089 const wxColour & _result_ref = wxTextAttr_GetTextColour(_arg0);
6090 _result = (wxColour *) &_result_ref;
6091
6092 wxPy_END_ALLOW_THREADS;
6093 if (PyErr_Occurred()) return NULL;
6094 } if (_result) {
6095 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6096 _resultobj = Py_BuildValue("s",_ptemp);
6097 } else {
6098 Py_INCREF(Py_None);
6099 _resultobj = Py_None;
6100 }
6101 return _resultobj;
6102 }
6103
6104 #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
6105 static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6106 PyObject * _resultobj;
6107 wxColour * _result;
6108 wxTextAttr * _arg0;
6109 PyObject * _argo0 = 0;
6110 char *_kwnames[] = { "self", NULL };
6111 char _ptemp[128];
6112
6113 self = self;
6114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0))
6115 return NULL;
6116 if (_argo0) {
6117 if (_argo0 == Py_None) { _arg0 = NULL; }
6118 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6119 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p.");
6120 return NULL;
6121 }
6122 }
6123 {
6124 wxPy_BEGIN_ALLOW_THREADS;
6125 const wxColour & _result_ref = wxTextAttr_GetBackgroundColour(_arg0);
6126 _result = (wxColour *) &_result_ref;
6127
6128 wxPy_END_ALLOW_THREADS;
6129 if (PyErr_Occurred()) return NULL;
6130 } if (_result) {
6131 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6132 _resultobj = Py_BuildValue("s",_ptemp);
6133 } else {
6134 Py_INCREF(Py_None);
6135 _resultobj = Py_None;
6136 }
6137 return _resultobj;
6138 }
6139
6140 #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont())
6141 static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6142 PyObject * _resultobj;
6143 wxFont * _result;
6144 wxTextAttr * _arg0;
6145 PyObject * _argo0 = 0;
6146 char *_kwnames[] = { "self", NULL };
6147 char _ptemp[128];
6148
6149 self = self;
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0))
6151 return NULL;
6152 if (_argo0) {
6153 if (_argo0 == Py_None) { _arg0 = NULL; }
6154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p.");
6156 return NULL;
6157 }
6158 }
6159 {
6160 wxPy_BEGIN_ALLOW_THREADS;
6161 const wxFont & _result_ref = wxTextAttr_GetFont(_arg0);
6162 _result = (wxFont *) &_result_ref;
6163
6164 wxPy_END_ALLOW_THREADS;
6165 if (PyErr_Occurred()) return NULL;
6166 } if (_result) {
6167 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
6168 _resultobj = Py_BuildValue("s",_ptemp);
6169 } else {
6170 Py_INCREF(Py_None);
6171 _resultobj = Py_None;
6172 }
6173 return _resultobj;
6174 }
6175
6176 static void *SwigwxTextCtrlTowxControl(void *ptr) {
6177 wxTextCtrl *src;
6178 wxControl *dest;
6179 src = (wxTextCtrl *) ptr;
6180 dest = (wxControl *) src;
6181 return (void *) dest;
6182 }
6183
6184 static void *SwigwxTextCtrlTowxWindow(void *ptr) {
6185 wxTextCtrl *src;
6186 wxWindow *dest;
6187 src = (wxTextCtrl *) ptr;
6188 dest = (wxWindow *) src;
6189 return (void *) dest;
6190 }
6191
6192 static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) {
6193 wxTextCtrl *src;
6194 wxEvtHandler *dest;
6195 src = (wxTextCtrl *) ptr;
6196 dest = (wxEvtHandler *) src;
6197 return (void *) dest;
6198 }
6199
6200 static void *SwigwxTextCtrlTowxObject(void *ptr) {
6201 wxTextCtrl *src;
6202 wxObject *dest;
6203 src = (wxTextCtrl *) ptr;
6204 dest = (wxObject *) src;
6205 return (void *) dest;
6206 }
6207
6208 #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
6209 static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject * _resultobj;
6211 wxTextCtrl * _result;
6212 wxWindow * _arg0;
6213 wxWindowID _arg1;
6214 char * _arg2 = (char *) "";
6215 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6216 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6217 long _arg5 = (long ) 0;
6218 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
6219 char * _arg7 = (char *) "text";
6220 PyObject * _argo0 = 0;
6221 wxPoint temp;
6222 PyObject * _obj3 = 0;
6223 wxSize temp0;
6224 PyObject * _obj4 = 0;
6225 PyObject * _argo6 = 0;
6226 char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL };
6227 char _ptemp[128];
6228
6229 self = self;
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
6231 return NULL;
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p.");
6236 return NULL;
6237 }
6238 }
6239 if (_obj3)
6240 {
6241 _arg3 = &temp;
6242 if (! wxPoint_helper(_obj3, &_arg3))
6243 return NULL;
6244 }
6245 if (_obj4)
6246 {
6247 _arg4 = &temp0;
6248 if (! wxSize_helper(_obj4, &_arg4))
6249 return NULL;
6250 }
6251 if (_argo6) {
6252 if (_argo6 == Py_None) { _arg6 = NULL; }
6253 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
6254 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p.");
6255 return NULL;
6256 }
6257 }
6258 {
6259 wxPy_BEGIN_ALLOW_THREADS;
6260 _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6261
6262 wxPy_END_ALLOW_THREADS;
6263 if (PyErr_Occurred()) return NULL;
6264 } if (_result) {
6265 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
6266 _resultobj = Py_BuildValue("s",_ptemp);
6267 } else {
6268 Py_INCREF(Py_None);
6269 _resultobj = Py_None;
6270 }
6271 return _resultobj;
6272 }
6273
6274 #define new_wxPreTextCtrl() (new wxTextCtrl())
6275 static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6276 PyObject * _resultobj;
6277 wxTextCtrl * _result;
6278 char *_kwnames[] = { NULL };
6279 char _ptemp[128];
6280
6281 self = self;
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames))
6283 return NULL;
6284 {
6285 wxPy_BEGIN_ALLOW_THREADS;
6286 _result = (wxTextCtrl *)new_wxPreTextCtrl();
6287
6288 wxPy_END_ALLOW_THREADS;
6289 if (PyErr_Occurred()) return NULL;
6290 } if (_result) {
6291 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
6292 _resultobj = Py_BuildValue("s",_ptemp);
6293 } else {
6294 Py_INCREF(Py_None);
6295 _resultobj = Py_None;
6296 }
6297 return _resultobj;
6298 }
6299
6300 #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
6301 static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6302 PyObject * _resultobj;
6303 bool _result;
6304 wxTextCtrl * _arg0;
6305 wxWindow * _arg1;
6306 wxWindowID _arg2;
6307 char * _arg3 = (char *) "";
6308 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
6309 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
6310 long _arg6 = (long ) 0;
6311 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
6312 char * _arg8 = (char *) "text";
6313 PyObject * _argo0 = 0;
6314 PyObject * _argo1 = 0;
6315 wxPoint temp;
6316 PyObject * _obj4 = 0;
6317 wxSize temp0;
6318 PyObject * _obj5 = 0;
6319 PyObject * _argo7 = 0;
6320 char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL };
6321
6322 self = self;
6323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
6324 return NULL;
6325 if (_argo0) {
6326 if (_argo0 == Py_None) { _arg0 = NULL; }
6327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p.");
6329 return NULL;
6330 }
6331 }
6332 if (_argo1) {
6333 if (_argo1 == Py_None) { _arg1 = NULL; }
6334 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6335 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p.");
6336 return NULL;
6337 }
6338 }
6339 if (_obj4)
6340 {
6341 _arg4 = &temp;
6342 if (! wxPoint_helper(_obj4, &_arg4))
6343 return NULL;
6344 }
6345 if (_obj5)
6346 {
6347 _arg5 = &temp0;
6348 if (! wxSize_helper(_obj5, &_arg5))
6349 return NULL;
6350 }
6351 if (_argo7) {
6352 if (_argo7 == Py_None) { _arg7 = NULL; }
6353 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
6354 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p.");
6355 return NULL;
6356 }
6357 }
6358 {
6359 wxPy_BEGIN_ALLOW_THREADS;
6360 _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
6361
6362 wxPy_END_ALLOW_THREADS;
6363 if (PyErr_Occurred()) return NULL;
6364 } _resultobj = Py_BuildValue("i",_result);
6365 return _resultobj;
6366 }
6367
6368 #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear())
6369 static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject * _resultobj;
6371 wxTextCtrl * _arg0;
6372 PyObject * _argo0 = 0;
6373 char *_kwnames[] = { "self", NULL };
6374
6375 self = self;
6376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0))
6377 return NULL;
6378 if (_argo0) {
6379 if (_argo0 == Py_None) { _arg0 = NULL; }
6380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p.");
6382 return NULL;
6383 }
6384 }
6385 {
6386 wxPy_BEGIN_ALLOW_THREADS;
6387 wxTextCtrl_Clear(_arg0);
6388
6389 wxPy_END_ALLOW_THREADS;
6390 if (PyErr_Occurred()) return NULL;
6391 } Py_INCREF(Py_None);
6392 _resultobj = Py_None;
6393 return _resultobj;
6394 }
6395
6396 #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy())
6397 static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
6398 PyObject * _resultobj;
6399 wxTextCtrl * _arg0;
6400 PyObject * _argo0 = 0;
6401 char *_kwnames[] = { "self", NULL };
6402
6403 self = self;
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0))
6405 return NULL;
6406 if (_argo0) {
6407 if (_argo0 == Py_None) { _arg0 = NULL; }
6408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p.");
6410 return NULL;
6411 }
6412 }
6413 {
6414 wxPy_BEGIN_ALLOW_THREADS;
6415 wxTextCtrl_Copy(_arg0);
6416
6417 wxPy_END_ALLOW_THREADS;
6418 if (PyErr_Occurred()) return NULL;
6419 } Py_INCREF(Py_None);
6420 _resultobj = Py_None;
6421 return _resultobj;
6422 }
6423
6424 #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut())
6425 static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
6426 PyObject * _resultobj;
6427 wxTextCtrl * _arg0;
6428 PyObject * _argo0 = 0;
6429 char *_kwnames[] = { "self", NULL };
6430
6431 self = self;
6432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0))
6433 return NULL;
6434 if (_argo0) {
6435 if (_argo0 == Py_None) { _arg0 = NULL; }
6436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p.");
6438 return NULL;
6439 }
6440 }
6441 {
6442 wxPy_BEGIN_ALLOW_THREADS;
6443 wxTextCtrl_Cut(_arg0);
6444
6445 wxPy_END_ALLOW_THREADS;
6446 if (PyErr_Occurred()) return NULL;
6447 } Py_INCREF(Py_None);
6448 _resultobj = Py_None;
6449 return _resultobj;
6450 }
6451
6452 #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits())
6453 static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
6454 PyObject * _resultobj;
6455 wxTextCtrl * _arg0;
6456 PyObject * _argo0 = 0;
6457 char *_kwnames[] = { "self", NULL };
6458
6459 self = self;
6460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0))
6461 return NULL;
6462 if (_argo0) {
6463 if (_argo0 == Py_None) { _arg0 = NULL; }
6464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p.");
6466 return NULL;
6467 }
6468 }
6469 {
6470 wxPy_BEGIN_ALLOW_THREADS;
6471 wxTextCtrl_DiscardEdits(_arg0);
6472
6473 wxPy_END_ALLOW_THREADS;
6474 if (PyErr_Occurred()) return NULL;
6475 } Py_INCREF(Py_None);
6476 _resultobj = Py_None;
6477 return _resultobj;
6478 }
6479
6480 #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
6481 static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6482 PyObject * _resultobj;
6483 long _result;
6484 wxTextCtrl * _arg0;
6485 PyObject * _argo0 = 0;
6486 char *_kwnames[] = { "self", NULL };
6487
6488 self = self;
6489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0))
6490 return NULL;
6491 if (_argo0) {
6492 if (_argo0 == Py_None) { _arg0 = NULL; }
6493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p.");
6495 return NULL;
6496 }
6497 }
6498 {
6499 wxPy_BEGIN_ALLOW_THREADS;
6500 _result = (long )wxTextCtrl_GetInsertionPoint(_arg0);
6501
6502 wxPy_END_ALLOW_THREADS;
6503 if (PyErr_Occurred()) return NULL;
6504 } _resultobj = Py_BuildValue("l",_result);
6505 return _resultobj;
6506 }
6507
6508 #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
6509 static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6510 PyObject * _resultobj;
6511 long _result;
6512 wxTextCtrl * _arg0;
6513 PyObject * _argo0 = 0;
6514 char *_kwnames[] = { "self", NULL };
6515
6516 self = self;
6517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0))
6518 return NULL;
6519 if (_argo0) {
6520 if (_argo0 == Py_None) { _arg0 = NULL; }
6521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p.");
6523 return NULL;
6524 }
6525 }
6526 {
6527 wxPy_BEGIN_ALLOW_THREADS;
6528 _result = (long )wxTextCtrl_GetLastPosition(_arg0);
6529
6530 wxPy_END_ALLOW_THREADS;
6531 if (PyErr_Occurred()) return NULL;
6532 } _resultobj = Py_BuildValue("l",_result);
6533 return _resultobj;
6534 }
6535
6536 #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0))
6537 static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
6538 PyObject * _resultobj;
6539 int _result;
6540 wxTextCtrl * _arg0;
6541 long _arg1;
6542 PyObject * _argo0 = 0;
6543 char *_kwnames[] = { "self","lineNo", NULL };
6544
6545 self = self;
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1))
6547 return NULL;
6548 if (_argo0) {
6549 if (_argo0 == Py_None) { _arg0 = NULL; }
6550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p.");
6552 return NULL;
6553 }
6554 }
6555 {
6556 wxPy_BEGIN_ALLOW_THREADS;
6557 _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1);
6558
6559 wxPy_END_ALLOW_THREADS;
6560 if (PyErr_Occurred()) return NULL;
6561 } _resultobj = Py_BuildValue("i",_result);
6562 return _resultobj;
6563 }
6564
6565 #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0))
6566 static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject * _resultobj;
6568 wxString * _result;
6569 wxTextCtrl * _arg0;
6570 long _arg1;
6571 PyObject * _argo0 = 0;
6572 char *_kwnames[] = { "self","lineNo", NULL };
6573
6574 self = self;
6575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1))
6576 return NULL;
6577 if (_argo0) {
6578 if (_argo0 == Py_None) { _arg0 = NULL; }
6579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p.");
6581 return NULL;
6582 }
6583 }
6584 {
6585 wxPy_BEGIN_ALLOW_THREADS;
6586 _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1));
6587
6588 wxPy_END_ALLOW_THREADS;
6589 if (PyErr_Occurred()) return NULL;
6590 }{
6591 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6592 }
6593 {
6594 delete _result;
6595 }
6596 return _resultobj;
6597 }
6598
6599 #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines())
6600 static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6601 PyObject * _resultobj;
6602 int _result;
6603 wxTextCtrl * _arg0;
6604 PyObject * _argo0 = 0;
6605 char *_kwnames[] = { "self", NULL };
6606
6607 self = self;
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0))
6609 return NULL;
6610 if (_argo0) {
6611 if (_argo0 == Py_None) { _arg0 = NULL; }
6612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p.");
6614 return NULL;
6615 }
6616 }
6617 {
6618 wxPy_BEGIN_ALLOW_THREADS;
6619 _result = (int )wxTextCtrl_GetNumberOfLines(_arg0);
6620
6621 wxPy_END_ALLOW_THREADS;
6622 if (PyErr_Occurred()) return NULL;
6623 } _resultobj = Py_BuildValue("i",_result);
6624 return _resultobj;
6625 }
6626
6627 #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue())
6628 static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6629 PyObject * _resultobj;
6630 wxString * _result;
6631 wxTextCtrl * _arg0;
6632 PyObject * _argo0 = 0;
6633 char *_kwnames[] = { "self", NULL };
6634
6635 self = self;
6636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0))
6637 return NULL;
6638 if (_argo0) {
6639 if (_argo0 == Py_None) { _arg0 = NULL; }
6640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p.");
6642 return NULL;
6643 }
6644 }
6645 {
6646 wxPy_BEGIN_ALLOW_THREADS;
6647 _result = new wxString (wxTextCtrl_GetValue(_arg0));
6648
6649 wxPy_END_ALLOW_THREADS;
6650 if (PyErr_Occurred()) return NULL;
6651 }{
6652 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6653 }
6654 {
6655 delete _result;
6656 }
6657 return _resultobj;
6658 }
6659
6660 #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified())
6661 static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
6662 PyObject * _resultobj;
6663 bool _result;
6664 wxTextCtrl * _arg0;
6665 PyObject * _argo0 = 0;
6666 char *_kwnames[] = { "self", NULL };
6667
6668 self = self;
6669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0))
6670 return NULL;
6671 if (_argo0) {
6672 if (_argo0 == Py_None) { _arg0 = NULL; }
6673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p.");
6675 return NULL;
6676 }
6677 }
6678 {
6679 wxPy_BEGIN_ALLOW_THREADS;
6680 _result = (bool )wxTextCtrl_IsModified(_arg0);
6681
6682 wxPy_END_ALLOW_THREADS;
6683 if (PyErr_Occurred()) return NULL;
6684 } _resultobj = Py_BuildValue("i",_result);
6685 return _resultobj;
6686 }
6687
6688 #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
6689 static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6690 PyObject * _resultobj;
6691 bool _result;
6692 wxTextCtrl * _arg0;
6693 wxString * _arg1;
6694 PyObject * _argo0 = 0;
6695 PyObject * _obj1 = 0;
6696 char *_kwnames[] = { "self","filename", NULL };
6697
6698 self = self;
6699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
6700 return NULL;
6701 if (_argo0) {
6702 if (_argo0 == Py_None) { _arg0 = NULL; }
6703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p.");
6705 return NULL;
6706 }
6707 }
6708 {
6709 #if PYTHON_API_VERSION >= 1009
6710 char* tmpPtr; int tmpSize;
6711 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6712 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6713 return NULL;
6714 }
6715 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6716 return NULL;
6717 _arg1 = new wxString(tmpPtr, tmpSize);
6718 #else
6719 if (!PyString_Check(_obj1)) {
6720 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6721 return NULL;
6722 }
6723 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6724 #endif
6725 }
6726 {
6727 wxPy_BEGIN_ALLOW_THREADS;
6728 _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1);
6729
6730 wxPy_END_ALLOW_THREADS;
6731 if (PyErr_Occurred()) return NULL;
6732 } _resultobj = Py_BuildValue("i",_result);
6733 {
6734 if (_obj1)
6735 delete _arg1;
6736 }
6737 return _resultobj;
6738 }
6739
6740 #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste())
6741 static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
6742 PyObject * _resultobj;
6743 wxTextCtrl * _arg0;
6744 PyObject * _argo0 = 0;
6745 char *_kwnames[] = { "self", NULL };
6746
6747 self = self;
6748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0))
6749 return NULL;
6750 if (_argo0) {
6751 if (_argo0 == Py_None) { _arg0 = NULL; }
6752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p.");
6754 return NULL;
6755 }
6756 }
6757 {
6758 wxPy_BEGIN_ALLOW_THREADS;
6759 wxTextCtrl_Paste(_arg0);
6760
6761 wxPy_END_ALLOW_THREADS;
6762 if (PyErr_Occurred()) return NULL;
6763 } Py_INCREF(Py_None);
6764 _resultobj = Py_None;
6765 return _resultobj;
6766 }
6767
6768 #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2))
6769 static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6770 PyObject * _resultobj;
6771 wxTextCtrl * _arg0;
6772 long _arg1;
6773 long * _arg2;
6774 long temp;
6775 long * _arg3;
6776 long temp0;
6777 PyObject * _argo0 = 0;
6778 char *_kwnames[] = { "self","pos", NULL };
6779
6780 self = self;
6781 {
6782 _arg2 = &temp;
6783 }
6784 {
6785 _arg3 = &temp0;
6786 }
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1))
6788 return NULL;
6789 if (_argo0) {
6790 if (_argo0 == Py_None) { _arg0 = NULL; }
6791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p.");
6793 return NULL;
6794 }
6795 }
6796 {
6797 wxPy_BEGIN_ALLOW_THREADS;
6798 wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3);
6799
6800 wxPy_END_ALLOW_THREADS;
6801 if (PyErr_Occurred()) return NULL;
6802 } Py_INCREF(Py_None);
6803 _resultobj = Py_None;
6804 {
6805 PyObject *o;
6806 o = PyInt_FromLong((long) (*_arg2));
6807 _resultobj = t_output_helper(_resultobj, o);
6808 }
6809 {
6810 PyObject *o;
6811 o = PyInt_FromLong((long) (*_arg3));
6812 _resultobj = t_output_helper(_resultobj, o);
6813 }
6814 return _resultobj;
6815 }
6816
6817 #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
6818 static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject * _resultobj;
6820 wxTextCtrl * _arg0;
6821 long _arg1;
6822 long _arg2;
6823 PyObject * _argo0 = 0;
6824 char *_kwnames[] = { "self","from","to", NULL };
6825
6826 self = self;
6827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
6828 return NULL;
6829 if (_argo0) {
6830 if (_argo0 == Py_None) { _arg0 = NULL; }
6831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p.");
6833 return NULL;
6834 }
6835 }
6836 {
6837 wxPy_BEGIN_ALLOW_THREADS;
6838 wxTextCtrl_Remove(_arg0,_arg1,_arg2);
6839
6840 wxPy_END_ALLOW_THREADS;
6841 if (PyErr_Occurred()) return NULL;
6842 } Py_INCREF(Py_None);
6843 _resultobj = Py_None;
6844 return _resultobj;
6845 }
6846
6847 #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
6848 static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
6849 PyObject * _resultobj;
6850 wxTextCtrl * _arg0;
6851 long _arg1;
6852 long _arg2;
6853 wxString * _arg3;
6854 PyObject * _argo0 = 0;
6855 PyObject * _obj3 = 0;
6856 char *_kwnames[] = { "self","from","to","value", NULL };
6857
6858 self = self;
6859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
6860 return NULL;
6861 if (_argo0) {
6862 if (_argo0 == Py_None) { _arg0 = NULL; }
6863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p.");
6865 return NULL;
6866 }
6867 }
6868 {
6869 #if PYTHON_API_VERSION >= 1009
6870 char* tmpPtr; int tmpSize;
6871 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
6872 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6873 return NULL;
6874 }
6875 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
6876 return NULL;
6877 _arg3 = new wxString(tmpPtr, tmpSize);
6878 #else
6879 if (!PyString_Check(_obj3)) {
6880 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6881 return NULL;
6882 }
6883 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
6884 #endif
6885 }
6886 {
6887 wxPy_BEGIN_ALLOW_THREADS;
6888 wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3);
6889
6890 wxPy_END_ALLOW_THREADS;
6891 if (PyErr_Occurred()) return NULL;
6892 } Py_INCREF(Py_None);
6893 _resultobj = Py_None;
6894 {
6895 if (_obj3)
6896 delete _arg3;
6897 }
6898 return _resultobj;
6899 }
6900
6901 #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
6902 static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6903 PyObject * _resultobj;
6904 bool _result;
6905 wxTextCtrl * _arg0;
6906 wxString * _arg1;
6907 PyObject * _argo0 = 0;
6908 PyObject * _obj1 = 0;
6909 char *_kwnames[] = { "self","filename", NULL };
6910
6911 self = self;
6912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
6913 return NULL;
6914 if (_argo0) {
6915 if (_argo0 == Py_None) { _arg0 = NULL; }
6916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p.");
6918 return NULL;
6919 }
6920 }
6921 {
6922 #if PYTHON_API_VERSION >= 1009
6923 char* tmpPtr; int tmpSize;
6924 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6925 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6926 return NULL;
6927 }
6928 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6929 return NULL;
6930 _arg1 = new wxString(tmpPtr, tmpSize);
6931 #else
6932 if (!PyString_Check(_obj1)) {
6933 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6934 return NULL;
6935 }
6936 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6937 #endif
6938 }
6939 {
6940 wxPy_BEGIN_ALLOW_THREADS;
6941 _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1);
6942
6943 wxPy_END_ALLOW_THREADS;
6944 if (PyErr_Occurred()) return NULL;
6945 } _resultobj = Py_BuildValue("i",_result);
6946 {
6947 if (_obj1)
6948 delete _arg1;
6949 }
6950 return _resultobj;
6951 }
6952
6953 #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
6954 static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
6955 PyObject * _resultobj;
6956 wxTextCtrl * _arg0;
6957 bool _arg1;
6958 PyObject * _argo0 = 0;
6959 int tempbool1;
6960 char *_kwnames[] = { "self","editable", NULL };
6961
6962 self = self;
6963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1))
6964 return NULL;
6965 if (_argo0) {
6966 if (_argo0 == Py_None) { _arg0 = NULL; }
6967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p.");
6969 return NULL;
6970 }
6971 }
6972 _arg1 = (bool ) tempbool1;
6973 {
6974 wxPy_BEGIN_ALLOW_THREADS;
6975 wxTextCtrl_SetEditable(_arg0,_arg1);
6976
6977 wxPy_END_ALLOW_THREADS;
6978 if (PyErr_Occurred()) return NULL;
6979 } Py_INCREF(Py_None);
6980 _resultobj = Py_None;
6981 return _resultobj;
6982 }
6983
6984 #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
6985 static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6986 PyObject * _resultobj;
6987 wxTextCtrl * _arg0;
6988 long _arg1;
6989 PyObject * _argo0 = 0;
6990 char *_kwnames[] = { "self","pos", NULL };
6991
6992 self = self;
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
6994 return NULL;
6995 if (_argo0) {
6996 if (_argo0 == Py_None) { _arg0 = NULL; }
6997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p.");
6999 return NULL;
7000 }
7001 }
7002 {
7003 wxPy_BEGIN_ALLOW_THREADS;
7004 wxTextCtrl_SetInsertionPoint(_arg0,_arg1);
7005
7006 wxPy_END_ALLOW_THREADS;
7007 if (PyErr_Occurred()) return NULL;
7008 } Py_INCREF(Py_None);
7009 _resultobj = Py_None;
7010 return _resultobj;
7011 }
7012
7013 #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
7014 static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject * _resultobj;
7016 wxTextCtrl * _arg0;
7017 PyObject * _argo0 = 0;
7018 char *_kwnames[] = { "self", NULL };
7019
7020 self = self;
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0))
7022 return NULL;
7023 if (_argo0) {
7024 if (_argo0 == Py_None) { _arg0 = NULL; }
7025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p.");
7027 return NULL;
7028 }
7029 }
7030 {
7031 wxPy_BEGIN_ALLOW_THREADS;
7032 wxTextCtrl_SetInsertionPointEnd(_arg0);
7033
7034 wxPy_END_ALLOW_THREADS;
7035 if (PyErr_Occurred()) return NULL;
7036 } Py_INCREF(Py_None);
7037 _resultobj = Py_None;
7038 return _resultobj;
7039 }
7040
7041 #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
7042 static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject * _resultobj;
7044 wxTextCtrl * _arg0;
7045 long _arg1;
7046 long _arg2;
7047 PyObject * _argo0 = 0;
7048 char *_kwnames[] = { "self","from","to", NULL };
7049
7050 self = self;
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
7052 return NULL;
7053 if (_argo0) {
7054 if (_argo0 == Py_None) { _arg0 = NULL; }
7055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p.");
7057 return NULL;
7058 }
7059 }
7060 {
7061 wxPy_BEGIN_ALLOW_THREADS;
7062 wxTextCtrl_SetSelection(_arg0,_arg1,_arg2);
7063
7064 wxPy_END_ALLOW_THREADS;
7065 if (PyErr_Occurred()) return NULL;
7066 } Py_INCREF(Py_None);
7067 _resultobj = Py_None;
7068 return _resultobj;
7069 }
7070
7071 #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
7072 static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7073 PyObject * _resultobj;
7074 wxTextCtrl * _arg0;
7075 wxString * _arg1;
7076 PyObject * _argo0 = 0;
7077 PyObject * _obj1 = 0;
7078 char *_kwnames[] = { "self","value", NULL };
7079
7080 self = self;
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1))
7082 return NULL;
7083 if (_argo0) {
7084 if (_argo0 == Py_None) { _arg0 = NULL; }
7085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p.");
7087 return NULL;
7088 }
7089 }
7090 {
7091 #if PYTHON_API_VERSION >= 1009
7092 char* tmpPtr; int tmpSize;
7093 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7094 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7095 return NULL;
7096 }
7097 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7098 return NULL;
7099 _arg1 = new wxString(tmpPtr, tmpSize);
7100 #else
7101 if (!PyString_Check(_obj1)) {
7102 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7103 return NULL;
7104 }
7105 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7106 #endif
7107 }
7108 {
7109 wxPy_BEGIN_ALLOW_THREADS;
7110 wxTextCtrl_SetValue(_arg0,*_arg1);
7111
7112 wxPy_END_ALLOW_THREADS;
7113 if (PyErr_Occurred()) return NULL;
7114 } Py_INCREF(Py_None);
7115 _resultobj = Py_None;
7116 {
7117 if (_obj1)
7118 delete _arg1;
7119 }
7120 return _resultobj;
7121 }
7122
7123 #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0))
7124 static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject * _resultobj;
7126 wxTextCtrl * _arg0;
7127 long _arg1;
7128 PyObject * _argo0 = 0;
7129 char *_kwnames[] = { "self","pos", NULL };
7130
7131 self = self;
7132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1))
7133 return NULL;
7134 if (_argo0) {
7135 if (_argo0 == Py_None) { _arg0 = NULL; }
7136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p.");
7138 return NULL;
7139 }
7140 }
7141 {
7142 wxPy_BEGIN_ALLOW_THREADS;
7143 wxTextCtrl_ShowPosition(_arg0,_arg1);
7144
7145 wxPy_END_ALLOW_THREADS;
7146 if (PyErr_Occurred()) return NULL;
7147 } Py_INCREF(Py_None);
7148 _resultobj = Py_None;
7149 return _resultobj;
7150 }
7151
7152 #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0))
7153 static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
7154 PyObject * _resultobj;
7155 wxTextCtrl * _arg0;
7156 wxString * _arg1;
7157 PyObject * _argo0 = 0;
7158 PyObject * _obj1 = 0;
7159 char *_kwnames[] = { "self","text", NULL };
7160
7161 self = self;
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1))
7163 return NULL;
7164 if (_argo0) {
7165 if (_argo0 == Py_None) { _arg0 = NULL; }
7166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p.");
7168 return NULL;
7169 }
7170 }
7171 {
7172 #if PYTHON_API_VERSION >= 1009
7173 char* tmpPtr; int tmpSize;
7174 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7175 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7176 return NULL;
7177 }
7178 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7179 return NULL;
7180 _arg1 = new wxString(tmpPtr, tmpSize);
7181 #else
7182 if (!PyString_Check(_obj1)) {
7183 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7184 return NULL;
7185 }
7186 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7187 #endif
7188 }
7189 {
7190 wxPy_BEGIN_ALLOW_THREADS;
7191 wxTextCtrl_WriteText(_arg0,*_arg1);
7192
7193 wxPy_END_ALLOW_THREADS;
7194 if (PyErr_Occurred()) return NULL;
7195 } Py_INCREF(Py_None);
7196 _resultobj = Py_None;
7197 {
7198 if (_obj1)
7199 delete _arg1;
7200 }
7201 return _resultobj;
7202 }
7203
7204 #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0))
7205 static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
7206 PyObject * _resultobj;
7207 wxTextCtrl * _arg0;
7208 wxString * _arg1;
7209 PyObject * _argo0 = 0;
7210 PyObject * _obj1 = 0;
7211 char *_kwnames[] = { "self","text", NULL };
7212
7213 self = self;
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1))
7215 return NULL;
7216 if (_argo0) {
7217 if (_argo0 == Py_None) { _arg0 = NULL; }
7218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p.");
7220 return NULL;
7221 }
7222 }
7223 {
7224 #if PYTHON_API_VERSION >= 1009
7225 char* tmpPtr; int tmpSize;
7226 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7228 return NULL;
7229 }
7230 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7231 return NULL;
7232 _arg1 = new wxString(tmpPtr, tmpSize);
7233 #else
7234 if (!PyString_Check(_obj1)) {
7235 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7236 return NULL;
7237 }
7238 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7239 #endif
7240 }
7241 {
7242 wxPy_BEGIN_ALLOW_THREADS;
7243 wxTextCtrl_AppendText(_arg0,*_arg1);
7244
7245 wxPy_END_ALLOW_THREADS;
7246 if (PyErr_Occurred()) return NULL;
7247 } Py_INCREF(Py_None);
7248 _resultobj = Py_None;
7249 {
7250 if (_obj1)
7251 delete _arg1;
7252 }
7253 return _resultobj;
7254 }
7255
7256 #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1))
7257 static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
7258 PyObject * _resultobj;
7259 long _result;
7260 wxTextCtrl * _arg0;
7261 long _arg1;
7262 long _arg2;
7263 PyObject * _argo0 = 0;
7264 char *_kwnames[] = { "self","x","y", NULL };
7265
7266 self = self;
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2))
7268 return NULL;
7269 if (_argo0) {
7270 if (_argo0 == Py_None) { _arg0 = NULL; }
7271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p.");
7273 return NULL;
7274 }
7275 }
7276 {
7277 wxPy_BEGIN_ALLOW_THREADS;
7278 _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2);
7279
7280 wxPy_END_ALLOW_THREADS;
7281 if (PyErr_Occurred()) return NULL;
7282 } _resultobj = Py_BuildValue("l",_result);
7283 return _resultobj;
7284 }
7285
7286 #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy())
7287 static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
7288 PyObject * _resultobj;
7289 bool _result;
7290 wxTextCtrl * _arg0;
7291 PyObject * _argo0 = 0;
7292 char *_kwnames[] = { "self", NULL };
7293
7294 self = self;
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0))
7296 return NULL;
7297 if (_argo0) {
7298 if (_argo0 == Py_None) { _arg0 = NULL; }
7299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p.");
7301 return NULL;
7302 }
7303 }
7304 {
7305 wxPy_BEGIN_ALLOW_THREADS;
7306 _result = (bool )wxTextCtrl_CanCopy(_arg0);
7307
7308 wxPy_END_ALLOW_THREADS;
7309 if (PyErr_Occurred()) return NULL;
7310 } _resultobj = Py_BuildValue("i",_result);
7311 return _resultobj;
7312 }
7313
7314 #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut())
7315 static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject * _resultobj;
7317 bool _result;
7318 wxTextCtrl * _arg0;
7319 PyObject * _argo0 = 0;
7320 char *_kwnames[] = { "self", NULL };
7321
7322 self = self;
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0))
7324 return NULL;
7325 if (_argo0) {
7326 if (_argo0 == Py_None) { _arg0 = NULL; }
7327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p.");
7329 return NULL;
7330 }
7331 }
7332 {
7333 wxPy_BEGIN_ALLOW_THREADS;
7334 _result = (bool )wxTextCtrl_CanCut(_arg0);
7335
7336 wxPy_END_ALLOW_THREADS;
7337 if (PyErr_Occurred()) return NULL;
7338 } _resultobj = Py_BuildValue("i",_result);
7339 return _resultobj;
7340 }
7341
7342 #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste())
7343 static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
7344 PyObject * _resultobj;
7345 bool _result;
7346 wxTextCtrl * _arg0;
7347 PyObject * _argo0 = 0;
7348 char *_kwnames[] = { "self", NULL };
7349
7350 self = self;
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0))
7352 return NULL;
7353 if (_argo0) {
7354 if (_argo0 == Py_None) { _arg0 = NULL; }
7355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p.");
7357 return NULL;
7358 }
7359 }
7360 {
7361 wxPy_BEGIN_ALLOW_THREADS;
7362 _result = (bool )wxTextCtrl_CanPaste(_arg0);
7363
7364 wxPy_END_ALLOW_THREADS;
7365 if (PyErr_Occurred()) return NULL;
7366 } _resultobj = Py_BuildValue("i",_result);
7367 return _resultobj;
7368 }
7369
7370 #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo())
7371 static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
7372 PyObject * _resultobj;
7373 bool _result;
7374 wxTextCtrl * _arg0;
7375 PyObject * _argo0 = 0;
7376 char *_kwnames[] = { "self", NULL };
7377
7378 self = self;
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0))
7380 return NULL;
7381 if (_argo0) {
7382 if (_argo0 == Py_None) { _arg0 = NULL; }
7383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p.");
7385 return NULL;
7386 }
7387 }
7388 {
7389 wxPy_BEGIN_ALLOW_THREADS;
7390 _result = (bool )wxTextCtrl_CanRedo(_arg0);
7391
7392 wxPy_END_ALLOW_THREADS;
7393 if (PyErr_Occurred()) return NULL;
7394 } _resultobj = Py_BuildValue("i",_result);
7395 return _resultobj;
7396 }
7397
7398 #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo())
7399 static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
7400 PyObject * _resultobj;
7401 bool _result;
7402 wxTextCtrl * _arg0;
7403 PyObject * _argo0 = 0;
7404 char *_kwnames[] = { "self", NULL };
7405
7406 self = self;
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0))
7408 return NULL;
7409 if (_argo0) {
7410 if (_argo0 == Py_None) { _arg0 = NULL; }
7411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p.");
7413 return NULL;
7414 }
7415 }
7416 {
7417 wxPy_BEGIN_ALLOW_THREADS;
7418 _result = (bool )wxTextCtrl_CanUndo(_arg0);
7419
7420 wxPy_END_ALLOW_THREADS;
7421 if (PyErr_Occurred()) return NULL;
7422 } _resultobj = Py_BuildValue("i",_result);
7423 return _resultobj;
7424 }
7425
7426 #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1))
7427 static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject * _resultobj;
7429 wxTextCtrl * _arg0;
7430 long * _arg1;
7431 long temp;
7432 long * _arg2;
7433 long temp0;
7434 PyObject * _argo0 = 0;
7435 char *_kwnames[] = { "self", NULL };
7436
7437 self = self;
7438 {
7439 _arg1 = &temp;
7440 }
7441 {
7442 _arg2 = &temp0;
7443 }
7444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0))
7445 return NULL;
7446 if (_argo0) {
7447 if (_argo0 == Py_None) { _arg0 = NULL; }
7448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p.");
7450 return NULL;
7451 }
7452 }
7453 {
7454 wxPy_BEGIN_ALLOW_THREADS;
7455 wxTextCtrl_GetSelection(_arg0,_arg1,_arg2);
7456
7457 wxPy_END_ALLOW_THREADS;
7458 if (PyErr_Occurred()) return NULL;
7459 } Py_INCREF(Py_None);
7460 _resultobj = Py_None;
7461 {
7462 PyObject *o;
7463 o = PyInt_FromLong((long) (*_arg1));
7464 _resultobj = t_output_helper(_resultobj, o);
7465 }
7466 {
7467 PyObject *o;
7468 o = PyInt_FromLong((long) (*_arg2));
7469 _resultobj = t_output_helper(_resultobj, o);
7470 }
7471 return _resultobj;
7472 }
7473
7474 #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable())
7475 static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject * _resultobj;
7477 bool _result;
7478 wxTextCtrl * _arg0;
7479 PyObject * _argo0 = 0;
7480 char *_kwnames[] = { "self", NULL };
7481
7482 self = self;
7483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0))
7484 return NULL;
7485 if (_argo0) {
7486 if (_argo0 == Py_None) { _arg0 = NULL; }
7487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p.");
7489 return NULL;
7490 }
7491 }
7492 {
7493 wxPy_BEGIN_ALLOW_THREADS;
7494 _result = (bool )wxTextCtrl_IsEditable(_arg0);
7495
7496 wxPy_END_ALLOW_THREADS;
7497 if (PyErr_Occurred()) return NULL;
7498 } _resultobj = Py_BuildValue("i",_result);
7499 return _resultobj;
7500 }
7501
7502 #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo())
7503 static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
7504 PyObject * _resultobj;
7505 wxTextCtrl * _arg0;
7506 PyObject * _argo0 = 0;
7507 char *_kwnames[] = { "self", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p.");
7516 return NULL;
7517 }
7518 }
7519 {
7520 wxPy_BEGIN_ALLOW_THREADS;
7521 wxTextCtrl_Undo(_arg0);
7522
7523 wxPy_END_ALLOW_THREADS;
7524 if (PyErr_Occurred()) return NULL;
7525 } Py_INCREF(Py_None);
7526 _resultobj = Py_None;
7527 return _resultobj;
7528 }
7529
7530 #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo())
7531 static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject * _resultobj;
7533 wxTextCtrl * _arg0;
7534 PyObject * _argo0 = 0;
7535 char *_kwnames[] = { "self", NULL };
7536
7537 self = self;
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0))
7539 return NULL;
7540 if (_argo0) {
7541 if (_argo0 == Py_None) { _arg0 = NULL; }
7542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p.");
7544 return NULL;
7545 }
7546 }
7547 {
7548 wxPy_BEGIN_ALLOW_THREADS;
7549 wxTextCtrl_Redo(_arg0);
7550
7551 wxPy_END_ALLOW_THREADS;
7552 if (PyErr_Occurred()) return NULL;
7553 } Py_INCREF(Py_None);
7554 _resultobj = Py_None;
7555 return _resultobj;
7556 }
7557
7558 #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2))
7559 static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7560 PyObject * _resultobj;
7561 bool _result;
7562 wxTextCtrl * _arg0;
7563 long _arg1;
7564 long _arg2;
7565 wxTextAttr * _arg3;
7566 PyObject * _argo0 = 0;
7567 PyObject * _argo3 = 0;
7568 char *_kwnames[] = { "self","start","end","style", NULL };
7569
7570 self = self;
7571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
7572 return NULL;
7573 if (_argo0) {
7574 if (_argo0 == Py_None) { _arg0 = NULL; }
7575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p.");
7577 return NULL;
7578 }
7579 }
7580 if (_argo3) {
7581 if (_argo3 == Py_None) { _arg3 = NULL; }
7582 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) {
7583 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p.");
7584 return NULL;
7585 }
7586 }
7587 {
7588 wxPy_BEGIN_ALLOW_THREADS;
7589 _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3);
7590
7591 wxPy_END_ALLOW_THREADS;
7592 if (PyErr_Occurred()) return NULL;
7593 } _resultobj = Py_BuildValue("i",_result);
7594 return _resultobj;
7595 }
7596
7597 #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0))
7598 static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7599 PyObject * _resultobj;
7600 bool _result;
7601 wxTextCtrl * _arg0;
7602 wxTextAttr * _arg1;
7603 PyObject * _argo0 = 0;
7604 PyObject * _argo1 = 0;
7605 char *_kwnames[] = { "self","style", NULL };
7606
7607 self = self;
7608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1))
7609 return NULL;
7610 if (_argo0) {
7611 if (_argo0 == Py_None) { _arg0 = NULL; }
7612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p.");
7614 return NULL;
7615 }
7616 }
7617 if (_argo1) {
7618 if (_argo1 == Py_None) { _arg1 = NULL; }
7619 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
7620 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p.");
7621 return NULL;
7622 }
7623 }
7624 {
7625 wxPy_BEGIN_ALLOW_THREADS;
7626 _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1);
7627
7628 wxPy_END_ALLOW_THREADS;
7629 if (PyErr_Occurred()) return NULL;
7630 } _resultobj = Py_BuildValue("i",_result);
7631 return _resultobj;
7632 }
7633
7634 #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle())
7635 static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject * _resultobj;
7637 wxTextAttr * _result;
7638 wxTextCtrl * _arg0;
7639 PyObject * _argo0 = 0;
7640 char *_kwnames[] = { "self", NULL };
7641 char _ptemp[128];
7642
7643 self = self;
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0))
7645 return NULL;
7646 if (_argo0) {
7647 if (_argo0 == Py_None) { _arg0 = NULL; }
7648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p.");
7650 return NULL;
7651 }
7652 }
7653 {
7654 wxPy_BEGIN_ALLOW_THREADS;
7655 const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0);
7656 _result = (wxTextAttr *) &_result_ref;
7657
7658 wxPy_END_ALLOW_THREADS;
7659 if (PyErr_Occurred()) return NULL;
7660 } if (_result) {
7661 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
7662 _resultobj = Py_BuildValue("s",_ptemp);
7663 } else {
7664 Py_INCREF(Py_None);
7665 _resultobj = Py_None;
7666 }
7667 return _resultobj;
7668 }
7669
7670 #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0))
7671 static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7672 PyObject * _resultobj;
7673 wxTextCtrl * _arg0;
7674 unsigned long _arg1;
7675 PyObject * _argo0 = 0;
7676 char *_kwnames[] = { "self","len", NULL };
7677
7678 self = self;
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1))
7680 return NULL;
7681 if (_argo0) {
7682 if (_argo0 == Py_None) { _arg0 = NULL; }
7683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p.");
7685 return NULL;
7686 }
7687 }
7688 {
7689 wxPy_BEGIN_ALLOW_THREADS;
7690 wxTextCtrl_SetMaxLength(_arg0,_arg1);
7691
7692 wxPy_END_ALLOW_THREADS;
7693 if (PyErr_Occurred()) return NULL;
7694 } Py_INCREF(Py_None);
7695 _resultobj = Py_None;
7696 return _resultobj;
7697 }
7698
7699 static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) {
7700 self->AppendText(text);
7701 }
7702 static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
7703 PyObject * _resultobj;
7704 wxTextCtrl * _arg0;
7705 wxString * _arg1;
7706 PyObject * _argo0 = 0;
7707 PyObject * _obj1 = 0;
7708 char *_kwnames[] = { "self","text", NULL };
7709
7710 self = self;
7711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1))
7712 return NULL;
7713 if (_argo0) {
7714 if (_argo0 == Py_None) { _arg0 = NULL; }
7715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p.");
7717 return NULL;
7718 }
7719 }
7720 {
7721 #if PYTHON_API_VERSION >= 1009
7722 char* tmpPtr; int tmpSize;
7723 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7724 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7725 return NULL;
7726 }
7727 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7728 return NULL;
7729 _arg1 = new wxString(tmpPtr, tmpSize);
7730 #else
7731 if (!PyString_Check(_obj1)) {
7732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7733 return NULL;
7734 }
7735 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7736 #endif
7737 }
7738 {
7739 wxPy_BEGIN_ALLOW_THREADS;
7740 wxTextCtrl_write(_arg0,*_arg1);
7741
7742 wxPy_END_ALLOW_THREADS;
7743 if (PyErr_Occurred()) return NULL;
7744 } Py_INCREF(Py_None);
7745 _resultobj = Py_None;
7746 {
7747 if (_obj1)
7748 delete _arg1;
7749 }
7750 return _resultobj;
7751 }
7752
7753 static void *SwigwxScrollBarTowxControl(void *ptr) {
7754 wxScrollBar *src;
7755 wxControl *dest;
7756 src = (wxScrollBar *) ptr;
7757 dest = (wxControl *) src;
7758 return (void *) dest;
7759 }
7760
7761 static void *SwigwxScrollBarTowxWindow(void *ptr) {
7762 wxScrollBar *src;
7763 wxWindow *dest;
7764 src = (wxScrollBar *) ptr;
7765 dest = (wxWindow *) src;
7766 return (void *) dest;
7767 }
7768
7769 static void *SwigwxScrollBarTowxEvtHandler(void *ptr) {
7770 wxScrollBar *src;
7771 wxEvtHandler *dest;
7772 src = (wxScrollBar *) ptr;
7773 dest = (wxEvtHandler *) src;
7774 return (void *) dest;
7775 }
7776
7777 static void *SwigwxScrollBarTowxObject(void *ptr) {
7778 wxScrollBar *src;
7779 wxObject *dest;
7780 src = (wxScrollBar *) ptr;
7781 dest = (wxObject *) src;
7782 return (void *) dest;
7783 }
7784
7785 #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7786 static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7787 PyObject * _resultobj;
7788 wxScrollBar * _result;
7789 wxWindow * _arg0;
7790 wxWindowID _arg1 = (wxWindowID ) -1;
7791 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
7792 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
7793 long _arg4 = (long ) wxSB_HORIZONTAL;
7794 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
7795 char * _arg6 = (char *) "scrollBar";
7796 PyObject * _argo0 = 0;
7797 wxPoint temp;
7798 PyObject * _obj2 = 0;
7799 wxSize temp0;
7800 PyObject * _obj3 = 0;
7801 PyObject * _argo5 = 0;
7802 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
7803 char _ptemp[128];
7804
7805 self = self;
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
7807 return NULL;
7808 if (_argo0) {
7809 if (_argo0 == Py_None) { _arg0 = NULL; }
7810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p.");
7812 return NULL;
7813 }
7814 }
7815 if (_obj2)
7816 {
7817 _arg2 = &temp;
7818 if (! wxPoint_helper(_obj2, &_arg2))
7819 return NULL;
7820 }
7821 if (_obj3)
7822 {
7823 _arg3 = &temp0;
7824 if (! wxSize_helper(_obj3, &_arg3))
7825 return NULL;
7826 }
7827 if (_argo5) {
7828 if (_argo5 == Py_None) { _arg5 = NULL; }
7829 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
7830 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p.");
7831 return NULL;
7832 }
7833 }
7834 {
7835 wxPy_BEGIN_ALLOW_THREADS;
7836 _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
7837
7838 wxPy_END_ALLOW_THREADS;
7839 if (PyErr_Occurred()) return NULL;
7840 } if (_result) {
7841 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
7842 _resultobj = Py_BuildValue("s",_ptemp);
7843 } else {
7844 Py_INCREF(Py_None);
7845 _resultobj = Py_None;
7846 }
7847 return _resultobj;
7848 }
7849
7850 #define new_wxPreScrollBar() (new wxScrollBar())
7851 static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject * _resultobj;
7853 wxScrollBar * _result;
7854 char *_kwnames[] = { NULL };
7855 char _ptemp[128];
7856
7857 self = self;
7858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames))
7859 return NULL;
7860 {
7861 wxPy_BEGIN_ALLOW_THREADS;
7862 _result = (wxScrollBar *)new_wxPreScrollBar();
7863
7864 wxPy_END_ALLOW_THREADS;
7865 if (PyErr_Occurred()) return NULL;
7866 } if (_result) {
7867 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
7868 _resultobj = Py_BuildValue("s",_ptemp);
7869 } else {
7870 Py_INCREF(Py_None);
7871 _resultobj = Py_None;
7872 }
7873 return _resultobj;
7874 }
7875
7876 #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7877 static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7878 PyObject * _resultobj;
7879 bool _result;
7880 wxScrollBar * _arg0;
7881 wxWindow * _arg1;
7882 wxWindowID _arg2 = (wxWindowID ) -1;
7883 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7884 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7885 long _arg5 = (long ) wxSB_HORIZONTAL;
7886 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
7887 char * _arg7 = (char *) "scrollBar";
7888 PyObject * _argo0 = 0;
7889 PyObject * _argo1 = 0;
7890 wxPoint temp;
7891 PyObject * _obj3 = 0;
7892 wxSize temp0;
7893 PyObject * _obj4 = 0;
7894 PyObject * _argo6 = 0;
7895 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
7896
7897 self = self;
7898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
7899 return NULL;
7900 if (_argo0) {
7901 if (_argo0 == Py_None) { _arg0 = NULL; }
7902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p.");
7904 return NULL;
7905 }
7906 }
7907 if (_argo1) {
7908 if (_argo1 == Py_None) { _arg1 = NULL; }
7909 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7910 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p.");
7911 return NULL;
7912 }
7913 }
7914 if (_obj3)
7915 {
7916 _arg3 = &temp;
7917 if (! wxPoint_helper(_obj3, &_arg3))
7918 return NULL;
7919 }
7920 if (_obj4)
7921 {
7922 _arg4 = &temp0;
7923 if (! wxSize_helper(_obj4, &_arg4))
7924 return NULL;
7925 }
7926 if (_argo6) {
7927 if (_argo6 == Py_None) { _arg6 = NULL; }
7928 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
7929 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p.");
7930 return NULL;
7931 }
7932 }
7933 {
7934 wxPy_BEGIN_ALLOW_THREADS;
7935 _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
7936
7937 wxPy_END_ALLOW_THREADS;
7938 if (PyErr_Occurred()) return NULL;
7939 } _resultobj = Py_BuildValue("i",_result);
7940 return _resultobj;
7941 }
7942
7943 #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange())
7944 static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7945 PyObject * _resultobj;
7946 int _result;
7947 wxScrollBar * _arg0;
7948 PyObject * _argo0 = 0;
7949 char *_kwnames[] = { "self", NULL };
7950
7951 self = self;
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0))
7953 return NULL;
7954 if (_argo0) {
7955 if (_argo0 == Py_None) { _arg0 = NULL; }
7956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p.");
7958 return NULL;
7959 }
7960 }
7961 {
7962 wxPy_BEGIN_ALLOW_THREADS;
7963 _result = (int )wxScrollBar_GetRange(_arg0);
7964
7965 wxPy_END_ALLOW_THREADS;
7966 if (PyErr_Occurred()) return NULL;
7967 } _resultobj = Py_BuildValue("i",_result);
7968 return _resultobj;
7969 }
7970
7971 #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize())
7972 static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject * _resultobj;
7974 int _result;
7975 wxScrollBar * _arg0;
7976 PyObject * _argo0 = 0;
7977 char *_kwnames[] = { "self", NULL };
7978
7979 self = self;
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0))
7981 return NULL;
7982 if (_argo0) {
7983 if (_argo0 == Py_None) { _arg0 = NULL; }
7984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p.");
7986 return NULL;
7987 }
7988 }
7989 {
7990 wxPy_BEGIN_ALLOW_THREADS;
7991 _result = (int )wxScrollBar_GetPageSize(_arg0);
7992
7993 wxPy_END_ALLOW_THREADS;
7994 if (PyErr_Occurred()) return NULL;
7995 } _resultobj = Py_BuildValue("i",_result);
7996 return _resultobj;
7997 }
7998
7999 #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition())
8000 static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8001 PyObject * _resultobj;
8002 int _result;
8003 wxScrollBar * _arg0;
8004 PyObject * _argo0 = 0;
8005 char *_kwnames[] = { "self", NULL };
8006
8007 self = self;
8008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0))
8009 return NULL;
8010 if (_argo0) {
8011 if (_argo0 == Py_None) { _arg0 = NULL; }
8012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p.");
8014 return NULL;
8015 }
8016 }
8017 {
8018 wxPy_BEGIN_ALLOW_THREADS;
8019 _result = (int )wxScrollBar_GetThumbPosition(_arg0);
8020
8021 wxPy_END_ALLOW_THREADS;
8022 if (PyErr_Occurred()) return NULL;
8023 } _resultobj = Py_BuildValue("i",_result);
8024 return _resultobj;
8025 }
8026
8027 #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize())
8028 static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8029 PyObject * _resultobj;
8030 int _result;
8031 wxScrollBar * _arg0;
8032 PyObject * _argo0 = 0;
8033 char *_kwnames[] = { "self", NULL };
8034
8035 self = self;
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0))
8037 return NULL;
8038 if (_argo0) {
8039 if (_argo0 == Py_None) { _arg0 = NULL; }
8040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p.");
8042 return NULL;
8043 }
8044 }
8045 {
8046 wxPy_BEGIN_ALLOW_THREADS;
8047 _result = (int )wxScrollBar_GetThumbSize(_arg0);
8048
8049 wxPy_END_ALLOW_THREADS;
8050 if (PyErr_Occurred()) return NULL;
8051 } _resultobj = Py_BuildValue("i",_result);
8052 return _resultobj;
8053 }
8054
8055 #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0))
8056 static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8057 PyObject * _resultobj;
8058 wxScrollBar * _arg0;
8059 int _arg1;
8060 PyObject * _argo0 = 0;
8061 char *_kwnames[] = { "self","viewStart", NULL };
8062
8063 self = self;
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1))
8065 return NULL;
8066 if (_argo0) {
8067 if (_argo0 == Py_None) { _arg0 = NULL; }
8068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p.");
8070 return NULL;
8071 }
8072 }
8073 {
8074 wxPy_BEGIN_ALLOW_THREADS;
8075 wxScrollBar_SetThumbPosition(_arg0,_arg1);
8076
8077 wxPy_END_ALLOW_THREADS;
8078 if (PyErr_Occurred()) return NULL;
8079 } Py_INCREF(Py_None);
8080 _resultobj = Py_None;
8081 return _resultobj;
8082 }
8083
8084 #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8085 static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject * _resultobj;
8087 wxScrollBar * _arg0;
8088 int _arg1;
8089 int _arg2;
8090 int _arg3;
8091 int _arg4;
8092 bool _arg5 = (bool ) TRUE;
8093 PyObject * _argo0 = 0;
8094 int tempbool5 = (int) TRUE;
8095 char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL };
8096
8097 self = self;
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
8099 return NULL;
8100 if (_argo0) {
8101 if (_argo0 == Py_None) { _arg0 = NULL; }
8102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
8103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p.");
8104 return NULL;
8105 }
8106 }
8107 _arg5 = (bool ) tempbool5;
8108 {
8109 wxPy_BEGIN_ALLOW_THREADS;
8110 wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
8111
8112 wxPy_END_ALLOW_THREADS;
8113 if (PyErr_Occurred()) return NULL;
8114 } Py_INCREF(Py_None);
8115 _resultobj = Py_None;
8116 return _resultobj;
8117 }
8118
8119 static void *SwigwxSpinButtonTowxControl(void *ptr) {
8120 wxSpinButton *src;
8121 wxControl *dest;
8122 src = (wxSpinButton *) ptr;
8123 dest = (wxControl *) src;
8124 return (void *) dest;
8125 }
8126
8127 static void *SwigwxSpinButtonTowxWindow(void *ptr) {
8128 wxSpinButton *src;
8129 wxWindow *dest;
8130 src = (wxSpinButton *) ptr;
8131 dest = (wxWindow *) src;
8132 return (void *) dest;
8133 }
8134
8135 static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) {
8136 wxSpinButton *src;
8137 wxEvtHandler *dest;
8138 src = (wxSpinButton *) ptr;
8139 dest = (wxEvtHandler *) src;
8140 return (void *) dest;
8141 }
8142
8143 static void *SwigwxSpinButtonTowxObject(void *ptr) {
8144 wxSpinButton *src;
8145 wxObject *dest;
8146 src = (wxSpinButton *) ptr;
8147 dest = (wxObject *) src;
8148 return (void *) dest;
8149 }
8150
8151 #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8152 static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject * _resultobj;
8154 wxSpinButton * _result;
8155 wxWindow * _arg0;
8156 wxWindowID _arg1 = (wxWindowID ) -1;
8157 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
8158 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
8159 long _arg4 = (long ) wxSP_HORIZONTAL;
8160 char * _arg5 = (char *) "spinButton";
8161 PyObject * _argo0 = 0;
8162 wxPoint temp;
8163 PyObject * _obj2 = 0;
8164 wxSize temp0;
8165 PyObject * _obj3 = 0;
8166 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
8167 char _ptemp[128];
8168
8169 self = self;
8170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
8171 return NULL;
8172 if (_argo0) {
8173 if (_argo0 == Py_None) { _arg0 = NULL; }
8174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p.");
8176 return NULL;
8177 }
8178 }
8179 if (_obj2)
8180 {
8181 _arg2 = &temp;
8182 if (! wxPoint_helper(_obj2, &_arg2))
8183 return NULL;
8184 }
8185 if (_obj3)
8186 {
8187 _arg3 = &temp0;
8188 if (! wxSize_helper(_obj3, &_arg3))
8189 return NULL;
8190 }
8191 {
8192 wxPy_BEGIN_ALLOW_THREADS;
8193 _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
8194
8195 wxPy_END_ALLOW_THREADS;
8196 if (PyErr_Occurred()) return NULL;
8197 } if (_result) {
8198 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
8199 _resultobj = Py_BuildValue("s",_ptemp);
8200 } else {
8201 Py_INCREF(Py_None);
8202 _resultobj = Py_None;
8203 }
8204 return _resultobj;
8205 }
8206
8207 #define new_wxPreSpinButton() (new wxSpinButton())
8208 static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject * _resultobj;
8210 wxSpinButton * _result;
8211 char *_kwnames[] = { NULL };
8212 char _ptemp[128];
8213
8214 self = self;
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames))
8216 return NULL;
8217 {
8218 wxPy_BEGIN_ALLOW_THREADS;
8219 _result = (wxSpinButton *)new_wxPreSpinButton();
8220
8221 wxPy_END_ALLOW_THREADS;
8222 if (PyErr_Occurred()) return NULL;
8223 } if (_result) {
8224 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
8225 _resultobj = Py_BuildValue("s",_ptemp);
8226 } else {
8227 Py_INCREF(Py_None);
8228 _resultobj = Py_None;
8229 }
8230 return _resultobj;
8231 }
8232
8233 #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8234 static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8235 PyObject * _resultobj;
8236 bool _result;
8237 wxSpinButton * _arg0;
8238 wxWindow * _arg1;
8239 wxWindowID _arg2 = (wxWindowID ) -1;
8240 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8241 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8242 long _arg5 = (long ) wxSP_HORIZONTAL;
8243 char * _arg6 = (char *) "spinButton";
8244 PyObject * _argo0 = 0;
8245 PyObject * _argo1 = 0;
8246 wxPoint temp;
8247 PyObject * _obj3 = 0;
8248 wxSize temp0;
8249 PyObject * _obj4 = 0;
8250 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
8251
8252 self = self;
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
8254 return NULL;
8255 if (_argo0) {
8256 if (_argo0 == Py_None) { _arg0 = NULL; }
8257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p.");
8259 return NULL;
8260 }
8261 }
8262 if (_argo1) {
8263 if (_argo1 == Py_None) { _arg1 = NULL; }
8264 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8265 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p.");
8266 return NULL;
8267 }
8268 }
8269 if (_obj3)
8270 {
8271 _arg3 = &temp;
8272 if (! wxPoint_helper(_obj3, &_arg3))
8273 return NULL;
8274 }
8275 if (_obj4)
8276 {
8277 _arg4 = &temp0;
8278 if (! wxSize_helper(_obj4, &_arg4))
8279 return NULL;
8280 }
8281 {
8282 wxPy_BEGIN_ALLOW_THREADS;
8283 _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
8284
8285 wxPy_END_ALLOW_THREADS;
8286 if (PyErr_Occurred()) return NULL;
8287 } _resultobj = Py_BuildValue("i",_result);
8288 return _resultobj;
8289 }
8290
8291 #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax())
8292 static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
8293 PyObject * _resultobj;
8294 int _result;
8295 wxSpinButton * _arg0;
8296 PyObject * _argo0 = 0;
8297 char *_kwnames[] = { "self", NULL };
8298
8299 self = self;
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0))
8301 return NULL;
8302 if (_argo0) {
8303 if (_argo0 == Py_None) { _arg0 = NULL; }
8304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p.");
8306 return NULL;
8307 }
8308 }
8309 {
8310 wxPy_BEGIN_ALLOW_THREADS;
8311 _result = (int )wxSpinButton_GetMax(_arg0);
8312
8313 wxPy_END_ALLOW_THREADS;
8314 if (PyErr_Occurred()) return NULL;
8315 } _resultobj = Py_BuildValue("i",_result);
8316 return _resultobj;
8317 }
8318
8319 #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin())
8320 static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject * _resultobj;
8322 int _result;
8323 wxSpinButton * _arg0;
8324 PyObject * _argo0 = 0;
8325 char *_kwnames[] = { "self", NULL };
8326
8327 self = self;
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0))
8329 return NULL;
8330 if (_argo0) {
8331 if (_argo0 == Py_None) { _arg0 = NULL; }
8332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p.");
8334 return NULL;
8335 }
8336 }
8337 {
8338 wxPy_BEGIN_ALLOW_THREADS;
8339 _result = (int )wxSpinButton_GetMin(_arg0);
8340
8341 wxPy_END_ALLOW_THREADS;
8342 if (PyErr_Occurred()) return NULL;
8343 } _resultobj = Py_BuildValue("i",_result);
8344 return _resultobj;
8345 }
8346
8347 #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue())
8348 static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject * _resultobj;
8350 int _result;
8351 wxSpinButton * _arg0;
8352 PyObject * _argo0 = 0;
8353 char *_kwnames[] = { "self", NULL };
8354
8355 self = self;
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0))
8357 return NULL;
8358 if (_argo0) {
8359 if (_argo0 == Py_None) { _arg0 = NULL; }
8360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p.");
8362 return NULL;
8363 }
8364 }
8365 {
8366 wxPy_BEGIN_ALLOW_THREADS;
8367 _result = (int )wxSpinButton_GetValue(_arg0);
8368
8369 wxPy_END_ALLOW_THREADS;
8370 if (PyErr_Occurred()) return NULL;
8371 } _resultobj = Py_BuildValue("i",_result);
8372 return _resultobj;
8373 }
8374
8375 #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
8376 static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8377 PyObject * _resultobj;
8378 wxSpinButton * _arg0;
8379 int _arg1;
8380 int _arg2;
8381 PyObject * _argo0 = 0;
8382 char *_kwnames[] = { "self","min","max", NULL };
8383
8384 self = self;
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
8386 return NULL;
8387 if (_argo0) {
8388 if (_argo0 == Py_None) { _arg0 = NULL; }
8389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p.");
8391 return NULL;
8392 }
8393 }
8394 {
8395 wxPy_BEGIN_ALLOW_THREADS;
8396 wxSpinButton_SetRange(_arg0,_arg1,_arg2);
8397
8398 wxPy_END_ALLOW_THREADS;
8399 if (PyErr_Occurred()) return NULL;
8400 } Py_INCREF(Py_None);
8401 _resultobj = Py_None;
8402 return _resultobj;
8403 }
8404
8405 #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
8406 static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject * _resultobj;
8408 wxSpinButton * _arg0;
8409 int _arg1;
8410 PyObject * _argo0 = 0;
8411 char *_kwnames[] = { "self","value", NULL };
8412
8413 self = self;
8414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1))
8415 return NULL;
8416 if (_argo0) {
8417 if (_argo0 == Py_None) { _arg0 = NULL; }
8418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p.");
8420 return NULL;
8421 }
8422 }
8423 {
8424 wxPy_BEGIN_ALLOW_THREADS;
8425 wxSpinButton_SetValue(_arg0,_arg1);
8426
8427 wxPy_END_ALLOW_THREADS;
8428 if (PyErr_Occurred()) return NULL;
8429 } Py_INCREF(Py_None);
8430 _resultobj = Py_None;
8431 return _resultobj;
8432 }
8433
8434 static void *SwigwxStaticBitmapTowxControl(void *ptr) {
8435 wxStaticBitmap *src;
8436 wxControl *dest;
8437 src = (wxStaticBitmap *) ptr;
8438 dest = (wxControl *) src;
8439 return (void *) dest;
8440 }
8441
8442 static void *SwigwxStaticBitmapTowxWindow(void *ptr) {
8443 wxStaticBitmap *src;
8444 wxWindow *dest;
8445 src = (wxStaticBitmap *) ptr;
8446 dest = (wxWindow *) src;
8447 return (void *) dest;
8448 }
8449
8450 static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) {
8451 wxStaticBitmap *src;
8452 wxEvtHandler *dest;
8453 src = (wxStaticBitmap *) ptr;
8454 dest = (wxEvtHandler *) src;
8455 return (void *) dest;
8456 }
8457
8458 static void *SwigwxStaticBitmapTowxObject(void *ptr) {
8459 wxStaticBitmap *src;
8460 wxObject *dest;
8461 src = (wxStaticBitmap *) ptr;
8462 dest = (wxObject *) src;
8463 return (void *) dest;
8464 }
8465
8466 #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8467 static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8468 PyObject * _resultobj;
8469 wxStaticBitmap * _result;
8470 wxWindow * _arg0;
8471 wxWindowID _arg1;
8472 wxBitmap * _arg2;
8473 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8474 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8475 long _arg5 = (long ) 0;
8476 char * _arg6 = (char *) "staticBitmap";
8477 PyObject * _argo0 = 0;
8478 PyObject * _argo2 = 0;
8479 wxPoint temp;
8480 PyObject * _obj3 = 0;
8481 wxSize temp0;
8482 PyObject * _obj4 = 0;
8483 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL };
8484 char _ptemp[128];
8485
8486 self = self;
8487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
8488 return NULL;
8489 if (_argo0) {
8490 if (_argo0 == Py_None) { _arg0 = NULL; }
8491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p.");
8493 return NULL;
8494 }
8495 }
8496 if (_argo2) {
8497 if (_argo2 == Py_None) { _arg2 = NULL; }
8498 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8499 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p.");
8500 return NULL;
8501 }
8502 }
8503 if (_obj3)
8504 {
8505 _arg3 = &temp;
8506 if (! wxPoint_helper(_obj3, &_arg3))
8507 return NULL;
8508 }
8509 if (_obj4)
8510 {
8511 _arg4 = &temp0;
8512 if (! wxSize_helper(_obj4, &_arg4))
8513 return NULL;
8514 }
8515 {
8516 wxPy_BEGIN_ALLOW_THREADS;
8517 _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
8518
8519 wxPy_END_ALLOW_THREADS;
8520 if (PyErr_Occurred()) return NULL;
8521 } if (_result) {
8522 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8523 _resultobj = Py_BuildValue("s",_ptemp);
8524 } else {
8525 Py_INCREF(Py_None);
8526 _resultobj = Py_None;
8527 }
8528 return _resultobj;
8529 }
8530
8531 #define new_wxPreStaticBitmap() (new wxStaticBitmap())
8532 static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8533 PyObject * _resultobj;
8534 wxStaticBitmap * _result;
8535 char *_kwnames[] = { NULL };
8536 char _ptemp[128];
8537
8538 self = self;
8539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames))
8540 return NULL;
8541 {
8542 wxPy_BEGIN_ALLOW_THREADS;
8543 _result = (wxStaticBitmap *)new_wxPreStaticBitmap();
8544
8545 wxPy_END_ALLOW_THREADS;
8546 if (PyErr_Occurred()) return NULL;
8547 } if (_result) {
8548 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8549 _resultobj = Py_BuildValue("s",_ptemp);
8550 } else {
8551 Py_INCREF(Py_None);
8552 _resultobj = Py_None;
8553 }
8554 return _resultobj;
8555 }
8556
8557 #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8558 static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8559 PyObject * _resultobj;
8560 bool _result;
8561 wxStaticBitmap * _arg0;
8562 wxWindow * _arg1;
8563 wxWindowID _arg2;
8564 wxBitmap * _arg3;
8565 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
8566 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
8567 long _arg6 = (long ) 0;
8568 char * _arg7 = (char *) "staticBitmap";
8569 PyObject * _argo0 = 0;
8570 PyObject * _argo1 = 0;
8571 PyObject * _argo3 = 0;
8572 wxPoint temp;
8573 PyObject * _obj4 = 0;
8574 wxSize temp0;
8575 PyObject * _obj5 = 0;
8576 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL };
8577
8578 self = self;
8579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7))
8580 return NULL;
8581 if (_argo0) {
8582 if (_argo0 == Py_None) { _arg0 = NULL; }
8583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p.");
8585 return NULL;
8586 }
8587 }
8588 if (_argo1) {
8589 if (_argo1 == Py_None) { _arg1 = NULL; }
8590 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8591 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p.");
8592 return NULL;
8593 }
8594 }
8595 if (_argo3) {
8596 if (_argo3 == Py_None) { _arg3 = NULL; }
8597 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
8598 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p.");
8599 return NULL;
8600 }
8601 }
8602 if (_obj4)
8603 {
8604 _arg4 = &temp;
8605 if (! wxPoint_helper(_obj4, &_arg4))
8606 return NULL;
8607 }
8608 if (_obj5)
8609 {
8610 _arg5 = &temp0;
8611 if (! wxSize_helper(_obj5, &_arg5))
8612 return NULL;
8613 }
8614 {
8615 wxPy_BEGIN_ALLOW_THREADS;
8616 _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
8617
8618 wxPy_END_ALLOW_THREADS;
8619 if (PyErr_Occurred()) return NULL;
8620 } _resultobj = Py_BuildValue("i",_result);
8621 return _resultobj;
8622 }
8623
8624 #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap())
8625 static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject * _resultobj;
8627 wxBitmap * _result;
8628 wxStaticBitmap * _arg0;
8629 PyObject * _argo0 = 0;
8630 char *_kwnames[] = { "self", NULL };
8631 char _ptemp[128];
8632
8633 self = self;
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0))
8635 return NULL;
8636 if (_argo0) {
8637 if (_argo0 == Py_None) { _arg0 = NULL; }
8638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p.");
8640 return NULL;
8641 }
8642 }
8643 {
8644 wxPy_BEGIN_ALLOW_THREADS;
8645 const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0);
8646 _result = (wxBitmap *) &_result_ref;
8647
8648 wxPy_END_ALLOW_THREADS;
8649 if (PyErr_Occurred()) return NULL;
8650 } if (_result) {
8651 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
8652 _resultobj = Py_BuildValue("s",_ptemp);
8653 } else {
8654 Py_INCREF(Py_None);
8655 _resultobj = Py_None;
8656 }
8657 return _resultobj;
8658 }
8659
8660 #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
8661 static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8662 PyObject * _resultobj;
8663 wxStaticBitmap * _arg0;
8664 wxBitmap * _arg1;
8665 PyObject * _argo0 = 0;
8666 PyObject * _argo1 = 0;
8667 char *_kwnames[] = { "self","bitmap", NULL };
8668
8669 self = self;
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1))
8671 return NULL;
8672 if (_argo0) {
8673 if (_argo0 == Py_None) { _arg0 = NULL; }
8674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p.");
8676 return NULL;
8677 }
8678 }
8679 if (_argo1) {
8680 if (_argo1 == Py_None) { _arg1 = NULL; }
8681 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8682 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p.");
8683 return NULL;
8684 }
8685 }
8686 {
8687 wxPy_BEGIN_ALLOW_THREADS;
8688 wxStaticBitmap_SetBitmap(_arg0,*_arg1);
8689
8690 wxPy_END_ALLOW_THREADS;
8691 if (PyErr_Occurred()) return NULL;
8692 } Py_INCREF(Py_None);
8693 _resultobj = Py_None;
8694 return _resultobj;
8695 }
8696
8697 #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
8698 static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8699 PyObject * _resultobj;
8700 wxStaticBitmap * _arg0;
8701 wxIcon * _arg1;
8702 PyObject * _argo0 = 0;
8703 PyObject * _argo1 = 0;
8704 char *_kwnames[] = { "self","icon", NULL };
8705
8706 self = self;
8707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1))
8708 return NULL;
8709 if (_argo0) {
8710 if (_argo0 == Py_None) { _arg0 = NULL; }
8711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p.");
8713 return NULL;
8714 }
8715 }
8716 if (_argo1) {
8717 if (_argo1 == Py_None) { _arg1 = NULL; }
8718 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8719 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p.");
8720 return NULL;
8721 }
8722 }
8723 {
8724 wxPy_BEGIN_ALLOW_THREADS;
8725 wxStaticBitmap_SetIcon(_arg0,*_arg1);
8726
8727 wxPy_END_ALLOW_THREADS;
8728 if (PyErr_Occurred()) return NULL;
8729 } Py_INCREF(Py_None);
8730 _resultobj = Py_None;
8731 return _resultobj;
8732 }
8733
8734 static void *SwigwxRadioBoxTowxControl(void *ptr) {
8735 wxRadioBox *src;
8736 wxControl *dest;
8737 src = (wxRadioBox *) ptr;
8738 dest = (wxControl *) src;
8739 return (void *) dest;
8740 }
8741
8742 static void *SwigwxRadioBoxTowxWindow(void *ptr) {
8743 wxRadioBox *src;
8744 wxWindow *dest;
8745 src = (wxRadioBox *) ptr;
8746 dest = (wxWindow *) src;
8747 return (void *) dest;
8748 }
8749
8750 static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) {
8751 wxRadioBox *src;
8752 wxEvtHandler *dest;
8753 src = (wxRadioBox *) ptr;
8754 dest = (wxEvtHandler *) src;
8755 return (void *) dest;
8756 }
8757
8758 static void *SwigwxRadioBoxTowxObject(void *ptr) {
8759 wxRadioBox *src;
8760 wxObject *dest;
8761 src = (wxRadioBox *) ptr;
8762 dest = (wxObject *) src;
8763 return (void *) dest;
8764 }
8765
8766 #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))
8767 static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8768 PyObject * _resultobj;
8769 wxRadioBox * _result;
8770 wxWindow * _arg0;
8771 wxWindowID _arg1;
8772 wxString * _arg2;
8773 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8774 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8775 int _arg5 = (int ) 0;
8776 wxString * _arg6 = (wxString *) NULL;
8777 int _arg7 = (int ) 0;
8778 long _arg8 = (long ) wxRA_HORIZONTAL;
8779 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
8780 char * _arg10 = (char *) "radioBox";
8781 PyObject * _argo0 = 0;
8782 PyObject * _obj2 = 0;
8783 wxPoint temp;
8784 PyObject * _obj3 = 0;
8785 wxSize temp0;
8786 PyObject * _obj4 = 0;
8787 PyObject * _obj6 = 0;
8788 PyObject * _argo9 = 0;
8789 char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
8790 char _ptemp[128];
8791
8792 self = self;
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10))
8794 return NULL;
8795 if (_argo0) {
8796 if (_argo0 == Py_None) { _arg0 = NULL; }
8797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p.");
8799 return NULL;
8800 }
8801 }
8802 {
8803 #if PYTHON_API_VERSION >= 1009
8804 char* tmpPtr; int tmpSize;
8805 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8806 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8807 return NULL;
8808 }
8809 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8810 return NULL;
8811 _arg2 = new wxString(tmpPtr, tmpSize);
8812 #else
8813 if (!PyString_Check(_obj2)) {
8814 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8815 return NULL;
8816 }
8817 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8818 #endif
8819 }
8820 if (_obj3)
8821 {
8822 _arg3 = &temp;
8823 if (! wxPoint_helper(_obj3, &_arg3))
8824 return NULL;
8825 }
8826 if (_obj4)
8827 {
8828 _arg4 = &temp0;
8829 if (! wxSize_helper(_obj4, &_arg4))
8830 return NULL;
8831 }
8832 if (_obj6)
8833 {
8834 _arg6 = wxString_LIST_helper(_obj6);
8835 if (_arg6 == NULL) {
8836 return NULL;
8837 }
8838 }
8839 if (_argo9) {
8840 if (_argo9 == Py_None) { _arg9 = NULL; }
8841 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
8842 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p.");
8843 return NULL;
8844 }
8845 }
8846 {
8847 if (_obj6) {
8848 _arg5 = PyList_Size(_obj6);
8849 }
8850 else {
8851 _arg5 = 0;
8852 }
8853 }
8854 {
8855 wxPy_BEGIN_ALLOW_THREADS;
8856 _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
8857
8858 wxPy_END_ALLOW_THREADS;
8859 if (PyErr_Occurred()) return NULL;
8860 } if (_result) {
8861 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
8862 _resultobj = Py_BuildValue("s",_ptemp);
8863 } else {
8864 Py_INCREF(Py_None);
8865 _resultobj = Py_None;
8866 }
8867 {
8868 if (_obj2)
8869 delete _arg2;
8870 }
8871 {
8872 delete [] _arg6;
8873 }
8874 return _resultobj;
8875 }
8876
8877 #define new_wxPreRadioBox() (new wxRadioBox())
8878 static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject * _resultobj;
8880 wxRadioBox * _result;
8881 char *_kwnames[] = { NULL };
8882 char _ptemp[128];
8883
8884 self = self;
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames))
8886 return NULL;
8887 {
8888 wxPy_BEGIN_ALLOW_THREADS;
8889 _result = (wxRadioBox *)new_wxPreRadioBox();
8890
8891 wxPy_END_ALLOW_THREADS;
8892 if (PyErr_Occurred()) return NULL;
8893 } if (_result) {
8894 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
8895 _resultobj = Py_BuildValue("s",_ptemp);
8896 } else {
8897 Py_INCREF(Py_None);
8898 _resultobj = Py_None;
8899 }
8900 return _resultobj;
8901 }
8902
8903 #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))
8904 static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject * _resultobj;
8906 bool _result;
8907 wxRadioBox * _arg0;
8908 wxWindow * _arg1;
8909 wxWindowID _arg2;
8910 wxString * _arg3;
8911 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
8912 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
8913 int _arg6 = (int ) 0;
8914 wxString * _arg7 = (wxString *) NULL;
8915 int _arg8 = (int ) 0;
8916 long _arg9 = (long ) wxRA_HORIZONTAL;
8917 wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator;
8918 char * _arg11 = (char *) "radioBox";
8919 PyObject * _argo0 = 0;
8920 PyObject * _argo1 = 0;
8921 PyObject * _obj3 = 0;
8922 wxPoint temp;
8923 PyObject * _obj4 = 0;
8924 wxSize temp0;
8925 PyObject * _obj5 = 0;
8926 PyObject * _obj7 = 0;
8927 PyObject * _argo10 = 0;
8928 char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
8929
8930 self = self;
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11))
8932 return NULL;
8933 if (_argo0) {
8934 if (_argo0 == Py_None) { _arg0 = NULL; }
8935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p.");
8937 return NULL;
8938 }
8939 }
8940 if (_argo1) {
8941 if (_argo1 == Py_None) { _arg1 = NULL; }
8942 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8943 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p.");
8944 return NULL;
8945 }
8946 }
8947 {
8948 #if PYTHON_API_VERSION >= 1009
8949 char* tmpPtr; int tmpSize;
8950 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8951 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8952 return NULL;
8953 }
8954 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8955 return NULL;
8956 _arg3 = new wxString(tmpPtr, tmpSize);
8957 #else
8958 if (!PyString_Check(_obj3)) {
8959 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8960 return NULL;
8961 }
8962 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8963 #endif
8964 }
8965 if (_obj4)
8966 {
8967 _arg4 = &temp;
8968 if (! wxPoint_helper(_obj4, &_arg4))
8969 return NULL;
8970 }
8971 if (_obj5)
8972 {
8973 _arg5 = &temp0;
8974 if (! wxSize_helper(_obj5, &_arg5))
8975 return NULL;
8976 }
8977 if (_obj7)
8978 {
8979 _arg7 = wxString_LIST_helper(_obj7);
8980 if (_arg7 == NULL) {
8981 return NULL;
8982 }
8983 }
8984 if (_argo10) {
8985 if (_argo10 == Py_None) { _arg10 = NULL; }
8986 else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) {
8987 PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p.");
8988 return NULL;
8989 }
8990 }
8991 {
8992 if (_obj7) {
8993 _arg6 = PyList_Size(_obj7);
8994 }
8995 else {
8996 _arg6 = 0;
8997 }
8998 }
8999 {
9000 wxPy_BEGIN_ALLOW_THREADS;
9001 _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11);
9002
9003 wxPy_END_ALLOW_THREADS;
9004 if (PyErr_Occurred()) return NULL;
9005 } _resultobj = Py_BuildValue("i",_result);
9006 {
9007 if (_obj3)
9008 delete _arg3;
9009 }
9010 {
9011 delete [] _arg7;
9012 }
9013 return _resultobj;
9014 }
9015
9016 #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9017 static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9018 PyObject * _resultobj;
9019 wxRadioBox * _arg0;
9020 bool _arg1;
9021 PyObject * _argo0 = 0;
9022 int tempbool1;
9023 char *_kwnames[] = { "self","enable", NULL };
9024
9025 self = self;
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1))
9027 return NULL;
9028 if (_argo0) {
9029 if (_argo0 == Py_None) { _arg0 = NULL; }
9030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p.");
9032 return NULL;
9033 }
9034 }
9035 _arg1 = (bool ) tempbool1;
9036 {
9037 wxPy_BEGIN_ALLOW_THREADS;
9038 wxRadioBox_Enable(_arg0,_arg1);
9039
9040 wxPy_END_ALLOW_THREADS;
9041 if (PyErr_Occurred()) return NULL;
9042 } Py_INCREF(Py_None);
9043 _resultobj = Py_None;
9044 return _resultobj;
9045 }
9046
9047 #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
9048 static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9049 PyObject * _resultobj;
9050 wxRadioBox * _arg0;
9051 int _arg1;
9052 bool _arg2;
9053 PyObject * _argo0 = 0;
9054 int tempbool2;
9055 char *_kwnames[] = { "self","n","enable", NULL };
9056
9057 self = self;
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2))
9059 return NULL;
9060 if (_argo0) {
9061 if (_argo0 == Py_None) { _arg0 = NULL; }
9062 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9063 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p.");
9064 return NULL;
9065 }
9066 }
9067 _arg2 = (bool ) tempbool2;
9068 {
9069 wxPy_BEGIN_ALLOW_THREADS;
9070 wxRadioBox_EnableItem(_arg0,_arg1,_arg2);
9071
9072 wxPy_END_ALLOW_THREADS;
9073 if (PyErr_Occurred()) return NULL;
9074 } Py_INCREF(Py_None);
9075 _resultobj = Py_None;
9076 return _resultobj;
9077 }
9078
9079 #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
9080 static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
9081 PyObject * _resultobj;
9082 int _result;
9083 wxRadioBox * _arg0;
9084 wxString * _arg1;
9085 PyObject * _argo0 = 0;
9086 PyObject * _obj1 = 0;
9087 char *_kwnames[] = { "self","string", NULL };
9088
9089 self = self;
9090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1))
9091 return NULL;
9092 if (_argo0) {
9093 if (_argo0 == Py_None) { _arg0 = NULL; }
9094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p.");
9096 return NULL;
9097 }
9098 }
9099 {
9100 #if PYTHON_API_VERSION >= 1009
9101 char* tmpPtr; int tmpSize;
9102 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9103 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9104 return NULL;
9105 }
9106 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9107 return NULL;
9108 _arg1 = new wxString(tmpPtr, tmpSize);
9109 #else
9110 if (!PyString_Check(_obj1)) {
9111 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9112 return NULL;
9113 }
9114 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9115 #endif
9116 }
9117 {
9118 wxPy_BEGIN_ALLOW_THREADS;
9119 _result = (int )wxRadioBox_FindString(_arg0,*_arg1);
9120
9121 wxPy_END_ALLOW_THREADS;
9122 if (PyErr_Occurred()) return NULL;
9123 } _resultobj = Py_BuildValue("i",_result);
9124 {
9125 if (_obj1)
9126 delete _arg1;
9127 }
9128 return _resultobj;
9129 }
9130
9131 #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
9132 static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject * _resultobj;
9134 wxString * _result;
9135 wxRadioBox * _arg0;
9136 int _arg1;
9137 PyObject * _argo0 = 0;
9138 char *_kwnames[] = { "self","n", NULL };
9139
9140 self = self;
9141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1))
9142 return NULL;
9143 if (_argo0) {
9144 if (_argo0 == Py_None) { _arg0 = NULL; }
9145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p.");
9147 return NULL;
9148 }
9149 }
9150 {
9151 wxPy_BEGIN_ALLOW_THREADS;
9152 _result = new wxString (wxRadioBox_GetString(_arg0,_arg1));
9153
9154 wxPy_END_ALLOW_THREADS;
9155 if (PyErr_Occurred()) return NULL;
9156 }{
9157 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9158 }
9159 {
9160 delete _result;
9161 }
9162 return _resultobj;
9163 }
9164
9165 #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9166 static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9167 PyObject * _resultobj;
9168 wxString * _result;
9169 wxRadioBox * _arg0;
9170 int _arg1;
9171 PyObject * _argo0 = 0;
9172 char *_kwnames[] = { "self","item", NULL };
9173
9174 self = self;
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1))
9176 return NULL;
9177 if (_argo0) {
9178 if (_argo0 == Py_None) { _arg0 = NULL; }
9179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p.");
9181 return NULL;
9182 }
9183 }
9184 {
9185 wxPy_BEGIN_ALLOW_THREADS;
9186 _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1));
9187
9188 wxPy_END_ALLOW_THREADS;
9189 if (PyErr_Occurred()) return NULL;
9190 }{
9191 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9192 }
9193 {
9194 delete _result;
9195 }
9196 return _resultobj;
9197 }
9198
9199 #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9200 static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject * _resultobj;
9202 wxRadioBox * _arg0;
9203 int _arg1;
9204 wxString * _arg2;
9205 PyObject * _argo0 = 0;
9206 PyObject * _obj2 = 0;
9207 char *_kwnames[] = { "self","item","label", NULL };
9208
9209 self = self;
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2))
9211 return NULL;
9212 if (_argo0) {
9213 if (_argo0 == Py_None) { _arg0 = NULL; }
9214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p.");
9216 return NULL;
9217 }
9218 }
9219 {
9220 #if PYTHON_API_VERSION >= 1009
9221 char* tmpPtr; int tmpSize;
9222 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9223 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9224 return NULL;
9225 }
9226 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9227 return NULL;
9228 _arg2 = new wxString(tmpPtr, tmpSize);
9229 #else
9230 if (!PyString_Check(_obj2)) {
9231 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9232 return NULL;
9233 }
9234 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9235 #endif
9236 }
9237 {
9238 wxPy_BEGIN_ALLOW_THREADS;
9239 wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2);
9240
9241 wxPy_END_ALLOW_THREADS;
9242 if (PyErr_Occurred()) return NULL;
9243 } Py_INCREF(Py_None);
9244 _resultobj = Py_None;
9245 {
9246 if (_obj2)
9247 delete _arg2;
9248 }
9249 return _resultobj;
9250 }
9251
9252 #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection())
9253 static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9254 PyObject * _resultobj;
9255 int _result;
9256 wxRadioBox * _arg0;
9257 PyObject * _argo0 = 0;
9258 char *_kwnames[] = { "self", NULL };
9259
9260 self = self;
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0))
9262 return NULL;
9263 if (_argo0) {
9264 if (_argo0 == Py_None) { _arg0 = NULL; }
9265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p.");
9267 return NULL;
9268 }
9269 }
9270 {
9271 wxPy_BEGIN_ALLOW_THREADS;
9272 _result = (int )wxRadioBox_GetSelection(_arg0);
9273
9274 wxPy_END_ALLOW_THREADS;
9275 if (PyErr_Occurred()) return NULL;
9276 } _resultobj = Py_BuildValue("i",_result);
9277 return _resultobj;
9278 }
9279
9280 #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
9281 static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9282 PyObject * _resultobj;
9283 wxString * _result;
9284 wxRadioBox * _arg0;
9285 PyObject * _argo0 = 0;
9286 char *_kwnames[] = { "self", NULL };
9287
9288 self = self;
9289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0))
9290 return NULL;
9291 if (_argo0) {
9292 if (_argo0 == Py_None) { _arg0 = NULL; }
9293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p.");
9295 return NULL;
9296 }
9297 }
9298 {
9299 wxPy_BEGIN_ALLOW_THREADS;
9300 _result = new wxString (wxRadioBox_GetStringSelection(_arg0));
9301
9302 wxPy_END_ALLOW_THREADS;
9303 if (PyErr_Occurred()) return NULL;
9304 }{
9305 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9306 }
9307 {
9308 delete _result;
9309 }
9310 return _resultobj;
9311 }
9312
9313 #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount())
9314 static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9315 PyObject * _resultobj;
9316 int _result;
9317 wxRadioBox * _arg0;
9318 PyObject * _argo0 = 0;
9319 char *_kwnames[] = { "self", NULL };
9320
9321 self = self;
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0))
9323 return NULL;
9324 if (_argo0) {
9325 if (_argo0 == Py_None) { _arg0 = NULL; }
9326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p.");
9328 return NULL;
9329 }
9330 }
9331 {
9332 wxPy_BEGIN_ALLOW_THREADS;
9333 _result = (int )wxRadioBox_GetCount(_arg0);
9334
9335 wxPy_END_ALLOW_THREADS;
9336 if (PyErr_Occurred()) return NULL;
9337 } _resultobj = Py_BuildValue("i",_result);
9338 return _resultobj;
9339 }
9340
9341 #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
9342 static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9343 PyObject * _resultobj;
9344 wxRadioBox * _arg0;
9345 int _arg1;
9346 PyObject * _argo0 = 0;
9347 char *_kwnames[] = { "self","n", NULL };
9348
9349 self = self;
9350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1))
9351 return NULL;
9352 if (_argo0) {
9353 if (_argo0 == Py_None) { _arg0 = NULL; }
9354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p.");
9356 return NULL;
9357 }
9358 }
9359 {
9360 wxPy_BEGIN_ALLOW_THREADS;
9361 wxRadioBox_SetSelection(_arg0,_arg1);
9362
9363 wxPy_END_ALLOW_THREADS;
9364 if (PyErr_Occurred()) return NULL;
9365 } Py_INCREF(Py_None);
9366 _resultobj = Py_None;
9367 return _resultobj;
9368 }
9369
9370 #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
9371 static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9372 PyObject * _resultobj;
9373 wxRadioBox * _arg0;
9374 wxString * _arg1;
9375 PyObject * _argo0 = 0;
9376 PyObject * _obj1 = 0;
9377 char *_kwnames[] = { "self","string", NULL };
9378
9379 self = self;
9380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1))
9381 return NULL;
9382 if (_argo0) {
9383 if (_argo0 == Py_None) { _arg0 = NULL; }
9384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p.");
9386 return NULL;
9387 }
9388 }
9389 {
9390 #if PYTHON_API_VERSION >= 1009
9391 char* tmpPtr; int tmpSize;
9392 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9393 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9394 return NULL;
9395 }
9396 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9397 return NULL;
9398 _arg1 = new wxString(tmpPtr, tmpSize);
9399 #else
9400 if (!PyString_Check(_obj1)) {
9401 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9402 return NULL;
9403 }
9404 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9405 #endif
9406 }
9407 {
9408 wxPy_BEGIN_ALLOW_THREADS;
9409 wxRadioBox_SetStringSelection(_arg0,*_arg1);
9410
9411 wxPy_END_ALLOW_THREADS;
9412 if (PyErr_Occurred()) return NULL;
9413 } Py_INCREF(Py_None);
9414 _resultobj = Py_None;
9415 {
9416 if (_obj1)
9417 delete _arg1;
9418 }
9419 return _resultobj;
9420 }
9421
9422 #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
9423 static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
9424 PyObject * _resultobj;
9425 wxRadioBox * _arg0;
9426 bool _arg1;
9427 PyObject * _argo0 = 0;
9428 int tempbool1;
9429 char *_kwnames[] = { "self","show", NULL };
9430
9431 self = self;
9432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1))
9433 return NULL;
9434 if (_argo0) {
9435 if (_argo0 == Py_None) { _arg0 = NULL; }
9436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p.");
9438 return NULL;
9439 }
9440 }
9441 _arg1 = (bool ) tempbool1;
9442 {
9443 wxPy_BEGIN_ALLOW_THREADS;
9444 wxRadioBox_Show(_arg0,_arg1);
9445
9446 wxPy_END_ALLOW_THREADS;
9447 if (PyErr_Occurred()) return NULL;
9448 } Py_INCREF(Py_None);
9449 _resultobj = Py_None;
9450 return _resultobj;
9451 }
9452
9453 #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1))
9454 static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9455 PyObject * _resultobj;
9456 wxRadioBox * _arg0;
9457 int _arg1;
9458 bool _arg2;
9459 PyObject * _argo0 = 0;
9460 int tempbool2;
9461 char *_kwnames[] = { "self","item","show", NULL };
9462
9463 self = self;
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2))
9465 return NULL;
9466 if (_argo0) {
9467 if (_argo0 == Py_None) { _arg0 = NULL; }
9468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p.");
9470 return NULL;
9471 }
9472 }
9473 _arg2 = (bool ) tempbool2;
9474 {
9475 wxPy_BEGIN_ALLOW_THREADS;
9476 wxRadioBox_ShowItem(_arg0,_arg1,_arg2);
9477
9478 wxPy_END_ALLOW_THREADS;
9479 if (PyErr_Occurred()) return NULL;
9480 } Py_INCREF(Py_None);
9481 _resultobj = Py_None;
9482 return _resultobj;
9483 }
9484
9485 static void *SwigwxRadioButtonTowxControl(void *ptr) {
9486 wxRadioButton *src;
9487 wxControl *dest;
9488 src = (wxRadioButton *) ptr;
9489 dest = (wxControl *) src;
9490 return (void *) dest;
9491 }
9492
9493 static void *SwigwxRadioButtonTowxWindow(void *ptr) {
9494 wxRadioButton *src;
9495 wxWindow *dest;
9496 src = (wxRadioButton *) ptr;
9497 dest = (wxWindow *) src;
9498 return (void *) dest;
9499 }
9500
9501 static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) {
9502 wxRadioButton *src;
9503 wxEvtHandler *dest;
9504 src = (wxRadioButton *) ptr;
9505 dest = (wxEvtHandler *) src;
9506 return (void *) dest;
9507 }
9508
9509 static void *SwigwxRadioButtonTowxObject(void *ptr) {
9510 wxRadioButton *src;
9511 wxObject *dest;
9512 src = (wxRadioButton *) ptr;
9513 dest = (wxObject *) src;
9514 return (void *) dest;
9515 }
9516
9517 #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
9518 static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject * _resultobj;
9520 wxRadioButton * _result;
9521 wxWindow * _arg0;
9522 wxWindowID _arg1;
9523 wxString * _arg2;
9524 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9525 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
9526 long _arg5 = (long ) 0;
9527 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
9528 char * _arg7 = (char *) "radioButton";
9529 PyObject * _argo0 = 0;
9530 PyObject * _obj2 = 0;
9531 wxPoint temp;
9532 PyObject * _obj3 = 0;
9533 wxSize temp0;
9534 PyObject * _obj4 = 0;
9535 PyObject * _argo6 = 0;
9536 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
9537 char _ptemp[128];
9538
9539 self = self;
9540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
9541 return NULL;
9542 if (_argo0) {
9543 if (_argo0 == Py_None) { _arg0 = NULL; }
9544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p.");
9546 return NULL;
9547 }
9548 }
9549 {
9550 #if PYTHON_API_VERSION >= 1009
9551 char* tmpPtr; int tmpSize;
9552 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9553 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9554 return NULL;
9555 }
9556 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9557 return NULL;
9558 _arg2 = new wxString(tmpPtr, tmpSize);
9559 #else
9560 if (!PyString_Check(_obj2)) {
9561 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9562 return NULL;
9563 }
9564 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9565 #endif
9566 }
9567 if (_obj3)
9568 {
9569 _arg3 = &temp;
9570 if (! wxPoint_helper(_obj3, &_arg3))
9571 return NULL;
9572 }
9573 if (_obj4)
9574 {
9575 _arg4 = &temp0;
9576 if (! wxSize_helper(_obj4, &_arg4))
9577 return NULL;
9578 }
9579 if (_argo6) {
9580 if (_argo6 == Py_None) { _arg6 = NULL; }
9581 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
9582 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p.");
9583 return NULL;
9584 }
9585 }
9586 {
9587 wxPy_BEGIN_ALLOW_THREADS;
9588 _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
9589
9590 wxPy_END_ALLOW_THREADS;
9591 if (PyErr_Occurred()) return NULL;
9592 } if (_result) {
9593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9594 _resultobj = Py_BuildValue("s",_ptemp);
9595 } else {
9596 Py_INCREF(Py_None);
9597 _resultobj = Py_None;
9598 }
9599 {
9600 if (_obj2)
9601 delete _arg2;
9602 }
9603 return _resultobj;
9604 }
9605
9606 #define new_wxPreRadioButton() (new wxRadioButton())
9607 static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9608 PyObject * _resultobj;
9609 wxRadioButton * _result;
9610 char *_kwnames[] = { NULL };
9611 char _ptemp[128];
9612
9613 self = self;
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames))
9615 return NULL;
9616 {
9617 wxPy_BEGIN_ALLOW_THREADS;
9618 _result = (wxRadioButton *)new_wxPreRadioButton();
9619
9620 wxPy_END_ALLOW_THREADS;
9621 if (PyErr_Occurred()) return NULL;
9622 } if (_result) {
9623 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9624 _resultobj = Py_BuildValue("s",_ptemp);
9625 } else {
9626 Py_INCREF(Py_None);
9627 _resultobj = Py_None;
9628 }
9629 return _resultobj;
9630 }
9631
9632 #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
9633 static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9634 PyObject * _resultobj;
9635 bool _result;
9636 wxRadioButton * _arg0;
9637 wxWindow * _arg1;
9638 wxWindowID _arg2;
9639 wxString * _arg3;
9640 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
9641 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
9642 long _arg6 = (long ) 0;
9643 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
9644 char * _arg8 = (char *) "radioButton";
9645 PyObject * _argo0 = 0;
9646 PyObject * _argo1 = 0;
9647 PyObject * _obj3 = 0;
9648 wxPoint temp;
9649 PyObject * _obj4 = 0;
9650 wxSize temp0;
9651 PyObject * _obj5 = 0;
9652 PyObject * _argo7 = 0;
9653 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
9654
9655 self = self;
9656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
9657 return NULL;
9658 if (_argo0) {
9659 if (_argo0 == Py_None) { _arg0 = NULL; }
9660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p.");
9662 return NULL;
9663 }
9664 }
9665 if (_argo1) {
9666 if (_argo1 == Py_None) { _arg1 = NULL; }
9667 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9668 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p.");
9669 return NULL;
9670 }
9671 }
9672 {
9673 #if PYTHON_API_VERSION >= 1009
9674 char* tmpPtr; int tmpSize;
9675 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
9676 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9677 return NULL;
9678 }
9679 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
9680 return NULL;
9681 _arg3 = new wxString(tmpPtr, tmpSize);
9682 #else
9683 if (!PyString_Check(_obj3)) {
9684 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9685 return NULL;
9686 }
9687 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
9688 #endif
9689 }
9690 if (_obj4)
9691 {
9692 _arg4 = &temp;
9693 if (! wxPoint_helper(_obj4, &_arg4))
9694 return NULL;
9695 }
9696 if (_obj5)
9697 {
9698 _arg5 = &temp0;
9699 if (! wxSize_helper(_obj5, &_arg5))
9700 return NULL;
9701 }
9702 if (_argo7) {
9703 if (_argo7 == Py_None) { _arg7 = NULL; }
9704 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
9705 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p.");
9706 return NULL;
9707 }
9708 }
9709 {
9710 wxPy_BEGIN_ALLOW_THREADS;
9711 _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
9712
9713 wxPy_END_ALLOW_THREADS;
9714 if (PyErr_Occurred()) return NULL;
9715 } _resultobj = Py_BuildValue("i",_result);
9716 {
9717 if (_obj3)
9718 delete _arg3;
9719 }
9720 return _resultobj;
9721 }
9722
9723 #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue())
9724 static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9725 PyObject * _resultobj;
9726 bool _result;
9727 wxRadioButton * _arg0;
9728 PyObject * _argo0 = 0;
9729 char *_kwnames[] = { "self", NULL };
9730
9731 self = self;
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0))
9733 return NULL;
9734 if (_argo0) {
9735 if (_argo0 == Py_None) { _arg0 = NULL; }
9736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p.");
9738 return NULL;
9739 }
9740 }
9741 {
9742 wxPy_BEGIN_ALLOW_THREADS;
9743 _result = (bool )wxRadioButton_GetValue(_arg0);
9744
9745 wxPy_END_ALLOW_THREADS;
9746 if (PyErr_Occurred()) return NULL;
9747 } _resultobj = Py_BuildValue("i",_result);
9748 return _resultobj;
9749 }
9750
9751 #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
9752 static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9753 PyObject * _resultobj;
9754 wxRadioButton * _arg0;
9755 bool _arg1;
9756 PyObject * _argo0 = 0;
9757 int tempbool1;
9758 char *_kwnames[] = { "self","value", NULL };
9759
9760 self = self;
9761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1))
9762 return NULL;
9763 if (_argo0) {
9764 if (_argo0 == Py_None) { _arg0 = NULL; }
9765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p.");
9767 return NULL;
9768 }
9769 }
9770 _arg1 = (bool ) tempbool1;
9771 {
9772 wxPy_BEGIN_ALLOW_THREADS;
9773 wxRadioButton_SetValue(_arg0,_arg1);
9774
9775 wxPy_END_ALLOW_THREADS;
9776 if (PyErr_Occurred()) return NULL;
9777 } Py_INCREF(Py_None);
9778 _resultobj = Py_None;
9779 return _resultobj;
9780 }
9781
9782 static void *SwigwxSliderTowxControl(void *ptr) {
9783 wxSlider *src;
9784 wxControl *dest;
9785 src = (wxSlider *) ptr;
9786 dest = (wxControl *) src;
9787 return (void *) dest;
9788 }
9789
9790 static void *SwigwxSliderTowxWindow(void *ptr) {
9791 wxSlider *src;
9792 wxWindow *dest;
9793 src = (wxSlider *) ptr;
9794 dest = (wxWindow *) src;
9795 return (void *) dest;
9796 }
9797
9798 static void *SwigwxSliderTowxEvtHandler(void *ptr) {
9799 wxSlider *src;
9800 wxEvtHandler *dest;
9801 src = (wxSlider *) ptr;
9802 dest = (wxEvtHandler *) src;
9803 return (void *) dest;
9804 }
9805
9806 static void *SwigwxSliderTowxObject(void *ptr) {
9807 wxSlider *src;
9808 wxObject *dest;
9809 src = (wxSlider *) ptr;
9810 dest = (wxObject *) src;
9811 return (void *) dest;
9812 }
9813
9814 #define new_wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
9815 static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
9816 PyObject * _resultobj;
9817 wxSlider * _result;
9818 wxWindow * _arg0;
9819 wxWindowID _arg1;
9820 int _arg2;
9821 int _arg3;
9822 int _arg4;
9823 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
9824 wxSize * _arg6 = (wxSize *) &wxDefaultSize;
9825 long _arg7 = (long ) wxSL_HORIZONTAL;
9826 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
9827 char * _arg9 = (char *) "slider";
9828 PyObject * _argo0 = 0;
9829 wxPoint temp;
9830 PyObject * _obj5 = 0;
9831 wxSize temp0;
9832 PyObject * _obj6 = 0;
9833 PyObject * _argo8 = 0;
9834 char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
9835 char _ptemp[128];
9836
9837 self = self;
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9))
9839 return NULL;
9840 if (_argo0) {
9841 if (_argo0 == Py_None) { _arg0 = NULL; }
9842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p.");
9844 return NULL;
9845 }
9846 }
9847 if (_obj5)
9848 {
9849 _arg5 = &temp;
9850 if (! wxPoint_helper(_obj5, &_arg5))
9851 return NULL;
9852 }
9853 if (_obj6)
9854 {
9855 _arg6 = &temp0;
9856 if (! wxSize_helper(_obj6, &_arg6))
9857 return NULL;
9858 }
9859 if (_argo8) {
9860 if (_argo8 == Py_None) { _arg8 = NULL; }
9861 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
9862 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p.");
9863 return NULL;
9864 }
9865 }
9866 {
9867 wxPy_BEGIN_ALLOW_THREADS;
9868 _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9);
9869
9870 wxPy_END_ALLOW_THREADS;
9871 if (PyErr_Occurred()) return NULL;
9872 } if (_result) {
9873 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
9874 _resultobj = Py_BuildValue("s",_ptemp);
9875 } else {
9876 Py_INCREF(Py_None);
9877 _resultobj = Py_None;
9878 }
9879 return _resultobj;
9880 }
9881
9882 #define new_wxPreSlider() (new wxSlider())
9883 static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
9884 PyObject * _resultobj;
9885 wxSlider * _result;
9886 char *_kwnames[] = { NULL };
9887 char _ptemp[128];
9888
9889 self = self;
9890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames))
9891 return NULL;
9892 {
9893 wxPy_BEGIN_ALLOW_THREADS;
9894 _result = (wxSlider *)new_wxPreSlider();
9895
9896 wxPy_END_ALLOW_THREADS;
9897 if (PyErr_Occurred()) return NULL;
9898 } if (_result) {
9899 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
9900 _resultobj = Py_BuildValue("s",_ptemp);
9901 } else {
9902 Py_INCREF(Py_None);
9903 _resultobj = Py_None;
9904 }
9905 return _resultobj;
9906 }
9907
9908 #define wxSlider_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
9909 static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9910 PyObject * _resultobj;
9911 bool _result;
9912 wxSlider * _arg0;
9913 wxWindow * _arg1;
9914 wxWindowID _arg2;
9915 int _arg3;
9916 int _arg4;
9917 int _arg5;
9918 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
9919 wxSize * _arg7 = (wxSize *) &wxDefaultSize;
9920 long _arg8 = (long ) wxSL_HORIZONTAL;
9921 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
9922 char * _arg10 = (char *) "slider";
9923 PyObject * _argo0 = 0;
9924 PyObject * _argo1 = 0;
9925 wxPoint temp;
9926 PyObject * _obj6 = 0;
9927 wxSize temp0;
9928 PyObject * _obj7 = 0;
9929 PyObject * _argo9 = 0;
9930 char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
9931
9932 self = self;
9933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10))
9934 return NULL;
9935 if (_argo0) {
9936 if (_argo0 == Py_None) { _arg0 = NULL; }
9937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p.");
9939 return NULL;
9940 }
9941 }
9942 if (_argo1) {
9943 if (_argo1 == Py_None) { _arg1 = NULL; }
9944 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9945 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p.");
9946 return NULL;
9947 }
9948 }
9949 if (_obj6)
9950 {
9951 _arg6 = &temp;
9952 if (! wxPoint_helper(_obj6, &_arg6))
9953 return NULL;
9954 }
9955 if (_obj7)
9956 {
9957 _arg7 = &temp0;
9958 if (! wxSize_helper(_obj7, &_arg7))
9959 return NULL;
9960 }
9961 if (_argo9) {
9962 if (_argo9 == Py_None) { _arg9 = NULL; }
9963 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
9964 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p.");
9965 return NULL;
9966 }
9967 }
9968 {
9969 wxPy_BEGIN_ALLOW_THREADS;
9970 _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10);
9971
9972 wxPy_END_ALLOW_THREADS;
9973 if (PyErr_Occurred()) return NULL;
9974 } _resultobj = Py_BuildValue("i",_result);
9975 return _resultobj;
9976 }
9977
9978 #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel())
9979 static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
9980 PyObject * _resultobj;
9981 wxSlider * _arg0;
9982 PyObject * _argo0 = 0;
9983 char *_kwnames[] = { "self", NULL };
9984
9985 self = self;
9986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0))
9987 return NULL;
9988 if (_argo0) {
9989 if (_argo0 == Py_None) { _arg0 = NULL; }
9990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p.");
9992 return NULL;
9993 }
9994 }
9995 {
9996 wxPy_BEGIN_ALLOW_THREADS;
9997 wxSlider_ClearSel(_arg0);
9998
9999 wxPy_END_ALLOW_THREADS;
10000 if (PyErr_Occurred()) return NULL;
10001 } Py_INCREF(Py_None);
10002 _resultobj = Py_None;
10003 return _resultobj;
10004 }
10005
10006 #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks())
10007 static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
10008 PyObject * _resultobj;
10009 wxSlider * _arg0;
10010 PyObject * _argo0 = 0;
10011 char *_kwnames[] = { "self", NULL };
10012
10013 self = self;
10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0))
10015 return NULL;
10016 if (_argo0) {
10017 if (_argo0 == Py_None) { _arg0 = NULL; }
10018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p.");
10020 return NULL;
10021 }
10022 }
10023 {
10024 wxPy_BEGIN_ALLOW_THREADS;
10025 wxSlider_ClearTicks(_arg0);
10026
10027 wxPy_END_ALLOW_THREADS;
10028 if (PyErr_Occurred()) return NULL;
10029 } Py_INCREF(Py_None);
10030 _resultobj = Py_None;
10031 return _resultobj;
10032 }
10033
10034 #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize())
10035 static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject * _resultobj;
10037 int _result;
10038 wxSlider * _arg0;
10039 PyObject * _argo0 = 0;
10040 char *_kwnames[] = { "self", NULL };
10041
10042 self = self;
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0))
10044 return NULL;
10045 if (_argo0) {
10046 if (_argo0 == Py_None) { _arg0 = NULL; }
10047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p.");
10049 return NULL;
10050 }
10051 }
10052 {
10053 wxPy_BEGIN_ALLOW_THREADS;
10054 _result = (int )wxSlider_GetLineSize(_arg0);
10055
10056 wxPy_END_ALLOW_THREADS;
10057 if (PyErr_Occurred()) return NULL;
10058 } _resultobj = Py_BuildValue("i",_result);
10059 return _resultobj;
10060 }
10061
10062 #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax())
10063 static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject * _resultobj;
10065 int _result;
10066 wxSlider * _arg0;
10067 PyObject * _argo0 = 0;
10068 char *_kwnames[] = { "self", NULL };
10069
10070 self = self;
10071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0))
10072 return NULL;
10073 if (_argo0) {
10074 if (_argo0 == Py_None) { _arg0 = NULL; }
10075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p.");
10077 return NULL;
10078 }
10079 }
10080 {
10081 wxPy_BEGIN_ALLOW_THREADS;
10082 _result = (int )wxSlider_GetMax(_arg0);
10083
10084 wxPy_END_ALLOW_THREADS;
10085 if (PyErr_Occurred()) return NULL;
10086 } _resultobj = Py_BuildValue("i",_result);
10087 return _resultobj;
10088 }
10089
10090 #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin())
10091 static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10092 PyObject * _resultobj;
10093 int _result;
10094 wxSlider * _arg0;
10095 PyObject * _argo0 = 0;
10096 char *_kwnames[] = { "self", NULL };
10097
10098 self = self;
10099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0))
10100 return NULL;
10101 if (_argo0) {
10102 if (_argo0 == Py_None) { _arg0 = NULL; }
10103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p.");
10105 return NULL;
10106 }
10107 }
10108 {
10109 wxPy_BEGIN_ALLOW_THREADS;
10110 _result = (int )wxSlider_GetMin(_arg0);
10111
10112 wxPy_END_ALLOW_THREADS;
10113 if (PyErr_Occurred()) return NULL;
10114 } _resultobj = Py_BuildValue("i",_result);
10115 return _resultobj;
10116 }
10117
10118 #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize())
10119 static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject * _resultobj;
10121 int _result;
10122 wxSlider * _arg0;
10123 PyObject * _argo0 = 0;
10124 char *_kwnames[] = { "self", NULL };
10125
10126 self = self;
10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0))
10128 return NULL;
10129 if (_argo0) {
10130 if (_argo0 == Py_None) { _arg0 = NULL; }
10131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p.");
10133 return NULL;
10134 }
10135 }
10136 {
10137 wxPy_BEGIN_ALLOW_THREADS;
10138 _result = (int )wxSlider_GetPageSize(_arg0);
10139
10140 wxPy_END_ALLOW_THREADS;
10141 if (PyErr_Occurred()) return NULL;
10142 } _resultobj = Py_BuildValue("i",_result);
10143 return _resultobj;
10144 }
10145
10146 #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd())
10147 static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
10148 PyObject * _resultobj;
10149 int _result;
10150 wxSlider * _arg0;
10151 PyObject * _argo0 = 0;
10152 char *_kwnames[] = { "self", NULL };
10153
10154 self = self;
10155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0))
10156 return NULL;
10157 if (_argo0) {
10158 if (_argo0 == Py_None) { _arg0 = NULL; }
10159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p.");
10161 return NULL;
10162 }
10163 }
10164 {
10165 wxPy_BEGIN_ALLOW_THREADS;
10166 _result = (int )wxSlider_GetSelEnd(_arg0);
10167
10168 wxPy_END_ALLOW_THREADS;
10169 if (PyErr_Occurred()) return NULL;
10170 } _resultobj = Py_BuildValue("i",_result);
10171 return _resultobj;
10172 }
10173
10174 #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart())
10175 static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject * _resultobj;
10177 int _result;
10178 wxSlider * _arg0;
10179 PyObject * _argo0 = 0;
10180 char *_kwnames[] = { "self", NULL };
10181
10182 self = self;
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0))
10184 return NULL;
10185 if (_argo0) {
10186 if (_argo0 == Py_None) { _arg0 = NULL; }
10187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p.");
10189 return NULL;
10190 }
10191 }
10192 {
10193 wxPy_BEGIN_ALLOW_THREADS;
10194 _result = (int )wxSlider_GetSelStart(_arg0);
10195
10196 wxPy_END_ALLOW_THREADS;
10197 if (PyErr_Occurred()) return NULL;
10198 } _resultobj = Py_BuildValue("i",_result);
10199 return _resultobj;
10200 }
10201
10202 #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength())
10203 static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
10204 PyObject * _resultobj;
10205 int _result;
10206 wxSlider * _arg0;
10207 PyObject * _argo0 = 0;
10208 char *_kwnames[] = { "self", NULL };
10209
10210 self = self;
10211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0))
10212 return NULL;
10213 if (_argo0) {
10214 if (_argo0 == Py_None) { _arg0 = NULL; }
10215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p.");
10217 return NULL;
10218 }
10219 }
10220 {
10221 wxPy_BEGIN_ALLOW_THREADS;
10222 _result = (int )wxSlider_GetThumbLength(_arg0);
10223
10224 wxPy_END_ALLOW_THREADS;
10225 if (PyErr_Occurred()) return NULL;
10226 } _resultobj = Py_BuildValue("i",_result);
10227 return _resultobj;
10228 }
10229
10230 #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq())
10231 static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
10232 PyObject * _resultobj;
10233 int _result;
10234 wxSlider * _arg0;
10235 PyObject * _argo0 = 0;
10236 char *_kwnames[] = { "self", NULL };
10237
10238 self = self;
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0))
10240 return NULL;
10241 if (_argo0) {
10242 if (_argo0 == Py_None) { _arg0 = NULL; }
10243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p.");
10245 return NULL;
10246 }
10247 }
10248 {
10249 wxPy_BEGIN_ALLOW_THREADS;
10250 _result = (int )wxSlider_GetTickFreq(_arg0);
10251
10252 wxPy_END_ALLOW_THREADS;
10253 if (PyErr_Occurred()) return NULL;
10254 } _resultobj = Py_BuildValue("i",_result);
10255 return _resultobj;
10256 }
10257
10258 #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue())
10259 static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10260 PyObject * _resultobj;
10261 int _result;
10262 wxSlider * _arg0;
10263 PyObject * _argo0 = 0;
10264 char *_kwnames[] = { "self", NULL };
10265
10266 self = self;
10267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0))
10268 return NULL;
10269 if (_argo0) {
10270 if (_argo0 == Py_None) { _arg0 = NULL; }
10271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p.");
10273 return NULL;
10274 }
10275 }
10276 {
10277 wxPy_BEGIN_ALLOW_THREADS;
10278 _result = (int )wxSlider_GetValue(_arg0);
10279
10280 wxPy_END_ALLOW_THREADS;
10281 if (PyErr_Occurred()) return NULL;
10282 } _resultobj = Py_BuildValue("i",_result);
10283 return _resultobj;
10284 }
10285
10286 #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
10287 static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10288 PyObject * _resultobj;
10289 wxSlider * _arg0;
10290 int _arg1;
10291 int _arg2;
10292 PyObject * _argo0 = 0;
10293 char *_kwnames[] = { "self","minValue","maxValue", NULL };
10294
10295 self = self;
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
10297 return NULL;
10298 if (_argo0) {
10299 if (_argo0 == Py_None) { _arg0 = NULL; }
10300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p.");
10302 return NULL;
10303 }
10304 }
10305 {
10306 wxPy_BEGIN_ALLOW_THREADS;
10307 wxSlider_SetRange(_arg0,_arg1,_arg2);
10308
10309 wxPy_END_ALLOW_THREADS;
10310 if (PyErr_Occurred()) return NULL;
10311 } Py_INCREF(Py_None);
10312 _resultobj = Py_None;
10313 return _resultobj;
10314 }
10315
10316 #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1))
10317 static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
10318 PyObject * _resultobj;
10319 wxSlider * _arg0;
10320 int _arg1;
10321 int _arg2;
10322 PyObject * _argo0 = 0;
10323 char *_kwnames[] = { "self","n","pos", NULL };
10324
10325 self = self;
10326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2))
10327 return NULL;
10328 if (_argo0) {
10329 if (_argo0 == Py_None) { _arg0 = NULL; }
10330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p.");
10332 return NULL;
10333 }
10334 }
10335 {
10336 wxPy_BEGIN_ALLOW_THREADS;
10337 wxSlider_SetTickFreq(_arg0,_arg1,_arg2);
10338
10339 wxPy_END_ALLOW_THREADS;
10340 if (PyErr_Occurred()) return NULL;
10341 } Py_INCREF(Py_None);
10342 _resultobj = Py_None;
10343 return _resultobj;
10344 }
10345
10346 #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0))
10347 static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10348 PyObject * _resultobj;
10349 wxSlider * _arg0;
10350 int _arg1;
10351 PyObject * _argo0 = 0;
10352 char *_kwnames[] = { "self","lineSize", NULL };
10353
10354 self = self;
10355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1))
10356 return NULL;
10357 if (_argo0) {
10358 if (_argo0 == Py_None) { _arg0 = NULL; }
10359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p.");
10361 return NULL;
10362 }
10363 }
10364 {
10365 wxPy_BEGIN_ALLOW_THREADS;
10366 wxSlider_SetLineSize(_arg0,_arg1);
10367
10368 wxPy_END_ALLOW_THREADS;
10369 if (PyErr_Occurred()) return NULL;
10370 } Py_INCREF(Py_None);
10371 _resultobj = Py_None;
10372 return _resultobj;
10373 }
10374
10375 #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
10376 static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject * _resultobj;
10378 wxSlider * _arg0;
10379 int _arg1;
10380 PyObject * _argo0 = 0;
10381 char *_kwnames[] = { "self","pageSize", NULL };
10382
10383 self = self;
10384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1))
10385 return NULL;
10386 if (_argo0) {
10387 if (_argo0 == Py_None) { _arg0 = NULL; }
10388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p.");
10390 return NULL;
10391 }
10392 }
10393 {
10394 wxPy_BEGIN_ALLOW_THREADS;
10395 wxSlider_SetPageSize(_arg0,_arg1);
10396
10397 wxPy_END_ALLOW_THREADS;
10398 if (PyErr_Occurred()) return NULL;
10399 } Py_INCREF(Py_None);
10400 _resultobj = Py_None;
10401 return _resultobj;
10402 }
10403
10404 #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
10405 static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10406 PyObject * _resultobj;
10407 wxSlider * _arg0;
10408 int _arg1;
10409 int _arg2;
10410 PyObject * _argo0 = 0;
10411 char *_kwnames[] = { "self","startPos","endPos", NULL };
10412
10413 self = self;
10414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
10415 return NULL;
10416 if (_argo0) {
10417 if (_argo0 == Py_None) { _arg0 = NULL; }
10418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p.");
10420 return NULL;
10421 }
10422 }
10423 {
10424 wxPy_BEGIN_ALLOW_THREADS;
10425 wxSlider_SetSelection(_arg0,_arg1,_arg2);
10426
10427 wxPy_END_ALLOW_THREADS;
10428 if (PyErr_Occurred()) return NULL;
10429 } Py_INCREF(Py_None);
10430 _resultobj = Py_None;
10431 return _resultobj;
10432 }
10433
10434 #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0))
10435 static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
10436 PyObject * _resultobj;
10437 wxSlider * _arg0;
10438 int _arg1;
10439 PyObject * _argo0 = 0;
10440 char *_kwnames[] = { "self","len", NULL };
10441
10442 self = self;
10443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1))
10444 return NULL;
10445 if (_argo0) {
10446 if (_argo0 == Py_None) { _arg0 = NULL; }
10447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p.");
10449 return NULL;
10450 }
10451 }
10452 {
10453 wxPy_BEGIN_ALLOW_THREADS;
10454 wxSlider_SetThumbLength(_arg0,_arg1);
10455
10456 wxPy_END_ALLOW_THREADS;
10457 if (PyErr_Occurred()) return NULL;
10458 } Py_INCREF(Py_None);
10459 _resultobj = Py_None;
10460 return _resultobj;
10461 }
10462
10463 #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0))
10464 static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
10465 PyObject * _resultobj;
10466 wxSlider * _arg0;
10467 int _arg1;
10468 PyObject * _argo0 = 0;
10469 char *_kwnames[] = { "self","tickPos", NULL };
10470
10471 self = self;
10472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1))
10473 return NULL;
10474 if (_argo0) {
10475 if (_argo0 == Py_None) { _arg0 = NULL; }
10476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p.");
10478 return NULL;
10479 }
10480 }
10481 {
10482 wxPy_BEGIN_ALLOW_THREADS;
10483 wxSlider_SetTick(_arg0,_arg1);
10484
10485 wxPy_END_ALLOW_THREADS;
10486 if (PyErr_Occurred()) return NULL;
10487 } Py_INCREF(Py_None);
10488 _resultobj = Py_None;
10489 return _resultobj;
10490 }
10491
10492 #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
10493 static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10494 PyObject * _resultobj;
10495 wxSlider * _arg0;
10496 int _arg1;
10497 PyObject * _argo0 = 0;
10498 char *_kwnames[] = { "self","value", NULL };
10499
10500 self = self;
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1))
10502 return NULL;
10503 if (_argo0) {
10504 if (_argo0 == Py_None) { _arg0 = NULL; }
10505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p.");
10507 return NULL;
10508 }
10509 }
10510 {
10511 wxPy_BEGIN_ALLOW_THREADS;
10512 wxSlider_SetValue(_arg0,_arg1);
10513
10514 wxPy_END_ALLOW_THREADS;
10515 if (PyErr_Occurred()) return NULL;
10516 } Py_INCREF(Py_None);
10517 _resultobj = Py_None;
10518 return _resultobj;
10519 }
10520
10521 static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) {
10522 wxSpinCtrl *src;
10523 wxSpinButton *dest;
10524 src = (wxSpinCtrl *) ptr;
10525 dest = (wxSpinButton *) src;
10526 return (void *) dest;
10527 }
10528
10529 static void *SwigwxSpinCtrlTowxControl(void *ptr) {
10530 wxSpinCtrl *src;
10531 wxControl *dest;
10532 src = (wxSpinCtrl *) ptr;
10533 dest = (wxControl *) src;
10534 return (void *) dest;
10535 }
10536
10537 static void *SwigwxSpinCtrlTowxWindow(void *ptr) {
10538 wxSpinCtrl *src;
10539 wxWindow *dest;
10540 src = (wxSpinCtrl *) ptr;
10541 dest = (wxWindow *) src;
10542 return (void *) dest;
10543 }
10544
10545 static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) {
10546 wxSpinCtrl *src;
10547 wxEvtHandler *dest;
10548 src = (wxSpinCtrl *) ptr;
10549 dest = (wxEvtHandler *) src;
10550 return (void *) dest;
10551 }
10552
10553 static void *SwigwxSpinCtrlTowxObject(void *ptr) {
10554 wxSpinCtrl *src;
10555 wxObject *dest;
10556 src = (wxSpinCtrl *) ptr;
10557 dest = (wxObject *) src;
10558 return (void *) dest;
10559 }
10560
10561 #define new_wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
10562 static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10563 PyObject * _resultobj;
10564 wxSpinCtrl * _result;
10565 wxWindow * _arg0;
10566 wxWindowID _arg1 = (wxWindowID ) -1;
10567 char * _arg2 = (char *) "";
10568 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10569 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10570 long _arg5 = (long ) wxSP_ARROW_KEYS;
10571 int _arg6 = (int ) 0;
10572 int _arg7 = (int ) 100;
10573 int _arg8 = (int ) 0;
10574 char * _arg9 = (char *) "wxSpinCtrl";
10575 PyObject * _argo0 = 0;
10576 wxPoint temp;
10577 PyObject * _obj3 = 0;
10578 wxSize temp0;
10579 PyObject * _obj4 = 0;
10580 char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL };
10581 char _ptemp[128];
10582
10583 self = self;
10584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9))
10585 return NULL;
10586 if (_argo0) {
10587 if (_argo0 == Py_None) { _arg0 = NULL; }
10588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p.");
10590 return NULL;
10591 }
10592 }
10593 if (_obj3)
10594 {
10595 _arg3 = &temp;
10596 if (! wxPoint_helper(_obj3, &_arg3))
10597 return NULL;
10598 }
10599 if (_obj4)
10600 {
10601 _arg4 = &temp0;
10602 if (! wxSize_helper(_obj4, &_arg4))
10603 return NULL;
10604 }
10605 {
10606 wxPy_BEGIN_ALLOW_THREADS;
10607 _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
10608
10609 wxPy_END_ALLOW_THREADS;
10610 if (PyErr_Occurred()) return NULL;
10611 } if (_result) {
10612 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10613 _resultobj = Py_BuildValue("s",_ptemp);
10614 } else {
10615 Py_INCREF(Py_None);
10616 _resultobj = Py_None;
10617 }
10618 return _resultobj;
10619 }
10620
10621 #define new_wxPreSpinCtrl() (new wxSpinCtrl())
10622 static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10623 PyObject * _resultobj;
10624 wxSpinCtrl * _result;
10625 char *_kwnames[] = { NULL };
10626 char _ptemp[128];
10627
10628 self = self;
10629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames))
10630 return NULL;
10631 {
10632 wxPy_BEGIN_ALLOW_THREADS;
10633 _result = (wxSpinCtrl *)new_wxPreSpinCtrl();
10634
10635 wxPy_END_ALLOW_THREADS;
10636 if (PyErr_Occurred()) return NULL;
10637 } if (_result) {
10638 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10639 _resultobj = Py_BuildValue("s",_ptemp);
10640 } else {
10641 Py_INCREF(Py_None);
10642 _resultobj = Py_None;
10643 }
10644 return _resultobj;
10645 }
10646
10647 #define wxSpinCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
10648 static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10649 PyObject * _resultobj;
10650 bool _result;
10651 wxSpinCtrl * _arg0;
10652 wxWindow * _arg1;
10653 wxWindowID _arg2 = (wxWindowID ) -1;
10654 char * _arg3 = (char *) "";
10655 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10656 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10657 long _arg6 = (long ) wxSP_ARROW_KEYS;
10658 int _arg7 = (int ) 0;
10659 int _arg8 = (int ) 100;
10660 int _arg9 = (int ) 0;
10661 char * _arg10 = (char *) "wxSpinCtrl";
10662 PyObject * _argo0 = 0;
10663 PyObject * _argo1 = 0;
10664 wxPoint temp;
10665 PyObject * _obj4 = 0;
10666 wxSize temp0;
10667 PyObject * _obj5 = 0;
10668 char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL };
10669
10670 self = self;
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10))
10672 return NULL;
10673 if (_argo0) {
10674 if (_argo0 == Py_None) { _arg0 = NULL; }
10675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p.");
10677 return NULL;
10678 }
10679 }
10680 if (_argo1) {
10681 if (_argo1 == Py_None) { _arg1 = NULL; }
10682 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10683 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p.");
10684 return NULL;
10685 }
10686 }
10687 if (_obj4)
10688 {
10689 _arg4 = &temp;
10690 if (! wxPoint_helper(_obj4, &_arg4))
10691 return NULL;
10692 }
10693 if (_obj5)
10694 {
10695 _arg5 = &temp0;
10696 if (! wxSize_helper(_obj5, &_arg5))
10697 return NULL;
10698 }
10699 {
10700 wxPy_BEGIN_ALLOW_THREADS;
10701 _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10);
10702
10703 wxPy_END_ALLOW_THREADS;
10704 if (PyErr_Occurred()) return NULL;
10705 } _resultobj = Py_BuildValue("i",_result);
10706 return _resultobj;
10707 }
10708
10709 #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax())
10710 static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10711 PyObject * _resultobj;
10712 int _result;
10713 wxSpinCtrl * _arg0;
10714 PyObject * _argo0 = 0;
10715 char *_kwnames[] = { "self", NULL };
10716
10717 self = self;
10718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0))
10719 return NULL;
10720 if (_argo0) {
10721 if (_argo0 == Py_None) { _arg0 = NULL; }
10722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p.");
10724 return NULL;
10725 }
10726 }
10727 {
10728 wxPy_BEGIN_ALLOW_THREADS;
10729 _result = (int )wxSpinCtrl_GetMax(_arg0);
10730
10731 wxPy_END_ALLOW_THREADS;
10732 if (PyErr_Occurred()) return NULL;
10733 } _resultobj = Py_BuildValue("i",_result);
10734 return _resultobj;
10735 }
10736
10737 #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin())
10738 static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject * _resultobj;
10740 int _result;
10741 wxSpinCtrl * _arg0;
10742 PyObject * _argo0 = 0;
10743 char *_kwnames[] = { "self", NULL };
10744
10745 self = self;
10746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0))
10747 return NULL;
10748 if (_argo0) {
10749 if (_argo0 == Py_None) { _arg0 = NULL; }
10750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p.");
10752 return NULL;
10753 }
10754 }
10755 {
10756 wxPy_BEGIN_ALLOW_THREADS;
10757 _result = (int )wxSpinCtrl_GetMin(_arg0);
10758
10759 wxPy_END_ALLOW_THREADS;
10760 if (PyErr_Occurred()) return NULL;
10761 } _resultobj = Py_BuildValue("i",_result);
10762 return _resultobj;
10763 }
10764
10765 #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue())
10766 static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10767 PyObject * _resultobj;
10768 int _result;
10769 wxSpinCtrl * _arg0;
10770 PyObject * _argo0 = 0;
10771 char *_kwnames[] = { "self", NULL };
10772
10773 self = self;
10774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0))
10775 return NULL;
10776 if (_argo0) {
10777 if (_argo0 == Py_None) { _arg0 = NULL; }
10778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p.");
10780 return NULL;
10781 }
10782 }
10783 {
10784 wxPy_BEGIN_ALLOW_THREADS;
10785 _result = (int )wxSpinCtrl_GetValue(_arg0);
10786
10787 wxPy_END_ALLOW_THREADS;
10788 if (PyErr_Occurred()) return NULL;
10789 } _resultobj = Py_BuildValue("i",_result);
10790 return _resultobj;
10791 }
10792
10793 #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
10794 static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10795 PyObject * _resultobj;
10796 wxSpinCtrl * _arg0;
10797 int _arg1;
10798 int _arg2;
10799 PyObject * _argo0 = 0;
10800 char *_kwnames[] = { "self","min","max", NULL };
10801
10802 self = self;
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
10804 return NULL;
10805 if (_argo0) {
10806 if (_argo0 == Py_None) { _arg0 = NULL; }
10807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p.");
10809 return NULL;
10810 }
10811 }
10812 {
10813 wxPy_BEGIN_ALLOW_THREADS;
10814 wxSpinCtrl_SetRange(_arg0,_arg1,_arg2);
10815
10816 wxPy_END_ALLOW_THREADS;
10817 if (PyErr_Occurred()) return NULL;
10818 } Py_INCREF(Py_None);
10819 _resultobj = Py_None;
10820 return _resultobj;
10821 }
10822
10823 #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
10824 static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10825 PyObject * _resultobj;
10826 wxSpinCtrl * _arg0;
10827 int _arg1;
10828 PyObject * _argo0 = 0;
10829 char *_kwnames[] = { "self","value", NULL };
10830
10831 self = self;
10832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1))
10833 return NULL;
10834 if (_argo0) {
10835 if (_argo0 == Py_None) { _arg0 = NULL; }
10836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p.");
10838 return NULL;
10839 }
10840 }
10841 {
10842 wxPy_BEGIN_ALLOW_THREADS;
10843 wxSpinCtrl_SetValue(_arg0,_arg1);
10844
10845 wxPy_END_ALLOW_THREADS;
10846 if (PyErr_Occurred()) return NULL;
10847 } Py_INCREF(Py_None);
10848 _resultobj = Py_None;
10849 return _resultobj;
10850 }
10851
10852 static void *SwigwxToggleButtonTowxControl(void *ptr) {
10853 wxToggleButton *src;
10854 wxControl *dest;
10855 src = (wxToggleButton *) ptr;
10856 dest = (wxControl *) src;
10857 return (void *) dest;
10858 }
10859
10860 static void *SwigwxToggleButtonTowxWindow(void *ptr) {
10861 wxToggleButton *src;
10862 wxWindow *dest;
10863 src = (wxToggleButton *) ptr;
10864 dest = (wxWindow *) src;
10865 return (void *) dest;
10866 }
10867
10868 static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) {
10869 wxToggleButton *src;
10870 wxEvtHandler *dest;
10871 src = (wxToggleButton *) ptr;
10872 dest = (wxEvtHandler *) src;
10873 return (void *) dest;
10874 }
10875
10876 static void *SwigwxToggleButtonTowxObject(void *ptr) {
10877 wxToggleButton *src;
10878 wxObject *dest;
10879 src = (wxToggleButton *) ptr;
10880 dest = (wxObject *) src;
10881 return (void *) dest;
10882 }
10883
10884 #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
10885 static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10886 PyObject * _resultobj;
10887 wxToggleButton * _result;
10888 wxWindow * _arg0;
10889 wxWindowID _arg1;
10890 wxString * _arg2;
10891 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10892 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10893 long _arg5 = (long ) 0;
10894 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
10895 char * _arg7 = (char *) "toggle";
10896 PyObject * _argo0 = 0;
10897 PyObject * _obj2 = 0;
10898 wxPoint temp;
10899 PyObject * _obj3 = 0;
10900 wxSize temp0;
10901 PyObject * _obj4 = 0;
10902 PyObject * _argo6 = 0;
10903 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
10904 char _ptemp[128];
10905
10906 self = self;
10907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
10908 return NULL;
10909 if (_argo0) {
10910 if (_argo0 == Py_None) { _arg0 = NULL; }
10911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p.");
10913 return NULL;
10914 }
10915 }
10916 {
10917 #if PYTHON_API_VERSION >= 1009
10918 char* tmpPtr; int tmpSize;
10919 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
10920 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10921 return NULL;
10922 }
10923 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
10924 return NULL;
10925 _arg2 = new wxString(tmpPtr, tmpSize);
10926 #else
10927 if (!PyString_Check(_obj2)) {
10928 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10929 return NULL;
10930 }
10931 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
10932 #endif
10933 }
10934 if (_obj3)
10935 {
10936 _arg3 = &temp;
10937 if (! wxPoint_helper(_obj3, &_arg3))
10938 return NULL;
10939 }
10940 if (_obj4)
10941 {
10942 _arg4 = &temp0;
10943 if (! wxSize_helper(_obj4, &_arg4))
10944 return NULL;
10945 }
10946 if (_argo6) {
10947 if (_argo6 == Py_None) { _arg6 = NULL; }
10948 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
10949 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p.");
10950 return NULL;
10951 }
10952 }
10953 {
10954 wxPy_BEGIN_ALLOW_THREADS;
10955 _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
10956
10957 wxPy_END_ALLOW_THREADS;
10958 if (PyErr_Occurred()) return NULL;
10959 } if (_result) {
10960 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
10961 _resultobj = Py_BuildValue("s",_ptemp);
10962 } else {
10963 Py_INCREF(Py_None);
10964 _resultobj = Py_None;
10965 }
10966 {
10967 if (_obj2)
10968 delete _arg2;
10969 }
10970 return _resultobj;
10971 }
10972
10973 #define new_wxPreToggleButton() (new wxToggleButton())
10974 static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10975 PyObject * _resultobj;
10976 wxToggleButton * _result;
10977 char *_kwnames[] = { NULL };
10978 char _ptemp[128];
10979
10980 self = self;
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames))
10982 return NULL;
10983 {
10984 wxPy_BEGIN_ALLOW_THREADS;
10985 _result = (wxToggleButton *)new_wxPreToggleButton();
10986
10987 wxPy_END_ALLOW_THREADS;
10988 if (PyErr_Occurred()) return NULL;
10989 } if (_result) {
10990 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
10991 _resultobj = Py_BuildValue("s",_ptemp);
10992 } else {
10993 Py_INCREF(Py_None);
10994 _resultobj = Py_None;
10995 }
10996 return _resultobj;
10997 }
10998
10999 #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
11000 static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11001 PyObject * _resultobj;
11002 bool _result;
11003 wxToggleButton * _arg0;
11004 wxWindow * _arg1;
11005 wxWindowID _arg2;
11006 wxString * _arg3;
11007 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
11008 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
11009 long _arg6 = (long ) 0;
11010 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
11011 char * _arg8 = (char *) "toggle";
11012 PyObject * _argo0 = 0;
11013 PyObject * _argo1 = 0;
11014 PyObject * _obj3 = 0;
11015 wxPoint temp;
11016 PyObject * _obj4 = 0;
11017 wxSize temp0;
11018 PyObject * _obj5 = 0;
11019 PyObject * _argo7 = 0;
11020 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
11021
11022 self = self;
11023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
11024 return NULL;
11025 if (_argo0) {
11026 if (_argo0 == Py_None) { _arg0 = NULL; }
11027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p.");
11029 return NULL;
11030 }
11031 }
11032 if (_argo1) {
11033 if (_argo1 == Py_None) { _arg1 = NULL; }
11034 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
11035 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p.");
11036 return NULL;
11037 }
11038 }
11039 {
11040 #if PYTHON_API_VERSION >= 1009
11041 char* tmpPtr; int tmpSize;
11042 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
11043 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11044 return NULL;
11045 }
11046 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
11047 return NULL;
11048 _arg3 = new wxString(tmpPtr, tmpSize);
11049 #else
11050 if (!PyString_Check(_obj3)) {
11051 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11052 return NULL;
11053 }
11054 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
11055 #endif
11056 }
11057 if (_obj4)
11058 {
11059 _arg4 = &temp;
11060 if (! wxPoint_helper(_obj4, &_arg4))
11061 return NULL;
11062 }
11063 if (_obj5)
11064 {
11065 _arg5 = &temp0;
11066 if (! wxSize_helper(_obj5, &_arg5))
11067 return NULL;
11068 }
11069 if (_argo7) {
11070 if (_argo7 == Py_None) { _arg7 = NULL; }
11071 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
11072 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p.");
11073 return NULL;
11074 }
11075 }
11076 {
11077 wxPy_BEGIN_ALLOW_THREADS;
11078 _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
11079
11080 wxPy_END_ALLOW_THREADS;
11081 if (PyErr_Occurred()) return NULL;
11082 } _resultobj = Py_BuildValue("i",_result);
11083 {
11084 if (_obj3)
11085 delete _arg3;
11086 }
11087 return _resultobj;
11088 }
11089
11090 #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
11091 static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11092 PyObject * _resultobj;
11093 wxToggleButton * _arg0;
11094 bool _arg1;
11095 PyObject * _argo0 = 0;
11096 int tempbool1;
11097 char *_kwnames[] = { "self","value", NULL };
11098
11099 self = self;
11100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1))
11101 return NULL;
11102 if (_argo0) {
11103 if (_argo0 == Py_None) { _arg0 = NULL; }
11104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p.");
11106 return NULL;
11107 }
11108 }
11109 _arg1 = (bool ) tempbool1;
11110 {
11111 wxPy_BEGIN_ALLOW_THREADS;
11112 wxToggleButton_SetValue(_arg0,_arg1);
11113
11114 wxPy_END_ALLOW_THREADS;
11115 if (PyErr_Occurred()) return NULL;
11116 } Py_INCREF(Py_None);
11117 _resultobj = Py_None;
11118 return _resultobj;
11119 }
11120
11121 #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue())
11122 static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11123 PyObject * _resultobj;
11124 bool _result;
11125 wxToggleButton * _arg0;
11126 PyObject * _argo0 = 0;
11127 char *_kwnames[] = { "self", NULL };
11128
11129 self = self;
11130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0))
11131 return NULL;
11132 if (_argo0) {
11133 if (_argo0 == Py_None) { _arg0 = NULL; }
11134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p.");
11136 return NULL;
11137 }
11138 }
11139 {
11140 wxPy_BEGIN_ALLOW_THREADS;
11141 _result = (bool )wxToggleButton_GetValue(_arg0);
11142
11143 wxPy_END_ALLOW_THREADS;
11144 if (PyErr_Occurred()) return NULL;
11145 } _resultobj = Py_BuildValue("i",_result);
11146 return _resultobj;
11147 }
11148
11149 #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
11150 static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11151 PyObject * _resultobj;
11152 wxToggleButton * _arg0;
11153 wxString * _arg1;
11154 PyObject * _argo0 = 0;
11155 PyObject * _obj1 = 0;
11156 char *_kwnames[] = { "self","label", NULL };
11157
11158 self = self;
11159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1))
11160 return NULL;
11161 if (_argo0) {
11162 if (_argo0 == Py_None) { _arg0 = NULL; }
11163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
11164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p.");
11165 return NULL;
11166 }
11167 }
11168 {
11169 #if PYTHON_API_VERSION >= 1009
11170 char* tmpPtr; int tmpSize;
11171 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
11172 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11173 return NULL;
11174 }
11175 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
11176 return NULL;
11177 _arg1 = new wxString(tmpPtr, tmpSize);
11178 #else
11179 if (!PyString_Check(_obj1)) {
11180 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
11181 return NULL;
11182 }
11183 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
11184 #endif
11185 }
11186 {
11187 wxPy_BEGIN_ALLOW_THREADS;
11188 wxToggleButton_SetLabel(_arg0,*_arg1);
11189
11190 wxPy_END_ALLOW_THREADS;
11191 if (PyErr_Occurred()) return NULL;
11192 } Py_INCREF(Py_None);
11193 _resultobj = Py_None;
11194 {
11195 if (_obj1)
11196 delete _arg1;
11197 }
11198 return _resultobj;
11199 }
11200
11201 static PyMethodDef controlscMethods[] = {
11202 { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
11203 { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
11204 { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
11205 { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
11206 { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS },
11207 { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS },
11208 { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
11209 { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
11210 { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
11211 { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
11212 { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
11213 { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11214 { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
11215 { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS },
11216 { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS },
11217 { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS },
11218 { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
11219 { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS },
11220 { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
11221 { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
11222 { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
11223 { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS },
11224 { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS },
11225 { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
11226 { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
11227 { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
11228 { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
11229 { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
11230 { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS },
11231 { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS },
11232 { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
11233 { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
11234 { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS },
11235 { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS },
11236 { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS },
11237 { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS },
11238 { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
11239 { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
11240 { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS },
11241 { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS },
11242 { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS },
11243 { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
11244 { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS },
11245 { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11246 { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
11247 { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
11248 { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11249 { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
11250 { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS },
11251 { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS },
11252 { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
11253 { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
11254 { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
11255 { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS },
11256 { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS },
11257 { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS },
11258 { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS },
11259 { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
11260 { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
11261 { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
11262 { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
11263 { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
11264 { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS },
11265 { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
11266 { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
11267 { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
11268 { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
11269 { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
11270 { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS },
11271 { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS },
11272 { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
11273 { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
11274 { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
11275 { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
11276 { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
11277 { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
11278 { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
11279 { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
11280 { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
11281 { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS },
11282 { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS },
11283 { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS },
11284 { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
11285 { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
11286 { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
11287 { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
11288 { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
11289 { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
11290 { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
11291 { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
11292 { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
11293 { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
11294 { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
11295 { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
11296 { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
11297 { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
11298 { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
11299 { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
11300 { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
11301 { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
11302 { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
11303 { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
11304 { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11305 { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
11306 { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
11307 { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
11308 { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
11309 { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
11310 { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
11311 { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
11312 { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
11313 { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
11314 { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
11315 { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
11316 { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
11317 { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
11318 { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11319 { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
11320 { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
11321 { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
11322 { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
11323 { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11324 { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS },
11325 { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS },
11326 { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11327 { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11328 { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11329 { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11330 { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11331 { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11332 { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11333 { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11334 { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11335 { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
11336 { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
11337 { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
11338 { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
11339 { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
11340 { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
11341 { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
11342 { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS },
11343 { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS },
11344 { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11345 { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS },
11346 { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
11347 { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
11348 { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
11349 { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS },
11350 { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS },
11351 { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
11352 { "wxListBox_GetCount", (PyCFunction) _wrap_wxListBox_GetCount, METH_VARARGS | METH_KEYWORDS },
11353 { "wxListBox_GetStringSelection", (PyCFunction) _wrap_wxListBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11354 { "wxListBox_GetString", (PyCFunction) _wrap_wxListBox_GetString, METH_VARARGS | METH_KEYWORDS },
11355 { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
11356 { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
11357 { "wxListBox_GetSelection", (PyCFunction) _wrap_wxListBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
11358 { "wxListBox_FindString", (PyCFunction) _wrap_wxListBox_FindString, METH_VARARGS | METH_KEYWORDS },
11359 { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
11360 { "wxListBox_Delete", (PyCFunction) _wrap_wxListBox_Delete, METH_VARARGS | METH_KEYWORDS },
11361 { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS },
11362 { "wxListBox_Append", (PyCFunction) _wrap_wxListBox_Append, METH_VARARGS | METH_KEYWORDS },
11363 { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS },
11364 { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS },
11365 { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS },
11366 { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS },
11367 { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS },
11368 { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS },
11369 { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS },
11370 { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS },
11371 { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS },
11372 { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS },
11373 { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS },
11374 { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS },
11375 { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS },
11376 { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS },
11377 { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS },
11378 { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
11379 { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS },
11380 { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
11381 { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS },
11382 { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
11383 { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS },
11384 { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
11385 { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS },
11386 { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS },
11387 { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS },
11388 { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
11389 { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
11390 { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
11391 { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
11392 { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
11393 { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11394 { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
11395 { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
11396 { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
11397 { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
11398 { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11399 { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS },
11400 { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
11401 { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
11402 { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
11403 { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS },
11404 { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS },
11405 { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
11406 { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
11407 { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS },
11408 { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS },
11409 { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS },
11410 { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS },
11411 { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS },
11412 { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS },
11413 { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
11414 { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS },
11415 { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS },
11416 { "wxChoice_GetCount", (PyCFunction) _wrap_wxChoice_GetCount, METH_VARARGS | METH_KEYWORDS },
11417 { "wxChoice_GetStringSelection", (PyCFunction) _wrap_wxChoice_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
11418 { "wxChoice_GetString", (PyCFunction) _wrap_wxChoice_GetString, METH_VARARGS | METH_KEYWORDS },
11419 { "wxChoice_GetSelection", (PyCFunction) _wrap_wxChoice_GetSelection, METH_VARARGS | METH_KEYWORDS },
11420 { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS },
11421 { "wxChoice_FindString", (PyCFunction) _wrap_wxChoice_FindString, METH_VARARGS | METH_KEYWORDS },
11422 { "wxChoice_Delete", (PyCFunction) _wrap_wxChoice_Delete, METH_VARARGS | METH_KEYWORDS },
11423 { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS },
11424 { "wxChoice_Append", (PyCFunction) _wrap_wxChoice_Append, METH_VARARGS | METH_KEYWORDS },
11425 { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS },
11426 { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS },
11427 { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS },
11428 { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
11429 { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
11430 { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS },
11431 { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS },
11432 { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS },
11433 { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
11434 { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
11435 { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
11436 { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
11437 { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
11438 { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
11439 { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
11440 { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
11441 { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
11442 { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
11443 { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
11444 { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
11445 { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS },
11446 { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS },
11447 { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
11448 { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
11449 { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11450 { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS },
11451 { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS },
11452 { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS },
11453 { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS },
11454 { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS },
11455 { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS },
11456 { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS },
11457 { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS },
11458 { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS },
11459 { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS },
11460 { NULL, NULL }
11461 };
11462 #ifdef __cplusplus
11463 }
11464 #endif
11465 /*
11466 * This table is used by the pointer type-checker
11467 */
11468 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
11469 { "_signed_long","_long",0},
11470 { "_wxPrintQuality","_wxCoord",0},
11471 { "_wxPrintQuality","_int",0},
11472 { "_wxPrintQuality","_signed_int",0},
11473 { "_wxPrintQuality","_unsigned_int",0},
11474 { "_wxPrintQuality","_wxWindowID",0},
11475 { "_wxPrintQuality","_uint",0},
11476 { "_wxPrintQuality","_EBool",0},
11477 { "_wxPrintQuality","_size_t",0},
11478 { "_wxPrintQuality","_time_t",0},
11479 { "_class_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
11480 { "_class_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
11481 { "_class_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
11482 { "_class_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
11483 { "_class_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler},
11484 { "_class_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
11485 { "_class_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
11486 { "_class_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
11487 { "_class_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
11488 { "_class_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
11489 { "_class_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
11490 { "_class_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
11491 { "_class_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
11492 { "_class_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
11493 { "_class_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
11494 { "_class_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
11495 { "_class_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
11496 { "_class_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
11497 { "_class_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
11498 { "_class_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
11499 { "_class_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler},
11500 { "_class_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
11501 { "_class_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler},
11502 { "_class_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
11503 { "_class_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
11504 { "_class_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
11505 { "_class_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
11506 { "_class_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
11507 { "_class_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler},
11508 { "_class_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
11509 { "_class_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler},
11510 { "_class_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
11511 { "_class_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler},
11512 { "_class_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
11513 { "_class_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
11514 { "_class_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
11515 { "_class_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
11516 { "_class_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
11517 { "_class_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler},
11518 { "_class_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
11519 { "_class_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler},
11520 { "_class_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
11521 { "_byte","_unsigned_char",0},
11522 { "_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice},
11523 { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice},
11524 { "_long","_unsigned_long",0},
11525 { "_long","_signed_long",0},
11526 { "_class_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject},
11527 { "_class_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
11528 { "_class_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
11529 { "_class_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
11530 { "_class_wxObject","_class_wxSlider",SwigwxSliderTowxObject},
11531 { "_class_wxObject","_wxSlider",SwigwxSliderTowxObject},
11532 { "_class_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject},
11533 { "_class_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
11534 { "_class_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject},
11535 { "_class_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
11536 { "_class_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
11537 { "_class_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
11538 { "_class_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject},
11539 { "_class_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
11540 { "_class_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject},
11541 { "_class_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
11542 { "_class_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject},
11543 { "_class_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
11544 { "_class_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject},
11545 { "_class_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
11546 { "_class_wxObject","_class_wxListBox",SwigwxListBoxTowxObject},
11547 { "_class_wxObject","_wxListBox",SwigwxListBoxTowxObject},
11548 { "_class_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject},
11549 { "_class_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
11550 { "_class_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject},
11551 { "_class_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
11552 { "_class_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject},
11553 { "_class_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
11554 { "_class_wxObject","_class_wxGauge",SwigwxGaugeTowxObject},
11555 { "_class_wxObject","_wxGauge",SwigwxGaugeTowxObject},
11556 { "_class_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject},
11557 { "_class_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
11558 { "_class_wxObject","_class_wxChoice",SwigwxChoiceTowxObject},
11559 { "_class_wxObject","_wxChoice",SwigwxChoiceTowxObject},
11560 { "_class_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject},
11561 { "_class_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
11562 { "_class_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject},
11563 { "_class_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
11564 { "_class_wxObject","_class_wxButton",SwigwxButtonTowxObject},
11565 { "_class_wxObject","_wxButton",SwigwxButtonTowxObject},
11566 { "_class_wxObject","_class_wxControl",SwigwxControlTowxObject},
11567 { "_class_wxObject","_wxControl",SwigwxControlTowxObject},
11568 { "_size_t","_wxCoord",0},
11569 { "_size_t","_wxPrintQuality",0},
11570 { "_size_t","_time_t",0},
11571 { "_size_t","_unsigned_int",0},
11572 { "_size_t","_int",0},
11573 { "_size_t","_wxWindowID",0},
11574 { "_size_t","_uint",0},
11575 { "_uint","_wxCoord",0},
11576 { "_uint","_wxPrintQuality",0},
11577 { "_uint","_time_t",0},
11578 { "_uint","_size_t",0},
11579 { "_uint","_unsigned_int",0},
11580 { "_uint","_int",0},
11581 { "_uint","_wxWindowID",0},
11582 { "_wxChar","_char",0},
11583 { "_class_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton},
11584 { "_class_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
11585 { "_char","_wxChar",0},
11586 { "_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
11587 { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
11588 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11589 { "_EBool","_wxCoord",0},
11590 { "_EBool","_wxPrintQuality",0},
11591 { "_EBool","_signed_int",0},
11592 { "_EBool","_int",0},
11593 { "_EBool","_wxWindowID",0},
11594 { "_unsigned_long","_long",0},
11595 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11596 { "_class_wxSpinButton","_class_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
11597 { "_class_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
11598 { "_signed_int","_wxCoord",0},
11599 { "_signed_int","_wxPrintQuality",0},
11600 { "_signed_int","_EBool",0},
11601 { "_signed_int","_wxWindowID",0},
11602 { "_signed_int","_int",0},
11603 { "_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
11604 { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
11605 { "_WXTYPE","_short",0},
11606 { "_WXTYPE","_signed_short",0},
11607 { "_WXTYPE","_unsigned_short",0},
11608 { "_unsigned_short","_WXTYPE",0},
11609 { "_unsigned_short","_short",0},
11610 { "_class_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow},
11611 { "_class_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow},
11612 { "_class_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
11613 { "_class_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
11614 { "_class_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow},
11615 { "_class_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
11616 { "_class_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow},
11617 { "_class_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
11618 { "_class_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow},
11619 { "_class_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
11620 { "_class_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
11621 { "_class_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
11622 { "_class_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow},
11623 { "_class_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
11624 { "_class_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow},
11625 { "_class_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
11626 { "_class_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow},
11627 { "_class_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
11628 { "_class_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
11629 { "_class_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
11630 { "_class_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow},
11631 { "_class_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
11632 { "_class_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow},
11633 { "_class_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
11634 { "_class_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow},
11635 { "_class_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
11636 { "_class_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow},
11637 { "_class_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
11638 { "_class_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow},
11639 { "_class_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
11640 { "_class_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow},
11641 { "_class_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
11642 { "_class_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow},
11643 { "_class_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
11644 { "_class_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow},
11645 { "_class_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
11646 { "_class_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
11647 { "_class_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
11648 { "_class_wxWindow","_class_wxButton",SwigwxButtonTowxWindow},
11649 { "_class_wxWindow","_wxButton",SwigwxButtonTowxWindow},
11650 { "_class_wxWindow","_class_wxControl",SwigwxControlTowxWindow},
11651 { "_class_wxWindow","_wxControl",SwigwxControlTowxWindow},
11652 { "_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject},
11653 { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
11654 { "_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
11655 { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
11656 { "_wxObject","_class_wxSlider",SwigwxSliderTowxObject},
11657 { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
11658 { "_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject},
11659 { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
11660 { "_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject},
11661 { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
11662 { "_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
11663 { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
11664 { "_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject},
11665 { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
11666 { "_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject},
11667 { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
11668 { "_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject},
11669 { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
11670 { "_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject},
11671 { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
11672 { "_wxObject","_class_wxListBox",SwigwxListBoxTowxObject},
11673 { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
11674 { "_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject},
11675 { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
11676 { "_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject},
11677 { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
11678 { "_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject},
11679 { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
11680 { "_wxObject","_class_wxGauge",SwigwxGaugeTowxObject},
11681 { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
11682 { "_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject},
11683 { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
11684 { "_wxObject","_class_wxChoice",SwigwxChoiceTowxObject},
11685 { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
11686 { "_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject},
11687 { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
11688 { "_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject},
11689 { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
11690 { "_wxObject","_class_wxButton",SwigwxButtonTowxObject},
11691 { "_wxObject","_wxButton",SwigwxButtonTowxObject},
11692 { "_wxObject","_class_wxControl",SwigwxControlTowxObject},
11693 { "_wxObject","_wxControl",SwigwxControlTowxObject},
11694 { "_signed_short","_WXTYPE",0},
11695 { "_signed_short","_short",0},
11696 { "_unsigned_char","_byte",0},
11697 { "_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl},
11698 { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl},
11699 { "_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
11700 { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
11701 { "_wxControl","_class_wxSlider",SwigwxSliderTowxControl},
11702 { "_wxControl","_wxSlider",SwigwxSliderTowxControl},
11703 { "_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl},
11704 { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
11705 { "_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl},
11706 { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
11707 { "_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
11708 { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
11709 { "_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl},
11710 { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
11711 { "_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl},
11712 { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
11713 { "_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl},
11714 { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
11715 { "_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl},
11716 { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
11717 { "_wxControl","_class_wxListBox",SwigwxListBoxTowxControl},
11718 { "_wxControl","_wxListBox",SwigwxListBoxTowxControl},
11719 { "_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl},
11720 { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
11721 { "_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl},
11722 { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
11723 { "_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl},
11724 { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
11725 { "_wxControl","_class_wxGauge",SwigwxGaugeTowxControl},
11726 { "_wxControl","_wxGauge",SwigwxGaugeTowxControl},
11727 { "_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl},
11728 { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
11729 { "_wxControl","_class_wxChoice",SwigwxChoiceTowxControl},
11730 { "_wxControl","_wxChoice",SwigwxChoiceTowxControl},
11731 { "_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl},
11732 { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
11733 { "_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl},
11734 { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
11735 { "_wxControl","_class_wxButton",SwigwxButtonTowxControl},
11736 { "_wxControl","_wxButton",SwigwxButtonTowxControl},
11737 { "_class_wxListBox","_class_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
11738 { "_class_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
11739 { "_unsigned_int","_wxCoord",0},
11740 { "_unsigned_int","_wxPrintQuality",0},
11741 { "_unsigned_int","_time_t",0},
11742 { "_unsigned_int","_size_t",0},
11743 { "_unsigned_int","_uint",0},
11744 { "_unsigned_int","_wxWindowID",0},
11745 { "_unsigned_int","_int",0},
11746 { "_short","_WXTYPE",0},
11747 { "_short","_unsigned_short",0},
11748 { "_short","_signed_short",0},
11749 { "_class_wxChoice","_class_wxComboBox",SwigwxComboBoxTowxChoice},
11750 { "_class_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice},
11751 { "_wxWindowID","_wxCoord",0},
11752 { "_wxWindowID","_wxPrintQuality",0},
11753 { "_wxWindowID","_time_t",0},
11754 { "_wxWindowID","_size_t",0},
11755 { "_wxWindowID","_EBool",0},
11756 { "_wxWindowID","_uint",0},
11757 { "_wxWindowID","_int",0},
11758 { "_wxWindowID","_signed_int",0},
11759 { "_wxWindowID","_unsigned_int",0},
11760 { "_int","_wxCoord",0},
11761 { "_int","_wxPrintQuality",0},
11762 { "_int","_time_t",0},
11763 { "_int","_size_t",0},
11764 { "_int","_EBool",0},
11765 { "_int","_uint",0},
11766 { "_int","_wxWindowID",0},
11767 { "_int","_unsigned_int",0},
11768 { "_int","_signed_int",0},
11769 { "_time_t","_wxCoord",0},
11770 { "_time_t","_wxPrintQuality",0},
11771 { "_time_t","_unsigned_int",0},
11772 { "_time_t","_int",0},
11773 { "_time_t","_wxWindowID",0},
11774 { "_time_t","_uint",0},
11775 { "_time_t","_size_t",0},
11776 { "_wxButton","_class_wxBitmapButton",SwigwxBitmapButtonTowxButton},
11777 { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
11778 { "_class_wxControl","_class_wxToggleButton",SwigwxToggleButtonTowxControl},
11779 { "_class_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl},
11780 { "_class_wxControl","_class_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
11781 { "_class_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
11782 { "_class_wxControl","_class_wxSlider",SwigwxSliderTowxControl},
11783 { "_class_wxControl","_wxSlider",SwigwxSliderTowxControl},
11784 { "_class_wxControl","_class_wxRadioButton",SwigwxRadioButtonTowxControl},
11785 { "_class_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
11786 { "_class_wxControl","_class_wxRadioBox",SwigwxRadioBoxTowxControl},
11787 { "_class_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
11788 { "_class_wxControl","_class_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
11789 { "_class_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
11790 { "_class_wxControl","_class_wxSpinButton",SwigwxSpinButtonTowxControl},
11791 { "_class_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
11792 { "_class_wxControl","_class_wxScrollBar",SwigwxScrollBarTowxControl},
11793 { "_class_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
11794 { "_class_wxControl","_class_wxTextCtrl",SwigwxTextCtrlTowxControl},
11795 { "_class_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
11796 { "_class_wxControl","_class_wxCheckListBox",SwigwxCheckListBoxTowxControl},
11797 { "_class_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
11798 { "_class_wxControl","_class_wxListBox",SwigwxListBoxTowxControl},
11799 { "_class_wxControl","_wxListBox",SwigwxListBoxTowxControl},
11800 { "_class_wxControl","_class_wxStaticText",SwigwxStaticTextTowxControl},
11801 { "_class_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
11802 { "_class_wxControl","_class_wxStaticLine",SwigwxStaticLineTowxControl},
11803 { "_class_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
11804 { "_class_wxControl","_class_wxStaticBox",SwigwxStaticBoxTowxControl},
11805 { "_class_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
11806 { "_class_wxControl","_class_wxGauge",SwigwxGaugeTowxControl},
11807 { "_class_wxControl","_wxGauge",SwigwxGaugeTowxControl},
11808 { "_class_wxControl","_class_wxComboBox",SwigwxComboBoxTowxControl},
11809 { "_class_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
11810 { "_class_wxControl","_class_wxChoice",SwigwxChoiceTowxControl},
11811 { "_class_wxControl","_wxChoice",SwigwxChoiceTowxControl},
11812 { "_class_wxControl","_class_wxCheckBox",SwigwxCheckBoxTowxControl},
11813 { "_class_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
11814 { "_class_wxControl","_class_wxBitmapButton",SwigwxBitmapButtonTowxControl},
11815 { "_class_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
11816 { "_class_wxControl","_class_wxButton",SwigwxButtonTowxControl},
11817 { "_class_wxControl","_wxButton",SwigwxButtonTowxControl},
11818 { "_wxCoord","_int",0},
11819 { "_wxCoord","_signed_int",0},
11820 { "_wxCoord","_unsigned_int",0},
11821 { "_wxCoord","_wxWindowID",0},
11822 { "_wxCoord","_uint",0},
11823 { "_wxCoord","_EBool",0},
11824 { "_wxCoord","_size_t",0},
11825 { "_wxCoord","_time_t",0},
11826 { "_wxCoord","_wxPrintQuality",0},
11827 { "_wxEvtHandler","_class_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
11828 { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
11829 { "_wxEvtHandler","_class_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
11830 { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
11831 { "_wxEvtHandler","_class_wxSlider",SwigwxSliderTowxEvtHandler},
11832 { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
11833 { "_wxEvtHandler","_class_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
11834 { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
11835 { "_wxEvtHandler","_class_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
11836 { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
11837 { "_wxEvtHandler","_class_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
11838 { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
11839 { "_wxEvtHandler","_class_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
11840 { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
11841 { "_wxEvtHandler","_class_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
11842 { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
11843 { "_wxEvtHandler","_class_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
11844 { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
11845 { "_wxEvtHandler","_class_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
11846 { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
11847 { "_wxEvtHandler","_class_wxListBox",SwigwxListBoxTowxEvtHandler},
11848 { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
11849 { "_wxEvtHandler","_class_wxStaticText",SwigwxStaticTextTowxEvtHandler},
11850 { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
11851 { "_wxEvtHandler","_class_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
11852 { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
11853 { "_wxEvtHandler","_class_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
11854 { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
11855 { "_wxEvtHandler","_class_wxGauge",SwigwxGaugeTowxEvtHandler},
11856 { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
11857 { "_wxEvtHandler","_class_wxComboBox",SwigwxComboBoxTowxEvtHandler},
11858 { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
11859 { "_wxEvtHandler","_class_wxChoice",SwigwxChoiceTowxEvtHandler},
11860 { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
11861 { "_wxEvtHandler","_class_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
11862 { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
11863 { "_wxEvtHandler","_class_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
11864 { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
11865 { "_wxEvtHandler","_class_wxButton",SwigwxButtonTowxEvtHandler},
11866 { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
11867 { "_wxEvtHandler","_class_wxControl",SwigwxControlTowxEvtHandler},
11868 { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
11869 { "_wxWindow","_class_wxToggleButton",SwigwxToggleButtonTowxWindow},
11870 { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow},
11871 { "_wxWindow","_class_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
11872 { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
11873 { "_wxWindow","_class_wxSlider",SwigwxSliderTowxWindow},
11874 { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
11875 { "_wxWindow","_class_wxRadioButton",SwigwxRadioButtonTowxWindow},
11876 { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
11877 { "_wxWindow","_class_wxRadioBox",SwigwxRadioBoxTowxWindow},
11878 { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
11879 { "_wxWindow","_class_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
11880 { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
11881 { "_wxWindow","_class_wxSpinButton",SwigwxSpinButtonTowxWindow},
11882 { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
11883 { "_wxWindow","_class_wxScrollBar",SwigwxScrollBarTowxWindow},
11884 { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
11885 { "_wxWindow","_class_wxTextCtrl",SwigwxTextCtrlTowxWindow},
11886 { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
11887 { "_wxWindow","_class_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
11888 { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
11889 { "_wxWindow","_class_wxListBox",SwigwxListBoxTowxWindow},
11890 { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
11891 { "_wxWindow","_class_wxStaticText",SwigwxStaticTextTowxWindow},
11892 { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
11893 { "_wxWindow","_class_wxStaticLine",SwigwxStaticLineTowxWindow},
11894 { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
11895 { "_wxWindow","_class_wxStaticBox",SwigwxStaticBoxTowxWindow},
11896 { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
11897 { "_wxWindow","_class_wxGauge",SwigwxGaugeTowxWindow},
11898 { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
11899 { "_wxWindow","_class_wxComboBox",SwigwxComboBoxTowxWindow},
11900 { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
11901 { "_wxWindow","_class_wxChoice",SwigwxChoiceTowxWindow},
11902 { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
11903 { "_wxWindow","_class_wxCheckBox",SwigwxCheckBoxTowxWindow},
11904 { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
11905 { "_wxWindow","_class_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
11906 { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
11907 { "_wxWindow","_class_wxButton",SwigwxButtonTowxWindow},
11908 { "_wxWindow","_wxButton",SwigwxButtonTowxWindow},
11909 { "_wxWindow","_class_wxControl",SwigwxControlTowxWindow},
11910 { "_wxWindow","_wxControl",SwigwxControlTowxWindow},
11911 {0,0,0}};
11912
11913 static PyObject *SWIG_globals;
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 SWIGEXPORT(void) initcontrolsc() {
11918 PyObject *m, *d;
11919 SWIG_globals = SWIG_newvarlink();
11920 m = Py_InitModule("controlsc", controlscMethods);
11921 d = PyModule_GetDict(m);
11922 PyDict_SetItemString(d,"cvar", SWIG_globals);
11923 SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set);
11924 PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
11925 {
11926 int i;
11927 for (i = 0; _swig_mapping[i].n1; i++)
11928 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11929 }
11930 }