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