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