]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/controls.cpp
finally, wx/setup.h is not needed in the .spec
[wxWidgets.git] / wxPython / src / msw / controls.cpp
1 /*
2 * FILE : src/msw/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
110 wxSize wxButton_GetDefaultSize() {
111 return wxButton::GetDefaultSize();
112 }
113 #ifdef __cplusplus
114 extern "C" {
115 #endif
116 static int _wrap_wxDefaultValidator_set(PyObject *val) {
117
118 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only.");
119 return 1;
120 }
121
122 static PyObject *_wrap_wxDefaultValidator_get() {
123 PyObject * pyobj;
124 char ptemp[128];
125
126 SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p");
127 pyobj = PyString_FromString(ptemp);
128 return pyobj;
129 }
130
131 static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
132 PyObject * _resultobj;
133 wxSize * _result;
134 char *_kwnames[] = { NULL };
135 char _ptemp[128];
136
137 self = self;
138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames))
139 return NULL;
140 {
141 wxPy_BEGIN_ALLOW_THREADS;
142 _result = new wxSize (wxButton_GetDefaultSize());
143
144 wxPy_END_ALLOW_THREADS;
145 if (PyErr_Occurred()) return NULL;
146 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
147 _resultobj = Py_BuildValue("s",_ptemp);
148 return _resultobj;
149 }
150
151 static void *SwigwxControlTowxWindow(void *ptr) {
152 wxControl *src;
153 wxWindow *dest;
154 src = (wxControl *) ptr;
155 dest = (wxWindow *) src;
156 return (void *) dest;
157 }
158
159 static void *SwigwxControlTowxEvtHandler(void *ptr) {
160 wxControl *src;
161 wxEvtHandler *dest;
162 src = (wxControl *) ptr;
163 dest = (wxEvtHandler *) src;
164 return (void *) dest;
165 }
166
167 static void *SwigwxControlTowxObject(void *ptr) {
168 wxControl *src;
169 wxObject *dest;
170 src = (wxControl *) ptr;
171 dest = (wxObject *) src;
172 return (void *) dest;
173 }
174
175 #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
176 static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) {
177 PyObject * _resultobj;
178 wxControl * _result;
179 wxWindow * _arg0;
180 wxWindowID _arg1;
181 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
182 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
183 long _arg4 = (long ) 0;
184 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
185 char * _arg6 = (char *) "control";
186 PyObject * _argo0 = 0;
187 wxPoint temp;
188 PyObject * _obj2 = 0;
189 wxSize temp0;
190 PyObject * _obj3 = 0;
191 PyObject * _argo5 = 0;
192 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
193 char _ptemp[128];
194
195 self = self;
196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
197 return NULL;
198 if (_argo0) {
199 if (_argo0 == Py_None) { _arg0 = NULL; }
200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p.");
202 return NULL;
203 }
204 }
205 if (_obj2)
206 {
207 _arg2 = &temp;
208 if (! wxPoint_helper(_obj2, &_arg2))
209 return NULL;
210 }
211 if (_obj3)
212 {
213 _arg3 = &temp0;
214 if (! wxSize_helper(_obj3, &_arg3))
215 return NULL;
216 }
217 if (_argo5) {
218 if (_argo5 == Py_None) { _arg5 = NULL; }
219 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
220 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p.");
221 return NULL;
222 }
223 }
224 {
225 wxPy_BEGIN_ALLOW_THREADS;
226 _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
227
228 wxPy_END_ALLOW_THREADS;
229 if (PyErr_Occurred()) return NULL;
230 } if (_result) {
231 SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
232 _resultobj = Py_BuildValue("s",_ptemp);
233 } else {
234 Py_INCREF(Py_None);
235 _resultobj = Py_None;
236 }
237 return _resultobj;
238 }
239
240 #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
241 static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
242 PyObject * _resultobj;
243 wxControl * _arg0;
244 wxCommandEvent * _arg1;
245 PyObject * _argo0 = 0;
246 PyObject * _argo1 = 0;
247 char *_kwnames[] = { "self","event", NULL };
248
249 self = self;
250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1))
251 return NULL;
252 if (_argo0) {
253 if (_argo0 == Py_None) { _arg0 = NULL; }
254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p.");
256 return NULL;
257 }
258 }
259 if (_argo1) {
260 if (_argo1 == Py_None) { _arg1 = NULL; }
261 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) {
262 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p.");
263 return NULL;
264 }
265 }
266 {
267 wxPy_BEGIN_ALLOW_THREADS;
268 wxControl_Command(_arg0,*_arg1);
269
270 wxPy_END_ALLOW_THREADS;
271 if (PyErr_Occurred()) return NULL;
272 } Py_INCREF(Py_None);
273 _resultobj = Py_None;
274 return _resultobj;
275 }
276
277 #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel())
278 static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
279 PyObject * _resultobj;
280 wxString * _result;
281 wxControl * _arg0;
282 PyObject * _argo0 = 0;
283 char *_kwnames[] = { "self", NULL };
284
285 self = self;
286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0))
287 return NULL;
288 if (_argo0) {
289 if (_argo0 == Py_None) { _arg0 = NULL; }
290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p.");
292 return NULL;
293 }
294 }
295 {
296 wxPy_BEGIN_ALLOW_THREADS;
297 _result = new wxString (wxControl_GetLabel(_arg0));
298
299 wxPy_END_ALLOW_THREADS;
300 if (PyErr_Occurred()) return NULL;
301 }{
302 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
303 }
304 {
305 delete _result;
306 }
307 return _resultobj;
308 }
309
310 #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
311 static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
312 PyObject * _resultobj;
313 wxControl * _arg0;
314 wxString * _arg1;
315 PyObject * _argo0 = 0;
316 PyObject * _obj1 = 0;
317 char *_kwnames[] = { "self","label", NULL };
318
319 self = self;
320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1))
321 return NULL;
322 if (_argo0) {
323 if (_argo0 == Py_None) { _arg0 = NULL; }
324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p.");
326 return NULL;
327 }
328 }
329 {
330 #if PYTHON_API_VERSION >= 1009
331 char* tmpPtr; int tmpSize;
332 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
333 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
334 return NULL;
335 }
336 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
337 return NULL;
338 _arg1 = new wxString(tmpPtr, tmpSize);
339 #else
340 if (!PyString_Check(_obj1)) {
341 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
342 return NULL;
343 }
344 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
345 #endif
346 }
347 {
348 wxPy_BEGIN_ALLOW_THREADS;
349 wxControl_SetLabel(_arg0,*_arg1);
350
351 wxPy_END_ALLOW_THREADS;
352 if (PyErr_Occurred()) return NULL;
353 } Py_INCREF(Py_None);
354 _resultobj = Py_None;
355 {
356 if (_obj1)
357 delete _arg1;
358 }
359 return _resultobj;
360 }
361
362 static void *SwigwxButtonTowxControl(void *ptr) {
363 wxButton *src;
364 wxControl *dest;
365 src = (wxButton *) ptr;
366 dest = (wxControl *) src;
367 return (void *) dest;
368 }
369
370 static void *SwigwxButtonTowxWindow(void *ptr) {
371 wxButton *src;
372 wxWindow *dest;
373 src = (wxButton *) ptr;
374 dest = (wxWindow *) src;
375 return (void *) dest;
376 }
377
378 static void *SwigwxButtonTowxEvtHandler(void *ptr) {
379 wxButton *src;
380 wxEvtHandler *dest;
381 src = (wxButton *) ptr;
382 dest = (wxEvtHandler *) src;
383 return (void *) dest;
384 }
385
386 static void *SwigwxButtonTowxObject(void *ptr) {
387 wxButton *src;
388 wxObject *dest;
389 src = (wxButton *) ptr;
390 dest = (wxObject *) src;
391 return (void *) dest;
392 }
393
394 #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
395 static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) {
396 PyObject * _resultobj;
397 wxButton * _result;
398 wxWindow * _arg0;
399 wxWindowID _arg1;
400 wxString * _arg2;
401 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
402 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
403 long _arg5 = (long ) 0;
404 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
405 char * _arg7 = (char *) "button";
406 PyObject * _argo0 = 0;
407 PyObject * _obj2 = 0;
408 wxPoint temp;
409 PyObject * _obj3 = 0;
410 wxSize temp0;
411 PyObject * _obj4 = 0;
412 PyObject * _argo6 = 0;
413 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
414 char _ptemp[128];
415
416 self = self;
417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
418 return NULL;
419 if (_argo0) {
420 if (_argo0 == Py_None) { _arg0 = NULL; }
421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p.");
423 return NULL;
424 }
425 }
426 {
427 #if PYTHON_API_VERSION >= 1009
428 char* tmpPtr; int tmpSize;
429 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
430 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
431 return NULL;
432 }
433 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
434 return NULL;
435 _arg2 = new wxString(tmpPtr, tmpSize);
436 #else
437 if (!PyString_Check(_obj2)) {
438 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
439 return NULL;
440 }
441 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
442 #endif
443 }
444 if (_obj3)
445 {
446 _arg3 = &temp;
447 if (! wxPoint_helper(_obj3, &_arg3))
448 return NULL;
449 }
450 if (_obj4)
451 {
452 _arg4 = &temp0;
453 if (! wxSize_helper(_obj4, &_arg4))
454 return NULL;
455 }
456 if (_argo6) {
457 if (_argo6 == Py_None) { _arg6 = NULL; }
458 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
459 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p.");
460 return NULL;
461 }
462 }
463 {
464 wxPy_BEGIN_ALLOW_THREADS;
465 _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
466
467 wxPy_END_ALLOW_THREADS;
468 if (PyErr_Occurred()) return NULL;
469 } if (_result) {
470 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
471 _resultobj = Py_BuildValue("s",_ptemp);
472 } else {
473 Py_INCREF(Py_None);
474 _resultobj = Py_None;
475 }
476 {
477 if (_obj2)
478 delete _arg2;
479 }
480 return _resultobj;
481 }
482
483 #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault())
484 static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
485 PyObject * _resultobj;
486 wxButton * _arg0;
487 PyObject * _argo0 = 0;
488 char *_kwnames[] = { "self", NULL };
489
490 self = self;
491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0))
492 return NULL;
493 if (_argo0) {
494 if (_argo0 == Py_None) { _arg0 = NULL; }
495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p.");
497 return NULL;
498 }
499 }
500 {
501 wxPy_BEGIN_ALLOW_THREADS;
502 wxButton_SetDefault(_arg0);
503
504 wxPy_END_ALLOW_THREADS;
505 if (PyErr_Occurred()) return NULL;
506 } Py_INCREF(Py_None);
507 _resultobj = Py_None;
508 return _resultobj;
509 }
510
511 #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
512 static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
513 PyObject * _resultobj;
514 wxButton * _arg0;
515 wxColour * _arg1;
516 PyObject * _argo0 = 0;
517 wxColour temp;
518 PyObject * _obj1 = 0;
519 char *_kwnames[] = { "self","colour", NULL };
520
521 self = self;
522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
523 return NULL;
524 if (_argo0) {
525 if (_argo0 == Py_None) { _arg0 = NULL; }
526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p.");
528 return NULL;
529 }
530 }
531 {
532 _arg1 = &temp;
533 if (! wxColour_helper(_obj1, &_arg1))
534 return NULL;
535 }
536 {
537 wxPy_BEGIN_ALLOW_THREADS;
538 wxButton_SetBackgroundColour(_arg0,*_arg1);
539
540 wxPy_END_ALLOW_THREADS;
541 if (PyErr_Occurred()) return NULL;
542 } Py_INCREF(Py_None);
543 _resultobj = Py_None;
544 return _resultobj;
545 }
546
547 #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
548 static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
549 PyObject * _resultobj;
550 wxButton * _arg0;
551 wxColour * _arg1;
552 PyObject * _argo0 = 0;
553 wxColour temp;
554 PyObject * _obj1 = 0;
555 char *_kwnames[] = { "self","colour", NULL };
556
557 self = self;
558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1))
559 return NULL;
560 if (_argo0) {
561 if (_argo0 == Py_None) { _arg0 = NULL; }
562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p.");
564 return NULL;
565 }
566 }
567 {
568 _arg1 = &temp;
569 if (! wxColour_helper(_obj1, &_arg1))
570 return NULL;
571 }
572 {
573 wxPy_BEGIN_ALLOW_THREADS;
574 wxButton_SetForegroundColour(_arg0,*_arg1);
575
576 wxPy_END_ALLOW_THREADS;
577 if (PyErr_Occurred()) return NULL;
578 } Py_INCREF(Py_None);
579 _resultobj = Py_None;
580 return _resultobj;
581 }
582
583 static void *SwigwxBitmapButtonTowxButton(void *ptr) {
584 wxBitmapButton *src;
585 wxButton *dest;
586 src = (wxBitmapButton *) ptr;
587 dest = (wxButton *) src;
588 return (void *) dest;
589 }
590
591 static void *SwigwxBitmapButtonTowxControl(void *ptr) {
592 wxBitmapButton *src;
593 wxControl *dest;
594 src = (wxBitmapButton *) ptr;
595 dest = (wxControl *) src;
596 return (void *) dest;
597 }
598
599 static void *SwigwxBitmapButtonTowxWindow(void *ptr) {
600 wxBitmapButton *src;
601 wxWindow *dest;
602 src = (wxBitmapButton *) ptr;
603 dest = (wxWindow *) src;
604 return (void *) dest;
605 }
606
607 static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) {
608 wxBitmapButton *src;
609 wxEvtHandler *dest;
610 src = (wxBitmapButton *) ptr;
611 dest = (wxEvtHandler *) src;
612 return (void *) dest;
613 }
614
615 static void *SwigwxBitmapButtonTowxObject(void *ptr) {
616 wxBitmapButton *src;
617 wxObject *dest;
618 src = (wxBitmapButton *) ptr;
619 dest = (wxObject *) src;
620 return (void *) dest;
621 }
622
623 #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
624 static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
625 PyObject * _resultobj;
626 wxBitmapButton * _result;
627 wxWindow * _arg0;
628 wxWindowID _arg1;
629 wxBitmap * _arg2;
630 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
631 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
632 long _arg5 = (long ) wxBU_AUTODRAW;
633 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
634 char * _arg7 = (char *) "button";
635 PyObject * _argo0 = 0;
636 PyObject * _argo2 = 0;
637 wxPoint temp;
638 PyObject * _obj3 = 0;
639 wxSize temp0;
640 PyObject * _obj4 = 0;
641 PyObject * _argo6 = 0;
642 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL };
643 char _ptemp[128];
644
645 self = self;
646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
647 return NULL;
648 if (_argo0) {
649 if (_argo0 == Py_None) { _arg0 = NULL; }
650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p.");
652 return NULL;
653 }
654 }
655 if (_argo2) {
656 if (_argo2 == Py_None) { _arg2 = NULL; }
657 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
658 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p.");
659 return NULL;
660 }
661 }
662 if (_obj3)
663 {
664 _arg3 = &temp;
665 if (! wxPoint_helper(_obj3, &_arg3))
666 return NULL;
667 }
668 if (_obj4)
669 {
670 _arg4 = &temp0;
671 if (! wxSize_helper(_obj4, &_arg4))
672 return NULL;
673 }
674 if (_argo6) {
675 if (_argo6 == Py_None) { _arg6 = NULL; }
676 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
677 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p.");
678 return NULL;
679 }
680 }
681 {
682 wxPy_BEGIN_ALLOW_THREADS;
683 _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
684
685 wxPy_END_ALLOW_THREADS;
686 if (PyErr_Occurred()) return NULL;
687 } if (_result) {
688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
689 _resultobj = Py_BuildValue("s",_ptemp);
690 } else {
691 Py_INCREF(Py_None);
692 _resultobj = Py_None;
693 }
694 return _resultobj;
695 }
696
697 #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel())
698 static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
699 PyObject * _resultobj;
700 wxBitmap * _result;
701 wxBitmapButton * _arg0;
702 PyObject * _argo0 = 0;
703 char *_kwnames[] = { "self", NULL };
704 char _ptemp[128];
705
706 self = self;
707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0))
708 return NULL;
709 if (_argo0) {
710 if (_argo0 == Py_None) { _arg0 = NULL; }
711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p.");
713 return NULL;
714 }
715 }
716 {
717 wxPy_BEGIN_ALLOW_THREADS;
718 wxBitmap & _result_ref = wxBitmapButton_GetBitmapLabel(_arg0);
719 _result = (wxBitmap *) &_result_ref;
720
721 wxPy_END_ALLOW_THREADS;
722 if (PyErr_Occurred()) return NULL;
723 } if (_result) {
724 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
725 _resultobj = Py_BuildValue("s",_ptemp);
726 } else {
727 Py_INCREF(Py_None);
728 _resultobj = Py_None;
729 }
730 return _resultobj;
731 }
732
733 #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled())
734 static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject * _resultobj;
736 wxBitmap * _result;
737 wxBitmapButton * _arg0;
738 PyObject * _argo0 = 0;
739 char *_kwnames[] = { "self", NULL };
740 char _ptemp[128];
741
742 self = self;
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0))
744 return NULL;
745 if (_argo0) {
746 if (_argo0 == Py_None) { _arg0 = NULL; }
747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p.");
749 return NULL;
750 }
751 }
752 {
753 wxPy_BEGIN_ALLOW_THREADS;
754 wxBitmap & _result_ref = wxBitmapButton_GetBitmapDisabled(_arg0);
755 _result = (wxBitmap *) &_result_ref;
756
757 wxPy_END_ALLOW_THREADS;
758 if (PyErr_Occurred()) return NULL;
759 } if (_result) {
760 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
761 _resultobj = Py_BuildValue("s",_ptemp);
762 } else {
763 Py_INCREF(Py_None);
764 _resultobj = Py_None;
765 }
766 return _resultobj;
767 }
768
769 #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus())
770 static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
771 PyObject * _resultobj;
772 wxBitmap * _result;
773 wxBitmapButton * _arg0;
774 PyObject * _argo0 = 0;
775 char *_kwnames[] = { "self", NULL };
776 char _ptemp[128];
777
778 self = self;
779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0))
780 return NULL;
781 if (_argo0) {
782 if (_argo0 == Py_None) { _arg0 = NULL; }
783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p.");
785 return NULL;
786 }
787 }
788 {
789 wxPy_BEGIN_ALLOW_THREADS;
790 wxBitmap & _result_ref = wxBitmapButton_GetBitmapFocus(_arg0);
791 _result = (wxBitmap *) &_result_ref;
792
793 wxPy_END_ALLOW_THREADS;
794 if (PyErr_Occurred()) return NULL;
795 } if (_result) {
796 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
797 _resultobj = Py_BuildValue("s",_ptemp);
798 } else {
799 Py_INCREF(Py_None);
800 _resultobj = Py_None;
801 }
802 return _resultobj;
803 }
804
805 #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected())
806 static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
807 PyObject * _resultobj;
808 wxBitmap * _result;
809 wxBitmapButton * _arg0;
810 PyObject * _argo0 = 0;
811 char *_kwnames[] = { "self", NULL };
812 char _ptemp[128];
813
814 self = self;
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0))
816 return NULL;
817 if (_argo0) {
818 if (_argo0 == Py_None) { _arg0 = NULL; }
819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p.");
821 return NULL;
822 }
823 }
824 {
825 wxPy_BEGIN_ALLOW_THREADS;
826 wxBitmap & _result_ref = wxBitmapButton_GetBitmapSelected(_arg0);
827 _result = (wxBitmap *) &_result_ref;
828
829 wxPy_END_ALLOW_THREADS;
830 if (PyErr_Occurred()) return NULL;
831 } if (_result) {
832 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
833 _resultobj = Py_BuildValue("s",_ptemp);
834 } else {
835 Py_INCREF(Py_None);
836 _resultobj = Py_None;
837 }
838 return _resultobj;
839 }
840
841 #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0))
842 static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject * _resultobj;
844 wxBitmapButton * _arg0;
845 wxBitmap * _arg1;
846 PyObject * _argo0 = 0;
847 PyObject * _argo1 = 0;
848 char *_kwnames[] = { "self","bitmap", NULL };
849
850 self = self;
851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1))
852 return NULL;
853 if (_argo0) {
854 if (_argo0 == Py_None) { _arg0 = NULL; }
855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p.");
857 return NULL;
858 }
859 }
860 if (_argo1) {
861 if (_argo1 == Py_None) { _arg1 = NULL; }
862 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
863 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p.");
864 return NULL;
865 }
866 }
867 {
868 wxPy_BEGIN_ALLOW_THREADS;
869 wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1);
870
871 wxPy_END_ALLOW_THREADS;
872 if (PyErr_Occurred()) return NULL;
873 } Py_INCREF(Py_None);
874 _resultobj = Py_None;
875 return _resultobj;
876 }
877
878 #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0))
879 static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
880 PyObject * _resultobj;
881 wxBitmapButton * _arg0;
882 wxBitmap * _arg1;
883 PyObject * _argo0 = 0;
884 PyObject * _argo1 = 0;
885 char *_kwnames[] = { "self","bitmap", NULL };
886
887 self = self;
888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1))
889 return NULL;
890 if (_argo0) {
891 if (_argo0 == Py_None) { _arg0 = NULL; }
892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p.");
894 return NULL;
895 }
896 }
897 if (_argo1) {
898 if (_argo1 == Py_None) { _arg1 = NULL; }
899 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
900 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p.");
901 return NULL;
902 }
903 }
904 {
905 wxPy_BEGIN_ALLOW_THREADS;
906 wxBitmapButton_SetBitmapFocus(_arg0,*_arg1);
907
908 wxPy_END_ALLOW_THREADS;
909 if (PyErr_Occurred()) return NULL;
910 } Py_INCREF(Py_None);
911 _resultobj = Py_None;
912 return _resultobj;
913 }
914
915 #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0))
916 static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
917 PyObject * _resultobj;
918 wxBitmapButton * _arg0;
919 wxBitmap * _arg1;
920 PyObject * _argo0 = 0;
921 PyObject * _argo1 = 0;
922 char *_kwnames[] = { "self","bitmap", NULL };
923
924 self = self;
925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1))
926 return NULL;
927 if (_argo0) {
928 if (_argo0 == Py_None) { _arg0 = NULL; }
929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p.");
931 return NULL;
932 }
933 }
934 if (_argo1) {
935 if (_argo1 == Py_None) { _arg1 = NULL; }
936 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
937 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p.");
938 return NULL;
939 }
940 }
941 {
942 wxPy_BEGIN_ALLOW_THREADS;
943 wxBitmapButton_SetBitmapSelected(_arg0,*_arg1);
944
945 wxPy_END_ALLOW_THREADS;
946 if (PyErr_Occurred()) return NULL;
947 } Py_INCREF(Py_None);
948 _resultobj = Py_None;
949 return _resultobj;
950 }
951
952 #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0))
953 static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
954 PyObject * _resultobj;
955 wxBitmapButton * _arg0;
956 wxBitmap * _arg1;
957 PyObject * _argo0 = 0;
958 PyObject * _argo1 = 0;
959 char *_kwnames[] = { "self","bitmap", NULL };
960
961 self = self;
962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1))
963 return NULL;
964 if (_argo0) {
965 if (_argo0 == Py_None) { _arg0 = NULL; }
966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p.");
968 return NULL;
969 }
970 }
971 if (_argo1) {
972 if (_argo1 == Py_None) { _arg1 = NULL; }
973 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
974 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p.");
975 return NULL;
976 }
977 }
978 {
979 wxPy_BEGIN_ALLOW_THREADS;
980 wxBitmapButton_SetBitmapLabel(_arg0,*_arg1);
981
982 wxPy_END_ALLOW_THREADS;
983 if (PyErr_Occurred()) return NULL;
984 } Py_INCREF(Py_None);
985 _resultobj = Py_None;
986 return _resultobj;
987 }
988
989 #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
990 static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
991 PyObject * _resultobj;
992 wxBitmapButton * _arg0;
993 int _arg1;
994 int _arg2;
995 PyObject * _argo0 = 0;
996 char *_kwnames[] = { "self","x","y", NULL };
997
998 self = self;
999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2))
1000 return NULL;
1001 if (_argo0) {
1002 if (_argo0 == Py_None) { _arg0 = NULL; }
1003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p.");
1005 return NULL;
1006 }
1007 }
1008 {
1009 wxPy_BEGIN_ALLOW_THREADS;
1010 wxBitmapButton_SetMargins(_arg0,_arg1,_arg2);
1011
1012 wxPy_END_ALLOW_THREADS;
1013 if (PyErr_Occurred()) return NULL;
1014 } Py_INCREF(Py_None);
1015 _resultobj = Py_None;
1016 return _resultobj;
1017 }
1018
1019 #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX())
1020 static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1021 PyObject * _resultobj;
1022 int _result;
1023 wxBitmapButton * _arg0;
1024 PyObject * _argo0 = 0;
1025 char *_kwnames[] = { "self", NULL };
1026
1027 self = self;
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0))
1029 return NULL;
1030 if (_argo0) {
1031 if (_argo0 == Py_None) { _arg0 = NULL; }
1032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p.");
1034 return NULL;
1035 }
1036 }
1037 {
1038 wxPy_BEGIN_ALLOW_THREADS;
1039 _result = (int )wxBitmapButton_GetMarginX(_arg0);
1040
1041 wxPy_END_ALLOW_THREADS;
1042 if (PyErr_Occurred()) return NULL;
1043 } _resultobj = Py_BuildValue("i",_result);
1044 return _resultobj;
1045 }
1046
1047 #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY())
1048 static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1049 PyObject * _resultobj;
1050 int _result;
1051 wxBitmapButton * _arg0;
1052 PyObject * _argo0 = 0;
1053 char *_kwnames[] = { "self", NULL };
1054
1055 self = self;
1056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0))
1057 return NULL;
1058 if (_argo0) {
1059 if (_argo0 == Py_None) { _arg0 = NULL; }
1060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p.");
1062 return NULL;
1063 }
1064 }
1065 {
1066 wxPy_BEGIN_ALLOW_THREADS;
1067 _result = (int )wxBitmapButton_GetMarginY(_arg0);
1068
1069 wxPy_END_ALLOW_THREADS;
1070 if (PyErr_Occurred()) return NULL;
1071 } _resultobj = Py_BuildValue("i",_result);
1072 return _resultobj;
1073 }
1074
1075 static void *SwigwxCheckBoxTowxControl(void *ptr) {
1076 wxCheckBox *src;
1077 wxControl *dest;
1078 src = (wxCheckBox *) ptr;
1079 dest = (wxControl *) src;
1080 return (void *) dest;
1081 }
1082
1083 static void *SwigwxCheckBoxTowxWindow(void *ptr) {
1084 wxCheckBox *src;
1085 wxWindow *dest;
1086 src = (wxCheckBox *) ptr;
1087 dest = (wxWindow *) src;
1088 return (void *) dest;
1089 }
1090
1091 static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) {
1092 wxCheckBox *src;
1093 wxEvtHandler *dest;
1094 src = (wxCheckBox *) ptr;
1095 dest = (wxEvtHandler *) src;
1096 return (void *) dest;
1097 }
1098
1099 static void *SwigwxCheckBoxTowxObject(void *ptr) {
1100 wxCheckBox *src;
1101 wxObject *dest;
1102 src = (wxCheckBox *) ptr;
1103 dest = (wxObject *) src;
1104 return (void *) dest;
1105 }
1106
1107 #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1108 static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1109 PyObject * _resultobj;
1110 wxCheckBox * _result;
1111 wxWindow * _arg0;
1112 wxWindowID _arg1;
1113 wxString * _arg2;
1114 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1115 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1116 long _arg5 = (long ) 0;
1117 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
1118 char * _arg7 = (char *) "checkBox";
1119 PyObject * _argo0 = 0;
1120 PyObject * _obj2 = 0;
1121 wxPoint temp;
1122 PyObject * _obj3 = 0;
1123 wxSize temp0;
1124 PyObject * _obj4 = 0;
1125 PyObject * _argo6 = 0;
1126 char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL };
1127 char _ptemp[128];
1128
1129 self = self;
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
1131 return NULL;
1132 if (_argo0) {
1133 if (_argo0 == Py_None) { _arg0 = NULL; }
1134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p.");
1136 return NULL;
1137 }
1138 }
1139 {
1140 #if PYTHON_API_VERSION >= 1009
1141 char* tmpPtr; int tmpSize;
1142 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1143 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1144 return NULL;
1145 }
1146 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1147 return NULL;
1148 _arg2 = new wxString(tmpPtr, tmpSize);
1149 #else
1150 if (!PyString_Check(_obj2)) {
1151 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1152 return NULL;
1153 }
1154 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1155 #endif
1156 }
1157 if (_obj3)
1158 {
1159 _arg3 = &temp;
1160 if (! wxPoint_helper(_obj3, &_arg3))
1161 return NULL;
1162 }
1163 if (_obj4)
1164 {
1165 _arg4 = &temp0;
1166 if (! wxSize_helper(_obj4, &_arg4))
1167 return NULL;
1168 }
1169 if (_argo6) {
1170 if (_argo6 == Py_None) { _arg6 = NULL; }
1171 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
1172 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p.");
1173 return NULL;
1174 }
1175 }
1176 {
1177 wxPy_BEGIN_ALLOW_THREADS;
1178 _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
1179
1180 wxPy_END_ALLOW_THREADS;
1181 if (PyErr_Occurred()) return NULL;
1182 } if (_result) {
1183 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1184 _resultobj = Py_BuildValue("s",_ptemp);
1185 } else {
1186 Py_INCREF(Py_None);
1187 _resultobj = Py_None;
1188 }
1189 {
1190 if (_obj2)
1191 delete _arg2;
1192 }
1193 return _resultobj;
1194 }
1195
1196 #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue())
1197 static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1198 PyObject * _resultobj;
1199 bool _result;
1200 wxCheckBox * _arg0;
1201 PyObject * _argo0 = 0;
1202 char *_kwnames[] = { "self", NULL };
1203
1204 self = self;
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0))
1206 return NULL;
1207 if (_argo0) {
1208 if (_argo0 == Py_None) { _arg0 = NULL; }
1209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
1210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p.");
1211 return NULL;
1212 }
1213 }
1214 {
1215 wxPy_BEGIN_ALLOW_THREADS;
1216 _result = (bool )wxCheckBox_GetValue(_arg0);
1217
1218 wxPy_END_ALLOW_THREADS;
1219 if (PyErr_Occurred()) return NULL;
1220 } _resultobj = Py_BuildValue("i",_result);
1221 return _resultobj;
1222 }
1223
1224 #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1225 static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1226 PyObject * _resultobj;
1227 wxCheckBox * _arg0;
1228 bool _arg1;
1229 PyObject * _argo0 = 0;
1230 int tempbool1;
1231 char *_kwnames[] = { "self","state", NULL };
1232
1233 self = self;
1234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1))
1235 return NULL;
1236 if (_argo0) {
1237 if (_argo0 == Py_None) { _arg0 = NULL; }
1238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
1239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p.");
1240 return NULL;
1241 }
1242 }
1243 _arg1 = (bool ) tempbool1;
1244 {
1245 wxPy_BEGIN_ALLOW_THREADS;
1246 wxCheckBox_SetValue(_arg0,_arg1);
1247
1248 wxPy_END_ALLOW_THREADS;
1249 if (PyErr_Occurred()) return NULL;
1250 } Py_INCREF(Py_None);
1251 _resultobj = Py_None;
1252 return _resultobj;
1253 }
1254
1255 static void *SwigwxChoiceTowxControl(void *ptr) {
1256 wxChoice *src;
1257 wxControl *dest;
1258 src = (wxChoice *) ptr;
1259 dest = (wxControl *) src;
1260 return (void *) dest;
1261 }
1262
1263 static void *SwigwxChoiceTowxWindow(void *ptr) {
1264 wxChoice *src;
1265 wxWindow *dest;
1266 src = (wxChoice *) ptr;
1267 dest = (wxWindow *) src;
1268 return (void *) dest;
1269 }
1270
1271 static void *SwigwxChoiceTowxEvtHandler(void *ptr) {
1272 wxChoice *src;
1273 wxEvtHandler *dest;
1274 src = (wxChoice *) ptr;
1275 dest = (wxEvtHandler *) src;
1276 return (void *) dest;
1277 }
1278
1279 static void *SwigwxChoiceTowxObject(void *ptr) {
1280 wxChoice *src;
1281 wxObject *dest;
1282 src = (wxChoice *) ptr;
1283 dest = (wxObject *) src;
1284 return (void *) dest;
1285 }
1286
1287 #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
1288 static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
1289 PyObject * _resultobj;
1290 wxChoice * _result;
1291 wxWindow * _arg0;
1292 wxWindowID _arg1;
1293 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1294 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1295 int _arg4 = (int ) 0;
1296 wxString * _arg5 = (wxString *) NULL;
1297 long _arg6 = (long ) 0;
1298 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1299 char * _arg8 = (char *) "choice";
1300 PyObject * _argo0 = 0;
1301 wxPoint temp;
1302 PyObject * _obj2 = 0;
1303 wxSize temp0;
1304 PyObject * _obj3 = 0;
1305 PyObject * _obj5 = 0;
1306 PyObject * _argo7 = 0;
1307 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
1308 char _ptemp[128];
1309
1310 self = self;
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
1312 return NULL;
1313 if (_argo0) {
1314 if (_argo0 == Py_None) { _arg0 = NULL; }
1315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p.");
1317 return NULL;
1318 }
1319 }
1320 if (_obj2)
1321 {
1322 _arg2 = &temp;
1323 if (! wxPoint_helper(_obj2, &_arg2))
1324 return NULL;
1325 }
1326 if (_obj3)
1327 {
1328 _arg3 = &temp0;
1329 if (! wxSize_helper(_obj3, &_arg3))
1330 return NULL;
1331 }
1332 if (_obj5)
1333 {
1334 _arg5 = wxString_LIST_helper(_obj5);
1335 if (_arg5 == NULL) {
1336 return NULL;
1337 }
1338 }
1339 if (_argo7) {
1340 if (_argo7 == Py_None) { _arg7 = NULL; }
1341 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1342 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p.");
1343 return NULL;
1344 }
1345 }
1346 {
1347 if (_obj5) {
1348 _arg4 = PyList_Size(_obj5);
1349 }
1350 else {
1351 _arg4 = 0;
1352 }
1353 }
1354 {
1355 wxPy_BEGIN_ALLOW_THREADS;
1356 _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
1357
1358 wxPy_END_ALLOW_THREADS;
1359 if (PyErr_Occurred()) return NULL;
1360 } if (_result) {
1361 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
1362 _resultobj = Py_BuildValue("s",_ptemp);
1363 } else {
1364 Py_INCREF(Py_None);
1365 _resultobj = Py_None;
1366 }
1367 {
1368 delete [] _arg5;
1369 }
1370 return _resultobj;
1371 }
1372
1373 #define wxChoice_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
1374 static PyObject *_wrap_wxChoice_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
1375 PyObject * _resultobj;
1376 wxChoice * _arg0;
1377 wxString * _arg1;
1378 PyObject * _argo0 = 0;
1379 PyObject * _obj1 = 0;
1380 char *_kwnames[] = { "self","item", NULL };
1381
1382 self = self;
1383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_Append",_kwnames,&_argo0,&_obj1))
1384 return NULL;
1385 if (_argo0) {
1386 if (_argo0 == Py_None) { _arg0 = NULL; }
1387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Append. Expected _wxChoice_p.");
1389 return NULL;
1390 }
1391 }
1392 {
1393 #if PYTHON_API_VERSION >= 1009
1394 char* tmpPtr; int tmpSize;
1395 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1397 return NULL;
1398 }
1399 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1400 return NULL;
1401 _arg1 = new wxString(tmpPtr, tmpSize);
1402 #else
1403 if (!PyString_Check(_obj1)) {
1404 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1405 return NULL;
1406 }
1407 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1408 #endif
1409 }
1410 {
1411 wxPy_BEGIN_ALLOW_THREADS;
1412 wxChoice_Append(_arg0,*_arg1);
1413
1414 wxPy_END_ALLOW_THREADS;
1415 if (PyErr_Occurred()) return NULL;
1416 } Py_INCREF(Py_None);
1417 _resultobj = Py_None;
1418 {
1419 if (_obj1)
1420 delete _arg1;
1421 }
1422 return _resultobj;
1423 }
1424
1425 #define wxChoice_Clear(_swigobj) (_swigobj->Clear())
1426 static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1427 PyObject * _resultobj;
1428 wxChoice * _arg0;
1429 PyObject * _argo0 = 0;
1430 char *_kwnames[] = { "self", NULL };
1431
1432 self = self;
1433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0))
1434 return NULL;
1435 if (_argo0) {
1436 if (_argo0 == Py_None) { _arg0 = NULL; }
1437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p.");
1439 return NULL;
1440 }
1441 }
1442 {
1443 wxPy_BEGIN_ALLOW_THREADS;
1444 wxChoice_Clear(_arg0);
1445
1446 wxPy_END_ALLOW_THREADS;
1447 if (PyErr_Occurred()) return NULL;
1448 } Py_INCREF(Py_None);
1449 _resultobj = Py_None;
1450 return _resultobj;
1451 }
1452
1453 #define wxChoice_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
1454 static PyObject *_wrap_wxChoice_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject * _resultobj;
1456 int _result;
1457 wxChoice * _arg0;
1458 wxString * _arg1;
1459 PyObject * _argo0 = 0;
1460 PyObject * _obj1 = 0;
1461 char *_kwnames[] = { "self","string", NULL };
1462
1463 self = self;
1464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_FindString",_kwnames,&_argo0,&_obj1))
1465 return NULL;
1466 if (_argo0) {
1467 if (_argo0 == Py_None) { _arg0 = NULL; }
1468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_FindString. Expected _wxChoice_p.");
1470 return NULL;
1471 }
1472 }
1473 {
1474 #if PYTHON_API_VERSION >= 1009
1475 char* tmpPtr; int tmpSize;
1476 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1477 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1478 return NULL;
1479 }
1480 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1481 return NULL;
1482 _arg1 = new wxString(tmpPtr, tmpSize);
1483 #else
1484 if (!PyString_Check(_obj1)) {
1485 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1486 return NULL;
1487 }
1488 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1489 #endif
1490 }
1491 {
1492 wxPy_BEGIN_ALLOW_THREADS;
1493 _result = (int )wxChoice_FindString(_arg0,*_arg1);
1494
1495 wxPy_END_ALLOW_THREADS;
1496 if (PyErr_Occurred()) return NULL;
1497 } _resultobj = Py_BuildValue("i",_result);
1498 {
1499 if (_obj1)
1500 delete _arg1;
1501 }
1502 return _resultobj;
1503 }
1504
1505 #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns())
1506 static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
1507 PyObject * _resultobj;
1508 int _result;
1509 wxChoice * _arg0;
1510 PyObject * _argo0 = 0;
1511 char *_kwnames[] = { "self", NULL };
1512
1513 self = self;
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0))
1515 return NULL;
1516 if (_argo0) {
1517 if (_argo0 == Py_None) { _arg0 = NULL; }
1518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p.");
1520 return NULL;
1521 }
1522 }
1523 {
1524 wxPy_BEGIN_ALLOW_THREADS;
1525 _result = (int )wxChoice_GetColumns(_arg0);
1526
1527 wxPy_END_ALLOW_THREADS;
1528 if (PyErr_Occurred()) return NULL;
1529 } _resultobj = Py_BuildValue("i",_result);
1530 return _resultobj;
1531 }
1532
1533 #define wxChoice_GetSelection(_swigobj) (_swigobj->GetSelection())
1534 static PyObject *_wrap_wxChoice_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1535 PyObject * _resultobj;
1536 int _result;
1537 wxChoice * _arg0;
1538 PyObject * _argo0 = 0;
1539 char *_kwnames[] = { "self", NULL };
1540
1541 self = self;
1542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetSelection",_kwnames,&_argo0))
1543 return NULL;
1544 if (_argo0) {
1545 if (_argo0 == Py_None) { _arg0 = NULL; }
1546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetSelection. Expected _wxChoice_p.");
1548 return NULL;
1549 }
1550 }
1551 {
1552 wxPy_BEGIN_ALLOW_THREADS;
1553 _result = (int )wxChoice_GetSelection(_arg0);
1554
1555 wxPy_END_ALLOW_THREADS;
1556 if (PyErr_Occurred()) return NULL;
1557 } _resultobj = Py_BuildValue("i",_result);
1558 return _resultobj;
1559 }
1560
1561 #define wxChoice_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
1562 static PyObject *_wrap_wxChoice_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject * _resultobj;
1564 wxString * _result;
1565 wxChoice * _arg0;
1566 int _arg1;
1567 PyObject * _argo0 = 0;
1568 char *_kwnames[] = { "self","n", NULL };
1569
1570 self = self;
1571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_GetString",_kwnames,&_argo0,&_arg1))
1572 return NULL;
1573 if (_argo0) {
1574 if (_argo0 == Py_None) { _arg0 = NULL; }
1575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetString. Expected _wxChoice_p.");
1577 return NULL;
1578 }
1579 }
1580 {
1581 wxPy_BEGIN_ALLOW_THREADS;
1582 _result = new wxString (wxChoice_GetString(_arg0,_arg1));
1583
1584 wxPy_END_ALLOW_THREADS;
1585 if (PyErr_Occurred()) return NULL;
1586 }{
1587 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1588 }
1589 {
1590 delete _result;
1591 }
1592 return _resultobj;
1593 }
1594
1595 #define wxChoice_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
1596 static PyObject *_wrap_wxChoice_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1597 PyObject * _resultobj;
1598 wxString * _result;
1599 wxChoice * _arg0;
1600 PyObject * _argo0 = 0;
1601 char *_kwnames[] = { "self", NULL };
1602
1603 self = self;
1604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetStringSelection",_kwnames,&_argo0))
1605 return NULL;
1606 if (_argo0) {
1607 if (_argo0 == Py_None) { _arg0 = NULL; }
1608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetStringSelection. Expected _wxChoice_p.");
1610 return NULL;
1611 }
1612 }
1613 {
1614 wxPy_BEGIN_ALLOW_THREADS;
1615 _result = new wxString (wxChoice_GetStringSelection(_arg0));
1616
1617 wxPy_END_ALLOW_THREADS;
1618 if (PyErr_Occurred()) return NULL;
1619 }{
1620 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1621 }
1622 {
1623 delete _result;
1624 }
1625 return _resultobj;
1626 }
1627
1628 #define wxChoice_Number(_swigobj) (_swigobj->Number())
1629 static PyObject *_wrap_wxChoice_Number(PyObject *self, PyObject *args, PyObject *kwargs) {
1630 PyObject * _resultobj;
1631 int _result;
1632 wxChoice * _arg0;
1633 PyObject * _argo0 = 0;
1634 char *_kwnames[] = { "self", NULL };
1635
1636 self = self;
1637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Number",_kwnames,&_argo0))
1638 return NULL;
1639 if (_argo0) {
1640 if (_argo0 == Py_None) { _arg0 = NULL; }
1641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Number. Expected _wxChoice_p.");
1643 return NULL;
1644 }
1645 }
1646 {
1647 wxPy_BEGIN_ALLOW_THREADS;
1648 _result = (int )wxChoice_Number(_arg0);
1649
1650 wxPy_END_ALLOW_THREADS;
1651 if (PyErr_Occurred()) return NULL;
1652 } _resultobj = Py_BuildValue("i",_result);
1653 return _resultobj;
1654 }
1655
1656 #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0))
1657 static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
1658 PyObject * _resultobj;
1659 wxChoice * _arg0;
1660 int _arg1 = (int ) 1;
1661 PyObject * _argo0 = 0;
1662 char *_kwnames[] = { "self","n", NULL };
1663
1664 self = self;
1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1))
1666 return NULL;
1667 if (_argo0) {
1668 if (_argo0 == Py_None) { _arg0 = NULL; }
1669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p.");
1671 return NULL;
1672 }
1673 }
1674 {
1675 wxPy_BEGIN_ALLOW_THREADS;
1676 wxChoice_SetColumns(_arg0,_arg1);
1677
1678 wxPy_END_ALLOW_THREADS;
1679 if (PyErr_Occurred()) return NULL;
1680 } Py_INCREF(Py_None);
1681 _resultobj = Py_None;
1682 return _resultobj;
1683 }
1684
1685 #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
1686 static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1687 PyObject * _resultobj;
1688 wxChoice * _arg0;
1689 int _arg1;
1690 PyObject * _argo0 = 0;
1691 char *_kwnames[] = { "self","n", NULL };
1692
1693 self = self;
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1))
1695 return NULL;
1696 if (_argo0) {
1697 if (_argo0 == Py_None) { _arg0 = NULL; }
1698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p.");
1700 return NULL;
1701 }
1702 }
1703 {
1704 wxPy_BEGIN_ALLOW_THREADS;
1705 wxChoice_SetSelection(_arg0,_arg1);
1706
1707 wxPy_END_ALLOW_THREADS;
1708 if (PyErr_Occurred()) return NULL;
1709 } Py_INCREF(Py_None);
1710 _resultobj = Py_None;
1711 return _resultobj;
1712 }
1713
1714 #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
1715 static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1716 PyObject * _resultobj;
1717 wxChoice * _arg0;
1718 wxString * _arg1;
1719 PyObject * _argo0 = 0;
1720 PyObject * _obj1 = 0;
1721 char *_kwnames[] = { "self","string", NULL };
1722
1723 self = self;
1724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1))
1725 return NULL;
1726 if (_argo0) {
1727 if (_argo0 == Py_None) { _arg0 = NULL; }
1728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
1729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p.");
1730 return NULL;
1731 }
1732 }
1733 {
1734 #if PYTHON_API_VERSION >= 1009
1735 char* tmpPtr; int tmpSize;
1736 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1737 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1738 return NULL;
1739 }
1740 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1741 return NULL;
1742 _arg1 = new wxString(tmpPtr, tmpSize);
1743 #else
1744 if (!PyString_Check(_obj1)) {
1745 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1746 return NULL;
1747 }
1748 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1749 #endif
1750 }
1751 {
1752 wxPy_BEGIN_ALLOW_THREADS;
1753 wxChoice_SetStringSelection(_arg0,*_arg1);
1754
1755 wxPy_END_ALLOW_THREADS;
1756 if (PyErr_Occurred()) return NULL;
1757 } Py_INCREF(Py_None);
1758 _resultobj = Py_None;
1759 {
1760 if (_obj1)
1761 delete _arg1;
1762 }
1763 return _resultobj;
1764 }
1765
1766 static void *SwigwxComboBoxTowxChoice(void *ptr) {
1767 wxComboBox *src;
1768 wxChoice *dest;
1769 src = (wxComboBox *) ptr;
1770 dest = (wxChoice *) src;
1771 return (void *) dest;
1772 }
1773
1774 static void *SwigwxComboBoxTowxControl(void *ptr) {
1775 wxComboBox *src;
1776 wxControl *dest;
1777 src = (wxComboBox *) ptr;
1778 dest = (wxControl *) src;
1779 return (void *) dest;
1780 }
1781
1782 static void *SwigwxComboBoxTowxWindow(void *ptr) {
1783 wxComboBox *src;
1784 wxWindow *dest;
1785 src = (wxComboBox *) ptr;
1786 dest = (wxWindow *) src;
1787 return (void *) dest;
1788 }
1789
1790 static void *SwigwxComboBoxTowxEvtHandler(void *ptr) {
1791 wxComboBox *src;
1792 wxEvtHandler *dest;
1793 src = (wxComboBox *) ptr;
1794 dest = (wxEvtHandler *) src;
1795 return (void *) dest;
1796 }
1797
1798 static void *SwigwxComboBoxTowxObject(void *ptr) {
1799 wxComboBox *src;
1800 wxObject *dest;
1801 src = (wxComboBox *) ptr;
1802 dest = (wxObject *) src;
1803 return (void *) dest;
1804 }
1805
1806 #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))
1807 static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject * _resultobj;
1809 wxComboBox * _result;
1810 wxWindow * _arg0;
1811 wxWindowID _arg1;
1812 char * _arg2 = (char *) "";
1813 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1814 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1815 int _arg5 = (int ) 0;
1816 wxString * _arg6 = (wxString *) NULL;
1817 long _arg7 = (long ) 0;
1818 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
1819 char * _arg9 = (char *) "comboBox";
1820 PyObject * _argo0 = 0;
1821 wxPoint temp;
1822 PyObject * _obj3 = 0;
1823 wxSize temp0;
1824 PyObject * _obj4 = 0;
1825 PyObject * _obj6 = 0;
1826 PyObject * _argo8 = 0;
1827 char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL };
1828 char _ptemp[128];
1829
1830 self = self;
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
1832 return NULL;
1833 if (_argo0) {
1834 if (_argo0 == Py_None) { _arg0 = NULL; }
1835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p.");
1837 return NULL;
1838 }
1839 }
1840 if (_obj3)
1841 {
1842 _arg3 = &temp;
1843 if (! wxPoint_helper(_obj3, &_arg3))
1844 return NULL;
1845 }
1846 if (_obj4)
1847 {
1848 _arg4 = &temp0;
1849 if (! wxSize_helper(_obj4, &_arg4))
1850 return NULL;
1851 }
1852 if (_obj6)
1853 {
1854 _arg6 = wxString_LIST_helper(_obj6);
1855 if (_arg6 == NULL) {
1856 return NULL;
1857 }
1858 }
1859 if (_argo8) {
1860 if (_argo8 == Py_None) { _arg8 = NULL; }
1861 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
1862 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p.");
1863 return NULL;
1864 }
1865 }
1866 {
1867 if (_obj6) {
1868 _arg5 = PyList_Size(_obj6);
1869 }
1870 else {
1871 _arg5 = 0;
1872 }
1873 }
1874 {
1875 wxPy_BEGIN_ALLOW_THREADS;
1876 _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
1877
1878 wxPy_END_ALLOW_THREADS;
1879 if (PyErr_Occurred()) return NULL;
1880 } if (_result) {
1881 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
1882 _resultobj = Py_BuildValue("s",_ptemp);
1883 } else {
1884 Py_INCREF(Py_None);
1885 _resultobj = Py_None;
1886 }
1887 {
1888 delete [] _arg6;
1889 }
1890 return _resultobj;
1891 }
1892
1893 #define wxComboBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
1894 static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject * _resultobj;
1896 wxComboBox * _arg0;
1897 wxString * _arg1;
1898 PyObject * _argo0 = 0;
1899 PyObject * _obj1 = 0;
1900 char *_kwnames[] = { "self","item", NULL };
1901
1902 self = self;
1903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_Append",_kwnames,&_argo0,&_obj1))
1904 return NULL;
1905 if (_argo0) {
1906 if (_argo0 == Py_None) { _arg0 = NULL; }
1907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
1908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p.");
1909 return NULL;
1910 }
1911 }
1912 {
1913 #if PYTHON_API_VERSION >= 1009
1914 char* tmpPtr; int tmpSize;
1915 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1916 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1917 return NULL;
1918 }
1919 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1920 return NULL;
1921 _arg1 = new wxString(tmpPtr, tmpSize);
1922 #else
1923 if (!PyString_Check(_obj1)) {
1924 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1925 return NULL;
1926 }
1927 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1928 #endif
1929 }
1930 {
1931 wxPy_BEGIN_ALLOW_THREADS;
1932 wxComboBox_Append(_arg0,*_arg1);
1933
1934 wxPy_END_ALLOW_THREADS;
1935 if (PyErr_Occurred()) return NULL;
1936 } Py_INCREF(Py_None);
1937 _resultobj = Py_None;
1938 {
1939 if (_obj1)
1940 delete _arg1;
1941 }
1942 return _resultobj;
1943 }
1944
1945 #define wxComboBox_Clear(_swigobj) (_swigobj->Clear())
1946 static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1947 PyObject * _resultobj;
1948 wxComboBox * _arg0;
1949 PyObject * _argo0 = 0;
1950 char *_kwnames[] = { "self", NULL };
1951
1952 self = self;
1953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0))
1954 return NULL;
1955 if (_argo0) {
1956 if (_argo0 == Py_None) { _arg0 = NULL; }
1957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
1958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p.");
1959 return NULL;
1960 }
1961 }
1962 {
1963 wxPy_BEGIN_ALLOW_THREADS;
1964 wxComboBox_Clear(_arg0);
1965
1966 wxPy_END_ALLOW_THREADS;
1967 if (PyErr_Occurred()) return NULL;
1968 } Py_INCREF(Py_None);
1969 _resultobj = Py_None;
1970 return _resultobj;
1971 }
1972
1973 #define wxComboBox_Copy(_swigobj) (_swigobj->Copy())
1974 static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
1975 PyObject * _resultobj;
1976 wxComboBox * _arg0;
1977 PyObject * _argo0 = 0;
1978 char *_kwnames[] = { "self", NULL };
1979
1980 self = self;
1981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0))
1982 return NULL;
1983 if (_argo0) {
1984 if (_argo0 == Py_None) { _arg0 = NULL; }
1985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
1986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p.");
1987 return NULL;
1988 }
1989 }
1990 {
1991 wxPy_BEGIN_ALLOW_THREADS;
1992 wxComboBox_Copy(_arg0);
1993
1994 wxPy_END_ALLOW_THREADS;
1995 if (PyErr_Occurred()) return NULL;
1996 } Py_INCREF(Py_None);
1997 _resultobj = Py_None;
1998 return _resultobj;
1999 }
2000
2001 #define wxComboBox_Cut(_swigobj) (_swigobj->Cut())
2002 static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject * _resultobj;
2004 wxComboBox * _arg0;
2005 PyObject * _argo0 = 0;
2006 char *_kwnames[] = { "self", NULL };
2007
2008 self = self;
2009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0))
2010 return NULL;
2011 if (_argo0) {
2012 if (_argo0 == Py_None) { _arg0 = NULL; }
2013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p.");
2015 return NULL;
2016 }
2017 }
2018 {
2019 wxPy_BEGIN_ALLOW_THREADS;
2020 wxComboBox_Cut(_arg0);
2021
2022 wxPy_END_ALLOW_THREADS;
2023 if (PyErr_Occurred()) return NULL;
2024 } Py_INCREF(Py_None);
2025 _resultobj = Py_None;
2026 return _resultobj;
2027 }
2028
2029 #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
2030 static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
2031 PyObject * _resultobj;
2032 wxComboBox * _arg0;
2033 int _arg1;
2034 PyObject * _argo0 = 0;
2035 char *_kwnames[] = { "self","n", NULL };
2036
2037 self = self;
2038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1))
2039 return NULL;
2040 if (_argo0) {
2041 if (_argo0 == Py_None) { _arg0 = NULL; }
2042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p.");
2044 return NULL;
2045 }
2046 }
2047 {
2048 wxPy_BEGIN_ALLOW_THREADS;
2049 wxComboBox_Delete(_arg0,_arg1);
2050
2051 wxPy_END_ALLOW_THREADS;
2052 if (PyErr_Occurred()) return NULL;
2053 } Py_INCREF(Py_None);
2054 _resultobj = Py_None;
2055 return _resultobj;
2056 }
2057
2058 #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
2059 static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
2060 PyObject * _resultobj;
2061 int _result;
2062 wxComboBox * _arg0;
2063 wxString * _arg1;
2064 PyObject * _argo0 = 0;
2065 PyObject * _obj1 = 0;
2066 char *_kwnames[] = { "self","string", NULL };
2067
2068 self = self;
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1))
2070 return NULL;
2071 if (_argo0) {
2072 if (_argo0 == Py_None) { _arg0 = NULL; }
2073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p.");
2075 return NULL;
2076 }
2077 }
2078 {
2079 #if PYTHON_API_VERSION >= 1009
2080 char* tmpPtr; int tmpSize;
2081 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2082 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2083 return NULL;
2084 }
2085 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2086 return NULL;
2087 _arg1 = new wxString(tmpPtr, tmpSize);
2088 #else
2089 if (!PyString_Check(_obj1)) {
2090 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2091 return NULL;
2092 }
2093 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2094 #endif
2095 }
2096 {
2097 wxPy_BEGIN_ALLOW_THREADS;
2098 _result = (int )wxComboBox_FindString(_arg0,*_arg1);
2099
2100 wxPy_END_ALLOW_THREADS;
2101 if (PyErr_Occurred()) return NULL;
2102 } _resultobj = Py_BuildValue("i",_result);
2103 {
2104 if (_obj1)
2105 delete _arg1;
2106 }
2107 return _resultobj;
2108 }
2109
2110 #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
2111 static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject * _resultobj;
2113 long _result;
2114 wxComboBox * _arg0;
2115 PyObject * _argo0 = 0;
2116 char *_kwnames[] = { "self", NULL };
2117
2118 self = self;
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0))
2120 return NULL;
2121 if (_argo0) {
2122 if (_argo0 == Py_None) { _arg0 = NULL; }
2123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p.");
2125 return NULL;
2126 }
2127 }
2128 {
2129 wxPy_BEGIN_ALLOW_THREADS;
2130 _result = (long )wxComboBox_GetInsertionPoint(_arg0);
2131
2132 wxPy_END_ALLOW_THREADS;
2133 if (PyErr_Occurred()) return NULL;
2134 } _resultobj = Py_BuildValue("l",_result);
2135 return _resultobj;
2136 }
2137
2138 #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
2139 static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject * _resultobj;
2141 long _result;
2142 wxComboBox * _arg0;
2143 PyObject * _argo0 = 0;
2144 char *_kwnames[] = { "self", NULL };
2145
2146 self = self;
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0))
2148 return NULL;
2149 if (_argo0) {
2150 if (_argo0 == Py_None) { _arg0 = NULL; }
2151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p.");
2153 return NULL;
2154 }
2155 }
2156 {
2157 wxPy_BEGIN_ALLOW_THREADS;
2158 _result = (long )wxComboBox_GetLastPosition(_arg0);
2159
2160 wxPy_END_ALLOW_THREADS;
2161 if (PyErr_Occurred()) return NULL;
2162 } _resultobj = Py_BuildValue("l",_result);
2163 return _resultobj;
2164 }
2165
2166 #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection())
2167 static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject * _resultobj;
2169 int _result;
2170 wxComboBox * _arg0;
2171 PyObject * _argo0 = 0;
2172 char *_kwnames[] = { "self", NULL };
2173
2174 self = self;
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0))
2176 return NULL;
2177 if (_argo0) {
2178 if (_argo0 == Py_None) { _arg0 = NULL; }
2179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p.");
2181 return NULL;
2182 }
2183 }
2184 {
2185 wxPy_BEGIN_ALLOW_THREADS;
2186 _result = (int )wxComboBox_GetSelection(_arg0);
2187
2188 wxPy_END_ALLOW_THREADS;
2189 if (PyErr_Occurred()) return NULL;
2190 } _resultobj = Py_BuildValue("i",_result);
2191 return _resultobj;
2192 }
2193
2194 #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
2195 static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject * _resultobj;
2197 wxString * _result;
2198 wxComboBox * _arg0;
2199 int _arg1;
2200 PyObject * _argo0 = 0;
2201 char *_kwnames[] = { "self","n", NULL };
2202
2203 self = self;
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1))
2205 return NULL;
2206 if (_argo0) {
2207 if (_argo0 == Py_None) { _arg0 = NULL; }
2208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p.");
2210 return NULL;
2211 }
2212 }
2213 {
2214 wxPy_BEGIN_ALLOW_THREADS;
2215 _result = new wxString (wxComboBox_GetString(_arg0,_arg1));
2216
2217 wxPy_END_ALLOW_THREADS;
2218 if (PyErr_Occurred()) return NULL;
2219 }{
2220 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2221 }
2222 {
2223 delete _result;
2224 }
2225 return _resultobj;
2226 }
2227
2228 #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
2229 static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2230 PyObject * _resultobj;
2231 wxString * _result;
2232 wxComboBox * _arg0;
2233 PyObject * _argo0 = 0;
2234 char *_kwnames[] = { "self", NULL };
2235
2236 self = self;
2237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0))
2238 return NULL;
2239 if (_argo0) {
2240 if (_argo0 == Py_None) { _arg0 = NULL; }
2241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p.");
2243 return NULL;
2244 }
2245 }
2246 {
2247 wxPy_BEGIN_ALLOW_THREADS;
2248 _result = new wxString (wxComboBox_GetStringSelection(_arg0));
2249
2250 wxPy_END_ALLOW_THREADS;
2251 if (PyErr_Occurred()) return NULL;
2252 }{
2253 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2254 }
2255 {
2256 delete _result;
2257 }
2258 return _resultobj;
2259 }
2260
2261 #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue())
2262 static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2263 PyObject * _resultobj;
2264 wxString * _result;
2265 wxComboBox * _arg0;
2266 PyObject * _argo0 = 0;
2267 char *_kwnames[] = { "self", NULL };
2268
2269 self = self;
2270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0))
2271 return NULL;
2272 if (_argo0) {
2273 if (_argo0 == Py_None) { _arg0 = NULL; }
2274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p.");
2276 return NULL;
2277 }
2278 }
2279 {
2280 wxPy_BEGIN_ALLOW_THREADS;
2281 _result = new wxString (wxComboBox_GetValue(_arg0));
2282
2283 wxPy_END_ALLOW_THREADS;
2284 if (PyErr_Occurred()) return NULL;
2285 }{
2286 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2287 }
2288 {
2289 delete _result;
2290 }
2291 return _resultobj;
2292 }
2293
2294 #define wxComboBox_Number(_swigobj) (_swigobj->Number())
2295 static PyObject *_wrap_wxComboBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) {
2296 PyObject * _resultobj;
2297 int _result;
2298 wxComboBox * _arg0;
2299 PyObject * _argo0 = 0;
2300 char *_kwnames[] = { "self", NULL };
2301
2302 self = self;
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Number",_kwnames,&_argo0))
2304 return NULL;
2305 if (_argo0) {
2306 if (_argo0 == Py_None) { _arg0 = NULL; }
2307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Number. Expected _wxComboBox_p.");
2309 return NULL;
2310 }
2311 }
2312 {
2313 wxPy_BEGIN_ALLOW_THREADS;
2314 _result = (int )wxComboBox_Number(_arg0);
2315
2316 wxPy_END_ALLOW_THREADS;
2317 if (PyErr_Occurred()) return NULL;
2318 } _resultobj = Py_BuildValue("i",_result);
2319 return _resultobj;
2320 }
2321
2322 #define wxComboBox_Paste(_swigobj) (_swigobj->Paste())
2323 static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
2324 PyObject * _resultobj;
2325 wxComboBox * _arg0;
2326 PyObject * _argo0 = 0;
2327 char *_kwnames[] = { "self", NULL };
2328
2329 self = self;
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0))
2331 return NULL;
2332 if (_argo0) {
2333 if (_argo0 == Py_None) { _arg0 = NULL; }
2334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p.");
2336 return NULL;
2337 }
2338 }
2339 {
2340 wxPy_BEGIN_ALLOW_THREADS;
2341 wxComboBox_Paste(_arg0);
2342
2343 wxPy_END_ALLOW_THREADS;
2344 if (PyErr_Occurred()) return NULL;
2345 } Py_INCREF(Py_None);
2346 _resultobj = Py_None;
2347 return _resultobj;
2348 }
2349
2350 #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
2351 static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2352 PyObject * _resultobj;
2353 wxComboBox * _arg0;
2354 long _arg1;
2355 long _arg2;
2356 wxString * _arg3;
2357 PyObject * _argo0 = 0;
2358 PyObject * _obj3 = 0;
2359 char *_kwnames[] = { "self","from","to","text", NULL };
2360
2361 self = self;
2362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
2363 return NULL;
2364 if (_argo0) {
2365 if (_argo0 == Py_None) { _arg0 = NULL; }
2366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p.");
2368 return NULL;
2369 }
2370 }
2371 {
2372 #if PYTHON_API_VERSION >= 1009
2373 char* tmpPtr; int tmpSize;
2374 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
2375 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2376 return NULL;
2377 }
2378 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
2379 return NULL;
2380 _arg3 = new wxString(tmpPtr, tmpSize);
2381 #else
2382 if (!PyString_Check(_obj3)) {
2383 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2384 return NULL;
2385 }
2386 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
2387 #endif
2388 }
2389 {
2390 wxPy_BEGIN_ALLOW_THREADS;
2391 wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3);
2392
2393 wxPy_END_ALLOW_THREADS;
2394 if (PyErr_Occurred()) return NULL;
2395 } Py_INCREF(Py_None);
2396 _resultobj = Py_None;
2397 {
2398 if (_obj3)
2399 delete _arg3;
2400 }
2401 return _resultobj;
2402 }
2403
2404 #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
2405 static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
2406 PyObject * _resultobj;
2407 wxComboBox * _arg0;
2408 long _arg1;
2409 long _arg2;
2410 PyObject * _argo0 = 0;
2411 char *_kwnames[] = { "self","from","to", NULL };
2412
2413 self = self;
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
2415 return NULL;
2416 if (_argo0) {
2417 if (_argo0 == Py_None) { _arg0 = NULL; }
2418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p.");
2420 return NULL;
2421 }
2422 }
2423 {
2424 wxPy_BEGIN_ALLOW_THREADS;
2425 wxComboBox_Remove(_arg0,_arg1,_arg2);
2426
2427 wxPy_END_ALLOW_THREADS;
2428 if (PyErr_Occurred()) return NULL;
2429 } Py_INCREF(Py_None);
2430 _resultobj = Py_None;
2431 return _resultobj;
2432 }
2433
2434 #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
2435 static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject * _resultobj;
2437 wxComboBox * _arg0;
2438 long _arg1;
2439 PyObject * _argo0 = 0;
2440 char *_kwnames[] = { "self","pos", NULL };
2441
2442 self = self;
2443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
2444 return NULL;
2445 if (_argo0) {
2446 if (_argo0 == Py_None) { _arg0 = NULL; }
2447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p.");
2449 return NULL;
2450 }
2451 }
2452 {
2453 wxPy_BEGIN_ALLOW_THREADS;
2454 wxComboBox_SetInsertionPoint(_arg0,_arg1);
2455
2456 wxPy_END_ALLOW_THREADS;
2457 if (PyErr_Occurred()) return NULL;
2458 } Py_INCREF(Py_None);
2459 _resultobj = Py_None;
2460 return _resultobj;
2461 }
2462
2463 #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
2464 static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
2465 PyObject * _resultobj;
2466 wxComboBox * _arg0;
2467 PyObject * _argo0 = 0;
2468 char *_kwnames[] = { "self", NULL };
2469
2470 self = self;
2471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0))
2472 return NULL;
2473 if (_argo0) {
2474 if (_argo0 == Py_None) { _arg0 = NULL; }
2475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p.");
2477 return NULL;
2478 }
2479 }
2480 {
2481 wxPy_BEGIN_ALLOW_THREADS;
2482 wxComboBox_SetInsertionPointEnd(_arg0);
2483
2484 wxPy_END_ALLOW_THREADS;
2485 if (PyErr_Occurred()) return NULL;
2486 } Py_INCREF(Py_None);
2487 _resultobj = Py_None;
2488 return _resultobj;
2489 }
2490
2491 #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
2492 static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2493 PyObject * _resultobj;
2494 wxComboBox * _arg0;
2495 int _arg1;
2496 PyObject * _argo0 = 0;
2497 char *_kwnames[] = { "self","n", NULL };
2498
2499 self = self;
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1))
2501 return NULL;
2502 if (_argo0) {
2503 if (_argo0 == Py_None) { _arg0 = NULL; }
2504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p.");
2506 return NULL;
2507 }
2508 }
2509 {
2510 wxPy_BEGIN_ALLOW_THREADS;
2511 wxComboBox_SetSelection(_arg0,_arg1);
2512
2513 wxPy_END_ALLOW_THREADS;
2514 if (PyErr_Occurred()) return NULL;
2515 } Py_INCREF(Py_None);
2516 _resultobj = Py_None;
2517 return _resultobj;
2518 }
2519
2520 #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
2521 static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
2522 PyObject * _resultobj;
2523 wxComboBox * _arg0;
2524 long _arg1;
2525 long _arg2;
2526 PyObject * _argo0 = 0;
2527 char *_kwnames[] = { "self","from","to", NULL };
2528
2529 self = self;
2530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2))
2531 return NULL;
2532 if (_argo0) {
2533 if (_argo0 == Py_None) { _arg0 = NULL; }
2534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p.");
2536 return NULL;
2537 }
2538 }
2539 {
2540 wxPy_BEGIN_ALLOW_THREADS;
2541 wxComboBox_SetMark(_arg0,_arg1,_arg2);
2542
2543 wxPy_END_ALLOW_THREADS;
2544 if (PyErr_Occurred()) return NULL;
2545 } Py_INCREF(Py_None);
2546 _resultobj = Py_None;
2547 return _resultobj;
2548 }
2549
2550 #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
2551 static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2552 PyObject * _resultobj;
2553 wxComboBox * _arg0;
2554 wxString * _arg1;
2555 PyObject * _argo0 = 0;
2556 PyObject * _obj1 = 0;
2557 char *_kwnames[] = { "self","text", NULL };
2558
2559 self = self;
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1))
2561 return NULL;
2562 if (_argo0) {
2563 if (_argo0 == Py_None) { _arg0 = NULL; }
2564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p.");
2566 return NULL;
2567 }
2568 }
2569 {
2570 #if PYTHON_API_VERSION >= 1009
2571 char* tmpPtr; int tmpSize;
2572 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2573 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2574 return NULL;
2575 }
2576 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2577 return NULL;
2578 _arg1 = new wxString(tmpPtr, tmpSize);
2579 #else
2580 if (!PyString_Check(_obj1)) {
2581 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2582 return NULL;
2583 }
2584 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2585 #endif
2586 }
2587 {
2588 wxPy_BEGIN_ALLOW_THREADS;
2589 wxComboBox_SetValue(_arg0,*_arg1);
2590
2591 wxPy_END_ALLOW_THREADS;
2592 if (PyErr_Occurred()) return NULL;
2593 } Py_INCREF(Py_None);
2594 _resultobj = Py_None;
2595 {
2596 if (_obj1)
2597 delete _arg1;
2598 }
2599 return _resultobj;
2600 }
2601
2602 static void *SwigwxGaugeTowxControl(void *ptr) {
2603 wxGauge *src;
2604 wxControl *dest;
2605 src = (wxGauge *) ptr;
2606 dest = (wxControl *) src;
2607 return (void *) dest;
2608 }
2609
2610 static void *SwigwxGaugeTowxWindow(void *ptr) {
2611 wxGauge *src;
2612 wxWindow *dest;
2613 src = (wxGauge *) ptr;
2614 dest = (wxWindow *) src;
2615 return (void *) dest;
2616 }
2617
2618 static void *SwigwxGaugeTowxEvtHandler(void *ptr) {
2619 wxGauge *src;
2620 wxEvtHandler *dest;
2621 src = (wxGauge *) ptr;
2622 dest = (wxEvtHandler *) src;
2623 return (void *) dest;
2624 }
2625
2626 static void *SwigwxGaugeTowxObject(void *ptr) {
2627 wxGauge *src;
2628 wxObject *dest;
2629 src = (wxGauge *) ptr;
2630 dest = (wxObject *) src;
2631 return (void *) dest;
2632 }
2633
2634 #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
2635 static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject * _resultobj;
2637 wxGauge * _result;
2638 wxWindow * _arg0;
2639 wxWindowID _arg1;
2640 int _arg2;
2641 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2642 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2643 long _arg5 = (long ) wxGA_HORIZONTAL;
2644 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
2645 char * _arg7 = (char *) "gauge";
2646 PyObject * _argo0 = 0;
2647 wxPoint temp;
2648 PyObject * _obj3 = 0;
2649 wxSize temp0;
2650 PyObject * _obj4 = 0;
2651 PyObject * _argo6 = 0;
2652 char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL };
2653 char _ptemp[128];
2654
2655 self = self;
2656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
2657 return NULL;
2658 if (_argo0) {
2659 if (_argo0 == Py_None) { _arg0 = NULL; }
2660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p.");
2662 return NULL;
2663 }
2664 }
2665 if (_obj3)
2666 {
2667 _arg3 = &temp;
2668 if (! wxPoint_helper(_obj3, &_arg3))
2669 return NULL;
2670 }
2671 if (_obj4)
2672 {
2673 _arg4 = &temp0;
2674 if (! wxSize_helper(_obj4, &_arg4))
2675 return NULL;
2676 }
2677 if (_argo6) {
2678 if (_argo6 == Py_None) { _arg6 = NULL; }
2679 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
2680 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p.");
2681 return NULL;
2682 }
2683 }
2684 {
2685 wxPy_BEGIN_ALLOW_THREADS;
2686 _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
2687
2688 wxPy_END_ALLOW_THREADS;
2689 if (PyErr_Occurred()) return NULL;
2690 } if (_result) {
2691 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
2692 _resultobj = Py_BuildValue("s",_ptemp);
2693 } else {
2694 Py_INCREF(Py_None);
2695 _resultobj = Py_None;
2696 }
2697 return _resultobj;
2698 }
2699
2700 #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace())
2701 static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
2702 PyObject * _resultobj;
2703 int _result;
2704 wxGauge * _arg0;
2705 PyObject * _argo0 = 0;
2706 char *_kwnames[] = { "self", NULL };
2707
2708 self = self;
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0))
2710 return NULL;
2711 if (_argo0) {
2712 if (_argo0 == Py_None) { _arg0 = NULL; }
2713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p.");
2715 return NULL;
2716 }
2717 }
2718 {
2719 wxPy_BEGIN_ALLOW_THREADS;
2720 _result = (int )wxGauge_GetBezelFace(_arg0);
2721
2722 wxPy_END_ALLOW_THREADS;
2723 if (PyErr_Occurred()) return NULL;
2724 } _resultobj = Py_BuildValue("i",_result);
2725 return _resultobj;
2726 }
2727
2728 #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange())
2729 static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 int _result;
2732 wxGauge * _arg0;
2733 PyObject * _argo0 = 0;
2734 char *_kwnames[] = { "self", NULL };
2735
2736 self = self;
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0))
2738 return NULL;
2739 if (_argo0) {
2740 if (_argo0 == Py_None) { _arg0 = NULL; }
2741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p.");
2743 return NULL;
2744 }
2745 }
2746 {
2747 wxPy_BEGIN_ALLOW_THREADS;
2748 _result = (int )wxGauge_GetRange(_arg0);
2749
2750 wxPy_END_ALLOW_THREADS;
2751 if (PyErr_Occurred()) return NULL;
2752 } _resultobj = Py_BuildValue("i",_result);
2753 return _resultobj;
2754 }
2755
2756 #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth())
2757 static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2758 PyObject * _resultobj;
2759 int _result;
2760 wxGauge * _arg0;
2761 PyObject * _argo0 = 0;
2762 char *_kwnames[] = { "self", NULL };
2763
2764 self = self;
2765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0))
2766 return NULL;
2767 if (_argo0) {
2768 if (_argo0 == Py_None) { _arg0 = NULL; }
2769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p.");
2771 return NULL;
2772 }
2773 }
2774 {
2775 wxPy_BEGIN_ALLOW_THREADS;
2776 _result = (int )wxGauge_GetShadowWidth(_arg0);
2777
2778 wxPy_END_ALLOW_THREADS;
2779 if (PyErr_Occurred()) return NULL;
2780 } _resultobj = Py_BuildValue("i",_result);
2781 return _resultobj;
2782 }
2783
2784 #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue())
2785 static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2786 PyObject * _resultobj;
2787 int _result;
2788 wxGauge * _arg0;
2789 PyObject * _argo0 = 0;
2790 char *_kwnames[] = { "self", NULL };
2791
2792 self = self;
2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0))
2794 return NULL;
2795 if (_argo0) {
2796 if (_argo0 == Py_None) { _arg0 = NULL; }
2797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p.");
2799 return NULL;
2800 }
2801 }
2802 {
2803 wxPy_BEGIN_ALLOW_THREADS;
2804 _result = (int )wxGauge_GetValue(_arg0);
2805
2806 wxPy_END_ALLOW_THREADS;
2807 if (PyErr_Occurred()) return NULL;
2808 } _resultobj = Py_BuildValue("i",_result);
2809 return _resultobj;
2810 }
2811
2812 #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0))
2813 static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
2814 PyObject * _resultobj;
2815 wxGauge * _arg0;
2816 int _arg1;
2817 PyObject * _argo0 = 0;
2818 char *_kwnames[] = { "self","width", NULL };
2819
2820 self = self;
2821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1))
2822 return NULL;
2823 if (_argo0) {
2824 if (_argo0 == Py_None) { _arg0 = NULL; }
2825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p.");
2827 return NULL;
2828 }
2829 }
2830 {
2831 wxPy_BEGIN_ALLOW_THREADS;
2832 wxGauge_SetBezelFace(_arg0,_arg1);
2833
2834 wxPy_END_ALLOW_THREADS;
2835 if (PyErr_Occurred()) return NULL;
2836 } Py_INCREF(Py_None);
2837 _resultobj = Py_None;
2838 return _resultobj;
2839 }
2840
2841 #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0))
2842 static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2843 PyObject * _resultobj;
2844 wxGauge * _arg0;
2845 int _arg1;
2846 PyObject * _argo0 = 0;
2847 char *_kwnames[] = { "self","range", NULL };
2848
2849 self = self;
2850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1))
2851 return NULL;
2852 if (_argo0) {
2853 if (_argo0 == Py_None) { _arg0 = NULL; }
2854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p.");
2856 return NULL;
2857 }
2858 }
2859 {
2860 wxPy_BEGIN_ALLOW_THREADS;
2861 wxGauge_SetRange(_arg0,_arg1);
2862
2863 wxPy_END_ALLOW_THREADS;
2864 if (PyErr_Occurred()) return NULL;
2865 } Py_INCREF(Py_None);
2866 _resultobj = Py_None;
2867 return _resultobj;
2868 }
2869
2870 #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0))
2871 static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject * _resultobj;
2873 wxGauge * _arg0;
2874 int _arg1;
2875 PyObject * _argo0 = 0;
2876 char *_kwnames[] = { "self","width", NULL };
2877
2878 self = self;
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1))
2880 return NULL;
2881 if (_argo0) {
2882 if (_argo0 == Py_None) { _arg0 = NULL; }
2883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p.");
2885 return NULL;
2886 }
2887 }
2888 {
2889 wxPy_BEGIN_ALLOW_THREADS;
2890 wxGauge_SetShadowWidth(_arg0,_arg1);
2891
2892 wxPy_END_ALLOW_THREADS;
2893 if (PyErr_Occurred()) return NULL;
2894 } Py_INCREF(Py_None);
2895 _resultobj = Py_None;
2896 return _resultobj;
2897 }
2898
2899 #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
2900 static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject * _resultobj;
2902 wxGauge * _arg0;
2903 int _arg1;
2904 PyObject * _argo0 = 0;
2905 char *_kwnames[] = { "self","pos", NULL };
2906
2907 self = self;
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1))
2909 return NULL;
2910 if (_argo0) {
2911 if (_argo0 == Py_None) { _arg0 = NULL; }
2912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
2913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p.");
2914 return NULL;
2915 }
2916 }
2917 {
2918 wxPy_BEGIN_ALLOW_THREADS;
2919 wxGauge_SetValue(_arg0,_arg1);
2920
2921 wxPy_END_ALLOW_THREADS;
2922 if (PyErr_Occurred()) return NULL;
2923 } Py_INCREF(Py_None);
2924 _resultobj = Py_None;
2925 return _resultobj;
2926 }
2927
2928 static void *SwigwxStaticBoxTowxControl(void *ptr) {
2929 wxStaticBox *src;
2930 wxControl *dest;
2931 src = (wxStaticBox *) ptr;
2932 dest = (wxControl *) src;
2933 return (void *) dest;
2934 }
2935
2936 static void *SwigwxStaticBoxTowxWindow(void *ptr) {
2937 wxStaticBox *src;
2938 wxWindow *dest;
2939 src = (wxStaticBox *) ptr;
2940 dest = (wxWindow *) src;
2941 return (void *) dest;
2942 }
2943
2944 static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) {
2945 wxStaticBox *src;
2946 wxEvtHandler *dest;
2947 src = (wxStaticBox *) ptr;
2948 dest = (wxEvtHandler *) src;
2949 return (void *) dest;
2950 }
2951
2952 static void *SwigwxStaticBoxTowxObject(void *ptr) {
2953 wxStaticBox *src;
2954 wxObject *dest;
2955 src = (wxStaticBox *) ptr;
2956 dest = (wxObject *) src;
2957 return (void *) dest;
2958 }
2959
2960 #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2961 static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject * _resultobj;
2963 wxStaticBox * _result;
2964 wxWindow * _arg0;
2965 wxWindowID _arg1;
2966 wxString * _arg2;
2967 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2968 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2969 long _arg5 = (long ) 0;
2970 char * _arg6 = (char *) "staticBox";
2971 PyObject * _argo0 = 0;
2972 PyObject * _obj2 = 0;
2973 wxPoint temp;
2974 PyObject * _obj3 = 0;
2975 wxSize temp0;
2976 PyObject * _obj4 = 0;
2977 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
2978 char _ptemp[128];
2979
2980 self = self;
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
2982 return NULL;
2983 if (_argo0) {
2984 if (_argo0 == Py_None) { _arg0 = NULL; }
2985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p.");
2987 return NULL;
2988 }
2989 }
2990 {
2991 #if PYTHON_API_VERSION >= 1009
2992 char* tmpPtr; int tmpSize;
2993 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2994 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2995 return NULL;
2996 }
2997 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2998 return NULL;
2999 _arg2 = new wxString(tmpPtr, tmpSize);
3000 #else
3001 if (!PyString_Check(_obj2)) {
3002 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3003 return NULL;
3004 }
3005 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3006 #endif
3007 }
3008 if (_obj3)
3009 {
3010 _arg3 = &temp;
3011 if (! wxPoint_helper(_obj3, &_arg3))
3012 return NULL;
3013 }
3014 if (_obj4)
3015 {
3016 _arg4 = &temp0;
3017 if (! wxSize_helper(_obj4, &_arg4))
3018 return NULL;
3019 }
3020 {
3021 wxPy_BEGIN_ALLOW_THREADS;
3022 _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
3023
3024 wxPy_END_ALLOW_THREADS;
3025 if (PyErr_Occurred()) return NULL;
3026 } if (_result) {
3027 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
3028 _resultobj = Py_BuildValue("s",_ptemp);
3029 } else {
3030 Py_INCREF(Py_None);
3031 _resultobj = Py_None;
3032 }
3033 {
3034 if (_obj2)
3035 delete _arg2;
3036 }
3037 return _resultobj;
3038 }
3039
3040 static void *SwigwxStaticLineTowxControl(void *ptr) {
3041 wxStaticLine *src;
3042 wxControl *dest;
3043 src = (wxStaticLine *) ptr;
3044 dest = (wxControl *) src;
3045 return (void *) dest;
3046 }
3047
3048 static void *SwigwxStaticLineTowxWindow(void *ptr) {
3049 wxStaticLine *src;
3050 wxWindow *dest;
3051 src = (wxStaticLine *) ptr;
3052 dest = (wxWindow *) src;
3053 return (void *) dest;
3054 }
3055
3056 static void *SwigwxStaticLineTowxEvtHandler(void *ptr) {
3057 wxStaticLine *src;
3058 wxEvtHandler *dest;
3059 src = (wxStaticLine *) ptr;
3060 dest = (wxEvtHandler *) src;
3061 return (void *) dest;
3062 }
3063
3064 static void *SwigwxStaticLineTowxObject(void *ptr) {
3065 wxStaticLine *src;
3066 wxObject *dest;
3067 src = (wxStaticLine *) ptr;
3068 dest = (wxObject *) src;
3069 return (void *) dest;
3070 }
3071
3072 #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3073 static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject * _resultobj;
3075 wxStaticLine * _result;
3076 wxWindow * _arg0;
3077 wxWindowID _arg1;
3078 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3079 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3080 long _arg4 = (long ) wxLI_HORIZONTAL;
3081 char * _arg5 = (char *) "staticLine";
3082 PyObject * _argo0 = 0;
3083 wxPoint temp;
3084 PyObject * _obj2 = 0;
3085 wxSize temp0;
3086 PyObject * _obj3 = 0;
3087 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3088 char _ptemp[128];
3089
3090 self = self;
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3092 return NULL;
3093 if (_argo0) {
3094 if (_argo0 == Py_None) { _arg0 = NULL; }
3095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p.");
3097 return NULL;
3098 }
3099 }
3100 if (_obj2)
3101 {
3102 _arg2 = &temp;
3103 if (! wxPoint_helper(_obj2, &_arg2))
3104 return NULL;
3105 }
3106 if (_obj3)
3107 {
3108 _arg3 = &temp0;
3109 if (! wxSize_helper(_obj3, &_arg3))
3110 return NULL;
3111 }
3112 {
3113 wxPy_BEGIN_ALLOW_THREADS;
3114 _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3115
3116 wxPy_END_ALLOW_THREADS;
3117 if (PyErr_Occurred()) return NULL;
3118 } if (_result) {
3119 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
3120 _resultobj = Py_BuildValue("s",_ptemp);
3121 } else {
3122 Py_INCREF(Py_None);
3123 _resultobj = Py_None;
3124 }
3125 return _resultobj;
3126 }
3127
3128 static void *SwigwxStaticTextTowxControl(void *ptr) {
3129 wxStaticText *src;
3130 wxControl *dest;
3131 src = (wxStaticText *) ptr;
3132 dest = (wxControl *) src;
3133 return (void *) dest;
3134 }
3135
3136 static void *SwigwxStaticTextTowxWindow(void *ptr) {
3137 wxStaticText *src;
3138 wxWindow *dest;
3139 src = (wxStaticText *) ptr;
3140 dest = (wxWindow *) src;
3141 return (void *) dest;
3142 }
3143
3144 static void *SwigwxStaticTextTowxEvtHandler(void *ptr) {
3145 wxStaticText *src;
3146 wxEvtHandler *dest;
3147 src = (wxStaticText *) ptr;
3148 dest = (wxEvtHandler *) src;
3149 return (void *) dest;
3150 }
3151
3152 static void *SwigwxStaticTextTowxObject(void *ptr) {
3153 wxStaticText *src;
3154 wxObject *dest;
3155 src = (wxStaticText *) ptr;
3156 dest = (wxObject *) src;
3157 return (void *) dest;
3158 }
3159
3160 #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3161 static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject * _resultobj;
3163 wxStaticText * _result;
3164 wxWindow * _arg0;
3165 wxWindowID _arg1;
3166 wxString * _arg2;
3167 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3168 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3169 long _arg5 = (long ) 0;
3170 char * _arg6 = (char *) "staticText";
3171 PyObject * _argo0 = 0;
3172 PyObject * _obj2 = 0;
3173 wxPoint temp;
3174 PyObject * _obj3 = 0;
3175 wxSize temp0;
3176 PyObject * _obj4 = 0;
3177 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
3178 char _ptemp[128];
3179
3180 self = self;
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
3182 return NULL;
3183 if (_argo0) {
3184 if (_argo0 == Py_None) { _arg0 = NULL; }
3185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p.");
3187 return NULL;
3188 }
3189 }
3190 {
3191 #if PYTHON_API_VERSION >= 1009
3192 char* tmpPtr; int tmpSize;
3193 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3195 return NULL;
3196 }
3197 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3198 return NULL;
3199 _arg2 = new wxString(tmpPtr, tmpSize);
3200 #else
3201 if (!PyString_Check(_obj2)) {
3202 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3203 return NULL;
3204 }
3205 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3206 #endif
3207 }
3208 if (_obj3)
3209 {
3210 _arg3 = &temp;
3211 if (! wxPoint_helper(_obj3, &_arg3))
3212 return NULL;
3213 }
3214 if (_obj4)
3215 {
3216 _arg4 = &temp0;
3217 if (! wxSize_helper(_obj4, &_arg4))
3218 return NULL;
3219 }
3220 {
3221 wxPy_BEGIN_ALLOW_THREADS;
3222 _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
3223
3224 wxPy_END_ALLOW_THREADS;
3225 if (PyErr_Occurred()) return NULL;
3226 } if (_result) {
3227 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
3228 _resultobj = Py_BuildValue("s",_ptemp);
3229 } else {
3230 Py_INCREF(Py_None);
3231 _resultobj = Py_None;
3232 }
3233 {
3234 if (_obj2)
3235 delete _arg2;
3236 }
3237 return _resultobj;
3238 }
3239
3240 #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel())
3241 static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject * _resultobj;
3243 wxString * _result;
3244 wxStaticText * _arg0;
3245 PyObject * _argo0 = 0;
3246 char *_kwnames[] = { "self", NULL };
3247
3248 self = self;
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0))
3250 return NULL;
3251 if (_argo0) {
3252 if (_argo0 == Py_None) { _arg0 = NULL; }
3253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
3254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p.");
3255 return NULL;
3256 }
3257 }
3258 {
3259 wxPy_BEGIN_ALLOW_THREADS;
3260 _result = new wxString (wxStaticText_GetLabel(_arg0));
3261
3262 wxPy_END_ALLOW_THREADS;
3263 if (PyErr_Occurred()) return NULL;
3264 }{
3265 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3266 }
3267 {
3268 delete _result;
3269 }
3270 return _resultobj;
3271 }
3272
3273 #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
3274 static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
3275 PyObject * _resultobj;
3276 wxStaticText * _arg0;
3277 wxString * _arg1;
3278 PyObject * _argo0 = 0;
3279 PyObject * _obj1 = 0;
3280 char *_kwnames[] = { "self","label", NULL };
3281
3282 self = self;
3283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1))
3284 return NULL;
3285 if (_argo0) {
3286 if (_argo0 == Py_None) { _arg0 = NULL; }
3287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
3288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p.");
3289 return NULL;
3290 }
3291 }
3292 {
3293 #if PYTHON_API_VERSION >= 1009
3294 char* tmpPtr; int tmpSize;
3295 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3296 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3297 return NULL;
3298 }
3299 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3300 return NULL;
3301 _arg1 = new wxString(tmpPtr, tmpSize);
3302 #else
3303 if (!PyString_Check(_obj1)) {
3304 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3305 return NULL;
3306 }
3307 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3308 #endif
3309 }
3310 {
3311 wxPy_BEGIN_ALLOW_THREADS;
3312 wxStaticText_SetLabel(_arg0,*_arg1);
3313
3314 wxPy_END_ALLOW_THREADS;
3315 if (PyErr_Occurred()) return NULL;
3316 } Py_INCREF(Py_None);
3317 _resultobj = Py_None;
3318 {
3319 if (_obj1)
3320 delete _arg1;
3321 }
3322 return _resultobj;
3323 }
3324
3325 static void *SwigwxListBoxTowxControl(void *ptr) {
3326 wxListBox *src;
3327 wxControl *dest;
3328 src = (wxListBox *) ptr;
3329 dest = (wxControl *) src;
3330 return (void *) dest;
3331 }
3332
3333 static void *SwigwxListBoxTowxWindow(void *ptr) {
3334 wxListBox *src;
3335 wxWindow *dest;
3336 src = (wxListBox *) ptr;
3337 dest = (wxWindow *) src;
3338 return (void *) dest;
3339 }
3340
3341 static void *SwigwxListBoxTowxEvtHandler(void *ptr) {
3342 wxListBox *src;
3343 wxEvtHandler *dest;
3344 src = (wxListBox *) ptr;
3345 dest = (wxEvtHandler *) src;
3346 return (void *) dest;
3347 }
3348
3349 static void *SwigwxListBoxTowxObject(void *ptr) {
3350 wxListBox *src;
3351 wxObject *dest;
3352 src = (wxListBox *) ptr;
3353 dest = (wxObject *) src;
3354 return (void *) dest;
3355 }
3356
3357 #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
3358 static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject * _resultobj;
3360 wxListBox * _result;
3361 wxWindow * _arg0;
3362 wxWindowID _arg1;
3363 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3364 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3365 int _arg4;
3366 wxString * _arg5 = (wxString *) NULL;
3367 long _arg6 = (long ) 0;
3368 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
3369 char * _arg8 = (char *) "listBox";
3370 PyObject * _argo0 = 0;
3371 wxPoint temp;
3372 PyObject * _obj2 = 0;
3373 wxSize temp0;
3374 PyObject * _obj3 = 0;
3375 PyObject * _obj5 = 0;
3376 PyObject * _argo7 = 0;
3377 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
3378 char _ptemp[128];
3379
3380 self = self;
3381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
3382 return NULL;
3383 if (_argo0) {
3384 if (_argo0 == Py_None) { _arg0 = NULL; }
3385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p.");
3387 return NULL;
3388 }
3389 }
3390 if (_obj2)
3391 {
3392 _arg2 = &temp;
3393 if (! wxPoint_helper(_obj2, &_arg2))
3394 return NULL;
3395 }
3396 if (_obj3)
3397 {
3398 _arg3 = &temp0;
3399 if (! wxSize_helper(_obj3, &_arg3))
3400 return NULL;
3401 }
3402 if (_obj5)
3403 {
3404 _arg5 = wxString_LIST_helper(_obj5);
3405 if (_arg5 == NULL) {
3406 return NULL;
3407 }
3408 }
3409 if (_argo7) {
3410 if (_argo7 == Py_None) { _arg7 = NULL; }
3411 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
3412 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p.");
3413 return NULL;
3414 }
3415 }
3416 {
3417 if (_obj5) {
3418 _arg4 = PyList_Size(_obj5);
3419 }
3420 else {
3421 _arg4 = 0;
3422 }
3423 }
3424 {
3425 wxPy_BEGIN_ALLOW_THREADS;
3426 _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
3427
3428 wxPy_END_ALLOW_THREADS;
3429 if (PyErr_Occurred()) return NULL;
3430 } if (_result) {
3431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
3432 _resultobj = Py_BuildValue("s",_ptemp);
3433 } else {
3434 Py_INCREF(Py_None);
3435 _resultobj = Py_None;
3436 }
3437 {
3438 delete [] _arg5;
3439 }
3440 return _resultobj;
3441 }
3442
3443 #define wxListBox_Append(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
3444 static PyObject *_wrap_wxListBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
3445 PyObject * _resultobj;
3446 wxListBox * _arg0;
3447 wxString * _arg1;
3448 PyObject * _argo0 = 0;
3449 PyObject * _obj1 = 0;
3450 char *_kwnames[] = { "self","item", NULL };
3451
3452 self = self;
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Append",_kwnames,&_argo0,&_obj1))
3454 return NULL;
3455 if (_argo0) {
3456 if (_argo0 == Py_None) { _arg0 = NULL; }
3457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Append. Expected _wxListBox_p.");
3459 return NULL;
3460 }
3461 }
3462 {
3463 #if PYTHON_API_VERSION >= 1009
3464 char* tmpPtr; int tmpSize;
3465 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3466 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3467 return NULL;
3468 }
3469 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3470 return NULL;
3471 _arg1 = new wxString(tmpPtr, tmpSize);
3472 #else
3473 if (!PyString_Check(_obj1)) {
3474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3475 return NULL;
3476 }
3477 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3478 #endif
3479 }
3480 {
3481 wxPy_BEGIN_ALLOW_THREADS;
3482 wxListBox_Append(_arg0,*_arg1);
3483
3484 wxPy_END_ALLOW_THREADS;
3485 if (PyErr_Occurred()) return NULL;
3486 } Py_INCREF(Py_None);
3487 _resultobj = Py_None;
3488 {
3489 if (_obj1)
3490 delete _arg1;
3491 }
3492 return _resultobj;
3493 }
3494
3495 #define wxListBox_Clear(_swigobj) (_swigobj->Clear())
3496 static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject * _resultobj;
3498 wxListBox * _arg0;
3499 PyObject * _argo0 = 0;
3500 char *_kwnames[] = { "self", NULL };
3501
3502 self = self;
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0))
3504 return NULL;
3505 if (_argo0) {
3506 if (_argo0 == Py_None) { _arg0 = NULL; }
3507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p.");
3509 return NULL;
3510 }
3511 }
3512 {
3513 wxPy_BEGIN_ALLOW_THREADS;
3514 wxListBox_Clear(_arg0);
3515
3516 wxPy_END_ALLOW_THREADS;
3517 if (PyErr_Occurred()) return NULL;
3518 } Py_INCREF(Py_None);
3519 _resultobj = Py_None;
3520 return _resultobj;
3521 }
3522
3523 #define wxListBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
3524 static PyObject *_wrap_wxListBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
3525 PyObject * _resultobj;
3526 wxListBox * _arg0;
3527 int _arg1;
3528 PyObject * _argo0 = 0;
3529 char *_kwnames[] = { "self","n", NULL };
3530
3531 self = self;
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Delete",_kwnames,&_argo0,&_arg1))
3533 return NULL;
3534 if (_argo0) {
3535 if (_argo0 == Py_None) { _arg0 = NULL; }
3536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Delete. Expected _wxListBox_p.");
3538 return NULL;
3539 }
3540 }
3541 {
3542 wxPy_BEGIN_ALLOW_THREADS;
3543 wxListBox_Delete(_arg0,_arg1);
3544
3545 wxPy_END_ALLOW_THREADS;
3546 if (PyErr_Occurred()) return NULL;
3547 } Py_INCREF(Py_None);
3548 _resultobj = Py_None;
3549 return _resultobj;
3550 }
3551
3552 #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0))
3553 static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
3554 PyObject * _resultobj;
3555 wxListBox * _arg0;
3556 int _arg1;
3557 PyObject * _argo0 = 0;
3558 char *_kwnames[] = { "self","n", NULL };
3559
3560 self = self;
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1))
3562 return NULL;
3563 if (_argo0) {
3564 if (_argo0 == Py_None) { _arg0 = NULL; }
3565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p.");
3567 return NULL;
3568 }
3569 }
3570 {
3571 wxPy_BEGIN_ALLOW_THREADS;
3572 wxListBox_Deselect(_arg0,_arg1);
3573
3574 wxPy_END_ALLOW_THREADS;
3575 if (PyErr_Occurred()) return NULL;
3576 } Py_INCREF(Py_None);
3577 _resultobj = Py_None;
3578 return _resultobj;
3579 }
3580
3581 #define wxListBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
3582 static PyObject *_wrap_wxListBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3583 PyObject * _resultobj;
3584 int _result;
3585 wxListBox * _arg0;
3586 wxString * _arg1;
3587 PyObject * _argo0 = 0;
3588 PyObject * _obj1 = 0;
3589 char *_kwnames[] = { "self","string", NULL };
3590
3591 self = self;
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_FindString",_kwnames,&_argo0,&_obj1))
3593 return NULL;
3594 if (_argo0) {
3595 if (_argo0 == Py_None) { _arg0 = NULL; }
3596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_FindString. Expected _wxListBox_p.");
3598 return NULL;
3599 }
3600 }
3601 {
3602 #if PYTHON_API_VERSION >= 1009
3603 char* tmpPtr; int tmpSize;
3604 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3605 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3606 return NULL;
3607 }
3608 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3609 return NULL;
3610 _arg1 = new wxString(tmpPtr, tmpSize);
3611 #else
3612 if (!PyString_Check(_obj1)) {
3613 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3614 return NULL;
3615 }
3616 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3617 #endif
3618 }
3619 {
3620 wxPy_BEGIN_ALLOW_THREADS;
3621 _result = (int )wxListBox_FindString(_arg0,*_arg1);
3622
3623 wxPy_END_ALLOW_THREADS;
3624 if (PyErr_Occurred()) return NULL;
3625 } _resultobj = Py_BuildValue("i",_result);
3626 {
3627 if (_obj1)
3628 delete _arg1;
3629 }
3630 return _resultobj;
3631 }
3632
3633 #define wxListBox_GetSelection(_swigobj) (_swigobj->GetSelection())
3634 static PyObject *_wrap_wxListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject * _resultobj;
3636 int _result;
3637 wxListBox * _arg0;
3638 PyObject * _argo0 = 0;
3639 char *_kwnames[] = { "self", NULL };
3640
3641 self = self;
3642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelection",_kwnames,&_argo0))
3643 return NULL;
3644 if (_argo0) {
3645 if (_argo0 == Py_None) { _arg0 = NULL; }
3646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelection. Expected _wxListBox_p.");
3648 return NULL;
3649 }
3650 }
3651 {
3652 wxPy_BEGIN_ALLOW_THREADS;
3653 _result = (int )wxListBox_GetSelection(_arg0);
3654
3655 wxPy_END_ALLOW_THREADS;
3656 if (PyErr_Occurred()) return NULL;
3657 } _resultobj = Py_BuildValue("i",_result);
3658 return _resultobj;
3659 }
3660
3661 static PyObject * wxListBox_GetSelections(wxListBox *self) {
3662 wxArrayInt lst;
3663 self->GetSelections(lst);
3664 PyObject *tup = PyTuple_New(lst.GetCount());
3665 for(size_t i=0; i<lst.GetCount(); i++) {
3666 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
3667 }
3668 return tup;
3669 }
3670 static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject * _resultobj;
3672 PyObject * _result;
3673 wxListBox * _arg0;
3674 PyObject * _argo0 = 0;
3675 char *_kwnames[] = { "self", NULL };
3676
3677 self = self;
3678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0))
3679 return NULL;
3680 if (_argo0) {
3681 if (_argo0 == Py_None) { _arg0 = NULL; }
3682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p.");
3684 return NULL;
3685 }
3686 }
3687 {
3688 wxPy_BEGIN_ALLOW_THREADS;
3689 _result = (PyObject *)wxListBox_GetSelections(_arg0);
3690
3691 wxPy_END_ALLOW_THREADS;
3692 if (PyErr_Occurred()) return NULL;
3693 }{
3694 _resultobj = _result;
3695 }
3696 return _resultobj;
3697 }
3698
3699 #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
3700 static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
3701 PyObject * _resultobj;
3702 wxListBox * _arg0;
3703 int _arg1;
3704 wxString * _arg2;
3705 int _arg3;
3706 PyObject * _argo0 = 0;
3707 PyObject * _obj2 = 0;
3708 char *_kwnames[] = { "self","choices","pos", NULL };
3709
3710 self = self;
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
3712 return NULL;
3713 if (_argo0) {
3714 if (_argo0 == Py_None) { _arg0 = NULL; }
3715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p.");
3717 return NULL;
3718 }
3719 }
3720 {
3721 _arg2 = wxString_LIST_helper(_obj2);
3722 if (_arg2 == NULL) {
3723 return NULL;
3724 }
3725 }
3726 {
3727 if (_obj2) {
3728 _arg1 = PyList_Size(_obj2);
3729 }
3730 else {
3731 _arg1 = 0;
3732 }
3733 }
3734 {
3735 wxPy_BEGIN_ALLOW_THREADS;
3736 wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
3737
3738 wxPy_END_ALLOW_THREADS;
3739 if (PyErr_Occurred()) return NULL;
3740 } Py_INCREF(Py_None);
3741 _resultobj = Py_None;
3742 {
3743 delete [] _arg2;
3744 }
3745 return _resultobj;
3746 }
3747
3748 #define wxListBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
3749 static PyObject *_wrap_wxListBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject * _resultobj;
3751 wxString * _result;
3752 wxListBox * _arg0;
3753 int _arg1;
3754 PyObject * _argo0 = 0;
3755 char *_kwnames[] = { "self","n", NULL };
3756
3757 self = self;
3758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_GetString",_kwnames,&_argo0,&_arg1))
3759 return NULL;
3760 if (_argo0) {
3761 if (_argo0 == Py_None) { _arg0 = NULL; }
3762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetString. Expected _wxListBox_p.");
3764 return NULL;
3765 }
3766 }
3767 {
3768 wxPy_BEGIN_ALLOW_THREADS;
3769 _result = new wxString (wxListBox_GetString(_arg0,_arg1));
3770
3771 wxPy_END_ALLOW_THREADS;
3772 if (PyErr_Occurred()) return NULL;
3773 }{
3774 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3775 }
3776 {
3777 delete _result;
3778 }
3779 return _resultobj;
3780 }
3781
3782 #define wxListBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
3783 static PyObject *_wrap_wxListBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject * _resultobj;
3785 wxString * _result;
3786 wxListBox * _arg0;
3787 PyObject * _argo0 = 0;
3788 char *_kwnames[] = { "self", NULL };
3789
3790 self = self;
3791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetStringSelection",_kwnames,&_argo0))
3792 return NULL;
3793 if (_argo0) {
3794 if (_argo0 == Py_None) { _arg0 = NULL; }
3795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetStringSelection. Expected _wxListBox_p.");
3797 return NULL;
3798 }
3799 }
3800 {
3801 wxPy_BEGIN_ALLOW_THREADS;
3802 _result = new wxString (wxListBox_GetStringSelection(_arg0));
3803
3804 wxPy_END_ALLOW_THREADS;
3805 if (PyErr_Occurred()) return NULL;
3806 }{
3807 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3808 }
3809 {
3810 delete _result;
3811 }
3812 return _resultobj;
3813 }
3814
3815 #define wxListBox_Number(_swigobj) (_swigobj->Number())
3816 static PyObject *_wrap_wxListBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) {
3817 PyObject * _resultobj;
3818 int _result;
3819 wxListBox * _arg0;
3820 PyObject * _argo0 = 0;
3821 char *_kwnames[] = { "self", NULL };
3822
3823 self = self;
3824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Number",_kwnames,&_argo0))
3825 return NULL;
3826 if (_argo0) {
3827 if (_argo0 == Py_None) { _arg0 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Number. Expected _wxListBox_p.");
3830 return NULL;
3831 }
3832 }
3833 {
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 _result = (int )wxListBox_Number(_arg0);
3836
3837 wxPy_END_ALLOW_THREADS;
3838 if (PyErr_Occurred()) return NULL;
3839 } _resultobj = Py_BuildValue("i",_result);
3840 return _resultobj;
3841 }
3842
3843 #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0))
3844 static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject * _resultobj;
3846 bool _result;
3847 wxListBox * _arg0;
3848 int _arg1;
3849 PyObject * _argo0 = 0;
3850 char *_kwnames[] = { "self","n", NULL };
3851
3852 self = self;
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1))
3854 return NULL;
3855 if (_argo0) {
3856 if (_argo0 == Py_None) { _arg0 = NULL; }
3857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p.");
3859 return NULL;
3860 }
3861 }
3862 {
3863 wxPy_BEGIN_ALLOW_THREADS;
3864 _result = (bool )wxListBox_Selected(_arg0,_arg1);
3865
3866 wxPy_END_ALLOW_THREADS;
3867 if (PyErr_Occurred()) return NULL;
3868 } _resultobj = Py_BuildValue("i",_result);
3869 return _resultobj;
3870 }
3871
3872 #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
3873 static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3874 PyObject * _resultobj;
3875 wxListBox * _arg0;
3876 int _arg1;
3877 wxString * _arg2;
3878 PyObject * _argo0 = 0;
3879 PyObject * _obj2 = 0;
3880 char *_kwnames[] = { "self","choices", NULL };
3881
3882 self = self;
3883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2))
3884 return NULL;
3885 if (_argo0) {
3886 if (_argo0 == Py_None) { _arg0 = NULL; }
3887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p.");
3889 return NULL;
3890 }
3891 }
3892 if (_obj2)
3893 {
3894 _arg2 = wxString_LIST_helper(_obj2);
3895 if (_arg2 == NULL) {
3896 return NULL;
3897 }
3898 }
3899 {
3900 if (_obj2) {
3901 _arg1 = PyList_Size(_obj2);
3902 }
3903 else {
3904 _arg1 = 0;
3905 }
3906 }
3907 {
3908 wxPy_BEGIN_ALLOW_THREADS;
3909 wxListBox_Set(_arg0,_arg1,_arg2);
3910
3911 wxPy_END_ALLOW_THREADS;
3912 if (PyErr_Occurred()) return NULL;
3913 } Py_INCREF(Py_None);
3914 _resultobj = Py_None;
3915 {
3916 delete [] _arg2;
3917 }
3918 return _resultobj;
3919 }
3920
3921 #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
3922 static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3923 PyObject * _resultobj;
3924 wxListBox * _arg0;
3925 int _arg1;
3926 PyObject * _argo0 = 0;
3927 char *_kwnames[] = { "self","n", NULL };
3928
3929 self = self;
3930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1))
3931 return NULL;
3932 if (_argo0) {
3933 if (_argo0 == Py_None) { _arg0 = NULL; }
3934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p.");
3936 return NULL;
3937 }
3938 }
3939 {
3940 wxPy_BEGIN_ALLOW_THREADS;
3941 wxListBox_SetFirstItem(_arg0,_arg1);
3942
3943 wxPy_END_ALLOW_THREADS;
3944 if (PyErr_Occurred()) return NULL;
3945 } Py_INCREF(Py_None);
3946 _resultobj = Py_None;
3947 return _resultobj;
3948 }
3949
3950 #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
3951 static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject * _resultobj;
3953 wxListBox * _arg0;
3954 wxString * _arg1;
3955 PyObject * _argo0 = 0;
3956 PyObject * _obj1 = 0;
3957 char *_kwnames[] = { "self","string", NULL };
3958
3959 self = self;
3960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1))
3961 return NULL;
3962 if (_argo0) {
3963 if (_argo0 == Py_None) { _arg0 = NULL; }
3964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
3965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p.");
3966 return NULL;
3967 }
3968 }
3969 {
3970 #if PYTHON_API_VERSION >= 1009
3971 char* tmpPtr; int tmpSize;
3972 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3973 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3974 return NULL;
3975 }
3976 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3977 return NULL;
3978 _arg1 = new wxString(tmpPtr, tmpSize);
3979 #else
3980 if (!PyString_Check(_obj1)) {
3981 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3982 return NULL;
3983 }
3984 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3985 #endif
3986 }
3987 {
3988 wxPy_BEGIN_ALLOW_THREADS;
3989 wxListBox_SetFirstItemStr(_arg0,*_arg1);
3990
3991 wxPy_END_ALLOW_THREADS;
3992 if (PyErr_Occurred()) return NULL;
3993 } Py_INCREF(Py_None);
3994 _resultobj = Py_None;
3995 {
3996 if (_obj1)
3997 delete _arg1;
3998 }
3999 return _resultobj;
4000 }
4001
4002 #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
4003 static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject * _resultobj;
4005 wxListBox * _arg0;
4006 int _arg1;
4007 bool _arg2 = (bool ) TRUE;
4008 PyObject * _argo0 = 0;
4009 int tempbool2 = (int) TRUE;
4010 char *_kwnames[] = { "self","n","select", NULL };
4011
4012 self = self;
4013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2))
4014 return NULL;
4015 if (_argo0) {
4016 if (_argo0 == Py_None) { _arg0 = NULL; }
4017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p.");
4019 return NULL;
4020 }
4021 }
4022 _arg2 = (bool ) tempbool2;
4023 {
4024 wxPy_BEGIN_ALLOW_THREADS;
4025 wxListBox_SetSelection(_arg0,_arg1,_arg2);
4026
4027 wxPy_END_ALLOW_THREADS;
4028 if (PyErr_Occurred()) return NULL;
4029 } Py_INCREF(Py_None);
4030 _resultobj = Py_None;
4031 return _resultobj;
4032 }
4033
4034 #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
4035 static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
4036 PyObject * _resultobj;
4037 wxListBox * _arg0;
4038 int _arg1;
4039 wxString * _arg2;
4040 PyObject * _argo0 = 0;
4041 PyObject * _obj2 = 0;
4042 char *_kwnames[] = { "self","n","string", NULL };
4043
4044 self = self;
4045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
4046 return NULL;
4047 if (_argo0) {
4048 if (_argo0 == Py_None) { _arg0 = NULL; }
4049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p.");
4051 return NULL;
4052 }
4053 }
4054 {
4055 #if PYTHON_API_VERSION >= 1009
4056 char* tmpPtr; int tmpSize;
4057 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4058 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4059 return NULL;
4060 }
4061 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4062 return NULL;
4063 _arg2 = new wxString(tmpPtr, tmpSize);
4064 #else
4065 if (!PyString_Check(_obj2)) {
4066 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4067 return NULL;
4068 }
4069 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4070 #endif
4071 }
4072 {
4073 wxPy_BEGIN_ALLOW_THREADS;
4074 wxListBox_SetString(_arg0,_arg1,*_arg2);
4075
4076 wxPy_END_ALLOW_THREADS;
4077 if (PyErr_Occurred()) return NULL;
4078 } Py_INCREF(Py_None);
4079 _resultobj = Py_None;
4080 {
4081 if (_obj2)
4082 delete _arg2;
4083 }
4084 return _resultobj;
4085 }
4086
4087 #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1))
4088 static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4089 PyObject * _resultobj;
4090 wxListBox * _arg0;
4091 wxString * _arg1;
4092 bool _arg2 = (bool ) TRUE;
4093 PyObject * _argo0 = 0;
4094 PyObject * _obj1 = 0;
4095 int tempbool2 = (int) TRUE;
4096 char *_kwnames[] = { "self","string","select", NULL };
4097
4098 self = self;
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2))
4100 return NULL;
4101 if (_argo0) {
4102 if (_argo0 == Py_None) { _arg0 = NULL; }
4103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p.");
4105 return NULL;
4106 }
4107 }
4108 {
4109 #if PYTHON_API_VERSION >= 1009
4110 char* tmpPtr; int tmpSize;
4111 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4112 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4113 return NULL;
4114 }
4115 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4116 return NULL;
4117 _arg1 = new wxString(tmpPtr, tmpSize);
4118 #else
4119 if (!PyString_Check(_obj1)) {
4120 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4121 return NULL;
4122 }
4123 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4124 #endif
4125 }
4126 _arg2 = (bool ) tempbool2;
4127 {
4128 wxPy_BEGIN_ALLOW_THREADS;
4129 wxListBox_SetStringSelection(_arg0,*_arg1,_arg2);
4130
4131 wxPy_END_ALLOW_THREADS;
4132 if (PyErr_Occurred()) return NULL;
4133 } Py_INCREF(Py_None);
4134 _resultobj = Py_None;
4135 {
4136 if (_obj1)
4137 delete _arg1;
4138 }
4139 return _resultobj;
4140 }
4141
4142 static void *SwigwxCheckListBoxTowxListBox(void *ptr) {
4143 wxCheckListBox *src;
4144 wxListBox *dest;
4145 src = (wxCheckListBox *) ptr;
4146 dest = (wxListBox *) src;
4147 return (void *) dest;
4148 }
4149
4150 static void *SwigwxCheckListBoxTowxControl(void *ptr) {
4151 wxCheckListBox *src;
4152 wxControl *dest;
4153 src = (wxCheckListBox *) ptr;
4154 dest = (wxControl *) src;
4155 return (void *) dest;
4156 }
4157
4158 static void *SwigwxCheckListBoxTowxWindow(void *ptr) {
4159 wxCheckListBox *src;
4160 wxWindow *dest;
4161 src = (wxCheckListBox *) ptr;
4162 dest = (wxWindow *) src;
4163 return (void *) dest;
4164 }
4165
4166 static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) {
4167 wxCheckListBox *src;
4168 wxEvtHandler *dest;
4169 src = (wxCheckListBox *) ptr;
4170 dest = (wxEvtHandler *) src;
4171 return (void *) dest;
4172 }
4173
4174 static void *SwigwxCheckListBoxTowxObject(void *ptr) {
4175 wxCheckListBox *src;
4176 wxObject *dest;
4177 src = (wxCheckListBox *) ptr;
4178 dest = (wxObject *) src;
4179 return (void *) dest;
4180 }
4181
4182 #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4183 static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject * _resultobj;
4185 wxCheckListBox * _result;
4186 wxWindow * _arg0;
4187 wxWindowID _arg1;
4188 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4189 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4190 int _arg4 = (int ) 0;
4191 wxString * _arg5 = (wxString *) NULL;
4192 long _arg6 = (long ) 0;
4193 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
4194 char * _arg8 = (char *) "listBox";
4195 PyObject * _argo0 = 0;
4196 wxPoint temp;
4197 PyObject * _obj2 = 0;
4198 wxSize temp0;
4199 PyObject * _obj3 = 0;
4200 PyObject * _obj5 = 0;
4201 PyObject * _argo7 = 0;
4202 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
4203 char _ptemp[128];
4204
4205 self = self;
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
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_wxCheckListBox. Expected _wxWindow_p.");
4212 return NULL;
4213 }
4214 }
4215 if (_obj2)
4216 {
4217 _arg2 = &temp;
4218 if (! wxPoint_helper(_obj2, &_arg2))
4219 return NULL;
4220 }
4221 if (_obj3)
4222 {
4223 _arg3 = &temp0;
4224 if (! wxSize_helper(_obj3, &_arg3))
4225 return NULL;
4226 }
4227 if (_obj5)
4228 {
4229 _arg5 = wxString_LIST_helper(_obj5);
4230 if (_arg5 == NULL) {
4231 return NULL;
4232 }
4233 }
4234 if (_argo7) {
4235 if (_argo7 == Py_None) { _arg7 = NULL; }
4236 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
4237 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p.");
4238 return NULL;
4239 }
4240 }
4241 {
4242 if (_obj5) {
4243 _arg4 = PyList_Size(_obj5);
4244 }
4245 else {
4246 _arg4 = 0;
4247 }
4248 }
4249 {
4250 wxPy_BEGIN_ALLOW_THREADS;
4251 _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
4252
4253 wxPy_END_ALLOW_THREADS;
4254 if (PyErr_Occurred()) return NULL;
4255 } if (_result) {
4256 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
4257 _resultobj = Py_BuildValue("s",_ptemp);
4258 } else {
4259 Py_INCREF(Py_None);
4260 _resultobj = Py_None;
4261 }
4262 {
4263 delete [] _arg5;
4264 }
4265 return _resultobj;
4266 }
4267
4268 #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
4269 static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject * _resultobj;
4271 bool _result;
4272 wxCheckListBox * _arg0;
4273 int _arg1;
4274 PyObject * _argo0 = 0;
4275 char *_kwnames[] = { "self","uiIndex", NULL };
4276
4277 self = self;
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1))
4279 return NULL;
4280 if (_argo0) {
4281 if (_argo0 == Py_None) { _arg0 = NULL; }
4282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
4283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p.");
4284 return NULL;
4285 }
4286 }
4287 {
4288 wxPy_BEGIN_ALLOW_THREADS;
4289 _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1);
4290
4291 wxPy_END_ALLOW_THREADS;
4292 if (PyErr_Occurred()) return NULL;
4293 } _resultobj = Py_BuildValue("i",_result);
4294 return _resultobj;
4295 }
4296
4297 #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
4298 static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
4299 PyObject * _resultobj;
4300 wxCheckListBox * _arg0;
4301 int _arg1;
4302 int _arg2 = (int ) TRUE;
4303 PyObject * _argo0 = 0;
4304 char *_kwnames[] = { "self","uiIndex","bCheck", NULL };
4305
4306 self = self;
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2))
4308 return NULL;
4309 if (_argo0) {
4310 if (_argo0 == Py_None) { _arg0 = NULL; }
4311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
4312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p.");
4313 return NULL;
4314 }
4315 }
4316 {
4317 wxPy_BEGIN_ALLOW_THREADS;
4318 wxCheckListBox_Check(_arg0,_arg1,_arg2);
4319
4320 wxPy_END_ALLOW_THREADS;
4321 if (PyErr_Occurred()) return NULL;
4322 } Py_INCREF(Py_None);
4323 _resultobj = Py_None;
4324 return _resultobj;
4325 }
4326
4327 #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
4328 static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4329 PyObject * _resultobj;
4330 wxCheckListBox * _arg0;
4331 int _arg1;
4332 wxString * _arg2;
4333 int _arg3;
4334 PyObject * _argo0 = 0;
4335 PyObject * _obj2 = 0;
4336 char *_kwnames[] = { "self","choices","pos", NULL };
4337
4338 self = self;
4339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
4340 return NULL;
4341 if (_argo0) {
4342 if (_argo0 == Py_None) { _arg0 = NULL; }
4343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
4344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p.");
4345 return NULL;
4346 }
4347 }
4348 {
4349 _arg2 = wxString_LIST_helper(_obj2);
4350 if (_arg2 == NULL) {
4351 return NULL;
4352 }
4353 }
4354 {
4355 if (_obj2) {
4356 _arg1 = PyList_Size(_obj2);
4357 }
4358 else {
4359 _arg1 = 0;
4360 }
4361 }
4362 {
4363 wxPy_BEGIN_ALLOW_THREADS;
4364 wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
4365
4366 wxPy_END_ALLOW_THREADS;
4367 if (PyErr_Occurred()) return NULL;
4368 } Py_INCREF(Py_None);
4369 _resultobj = Py_None;
4370 {
4371 delete [] _arg2;
4372 }
4373 return _resultobj;
4374 }
4375
4376 #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight())
4377 static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4378 PyObject * _resultobj;
4379 int _result;
4380 wxCheckListBox * _arg0;
4381 PyObject * _argo0 = 0;
4382 char *_kwnames[] = { "self", NULL };
4383
4384 self = self;
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0))
4386 return NULL;
4387 if (_argo0) {
4388 if (_argo0 == Py_None) { _arg0 = NULL; }
4389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
4390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p.");
4391 return NULL;
4392 }
4393 }
4394 {
4395 wxPy_BEGIN_ALLOW_THREADS;
4396 _result = (int )wxCheckListBox_GetItemHeight(_arg0);
4397
4398 wxPy_END_ALLOW_THREADS;
4399 if (PyErr_Occurred()) return NULL;
4400 } _resultobj = Py_BuildValue("i",_result);
4401 return _resultobj;
4402 }
4403
4404 #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2))
4405 static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4406 PyObject * _resultobj;
4407 wxTextAttr * _result;
4408 wxColour * _arg0 = (wxColour *) &wxNullColour;
4409 wxColour * _arg1 = (wxColour *) &wxNullColour;
4410 wxFont * _arg2 = (wxFont *) &wxNullFont;
4411 wxColour temp;
4412 PyObject * _obj0 = 0;
4413 wxColour temp0;
4414 PyObject * _obj1 = 0;
4415 PyObject * _argo2 = 0;
4416 char *_kwnames[] = { "colText","colBack","font", NULL };
4417 char _ptemp[128];
4418
4419 self = self;
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2))
4421 return NULL;
4422 if (_obj0)
4423 {
4424 _arg0 = &temp;
4425 if (! wxColour_helper(_obj0, &_arg0))
4426 return NULL;
4427 }
4428 if (_obj1)
4429 {
4430 _arg1 = &temp0;
4431 if (! wxColour_helper(_obj1, &_arg1))
4432 return NULL;
4433 }
4434 if (_argo2) {
4435 if (_argo2 == Py_None) { _arg2 = NULL; }
4436 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
4437 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p.");
4438 return NULL;
4439 }
4440 }
4441 {
4442 wxPy_BEGIN_ALLOW_THREADS;
4443 _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2);
4444
4445 wxPy_END_ALLOW_THREADS;
4446 if (PyErr_Occurred()) return NULL;
4447 } if (_result) {
4448 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
4449 _resultobj = Py_BuildValue("s",_ptemp);
4450 } else {
4451 Py_INCREF(Py_None);
4452 _resultobj = Py_None;
4453 }
4454 return _resultobj;
4455 }
4456
4457 #define delete_wxTextAttr(_swigobj) (delete _swigobj)
4458 static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject * _resultobj;
4460 wxTextAttr * _arg0;
4461 PyObject * _argo0 = 0;
4462 char *_kwnames[] = { "self", NULL };
4463
4464 self = self;
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0))
4466 return NULL;
4467 if (_argo0) {
4468 if (_argo0 == Py_None) { _arg0 = NULL; }
4469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p.");
4471 return NULL;
4472 }
4473 }
4474 {
4475 wxPy_BEGIN_ALLOW_THREADS;
4476 delete_wxTextAttr(_arg0);
4477
4478 wxPy_END_ALLOW_THREADS;
4479 if (PyErr_Occurred()) return NULL;
4480 } Py_INCREF(Py_None);
4481 _resultobj = Py_None;
4482 return _resultobj;
4483 }
4484
4485 #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
4486 static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4487 PyObject * _resultobj;
4488 wxTextAttr * _arg0;
4489 wxColour * _arg1;
4490 PyObject * _argo0 = 0;
4491 wxColour temp;
4492 PyObject * _obj1 = 0;
4493 char *_kwnames[] = { "self","colText", NULL };
4494
4495 self = self;
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
4497 return NULL;
4498 if (_argo0) {
4499 if (_argo0 == Py_None) { _arg0 = NULL; }
4500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p.");
4502 return NULL;
4503 }
4504 }
4505 {
4506 _arg1 = &temp;
4507 if (! wxColour_helper(_obj1, &_arg1))
4508 return NULL;
4509 }
4510 {
4511 wxPy_BEGIN_ALLOW_THREADS;
4512 wxTextAttr_SetTextColour(_arg0,*_arg1);
4513
4514 wxPy_END_ALLOW_THREADS;
4515 if (PyErr_Occurred()) return NULL;
4516 } Py_INCREF(Py_None);
4517 _resultobj = Py_None;
4518 return _resultobj;
4519 }
4520
4521 #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
4522 static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject * _resultobj;
4524 wxTextAttr * _arg0;
4525 wxColour * _arg1;
4526 PyObject * _argo0 = 0;
4527 wxColour temp;
4528 PyObject * _obj1 = 0;
4529 char *_kwnames[] = { "self","colBack", NULL };
4530
4531 self = self;
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
4533 return NULL;
4534 if (_argo0) {
4535 if (_argo0 == Py_None) { _arg0 = NULL; }
4536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p.");
4538 return NULL;
4539 }
4540 }
4541 {
4542 _arg1 = &temp;
4543 if (! wxColour_helper(_obj1, &_arg1))
4544 return NULL;
4545 }
4546 {
4547 wxPy_BEGIN_ALLOW_THREADS;
4548 wxTextAttr_SetBackgroundColour(_arg0,*_arg1);
4549
4550 wxPy_END_ALLOW_THREADS;
4551 if (PyErr_Occurred()) return NULL;
4552 } Py_INCREF(Py_None);
4553 _resultobj = Py_None;
4554 return _resultobj;
4555 }
4556
4557 #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4558 static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4559 PyObject * _resultobj;
4560 wxTextAttr * _arg0;
4561 wxFont * _arg1;
4562 PyObject * _argo0 = 0;
4563 PyObject * _argo1 = 0;
4564 char *_kwnames[] = { "self","font", NULL };
4565
4566 self = self;
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1))
4568 return NULL;
4569 if (_argo0) {
4570 if (_argo0 == Py_None) { _arg0 = NULL; }
4571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p.");
4573 return NULL;
4574 }
4575 }
4576 if (_argo1) {
4577 if (_argo1 == Py_None) { _arg1 = NULL; }
4578 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4579 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p.");
4580 return NULL;
4581 }
4582 }
4583 {
4584 wxPy_BEGIN_ALLOW_THREADS;
4585 wxTextAttr_SetFont(_arg0,*_arg1);
4586
4587 wxPy_END_ALLOW_THREADS;
4588 if (PyErr_Occurred()) return NULL;
4589 } Py_INCREF(Py_None);
4590 _resultobj = Py_None;
4591 return _resultobj;
4592 }
4593
4594 #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
4595 static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4596 PyObject * _resultobj;
4597 bool _result;
4598 wxTextAttr * _arg0;
4599 PyObject * _argo0 = 0;
4600 char *_kwnames[] = { "self", NULL };
4601
4602 self = self;
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0))
4604 return NULL;
4605 if (_argo0) {
4606 if (_argo0 == Py_None) { _arg0 = NULL; }
4607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p.");
4609 return NULL;
4610 }
4611 }
4612 {
4613 wxPy_BEGIN_ALLOW_THREADS;
4614 _result = (bool )wxTextAttr_HasTextColour(_arg0);
4615
4616 wxPy_END_ALLOW_THREADS;
4617 if (PyErr_Occurred()) return NULL;
4618 } _resultobj = Py_BuildValue("i",_result);
4619 return _resultobj;
4620 }
4621
4622 #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
4623 static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject * _resultobj;
4625 bool _result;
4626 wxTextAttr * _arg0;
4627 PyObject * _argo0 = 0;
4628 char *_kwnames[] = { "self", NULL };
4629
4630 self = self;
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0))
4632 return NULL;
4633 if (_argo0) {
4634 if (_argo0 == Py_None) { _arg0 = NULL; }
4635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p.");
4637 return NULL;
4638 }
4639 }
4640 {
4641 wxPy_BEGIN_ALLOW_THREADS;
4642 _result = (bool )wxTextAttr_HasBackgroundColour(_arg0);
4643
4644 wxPy_END_ALLOW_THREADS;
4645 if (PyErr_Occurred()) return NULL;
4646 } _resultobj = Py_BuildValue("i",_result);
4647 return _resultobj;
4648 }
4649
4650 #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont())
4651 static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject * _resultobj;
4653 bool _result;
4654 wxTextAttr * _arg0;
4655 PyObject * _argo0 = 0;
4656 char *_kwnames[] = { "self", NULL };
4657
4658 self = self;
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0))
4660 return NULL;
4661 if (_argo0) {
4662 if (_argo0 == Py_None) { _arg0 = NULL; }
4663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p.");
4665 return NULL;
4666 }
4667 }
4668 {
4669 wxPy_BEGIN_ALLOW_THREADS;
4670 _result = (bool )wxTextAttr_HasFont(_arg0);
4671
4672 wxPy_END_ALLOW_THREADS;
4673 if (PyErr_Occurred()) return NULL;
4674 } _resultobj = Py_BuildValue("i",_result);
4675 return _resultobj;
4676 }
4677
4678 #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
4679 static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject * _resultobj;
4681 wxColour * _result;
4682 wxTextAttr * _arg0;
4683 PyObject * _argo0 = 0;
4684 char *_kwnames[] = { "self", NULL };
4685 char _ptemp[128];
4686
4687 self = self;
4688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0))
4689 return NULL;
4690 if (_argo0) {
4691 if (_argo0 == Py_None) { _arg0 = NULL; }
4692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p.");
4694 return NULL;
4695 }
4696 }
4697 {
4698 wxPy_BEGIN_ALLOW_THREADS;
4699 const wxColour & _result_ref = wxTextAttr_GetTextColour(_arg0);
4700 _result = (wxColour *) &_result_ref;
4701
4702 wxPy_END_ALLOW_THREADS;
4703 if (PyErr_Occurred()) return NULL;
4704 } if (_result) {
4705 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4706 _resultobj = Py_BuildValue("s",_ptemp);
4707 } else {
4708 Py_INCREF(Py_None);
4709 _resultobj = Py_None;
4710 }
4711 return _resultobj;
4712 }
4713
4714 #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
4715 static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4716 PyObject * _resultobj;
4717 wxColour * _result;
4718 wxTextAttr * _arg0;
4719 PyObject * _argo0 = 0;
4720 char *_kwnames[] = { "self", NULL };
4721 char _ptemp[128];
4722
4723 self = self;
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0))
4725 return NULL;
4726 if (_argo0) {
4727 if (_argo0 == Py_None) { _arg0 = NULL; }
4728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p.");
4730 return NULL;
4731 }
4732 }
4733 {
4734 wxPy_BEGIN_ALLOW_THREADS;
4735 const wxColour & _result_ref = wxTextAttr_GetBackgroundColour(_arg0);
4736 _result = (wxColour *) &_result_ref;
4737
4738 wxPy_END_ALLOW_THREADS;
4739 if (PyErr_Occurred()) return NULL;
4740 } if (_result) {
4741 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4742 _resultobj = Py_BuildValue("s",_ptemp);
4743 } else {
4744 Py_INCREF(Py_None);
4745 _resultobj = Py_None;
4746 }
4747 return _resultobj;
4748 }
4749
4750 #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont())
4751 static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject * _resultobj;
4753 wxFont * _result;
4754 wxTextAttr * _arg0;
4755 PyObject * _argo0 = 0;
4756 char *_kwnames[] = { "self", NULL };
4757 char _ptemp[128];
4758
4759 self = self;
4760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0))
4761 return NULL;
4762 if (_argo0) {
4763 if (_argo0 == Py_None) { _arg0 = NULL; }
4764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
4765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p.");
4766 return NULL;
4767 }
4768 }
4769 {
4770 wxPy_BEGIN_ALLOW_THREADS;
4771 const wxFont & _result_ref = wxTextAttr_GetFont(_arg0);
4772 _result = (wxFont *) &_result_ref;
4773
4774 wxPy_END_ALLOW_THREADS;
4775 if (PyErr_Occurred()) return NULL;
4776 } if (_result) {
4777 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4778 _resultobj = Py_BuildValue("s",_ptemp);
4779 } else {
4780 Py_INCREF(Py_None);
4781 _resultobj = Py_None;
4782 }
4783 return _resultobj;
4784 }
4785
4786 static void *SwigwxTextCtrlTowxControl(void *ptr) {
4787 wxTextCtrl *src;
4788 wxControl *dest;
4789 src = (wxTextCtrl *) ptr;
4790 dest = (wxControl *) src;
4791 return (void *) dest;
4792 }
4793
4794 static void *SwigwxTextCtrlTowxWindow(void *ptr) {
4795 wxTextCtrl *src;
4796 wxWindow *dest;
4797 src = (wxTextCtrl *) ptr;
4798 dest = (wxWindow *) src;
4799 return (void *) dest;
4800 }
4801
4802 static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) {
4803 wxTextCtrl *src;
4804 wxEvtHandler *dest;
4805 src = (wxTextCtrl *) ptr;
4806 dest = (wxEvtHandler *) src;
4807 return (void *) dest;
4808 }
4809
4810 static void *SwigwxTextCtrlTowxObject(void *ptr) {
4811 wxTextCtrl *src;
4812 wxObject *dest;
4813 src = (wxTextCtrl *) ptr;
4814 dest = (wxObject *) src;
4815 return (void *) dest;
4816 }
4817
4818 #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
4819 static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject * _resultobj;
4821 wxTextCtrl * _result;
4822 wxWindow * _arg0;
4823 wxWindowID _arg1;
4824 char * _arg2 = (char *) "";
4825 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4826 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4827 long _arg5 = (long ) 0;
4828 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
4829 char * _arg7 = (char *) "text";
4830 PyObject * _argo0 = 0;
4831 wxPoint temp;
4832 PyObject * _obj3 = 0;
4833 wxSize temp0;
4834 PyObject * _obj4 = 0;
4835 PyObject * _argo6 = 0;
4836 char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL };
4837 char _ptemp[128];
4838
4839 self = self;
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
4841 return NULL;
4842 if (_argo0) {
4843 if (_argo0 == Py_None) { _arg0 = NULL; }
4844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p.");
4846 return NULL;
4847 }
4848 }
4849 if (_obj3)
4850 {
4851 _arg3 = &temp;
4852 if (! wxPoint_helper(_obj3, &_arg3))
4853 return NULL;
4854 }
4855 if (_obj4)
4856 {
4857 _arg4 = &temp0;
4858 if (! wxSize_helper(_obj4, &_arg4))
4859 return NULL;
4860 }
4861 if (_argo6) {
4862 if (_argo6 == Py_None) { _arg6 = NULL; }
4863 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
4864 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p.");
4865 return NULL;
4866 }
4867 }
4868 {
4869 wxPy_BEGIN_ALLOW_THREADS;
4870 _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
4871
4872 wxPy_END_ALLOW_THREADS;
4873 if (PyErr_Occurred()) return NULL;
4874 } if (_result) {
4875 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
4876 _resultobj = Py_BuildValue("s",_ptemp);
4877 } else {
4878 Py_INCREF(Py_None);
4879 _resultobj = Py_None;
4880 }
4881 return _resultobj;
4882 }
4883
4884 #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear())
4885 static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4886 PyObject * _resultobj;
4887 wxTextCtrl * _arg0;
4888 PyObject * _argo0 = 0;
4889 char *_kwnames[] = { "self", NULL };
4890
4891 self = self;
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0))
4893 return NULL;
4894 if (_argo0) {
4895 if (_argo0 == Py_None) { _arg0 = NULL; }
4896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
4897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p.");
4898 return NULL;
4899 }
4900 }
4901 {
4902 wxPy_BEGIN_ALLOW_THREADS;
4903 wxTextCtrl_Clear(_arg0);
4904
4905 wxPy_END_ALLOW_THREADS;
4906 if (PyErr_Occurred()) return NULL;
4907 } Py_INCREF(Py_None);
4908 _resultobj = Py_None;
4909 return _resultobj;
4910 }
4911
4912 #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy())
4913 static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
4914 PyObject * _resultobj;
4915 wxTextCtrl * _arg0;
4916 PyObject * _argo0 = 0;
4917 char *_kwnames[] = { "self", NULL };
4918
4919 self = self;
4920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0))
4921 return NULL;
4922 if (_argo0) {
4923 if (_argo0 == Py_None) { _arg0 = NULL; }
4924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
4925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p.");
4926 return NULL;
4927 }
4928 }
4929 {
4930 wxPy_BEGIN_ALLOW_THREADS;
4931 wxTextCtrl_Copy(_arg0);
4932
4933 wxPy_END_ALLOW_THREADS;
4934 if (PyErr_Occurred()) return NULL;
4935 } Py_INCREF(Py_None);
4936 _resultobj = Py_None;
4937 return _resultobj;
4938 }
4939
4940 #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut())
4941 static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject * _resultobj;
4943 wxTextCtrl * _arg0;
4944 PyObject * _argo0 = 0;
4945 char *_kwnames[] = { "self", NULL };
4946
4947 self = self;
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0))
4949 return NULL;
4950 if (_argo0) {
4951 if (_argo0 == Py_None) { _arg0 = NULL; }
4952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
4953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p.");
4954 return NULL;
4955 }
4956 }
4957 {
4958 wxPy_BEGIN_ALLOW_THREADS;
4959 wxTextCtrl_Cut(_arg0);
4960
4961 wxPy_END_ALLOW_THREADS;
4962 if (PyErr_Occurred()) return NULL;
4963 } Py_INCREF(Py_None);
4964 _resultobj = Py_None;
4965 return _resultobj;
4966 }
4967
4968 #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits())
4969 static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
4970 PyObject * _resultobj;
4971 wxTextCtrl * _arg0;
4972 PyObject * _argo0 = 0;
4973 char *_kwnames[] = { "self", NULL };
4974
4975 self = self;
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0))
4977 return NULL;
4978 if (_argo0) {
4979 if (_argo0 == Py_None) { _arg0 = NULL; }
4980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
4981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p.");
4982 return NULL;
4983 }
4984 }
4985 {
4986 wxPy_BEGIN_ALLOW_THREADS;
4987 wxTextCtrl_DiscardEdits(_arg0);
4988
4989 wxPy_END_ALLOW_THREADS;
4990 if (PyErr_Occurred()) return NULL;
4991 } Py_INCREF(Py_None);
4992 _resultobj = Py_None;
4993 return _resultobj;
4994 }
4995
4996 #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
4997 static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4998 PyObject * _resultobj;
4999 long _result;
5000 wxTextCtrl * _arg0;
5001 PyObject * _argo0 = 0;
5002 char *_kwnames[] = { "self", NULL };
5003
5004 self = self;
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0))
5006 return NULL;
5007 if (_argo0) {
5008 if (_argo0 == Py_None) { _arg0 = NULL; }
5009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p.");
5011 return NULL;
5012 }
5013 }
5014 {
5015 wxPy_BEGIN_ALLOW_THREADS;
5016 _result = (long )wxTextCtrl_GetInsertionPoint(_arg0);
5017
5018 wxPy_END_ALLOW_THREADS;
5019 if (PyErr_Occurred()) return NULL;
5020 } _resultobj = Py_BuildValue("l",_result);
5021 return _resultobj;
5022 }
5023
5024 #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
5025 static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject * _resultobj;
5027 long _result;
5028 wxTextCtrl * _arg0;
5029 PyObject * _argo0 = 0;
5030 char *_kwnames[] = { "self", NULL };
5031
5032 self = self;
5033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0))
5034 return NULL;
5035 if (_argo0) {
5036 if (_argo0 == Py_None) { _arg0 = NULL; }
5037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p.");
5039 return NULL;
5040 }
5041 }
5042 {
5043 wxPy_BEGIN_ALLOW_THREADS;
5044 _result = (long )wxTextCtrl_GetLastPosition(_arg0);
5045
5046 wxPy_END_ALLOW_THREADS;
5047 if (PyErr_Occurred()) return NULL;
5048 } _resultobj = Py_BuildValue("l",_result);
5049 return _resultobj;
5050 }
5051
5052 #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0))
5053 static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5054 PyObject * _resultobj;
5055 int _result;
5056 wxTextCtrl * _arg0;
5057 long _arg1;
5058 PyObject * _argo0 = 0;
5059 char *_kwnames[] = { "self","lineNo", NULL };
5060
5061 self = self;
5062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1))
5063 return NULL;
5064 if (_argo0) {
5065 if (_argo0 == Py_None) { _arg0 = NULL; }
5066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p.");
5068 return NULL;
5069 }
5070 }
5071 {
5072 wxPy_BEGIN_ALLOW_THREADS;
5073 _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1);
5074
5075 wxPy_END_ALLOW_THREADS;
5076 if (PyErr_Occurred()) return NULL;
5077 } _resultobj = Py_BuildValue("i",_result);
5078 return _resultobj;
5079 }
5080
5081 #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0))
5082 static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
5083 PyObject * _resultobj;
5084 wxString * _result;
5085 wxTextCtrl * _arg0;
5086 long _arg1;
5087 PyObject * _argo0 = 0;
5088 char *_kwnames[] = { "self","lineNo", NULL };
5089
5090 self = self;
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1))
5092 return NULL;
5093 if (_argo0) {
5094 if (_argo0 == Py_None) { _arg0 = NULL; }
5095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p.");
5097 return NULL;
5098 }
5099 }
5100 {
5101 wxPy_BEGIN_ALLOW_THREADS;
5102 _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1));
5103
5104 wxPy_END_ALLOW_THREADS;
5105 if (PyErr_Occurred()) return NULL;
5106 }{
5107 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5108 }
5109 {
5110 delete _result;
5111 }
5112 return _resultobj;
5113 }
5114
5115 #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines())
5116 static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5117 PyObject * _resultobj;
5118 int _result;
5119 wxTextCtrl * _arg0;
5120 PyObject * _argo0 = 0;
5121 char *_kwnames[] = { "self", NULL };
5122
5123 self = self;
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0))
5125 return NULL;
5126 if (_argo0) {
5127 if (_argo0 == Py_None) { _arg0 = NULL; }
5128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p.");
5130 return NULL;
5131 }
5132 }
5133 {
5134 wxPy_BEGIN_ALLOW_THREADS;
5135 _result = (int )wxTextCtrl_GetNumberOfLines(_arg0);
5136
5137 wxPy_END_ALLOW_THREADS;
5138 if (PyErr_Occurred()) return NULL;
5139 } _resultobj = Py_BuildValue("i",_result);
5140 return _resultobj;
5141 }
5142
5143 #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue())
5144 static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5145 PyObject * _resultobj;
5146 wxString * _result;
5147 wxTextCtrl * _arg0;
5148 PyObject * _argo0 = 0;
5149 char *_kwnames[] = { "self", NULL };
5150
5151 self = self;
5152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0))
5153 return NULL;
5154 if (_argo0) {
5155 if (_argo0 == Py_None) { _arg0 = NULL; }
5156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p.");
5158 return NULL;
5159 }
5160 }
5161 {
5162 wxPy_BEGIN_ALLOW_THREADS;
5163 _result = new wxString (wxTextCtrl_GetValue(_arg0));
5164
5165 wxPy_END_ALLOW_THREADS;
5166 if (PyErr_Occurred()) return NULL;
5167 }{
5168 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5169 }
5170 {
5171 delete _result;
5172 }
5173 return _resultobj;
5174 }
5175
5176 #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified())
5177 static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject * _resultobj;
5179 bool _result;
5180 wxTextCtrl * _arg0;
5181 PyObject * _argo0 = 0;
5182 char *_kwnames[] = { "self", NULL };
5183
5184 self = self;
5185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0))
5186 return NULL;
5187 if (_argo0) {
5188 if (_argo0 == Py_None) { _arg0 = NULL; }
5189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p.");
5191 return NULL;
5192 }
5193 }
5194 {
5195 wxPy_BEGIN_ALLOW_THREADS;
5196 _result = (bool )wxTextCtrl_IsModified(_arg0);
5197
5198 wxPy_END_ALLOW_THREADS;
5199 if (PyErr_Occurred()) return NULL;
5200 } _resultobj = Py_BuildValue("i",_result);
5201 return _resultobj;
5202 }
5203
5204 #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
5205 static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5206 PyObject * _resultobj;
5207 bool _result;
5208 wxTextCtrl * _arg0;
5209 wxString * _arg1;
5210 PyObject * _argo0 = 0;
5211 PyObject * _obj1 = 0;
5212 char *_kwnames[] = { "self","filename", NULL };
5213
5214 self = self;
5215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
5216 return NULL;
5217 if (_argo0) {
5218 if (_argo0 == Py_None) { _arg0 = NULL; }
5219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p.");
5221 return NULL;
5222 }
5223 }
5224 {
5225 #if PYTHON_API_VERSION >= 1009
5226 char* tmpPtr; int tmpSize;
5227 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5228 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5229 return NULL;
5230 }
5231 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5232 return NULL;
5233 _arg1 = new wxString(tmpPtr, tmpSize);
5234 #else
5235 if (!PyString_Check(_obj1)) {
5236 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5237 return NULL;
5238 }
5239 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5240 #endif
5241 }
5242 {
5243 wxPy_BEGIN_ALLOW_THREADS;
5244 _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1);
5245
5246 wxPy_END_ALLOW_THREADS;
5247 if (PyErr_Occurred()) return NULL;
5248 } _resultobj = Py_BuildValue("i",_result);
5249 {
5250 if (_obj1)
5251 delete _arg1;
5252 }
5253 return _resultobj;
5254 }
5255
5256 #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste())
5257 static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
5258 PyObject * _resultobj;
5259 wxTextCtrl * _arg0;
5260 PyObject * _argo0 = 0;
5261 char *_kwnames[] = { "self", NULL };
5262
5263 self = self;
5264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0))
5265 return NULL;
5266 if (_argo0) {
5267 if (_argo0 == Py_None) { _arg0 = NULL; }
5268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p.");
5270 return NULL;
5271 }
5272 }
5273 {
5274 wxPy_BEGIN_ALLOW_THREADS;
5275 wxTextCtrl_Paste(_arg0);
5276
5277 wxPy_END_ALLOW_THREADS;
5278 if (PyErr_Occurred()) return NULL;
5279 } Py_INCREF(Py_None);
5280 _resultobj = Py_None;
5281 return _resultobj;
5282 }
5283
5284 #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2))
5285 static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5286 PyObject * _resultobj;
5287 wxTextCtrl * _arg0;
5288 long _arg1;
5289 long * _arg2;
5290 long temp;
5291 long * _arg3;
5292 long temp0;
5293 PyObject * _argo0 = 0;
5294 char *_kwnames[] = { "self","pos", NULL };
5295
5296 self = self;
5297 {
5298 _arg2 = &temp;
5299 }
5300 {
5301 _arg3 = &temp0;
5302 }
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1))
5304 return NULL;
5305 if (_argo0) {
5306 if (_argo0 == Py_None) { _arg0 = NULL; }
5307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p.");
5309 return NULL;
5310 }
5311 }
5312 {
5313 wxPy_BEGIN_ALLOW_THREADS;
5314 wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3);
5315
5316 wxPy_END_ALLOW_THREADS;
5317 if (PyErr_Occurred()) return NULL;
5318 } Py_INCREF(Py_None);
5319 _resultobj = Py_None;
5320 {
5321 PyObject *o;
5322 o = PyInt_FromLong((long) (*_arg2));
5323 _resultobj = t_output_helper(_resultobj, o);
5324 }
5325 {
5326 PyObject *o;
5327 o = PyInt_FromLong((long) (*_arg3));
5328 _resultobj = t_output_helper(_resultobj, o);
5329 }
5330 return _resultobj;
5331 }
5332
5333 #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
5334 static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject * _resultobj;
5336 wxTextCtrl * _arg0;
5337 long _arg1;
5338 long _arg2;
5339 PyObject * _argo0 = 0;
5340 char *_kwnames[] = { "self","from","to", NULL };
5341
5342 self = self;
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
5344 return NULL;
5345 if (_argo0) {
5346 if (_argo0 == Py_None) { _arg0 = NULL; }
5347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p.");
5349 return NULL;
5350 }
5351 }
5352 {
5353 wxPy_BEGIN_ALLOW_THREADS;
5354 wxTextCtrl_Remove(_arg0,_arg1,_arg2);
5355
5356 wxPy_END_ALLOW_THREADS;
5357 if (PyErr_Occurred()) return NULL;
5358 } Py_INCREF(Py_None);
5359 _resultobj = Py_None;
5360 return _resultobj;
5361 }
5362
5363 #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
5364 static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject * _resultobj;
5366 wxTextCtrl * _arg0;
5367 long _arg1;
5368 long _arg2;
5369 wxString * _arg3;
5370 PyObject * _argo0 = 0;
5371 PyObject * _obj3 = 0;
5372 char *_kwnames[] = { "self","from","to","value", NULL };
5373
5374 self = self;
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
5376 return NULL;
5377 if (_argo0) {
5378 if (_argo0 == Py_None) { _arg0 = NULL; }
5379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p.");
5381 return NULL;
5382 }
5383 }
5384 {
5385 #if PYTHON_API_VERSION >= 1009
5386 char* tmpPtr; int tmpSize;
5387 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
5388 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5389 return NULL;
5390 }
5391 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
5392 return NULL;
5393 _arg3 = new wxString(tmpPtr, tmpSize);
5394 #else
5395 if (!PyString_Check(_obj3)) {
5396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5397 return NULL;
5398 }
5399 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
5400 #endif
5401 }
5402 {
5403 wxPy_BEGIN_ALLOW_THREADS;
5404 wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3);
5405
5406 wxPy_END_ALLOW_THREADS;
5407 if (PyErr_Occurred()) return NULL;
5408 } Py_INCREF(Py_None);
5409 _resultobj = Py_None;
5410 {
5411 if (_obj3)
5412 delete _arg3;
5413 }
5414 return _resultobj;
5415 }
5416
5417 #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
5418 static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject * _resultobj;
5420 bool _result;
5421 wxTextCtrl * _arg0;
5422 wxString * _arg1;
5423 PyObject * _argo0 = 0;
5424 PyObject * _obj1 = 0;
5425 char *_kwnames[] = { "self","filename", NULL };
5426
5427 self = self;
5428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
5429 return NULL;
5430 if (_argo0) {
5431 if (_argo0 == Py_None) { _arg0 = NULL; }
5432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p.");
5434 return NULL;
5435 }
5436 }
5437 {
5438 #if PYTHON_API_VERSION >= 1009
5439 char* tmpPtr; int tmpSize;
5440 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5441 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5442 return NULL;
5443 }
5444 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5445 return NULL;
5446 _arg1 = new wxString(tmpPtr, tmpSize);
5447 #else
5448 if (!PyString_Check(_obj1)) {
5449 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5450 return NULL;
5451 }
5452 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5453 #endif
5454 }
5455 {
5456 wxPy_BEGIN_ALLOW_THREADS;
5457 _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1);
5458
5459 wxPy_END_ALLOW_THREADS;
5460 if (PyErr_Occurred()) return NULL;
5461 } _resultobj = Py_BuildValue("i",_result);
5462 {
5463 if (_obj1)
5464 delete _arg1;
5465 }
5466 return _resultobj;
5467 }
5468
5469 #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
5470 static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject * _resultobj;
5472 wxTextCtrl * _arg0;
5473 bool _arg1;
5474 PyObject * _argo0 = 0;
5475 int tempbool1;
5476 char *_kwnames[] = { "self","editable", NULL };
5477
5478 self = self;
5479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1))
5480 return NULL;
5481 if (_argo0) {
5482 if (_argo0 == Py_None) { _arg0 = NULL; }
5483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p.");
5485 return NULL;
5486 }
5487 }
5488 _arg1 = (bool ) tempbool1;
5489 {
5490 wxPy_BEGIN_ALLOW_THREADS;
5491 wxTextCtrl_SetEditable(_arg0,_arg1);
5492
5493 wxPy_END_ALLOW_THREADS;
5494 if (PyErr_Occurred()) return NULL;
5495 } Py_INCREF(Py_None);
5496 _resultobj = Py_None;
5497 return _resultobj;
5498 }
5499
5500 #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
5501 static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5502 PyObject * _resultobj;
5503 wxTextCtrl * _arg0;
5504 long _arg1;
5505 PyObject * _argo0 = 0;
5506 char *_kwnames[] = { "self","pos", NULL };
5507
5508 self = self;
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
5510 return NULL;
5511 if (_argo0) {
5512 if (_argo0 == Py_None) { _arg0 = NULL; }
5513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p.");
5515 return NULL;
5516 }
5517 }
5518 {
5519 wxPy_BEGIN_ALLOW_THREADS;
5520 wxTextCtrl_SetInsertionPoint(_arg0,_arg1);
5521
5522 wxPy_END_ALLOW_THREADS;
5523 if (PyErr_Occurred()) return NULL;
5524 } Py_INCREF(Py_None);
5525 _resultobj = Py_None;
5526 return _resultobj;
5527 }
5528
5529 #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
5530 static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject * _resultobj;
5532 wxTextCtrl * _arg0;
5533 PyObject * _argo0 = 0;
5534 char *_kwnames[] = { "self", NULL };
5535
5536 self = self;
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0))
5538 return NULL;
5539 if (_argo0) {
5540 if (_argo0 == Py_None) { _arg0 = NULL; }
5541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p.");
5543 return NULL;
5544 }
5545 }
5546 {
5547 wxPy_BEGIN_ALLOW_THREADS;
5548 wxTextCtrl_SetInsertionPointEnd(_arg0);
5549
5550 wxPy_END_ALLOW_THREADS;
5551 if (PyErr_Occurred()) return NULL;
5552 } Py_INCREF(Py_None);
5553 _resultobj = Py_None;
5554 return _resultobj;
5555 }
5556
5557 #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
5558 static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5559 PyObject * _resultobj;
5560 wxTextCtrl * _arg0;
5561 long _arg1;
5562 long _arg2;
5563 PyObject * _argo0 = 0;
5564 char *_kwnames[] = { "self","from","to", NULL };
5565
5566 self = self;
5567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
5568 return NULL;
5569 if (_argo0) {
5570 if (_argo0 == Py_None) { _arg0 = NULL; }
5571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p.");
5573 return NULL;
5574 }
5575 }
5576 {
5577 wxPy_BEGIN_ALLOW_THREADS;
5578 wxTextCtrl_SetSelection(_arg0,_arg1,_arg2);
5579
5580 wxPy_END_ALLOW_THREADS;
5581 if (PyErr_Occurred()) return NULL;
5582 } Py_INCREF(Py_None);
5583 _resultobj = Py_None;
5584 return _resultobj;
5585 }
5586
5587 #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
5588 static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5589 PyObject * _resultobj;
5590 wxTextCtrl * _arg0;
5591 wxString * _arg1;
5592 PyObject * _argo0 = 0;
5593 PyObject * _obj1 = 0;
5594 char *_kwnames[] = { "self","value", NULL };
5595
5596 self = self;
5597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1))
5598 return NULL;
5599 if (_argo0) {
5600 if (_argo0 == Py_None) { _arg0 = NULL; }
5601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p.");
5603 return NULL;
5604 }
5605 }
5606 {
5607 #if PYTHON_API_VERSION >= 1009
5608 char* tmpPtr; int tmpSize;
5609 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5611 return NULL;
5612 }
5613 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5614 return NULL;
5615 _arg1 = new wxString(tmpPtr, tmpSize);
5616 #else
5617 if (!PyString_Check(_obj1)) {
5618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5619 return NULL;
5620 }
5621 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5622 #endif
5623 }
5624 {
5625 wxPy_BEGIN_ALLOW_THREADS;
5626 wxTextCtrl_SetValue(_arg0,*_arg1);
5627
5628 wxPy_END_ALLOW_THREADS;
5629 if (PyErr_Occurred()) return NULL;
5630 } Py_INCREF(Py_None);
5631 _resultobj = Py_None;
5632 {
5633 if (_obj1)
5634 delete _arg1;
5635 }
5636 return _resultobj;
5637 }
5638
5639 #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0))
5640 static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5641 PyObject * _resultobj;
5642 wxTextCtrl * _arg0;
5643 long _arg1;
5644 PyObject * _argo0 = 0;
5645 char *_kwnames[] = { "self","pos", NULL };
5646
5647 self = self;
5648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1))
5649 return NULL;
5650 if (_argo0) {
5651 if (_argo0 == Py_None) { _arg0 = NULL; }
5652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p.");
5654 return NULL;
5655 }
5656 }
5657 {
5658 wxPy_BEGIN_ALLOW_THREADS;
5659 wxTextCtrl_ShowPosition(_arg0,_arg1);
5660
5661 wxPy_END_ALLOW_THREADS;
5662 if (PyErr_Occurred()) return NULL;
5663 } Py_INCREF(Py_None);
5664 _resultobj = Py_None;
5665 return _resultobj;
5666 }
5667
5668 #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0))
5669 static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
5670 PyObject * _resultobj;
5671 wxTextCtrl * _arg0;
5672 wxString * _arg1;
5673 PyObject * _argo0 = 0;
5674 PyObject * _obj1 = 0;
5675 char *_kwnames[] = { "self","text", NULL };
5676
5677 self = self;
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1))
5679 return NULL;
5680 if (_argo0) {
5681 if (_argo0 == Py_None) { _arg0 = NULL; }
5682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p.");
5684 return NULL;
5685 }
5686 }
5687 {
5688 #if PYTHON_API_VERSION >= 1009
5689 char* tmpPtr; int tmpSize;
5690 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5691 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5692 return NULL;
5693 }
5694 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5695 return NULL;
5696 _arg1 = new wxString(tmpPtr, tmpSize);
5697 #else
5698 if (!PyString_Check(_obj1)) {
5699 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5700 return NULL;
5701 }
5702 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5703 #endif
5704 }
5705 {
5706 wxPy_BEGIN_ALLOW_THREADS;
5707 wxTextCtrl_WriteText(_arg0,*_arg1);
5708
5709 wxPy_END_ALLOW_THREADS;
5710 if (PyErr_Occurred()) return NULL;
5711 } Py_INCREF(Py_None);
5712 _resultobj = Py_None;
5713 {
5714 if (_obj1)
5715 delete _arg1;
5716 }
5717 return _resultobj;
5718 }
5719
5720 #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0))
5721 static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
5722 PyObject * _resultobj;
5723 wxTextCtrl * _arg0;
5724 wxString * _arg1;
5725 PyObject * _argo0 = 0;
5726 PyObject * _obj1 = 0;
5727 char *_kwnames[] = { "self","text", NULL };
5728
5729 self = self;
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1))
5731 return NULL;
5732 if (_argo0) {
5733 if (_argo0 == Py_None) { _arg0 = NULL; }
5734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p.");
5736 return NULL;
5737 }
5738 }
5739 {
5740 #if PYTHON_API_VERSION >= 1009
5741 char* tmpPtr; int tmpSize;
5742 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5743 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5744 return NULL;
5745 }
5746 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5747 return NULL;
5748 _arg1 = new wxString(tmpPtr, tmpSize);
5749 #else
5750 if (!PyString_Check(_obj1)) {
5751 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5752 return NULL;
5753 }
5754 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5755 #endif
5756 }
5757 {
5758 wxPy_BEGIN_ALLOW_THREADS;
5759 wxTextCtrl_AppendText(_arg0,*_arg1);
5760
5761 wxPy_END_ALLOW_THREADS;
5762 if (PyErr_Occurred()) return NULL;
5763 } Py_INCREF(Py_None);
5764 _resultobj = Py_None;
5765 {
5766 if (_obj1)
5767 delete _arg1;
5768 }
5769 return _resultobj;
5770 }
5771
5772 #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1))
5773 static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5774 PyObject * _resultobj;
5775 long _result;
5776 wxTextCtrl * _arg0;
5777 long _arg1;
5778 long _arg2;
5779 PyObject * _argo0 = 0;
5780 char *_kwnames[] = { "self","x","y", NULL };
5781
5782 self = self;
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5784 return NULL;
5785 if (_argo0) {
5786 if (_argo0 == Py_None) { _arg0 = NULL; }
5787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p.");
5789 return NULL;
5790 }
5791 }
5792 {
5793 wxPy_BEGIN_ALLOW_THREADS;
5794 _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2);
5795
5796 wxPy_END_ALLOW_THREADS;
5797 if (PyErr_Occurred()) return NULL;
5798 } _resultobj = Py_BuildValue("l",_result);
5799 return _resultobj;
5800 }
5801
5802 #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy())
5803 static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject * _resultobj;
5805 bool _result;
5806 wxTextCtrl * _arg0;
5807 PyObject * _argo0 = 0;
5808 char *_kwnames[] = { "self", NULL };
5809
5810 self = self;
5811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0))
5812 return NULL;
5813 if (_argo0) {
5814 if (_argo0 == Py_None) { _arg0 = NULL; }
5815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p.");
5817 return NULL;
5818 }
5819 }
5820 {
5821 wxPy_BEGIN_ALLOW_THREADS;
5822 _result = (bool )wxTextCtrl_CanCopy(_arg0);
5823
5824 wxPy_END_ALLOW_THREADS;
5825 if (PyErr_Occurred()) return NULL;
5826 } _resultobj = Py_BuildValue("i",_result);
5827 return _resultobj;
5828 }
5829
5830 #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut())
5831 static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
5832 PyObject * _resultobj;
5833 bool _result;
5834 wxTextCtrl * _arg0;
5835 PyObject * _argo0 = 0;
5836 char *_kwnames[] = { "self", NULL };
5837
5838 self = self;
5839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0))
5840 return NULL;
5841 if (_argo0) {
5842 if (_argo0 == Py_None) { _arg0 = NULL; }
5843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p.");
5845 return NULL;
5846 }
5847 }
5848 {
5849 wxPy_BEGIN_ALLOW_THREADS;
5850 _result = (bool )wxTextCtrl_CanCut(_arg0);
5851
5852 wxPy_END_ALLOW_THREADS;
5853 if (PyErr_Occurred()) return NULL;
5854 } _resultobj = Py_BuildValue("i",_result);
5855 return _resultobj;
5856 }
5857
5858 #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste())
5859 static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
5860 PyObject * _resultobj;
5861 bool _result;
5862 wxTextCtrl * _arg0;
5863 PyObject * _argo0 = 0;
5864 char *_kwnames[] = { "self", NULL };
5865
5866 self = self;
5867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0))
5868 return NULL;
5869 if (_argo0) {
5870 if (_argo0 == Py_None) { _arg0 = NULL; }
5871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p.");
5873 return NULL;
5874 }
5875 }
5876 {
5877 wxPy_BEGIN_ALLOW_THREADS;
5878 _result = (bool )wxTextCtrl_CanPaste(_arg0);
5879
5880 wxPy_END_ALLOW_THREADS;
5881 if (PyErr_Occurred()) return NULL;
5882 } _resultobj = Py_BuildValue("i",_result);
5883 return _resultobj;
5884 }
5885
5886 #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo())
5887 static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
5888 PyObject * _resultobj;
5889 bool _result;
5890 wxTextCtrl * _arg0;
5891 PyObject * _argo0 = 0;
5892 char *_kwnames[] = { "self", NULL };
5893
5894 self = self;
5895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0))
5896 return NULL;
5897 if (_argo0) {
5898 if (_argo0 == Py_None) { _arg0 = NULL; }
5899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p.");
5901 return NULL;
5902 }
5903 }
5904 {
5905 wxPy_BEGIN_ALLOW_THREADS;
5906 _result = (bool )wxTextCtrl_CanRedo(_arg0);
5907
5908 wxPy_END_ALLOW_THREADS;
5909 if (PyErr_Occurred()) return NULL;
5910 } _resultobj = Py_BuildValue("i",_result);
5911 return _resultobj;
5912 }
5913
5914 #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo())
5915 static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
5916 PyObject * _resultobj;
5917 bool _result;
5918 wxTextCtrl * _arg0;
5919 PyObject * _argo0 = 0;
5920 char *_kwnames[] = { "self", NULL };
5921
5922 self = self;
5923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0))
5924 return NULL;
5925 if (_argo0) {
5926 if (_argo0 == Py_None) { _arg0 = NULL; }
5927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p.");
5929 return NULL;
5930 }
5931 }
5932 {
5933 wxPy_BEGIN_ALLOW_THREADS;
5934 _result = (bool )wxTextCtrl_CanUndo(_arg0);
5935
5936 wxPy_END_ALLOW_THREADS;
5937 if (PyErr_Occurred()) return NULL;
5938 } _resultobj = Py_BuildValue("i",_result);
5939 return _resultobj;
5940 }
5941
5942 #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1))
5943 static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5944 PyObject * _resultobj;
5945 wxTextCtrl * _arg0;
5946 long * _arg1;
5947 long temp;
5948 long * _arg2;
5949 long temp0;
5950 PyObject * _argo0 = 0;
5951 char *_kwnames[] = { "self", NULL };
5952
5953 self = self;
5954 {
5955 _arg1 = &temp;
5956 }
5957 {
5958 _arg2 = &temp0;
5959 }
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0))
5961 return NULL;
5962 if (_argo0) {
5963 if (_argo0 == Py_None) { _arg0 = NULL; }
5964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p.");
5966 return NULL;
5967 }
5968 }
5969 {
5970 wxPy_BEGIN_ALLOW_THREADS;
5971 wxTextCtrl_GetSelection(_arg0,_arg1,_arg2);
5972
5973 wxPy_END_ALLOW_THREADS;
5974 if (PyErr_Occurred()) return NULL;
5975 } Py_INCREF(Py_None);
5976 _resultobj = Py_None;
5977 {
5978 PyObject *o;
5979 o = PyInt_FromLong((long) (*_arg1));
5980 _resultobj = t_output_helper(_resultobj, o);
5981 }
5982 {
5983 PyObject *o;
5984 o = PyInt_FromLong((long) (*_arg2));
5985 _resultobj = t_output_helper(_resultobj, o);
5986 }
5987 return _resultobj;
5988 }
5989
5990 #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable())
5991 static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject * _resultobj;
5993 bool _result;
5994 wxTextCtrl * _arg0;
5995 PyObject * _argo0 = 0;
5996 char *_kwnames[] = { "self", NULL };
5997
5998 self = self;
5999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0))
6000 return NULL;
6001 if (_argo0) {
6002 if (_argo0 == Py_None) { _arg0 = NULL; }
6003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p.");
6005 return NULL;
6006 }
6007 }
6008 {
6009 wxPy_BEGIN_ALLOW_THREADS;
6010 _result = (bool )wxTextCtrl_IsEditable(_arg0);
6011
6012 wxPy_END_ALLOW_THREADS;
6013 if (PyErr_Occurred()) return NULL;
6014 } _resultobj = Py_BuildValue("i",_result);
6015 return _resultobj;
6016 }
6017
6018 #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo())
6019 static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject * _resultobj;
6021 wxTextCtrl * _arg0;
6022 PyObject * _argo0 = 0;
6023 char *_kwnames[] = { "self", NULL };
6024
6025 self = self;
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0))
6027 return NULL;
6028 if (_argo0) {
6029 if (_argo0 == Py_None) { _arg0 = NULL; }
6030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p.");
6032 return NULL;
6033 }
6034 }
6035 {
6036 wxPy_BEGIN_ALLOW_THREADS;
6037 wxTextCtrl_Undo(_arg0);
6038
6039 wxPy_END_ALLOW_THREADS;
6040 if (PyErr_Occurred()) return NULL;
6041 } Py_INCREF(Py_None);
6042 _resultobj = Py_None;
6043 return _resultobj;
6044 }
6045
6046 #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo())
6047 static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject * _resultobj;
6049 wxTextCtrl * _arg0;
6050 PyObject * _argo0 = 0;
6051 char *_kwnames[] = { "self", NULL };
6052
6053 self = self;
6054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0))
6055 return NULL;
6056 if (_argo0) {
6057 if (_argo0 == Py_None) { _arg0 = NULL; }
6058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p.");
6060 return NULL;
6061 }
6062 }
6063 {
6064 wxPy_BEGIN_ALLOW_THREADS;
6065 wxTextCtrl_Redo(_arg0);
6066
6067 wxPy_END_ALLOW_THREADS;
6068 if (PyErr_Occurred()) return NULL;
6069 } Py_INCREF(Py_None);
6070 _resultobj = Py_None;
6071 return _resultobj;
6072 }
6073
6074 #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2))
6075 static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6076 PyObject * _resultobj;
6077 bool _result;
6078 wxTextCtrl * _arg0;
6079 long _arg1;
6080 long _arg2;
6081 wxTextAttr * _arg3;
6082 PyObject * _argo0 = 0;
6083 PyObject * _argo3 = 0;
6084 char *_kwnames[] = { "self","start","end","style", NULL };
6085
6086 self = self;
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
6088 return NULL;
6089 if (_argo0) {
6090 if (_argo0 == Py_None) { _arg0 = NULL; }
6091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p.");
6093 return NULL;
6094 }
6095 }
6096 if (_argo3) {
6097 if (_argo3 == Py_None) { _arg3 = NULL; }
6098 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) {
6099 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p.");
6100 return NULL;
6101 }
6102 }
6103 {
6104 wxPy_BEGIN_ALLOW_THREADS;
6105 _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3);
6106
6107 wxPy_END_ALLOW_THREADS;
6108 if (PyErr_Occurred()) return NULL;
6109 } _resultobj = Py_BuildValue("i",_result);
6110 return _resultobj;
6111 }
6112
6113 #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0))
6114 static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject * _resultobj;
6116 bool _result;
6117 wxTextCtrl * _arg0;
6118 wxTextAttr * _arg1;
6119 PyObject * _argo0 = 0;
6120 PyObject * _argo1 = 0;
6121 char *_kwnames[] = { "self","style", NULL };
6122
6123 self = self;
6124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1))
6125 return NULL;
6126 if (_argo0) {
6127 if (_argo0 == Py_None) { _arg0 = NULL; }
6128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p.");
6130 return NULL;
6131 }
6132 }
6133 if (_argo1) {
6134 if (_argo1 == Py_None) { _arg1 = NULL; }
6135 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
6136 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p.");
6137 return NULL;
6138 }
6139 }
6140 {
6141 wxPy_BEGIN_ALLOW_THREADS;
6142 _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1);
6143
6144 wxPy_END_ALLOW_THREADS;
6145 if (PyErr_Occurred()) return NULL;
6146 } _resultobj = Py_BuildValue("i",_result);
6147 return _resultobj;
6148 }
6149
6150 #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle())
6151 static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6152 PyObject * _resultobj;
6153 wxTextAttr * _result;
6154 wxTextCtrl * _arg0;
6155 PyObject * _argo0 = 0;
6156 char *_kwnames[] = { "self", NULL };
6157 char _ptemp[128];
6158
6159 self = self;
6160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0))
6161 return NULL;
6162 if (_argo0) {
6163 if (_argo0 == Py_None) { _arg0 = NULL; }
6164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p.");
6166 return NULL;
6167 }
6168 }
6169 {
6170 wxPy_BEGIN_ALLOW_THREADS;
6171 const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0);
6172 _result = (wxTextAttr *) &_result_ref;
6173
6174 wxPy_END_ALLOW_THREADS;
6175 if (PyErr_Occurred()) return NULL;
6176 } if (_result) {
6177 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
6178 _resultobj = Py_BuildValue("s",_ptemp);
6179 } else {
6180 Py_INCREF(Py_None);
6181 _resultobj = Py_None;
6182 }
6183 return _resultobj;
6184 }
6185
6186 static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) {
6187 self->AppendText(text);
6188 }
6189 static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject * _resultobj;
6191 wxTextCtrl * _arg0;
6192 wxString * _arg1;
6193 PyObject * _argo0 = 0;
6194 PyObject * _obj1 = 0;
6195 char *_kwnames[] = { "self","text", NULL };
6196
6197 self = self;
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1))
6199 return NULL;
6200 if (_argo0) {
6201 if (_argo0 == Py_None) { _arg0 = NULL; }
6202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p.");
6204 return NULL;
6205 }
6206 }
6207 {
6208 #if PYTHON_API_VERSION >= 1009
6209 char* tmpPtr; int tmpSize;
6210 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6211 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6212 return NULL;
6213 }
6214 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6215 return NULL;
6216 _arg1 = new wxString(tmpPtr, tmpSize);
6217 #else
6218 if (!PyString_Check(_obj1)) {
6219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6220 return NULL;
6221 }
6222 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6223 #endif
6224 }
6225 {
6226 wxPy_BEGIN_ALLOW_THREADS;
6227 wxTextCtrl_write(_arg0,*_arg1);
6228
6229 wxPy_END_ALLOW_THREADS;
6230 if (PyErr_Occurred()) return NULL;
6231 } Py_INCREF(Py_None);
6232 _resultobj = Py_None;
6233 {
6234 if (_obj1)
6235 delete _arg1;
6236 }
6237 return _resultobj;
6238 }
6239
6240 static void *SwigwxScrollBarTowxControl(void *ptr) {
6241 wxScrollBar *src;
6242 wxControl *dest;
6243 src = (wxScrollBar *) ptr;
6244 dest = (wxControl *) src;
6245 return (void *) dest;
6246 }
6247
6248 static void *SwigwxScrollBarTowxWindow(void *ptr) {
6249 wxScrollBar *src;
6250 wxWindow *dest;
6251 src = (wxScrollBar *) ptr;
6252 dest = (wxWindow *) src;
6253 return (void *) dest;
6254 }
6255
6256 static void *SwigwxScrollBarTowxEvtHandler(void *ptr) {
6257 wxScrollBar *src;
6258 wxEvtHandler *dest;
6259 src = (wxScrollBar *) ptr;
6260 dest = (wxEvtHandler *) src;
6261 return (void *) dest;
6262 }
6263
6264 static void *SwigwxScrollBarTowxObject(void *ptr) {
6265 wxScrollBar *src;
6266 wxObject *dest;
6267 src = (wxScrollBar *) ptr;
6268 dest = (wxObject *) src;
6269 return (void *) dest;
6270 }
6271
6272 #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6273 static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject * _resultobj;
6275 wxScrollBar * _result;
6276 wxWindow * _arg0;
6277 wxWindowID _arg1 = (wxWindowID ) -1;
6278 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6279 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6280 long _arg4 = (long ) wxSB_HORIZONTAL;
6281 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
6282 char * _arg6 = (char *) "scrollBar";
6283 PyObject * _argo0 = 0;
6284 wxPoint temp;
6285 PyObject * _obj2 = 0;
6286 wxSize temp0;
6287 PyObject * _obj3 = 0;
6288 PyObject * _argo5 = 0;
6289 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
6290 char _ptemp[128];
6291
6292 self = self;
6293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
6294 return NULL;
6295 if (_argo0) {
6296 if (_argo0 == Py_None) { _arg0 = NULL; }
6297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p.");
6299 return NULL;
6300 }
6301 }
6302 if (_obj2)
6303 {
6304 _arg2 = &temp;
6305 if (! wxPoint_helper(_obj2, &_arg2))
6306 return NULL;
6307 }
6308 if (_obj3)
6309 {
6310 _arg3 = &temp0;
6311 if (! wxSize_helper(_obj3, &_arg3))
6312 return NULL;
6313 }
6314 if (_argo5) {
6315 if (_argo5 == Py_None) { _arg5 = NULL; }
6316 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
6317 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p.");
6318 return NULL;
6319 }
6320 }
6321 {
6322 wxPy_BEGIN_ALLOW_THREADS;
6323 _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
6324
6325 wxPy_END_ALLOW_THREADS;
6326 if (PyErr_Occurred()) return NULL;
6327 } if (_result) {
6328 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
6329 _resultobj = Py_BuildValue("s",_ptemp);
6330 } else {
6331 Py_INCREF(Py_None);
6332 _resultobj = Py_None;
6333 }
6334 return _resultobj;
6335 }
6336
6337 #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange())
6338 static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
6339 PyObject * _resultobj;
6340 int _result;
6341 wxScrollBar * _arg0;
6342 PyObject * _argo0 = 0;
6343 char *_kwnames[] = { "self", NULL };
6344
6345 self = self;
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0))
6347 return NULL;
6348 if (_argo0) {
6349 if (_argo0 == Py_None) { _arg0 = NULL; }
6350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p.");
6352 return NULL;
6353 }
6354 }
6355 {
6356 wxPy_BEGIN_ALLOW_THREADS;
6357 _result = (int )wxScrollBar_GetRange(_arg0);
6358
6359 wxPy_END_ALLOW_THREADS;
6360 if (PyErr_Occurred()) return NULL;
6361 } _resultobj = Py_BuildValue("i",_result);
6362 return _resultobj;
6363 }
6364
6365 #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize())
6366 static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject * _resultobj;
6368 int _result;
6369 wxScrollBar * _arg0;
6370 PyObject * _argo0 = 0;
6371 char *_kwnames[] = { "self", NULL };
6372
6373 self = self;
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0))
6375 return NULL;
6376 if (_argo0) {
6377 if (_argo0 == Py_None) { _arg0 = NULL; }
6378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p.");
6380 return NULL;
6381 }
6382 }
6383 {
6384 wxPy_BEGIN_ALLOW_THREADS;
6385 _result = (int )wxScrollBar_GetPageSize(_arg0);
6386
6387 wxPy_END_ALLOW_THREADS;
6388 if (PyErr_Occurred()) return NULL;
6389 } _resultobj = Py_BuildValue("i",_result);
6390 return _resultobj;
6391 }
6392
6393 #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition())
6394 static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject * _resultobj;
6396 int _result;
6397 wxScrollBar * _arg0;
6398 PyObject * _argo0 = 0;
6399 char *_kwnames[] = { "self", NULL };
6400
6401 self = self;
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0))
6403 return NULL;
6404 if (_argo0) {
6405 if (_argo0 == Py_None) { _arg0 = NULL; }
6406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p.");
6408 return NULL;
6409 }
6410 }
6411 {
6412 wxPy_BEGIN_ALLOW_THREADS;
6413 _result = (int )wxScrollBar_GetThumbPosition(_arg0);
6414
6415 wxPy_END_ALLOW_THREADS;
6416 if (PyErr_Occurred()) return NULL;
6417 } _resultobj = Py_BuildValue("i",_result);
6418 return _resultobj;
6419 }
6420
6421 #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize())
6422 static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6423 PyObject * _resultobj;
6424 int _result;
6425 wxScrollBar * _arg0;
6426 PyObject * _argo0 = 0;
6427 char *_kwnames[] = { "self", NULL };
6428
6429 self = self;
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0))
6431 return NULL;
6432 if (_argo0) {
6433 if (_argo0 == Py_None) { _arg0 = NULL; }
6434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p.");
6436 return NULL;
6437 }
6438 }
6439 {
6440 wxPy_BEGIN_ALLOW_THREADS;
6441 _result = (int )wxScrollBar_GetThumbSize(_arg0);
6442
6443 wxPy_END_ALLOW_THREADS;
6444 if (PyErr_Occurred()) return NULL;
6445 } _resultobj = Py_BuildValue("i",_result);
6446 return _resultobj;
6447 }
6448
6449 #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0))
6450 static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6451 PyObject * _resultobj;
6452 wxScrollBar * _arg0;
6453 int _arg1;
6454 PyObject * _argo0 = 0;
6455 char *_kwnames[] = { "self","viewStart", NULL };
6456
6457 self = self;
6458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1))
6459 return NULL;
6460 if (_argo0) {
6461 if (_argo0 == Py_None) { _arg0 = NULL; }
6462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p.");
6464 return NULL;
6465 }
6466 }
6467 {
6468 wxPy_BEGIN_ALLOW_THREADS;
6469 wxScrollBar_SetThumbPosition(_arg0,_arg1);
6470
6471 wxPy_END_ALLOW_THREADS;
6472 if (PyErr_Occurred()) return NULL;
6473 } Py_INCREF(Py_None);
6474 _resultobj = Py_None;
6475 return _resultobj;
6476 }
6477
6478 #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6479 static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
6480 PyObject * _resultobj;
6481 wxScrollBar * _arg0;
6482 int _arg1;
6483 int _arg2;
6484 int _arg3;
6485 int _arg4;
6486 bool _arg5 = (bool ) TRUE;
6487 PyObject * _argo0 = 0;
6488 int tempbool5 = (int) TRUE;
6489 char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL };
6490
6491 self = self;
6492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
6493 return NULL;
6494 if (_argo0) {
6495 if (_argo0 == Py_None) { _arg0 = NULL; }
6496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
6497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p.");
6498 return NULL;
6499 }
6500 }
6501 _arg5 = (bool ) tempbool5;
6502 {
6503 wxPy_BEGIN_ALLOW_THREADS;
6504 wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6505
6506 wxPy_END_ALLOW_THREADS;
6507 if (PyErr_Occurred()) return NULL;
6508 } Py_INCREF(Py_None);
6509 _resultobj = Py_None;
6510 return _resultobj;
6511 }
6512
6513 static void *SwigwxSpinButtonTowxControl(void *ptr) {
6514 wxSpinButton *src;
6515 wxControl *dest;
6516 src = (wxSpinButton *) ptr;
6517 dest = (wxControl *) src;
6518 return (void *) dest;
6519 }
6520
6521 static void *SwigwxSpinButtonTowxWindow(void *ptr) {
6522 wxSpinButton *src;
6523 wxWindow *dest;
6524 src = (wxSpinButton *) ptr;
6525 dest = (wxWindow *) src;
6526 return (void *) dest;
6527 }
6528
6529 static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) {
6530 wxSpinButton *src;
6531 wxEvtHandler *dest;
6532 src = (wxSpinButton *) ptr;
6533 dest = (wxEvtHandler *) src;
6534 return (void *) dest;
6535 }
6536
6537 static void *SwigwxSpinButtonTowxObject(void *ptr) {
6538 wxSpinButton *src;
6539 wxObject *dest;
6540 src = (wxSpinButton *) ptr;
6541 dest = (wxObject *) src;
6542 return (void *) dest;
6543 }
6544
6545 #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6546 static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
6547 PyObject * _resultobj;
6548 wxSpinButton * _result;
6549 wxWindow * _arg0;
6550 wxWindowID _arg1 = (wxWindowID ) -1;
6551 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6552 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6553 long _arg4 = (long ) wxSP_HORIZONTAL;
6554 char * _arg5 = (char *) "spinButton";
6555 PyObject * _argo0 = 0;
6556 wxPoint temp;
6557 PyObject * _obj2 = 0;
6558 wxSize temp0;
6559 PyObject * _obj3 = 0;
6560 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6561 char _ptemp[128];
6562
6563 self = self;
6564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
6565 return NULL;
6566 if (_argo0) {
6567 if (_argo0 == Py_None) { _arg0 = NULL; }
6568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p.");
6570 return NULL;
6571 }
6572 }
6573 if (_obj2)
6574 {
6575 _arg2 = &temp;
6576 if (! wxPoint_helper(_obj2, &_arg2))
6577 return NULL;
6578 }
6579 if (_obj3)
6580 {
6581 _arg3 = &temp0;
6582 if (! wxSize_helper(_obj3, &_arg3))
6583 return NULL;
6584 }
6585 {
6586 wxPy_BEGIN_ALLOW_THREADS;
6587 _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
6588
6589 wxPy_END_ALLOW_THREADS;
6590 if (PyErr_Occurred()) return NULL;
6591 } if (_result) {
6592 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
6593 _resultobj = Py_BuildValue("s",_ptemp);
6594 } else {
6595 Py_INCREF(Py_None);
6596 _resultobj = Py_None;
6597 }
6598 return _resultobj;
6599 }
6600
6601 #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax())
6602 static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6603 PyObject * _resultobj;
6604 int _result;
6605 wxSpinButton * _arg0;
6606 PyObject * _argo0 = 0;
6607 char *_kwnames[] = { "self", NULL };
6608
6609 self = self;
6610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0))
6611 return NULL;
6612 if (_argo0) {
6613 if (_argo0 == Py_None) { _arg0 = NULL; }
6614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
6615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p.");
6616 return NULL;
6617 }
6618 }
6619 {
6620 wxPy_BEGIN_ALLOW_THREADS;
6621 _result = (int )wxSpinButton_GetMax(_arg0);
6622
6623 wxPy_END_ALLOW_THREADS;
6624 if (PyErr_Occurred()) return NULL;
6625 } _resultobj = Py_BuildValue("i",_result);
6626 return _resultobj;
6627 }
6628
6629 #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin())
6630 static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6631 PyObject * _resultobj;
6632 int _result;
6633 wxSpinButton * _arg0;
6634 PyObject * _argo0 = 0;
6635 char *_kwnames[] = { "self", NULL };
6636
6637 self = self;
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0))
6639 return NULL;
6640 if (_argo0) {
6641 if (_argo0 == Py_None) { _arg0 = NULL; }
6642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
6643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p.");
6644 return NULL;
6645 }
6646 }
6647 {
6648 wxPy_BEGIN_ALLOW_THREADS;
6649 _result = (int )wxSpinButton_GetMin(_arg0);
6650
6651 wxPy_END_ALLOW_THREADS;
6652 if (PyErr_Occurred()) return NULL;
6653 } _resultobj = Py_BuildValue("i",_result);
6654 return _resultobj;
6655 }
6656
6657 #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue())
6658 static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject * _resultobj;
6660 int _result;
6661 wxSpinButton * _arg0;
6662 PyObject * _argo0 = 0;
6663 char *_kwnames[] = { "self", NULL };
6664
6665 self = self;
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0))
6667 return NULL;
6668 if (_argo0) {
6669 if (_argo0 == Py_None) { _arg0 = NULL; }
6670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
6671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p.");
6672 return NULL;
6673 }
6674 }
6675 {
6676 wxPy_BEGIN_ALLOW_THREADS;
6677 _result = (int )wxSpinButton_GetValue(_arg0);
6678
6679 wxPy_END_ALLOW_THREADS;
6680 if (PyErr_Occurred()) return NULL;
6681 } _resultobj = Py_BuildValue("i",_result);
6682 return _resultobj;
6683 }
6684
6685 #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
6686 static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject * _resultobj;
6688 wxSpinButton * _arg0;
6689 int _arg1;
6690 int _arg2;
6691 PyObject * _argo0 = 0;
6692 char *_kwnames[] = { "self","min","max", NULL };
6693
6694 self = self;
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
6696 return NULL;
6697 if (_argo0) {
6698 if (_argo0 == Py_None) { _arg0 = NULL; }
6699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
6700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p.");
6701 return NULL;
6702 }
6703 }
6704 {
6705 wxPy_BEGIN_ALLOW_THREADS;
6706 wxSpinButton_SetRange(_arg0,_arg1,_arg2);
6707
6708 wxPy_END_ALLOW_THREADS;
6709 if (PyErr_Occurred()) return NULL;
6710 } Py_INCREF(Py_None);
6711 _resultobj = Py_None;
6712 return _resultobj;
6713 }
6714
6715 #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
6716 static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6717 PyObject * _resultobj;
6718 wxSpinButton * _arg0;
6719 int _arg1;
6720 PyObject * _argo0 = 0;
6721 char *_kwnames[] = { "self","value", NULL };
6722
6723 self = self;
6724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1))
6725 return NULL;
6726 if (_argo0) {
6727 if (_argo0 == Py_None) { _arg0 = NULL; }
6728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
6729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p.");
6730 return NULL;
6731 }
6732 }
6733 {
6734 wxPy_BEGIN_ALLOW_THREADS;
6735 wxSpinButton_SetValue(_arg0,_arg1);
6736
6737 wxPy_END_ALLOW_THREADS;
6738 if (PyErr_Occurred()) return NULL;
6739 } Py_INCREF(Py_None);
6740 _resultobj = Py_None;
6741 return _resultobj;
6742 }
6743
6744 static void *SwigwxStaticBitmapTowxControl(void *ptr) {
6745 wxStaticBitmap *src;
6746 wxControl *dest;
6747 src = (wxStaticBitmap *) ptr;
6748 dest = (wxControl *) src;
6749 return (void *) dest;
6750 }
6751
6752 static void *SwigwxStaticBitmapTowxWindow(void *ptr) {
6753 wxStaticBitmap *src;
6754 wxWindow *dest;
6755 src = (wxStaticBitmap *) ptr;
6756 dest = (wxWindow *) src;
6757 return (void *) dest;
6758 }
6759
6760 static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) {
6761 wxStaticBitmap *src;
6762 wxEvtHandler *dest;
6763 src = (wxStaticBitmap *) ptr;
6764 dest = (wxEvtHandler *) src;
6765 return (void *) dest;
6766 }
6767
6768 static void *SwigwxStaticBitmapTowxObject(void *ptr) {
6769 wxStaticBitmap *src;
6770 wxObject *dest;
6771 src = (wxStaticBitmap *) ptr;
6772 dest = (wxObject *) src;
6773 return (void *) dest;
6774 }
6775
6776 #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6777 static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject * _resultobj;
6779 wxStaticBitmap * _result;
6780 wxWindow * _arg0;
6781 wxWindowID _arg1;
6782 wxBitmap * _arg2;
6783 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6784 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6785 long _arg5 = (long ) 0;
6786 char * _arg6 = (char *) "staticBitmap";
6787 PyObject * _argo0 = 0;
6788 PyObject * _argo2 = 0;
6789 wxPoint temp;
6790 PyObject * _obj3 = 0;
6791 wxSize temp0;
6792 PyObject * _obj4 = 0;
6793 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL };
6794 char _ptemp[128];
6795
6796 self = self;
6797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
6798 return NULL;
6799 if (_argo0) {
6800 if (_argo0 == Py_None) { _arg0 = NULL; }
6801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p.");
6803 return NULL;
6804 }
6805 }
6806 if (_argo2) {
6807 if (_argo2 == Py_None) { _arg2 = NULL; }
6808 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6809 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p.");
6810 return NULL;
6811 }
6812 }
6813 if (_obj3)
6814 {
6815 _arg3 = &temp;
6816 if (! wxPoint_helper(_obj3, &_arg3))
6817 return NULL;
6818 }
6819 if (_obj4)
6820 {
6821 _arg4 = &temp0;
6822 if (! wxSize_helper(_obj4, &_arg4))
6823 return NULL;
6824 }
6825 {
6826 wxPy_BEGIN_ALLOW_THREADS;
6827 _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
6828
6829 wxPy_END_ALLOW_THREADS;
6830 if (PyErr_Occurred()) return NULL;
6831 } if (_result) {
6832 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
6833 _resultobj = Py_BuildValue("s",_ptemp);
6834 } else {
6835 Py_INCREF(Py_None);
6836 _resultobj = Py_None;
6837 }
6838 return _resultobj;
6839 }
6840
6841 #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap())
6842 static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6843 PyObject * _resultobj;
6844 wxBitmap * _result;
6845 wxStaticBitmap * _arg0;
6846 PyObject * _argo0 = 0;
6847 char *_kwnames[] = { "self", NULL };
6848 char _ptemp[128];
6849
6850 self = self;
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0))
6852 return NULL;
6853 if (_argo0) {
6854 if (_argo0 == Py_None) { _arg0 = NULL; }
6855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
6856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p.");
6857 return NULL;
6858 }
6859 }
6860 {
6861 wxPy_BEGIN_ALLOW_THREADS;
6862 const wxBitmap & _result_ref = wxStaticBitmap_GetBitmap(_arg0);
6863 _result = (wxBitmap *) &_result_ref;
6864
6865 wxPy_END_ALLOW_THREADS;
6866 if (PyErr_Occurred()) return NULL;
6867 } if (_result) {
6868 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6869 _resultobj = Py_BuildValue("s",_ptemp);
6870 } else {
6871 Py_INCREF(Py_None);
6872 _resultobj = Py_None;
6873 }
6874 return _resultobj;
6875 }
6876
6877 #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
6878 static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6879 PyObject * _resultobj;
6880 wxStaticBitmap * _arg0;
6881 wxBitmap * _arg1;
6882 PyObject * _argo0 = 0;
6883 PyObject * _argo1 = 0;
6884 char *_kwnames[] = { "self","bitmap", NULL };
6885
6886 self = self;
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1))
6888 return NULL;
6889 if (_argo0) {
6890 if (_argo0 == Py_None) { _arg0 = NULL; }
6891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
6892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p.");
6893 return NULL;
6894 }
6895 }
6896 if (_argo1) {
6897 if (_argo1 == Py_None) { _arg1 = NULL; }
6898 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6899 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p.");
6900 return NULL;
6901 }
6902 }
6903 {
6904 wxPy_BEGIN_ALLOW_THREADS;
6905 wxStaticBitmap_SetBitmap(_arg0,*_arg1);
6906
6907 wxPy_END_ALLOW_THREADS;
6908 if (PyErr_Occurred()) return NULL;
6909 } Py_INCREF(Py_None);
6910 _resultobj = Py_None;
6911 return _resultobj;
6912 }
6913
6914 #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
6915 static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6916 PyObject * _resultobj;
6917 wxStaticBitmap * _arg0;
6918 wxIcon * _arg1;
6919 PyObject * _argo0 = 0;
6920 PyObject * _argo1 = 0;
6921 char *_kwnames[] = { "self","icon", NULL };
6922
6923 self = self;
6924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1))
6925 return NULL;
6926 if (_argo0) {
6927 if (_argo0 == Py_None) { _arg0 = NULL; }
6928 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
6929 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p.");
6930 return NULL;
6931 }
6932 }
6933 if (_argo1) {
6934 if (_argo1 == Py_None) { _arg1 = NULL; }
6935 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6936 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p.");
6937 return NULL;
6938 }
6939 }
6940 {
6941 wxPy_BEGIN_ALLOW_THREADS;
6942 wxStaticBitmap_SetIcon(_arg0,*_arg1);
6943
6944 wxPy_END_ALLOW_THREADS;
6945 if (PyErr_Occurred()) return NULL;
6946 } Py_INCREF(Py_None);
6947 _resultobj = Py_None;
6948 return _resultobj;
6949 }
6950
6951 static void *SwigwxRadioBoxTowxControl(void *ptr) {
6952 wxRadioBox *src;
6953 wxControl *dest;
6954 src = (wxRadioBox *) ptr;
6955 dest = (wxControl *) src;
6956 return (void *) dest;
6957 }
6958
6959 static void *SwigwxRadioBoxTowxWindow(void *ptr) {
6960 wxRadioBox *src;
6961 wxWindow *dest;
6962 src = (wxRadioBox *) ptr;
6963 dest = (wxWindow *) src;
6964 return (void *) dest;
6965 }
6966
6967 static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) {
6968 wxRadioBox *src;
6969 wxEvtHandler *dest;
6970 src = (wxRadioBox *) ptr;
6971 dest = (wxEvtHandler *) src;
6972 return (void *) dest;
6973 }
6974
6975 static void *SwigwxRadioBoxTowxObject(void *ptr) {
6976 wxRadioBox *src;
6977 wxObject *dest;
6978 src = (wxRadioBox *) ptr;
6979 dest = (wxObject *) src;
6980 return (void *) dest;
6981 }
6982
6983 #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))
6984 static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6985 PyObject * _resultobj;
6986 wxRadioBox * _result;
6987 wxWindow * _arg0;
6988 wxWindowID _arg1;
6989 wxString * _arg2;
6990 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6991 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6992 int _arg5 = (int ) 0;
6993 wxString * _arg6 = (wxString *) NULL;
6994 int _arg7 = (int ) 0;
6995 long _arg8 = (long ) wxRA_HORIZONTAL;
6996 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
6997 char * _arg10 = (char *) "radioBox";
6998 PyObject * _argo0 = 0;
6999 PyObject * _obj2 = 0;
7000 wxPoint temp;
7001 PyObject * _obj3 = 0;
7002 wxSize temp0;
7003 PyObject * _obj4 = 0;
7004 PyObject * _obj6 = 0;
7005 PyObject * _argo9 = 0;
7006 char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
7007 char _ptemp[128];
7008
7009 self = self;
7010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10))
7011 return NULL;
7012 if (_argo0) {
7013 if (_argo0 == Py_None) { _arg0 = NULL; }
7014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p.");
7016 return NULL;
7017 }
7018 }
7019 {
7020 #if PYTHON_API_VERSION >= 1009
7021 char* tmpPtr; int tmpSize;
7022 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7023 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7024 return NULL;
7025 }
7026 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7027 return NULL;
7028 _arg2 = new wxString(tmpPtr, tmpSize);
7029 #else
7030 if (!PyString_Check(_obj2)) {
7031 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7032 return NULL;
7033 }
7034 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7035 #endif
7036 }
7037 if (_obj3)
7038 {
7039 _arg3 = &temp;
7040 if (! wxPoint_helper(_obj3, &_arg3))
7041 return NULL;
7042 }
7043 if (_obj4)
7044 {
7045 _arg4 = &temp0;
7046 if (! wxSize_helper(_obj4, &_arg4))
7047 return NULL;
7048 }
7049 if (_obj6)
7050 {
7051 _arg6 = wxString_LIST_helper(_obj6);
7052 if (_arg6 == NULL) {
7053 return NULL;
7054 }
7055 }
7056 if (_argo9) {
7057 if (_argo9 == Py_None) { _arg9 = NULL; }
7058 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
7059 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p.");
7060 return NULL;
7061 }
7062 }
7063 {
7064 if (_obj6) {
7065 _arg5 = PyList_Size(_obj6);
7066 }
7067 else {
7068 _arg5 = 0;
7069 }
7070 }
7071 {
7072 wxPy_BEGIN_ALLOW_THREADS;
7073 _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
7074
7075 wxPy_END_ALLOW_THREADS;
7076 if (PyErr_Occurred()) return NULL;
7077 } if (_result) {
7078 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
7079 _resultobj = Py_BuildValue("s",_ptemp);
7080 } else {
7081 Py_INCREF(Py_None);
7082 _resultobj = Py_None;
7083 }
7084 {
7085 if (_obj2)
7086 delete _arg2;
7087 }
7088 {
7089 delete [] _arg6;
7090 }
7091 return _resultobj;
7092 }
7093
7094 #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
7095 static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject * _resultobj;
7097 wxRadioBox * _arg0;
7098 bool _arg1;
7099 PyObject * _argo0 = 0;
7100 int tempbool1;
7101 char *_kwnames[] = { "self","enable", NULL };
7102
7103 self = self;
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1))
7105 return NULL;
7106 if (_argo0) {
7107 if (_argo0 == Py_None) { _arg0 = NULL; }
7108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p.");
7110 return NULL;
7111 }
7112 }
7113 _arg1 = (bool ) tempbool1;
7114 {
7115 wxPy_BEGIN_ALLOW_THREADS;
7116 wxRadioBox_Enable(_arg0,_arg1);
7117
7118 wxPy_END_ALLOW_THREADS;
7119 if (PyErr_Occurred()) return NULL;
7120 } Py_INCREF(Py_None);
7121 _resultobj = Py_None;
7122 return _resultobj;
7123 }
7124
7125 #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7126 static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7127 PyObject * _resultobj;
7128 wxRadioBox * _arg0;
7129 int _arg1;
7130 bool _arg2;
7131 PyObject * _argo0 = 0;
7132 int tempbool2;
7133 char *_kwnames[] = { "self","n","enable", NULL };
7134
7135 self = self;
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2))
7137 return NULL;
7138 if (_argo0) {
7139 if (_argo0 == Py_None) { _arg0 = NULL; }
7140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p.");
7142 return NULL;
7143 }
7144 }
7145 _arg2 = (bool ) tempbool2;
7146 {
7147 wxPy_BEGIN_ALLOW_THREADS;
7148 wxRadioBox_EnableItem(_arg0,_arg1,_arg2);
7149
7150 wxPy_END_ALLOW_THREADS;
7151 if (PyErr_Occurred()) return NULL;
7152 } Py_INCREF(Py_None);
7153 _resultobj = Py_None;
7154 return _resultobj;
7155 }
7156
7157 #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
7158 static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
7159 PyObject * _resultobj;
7160 int _result;
7161 wxRadioBox * _arg0;
7162 wxString * _arg1;
7163 PyObject * _argo0 = 0;
7164 PyObject * _obj1 = 0;
7165 char *_kwnames[] = { "self","string", NULL };
7166
7167 self = self;
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1))
7169 return NULL;
7170 if (_argo0) {
7171 if (_argo0 == Py_None) { _arg0 = NULL; }
7172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p.");
7174 return NULL;
7175 }
7176 }
7177 {
7178 #if PYTHON_API_VERSION >= 1009
7179 char* tmpPtr; int tmpSize;
7180 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7181 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7182 return NULL;
7183 }
7184 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7185 return NULL;
7186 _arg1 = new wxString(tmpPtr, tmpSize);
7187 #else
7188 if (!PyString_Check(_obj1)) {
7189 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7190 return NULL;
7191 }
7192 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7193 #endif
7194 }
7195 {
7196 wxPy_BEGIN_ALLOW_THREADS;
7197 _result = (int )wxRadioBox_FindString(_arg0,*_arg1);
7198
7199 wxPy_END_ALLOW_THREADS;
7200 if (PyErr_Occurred()) return NULL;
7201 } _resultobj = Py_BuildValue("i",_result);
7202 {
7203 if (_obj1)
7204 delete _arg1;
7205 }
7206 return _resultobj;
7207 }
7208
7209 #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7210 static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject * _resultobj;
7212 wxString * _result;
7213 wxRadioBox * _arg0;
7214 int _arg1;
7215 PyObject * _argo0 = 0;
7216 char *_kwnames[] = { "self","n", NULL };
7217
7218 self = self;
7219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1))
7220 return NULL;
7221 if (_argo0) {
7222 if (_argo0 == Py_None) { _arg0 = NULL; }
7223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p.");
7225 return NULL;
7226 }
7227 }
7228 {
7229 wxPy_BEGIN_ALLOW_THREADS;
7230 _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1));
7231
7232 wxPy_END_ALLOW_THREADS;
7233 if (PyErr_Occurred()) return NULL;
7234 }{
7235 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7236 }
7237 {
7238 delete _result;
7239 }
7240 return _resultobj;
7241 }
7242
7243 #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection())
7244 static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject * _resultobj;
7246 int _result;
7247 wxRadioBox * _arg0;
7248 PyObject * _argo0 = 0;
7249 char *_kwnames[] = { "self", NULL };
7250
7251 self = self;
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0))
7253 return NULL;
7254 if (_argo0) {
7255 if (_argo0 == Py_None) { _arg0 = NULL; }
7256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p.");
7258 return NULL;
7259 }
7260 }
7261 {
7262 wxPy_BEGIN_ALLOW_THREADS;
7263 _result = (int )wxRadioBox_GetSelection(_arg0);
7264
7265 wxPy_END_ALLOW_THREADS;
7266 if (PyErr_Occurred()) return NULL;
7267 } _resultobj = Py_BuildValue("i",_result);
7268 return _resultobj;
7269 }
7270
7271 #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
7272 static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject * _resultobj;
7274 wxString * _result;
7275 wxRadioBox * _arg0;
7276 int _arg1;
7277 PyObject * _argo0 = 0;
7278 char *_kwnames[] = { "self","n", NULL };
7279
7280 self = self;
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1))
7282 return NULL;
7283 if (_argo0) {
7284 if (_argo0 == Py_None) { _arg0 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p.");
7287 return NULL;
7288 }
7289 }
7290 {
7291 wxPy_BEGIN_ALLOW_THREADS;
7292 _result = new wxString (wxRadioBox_GetString(_arg0,_arg1));
7293
7294 wxPy_END_ALLOW_THREADS;
7295 if (PyErr_Occurred()) return NULL;
7296 }{
7297 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7298 }
7299 {
7300 delete _result;
7301 }
7302 return _resultobj;
7303 }
7304
7305 #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
7306 static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7307 PyObject * _resultobj;
7308 wxString * _result;
7309 wxRadioBox * _arg0;
7310 PyObject * _argo0 = 0;
7311 char *_kwnames[] = { "self", NULL };
7312
7313 self = self;
7314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0))
7315 return NULL;
7316 if (_argo0) {
7317 if (_argo0 == Py_None) { _arg0 = NULL; }
7318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p.");
7320 return NULL;
7321 }
7322 }
7323 {
7324 wxPy_BEGIN_ALLOW_THREADS;
7325 _result = new wxString (wxRadioBox_GetStringSelection(_arg0));
7326
7327 wxPy_END_ALLOW_THREADS;
7328 if (PyErr_Occurred()) return NULL;
7329 }{
7330 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7331 }
7332 {
7333 delete _result;
7334 }
7335 return _resultobj;
7336 }
7337
7338 #define wxRadioBox_Number(_swigobj) (_swigobj->Number())
7339 static PyObject *_wrap_wxRadioBox_Number(PyObject *self, PyObject *args, PyObject *kwargs) {
7340 PyObject * _resultobj;
7341 int _result;
7342 wxRadioBox * _arg0;
7343 PyObject * _argo0 = 0;
7344 char *_kwnames[] = { "self", NULL };
7345
7346 self = self;
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_Number",_kwnames,&_argo0))
7348 return NULL;
7349 if (_argo0) {
7350 if (_argo0 == Py_None) { _arg0 = NULL; }
7351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Number. Expected _wxRadioBox_p.");
7353 return NULL;
7354 }
7355 }
7356 {
7357 wxPy_BEGIN_ALLOW_THREADS;
7358 _result = (int )wxRadioBox_Number(_arg0);
7359
7360 wxPy_END_ALLOW_THREADS;
7361 if (PyErr_Occurred()) return NULL;
7362 } _resultobj = Py_BuildValue("i",_result);
7363 return _resultobj;
7364 }
7365
7366 #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7367 static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject * _resultobj;
7369 wxRadioBox * _arg0;
7370 int _arg1;
7371 wxString * _arg2;
7372 PyObject * _argo0 = 0;
7373 PyObject * _obj2 = 0;
7374 char *_kwnames[] = { "self","n","label", NULL };
7375
7376 self = self;
7377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2))
7378 return NULL;
7379 if (_argo0) {
7380 if (_argo0 == Py_None) { _arg0 = NULL; }
7381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p.");
7383 return NULL;
7384 }
7385 }
7386 {
7387 #if PYTHON_API_VERSION >= 1009
7388 char* tmpPtr; int tmpSize;
7389 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7390 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7391 return NULL;
7392 }
7393 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7394 return NULL;
7395 _arg2 = new wxString(tmpPtr, tmpSize);
7396 #else
7397 if (!PyString_Check(_obj2)) {
7398 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7399 return NULL;
7400 }
7401 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7402 #endif
7403 }
7404 {
7405 wxPy_BEGIN_ALLOW_THREADS;
7406 wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2);
7407
7408 wxPy_END_ALLOW_THREADS;
7409 if (PyErr_Occurred()) return NULL;
7410 } Py_INCREF(Py_None);
7411 _resultobj = Py_None;
7412 {
7413 if (_obj2)
7414 delete _arg2;
7415 }
7416 return _resultobj;
7417 }
7418
7419 #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
7420 static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7421 PyObject * _resultobj;
7422 wxRadioBox * _arg0;
7423 int _arg1;
7424 PyObject * _argo0 = 0;
7425 char *_kwnames[] = { "self","n", NULL };
7426
7427 self = self;
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1))
7429 return NULL;
7430 if (_argo0) {
7431 if (_argo0 == Py_None) { _arg0 = NULL; }
7432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p.");
7434 return NULL;
7435 }
7436 }
7437 {
7438 wxPy_BEGIN_ALLOW_THREADS;
7439 wxRadioBox_SetSelection(_arg0,_arg1);
7440
7441 wxPy_END_ALLOW_THREADS;
7442 if (PyErr_Occurred()) return NULL;
7443 } Py_INCREF(Py_None);
7444 _resultobj = Py_None;
7445 return _resultobj;
7446 }
7447
7448 #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
7449 static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7450 PyObject * _resultobj;
7451 wxRadioBox * _arg0;
7452 wxString * _arg1;
7453 PyObject * _argo0 = 0;
7454 PyObject * _obj1 = 0;
7455 char *_kwnames[] = { "self","string", NULL };
7456
7457 self = self;
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1))
7459 return NULL;
7460 if (_argo0) {
7461 if (_argo0 == Py_None) { _arg0 = NULL; }
7462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p.");
7464 return NULL;
7465 }
7466 }
7467 {
7468 #if PYTHON_API_VERSION >= 1009
7469 char* tmpPtr; int tmpSize;
7470 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7471 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7472 return NULL;
7473 }
7474 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7475 return NULL;
7476 _arg1 = new wxString(tmpPtr, tmpSize);
7477 #else
7478 if (!PyString_Check(_obj1)) {
7479 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7480 return NULL;
7481 }
7482 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7483 #endif
7484 }
7485 {
7486 wxPy_BEGIN_ALLOW_THREADS;
7487 wxRadioBox_SetStringSelection(_arg0,*_arg1);
7488
7489 wxPy_END_ALLOW_THREADS;
7490 if (PyErr_Occurred()) return NULL;
7491 } Py_INCREF(Py_None);
7492 _resultobj = Py_None;
7493 {
7494 if (_obj1)
7495 delete _arg1;
7496 }
7497 return _resultobj;
7498 }
7499
7500 #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
7501 static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject * _resultobj;
7503 wxRadioBox * _arg0;
7504 bool _arg1;
7505 PyObject * _argo0 = 0;
7506 int tempbool1;
7507 char *_kwnames[] = { "self","show", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p.");
7516 return NULL;
7517 }
7518 }
7519 _arg1 = (bool ) tempbool1;
7520 {
7521 wxPy_BEGIN_ALLOW_THREADS;
7522 wxRadioBox_Show(_arg0,_arg1);
7523
7524 wxPy_END_ALLOW_THREADS;
7525 if (PyErr_Occurred()) return NULL;
7526 } Py_INCREF(Py_None);
7527 _resultobj = Py_None;
7528 return _resultobj;
7529 }
7530
7531 #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1))
7532 static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7533 PyObject * _resultobj;
7534 wxRadioBox * _arg0;
7535 int _arg1;
7536 bool _arg2;
7537 PyObject * _argo0 = 0;
7538 int tempbool2;
7539 char *_kwnames[] = { "self","item","show", NULL };
7540
7541 self = self;
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2))
7543 return NULL;
7544 if (_argo0) {
7545 if (_argo0 == Py_None) { _arg0 = NULL; }
7546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
7547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p.");
7548 return NULL;
7549 }
7550 }
7551 _arg2 = (bool ) tempbool2;
7552 {
7553 wxPy_BEGIN_ALLOW_THREADS;
7554 wxRadioBox_ShowItem(_arg0,_arg1,_arg2);
7555
7556 wxPy_END_ALLOW_THREADS;
7557 if (PyErr_Occurred()) return NULL;
7558 } Py_INCREF(Py_None);
7559 _resultobj = Py_None;
7560 return _resultobj;
7561 }
7562
7563 static void *SwigwxRadioButtonTowxControl(void *ptr) {
7564 wxRadioButton *src;
7565 wxControl *dest;
7566 src = (wxRadioButton *) ptr;
7567 dest = (wxControl *) src;
7568 return (void *) dest;
7569 }
7570
7571 static void *SwigwxRadioButtonTowxWindow(void *ptr) {
7572 wxRadioButton *src;
7573 wxWindow *dest;
7574 src = (wxRadioButton *) ptr;
7575 dest = (wxWindow *) src;
7576 return (void *) dest;
7577 }
7578
7579 static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) {
7580 wxRadioButton *src;
7581 wxEvtHandler *dest;
7582 src = (wxRadioButton *) ptr;
7583 dest = (wxEvtHandler *) src;
7584 return (void *) dest;
7585 }
7586
7587 static void *SwigwxRadioButtonTowxObject(void *ptr) {
7588 wxRadioButton *src;
7589 wxObject *dest;
7590 src = (wxRadioButton *) ptr;
7591 dest = (wxObject *) src;
7592 return (void *) dest;
7593 }
7594
7595 #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
7596 static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
7597 PyObject * _resultobj;
7598 wxRadioButton * _result;
7599 wxWindow * _arg0;
7600 wxWindowID _arg1;
7601 wxString * _arg2;
7602 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7603 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7604 long _arg5 = (long ) 0;
7605 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
7606 char * _arg7 = (char *) "radioButton";
7607 PyObject * _argo0 = 0;
7608 PyObject * _obj2 = 0;
7609 wxPoint temp;
7610 PyObject * _obj3 = 0;
7611 wxSize temp0;
7612 PyObject * _obj4 = 0;
7613 PyObject * _argo6 = 0;
7614 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
7615 char _ptemp[128];
7616
7617 self = self;
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
7619 return NULL;
7620 if (_argo0) {
7621 if (_argo0 == Py_None) { _arg0 = NULL; }
7622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p.");
7624 return NULL;
7625 }
7626 }
7627 {
7628 #if PYTHON_API_VERSION >= 1009
7629 char* tmpPtr; int tmpSize;
7630 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7632 return NULL;
7633 }
7634 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7635 return NULL;
7636 _arg2 = new wxString(tmpPtr, tmpSize);
7637 #else
7638 if (!PyString_Check(_obj2)) {
7639 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7640 return NULL;
7641 }
7642 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7643 #endif
7644 }
7645 if (_obj3)
7646 {
7647 _arg3 = &temp;
7648 if (! wxPoint_helper(_obj3, &_arg3))
7649 return NULL;
7650 }
7651 if (_obj4)
7652 {
7653 _arg4 = &temp0;
7654 if (! wxSize_helper(_obj4, &_arg4))
7655 return NULL;
7656 }
7657 if (_argo6) {
7658 if (_argo6 == Py_None) { _arg6 = NULL; }
7659 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
7660 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p.");
7661 return NULL;
7662 }
7663 }
7664 {
7665 wxPy_BEGIN_ALLOW_THREADS;
7666 _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
7667
7668 wxPy_END_ALLOW_THREADS;
7669 if (PyErr_Occurred()) return NULL;
7670 } if (_result) {
7671 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
7672 _resultobj = Py_BuildValue("s",_ptemp);
7673 } else {
7674 Py_INCREF(Py_None);
7675 _resultobj = Py_None;
7676 }
7677 {
7678 if (_obj2)
7679 delete _arg2;
7680 }
7681 return _resultobj;
7682 }
7683
7684 #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue())
7685 static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject * _resultobj;
7687 bool _result;
7688 wxRadioButton * _arg0;
7689 PyObject * _argo0 = 0;
7690 char *_kwnames[] = { "self", NULL };
7691
7692 self = self;
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0))
7694 return NULL;
7695 if (_argo0) {
7696 if (_argo0 == Py_None) { _arg0 = NULL; }
7697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
7698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p.");
7699 return NULL;
7700 }
7701 }
7702 {
7703 wxPy_BEGIN_ALLOW_THREADS;
7704 _result = (bool )wxRadioButton_GetValue(_arg0);
7705
7706 wxPy_END_ALLOW_THREADS;
7707 if (PyErr_Occurred()) return NULL;
7708 } _resultobj = Py_BuildValue("i",_result);
7709 return _resultobj;
7710 }
7711
7712 #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
7713 static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject * _resultobj;
7715 wxRadioButton * _arg0;
7716 bool _arg1;
7717 PyObject * _argo0 = 0;
7718 int tempbool1;
7719 char *_kwnames[] = { "self","value", NULL };
7720
7721 self = self;
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1))
7723 return NULL;
7724 if (_argo0) {
7725 if (_argo0 == Py_None) { _arg0 = NULL; }
7726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
7727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p.");
7728 return NULL;
7729 }
7730 }
7731 _arg1 = (bool ) tempbool1;
7732 {
7733 wxPy_BEGIN_ALLOW_THREADS;
7734 wxRadioButton_SetValue(_arg0,_arg1);
7735
7736 wxPy_END_ALLOW_THREADS;
7737 if (PyErr_Occurred()) return NULL;
7738 } Py_INCREF(Py_None);
7739 _resultobj = Py_None;
7740 return _resultobj;
7741 }
7742
7743 static void *SwigwxSliderTowxControl(void *ptr) {
7744 wxSlider *src;
7745 wxControl *dest;
7746 src = (wxSlider *) ptr;
7747 dest = (wxControl *) src;
7748 return (void *) dest;
7749 }
7750
7751 static void *SwigwxSliderTowxWindow(void *ptr) {
7752 wxSlider *src;
7753 wxWindow *dest;
7754 src = (wxSlider *) ptr;
7755 dest = (wxWindow *) src;
7756 return (void *) dest;
7757 }
7758
7759 static void *SwigwxSliderTowxEvtHandler(void *ptr) {
7760 wxSlider *src;
7761 wxEvtHandler *dest;
7762 src = (wxSlider *) ptr;
7763 dest = (wxEvtHandler *) src;
7764 return (void *) dest;
7765 }
7766
7767 static void *SwigwxSliderTowxObject(void *ptr) {
7768 wxSlider *src;
7769 wxObject *dest;
7770 src = (wxSlider *) ptr;
7771 dest = (wxObject *) src;
7772 return (void *) dest;
7773 }
7774
7775 #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))
7776 static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
7777 PyObject * _resultobj;
7778 wxSlider * _result;
7779 wxWindow * _arg0;
7780 wxWindowID _arg1;
7781 int _arg2;
7782 int _arg3;
7783 int _arg4;
7784 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
7785 wxSize * _arg6 = (wxSize *) &wxDefaultSize;
7786 long _arg7 = (long ) wxSL_HORIZONTAL;
7787 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
7788 char * _arg9 = (char *) "slider";
7789 PyObject * _argo0 = 0;
7790 wxPoint temp;
7791 PyObject * _obj5 = 0;
7792 wxSize temp0;
7793 PyObject * _obj6 = 0;
7794 PyObject * _argo8 = 0;
7795 char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
7796 char _ptemp[128];
7797
7798 self = self;
7799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9))
7800 return NULL;
7801 if (_argo0) {
7802 if (_argo0 == Py_None) { _arg0 = NULL; }
7803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p.");
7805 return NULL;
7806 }
7807 }
7808 if (_obj5)
7809 {
7810 _arg5 = &temp;
7811 if (! wxPoint_helper(_obj5, &_arg5))
7812 return NULL;
7813 }
7814 if (_obj6)
7815 {
7816 _arg6 = &temp0;
7817 if (! wxSize_helper(_obj6, &_arg6))
7818 return NULL;
7819 }
7820 if (_argo8) {
7821 if (_argo8 == Py_None) { _arg8 = NULL; }
7822 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
7823 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p.");
7824 return NULL;
7825 }
7826 }
7827 {
7828 wxPy_BEGIN_ALLOW_THREADS;
7829 _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9);
7830
7831 wxPy_END_ALLOW_THREADS;
7832 if (PyErr_Occurred()) return NULL;
7833 } if (_result) {
7834 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
7835 _resultobj = Py_BuildValue("s",_ptemp);
7836 } else {
7837 Py_INCREF(Py_None);
7838 _resultobj = Py_None;
7839 }
7840 return _resultobj;
7841 }
7842
7843 #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel())
7844 static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
7845 PyObject * _resultobj;
7846 wxSlider * _arg0;
7847 PyObject * _argo0 = 0;
7848 char *_kwnames[] = { "self", NULL };
7849
7850 self = self;
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0))
7852 return NULL;
7853 if (_argo0) {
7854 if (_argo0 == Py_None) { _arg0 = NULL; }
7855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p.");
7857 return NULL;
7858 }
7859 }
7860 {
7861 wxPy_BEGIN_ALLOW_THREADS;
7862 wxSlider_ClearSel(_arg0);
7863
7864 wxPy_END_ALLOW_THREADS;
7865 if (PyErr_Occurred()) return NULL;
7866 } Py_INCREF(Py_None);
7867 _resultobj = Py_None;
7868 return _resultobj;
7869 }
7870
7871 #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks())
7872 static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject * _resultobj;
7874 wxSlider * _arg0;
7875 PyObject * _argo0 = 0;
7876 char *_kwnames[] = { "self", NULL };
7877
7878 self = self;
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0))
7880 return NULL;
7881 if (_argo0) {
7882 if (_argo0 == Py_None) { _arg0 = NULL; }
7883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p.");
7885 return NULL;
7886 }
7887 }
7888 {
7889 wxPy_BEGIN_ALLOW_THREADS;
7890 wxSlider_ClearTicks(_arg0);
7891
7892 wxPy_END_ALLOW_THREADS;
7893 if (PyErr_Occurred()) return NULL;
7894 } Py_INCREF(Py_None);
7895 _resultobj = Py_None;
7896 return _resultobj;
7897 }
7898
7899 #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize())
7900 static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7901 PyObject * _resultobj;
7902 int _result;
7903 wxSlider * _arg0;
7904 PyObject * _argo0 = 0;
7905 char *_kwnames[] = { "self", NULL };
7906
7907 self = self;
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0))
7909 return NULL;
7910 if (_argo0) {
7911 if (_argo0 == Py_None) { _arg0 = NULL; }
7912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p.");
7914 return NULL;
7915 }
7916 }
7917 {
7918 wxPy_BEGIN_ALLOW_THREADS;
7919 _result = (int )wxSlider_GetLineSize(_arg0);
7920
7921 wxPy_END_ALLOW_THREADS;
7922 if (PyErr_Occurred()) return NULL;
7923 } _resultobj = Py_BuildValue("i",_result);
7924 return _resultobj;
7925 }
7926
7927 #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax())
7928 static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject * _resultobj;
7930 int _result;
7931 wxSlider * _arg0;
7932 PyObject * _argo0 = 0;
7933 char *_kwnames[] = { "self", NULL };
7934
7935 self = self;
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0))
7937 return NULL;
7938 if (_argo0) {
7939 if (_argo0 == Py_None) { _arg0 = NULL; }
7940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p.");
7942 return NULL;
7943 }
7944 }
7945 {
7946 wxPy_BEGIN_ALLOW_THREADS;
7947 _result = (int )wxSlider_GetMax(_arg0);
7948
7949 wxPy_END_ALLOW_THREADS;
7950 if (PyErr_Occurred()) return NULL;
7951 } _resultobj = Py_BuildValue("i",_result);
7952 return _resultobj;
7953 }
7954
7955 #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin())
7956 static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7957 PyObject * _resultobj;
7958 int _result;
7959 wxSlider * _arg0;
7960 PyObject * _argo0 = 0;
7961 char *_kwnames[] = { "self", NULL };
7962
7963 self = self;
7964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0))
7965 return NULL;
7966 if (_argo0) {
7967 if (_argo0 == Py_None) { _arg0 = NULL; }
7968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p.");
7970 return NULL;
7971 }
7972 }
7973 {
7974 wxPy_BEGIN_ALLOW_THREADS;
7975 _result = (int )wxSlider_GetMin(_arg0);
7976
7977 wxPy_END_ALLOW_THREADS;
7978 if (PyErr_Occurred()) return NULL;
7979 } _resultobj = Py_BuildValue("i",_result);
7980 return _resultobj;
7981 }
7982
7983 #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize())
7984 static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7985 PyObject * _resultobj;
7986 int _result;
7987 wxSlider * _arg0;
7988 PyObject * _argo0 = 0;
7989 char *_kwnames[] = { "self", NULL };
7990
7991 self = self;
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0))
7993 return NULL;
7994 if (_argo0) {
7995 if (_argo0 == Py_None) { _arg0 = NULL; }
7996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
7997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p.");
7998 return NULL;
7999 }
8000 }
8001 {
8002 wxPy_BEGIN_ALLOW_THREADS;
8003 _result = (int )wxSlider_GetPageSize(_arg0);
8004
8005 wxPy_END_ALLOW_THREADS;
8006 if (PyErr_Occurred()) return NULL;
8007 } _resultobj = Py_BuildValue("i",_result);
8008 return _resultobj;
8009 }
8010
8011 #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd())
8012 static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8013 PyObject * _resultobj;
8014 int _result;
8015 wxSlider * _arg0;
8016 PyObject * _argo0 = 0;
8017 char *_kwnames[] = { "self", NULL };
8018
8019 self = self;
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0))
8021 return NULL;
8022 if (_argo0) {
8023 if (_argo0 == Py_None) { _arg0 = NULL; }
8024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p.");
8026 return NULL;
8027 }
8028 }
8029 {
8030 wxPy_BEGIN_ALLOW_THREADS;
8031 _result = (int )wxSlider_GetSelEnd(_arg0);
8032
8033 wxPy_END_ALLOW_THREADS;
8034 if (PyErr_Occurred()) return NULL;
8035 } _resultobj = Py_BuildValue("i",_result);
8036 return _resultobj;
8037 }
8038
8039 #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart())
8040 static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject * _resultobj;
8042 int _result;
8043 wxSlider * _arg0;
8044 PyObject * _argo0 = 0;
8045 char *_kwnames[] = { "self", NULL };
8046
8047 self = self;
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0))
8049 return NULL;
8050 if (_argo0) {
8051 if (_argo0 == Py_None) { _arg0 = NULL; }
8052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p.");
8054 return NULL;
8055 }
8056 }
8057 {
8058 wxPy_BEGIN_ALLOW_THREADS;
8059 _result = (int )wxSlider_GetSelStart(_arg0);
8060
8061 wxPy_END_ALLOW_THREADS;
8062 if (PyErr_Occurred()) return NULL;
8063 } _resultobj = Py_BuildValue("i",_result);
8064 return _resultobj;
8065 }
8066
8067 #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength())
8068 static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8069 PyObject * _resultobj;
8070 int _result;
8071 wxSlider * _arg0;
8072 PyObject * _argo0 = 0;
8073 char *_kwnames[] = { "self", NULL };
8074
8075 self = self;
8076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0))
8077 return NULL;
8078 if (_argo0) {
8079 if (_argo0 == Py_None) { _arg0 = NULL; }
8080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p.");
8082 return NULL;
8083 }
8084 }
8085 {
8086 wxPy_BEGIN_ALLOW_THREADS;
8087 _result = (int )wxSlider_GetThumbLength(_arg0);
8088
8089 wxPy_END_ALLOW_THREADS;
8090 if (PyErr_Occurred()) return NULL;
8091 } _resultobj = Py_BuildValue("i",_result);
8092 return _resultobj;
8093 }
8094
8095 #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq())
8096 static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
8097 PyObject * _resultobj;
8098 int _result;
8099 wxSlider * _arg0;
8100 PyObject * _argo0 = 0;
8101 char *_kwnames[] = { "self", NULL };
8102
8103 self = self;
8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0))
8105 return NULL;
8106 if (_argo0) {
8107 if (_argo0 == Py_None) { _arg0 = NULL; }
8108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p.");
8110 return NULL;
8111 }
8112 }
8113 {
8114 wxPy_BEGIN_ALLOW_THREADS;
8115 _result = (int )wxSlider_GetTickFreq(_arg0);
8116
8117 wxPy_END_ALLOW_THREADS;
8118 if (PyErr_Occurred()) return NULL;
8119 } _resultobj = Py_BuildValue("i",_result);
8120 return _resultobj;
8121 }
8122
8123 #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue())
8124 static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8125 PyObject * _resultobj;
8126 int _result;
8127 wxSlider * _arg0;
8128 PyObject * _argo0 = 0;
8129 char *_kwnames[] = { "self", NULL };
8130
8131 self = self;
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0))
8133 return NULL;
8134 if (_argo0) {
8135 if (_argo0 == Py_None) { _arg0 = NULL; }
8136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p.");
8138 return NULL;
8139 }
8140 }
8141 {
8142 wxPy_BEGIN_ALLOW_THREADS;
8143 _result = (int )wxSlider_GetValue(_arg0);
8144
8145 wxPy_END_ALLOW_THREADS;
8146 if (PyErr_Occurred()) return NULL;
8147 } _resultobj = Py_BuildValue("i",_result);
8148 return _resultobj;
8149 }
8150
8151 #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
8152 static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject * _resultobj;
8154 wxSlider * _arg0;
8155 int _arg1;
8156 int _arg2;
8157 PyObject * _argo0 = 0;
8158 char *_kwnames[] = { "self","minValue","maxValue", NULL };
8159
8160 self = self;
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
8162 return NULL;
8163 if (_argo0) {
8164 if (_argo0 == Py_None) { _arg0 = NULL; }
8165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p.");
8167 return NULL;
8168 }
8169 }
8170 {
8171 wxPy_BEGIN_ALLOW_THREADS;
8172 wxSlider_SetRange(_arg0,_arg1,_arg2);
8173
8174 wxPy_END_ALLOW_THREADS;
8175 if (PyErr_Occurred()) return NULL;
8176 } Py_INCREF(Py_None);
8177 _resultobj = Py_None;
8178 return _resultobj;
8179 }
8180
8181 #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1))
8182 static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject * _resultobj;
8184 wxSlider * _arg0;
8185 int _arg1;
8186 int _arg2;
8187 PyObject * _argo0 = 0;
8188 char *_kwnames[] = { "self","n","pos", NULL };
8189
8190 self = self;
8191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2))
8192 return NULL;
8193 if (_argo0) {
8194 if (_argo0 == Py_None) { _arg0 = NULL; }
8195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p.");
8197 return NULL;
8198 }
8199 }
8200 {
8201 wxPy_BEGIN_ALLOW_THREADS;
8202 wxSlider_SetTickFreq(_arg0,_arg1,_arg2);
8203
8204 wxPy_END_ALLOW_THREADS;
8205 if (PyErr_Occurred()) return NULL;
8206 } Py_INCREF(Py_None);
8207 _resultobj = Py_None;
8208 return _resultobj;
8209 }
8210
8211 #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0))
8212 static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8213 PyObject * _resultobj;
8214 wxSlider * _arg0;
8215 int _arg1;
8216 PyObject * _argo0 = 0;
8217 char *_kwnames[] = { "self","lineSize", NULL };
8218
8219 self = self;
8220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1))
8221 return NULL;
8222 if (_argo0) {
8223 if (_argo0 == Py_None) { _arg0 = NULL; }
8224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p.");
8226 return NULL;
8227 }
8228 }
8229 {
8230 wxPy_BEGIN_ALLOW_THREADS;
8231 wxSlider_SetLineSize(_arg0,_arg1);
8232
8233 wxPy_END_ALLOW_THREADS;
8234 if (PyErr_Occurred()) return NULL;
8235 } Py_INCREF(Py_None);
8236 _resultobj = Py_None;
8237 return _resultobj;
8238 }
8239
8240 #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
8241 static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8242 PyObject * _resultobj;
8243 wxSlider * _arg0;
8244 int _arg1;
8245 PyObject * _argo0 = 0;
8246 char *_kwnames[] = { "self","pageSize", NULL };
8247
8248 self = self;
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1))
8250 return NULL;
8251 if (_argo0) {
8252 if (_argo0 == Py_None) { _arg0 = NULL; }
8253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p.");
8255 return NULL;
8256 }
8257 }
8258 {
8259 wxPy_BEGIN_ALLOW_THREADS;
8260 wxSlider_SetPageSize(_arg0,_arg1);
8261
8262 wxPy_END_ALLOW_THREADS;
8263 if (PyErr_Occurred()) return NULL;
8264 } Py_INCREF(Py_None);
8265 _resultobj = Py_None;
8266 return _resultobj;
8267 }
8268
8269 #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
8270 static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8271 PyObject * _resultobj;
8272 wxSlider * _arg0;
8273 int _arg1;
8274 int _arg2;
8275 PyObject * _argo0 = 0;
8276 char *_kwnames[] = { "self","startPos","endPos", NULL };
8277
8278 self = self;
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
8280 return NULL;
8281 if (_argo0) {
8282 if (_argo0 == Py_None) { _arg0 = NULL; }
8283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p.");
8285 return NULL;
8286 }
8287 }
8288 {
8289 wxPy_BEGIN_ALLOW_THREADS;
8290 wxSlider_SetSelection(_arg0,_arg1,_arg2);
8291
8292 wxPy_END_ALLOW_THREADS;
8293 if (PyErr_Occurred()) return NULL;
8294 } Py_INCREF(Py_None);
8295 _resultobj = Py_None;
8296 return _resultobj;
8297 }
8298
8299 #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0))
8300 static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
8301 PyObject * _resultobj;
8302 wxSlider * _arg0;
8303 int _arg1;
8304 PyObject * _argo0 = 0;
8305 char *_kwnames[] = { "self","len", NULL };
8306
8307 self = self;
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1))
8309 return NULL;
8310 if (_argo0) {
8311 if (_argo0 == Py_None) { _arg0 = NULL; }
8312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p.");
8314 return NULL;
8315 }
8316 }
8317 {
8318 wxPy_BEGIN_ALLOW_THREADS;
8319 wxSlider_SetThumbLength(_arg0,_arg1);
8320
8321 wxPy_END_ALLOW_THREADS;
8322 if (PyErr_Occurred()) return NULL;
8323 } Py_INCREF(Py_None);
8324 _resultobj = Py_None;
8325 return _resultobj;
8326 }
8327
8328 #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0))
8329 static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
8330 PyObject * _resultobj;
8331 wxSlider * _arg0;
8332 int _arg1;
8333 PyObject * _argo0 = 0;
8334 char *_kwnames[] = { "self","tickPos", NULL };
8335
8336 self = self;
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1))
8338 return NULL;
8339 if (_argo0) {
8340 if (_argo0 == Py_None) { _arg0 = NULL; }
8341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p.");
8343 return NULL;
8344 }
8345 }
8346 {
8347 wxPy_BEGIN_ALLOW_THREADS;
8348 wxSlider_SetTick(_arg0,_arg1);
8349
8350 wxPy_END_ALLOW_THREADS;
8351 if (PyErr_Occurred()) return NULL;
8352 } Py_INCREF(Py_None);
8353 _resultobj = Py_None;
8354 return _resultobj;
8355 }
8356
8357 #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
8358 static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8359 PyObject * _resultobj;
8360 wxSlider * _arg0;
8361 int _arg1;
8362 PyObject * _argo0 = 0;
8363 char *_kwnames[] = { "self","value", NULL };
8364
8365 self = self;
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1))
8367 return NULL;
8368 if (_argo0) {
8369 if (_argo0 == Py_None) { _arg0 = NULL; }
8370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
8371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p.");
8372 return NULL;
8373 }
8374 }
8375 {
8376 wxPy_BEGIN_ALLOW_THREADS;
8377 wxSlider_SetValue(_arg0,_arg1);
8378
8379 wxPy_END_ALLOW_THREADS;
8380 if (PyErr_Occurred()) return NULL;
8381 } Py_INCREF(Py_None);
8382 _resultobj = Py_None;
8383 return _resultobj;
8384 }
8385
8386 static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) {
8387 wxSpinCtrl *src;
8388 wxSpinButton *dest;
8389 src = (wxSpinCtrl *) ptr;
8390 dest = (wxSpinButton *) src;
8391 return (void *) dest;
8392 }
8393
8394 static void *SwigwxSpinCtrlTowxControl(void *ptr) {
8395 wxSpinCtrl *src;
8396 wxControl *dest;
8397 src = (wxSpinCtrl *) ptr;
8398 dest = (wxControl *) src;
8399 return (void *) dest;
8400 }
8401
8402 static void *SwigwxSpinCtrlTowxWindow(void *ptr) {
8403 wxSpinCtrl *src;
8404 wxWindow *dest;
8405 src = (wxSpinCtrl *) ptr;
8406 dest = (wxWindow *) src;
8407 return (void *) dest;
8408 }
8409
8410 static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) {
8411 wxSpinCtrl *src;
8412 wxEvtHandler *dest;
8413 src = (wxSpinCtrl *) ptr;
8414 dest = (wxEvtHandler *) src;
8415 return (void *) dest;
8416 }
8417
8418 static void *SwigwxSpinCtrlTowxObject(void *ptr) {
8419 wxSpinCtrl *src;
8420 wxObject *dest;
8421 src = (wxSpinCtrl *) ptr;
8422 dest = (wxObject *) src;
8423 return (void *) dest;
8424 }
8425
8426 #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))
8427 static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8428 PyObject * _resultobj;
8429 wxSpinCtrl * _result;
8430 wxWindow * _arg0;
8431 wxWindowID _arg1 = (wxWindowID ) -1;
8432 char * _arg2 = (char *) "";
8433 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8434 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8435 long _arg5 = (long ) wxSP_ARROW_KEYS;
8436 int _arg6 = (int ) 0;
8437 int _arg7 = (int ) 100;
8438 int _arg8 = (int ) 0;
8439 char * _arg9 = (char *) "wxSpinCtrl";
8440 PyObject * _argo0 = 0;
8441 wxPoint temp;
8442 PyObject * _obj3 = 0;
8443 wxSize temp0;
8444 PyObject * _obj4 = 0;
8445 char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL };
8446 char _ptemp[128];
8447
8448 self = self;
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9))
8450 return NULL;
8451 if (_argo0) {
8452 if (_argo0 == Py_None) { _arg0 = NULL; }
8453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p.");
8455 return NULL;
8456 }
8457 }
8458 if (_obj3)
8459 {
8460 _arg3 = &temp;
8461 if (! wxPoint_helper(_obj3, &_arg3))
8462 return NULL;
8463 }
8464 if (_obj4)
8465 {
8466 _arg4 = &temp0;
8467 if (! wxSize_helper(_obj4, &_arg4))
8468 return NULL;
8469 }
8470 {
8471 wxPy_BEGIN_ALLOW_THREADS;
8472 _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
8473
8474 wxPy_END_ALLOW_THREADS;
8475 if (PyErr_Occurred()) return NULL;
8476 } if (_result) {
8477 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
8478 _resultobj = Py_BuildValue("s",_ptemp);
8479 } else {
8480 Py_INCREF(Py_None);
8481 _resultobj = Py_None;
8482 }
8483 return _resultobj;
8484 }
8485
8486 #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax())
8487 static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject * _resultobj;
8489 int _result;
8490 wxSpinCtrl * _arg0;
8491 PyObject * _argo0 = 0;
8492 char *_kwnames[] = { "self", NULL };
8493
8494 self = self;
8495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0))
8496 return NULL;
8497 if (_argo0) {
8498 if (_argo0 == Py_None) { _arg0 = NULL; }
8499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
8500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p.");
8501 return NULL;
8502 }
8503 }
8504 {
8505 wxPy_BEGIN_ALLOW_THREADS;
8506 _result = (int )wxSpinCtrl_GetMax(_arg0);
8507
8508 wxPy_END_ALLOW_THREADS;
8509 if (PyErr_Occurred()) return NULL;
8510 } _resultobj = Py_BuildValue("i",_result);
8511 return _resultobj;
8512 }
8513
8514 #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin())
8515 static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
8516 PyObject * _resultobj;
8517 int _result;
8518 wxSpinCtrl * _arg0;
8519 PyObject * _argo0 = 0;
8520 char *_kwnames[] = { "self", NULL };
8521
8522 self = self;
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0))
8524 return NULL;
8525 if (_argo0) {
8526 if (_argo0 == Py_None) { _arg0 = NULL; }
8527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
8528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p.");
8529 return NULL;
8530 }
8531 }
8532 {
8533 wxPy_BEGIN_ALLOW_THREADS;
8534 _result = (int )wxSpinCtrl_GetMin(_arg0);
8535
8536 wxPy_END_ALLOW_THREADS;
8537 if (PyErr_Occurred()) return NULL;
8538 } _resultobj = Py_BuildValue("i",_result);
8539 return _resultobj;
8540 }
8541
8542 #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue())
8543 static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8544 PyObject * _resultobj;
8545 int _result;
8546 wxSpinCtrl * _arg0;
8547 PyObject * _argo0 = 0;
8548 char *_kwnames[] = { "self", NULL };
8549
8550 self = self;
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0))
8552 return NULL;
8553 if (_argo0) {
8554 if (_argo0 == Py_None) { _arg0 = NULL; }
8555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
8556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p.");
8557 return NULL;
8558 }
8559 }
8560 {
8561 wxPy_BEGIN_ALLOW_THREADS;
8562 _result = (int )wxSpinCtrl_GetValue(_arg0);
8563
8564 wxPy_END_ALLOW_THREADS;
8565 if (PyErr_Occurred()) return NULL;
8566 } _resultobj = Py_BuildValue("i",_result);
8567 return _resultobj;
8568 }
8569
8570 #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
8571 static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject * _resultobj;
8573 wxSpinCtrl * _arg0;
8574 int _arg1;
8575 int _arg2;
8576 PyObject * _argo0 = 0;
8577 char *_kwnames[] = { "self","min","max", NULL };
8578
8579 self = self;
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
8581 return NULL;
8582 if (_argo0) {
8583 if (_argo0 == Py_None) { _arg0 = NULL; }
8584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
8585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p.");
8586 return NULL;
8587 }
8588 }
8589 {
8590 wxPy_BEGIN_ALLOW_THREADS;
8591 wxSpinCtrl_SetRange(_arg0,_arg1,_arg2);
8592
8593 wxPy_END_ALLOW_THREADS;
8594 if (PyErr_Occurred()) return NULL;
8595 } Py_INCREF(Py_None);
8596 _resultobj = Py_None;
8597 return _resultobj;
8598 }
8599
8600 #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
8601 static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8602 PyObject * _resultobj;
8603 wxSpinCtrl * _arg0;
8604 int _arg1;
8605 PyObject * _argo0 = 0;
8606 char *_kwnames[] = { "self","value", NULL };
8607
8608 self = self;
8609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1))
8610 return NULL;
8611 if (_argo0) {
8612 if (_argo0 == Py_None) { _arg0 = NULL; }
8613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
8614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p.");
8615 return NULL;
8616 }
8617 }
8618 {
8619 wxPy_BEGIN_ALLOW_THREADS;
8620 wxSpinCtrl_SetValue(_arg0,_arg1);
8621
8622 wxPy_END_ALLOW_THREADS;
8623 if (PyErr_Occurred()) return NULL;
8624 } Py_INCREF(Py_None);
8625 _resultobj = Py_None;
8626 return _resultobj;
8627 }
8628
8629 static void *SwigwxToggleButtonTowxControl(void *ptr) {
8630 wxToggleButton *src;
8631 wxControl *dest;
8632 src = (wxToggleButton *) ptr;
8633 dest = (wxControl *) src;
8634 return (void *) dest;
8635 }
8636
8637 static void *SwigwxToggleButtonTowxWindow(void *ptr) {
8638 wxToggleButton *src;
8639 wxWindow *dest;
8640 src = (wxToggleButton *) ptr;
8641 dest = (wxWindow *) src;
8642 return (void *) dest;
8643 }
8644
8645 static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) {
8646 wxToggleButton *src;
8647 wxEvtHandler *dest;
8648 src = (wxToggleButton *) ptr;
8649 dest = (wxEvtHandler *) src;
8650 return (void *) dest;
8651 }
8652
8653 static void *SwigwxToggleButtonTowxObject(void *ptr) {
8654 wxToggleButton *src;
8655 wxObject *dest;
8656 src = (wxToggleButton *) ptr;
8657 dest = (wxObject *) src;
8658 return (void *) dest;
8659 }
8660
8661 #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
8662 static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
8663 PyObject * _resultobj;
8664 wxToggleButton * _result;
8665 wxWindow * _arg0;
8666 wxWindowID _arg1;
8667 wxString * _arg2;
8668 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8669 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8670 long _arg5 = (long ) 0;
8671 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
8672 char * _arg7 = (char *) "toggle";
8673 PyObject * _argo0 = 0;
8674 PyObject * _obj2 = 0;
8675 wxPoint temp;
8676 PyObject * _obj3 = 0;
8677 wxSize temp0;
8678 PyObject * _obj4 = 0;
8679 PyObject * _argo6 = 0;
8680 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
8681 char _ptemp[128];
8682
8683 self = self;
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
8685 return NULL;
8686 if (_argo0) {
8687 if (_argo0 == Py_None) { _arg0 = NULL; }
8688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p.");
8690 return NULL;
8691 }
8692 }
8693 {
8694 #if PYTHON_API_VERSION >= 1009
8695 char* tmpPtr; int tmpSize;
8696 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8697 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8698 return NULL;
8699 }
8700 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8701 return NULL;
8702 _arg2 = new wxString(tmpPtr, tmpSize);
8703 #else
8704 if (!PyString_Check(_obj2)) {
8705 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8706 return NULL;
8707 }
8708 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8709 #endif
8710 }
8711 if (_obj3)
8712 {
8713 _arg3 = &temp;
8714 if (! wxPoint_helper(_obj3, &_arg3))
8715 return NULL;
8716 }
8717 if (_obj4)
8718 {
8719 _arg4 = &temp0;
8720 if (! wxSize_helper(_obj4, &_arg4))
8721 return NULL;
8722 }
8723 if (_argo6) {
8724 if (_argo6 == Py_None) { _arg6 = NULL; }
8725 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
8726 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p.");
8727 return NULL;
8728 }
8729 }
8730 {
8731 wxPy_BEGIN_ALLOW_THREADS;
8732 _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
8733
8734 wxPy_END_ALLOW_THREADS;
8735 if (PyErr_Occurred()) return NULL;
8736 } if (_result) {
8737 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
8738 _resultobj = Py_BuildValue("s",_ptemp);
8739 } else {
8740 Py_INCREF(Py_None);
8741 _resultobj = Py_None;
8742 }
8743 {
8744 if (_obj2)
8745 delete _arg2;
8746 }
8747 return _resultobj;
8748 }
8749
8750 #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
8751 static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8752 PyObject * _resultobj;
8753 wxToggleButton * _arg0;
8754 bool _arg1;
8755 PyObject * _argo0 = 0;
8756 int tempbool1;
8757 char *_kwnames[] = { "self","value", NULL };
8758
8759 self = self;
8760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1))
8761 return NULL;
8762 if (_argo0) {
8763 if (_argo0 == Py_None) { _arg0 = NULL; }
8764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
8765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p.");
8766 return NULL;
8767 }
8768 }
8769 _arg1 = (bool ) tempbool1;
8770 {
8771 wxPy_BEGIN_ALLOW_THREADS;
8772 wxToggleButton_SetValue(_arg0,_arg1);
8773
8774 wxPy_END_ALLOW_THREADS;
8775 if (PyErr_Occurred()) return NULL;
8776 } Py_INCREF(Py_None);
8777 _resultobj = Py_None;
8778 return _resultobj;
8779 }
8780
8781 #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue())
8782 static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject * _resultobj;
8784 bool _result;
8785 wxToggleButton * _arg0;
8786 PyObject * _argo0 = 0;
8787 char *_kwnames[] = { "self", NULL };
8788
8789 self = self;
8790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0))
8791 return NULL;
8792 if (_argo0) {
8793 if (_argo0 == Py_None) { _arg0 = NULL; }
8794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
8795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p.");
8796 return NULL;
8797 }
8798 }
8799 {
8800 wxPy_BEGIN_ALLOW_THREADS;
8801 _result = (bool )wxToggleButton_GetValue(_arg0);
8802
8803 wxPy_END_ALLOW_THREADS;
8804 if (PyErr_Occurred()) return NULL;
8805 } _resultobj = Py_BuildValue("i",_result);
8806 return _resultobj;
8807 }
8808
8809 #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
8810 static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8811 PyObject * _resultobj;
8812 wxToggleButton * _arg0;
8813 wxString * _arg1;
8814 PyObject * _argo0 = 0;
8815 PyObject * _obj1 = 0;
8816 char *_kwnames[] = { "self","label", NULL };
8817
8818 self = self;
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1))
8820 return NULL;
8821 if (_argo0) {
8822 if (_argo0 == Py_None) { _arg0 = NULL; }
8823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
8824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p.");
8825 return NULL;
8826 }
8827 }
8828 {
8829 #if PYTHON_API_VERSION >= 1009
8830 char* tmpPtr; int tmpSize;
8831 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8833 return NULL;
8834 }
8835 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8836 return NULL;
8837 _arg1 = new wxString(tmpPtr, tmpSize);
8838 #else
8839 if (!PyString_Check(_obj1)) {
8840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8841 return NULL;
8842 }
8843 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8844 #endif
8845 }
8846 {
8847 wxPy_BEGIN_ALLOW_THREADS;
8848 wxToggleButton_SetLabel(_arg0,*_arg1);
8849
8850 wxPy_END_ALLOW_THREADS;
8851 if (PyErr_Occurred()) return NULL;
8852 } Py_INCREF(Py_None);
8853 _resultobj = Py_None;
8854 {
8855 if (_obj1)
8856 delete _arg1;
8857 }
8858 return _resultobj;
8859 }
8860
8861 static PyMethodDef controlscMethods[] = {
8862 { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
8863 { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
8864 { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
8865 { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS },
8866 { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
8867 { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
8868 { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
8869 { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
8870 { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
8871 { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS },
8872 { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS },
8873 { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS },
8874 { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
8875 { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS },
8876 { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
8877 { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
8878 { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
8879 { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS },
8880 { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS },
8881 { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
8882 { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
8883 { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
8884 { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
8885 { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
8886 { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS },
8887 { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS },
8888 { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
8889 { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
8890 { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS },
8891 { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS },
8892 { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
8893 { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
8894 { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS },
8895 { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
8896 { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS },
8897 { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
8898 { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
8899 { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS },
8900 { "wxRadioBox_Number", (PyCFunction) _wrap_wxRadioBox_Number, METH_VARARGS | METH_KEYWORDS },
8901 { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
8902 { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
8903 { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
8904 { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS },
8905 { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
8906 { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
8907 { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS },
8908 { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS },
8909 { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
8910 { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
8911 { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
8912 { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS },
8913 { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
8914 { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
8915 { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
8916 { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
8917 { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
8918 { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
8919 { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
8920 { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
8921 { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
8922 { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
8923 { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
8924 { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
8925 { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
8926 { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS },
8927 { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS },
8928 { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
8929 { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
8930 { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
8931 { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
8932 { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
8933 { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
8934 { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
8935 { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
8936 { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
8937 { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
8938 { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
8939 { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
8940 { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
8941 { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
8942 { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
8943 { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
8944 { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
8945 { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
8946 { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
8947 { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
8948 { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
8949 { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
8950 { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
8951 { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
8952 { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
8953 { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
8954 { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
8955 { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
8956 { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
8957 { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
8958 { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
8959 { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
8960 { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
8961 { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
8962 { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
8963 { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
8964 { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
8965 { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
8966 { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS },
8967 { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
8968 { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8969 { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
8970 { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
8971 { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8972 { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
8973 { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
8974 { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8975 { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
8976 { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
8977 { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
8978 { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
8979 { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
8980 { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
8981 { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
8982 { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS },
8983 { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
8984 { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS },
8985 { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
8986 { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
8987 { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
8988 { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS },
8989 { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS },
8990 { "wxListBox_Number", (PyCFunction) _wrap_wxListBox_Number, METH_VARARGS | METH_KEYWORDS },
8991 { "wxListBox_GetStringSelection", (PyCFunction) _wrap_wxListBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
8992 { "wxListBox_GetString", (PyCFunction) _wrap_wxListBox_GetString, METH_VARARGS | METH_KEYWORDS },
8993 { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
8994 { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
8995 { "wxListBox_GetSelection", (PyCFunction) _wrap_wxListBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
8996 { "wxListBox_FindString", (PyCFunction) _wrap_wxListBox_FindString, METH_VARARGS | METH_KEYWORDS },
8997 { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
8998 { "wxListBox_Delete", (PyCFunction) _wrap_wxListBox_Delete, METH_VARARGS | METH_KEYWORDS },
8999 { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS },
9000 { "wxListBox_Append", (PyCFunction) _wrap_wxListBox_Append, METH_VARARGS | METH_KEYWORDS },
9001 { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS },
9002 { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS },
9003 { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS },
9004 { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS },
9005 { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS },
9006 { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS },
9007 { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS },
9008 { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
9009 { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS },
9010 { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
9011 { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS },
9012 { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
9013 { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS },
9014 { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
9015 { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS },
9016 { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
9017 { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
9018 { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
9019 { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
9020 { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
9021 { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
9022 { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
9023 { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
9024 { "wxComboBox_Number", (PyCFunction) _wrap_wxComboBox_Number, METH_VARARGS | METH_KEYWORDS },
9025 { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
9026 { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
9027 { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS },
9028 { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
9029 { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
9030 { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
9031 { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS },
9032 { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS },
9033 { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
9034 { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
9035 { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS },
9036 { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS },
9037 { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS },
9038 { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
9039 { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS },
9040 { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS },
9041 { "wxChoice_Number", (PyCFunction) _wrap_wxChoice_Number, METH_VARARGS | METH_KEYWORDS },
9042 { "wxChoice_GetStringSelection", (PyCFunction) _wrap_wxChoice_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
9043 { "wxChoice_GetString", (PyCFunction) _wrap_wxChoice_GetString, METH_VARARGS | METH_KEYWORDS },
9044 { "wxChoice_GetSelection", (PyCFunction) _wrap_wxChoice_GetSelection, METH_VARARGS | METH_KEYWORDS },
9045 { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS },
9046 { "wxChoice_FindString", (PyCFunction) _wrap_wxChoice_FindString, METH_VARARGS | METH_KEYWORDS },
9047 { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS },
9048 { "wxChoice_Append", (PyCFunction) _wrap_wxChoice_Append, METH_VARARGS | METH_KEYWORDS },
9049 { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS },
9050 { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
9051 { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
9052 { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS },
9053 { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
9054 { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
9055 { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
9056 { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
9057 { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
9058 { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
9059 { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
9060 { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
9061 { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
9062 { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
9063 { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
9064 { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS },
9065 { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9066 { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9067 { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS },
9068 { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS },
9069 { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS },
9070 { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS },
9071 { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS },
9072 { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS },
9073 { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
9074 { NULL, NULL }
9075 };
9076 #ifdef __cplusplus
9077 }
9078 #endif
9079 /*
9080 * This table is used by the pointer type-checker
9081 */
9082 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
9083 { "_signed_long","_long",0},
9084 { "_wxPrintQuality","_wxCoord",0},
9085 { "_wxPrintQuality","_int",0},
9086 { "_wxPrintQuality","_signed_int",0},
9087 { "_wxPrintQuality","_unsigned_int",0},
9088 { "_wxPrintQuality","_wxWindowID",0},
9089 { "_wxPrintQuality","_uint",0},
9090 { "_wxPrintQuality","_EBool",0},
9091 { "_wxPrintQuality","_size_t",0},
9092 { "_wxPrintQuality","_time_t",0},
9093 { "_byte","_unsigned_char",0},
9094 { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice},
9095 { "_long","_unsigned_long",0},
9096 { "_long","_signed_long",0},
9097 { "_size_t","_wxCoord",0},
9098 { "_size_t","_wxPrintQuality",0},
9099 { "_size_t","_time_t",0},
9100 { "_size_t","_unsigned_int",0},
9101 { "_size_t","_int",0},
9102 { "_size_t","_wxWindowID",0},
9103 { "_size_t","_uint",0},
9104 { "_uint","_wxCoord",0},
9105 { "_uint","_wxPrintQuality",0},
9106 { "_uint","_time_t",0},
9107 { "_uint","_size_t",0},
9108 { "_uint","_unsigned_int",0},
9109 { "_uint","_int",0},
9110 { "_uint","_wxWindowID",0},
9111 { "_wxChar","_char",0},
9112 { "_char","_wxChar",0},
9113 { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
9114 { "_EBool","_wxCoord",0},
9115 { "_EBool","_wxPrintQuality",0},
9116 { "_EBool","_signed_int",0},
9117 { "_EBool","_int",0},
9118 { "_EBool","_wxWindowID",0},
9119 { "_unsigned_long","_long",0},
9120 { "_signed_int","_wxCoord",0},
9121 { "_signed_int","_wxPrintQuality",0},
9122 { "_signed_int","_EBool",0},
9123 { "_signed_int","_wxWindowID",0},
9124 { "_signed_int","_int",0},
9125 { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
9126 { "_WXTYPE","_short",0},
9127 { "_WXTYPE","_signed_short",0},
9128 { "_WXTYPE","_unsigned_short",0},
9129 { "_unsigned_short","_WXTYPE",0},
9130 { "_unsigned_short","_short",0},
9131 { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
9132 { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
9133 { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
9134 { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
9135 { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
9136 { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
9137 { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
9138 { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
9139 { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
9140 { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
9141 { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
9142 { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
9143 { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
9144 { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
9145 { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
9146 { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
9147 { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
9148 { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
9149 { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
9150 { "_wxObject","_wxButton",SwigwxButtonTowxObject},
9151 { "_wxObject","_wxControl",SwigwxControlTowxObject},
9152 { "_signed_short","_WXTYPE",0},
9153 { "_signed_short","_short",0},
9154 { "_unsigned_char","_byte",0},
9155 { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl},
9156 { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
9157 { "_wxControl","_wxSlider",SwigwxSliderTowxControl},
9158 { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
9159 { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
9160 { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
9161 { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
9162 { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
9163 { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
9164 { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
9165 { "_wxControl","_wxListBox",SwigwxListBoxTowxControl},
9166 { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
9167 { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
9168 { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
9169 { "_wxControl","_wxGauge",SwigwxGaugeTowxControl},
9170 { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
9171 { "_wxControl","_wxChoice",SwigwxChoiceTowxControl},
9172 { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
9173 { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
9174 { "_wxControl","_wxButton",SwigwxButtonTowxControl},
9175 { "_unsigned_int","_wxCoord",0},
9176 { "_unsigned_int","_wxPrintQuality",0},
9177 { "_unsigned_int","_time_t",0},
9178 { "_unsigned_int","_size_t",0},
9179 { "_unsigned_int","_uint",0},
9180 { "_unsigned_int","_wxWindowID",0},
9181 { "_unsigned_int","_int",0},
9182 { "_short","_WXTYPE",0},
9183 { "_short","_unsigned_short",0},
9184 { "_short","_signed_short",0},
9185 { "_wxWindowID","_wxCoord",0},
9186 { "_wxWindowID","_wxPrintQuality",0},
9187 { "_wxWindowID","_time_t",0},
9188 { "_wxWindowID","_size_t",0},
9189 { "_wxWindowID","_EBool",0},
9190 { "_wxWindowID","_uint",0},
9191 { "_wxWindowID","_int",0},
9192 { "_wxWindowID","_signed_int",0},
9193 { "_wxWindowID","_unsigned_int",0},
9194 { "_int","_wxCoord",0},
9195 { "_int","_wxPrintQuality",0},
9196 { "_int","_time_t",0},
9197 { "_int","_size_t",0},
9198 { "_int","_EBool",0},
9199 { "_int","_uint",0},
9200 { "_int","_wxWindowID",0},
9201 { "_int","_unsigned_int",0},
9202 { "_int","_signed_int",0},
9203 { "_time_t","_wxCoord",0},
9204 { "_time_t","_wxPrintQuality",0},
9205 { "_time_t","_unsigned_int",0},
9206 { "_time_t","_int",0},
9207 { "_time_t","_wxWindowID",0},
9208 { "_time_t","_uint",0},
9209 { "_time_t","_size_t",0},
9210 { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
9211 { "_wxCoord","_int",0},
9212 { "_wxCoord","_signed_int",0},
9213 { "_wxCoord","_unsigned_int",0},
9214 { "_wxCoord","_wxWindowID",0},
9215 { "_wxCoord","_uint",0},
9216 { "_wxCoord","_EBool",0},
9217 { "_wxCoord","_size_t",0},
9218 { "_wxCoord","_time_t",0},
9219 { "_wxCoord","_wxPrintQuality",0},
9220 { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
9221 { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
9222 { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
9223 { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
9224 { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
9225 { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
9226 { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
9227 { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
9228 { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
9229 { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
9230 { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
9231 { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
9232 { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
9233 { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
9234 { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
9235 { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
9236 { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
9237 { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
9238 { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
9239 { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
9240 { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
9241 { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow},
9242 { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
9243 { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
9244 { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
9245 { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
9246 { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
9247 { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
9248 { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
9249 { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
9250 { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
9251 { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
9252 { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
9253 { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
9254 { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
9255 { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
9256 { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
9257 { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
9258 { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
9259 { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
9260 { "_wxWindow","_wxButton",SwigwxButtonTowxWindow},
9261 { "_wxWindow","_wxControl",SwigwxControlTowxWindow},
9262 {0,0,0}};
9263
9264 static PyObject *SWIG_globals;
9265 #ifdef __cplusplus
9266 extern "C"
9267 #endif
9268 SWIGEXPORT(void) initcontrolsc() {
9269 PyObject *m, *d;
9270 SWIG_globals = SWIG_newvarlink();
9271 m = Py_InitModule("controlsc", controlscMethods);
9272 d = PyModule_GetDict(m);
9273 PyDict_SetItemString(d,"cvar", SWIG_globals);
9274 SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set);
9275 PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
9276 {
9277 int i;
9278 for (i = 0; _swig_mapping[i].n1; i++)
9279 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
9280 }
9281 }