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