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