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