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