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