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