]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/controls.cpp
fixed GTK critical warning when closing MDI child (patch 529369)
[wxWidgets.git] / wxPython / src / mac / controls.cpp
1 /*
2 * FILE : src/mac/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 *SwigwxComboBoxTowxChoice(void *ptr) {
2504 wxComboBox *src;
2505 wxChoice *dest;
2506 src = (wxComboBox *) ptr;
2507 dest = (wxChoice *) src;
2508 return (void *) dest;
2509 }
2510
2511 static void *SwigwxComboBoxTowxControlWithItems(void *ptr) {
2512 wxComboBox *src;
2513 wxControlWithItems *dest;
2514 src = (wxComboBox *) ptr;
2515 dest = (wxControlWithItems *) src;
2516 return (void *) dest;
2517 }
2518
2519 static void *SwigwxComboBoxTowxControl(void *ptr) {
2520 wxComboBox *src;
2521 wxControl *dest;
2522 src = (wxComboBox *) ptr;
2523 dest = (wxControl *) src;
2524 return (void *) dest;
2525 }
2526
2527 static void *SwigwxComboBoxTowxWindow(void *ptr) {
2528 wxComboBox *src;
2529 wxWindow *dest;
2530 src = (wxComboBox *) ptr;
2531 dest = (wxWindow *) src;
2532 return (void *) dest;
2533 }
2534
2535 static void *SwigwxComboBoxTowxEvtHandler(void *ptr) {
2536 wxComboBox *src;
2537 wxEvtHandler *dest;
2538 src = (wxComboBox *) ptr;
2539 dest = (wxEvtHandler *) src;
2540 return (void *) dest;
2541 }
2542
2543 static void *SwigwxComboBoxTowxObject(void *ptr) {
2544 wxComboBox *src;
2545 wxObject *dest;
2546 src = (wxComboBox *) ptr;
2547 dest = (wxObject *) src;
2548 return (void *) dest;
2549 }
2550
2551 #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))
2552 static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2553 PyObject * _resultobj;
2554 wxComboBox * _result;
2555 wxWindow * _arg0;
2556 wxWindowID _arg1;
2557 char * _arg2 = (char *) "";
2558 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2559 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2560 int _arg5 = (int ) 0;
2561 wxString * _arg6 = (wxString *) NULL;
2562 long _arg7 = (long ) 0;
2563 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2564 char * _arg9 = (char *) "comboBox";
2565 PyObject * _argo0 = 0;
2566 wxPoint temp;
2567 PyObject * _obj3 = 0;
2568 wxSize temp0;
2569 PyObject * _obj4 = 0;
2570 PyObject * _obj6 = 0;
2571 PyObject * _argo8 = 0;
2572 char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL };
2573 char _ptemp[128];
2574
2575 self = self;
2576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
2577 return NULL;
2578 if (_argo0) {
2579 if (_argo0 == Py_None) { _arg0 = NULL; }
2580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p.");
2582 return NULL;
2583 }
2584 }
2585 if (_obj3)
2586 {
2587 _arg3 = &temp;
2588 if (! wxPoint_helper(_obj3, &_arg3))
2589 return NULL;
2590 }
2591 if (_obj4)
2592 {
2593 _arg4 = &temp0;
2594 if (! wxSize_helper(_obj4, &_arg4))
2595 return NULL;
2596 }
2597 if (_obj6)
2598 {
2599 _arg6 = wxString_LIST_helper(_obj6);
2600 if (_arg6 == NULL) {
2601 return NULL;
2602 }
2603 }
2604 if (_argo8) {
2605 if (_argo8 == Py_None) { _arg8 = NULL; }
2606 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
2607 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p.");
2608 return NULL;
2609 }
2610 }
2611 {
2612 if (_obj6) {
2613 _arg5 = PyList_Size(_obj6);
2614 }
2615 else {
2616 _arg5 = 0;
2617 }
2618 }
2619 {
2620 PyThreadState* __tstate = wxPyBeginAllowThreads();
2621 _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
2622
2623 wxPyEndAllowThreads(__tstate);
2624 if (PyErr_Occurred()) return NULL;
2625 } if (_result) {
2626 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2627 _resultobj = Py_BuildValue("s",_ptemp);
2628 } else {
2629 Py_INCREF(Py_None);
2630 _resultobj = Py_None;
2631 }
2632 {
2633 delete [] _arg6;
2634 }
2635 return _resultobj;
2636 }
2637
2638 #define new_wxPreComboBox() (new wxComboBox())
2639 static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject * _resultobj;
2641 wxComboBox * _result;
2642 char *_kwnames[] = { NULL };
2643 char _ptemp[128];
2644
2645 self = self;
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames))
2647 return NULL;
2648 {
2649 PyThreadState* __tstate = wxPyBeginAllowThreads();
2650 _result = (wxComboBox *)new_wxPreComboBox();
2651
2652 wxPyEndAllowThreads(__tstate);
2653 if (PyErr_Occurred()) return NULL;
2654 } if (_result) {
2655 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2656 _resultobj = Py_BuildValue("s",_ptemp);
2657 } else {
2658 Py_INCREF(Py_None);
2659 _resultobj = Py_None;
2660 }
2661 return _resultobj;
2662 }
2663
2664 #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))
2665 static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2666 PyObject * _resultobj;
2667 bool _result;
2668 wxComboBox * _arg0;
2669 wxWindow * _arg1;
2670 wxWindowID _arg2;
2671 char * _arg3 = (char *) "";
2672 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2673 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2674 int _arg6 = (int ) 0;
2675 wxString * _arg7 = (wxString *) NULL;
2676 long _arg8 = (long ) 0;
2677 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
2678 char * _arg10 = (char *) "comboBox";
2679 PyObject * _argo0 = 0;
2680 PyObject * _argo1 = 0;
2681 wxPoint temp;
2682 PyObject * _obj4 = 0;
2683 wxSize temp0;
2684 PyObject * _obj5 = 0;
2685 PyObject * _obj7 = 0;
2686 PyObject * _argo9 = 0;
2687 char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL };
2688
2689 self = self;
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10))
2691 return NULL;
2692 if (_argo0) {
2693 if (_argo0 == Py_None) { _arg0 = NULL; }
2694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p.");
2696 return NULL;
2697 }
2698 }
2699 if (_argo1) {
2700 if (_argo1 == Py_None) { _arg1 = NULL; }
2701 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2702 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p.");
2703 return NULL;
2704 }
2705 }
2706 if (_obj4)
2707 {
2708 _arg4 = &temp;
2709 if (! wxPoint_helper(_obj4, &_arg4))
2710 return NULL;
2711 }
2712 if (_obj5)
2713 {
2714 _arg5 = &temp0;
2715 if (! wxSize_helper(_obj5, &_arg5))
2716 return NULL;
2717 }
2718 if (_obj7)
2719 {
2720 _arg7 = wxString_LIST_helper(_obj7);
2721 if (_arg7 == NULL) {
2722 return NULL;
2723 }
2724 }
2725 if (_argo9) {
2726 if (_argo9 == Py_None) { _arg9 = NULL; }
2727 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
2728 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p.");
2729 return NULL;
2730 }
2731 }
2732 {
2733 if (_obj7) {
2734 _arg6 = PyList_Size(_obj7);
2735 }
2736 else {
2737 _arg6 = 0;
2738 }
2739 }
2740 {
2741 PyThreadState* __tstate = wxPyBeginAllowThreads();
2742 _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) return NULL;
2746 } _resultobj = Py_BuildValue("i",_result);
2747 {
2748 delete [] _arg7;
2749 }
2750 return _resultobj;
2751 }
2752
2753 #define wxComboBox_Copy(_swigobj) (_swigobj->Copy())
2754 static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
2755 PyObject * _resultobj;
2756 wxComboBox * _arg0;
2757 PyObject * _argo0 = 0;
2758 char *_kwnames[] = { "self", NULL };
2759
2760 self = self;
2761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0))
2762 return NULL;
2763 if (_argo0) {
2764 if (_argo0 == Py_None) { _arg0 = NULL; }
2765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p.");
2767 return NULL;
2768 }
2769 }
2770 {
2771 PyThreadState* __tstate = wxPyBeginAllowThreads();
2772 wxComboBox_Copy(_arg0);
2773
2774 wxPyEndAllowThreads(__tstate);
2775 if (PyErr_Occurred()) return NULL;
2776 } Py_INCREF(Py_None);
2777 _resultobj = Py_None;
2778 return _resultobj;
2779 }
2780
2781 #define wxComboBox_Cut(_swigobj) (_swigobj->Cut())
2782 static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject * _resultobj;
2784 wxComboBox * _arg0;
2785 PyObject * _argo0 = 0;
2786 char *_kwnames[] = { "self", NULL };
2787
2788 self = self;
2789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0))
2790 return NULL;
2791 if (_argo0) {
2792 if (_argo0 == Py_None) { _arg0 = NULL; }
2793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p.");
2795 return NULL;
2796 }
2797 }
2798 {
2799 PyThreadState* __tstate = wxPyBeginAllowThreads();
2800 wxComboBox_Cut(_arg0);
2801
2802 wxPyEndAllowThreads(__tstate);
2803 if (PyErr_Occurred()) return NULL;
2804 } Py_INCREF(Py_None);
2805 _resultobj = Py_None;
2806 return _resultobj;
2807 }
2808
2809 #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
2810 static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2811 PyObject * _resultobj;
2812 long _result;
2813 wxComboBox * _arg0;
2814 PyObject * _argo0 = 0;
2815 char *_kwnames[] = { "self", NULL };
2816
2817 self = self;
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0))
2819 return NULL;
2820 if (_argo0) {
2821 if (_argo0 == Py_None) { _arg0 = NULL; }
2822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p.");
2824 return NULL;
2825 }
2826 }
2827 {
2828 PyThreadState* __tstate = wxPyBeginAllowThreads();
2829 _result = (long )wxComboBox_GetInsertionPoint(_arg0);
2830
2831 wxPyEndAllowThreads(__tstate);
2832 if (PyErr_Occurred()) return NULL;
2833 } _resultobj = Py_BuildValue("l",_result);
2834 return _resultobj;
2835 }
2836
2837 #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
2838 static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject * _resultobj;
2840 long _result;
2841 wxComboBox * _arg0;
2842 PyObject * _argo0 = 0;
2843 char *_kwnames[] = { "self", NULL };
2844
2845 self = self;
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0))
2847 return NULL;
2848 if (_argo0) {
2849 if (_argo0 == Py_None) { _arg0 = NULL; }
2850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p.");
2852 return NULL;
2853 }
2854 }
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 _result = (long )wxComboBox_GetLastPosition(_arg0);
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) return NULL;
2861 } _resultobj = Py_BuildValue("l",_result);
2862 return _resultobj;
2863 }
2864
2865 #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue())
2866 static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2867 PyObject * _resultobj;
2868 wxString * _result;
2869 wxComboBox * _arg0;
2870 PyObject * _argo0 = 0;
2871 char *_kwnames[] = { "self", NULL };
2872
2873 self = self;
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0))
2875 return NULL;
2876 if (_argo0) {
2877 if (_argo0 == Py_None) { _arg0 = NULL; }
2878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p.");
2880 return NULL;
2881 }
2882 }
2883 {
2884 PyThreadState* __tstate = wxPyBeginAllowThreads();
2885 _result = new wxString (wxComboBox_GetValue(_arg0));
2886
2887 wxPyEndAllowThreads(__tstate);
2888 if (PyErr_Occurred()) return NULL;
2889 }{
2890 #if wxUSE_UNICODE
2891 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2892 #else
2893 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2894 #endif
2895 }
2896 {
2897 delete _result;
2898 }
2899 return _resultobj;
2900 }
2901
2902 #define wxComboBox_Paste(_swigobj) (_swigobj->Paste())
2903 static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
2904 PyObject * _resultobj;
2905 wxComboBox * _arg0;
2906 PyObject * _argo0 = 0;
2907 char *_kwnames[] = { "self", NULL };
2908
2909 self = self;
2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0))
2911 return NULL;
2912 if (_argo0) {
2913 if (_argo0 == Py_None) { _arg0 = NULL; }
2914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p.");
2916 return NULL;
2917 }
2918 }
2919 {
2920 PyThreadState* __tstate = wxPyBeginAllowThreads();
2921 wxComboBox_Paste(_arg0);
2922
2923 wxPyEndAllowThreads(__tstate);
2924 if (PyErr_Occurred()) return NULL;
2925 } Py_INCREF(Py_None);
2926 _resultobj = Py_None;
2927 return _resultobj;
2928 }
2929
2930 #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
2931 static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject * _resultobj;
2933 wxComboBox * _arg0;
2934 long _arg1;
2935 long _arg2;
2936 wxString * _arg3;
2937 PyObject * _argo0 = 0;
2938 PyObject * _obj3 = 0;
2939 char *_kwnames[] = { "self","from","to","text", NULL };
2940
2941 self = self;
2942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
2943 return NULL;
2944 if (_argo0) {
2945 if (_argo0 == Py_None) { _arg0 = NULL; }
2946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p.");
2948 return NULL;
2949 }
2950 }
2951 {
2952 _arg3 = wxString_in_helper(_obj3);
2953 if (_arg3 == NULL)
2954 return NULL;
2955 }
2956 {
2957 PyThreadState* __tstate = wxPyBeginAllowThreads();
2958 wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3);
2959
2960 wxPyEndAllowThreads(__tstate);
2961 if (PyErr_Occurred()) return NULL;
2962 } Py_INCREF(Py_None);
2963 _resultobj = Py_None;
2964 {
2965 if (_obj3)
2966 delete _arg3;
2967 }
2968 return _resultobj;
2969 }
2970
2971 #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
2972 static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
2973 PyObject * _resultobj;
2974 wxComboBox * _arg0;
2975 long _arg1;
2976 long _arg2;
2977 PyObject * _argo0 = 0;
2978 char *_kwnames[] = { "self","from","to", NULL };
2979
2980 self = self;
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
2982 return NULL;
2983 if (_argo0) {
2984 if (_argo0 == Py_None) { _arg0 = NULL; }
2985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p.");
2987 return NULL;
2988 }
2989 }
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 wxComboBox_Remove(_arg0,_arg1,_arg2);
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) return NULL;
2996 } Py_INCREF(Py_None);
2997 _resultobj = Py_None;
2998 return _resultobj;
2999 }
3000
3001 #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
3002 static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3003 PyObject * _resultobj;
3004 wxComboBox * _arg0;
3005 long _arg1;
3006 PyObject * _argo0 = 0;
3007 char *_kwnames[] = { "self","pos", NULL };
3008
3009 self = self;
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
3011 return NULL;
3012 if (_argo0) {
3013 if (_argo0 == Py_None) { _arg0 = NULL; }
3014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p.");
3016 return NULL;
3017 }
3018 }
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 wxComboBox_SetInsertionPoint(_arg0,_arg1);
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) return NULL;
3025 } Py_INCREF(Py_None);
3026 _resultobj = Py_None;
3027 return _resultobj;
3028 }
3029
3030 #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
3031 static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject * _resultobj;
3033 wxComboBox * _arg0;
3034 PyObject * _argo0 = 0;
3035 char *_kwnames[] = { "self", NULL };
3036
3037 self = self;
3038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0))
3039 return NULL;
3040 if (_argo0) {
3041 if (_argo0 == Py_None) { _arg0 = NULL; }
3042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p.");
3044 return NULL;
3045 }
3046 }
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 wxComboBox_SetInsertionPointEnd(_arg0);
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) return NULL;
3053 } Py_INCREF(Py_None);
3054 _resultobj = Py_None;
3055 return _resultobj;
3056 }
3057
3058 #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
3059 static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3060 PyObject * _resultobj;
3061 wxComboBox * _arg0;
3062 int _arg1;
3063 PyObject * _argo0 = 0;
3064 char *_kwnames[] = { "self","n", NULL };
3065
3066 self = self;
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1))
3068 return NULL;
3069 if (_argo0) {
3070 if (_argo0 == Py_None) { _arg0 = NULL; }
3071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p.");
3073 return NULL;
3074 }
3075 }
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 wxComboBox_SetSelection(_arg0,_arg1);
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) return NULL;
3082 } Py_INCREF(Py_None);
3083 _resultobj = Py_None;
3084 return _resultobj;
3085 }
3086
3087 #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
3088 static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3089 PyObject * _resultobj;
3090 wxComboBox * _arg0;
3091 long _arg1;
3092 long _arg2;
3093 PyObject * _argo0 = 0;
3094 char *_kwnames[] = { "self","from","to", NULL };
3095
3096 self = self;
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2))
3098 return NULL;
3099 if (_argo0) {
3100 if (_argo0 == Py_None) { _arg0 = NULL; }
3101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p.");
3103 return NULL;
3104 }
3105 }
3106 {
3107 PyThreadState* __tstate = wxPyBeginAllowThreads();
3108 wxComboBox_SetMark(_arg0,_arg1,_arg2);
3109
3110 wxPyEndAllowThreads(__tstate);
3111 if (PyErr_Occurred()) return NULL;
3112 } Py_INCREF(Py_None);
3113 _resultobj = Py_None;
3114 return _resultobj;
3115 }
3116
3117 #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
3118 static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3119 PyObject * _resultobj;
3120 wxComboBox * _arg0;
3121 wxString * _arg1;
3122 PyObject * _argo0 = 0;
3123 PyObject * _obj1 = 0;
3124 char *_kwnames[] = { "self","text", NULL };
3125
3126 self = self;
3127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1))
3128 return NULL;
3129 if (_argo0) {
3130 if (_argo0 == Py_None) { _arg0 = NULL; }
3131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p.");
3133 return NULL;
3134 }
3135 }
3136 {
3137 _arg1 = wxString_in_helper(_obj1);
3138 if (_arg1 == NULL)
3139 return NULL;
3140 }
3141 {
3142 PyThreadState* __tstate = wxPyBeginAllowThreads();
3143 wxComboBox_SetValue(_arg0,*_arg1);
3144
3145 wxPyEndAllowThreads(__tstate);
3146 if (PyErr_Occurred()) return NULL;
3147 } Py_INCREF(Py_None);
3148 _resultobj = Py_None;
3149 {
3150 if (_obj1)
3151 delete _arg1;
3152 }
3153 return _resultobj;
3154 }
3155
3156 #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
3157 static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject * _resultobj;
3159 wxComboBox * _arg0;
3160 bool _arg1;
3161 PyObject * _argo0 = 0;
3162 int tempbool1;
3163 char *_kwnames[] = { "self","editable", NULL };
3164
3165 self = self;
3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1))
3167 return NULL;
3168 if (_argo0) {
3169 if (_argo0 == Py_None) { _arg0 = NULL; }
3170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p.");
3172 return NULL;
3173 }
3174 }
3175 _arg1 = (bool ) tempbool1;
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 wxComboBox_SetEditable(_arg0,_arg1);
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) return NULL;
3182 } Py_INCREF(Py_None);
3183 _resultobj = Py_None;
3184 return _resultobj;
3185 }
3186
3187 static void *SwigwxGaugeTowxControl(void *ptr) {
3188 wxGauge *src;
3189 wxControl *dest;
3190 src = (wxGauge *) ptr;
3191 dest = (wxControl *) src;
3192 return (void *) dest;
3193 }
3194
3195 static void *SwigwxGaugeTowxWindow(void *ptr) {
3196 wxGauge *src;
3197 wxWindow *dest;
3198 src = (wxGauge *) ptr;
3199 dest = (wxWindow *) src;
3200 return (void *) dest;
3201 }
3202
3203 static void *SwigwxGaugeTowxEvtHandler(void *ptr) {
3204 wxGauge *src;
3205 wxEvtHandler *dest;
3206 src = (wxGauge *) ptr;
3207 dest = (wxEvtHandler *) src;
3208 return (void *) dest;
3209 }
3210
3211 static void *SwigwxGaugeTowxObject(void *ptr) {
3212 wxGauge *src;
3213 wxObject *dest;
3214 src = (wxGauge *) ptr;
3215 dest = (wxObject *) src;
3216 return (void *) dest;
3217 }
3218
3219 #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3220 static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3221 PyObject * _resultobj;
3222 wxGauge * _result;
3223 wxWindow * _arg0;
3224 wxWindowID _arg1;
3225 int _arg2;
3226 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3227 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3228 long _arg5 = (long ) wxGA_HORIZONTAL;
3229 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3230 char * _arg7 = (char *) "gauge";
3231 PyObject * _argo0 = 0;
3232 wxPoint temp;
3233 PyObject * _obj3 = 0;
3234 wxSize temp0;
3235 PyObject * _obj4 = 0;
3236 PyObject * _argo6 = 0;
3237 char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL };
3238 char _ptemp[128];
3239
3240 self = self;
3241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
3242 return NULL;
3243 if (_argo0) {
3244 if (_argo0 == Py_None) { _arg0 = NULL; }
3245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p.");
3247 return NULL;
3248 }
3249 }
3250 if (_obj3)
3251 {
3252 _arg3 = &temp;
3253 if (! wxPoint_helper(_obj3, &_arg3))
3254 return NULL;
3255 }
3256 if (_obj4)
3257 {
3258 _arg4 = &temp0;
3259 if (! wxSize_helper(_obj4, &_arg4))
3260 return NULL;
3261 }
3262 if (_argo6) {
3263 if (_argo6 == Py_None) { _arg6 = NULL; }
3264 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3265 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p.");
3266 return NULL;
3267 }
3268 }
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) return NULL;
3275 } if (_result) {
3276 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3277 _resultobj = Py_BuildValue("s",_ptemp);
3278 } else {
3279 Py_INCREF(Py_None);
3280 _resultobj = Py_None;
3281 }
3282 return _resultobj;
3283 }
3284
3285 #define new_wxPreGauge() (new wxGauge())
3286 static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3287 PyObject * _resultobj;
3288 wxGauge * _result;
3289 char *_kwnames[] = { NULL };
3290 char _ptemp[128];
3291
3292 self = self;
3293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames))
3294 return NULL;
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 _result = (wxGauge *)new_wxPreGauge();
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) return NULL;
3301 } if (_result) {
3302 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3303 _resultobj = Py_BuildValue("s",_ptemp);
3304 } else {
3305 Py_INCREF(Py_None);
3306 _resultobj = Py_None;
3307 }
3308 return _resultobj;
3309 }
3310
3311 #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3312 static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3313 PyObject * _resultobj;
3314 bool _result;
3315 wxGauge * _arg0;
3316 wxWindow * _arg1;
3317 wxWindowID _arg2;
3318 int _arg3;
3319 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3320 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3321 long _arg6 = (long ) wxGA_HORIZONTAL;
3322 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
3323 char * _arg8 = (char *) "gauge";
3324 PyObject * _argo0 = 0;
3325 PyObject * _argo1 = 0;
3326 wxPoint temp;
3327 PyObject * _obj4 = 0;
3328 wxSize temp0;
3329 PyObject * _obj5 = 0;
3330 PyObject * _argo7 = 0;
3331 char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL };
3332
3333 self = self;
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
3335 return NULL;
3336 if (_argo0) {
3337 if (_argo0 == Py_None) { _arg0 = NULL; }
3338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p.");
3340 return NULL;
3341 }
3342 }
3343 if (_argo1) {
3344 if (_argo1 == Py_None) { _arg1 = NULL; }
3345 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3346 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p.");
3347 return NULL;
3348 }
3349 }
3350 if (_obj4)
3351 {
3352 _arg4 = &temp;
3353 if (! wxPoint_helper(_obj4, &_arg4))
3354 return NULL;
3355 }
3356 if (_obj5)
3357 {
3358 _arg5 = &temp0;
3359 if (! wxSize_helper(_obj5, &_arg5))
3360 return NULL;
3361 }
3362 if (_argo7) {
3363 if (_argo7 == Py_None) { _arg7 = NULL; }
3364 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
3365 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p.");
3366 return NULL;
3367 }
3368 }
3369 {
3370 PyThreadState* __tstate = wxPyBeginAllowThreads();
3371 _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
3372
3373 wxPyEndAllowThreads(__tstate);
3374 if (PyErr_Occurred()) return NULL;
3375 } _resultobj = Py_BuildValue("i",_result);
3376 return _resultobj;
3377 }
3378
3379 #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace())
3380 static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3381 PyObject * _resultobj;
3382 int _result;
3383 wxGauge * _arg0;
3384 PyObject * _argo0 = 0;
3385 char *_kwnames[] = { "self", NULL };
3386
3387 self = self;
3388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0))
3389 return NULL;
3390 if (_argo0) {
3391 if (_argo0 == Py_None) { _arg0 = NULL; }
3392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p.");
3394 return NULL;
3395 }
3396 }
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 _result = (int )wxGauge_GetBezelFace(_arg0);
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) return NULL;
3403 } _resultobj = Py_BuildValue("i",_result);
3404 return _resultobj;
3405 }
3406
3407 #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange())
3408 static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3409 PyObject * _resultobj;
3410 int _result;
3411 wxGauge * _arg0;
3412 PyObject * _argo0 = 0;
3413 char *_kwnames[] = { "self", NULL };
3414
3415 self = self;
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0))
3417 return NULL;
3418 if (_argo0) {
3419 if (_argo0 == Py_None) { _arg0 = NULL; }
3420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p.");
3422 return NULL;
3423 }
3424 }
3425 {
3426 PyThreadState* __tstate = wxPyBeginAllowThreads();
3427 _result = (int )wxGauge_GetRange(_arg0);
3428
3429 wxPyEndAllowThreads(__tstate);
3430 if (PyErr_Occurred()) return NULL;
3431 } _resultobj = Py_BuildValue("i",_result);
3432 return _resultobj;
3433 }
3434
3435 #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth())
3436 static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3437 PyObject * _resultobj;
3438 int _result;
3439 wxGauge * _arg0;
3440 PyObject * _argo0 = 0;
3441 char *_kwnames[] = { "self", NULL };
3442
3443 self = self;
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0))
3445 return NULL;
3446 if (_argo0) {
3447 if (_argo0 == Py_None) { _arg0 = NULL; }
3448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p.");
3450 return NULL;
3451 }
3452 }
3453 {
3454 PyThreadState* __tstate = wxPyBeginAllowThreads();
3455 _result = (int )wxGauge_GetShadowWidth(_arg0);
3456
3457 wxPyEndAllowThreads(__tstate);
3458 if (PyErr_Occurred()) return NULL;
3459 } _resultobj = Py_BuildValue("i",_result);
3460 return _resultobj;
3461 }
3462
3463 #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue())
3464 static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3465 PyObject * _resultobj;
3466 int _result;
3467 wxGauge * _arg0;
3468 PyObject * _argo0 = 0;
3469 char *_kwnames[] = { "self", NULL };
3470
3471 self = self;
3472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0))
3473 return NULL;
3474 if (_argo0) {
3475 if (_argo0 == Py_None) { _arg0 = NULL; }
3476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p.");
3478 return NULL;
3479 }
3480 }
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 _result = (int )wxGauge_GetValue(_arg0);
3484
3485 wxPyEndAllowThreads(__tstate);
3486 if (PyErr_Occurred()) return NULL;
3487 } _resultobj = Py_BuildValue("i",_result);
3488 return _resultobj;
3489 }
3490
3491 #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0))
3492 static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
3493 PyObject * _resultobj;
3494 wxGauge * _arg0;
3495 int _arg1;
3496 PyObject * _argo0 = 0;
3497 char *_kwnames[] = { "self","width", NULL };
3498
3499 self = self;
3500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1))
3501 return NULL;
3502 if (_argo0) {
3503 if (_argo0 == Py_None) { _arg0 = NULL; }
3504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p.");
3506 return NULL;
3507 }
3508 }
3509 {
3510 PyThreadState* __tstate = wxPyBeginAllowThreads();
3511 wxGauge_SetBezelFace(_arg0,_arg1);
3512
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) return NULL;
3515 } Py_INCREF(Py_None);
3516 _resultobj = Py_None;
3517 return _resultobj;
3518 }
3519
3520 #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0))
3521 static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject * _resultobj;
3523 wxGauge * _arg0;
3524 int _arg1;
3525 PyObject * _argo0 = 0;
3526 char *_kwnames[] = { "self","range", NULL };
3527
3528 self = self;
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1))
3530 return NULL;
3531 if (_argo0) {
3532 if (_argo0 == Py_None) { _arg0 = NULL; }
3533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p.");
3535 return NULL;
3536 }
3537 }
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 wxGauge_SetRange(_arg0,_arg1);
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) return NULL;
3544 } Py_INCREF(Py_None);
3545 _resultobj = Py_None;
3546 return _resultobj;
3547 }
3548
3549 #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0))
3550 static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3551 PyObject * _resultobj;
3552 wxGauge * _arg0;
3553 int _arg1;
3554 PyObject * _argo0 = 0;
3555 char *_kwnames[] = { "self","width", NULL };
3556
3557 self = self;
3558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1))
3559 return NULL;
3560 if (_argo0) {
3561 if (_argo0 == Py_None) { _arg0 = NULL; }
3562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p.");
3564 return NULL;
3565 }
3566 }
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 wxGauge_SetShadowWidth(_arg0,_arg1);
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) return NULL;
3573 } Py_INCREF(Py_None);
3574 _resultobj = Py_None;
3575 return _resultobj;
3576 }
3577
3578 #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
3579 static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject * _resultobj;
3581 wxGauge * _arg0;
3582 int _arg1;
3583 PyObject * _argo0 = 0;
3584 char *_kwnames[] = { "self","pos", NULL };
3585
3586 self = self;
3587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1))
3588 return NULL;
3589 if (_argo0) {
3590 if (_argo0 == Py_None) { _arg0 = NULL; }
3591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p.");
3593 return NULL;
3594 }
3595 }
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 wxGauge_SetValue(_arg0,_arg1);
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) return NULL;
3602 } Py_INCREF(Py_None);
3603 _resultobj = Py_None;
3604 return _resultobj;
3605 }
3606
3607 static void *SwigwxStaticBoxTowxControl(void *ptr) {
3608 wxStaticBox *src;
3609 wxControl *dest;
3610 src = (wxStaticBox *) ptr;
3611 dest = (wxControl *) src;
3612 return (void *) dest;
3613 }
3614
3615 static void *SwigwxStaticBoxTowxWindow(void *ptr) {
3616 wxStaticBox *src;
3617 wxWindow *dest;
3618 src = (wxStaticBox *) ptr;
3619 dest = (wxWindow *) src;
3620 return (void *) dest;
3621 }
3622
3623 static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) {
3624 wxStaticBox *src;
3625 wxEvtHandler *dest;
3626 src = (wxStaticBox *) ptr;
3627 dest = (wxEvtHandler *) src;
3628 return (void *) dest;
3629 }
3630
3631 static void *SwigwxStaticBoxTowxObject(void *ptr) {
3632 wxStaticBox *src;
3633 wxObject *dest;
3634 src = (wxStaticBox *) ptr;
3635 dest = (wxObject *) src;
3636 return (void *) dest;
3637 }
3638
3639 #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3640 static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3641 PyObject * _resultobj;
3642 wxStaticBox * _result;
3643 wxWindow * _arg0;
3644 wxWindowID _arg1;
3645 wxString * _arg2;
3646 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3647 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3648 long _arg5 = (long ) 0;
3649 char * _arg6 = (char *) "staticBox";
3650 PyObject * _argo0 = 0;
3651 PyObject * _obj2 = 0;
3652 wxPoint temp;
3653 PyObject * _obj3 = 0;
3654 wxSize temp0;
3655 PyObject * _obj4 = 0;
3656 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
3657 char _ptemp[128];
3658
3659 self = self;
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
3661 return NULL;
3662 if (_argo0) {
3663 if (_argo0 == Py_None) { _arg0 = NULL; }
3664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p.");
3666 return NULL;
3667 }
3668 }
3669 {
3670 _arg2 = wxString_in_helper(_obj2);
3671 if (_arg2 == NULL)
3672 return NULL;
3673 }
3674 if (_obj3)
3675 {
3676 _arg3 = &temp;
3677 if (! wxPoint_helper(_obj3, &_arg3))
3678 return NULL;
3679 }
3680 if (_obj4)
3681 {
3682 _arg4 = &temp0;
3683 if (! wxSize_helper(_obj4, &_arg4))
3684 return NULL;
3685 }
3686 {
3687 PyThreadState* __tstate = wxPyBeginAllowThreads();
3688 _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
3689
3690 wxPyEndAllowThreads(__tstate);
3691 if (PyErr_Occurred()) return NULL;
3692 } if (_result) {
3693 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
3694 _resultobj = Py_BuildValue("s",_ptemp);
3695 } else {
3696 Py_INCREF(Py_None);
3697 _resultobj = Py_None;
3698 }
3699 {
3700 if (_obj2)
3701 delete _arg2;
3702 }
3703 return _resultobj;
3704 }
3705
3706 #define new_wxPreStaticBox() (new wxStaticBox())
3707 static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3708 PyObject * _resultobj;
3709 wxStaticBox * _result;
3710 char *_kwnames[] = { NULL };
3711 char _ptemp[128];
3712
3713 self = self;
3714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames))
3715 return NULL;
3716 {
3717 PyThreadState* __tstate = wxPyBeginAllowThreads();
3718 _result = (wxStaticBox *)new_wxPreStaticBox();
3719
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) return NULL;
3722 } if (_result) {
3723 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
3724 _resultobj = Py_BuildValue("s",_ptemp);
3725 } else {
3726 Py_INCREF(Py_None);
3727 _resultobj = Py_None;
3728 }
3729 return _resultobj;
3730 }
3731
3732 #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3733 static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3734 PyObject * _resultobj;
3735 bool _result;
3736 wxStaticBox * _arg0;
3737 wxWindow * _arg1;
3738 wxWindowID _arg2;
3739 wxString * _arg3;
3740 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3741 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3742 long _arg6 = (long ) 0;
3743 char * _arg7 = (char *) "staticBox";
3744 PyObject * _argo0 = 0;
3745 PyObject * _argo1 = 0;
3746 PyObject * _obj3 = 0;
3747 wxPoint temp;
3748 PyObject * _obj4 = 0;
3749 wxSize temp0;
3750 PyObject * _obj5 = 0;
3751 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
3752
3753 self = self;
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
3755 return NULL;
3756 if (_argo0) {
3757 if (_argo0 == Py_None) { _arg0 = NULL; }
3758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
3759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p.");
3760 return NULL;
3761 }
3762 }
3763 if (_argo1) {
3764 if (_argo1 == Py_None) { _arg1 = NULL; }
3765 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3766 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p.");
3767 return NULL;
3768 }
3769 }
3770 {
3771 _arg3 = wxString_in_helper(_obj3);
3772 if (_arg3 == NULL)
3773 return NULL;
3774 }
3775 if (_obj4)
3776 {
3777 _arg4 = &temp;
3778 if (! wxPoint_helper(_obj4, &_arg4))
3779 return NULL;
3780 }
3781 if (_obj5)
3782 {
3783 _arg5 = &temp0;
3784 if (! wxSize_helper(_obj5, &_arg5))
3785 return NULL;
3786 }
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) return NULL;
3793 } _resultobj = Py_BuildValue("i",_result);
3794 {
3795 if (_obj3)
3796 delete _arg3;
3797 }
3798 return _resultobj;
3799 }
3800
3801 static void *SwigwxStaticLineTowxControl(void *ptr) {
3802 wxStaticLine *src;
3803 wxControl *dest;
3804 src = (wxStaticLine *) ptr;
3805 dest = (wxControl *) src;
3806 return (void *) dest;
3807 }
3808
3809 static void *SwigwxStaticLineTowxWindow(void *ptr) {
3810 wxStaticLine *src;
3811 wxWindow *dest;
3812 src = (wxStaticLine *) ptr;
3813 dest = (wxWindow *) src;
3814 return (void *) dest;
3815 }
3816
3817 static void *SwigwxStaticLineTowxEvtHandler(void *ptr) {
3818 wxStaticLine *src;
3819 wxEvtHandler *dest;
3820 src = (wxStaticLine *) ptr;
3821 dest = (wxEvtHandler *) src;
3822 return (void *) dest;
3823 }
3824
3825 static void *SwigwxStaticLineTowxObject(void *ptr) {
3826 wxStaticLine *src;
3827 wxObject *dest;
3828 src = (wxStaticLine *) ptr;
3829 dest = (wxObject *) src;
3830 return (void *) dest;
3831 }
3832
3833 #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3834 static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
3835 PyObject * _resultobj;
3836 wxStaticLine * _result;
3837 wxWindow * _arg0;
3838 wxWindowID _arg1;
3839 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3840 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3841 long _arg4 = (long ) wxLI_HORIZONTAL;
3842 char * _arg5 = (char *) "staticLine";
3843 PyObject * _argo0 = 0;
3844 wxPoint temp;
3845 PyObject * _obj2 = 0;
3846 wxSize temp0;
3847 PyObject * _obj3 = 0;
3848 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3849 char _ptemp[128];
3850
3851 self = self;
3852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3853 return NULL;
3854 if (_argo0) {
3855 if (_argo0 == Py_None) { _arg0 = NULL; }
3856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p.");
3858 return NULL;
3859 }
3860 }
3861 if (_obj2)
3862 {
3863 _arg2 = &temp;
3864 if (! wxPoint_helper(_obj2, &_arg2))
3865 return NULL;
3866 }
3867 if (_obj3)
3868 {
3869 _arg3 = &temp0;
3870 if (! wxSize_helper(_obj3, &_arg3))
3871 return NULL;
3872 }
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3876
3877 wxPyEndAllowThreads(__tstate);
3878 if (PyErr_Occurred()) return NULL;
3879 } if (_result) {
3880 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
3881 _resultobj = Py_BuildValue("s",_ptemp);
3882 } else {
3883 Py_INCREF(Py_None);
3884 _resultobj = Py_None;
3885 }
3886 return _resultobj;
3887 }
3888
3889 #define new_wxPreStaticLine() (new wxStaticLine())
3890 static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject * _resultobj;
3892 wxStaticLine * _result;
3893 char *_kwnames[] = { NULL };
3894 char _ptemp[128];
3895
3896 self = self;
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames))
3898 return NULL;
3899 {
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 _result = (wxStaticLine *)new_wxPreStaticLine();
3902
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) return NULL;
3905 } if (_result) {
3906 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
3907 _resultobj = Py_BuildValue("s",_ptemp);
3908 } else {
3909 Py_INCREF(Py_None);
3910 _resultobj = Py_None;
3911 }
3912 return _resultobj;
3913 }
3914
3915 #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3916 static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3917 PyObject * _resultobj;
3918 bool _result;
3919 wxStaticLine * _arg0;
3920 wxWindow * _arg1;
3921 wxWindowID _arg2;
3922 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3923 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3924 long _arg5 = (long ) wxLI_HORIZONTAL;
3925 char * _arg6 = (char *) "staticLine";
3926 PyObject * _argo0 = 0;
3927 PyObject * _argo1 = 0;
3928 wxPoint temp;
3929 PyObject * _obj3 = 0;
3930 wxSize temp0;
3931 PyObject * _obj4 = 0;
3932 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3933
3934 self = self;
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3936 return NULL;
3937 if (_argo0) {
3938 if (_argo0 == Py_None) { _arg0 = NULL; }
3939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) {
3940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p.");
3941 return NULL;
3942 }
3943 }
3944 if (_argo1) {
3945 if (_argo1 == Py_None) { _arg1 = NULL; }
3946 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3947 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p.");
3948 return NULL;
3949 }
3950 }
3951 if (_obj3)
3952 {
3953 _arg3 = &temp;
3954 if (! wxPoint_helper(_obj3, &_arg3))
3955 return NULL;
3956 }
3957 if (_obj4)
3958 {
3959 _arg4 = &temp0;
3960 if (! wxSize_helper(_obj4, &_arg4))
3961 return NULL;
3962 }
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3966
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) return NULL;
3969 } _resultobj = Py_BuildValue("i",_result);
3970 return _resultobj;
3971 }
3972
3973 static void *SwigwxStaticTextTowxControl(void *ptr) {
3974 wxStaticText *src;
3975 wxControl *dest;
3976 src = (wxStaticText *) ptr;
3977 dest = (wxControl *) src;
3978 return (void *) dest;
3979 }
3980
3981 static void *SwigwxStaticTextTowxWindow(void *ptr) {
3982 wxStaticText *src;
3983 wxWindow *dest;
3984 src = (wxStaticText *) ptr;
3985 dest = (wxWindow *) src;
3986 return (void *) dest;
3987 }
3988
3989 static void *SwigwxStaticTextTowxEvtHandler(void *ptr) {
3990 wxStaticText *src;
3991 wxEvtHandler *dest;
3992 src = (wxStaticText *) ptr;
3993 dest = (wxEvtHandler *) src;
3994 return (void *) dest;
3995 }
3996
3997 static void *SwigwxStaticTextTowxObject(void *ptr) {
3998 wxStaticText *src;
3999 wxObject *dest;
4000 src = (wxStaticText *) ptr;
4001 dest = (wxObject *) src;
4002 return (void *) dest;
4003 }
4004
4005 #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4006 static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4007 PyObject * _resultobj;
4008 wxStaticText * _result;
4009 wxWindow * _arg0;
4010 wxWindowID _arg1;
4011 wxString * _arg2;
4012 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4013 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4014 long _arg5 = (long ) 0;
4015 char * _arg6 = (char *) "staticText";
4016 PyObject * _argo0 = 0;
4017 PyObject * _obj2 = 0;
4018 wxPoint temp;
4019 PyObject * _obj3 = 0;
4020 wxSize temp0;
4021 PyObject * _obj4 = 0;
4022 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
4023 char _ptemp[128];
4024
4025 self = self;
4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
4027 return NULL;
4028 if (_argo0) {
4029 if (_argo0 == Py_None) { _arg0 = NULL; }
4030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p.");
4032 return NULL;
4033 }
4034 }
4035 {
4036 _arg2 = wxString_in_helper(_obj2);
4037 if (_arg2 == NULL)
4038 return NULL;
4039 }
4040 if (_obj3)
4041 {
4042 _arg3 = &temp;
4043 if (! wxPoint_helper(_obj3, &_arg3))
4044 return NULL;
4045 }
4046 if (_obj4)
4047 {
4048 _arg4 = &temp0;
4049 if (! wxSize_helper(_obj4, &_arg4))
4050 return NULL;
4051 }
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4055
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) return NULL;
4058 } if (_result) {
4059 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4060 _resultobj = Py_BuildValue("s",_ptemp);
4061 } else {
4062 Py_INCREF(Py_None);
4063 _resultobj = Py_None;
4064 }
4065 {
4066 if (_obj2)
4067 delete _arg2;
4068 }
4069 return _resultobj;
4070 }
4071
4072 #define new_wxPreStaticText() (new wxStaticText())
4073 static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject * _resultobj;
4075 wxStaticText * _result;
4076 char *_kwnames[] = { NULL };
4077 char _ptemp[128];
4078
4079 self = self;
4080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames))
4081 return NULL;
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 _result = (wxStaticText *)new_wxPreStaticText();
4085
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) return NULL;
4088 } if (_result) {
4089 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4090 _resultobj = Py_BuildValue("s",_ptemp);
4091 } else {
4092 Py_INCREF(Py_None);
4093 _resultobj = Py_None;
4094 }
4095 return _resultobj;
4096 }
4097
4098 #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4099 static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4100 PyObject * _resultobj;
4101 bool _result;
4102 wxStaticText * _arg0;
4103 wxWindow * _arg1;
4104 wxWindowID _arg2;
4105 wxString * _arg3;
4106 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4107 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4108 long _arg6 = (long ) 0;
4109 char * _arg7 = (char *) "staticText";
4110 PyObject * _argo0 = 0;
4111 PyObject * _argo1 = 0;
4112 PyObject * _obj3 = 0;
4113 wxPoint temp;
4114 PyObject * _obj4 = 0;
4115 wxSize temp0;
4116 PyObject * _obj5 = 0;
4117 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4118
4119 self = self;
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
4121 return NULL;
4122 if (_argo0) {
4123 if (_argo0 == Py_None) { _arg0 = NULL; }
4124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p.");
4126 return NULL;
4127 }
4128 }
4129 if (_argo1) {
4130 if (_argo1 == Py_None) { _arg1 = NULL; }
4131 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4132 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p.");
4133 return NULL;
4134 }
4135 }
4136 {
4137 _arg3 = wxString_in_helper(_obj3);
4138 if (_arg3 == NULL)
4139 return NULL;
4140 }
4141 if (_obj4)
4142 {
4143 _arg4 = &temp;
4144 if (! wxPoint_helper(_obj4, &_arg4))
4145 return NULL;
4146 }
4147 if (_obj5)
4148 {
4149 _arg5 = &temp0;
4150 if (! wxSize_helper(_obj5, &_arg5))
4151 return NULL;
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) return NULL;
4159 } _resultobj = Py_BuildValue("i",_result);
4160 {
4161 if (_obj3)
4162 delete _arg3;
4163 }
4164 return _resultobj;
4165 }
4166
4167 #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel())
4168 static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4169 PyObject * _resultobj;
4170 wxString * _result;
4171 wxStaticText * _arg0;
4172 PyObject * _argo0 = 0;
4173 char *_kwnames[] = { "self", NULL };
4174
4175 self = self;
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0))
4177 return NULL;
4178 if (_argo0) {
4179 if (_argo0 == Py_None) { _arg0 = NULL; }
4180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p.");
4182 return NULL;
4183 }
4184 }
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 _result = new wxString (wxStaticText_GetLabel(_arg0));
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) return NULL;
4191 }{
4192 #if wxUSE_UNICODE
4193 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4194 #else
4195 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4196 #endif
4197 }
4198 {
4199 delete _result;
4200 }
4201 return _resultobj;
4202 }
4203
4204 #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
4205 static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4206 PyObject * _resultobj;
4207 wxStaticText * _arg0;
4208 wxString * _arg1;
4209 PyObject * _argo0 = 0;
4210 PyObject * _obj1 = 0;
4211 char *_kwnames[] = { "self","label", NULL };
4212
4213 self = self;
4214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1))
4215 return NULL;
4216 if (_argo0) {
4217 if (_argo0 == Py_None) { _arg0 = NULL; }
4218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p.");
4220 return NULL;
4221 }
4222 }
4223 {
4224 _arg1 = wxString_in_helper(_obj1);
4225 if (_arg1 == NULL)
4226 return NULL;
4227 }
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 wxStaticText_SetLabel(_arg0,*_arg1);
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) return NULL;
4234 } Py_INCREF(Py_None);
4235 _resultobj = Py_None;
4236 {
4237 if (_obj1)
4238 delete _arg1;
4239 }
4240 return _resultobj;
4241 }
4242
4243 static void *SwigwxListBoxTowxControlWithItems(void *ptr) {
4244 wxListBox *src;
4245 wxControlWithItems *dest;
4246 src = (wxListBox *) ptr;
4247 dest = (wxControlWithItems *) src;
4248 return (void *) dest;
4249 }
4250
4251 static void *SwigwxListBoxTowxControl(void *ptr) {
4252 wxListBox *src;
4253 wxControl *dest;
4254 src = (wxListBox *) ptr;
4255 dest = (wxControl *) src;
4256 return (void *) dest;
4257 }
4258
4259 static void *SwigwxListBoxTowxWindow(void *ptr) {
4260 wxListBox *src;
4261 wxWindow *dest;
4262 src = (wxListBox *) ptr;
4263 dest = (wxWindow *) src;
4264 return (void *) dest;
4265 }
4266
4267 static void *SwigwxListBoxTowxEvtHandler(void *ptr) {
4268 wxListBox *src;
4269 wxEvtHandler *dest;
4270 src = (wxListBox *) ptr;
4271 dest = (wxEvtHandler *) src;
4272 return (void *) dest;
4273 }
4274
4275 static void *SwigwxListBoxTowxObject(void *ptr) {
4276 wxListBox *src;
4277 wxObject *dest;
4278 src = (wxListBox *) ptr;
4279 dest = (wxObject *) src;
4280 return (void *) dest;
4281 }
4282
4283 #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4284 static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4285 PyObject * _resultobj;
4286 wxListBox * _result;
4287 wxWindow * _arg0;
4288 wxWindowID _arg1;
4289 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4290 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4291 int _arg4;
4292 wxString * _arg5 = (wxString *) NULL;
4293 long _arg6 = (long ) 0;
4294 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
4295 char * _arg8 = (char *) "listBox";
4296 PyObject * _argo0 = 0;
4297 wxPoint temp;
4298 PyObject * _obj2 = 0;
4299 wxSize temp0;
4300 PyObject * _obj3 = 0;
4301 PyObject * _obj5 = 0;
4302 PyObject * _argo7 = 0;
4303 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
4304 char _ptemp[128];
4305
4306 self = self;
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
4308 return NULL;
4309 if (_argo0) {
4310 if (_argo0 == Py_None) { _arg0 = NULL; }
4311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p.");
4313 return NULL;
4314 }
4315 }
4316 if (_obj2)
4317 {
4318 _arg2 = &temp;
4319 if (! wxPoint_helper(_obj2, &_arg2))
4320 return NULL;
4321 }
4322 if (_obj3)
4323 {
4324 _arg3 = &temp0;
4325 if (! wxSize_helper(_obj3, &_arg3))
4326 return NULL;
4327 }
4328 if (_obj5)
4329 {
4330 _arg5 = wxString_LIST_helper(_obj5);
4331 if (_arg5 == NULL) {
4332 return NULL;
4333 }
4334 }
4335 if (_argo7) {
4336 if (_argo7 == Py_None) { _arg7 = NULL; }
4337 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
4338 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p.");
4339 return NULL;
4340 }
4341 }
4342 {
4343 if (_obj5) {
4344 _arg4 = PyList_Size(_obj5);
4345 }
4346 else {
4347 _arg4 = 0;
4348 }
4349 }
4350 {
4351 PyThreadState* __tstate = wxPyBeginAllowThreads();
4352 _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
4353
4354 wxPyEndAllowThreads(__tstate);
4355 if (PyErr_Occurred()) return NULL;
4356 } if (_result) {
4357 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4358 _resultobj = Py_BuildValue("s",_ptemp);
4359 } else {
4360 Py_INCREF(Py_None);
4361 _resultobj = Py_None;
4362 }
4363 {
4364 delete [] _arg5;
4365 }
4366 return _resultobj;
4367 }
4368
4369 #define new_wxPreListBox() (new wxListBox())
4370 static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4371 PyObject * _resultobj;
4372 wxListBox * _result;
4373 char *_kwnames[] = { NULL };
4374 char _ptemp[128];
4375
4376 self = self;
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames))
4378 return NULL;
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 _result = (wxListBox *)new_wxPreListBox();
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) return NULL;
4385 } if (_result) {
4386 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
4387 _resultobj = Py_BuildValue("s",_ptemp);
4388 } else {
4389 Py_INCREF(Py_None);
4390 _resultobj = Py_None;
4391 }
4392 return _resultobj;
4393 }
4394
4395 #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4396 static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4397 PyObject * _resultobj;
4398 bool _result;
4399 wxListBox * _arg0;
4400 wxWindow * _arg1;
4401 wxWindowID _arg2;
4402 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4403 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4404 int _arg5;
4405 wxString * _arg6 = (wxString *) NULL;
4406 long _arg7 = (long ) 0;
4407 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
4408 char * _arg9 = (char *) "listBox";
4409 PyObject * _argo0 = 0;
4410 PyObject * _argo1 = 0;
4411 wxPoint temp;
4412 PyObject * _obj3 = 0;
4413 wxSize temp0;
4414 PyObject * _obj4 = 0;
4415 PyObject * _obj6 = 0;
4416 PyObject * _argo8 = 0;
4417 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
4418
4419 self = self;
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
4421 return NULL;
4422 if (_argo0) {
4423 if (_argo0 == Py_None) { _arg0 = NULL; }
4424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p.");
4426 return NULL;
4427 }
4428 }
4429 if (_argo1) {
4430 if (_argo1 == Py_None) { _arg1 = NULL; }
4431 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4432 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p.");
4433 return NULL;
4434 }
4435 }
4436 if (_obj3)
4437 {
4438 _arg3 = &temp;
4439 if (! wxPoint_helper(_obj3, &_arg3))
4440 return NULL;
4441 }
4442 if (_obj4)
4443 {
4444 _arg4 = &temp0;
4445 if (! wxSize_helper(_obj4, &_arg4))
4446 return NULL;
4447 }
4448 if (_obj6)
4449 {
4450 _arg6 = wxString_LIST_helper(_obj6);
4451 if (_arg6 == NULL) {
4452 return NULL;
4453 }
4454 }
4455 if (_argo8) {
4456 if (_argo8 == Py_None) { _arg8 = NULL; }
4457 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
4458 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p.");
4459 return NULL;
4460 }
4461 }
4462 {
4463 if (_obj6) {
4464 _arg5 = PyList_Size(_obj6);
4465 }
4466 else {
4467 _arg5 = 0;
4468 }
4469 }
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
4473
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) return NULL;
4476 } _resultobj = Py_BuildValue("i",_result);
4477 {
4478 delete [] _arg6;
4479 }
4480 return _resultobj;
4481 }
4482
4483 #define wxListBox_Clear(_swigobj) (_swigobj->Clear())
4484 static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4485 PyObject * _resultobj;
4486 wxListBox * _arg0;
4487 PyObject * _argo0 = 0;
4488 char *_kwnames[] = { "self", NULL };
4489
4490 self = self;
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0))
4492 return NULL;
4493 if (_argo0) {
4494 if (_argo0 == Py_None) { _arg0 = NULL; }
4495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p.");
4497 return NULL;
4498 }
4499 }
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 wxListBox_Clear(_arg0);
4503
4504 wxPyEndAllowThreads(__tstate);
4505 if (PyErr_Occurred()) return NULL;
4506 } Py_INCREF(Py_None);
4507 _resultobj = Py_None;
4508 return _resultobj;
4509 }
4510
4511 #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0))
4512 static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
4513 PyObject * _resultobj;
4514 wxListBox * _arg0;
4515 int _arg1;
4516 PyObject * _argo0 = 0;
4517 char *_kwnames[] = { "self","n", NULL };
4518
4519 self = self;
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1))
4521 return NULL;
4522 if (_argo0) {
4523 if (_argo0 == Py_None) { _arg0 = NULL; }
4524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p.");
4526 return NULL;
4527 }
4528 }
4529 {
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 wxListBox_Deselect(_arg0,_arg1);
4532
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) return NULL;
4535 } Py_INCREF(Py_None);
4536 _resultobj = Py_None;
4537 return _resultobj;
4538 }
4539
4540 static PyObject * wxListBox_GetSelections(wxListBox *self) {
4541 wxArrayInt lst;
4542 self->GetSelections(lst);
4543 PyObject *tup = PyTuple_New(lst.GetCount());
4544 for(size_t i=0; i<lst.GetCount(); i++) {
4545 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
4546 }
4547 return tup;
4548 }
4549 static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
4550 PyObject * _resultobj;
4551 PyObject * _result;
4552 wxListBox * _arg0;
4553 PyObject * _argo0 = 0;
4554 char *_kwnames[] = { "self", NULL };
4555
4556 self = self;
4557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0))
4558 return NULL;
4559 if (_argo0) {
4560 if (_argo0 == Py_None) { _arg0 = NULL; }
4561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p.");
4563 return NULL;
4564 }
4565 }
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 _result = (PyObject *)wxListBox_GetSelections(_arg0);
4569
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) return NULL;
4572 }{
4573 _resultobj = _result;
4574 }
4575 return _resultobj;
4576 }
4577
4578 #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
4579 static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4580 PyObject * _resultobj;
4581 wxListBox * _arg0;
4582 int _arg1;
4583 wxString * _arg2;
4584 int _arg3;
4585 PyObject * _argo0 = 0;
4586 PyObject * _obj2 = 0;
4587 char *_kwnames[] = { "self","choices","pos", NULL };
4588
4589 self = self;
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
4591 return NULL;
4592 if (_argo0) {
4593 if (_argo0 == Py_None) { _arg0 = NULL; }
4594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p.");
4596 return NULL;
4597 }
4598 }
4599 {
4600 _arg2 = wxString_LIST_helper(_obj2);
4601 if (_arg2 == NULL) {
4602 return NULL;
4603 }
4604 }
4605 {
4606 if (_obj2) {
4607 _arg1 = PyList_Size(_obj2);
4608 }
4609 else {
4610 _arg1 = 0;
4611 }
4612 }
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) return NULL;
4619 } Py_INCREF(Py_None);
4620 _resultobj = Py_None;
4621 {
4622 delete [] _arg2;
4623 }
4624 return _resultobj;
4625 }
4626
4627 #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
4628 static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject * _resultobj;
4630 bool _result;
4631 wxListBox * _arg0;
4632 int _arg1;
4633 PyObject * _argo0 = 0;
4634 char *_kwnames[] = { "self","n", NULL };
4635
4636 self = self;
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1))
4638 return NULL;
4639 if (_argo0) {
4640 if (_argo0 == Py_None) { _arg0 = NULL; }
4641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p.");
4643 return NULL;
4644 }
4645 }
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 _result = (bool )wxListBox_IsSelected(_arg0,_arg1);
4649
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) return NULL;
4652 } _resultobj = Py_BuildValue("i",_result);
4653 return _resultobj;
4654 }
4655
4656 #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0))
4657 static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) {
4658 PyObject * _resultobj;
4659 bool _result;
4660 wxListBox * _arg0;
4661 int _arg1;
4662 PyObject * _argo0 = 0;
4663 char *_kwnames[] = { "self","n", NULL };
4664
4665 self = self;
4666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1))
4667 return NULL;
4668 if (_argo0) {
4669 if (_argo0 == Py_None) { _arg0 = NULL; }
4670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p.");
4672 return NULL;
4673 }
4674 }
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 _result = (bool )wxListBox_Selected(_arg0,_arg1);
4678
4679 wxPyEndAllowThreads(__tstate);
4680 if (PyErr_Occurred()) return NULL;
4681 } _resultobj = Py_BuildValue("i",_result);
4682 return _resultobj;
4683 }
4684
4685 #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
4686 static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4687 PyObject * _resultobj;
4688 wxListBox * _arg0;
4689 int _arg1;
4690 wxString * _arg2;
4691 PyObject * _argo0 = 0;
4692 PyObject * _obj2 = 0;
4693 char *_kwnames[] = { "self","choices", NULL };
4694
4695 self = self;
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2))
4697 return NULL;
4698 if (_argo0) {
4699 if (_argo0 == Py_None) { _arg0 = NULL; }
4700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p.");
4702 return NULL;
4703 }
4704 }
4705 if (_obj2)
4706 {
4707 _arg2 = wxString_LIST_helper(_obj2);
4708 if (_arg2 == NULL) {
4709 return NULL;
4710 }
4711 }
4712 {
4713 if (_obj2) {
4714 _arg1 = PyList_Size(_obj2);
4715 }
4716 else {
4717 _arg1 = 0;
4718 }
4719 }
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 wxListBox_Set(_arg0,_arg1,_arg2);
4723
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) return NULL;
4726 } Py_INCREF(Py_None);
4727 _resultobj = Py_None;
4728 {
4729 delete [] _arg2;
4730 }
4731 return _resultobj;
4732 }
4733
4734 #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
4735 static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4736 PyObject * _resultobj;
4737 wxListBox * _arg0;
4738 int _arg1;
4739 PyObject * _argo0 = 0;
4740 char *_kwnames[] = { "self","n", NULL };
4741
4742 self = self;
4743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1))
4744 return NULL;
4745 if (_argo0) {
4746 if (_argo0 == Py_None) { _arg0 = NULL; }
4747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p.");
4749 return NULL;
4750 }
4751 }
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 wxListBox_SetFirstItem(_arg0,_arg1);
4755
4756 wxPyEndAllowThreads(__tstate);
4757 if (PyErr_Occurred()) return NULL;
4758 } Py_INCREF(Py_None);
4759 _resultobj = Py_None;
4760 return _resultobj;
4761 }
4762
4763 #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
4764 static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
4765 PyObject * _resultobj;
4766 wxListBox * _arg0;
4767 wxString * _arg1;
4768 PyObject * _argo0 = 0;
4769 PyObject * _obj1 = 0;
4770 char *_kwnames[] = { "self","string", NULL };
4771
4772 self = self;
4773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1))
4774 return NULL;
4775 if (_argo0) {
4776 if (_argo0 == Py_None) { _arg0 = NULL; }
4777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p.");
4779 return NULL;
4780 }
4781 }
4782 {
4783 _arg1 = wxString_in_helper(_obj1);
4784 if (_arg1 == NULL)
4785 return NULL;
4786 }
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 wxListBox_SetFirstItemStr(_arg0,*_arg1);
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) return NULL;
4793 } Py_INCREF(Py_None);
4794 _resultobj = Py_None;
4795 {
4796 if (_obj1)
4797 delete _arg1;
4798 }
4799 return _resultobj;
4800 }
4801
4802 #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
4803 static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4804 PyObject * _resultobj;
4805 wxListBox * _arg0;
4806 int _arg1;
4807 bool _arg2 = (bool ) TRUE;
4808 PyObject * _argo0 = 0;
4809 int tempbool2 = (int) TRUE;
4810 char *_kwnames[] = { "self","n","select", NULL };
4811
4812 self = self;
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2))
4814 return NULL;
4815 if (_argo0) {
4816 if (_argo0 == Py_None) { _arg0 = NULL; }
4817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p.");
4819 return NULL;
4820 }
4821 }
4822 _arg2 = (bool ) tempbool2;
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 wxListBox_SetSelection(_arg0,_arg1,_arg2);
4826
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) return NULL;
4829 } Py_INCREF(Py_None);
4830 _resultobj = Py_None;
4831 return _resultobj;
4832 }
4833
4834 #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
4835 static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
4836 PyObject * _resultobj;
4837 wxListBox * _arg0;
4838 int _arg1;
4839 wxString * _arg2;
4840 PyObject * _argo0 = 0;
4841 PyObject * _obj2 = 0;
4842 char *_kwnames[] = { "self","n","string", NULL };
4843
4844 self = self;
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
4846 return NULL;
4847 if (_argo0) {
4848 if (_argo0 == Py_None) { _arg0 = NULL; }
4849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p.");
4851 return NULL;
4852 }
4853 }
4854 {
4855 _arg2 = wxString_in_helper(_obj2);
4856 if (_arg2 == NULL)
4857 return NULL;
4858 }
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 wxListBox_SetString(_arg0,_arg1,*_arg2);
4862
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) return NULL;
4865 } Py_INCREF(Py_None);
4866 _resultobj = Py_None;
4867 {
4868 if (_obj2)
4869 delete _arg2;
4870 }
4871 return _resultobj;
4872 }
4873
4874 #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1))
4875 static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
4876 PyObject * _resultobj;
4877 wxListBox * _arg0;
4878 wxString * _arg1;
4879 bool _arg2 = (bool ) TRUE;
4880 PyObject * _argo0 = 0;
4881 PyObject * _obj1 = 0;
4882 int tempbool2 = (int) TRUE;
4883 char *_kwnames[] = { "self","string","select", NULL };
4884
4885 self = self;
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2))
4887 return NULL;
4888 if (_argo0) {
4889 if (_argo0 == Py_None) { _arg0 = NULL; }
4890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
4891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p.");
4892 return NULL;
4893 }
4894 }
4895 {
4896 _arg1 = wxString_in_helper(_obj1);
4897 if (_arg1 == NULL)
4898 return NULL;
4899 }
4900 _arg2 = (bool ) tempbool2;
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 wxListBox_SetStringSelection(_arg0,*_arg1,_arg2);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) return NULL;
4907 } Py_INCREF(Py_None);
4908 _resultobj = Py_None;
4909 {
4910 if (_obj1)
4911 delete _arg1;
4912 }
4913 return _resultobj;
4914 }
4915
4916 static void *SwigwxCheckListBoxTowxListBox(void *ptr) {
4917 wxCheckListBox *src;
4918 wxListBox *dest;
4919 src = (wxCheckListBox *) ptr;
4920 dest = (wxListBox *) src;
4921 return (void *) dest;
4922 }
4923
4924 static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) {
4925 wxCheckListBox *src;
4926 wxControlWithItems *dest;
4927 src = (wxCheckListBox *) ptr;
4928 dest = (wxControlWithItems *) src;
4929 return (void *) dest;
4930 }
4931
4932 static void *SwigwxCheckListBoxTowxControl(void *ptr) {
4933 wxCheckListBox *src;
4934 wxControl *dest;
4935 src = (wxCheckListBox *) ptr;
4936 dest = (wxControl *) src;
4937 return (void *) dest;
4938 }
4939
4940 static void *SwigwxCheckListBoxTowxWindow(void *ptr) {
4941 wxCheckListBox *src;
4942 wxWindow *dest;
4943 src = (wxCheckListBox *) ptr;
4944 dest = (wxWindow *) src;
4945 return (void *) dest;
4946 }
4947
4948 static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) {
4949 wxCheckListBox *src;
4950 wxEvtHandler *dest;
4951 src = (wxCheckListBox *) ptr;
4952 dest = (wxEvtHandler *) src;
4953 return (void *) dest;
4954 }
4955
4956 static void *SwigwxCheckListBoxTowxObject(void *ptr) {
4957 wxCheckListBox *src;
4958 wxObject *dest;
4959 src = (wxCheckListBox *) ptr;
4960 dest = (wxObject *) src;
4961 return (void *) dest;
4962 }
4963
4964 #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4965 static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject * _resultobj;
4967 wxCheckListBox * _result;
4968 wxWindow * _arg0;
4969 wxWindowID _arg1;
4970 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4971 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4972 int _arg4 = (int ) 0;
4973 wxString * _arg5 = (wxString *) NULL;
4974 long _arg6 = (long ) 0;
4975 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
4976 char * _arg8 = (char *) "listBox";
4977 PyObject * _argo0 = 0;
4978 wxPoint temp;
4979 PyObject * _obj2 = 0;
4980 wxSize temp0;
4981 PyObject * _obj3 = 0;
4982 PyObject * _obj5 = 0;
4983 PyObject * _argo7 = 0;
4984 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
4985 char _ptemp[128];
4986
4987 self = self;
4988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8))
4989 return NULL;
4990 if (_argo0) {
4991 if (_argo0 == Py_None) { _arg0 = NULL; }
4992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p.");
4994 return NULL;
4995 }
4996 }
4997 if (_obj2)
4998 {
4999 _arg2 = &temp;
5000 if (! wxPoint_helper(_obj2, &_arg2))
5001 return NULL;
5002 }
5003 if (_obj3)
5004 {
5005 _arg3 = &temp0;
5006 if (! wxSize_helper(_obj3, &_arg3))
5007 return NULL;
5008 }
5009 if (_obj5)
5010 {
5011 _arg5 = wxString_LIST_helper(_obj5);
5012 if (_arg5 == NULL) {
5013 return NULL;
5014 }
5015 }
5016 if (_argo7) {
5017 if (_argo7 == Py_None) { _arg7 = NULL; }
5018 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
5019 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p.");
5020 return NULL;
5021 }
5022 }
5023 {
5024 if (_obj5) {
5025 _arg4 = PyList_Size(_obj5);
5026 }
5027 else {
5028 _arg4 = 0;
5029 }
5030 }
5031 {
5032 PyThreadState* __tstate = wxPyBeginAllowThreads();
5033 _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8);
5034
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) return NULL;
5037 } if (_result) {
5038 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5039 _resultobj = Py_BuildValue("s",_ptemp);
5040 } else {
5041 Py_INCREF(Py_None);
5042 _resultobj = Py_None;
5043 }
5044 {
5045 delete [] _arg5;
5046 }
5047 return _resultobj;
5048 }
5049
5050 #define new_wxPreCheckListBox() (new wxCheckListBox())
5051 static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5052 PyObject * _resultobj;
5053 wxCheckListBox * _result;
5054 char *_kwnames[] = { NULL };
5055 char _ptemp[128];
5056
5057 self = self;
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames))
5059 return NULL;
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 _result = (wxCheckListBox *)new_wxPreCheckListBox();
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) return NULL;
5066 } if (_result) {
5067 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5068 _resultobj = Py_BuildValue("s",_ptemp);
5069 } else {
5070 Py_INCREF(Py_None);
5071 _resultobj = Py_None;
5072 }
5073 return _resultobj;
5074 }
5075
5076 #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5077 static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5078 PyObject * _resultobj;
5079 bool _result;
5080 wxCheckListBox * _arg0;
5081 wxWindow * _arg1;
5082 wxWindowID _arg2;
5083 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5084 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5085 int _arg5 = (int ) 0;
5086 wxString * _arg6 = (wxString *) NULL;
5087 long _arg7 = (long ) 0;
5088 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
5089 char * _arg9 = (char *) "listBox";
5090 PyObject * _argo0 = 0;
5091 PyObject * _argo1 = 0;
5092 wxPoint temp;
5093 PyObject * _obj3 = 0;
5094 wxSize temp0;
5095 PyObject * _obj4 = 0;
5096 PyObject * _obj6 = 0;
5097 PyObject * _argo8 = 0;
5098 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
5099
5100 self = self;
5101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9))
5102 return NULL;
5103 if (_argo0) {
5104 if (_argo0 == Py_None) { _arg0 = NULL; }
5105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p.");
5107 return NULL;
5108 }
5109 }
5110 if (_argo1) {
5111 if (_argo1 == Py_None) { _arg1 = NULL; }
5112 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5113 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p.");
5114 return NULL;
5115 }
5116 }
5117 if (_obj3)
5118 {
5119 _arg3 = &temp;
5120 if (! wxPoint_helper(_obj3, &_arg3))
5121 return NULL;
5122 }
5123 if (_obj4)
5124 {
5125 _arg4 = &temp0;
5126 if (! wxSize_helper(_obj4, &_arg4))
5127 return NULL;
5128 }
5129 if (_obj6)
5130 {
5131 _arg6 = wxString_LIST_helper(_obj6);
5132 if (_arg6 == NULL) {
5133 return NULL;
5134 }
5135 }
5136 if (_argo8) {
5137 if (_argo8 == Py_None) { _arg8 = NULL; }
5138 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
5139 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p.");
5140 return NULL;
5141 }
5142 }
5143 {
5144 if (_obj6) {
5145 _arg5 = PyList_Size(_obj6);
5146 }
5147 else {
5148 _arg5 = 0;
5149 }
5150 }
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9);
5154
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) return NULL;
5157 } _resultobj = Py_BuildValue("i",_result);
5158 {
5159 delete [] _arg6;
5160 }
5161 return _resultobj;
5162 }
5163
5164 #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
5165 static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5166 PyObject * _resultobj;
5167 bool _result;
5168 wxCheckListBox * _arg0;
5169 int _arg1;
5170 PyObject * _argo0 = 0;
5171 char *_kwnames[] = { "self","uiIndex", NULL };
5172
5173 self = self;
5174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1))
5175 return NULL;
5176 if (_argo0) {
5177 if (_argo0 == Py_None) { _arg0 = NULL; }
5178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p.");
5180 return NULL;
5181 }
5182 }
5183 {
5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
5185 _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1);
5186
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) return NULL;
5189 } _resultobj = Py_BuildValue("i",_result);
5190 return _resultobj;
5191 }
5192
5193 #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5194 static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject * _resultobj;
5196 wxCheckListBox * _arg0;
5197 int _arg1;
5198 int _arg2 = (int ) TRUE;
5199 PyObject * _argo0 = 0;
5200 char *_kwnames[] = { "self","uiIndex","bCheck", NULL };
5201
5202 self = self;
5203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2))
5204 return NULL;
5205 if (_argo0) {
5206 if (_argo0 == Py_None) { _arg0 = NULL; }
5207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p.");
5209 return NULL;
5210 }
5211 }
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 wxCheckListBox_Check(_arg0,_arg1,_arg2);
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) return NULL;
5218 } Py_INCREF(Py_None);
5219 _resultobj = Py_None;
5220 return _resultobj;
5221 }
5222
5223 #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
5224 static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5225 PyObject * _resultobj;
5226 wxCheckListBox * _arg0;
5227 int _arg1;
5228 wxString * _arg2;
5229 int _arg3;
5230 PyObject * _argo0 = 0;
5231 PyObject * _obj2 = 0;
5232 char *_kwnames[] = { "self","choices","pos", NULL };
5233
5234 self = self;
5235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
5236 return NULL;
5237 if (_argo0) {
5238 if (_argo0 == Py_None) { _arg0 = NULL; }
5239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p.");
5241 return NULL;
5242 }
5243 }
5244 {
5245 _arg2 = wxString_LIST_helper(_obj2);
5246 if (_arg2 == NULL) {
5247 return NULL;
5248 }
5249 }
5250 {
5251 if (_obj2) {
5252 _arg1 = PyList_Size(_obj2);
5253 }
5254 else {
5255 _arg1 = 0;
5256 }
5257 }
5258 {
5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
5260 wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
5261
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) return NULL;
5264 } Py_INCREF(Py_None);
5265 _resultobj = Py_None;
5266 {
5267 delete [] _arg2;
5268 }
5269 return _resultobj;
5270 }
5271
5272 #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2))
5273 static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject * _resultobj;
5275 wxTextAttr * _result;
5276 wxColour * _arg0 = (wxColour *) &wxNullColour;
5277 wxColour * _arg1 = (wxColour *) &wxNullColour;
5278 wxFont * _arg2 = (wxFont *) &wxNullFont;
5279 wxColour temp;
5280 PyObject * _obj0 = 0;
5281 wxColour temp0;
5282 PyObject * _obj1 = 0;
5283 PyObject * _argo2 = 0;
5284 char *_kwnames[] = { "colText","colBack","font", NULL };
5285 char _ptemp[128];
5286
5287 self = self;
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5289 return NULL;
5290 if (_obj0)
5291 {
5292 _arg0 = &temp;
5293 if (! wxColour_helper(_obj0, &_arg0))
5294 return NULL;
5295 }
5296 if (_obj1)
5297 {
5298 _arg1 = &temp0;
5299 if (! wxColour_helper(_obj1, &_arg1))
5300 return NULL;
5301 }
5302 if (_argo2) {
5303 if (_argo2 == Py_None) { _arg2 = NULL; }
5304 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5305 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p.");
5306 return NULL;
5307 }
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) return NULL;
5315 } if (_result) {
5316 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
5317 _resultobj = Py_BuildValue("s",_ptemp);
5318 } else {
5319 Py_INCREF(Py_None);
5320 _resultobj = Py_None;
5321 }
5322 return _resultobj;
5323 }
5324
5325 #define delete_wxTextAttr(_swigobj) (delete _swigobj)
5326 static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5327 PyObject * _resultobj;
5328 wxTextAttr * _arg0;
5329 PyObject * _argo0 = 0;
5330 char *_kwnames[] = { "self", NULL };
5331
5332 self = self;
5333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0))
5334 return NULL;
5335 if (_argo0) {
5336 if (_argo0 == Py_None) { _arg0 = NULL; }
5337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p.");
5339 return NULL;
5340 }
5341 }
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 delete_wxTextAttr(_arg0);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) return NULL;
5348 } Py_INCREF(Py_None);
5349 _resultobj = Py_None;
5350 return _resultobj;
5351 }
5352
5353 #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5354 static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5355 PyObject * _resultobj;
5356 wxTextAttr * _arg0;
5357 wxColour * _arg1;
5358 PyObject * _argo0 = 0;
5359 wxColour temp;
5360 PyObject * _obj1 = 0;
5361 char *_kwnames[] = { "self","colText", NULL };
5362
5363 self = self;
5364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5365 return NULL;
5366 if (_argo0) {
5367 if (_argo0 == Py_None) { _arg0 = NULL; }
5368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p.");
5370 return NULL;
5371 }
5372 }
5373 {
5374 _arg1 = &temp;
5375 if (! wxColour_helper(_obj1, &_arg1))
5376 return NULL;
5377 }
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 wxTextAttr_SetTextColour(_arg0,*_arg1);
5381
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) return NULL;
5384 } Py_INCREF(Py_None);
5385 _resultobj = Py_None;
5386 return _resultobj;
5387 }
5388
5389 #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5390 static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5391 PyObject * _resultobj;
5392 wxTextAttr * _arg0;
5393 wxColour * _arg1;
5394 PyObject * _argo0 = 0;
5395 wxColour temp;
5396 PyObject * _obj1 = 0;
5397 char *_kwnames[] = { "self","colBack", NULL };
5398
5399 self = self;
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5401 return NULL;
5402 if (_argo0) {
5403 if (_argo0 == Py_None) { _arg0 = NULL; }
5404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p.");
5406 return NULL;
5407 }
5408 }
5409 {
5410 _arg1 = &temp;
5411 if (! wxColour_helper(_obj1, &_arg1))
5412 return NULL;
5413 }
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 wxTextAttr_SetBackgroundColour(_arg0,*_arg1);
5417
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) return NULL;
5420 } Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 return _resultobj;
5423 }
5424
5425 #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5426 static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject * _resultobj;
5428 wxTextAttr * _arg0;
5429 wxFont * _arg1;
5430 PyObject * _argo0 = 0;
5431 PyObject * _argo1 = 0;
5432 char *_kwnames[] = { "self","font", NULL };
5433
5434 self = self;
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1))
5436 return NULL;
5437 if (_argo0) {
5438 if (_argo0 == Py_None) { _arg0 = NULL; }
5439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p.");
5441 return NULL;
5442 }
5443 }
5444 if (_argo1) {
5445 if (_argo1 == Py_None) { _arg1 = NULL; }
5446 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5447 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p.");
5448 return NULL;
5449 }
5450 }
5451 {
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 wxTextAttr_SetFont(_arg0,*_arg1);
5454
5455 wxPyEndAllowThreads(__tstate);
5456 if (PyErr_Occurred()) return NULL;
5457 } Py_INCREF(Py_None);
5458 _resultobj = Py_None;
5459 return _resultobj;
5460 }
5461
5462 #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5463 static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject * _resultobj;
5465 bool _result;
5466 wxTextAttr * _arg0;
5467 PyObject * _argo0 = 0;
5468 char *_kwnames[] = { "self", NULL };
5469
5470 self = self;
5471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0))
5472 return NULL;
5473 if (_argo0) {
5474 if (_argo0 == Py_None) { _arg0 = NULL; }
5475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p.");
5477 return NULL;
5478 }
5479 }
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 _result = (bool )wxTextAttr_HasTextColour(_arg0);
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) return NULL;
5486 } _resultobj = Py_BuildValue("i",_result);
5487 return _resultobj;
5488 }
5489
5490 #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5491 static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5492 PyObject * _resultobj;
5493 bool _result;
5494 wxTextAttr * _arg0;
5495 PyObject * _argo0 = 0;
5496 char *_kwnames[] = { "self", NULL };
5497
5498 self = self;
5499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0))
5500 return NULL;
5501 if (_argo0) {
5502 if (_argo0 == Py_None) { _arg0 = NULL; }
5503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p.");
5505 return NULL;
5506 }
5507 }
5508 {
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 _result = (bool )wxTextAttr_HasBackgroundColour(_arg0);
5511
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) return NULL;
5514 } _resultobj = Py_BuildValue("i",_result);
5515 return _resultobj;
5516 }
5517
5518 #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont())
5519 static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5520 PyObject * _resultobj;
5521 bool _result;
5522 wxTextAttr * _arg0;
5523 PyObject * _argo0 = 0;
5524 char *_kwnames[] = { "self", NULL };
5525
5526 self = self;
5527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0))
5528 return NULL;
5529 if (_argo0) {
5530 if (_argo0 == Py_None) { _arg0 = NULL; }
5531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p.");
5533 return NULL;
5534 }
5535 }
5536 {
5537 PyThreadState* __tstate = wxPyBeginAllowThreads();
5538 _result = (bool )wxTextAttr_HasFont(_arg0);
5539
5540 wxPyEndAllowThreads(__tstate);
5541 if (PyErr_Occurred()) return NULL;
5542 } _resultobj = Py_BuildValue("i",_result);
5543 return _resultobj;
5544 }
5545
5546 #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5547 static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject * _resultobj;
5549 wxColour * _result;
5550 wxTextAttr * _arg0;
5551 PyObject * _argo0 = 0;
5552 char *_kwnames[] = { "self", NULL };
5553 char _ptemp[128];
5554
5555 self = self;
5556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0))
5557 return NULL;
5558 if (_argo0) {
5559 if (_argo0 == Py_None) { _arg0 = NULL; }
5560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p.");
5562 return NULL;
5563 }
5564 }
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 _result = new wxColour (wxTextAttr_GetTextColour(_arg0));
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) return NULL;
5571 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5572 _resultobj = Py_BuildValue("s",_ptemp);
5573 return _resultobj;
5574 }
5575
5576 #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5577 static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5578 PyObject * _resultobj;
5579 wxColour * _result;
5580 wxTextAttr * _arg0;
5581 PyObject * _argo0 = 0;
5582 char *_kwnames[] = { "self", NULL };
5583 char _ptemp[128];
5584
5585 self = self;
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0))
5587 return NULL;
5588 if (_argo0) {
5589 if (_argo0 == Py_None) { _arg0 = NULL; }
5590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p.");
5592 return NULL;
5593 }
5594 }
5595 {
5596 PyThreadState* __tstate = wxPyBeginAllowThreads();
5597 _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0));
5598
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) return NULL;
5601 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5602 _resultobj = Py_BuildValue("s",_ptemp);
5603 return _resultobj;
5604 }
5605
5606 #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont())
5607 static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5608 PyObject * _resultobj;
5609 wxFont * _result;
5610 wxTextAttr * _arg0;
5611 PyObject * _argo0 = 0;
5612 char *_kwnames[] = { "self", NULL };
5613 char _ptemp[128];
5614
5615 self = self;
5616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0))
5617 return NULL;
5618 if (_argo0) {
5619 if (_argo0 == Py_None) { _arg0 = NULL; }
5620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p.");
5622 return NULL;
5623 }
5624 }
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 _result = new wxFont (wxTextAttr_GetFont(_arg0));
5628
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) return NULL;
5631 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
5632 _resultobj = Py_BuildValue("s",_ptemp);
5633 return _resultobj;
5634 }
5635
5636 #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault())
5637 static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
5638 PyObject * _resultobj;
5639 bool _result;
5640 wxTextAttr * _arg0;
5641 PyObject * _argo0 = 0;
5642 char *_kwnames[] = { "self", NULL };
5643
5644 self = self;
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0))
5646 return NULL;
5647 if (_argo0) {
5648 if (_argo0 == Py_None) { _arg0 = NULL; }
5649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p.");
5651 return NULL;
5652 }
5653 }
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 _result = (bool )wxTextAttr_IsDefault(_arg0);
5657
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) return NULL;
5660 } _resultobj = Py_BuildValue("i",_result);
5661 return _resultobj;
5662 }
5663
5664 static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
5665 PyObject * _resultobj;
5666 wxTextAttr * _result;
5667 wxTextAttr * _arg0;
5668 wxTextAttr * _arg1;
5669 wxTextCtrl * _arg2;
5670 PyObject * _argo0 = 0;
5671 PyObject * _argo1 = 0;
5672 PyObject * _argo2 = 0;
5673 char *_kwnames[] = { "attr","attrDef","text", NULL };
5674 char _ptemp[128];
5675
5676 self = self;
5677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2))
5678 return NULL;
5679 if (_argo0) {
5680 if (_argo0 == Py_None) { _arg0 = NULL; }
5681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
5682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
5683 return NULL;
5684 }
5685 }
5686 if (_argo1) {
5687 if (_argo1 == Py_None) { _arg1 = NULL; }
5688 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
5689 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
5690 return NULL;
5691 }
5692 }
5693 if (_argo2) {
5694 if (_argo2 == Py_None) { _arg2 = NULL; }
5695 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) {
5696 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p.");
5697 return NULL;
5698 }
5699 }
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2));
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) return NULL;
5706 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p");
5707 _resultobj = Py_BuildValue("s",_ptemp);
5708 return _resultobj;
5709 }
5710
5711 static void *SwigwxTextCtrlTowxControl(void *ptr) {
5712 wxTextCtrl *src;
5713 wxControl *dest;
5714 src = (wxTextCtrl *) ptr;
5715 dest = (wxControl *) src;
5716 return (void *) dest;
5717 }
5718
5719 static void *SwigwxTextCtrlTowxWindow(void *ptr) {
5720 wxTextCtrl *src;
5721 wxWindow *dest;
5722 src = (wxTextCtrl *) ptr;
5723 dest = (wxWindow *) src;
5724 return (void *) dest;
5725 }
5726
5727 static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) {
5728 wxTextCtrl *src;
5729 wxEvtHandler *dest;
5730 src = (wxTextCtrl *) ptr;
5731 dest = (wxEvtHandler *) src;
5732 return (void *) dest;
5733 }
5734
5735 static void *SwigwxTextCtrlTowxObject(void *ptr) {
5736 wxTextCtrl *src;
5737 wxObject *dest;
5738 src = (wxTextCtrl *) ptr;
5739 dest = (wxObject *) src;
5740 return (void *) dest;
5741 }
5742
5743 #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
5744 static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
5745 PyObject * _resultobj;
5746 wxTextCtrl * _result;
5747 wxWindow * _arg0;
5748 wxWindowID _arg1;
5749 char * _arg2 = (char *) "";
5750 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5751 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5752 long _arg5 = (long ) 0;
5753 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
5754 char * _arg7 = (char *) "text";
5755 PyObject * _argo0 = 0;
5756 wxPoint temp;
5757 PyObject * _obj3 = 0;
5758 wxSize temp0;
5759 PyObject * _obj4 = 0;
5760 PyObject * _argo6 = 0;
5761 char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL };
5762 char _ptemp[128];
5763
5764 self = self;
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
5766 return NULL;
5767 if (_argo0) {
5768 if (_argo0 == Py_None) { _arg0 = NULL; }
5769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p.");
5771 return NULL;
5772 }
5773 }
5774 if (_obj3)
5775 {
5776 _arg3 = &temp;
5777 if (! wxPoint_helper(_obj3, &_arg3))
5778 return NULL;
5779 }
5780 if (_obj4)
5781 {
5782 _arg4 = &temp0;
5783 if (! wxSize_helper(_obj4, &_arg4))
5784 return NULL;
5785 }
5786 if (_argo6) {
5787 if (_argo6 == Py_None) { _arg6 = NULL; }
5788 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
5789 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p.");
5790 return NULL;
5791 }
5792 }
5793 {
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
5796
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) return NULL;
5799 } if (_result) {
5800 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5801 _resultobj = Py_BuildValue("s",_ptemp);
5802 } else {
5803 Py_INCREF(Py_None);
5804 _resultobj = Py_None;
5805 }
5806 return _resultobj;
5807 }
5808
5809 #define new_wxPreTextCtrl() (new wxTextCtrl())
5810 static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
5811 PyObject * _resultobj;
5812 wxTextCtrl * _result;
5813 char *_kwnames[] = { NULL };
5814 char _ptemp[128];
5815
5816 self = self;
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames))
5818 return NULL;
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 _result = (wxTextCtrl *)new_wxPreTextCtrl();
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) return NULL;
5825 } if (_result) {
5826 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5827 _resultobj = Py_BuildValue("s",_ptemp);
5828 } else {
5829 Py_INCREF(Py_None);
5830 _resultobj = Py_None;
5831 }
5832 return _resultobj;
5833 }
5834
5835 #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
5836 static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5837 PyObject * _resultobj;
5838 bool _result;
5839 wxTextCtrl * _arg0;
5840 wxWindow * _arg1;
5841 wxWindowID _arg2;
5842 char * _arg3 = (char *) "";
5843 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
5844 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
5845 long _arg6 = (long ) 0;
5846 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
5847 char * _arg8 = (char *) "text";
5848 PyObject * _argo0 = 0;
5849 PyObject * _argo1 = 0;
5850 wxPoint temp;
5851 PyObject * _obj4 = 0;
5852 wxSize temp0;
5853 PyObject * _obj5 = 0;
5854 PyObject * _argo7 = 0;
5855 char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL };
5856
5857 self = self;
5858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
5859 return NULL;
5860 if (_argo0) {
5861 if (_argo0 == Py_None) { _arg0 = NULL; }
5862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p.");
5864 return NULL;
5865 }
5866 }
5867 if (_argo1) {
5868 if (_argo1 == Py_None) { _arg1 = NULL; }
5869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p.");
5871 return NULL;
5872 }
5873 }
5874 if (_obj4)
5875 {
5876 _arg4 = &temp;
5877 if (! wxPoint_helper(_obj4, &_arg4))
5878 return NULL;
5879 }
5880 if (_obj5)
5881 {
5882 _arg5 = &temp0;
5883 if (! wxSize_helper(_obj5, &_arg5))
5884 return NULL;
5885 }
5886 if (_argo7) {
5887 if (_argo7 == Py_None) { _arg7 = NULL; }
5888 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
5889 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p.");
5890 return NULL;
5891 }
5892 }
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) return NULL;
5899 } _resultobj = Py_BuildValue("i",_result);
5900 return _resultobj;
5901 }
5902
5903 #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue())
5904 static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5905 PyObject * _resultobj;
5906 wxString * _result;
5907 wxTextCtrl * _arg0;
5908 PyObject * _argo0 = 0;
5909 char *_kwnames[] = { "self", NULL };
5910
5911 self = self;
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0))
5913 return NULL;
5914 if (_argo0) {
5915 if (_argo0 == Py_None) { _arg0 = NULL; }
5916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p.");
5918 return NULL;
5919 }
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 _result = new wxString (wxTextCtrl_GetValue(_arg0));
5924
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) return NULL;
5927 }{
5928 #if wxUSE_UNICODE
5929 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5930 #else
5931 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5932 #endif
5933 }
5934 {
5935 delete _result;
5936 }
5937 return _resultobj;
5938 }
5939
5940 #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
5941 static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5942 PyObject * _resultobj;
5943 wxTextCtrl * _arg0;
5944 wxString * _arg1;
5945 PyObject * _argo0 = 0;
5946 PyObject * _obj1 = 0;
5947 char *_kwnames[] = { "self","value", NULL };
5948
5949 self = self;
5950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1))
5951 return NULL;
5952 if (_argo0) {
5953 if (_argo0 == Py_None) { _arg0 = NULL; }
5954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p.");
5956 return NULL;
5957 }
5958 }
5959 {
5960 _arg1 = wxString_in_helper(_obj1);
5961 if (_arg1 == NULL)
5962 return NULL;
5963 }
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 wxTextCtrl_SetValue(_arg0,*_arg1);
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) return NULL;
5970 } Py_INCREF(Py_None);
5971 _resultobj = Py_None;
5972 {
5973 if (_obj1)
5974 delete _arg1;
5975 }
5976 return _resultobj;
5977 }
5978
5979 #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1))
5980 static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
5981 PyObject * _resultobj;
5982 wxString * _result;
5983 wxTextCtrl * _arg0;
5984 long _arg1;
5985 long _arg2;
5986 PyObject * _argo0 = 0;
5987 char *_kwnames[] = { "self","from","to", NULL };
5988
5989 self = self;
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2))
5991 return NULL;
5992 if (_argo0) {
5993 if (_argo0 == Py_None) { _arg0 = NULL; }
5994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p.");
5996 return NULL;
5997 }
5998 }
5999 {
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2));
6002
6003 wxPyEndAllowThreads(__tstate);
6004 if (PyErr_Occurred()) return NULL;
6005 }{
6006 #if wxUSE_UNICODE
6007 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
6008 #else
6009 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6010 #endif
6011 }
6012 {
6013 delete _result;
6014 }
6015 return _resultobj;
6016 }
6017
6018 #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0))
6019 static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
6020 PyObject * _resultobj;
6021 int _result;
6022 wxTextCtrl * _arg0;
6023 long _arg1;
6024 PyObject * _argo0 = 0;
6025 char *_kwnames[] = { "self","lineNo", NULL };
6026
6027 self = self;
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1))
6029 return NULL;
6030 if (_argo0) {
6031 if (_argo0 == Py_None) { _arg0 = NULL; }
6032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p.");
6034 return NULL;
6035 }
6036 }
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1);
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) return NULL;
6043 } _resultobj = Py_BuildValue("i",_result);
6044 return _resultobj;
6045 }
6046
6047 #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0))
6048 static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject * _resultobj;
6050 wxString * _result;
6051 wxTextCtrl * _arg0;
6052 long _arg1;
6053 PyObject * _argo0 = 0;
6054 char *_kwnames[] = { "self","lineNo", NULL };
6055
6056 self = self;
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1))
6058 return NULL;
6059 if (_argo0) {
6060 if (_argo0 == Py_None) { _arg0 = NULL; }
6061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p.");
6063 return NULL;
6064 }
6065 }
6066 {
6067 PyThreadState* __tstate = wxPyBeginAllowThreads();
6068 _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1));
6069
6070 wxPyEndAllowThreads(__tstate);
6071 if (PyErr_Occurred()) return NULL;
6072 }{
6073 #if wxUSE_UNICODE
6074 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
6075 #else
6076 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6077 #endif
6078 }
6079 {
6080 delete _result;
6081 }
6082 return _resultobj;
6083 }
6084
6085 #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines())
6086 static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6087 PyObject * _resultobj;
6088 int _result;
6089 wxTextCtrl * _arg0;
6090 PyObject * _argo0 = 0;
6091 char *_kwnames[] = { "self", NULL };
6092
6093 self = self;
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0))
6095 return NULL;
6096 if (_argo0) {
6097 if (_argo0 == Py_None) { _arg0 = NULL; }
6098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p.");
6100 return NULL;
6101 }
6102 }
6103 {
6104 PyThreadState* __tstate = wxPyBeginAllowThreads();
6105 _result = (int )wxTextCtrl_GetNumberOfLines(_arg0);
6106
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) return NULL;
6109 } _resultobj = Py_BuildValue("i",_result);
6110 return _resultobj;
6111 }
6112
6113 #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified())
6114 static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject * _resultobj;
6116 bool _result;
6117 wxTextCtrl * _arg0;
6118 PyObject * _argo0 = 0;
6119 char *_kwnames[] = { "self", NULL };
6120
6121 self = self;
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0))
6123 return NULL;
6124 if (_argo0) {
6125 if (_argo0 == Py_None) { _arg0 = NULL; }
6126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p.");
6128 return NULL;
6129 }
6130 }
6131 {
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 _result = (bool )wxTextCtrl_IsModified(_arg0);
6134
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) return NULL;
6137 } _resultobj = Py_BuildValue("i",_result);
6138 return _resultobj;
6139 }
6140
6141 #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable())
6142 static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
6143 PyObject * _resultobj;
6144 bool _result;
6145 wxTextCtrl * _arg0;
6146 PyObject * _argo0 = 0;
6147 char *_kwnames[] = { "self", NULL };
6148
6149 self = self;
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0))
6151 return NULL;
6152 if (_argo0) {
6153 if (_argo0 == Py_None) { _arg0 = NULL; }
6154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p.");
6156 return NULL;
6157 }
6158 }
6159 {
6160 PyThreadState* __tstate = wxPyBeginAllowThreads();
6161 _result = (bool )wxTextCtrl_IsEditable(_arg0);
6162
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) return NULL;
6165 } _resultobj = Py_BuildValue("i",_result);
6166 return _resultobj;
6167 }
6168
6169 #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1))
6170 static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6171 PyObject * _resultobj;
6172 wxTextCtrl * _arg0;
6173 long * _arg1;
6174 long temp;
6175 long * _arg2;
6176 long temp0;
6177 PyObject * _argo0 = 0;
6178 char *_kwnames[] = { "self", NULL };
6179
6180 self = self;
6181 {
6182 _arg1 = &temp;
6183 }
6184 {
6185 _arg2 = &temp0;
6186 }
6187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0))
6188 return NULL;
6189 if (_argo0) {
6190 if (_argo0 == Py_None) { _arg0 = NULL; }
6191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p.");
6193 return NULL;
6194 }
6195 }
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 wxTextCtrl_GetSelection(_arg0,_arg1,_arg2);
6199
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) return NULL;
6202 } Py_INCREF(Py_None);
6203 _resultobj = Py_None;
6204 {
6205 PyObject *o;
6206 o = PyInt_FromLong((long) (*_arg1));
6207 _resultobj = t_output_helper(_resultobj, o);
6208 }
6209 {
6210 PyObject *o;
6211 o = PyInt_FromLong((long) (*_arg2));
6212 _resultobj = t_output_helper(_resultobj, o);
6213 }
6214 return _resultobj;
6215 }
6216
6217 #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
6218 static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
6219 PyObject * _resultobj;
6220 wxString * _result;
6221 wxTextCtrl * _arg0;
6222 PyObject * _argo0 = 0;
6223 char *_kwnames[] = { "self", NULL };
6224
6225 self = self;
6226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0))
6227 return NULL;
6228 if (_argo0) {
6229 if (_argo0 == Py_None) { _arg0 = NULL; }
6230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p.");
6232 return NULL;
6233 }
6234 }
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 _result = new wxString (wxTextCtrl_GetStringSelection(_arg0));
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) return NULL;
6241 }{
6242 #if wxUSE_UNICODE
6243 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
6244 #else
6245 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6246 #endif
6247 }
6248 {
6249 delete _result;
6250 }
6251 return _resultobj;
6252 }
6253
6254 #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear())
6255 static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject * _resultobj;
6257 wxTextCtrl * _arg0;
6258 PyObject * _argo0 = 0;
6259 char *_kwnames[] = { "self", NULL };
6260
6261 self = self;
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0))
6263 return NULL;
6264 if (_argo0) {
6265 if (_argo0 == Py_None) { _arg0 = NULL; }
6266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p.");
6268 return NULL;
6269 }
6270 }
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 wxTextCtrl_Clear(_arg0);
6274
6275 wxPyEndAllowThreads(__tstate);
6276 if (PyErr_Occurred()) return NULL;
6277 } Py_INCREF(Py_None);
6278 _resultobj = Py_None;
6279 return _resultobj;
6280 }
6281
6282 #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
6283 static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject * _resultobj;
6285 wxTextCtrl * _arg0;
6286 long _arg1;
6287 long _arg2;
6288 wxString * _arg3;
6289 PyObject * _argo0 = 0;
6290 PyObject * _obj3 = 0;
6291 char *_kwnames[] = { "self","from","to","value", NULL };
6292
6293 self = self;
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
6295 return NULL;
6296 if (_argo0) {
6297 if (_argo0 == Py_None) { _arg0 = NULL; }
6298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p.");
6300 return NULL;
6301 }
6302 }
6303 {
6304 _arg3 = wxString_in_helper(_obj3);
6305 if (_arg3 == NULL)
6306 return NULL;
6307 }
6308 {
6309 PyThreadState* __tstate = wxPyBeginAllowThreads();
6310 wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3);
6311
6312 wxPyEndAllowThreads(__tstate);
6313 if (PyErr_Occurred()) return NULL;
6314 } Py_INCREF(Py_None);
6315 _resultobj = Py_None;
6316 {
6317 if (_obj3)
6318 delete _arg3;
6319 }
6320 return _resultobj;
6321 }
6322
6323 #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
6324 static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
6325 PyObject * _resultobj;
6326 wxTextCtrl * _arg0;
6327 long _arg1;
6328 long _arg2;
6329 PyObject * _argo0 = 0;
6330 char *_kwnames[] = { "self","from","to", NULL };
6331
6332 self = self;
6333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
6334 return NULL;
6335 if (_argo0) {
6336 if (_argo0 == Py_None) { _arg0 = NULL; }
6337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p.");
6339 return NULL;
6340 }
6341 }
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 wxTextCtrl_Remove(_arg0,_arg1,_arg2);
6345
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) return NULL;
6348 } Py_INCREF(Py_None);
6349 _resultobj = Py_None;
6350 return _resultobj;
6351 }
6352
6353 #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
6354 static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6355 PyObject * _resultobj;
6356 bool _result;
6357 wxTextCtrl * _arg0;
6358 wxString * _arg1;
6359 PyObject * _argo0 = 0;
6360 PyObject * _obj1 = 0;
6361 char *_kwnames[] = { "self","file", NULL };
6362
6363 self = self;
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
6365 return NULL;
6366 if (_argo0) {
6367 if (_argo0 == Py_None) { _arg0 = NULL; }
6368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p.");
6370 return NULL;
6371 }
6372 }
6373 {
6374 _arg1 = wxString_in_helper(_obj1);
6375 if (_arg1 == NULL)
6376 return NULL;
6377 }
6378 {
6379 PyThreadState* __tstate = wxPyBeginAllowThreads();
6380 _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1);
6381
6382 wxPyEndAllowThreads(__tstate);
6383 if (PyErr_Occurred()) return NULL;
6384 } _resultobj = Py_BuildValue("i",_result);
6385 {
6386 if (_obj1)
6387 delete _arg1;
6388 }
6389 return _resultobj;
6390 }
6391
6392 #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
6393 static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject * _resultobj;
6395 bool _result;
6396 wxTextCtrl * _arg0;
6397 wxString * _arg1 = (wxString *) &wxEmptyString;
6398 PyObject * _argo0 = 0;
6399 PyObject * _obj1 = 0;
6400 char *_kwnames[] = { "self","file", NULL };
6401
6402 self = self;
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
6404 return NULL;
6405 if (_argo0) {
6406 if (_argo0 == Py_None) { _arg0 = NULL; }
6407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p.");
6409 return NULL;
6410 }
6411 }
6412 if (_obj1)
6413 {
6414 _arg1 = wxString_in_helper(_obj1);
6415 if (_arg1 == NULL)
6416 return NULL;
6417 }
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1);
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) return NULL;
6424 } _resultobj = Py_BuildValue("i",_result);
6425 {
6426 if (_obj1)
6427 delete _arg1;
6428 }
6429 return _resultobj;
6430 }
6431
6432 #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits())
6433 static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
6434 PyObject * _resultobj;
6435 wxTextCtrl * _arg0;
6436 PyObject * _argo0 = 0;
6437 char *_kwnames[] = { "self", NULL };
6438
6439 self = self;
6440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0))
6441 return NULL;
6442 if (_argo0) {
6443 if (_argo0 == Py_None) { _arg0 = NULL; }
6444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p.");
6446 return NULL;
6447 }
6448 }
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 wxTextCtrl_DiscardEdits(_arg0);
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) return NULL;
6455 } Py_INCREF(Py_None);
6456 _resultobj = Py_None;
6457 return _resultobj;
6458 }
6459
6460 #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0))
6461 static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
6462 PyObject * _resultobj;
6463 wxTextCtrl * _arg0;
6464 unsigned long _arg1;
6465 PyObject * _argo0 = 0;
6466 char *_kwnames[] = { "self","len", NULL };
6467
6468 self = self;
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1))
6470 return NULL;
6471 if (_argo0) {
6472 if (_argo0 == Py_None) { _arg0 = NULL; }
6473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p.");
6475 return NULL;
6476 }
6477 }
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 wxTextCtrl_SetMaxLength(_arg0,_arg1);
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) return NULL;
6484 } Py_INCREF(Py_None);
6485 _resultobj = Py_None;
6486 return _resultobj;
6487 }
6488
6489 #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0))
6490 static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject * _resultobj;
6492 wxTextCtrl * _arg0;
6493 wxString * _arg1;
6494 PyObject * _argo0 = 0;
6495 PyObject * _obj1 = 0;
6496 char *_kwnames[] = { "self","text", NULL };
6497
6498 self = self;
6499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1))
6500 return NULL;
6501 if (_argo0) {
6502 if (_argo0 == Py_None) { _arg0 = NULL; }
6503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p.");
6505 return NULL;
6506 }
6507 }
6508 {
6509 _arg1 = wxString_in_helper(_obj1);
6510 if (_arg1 == NULL)
6511 return NULL;
6512 }
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 wxTextCtrl_WriteText(_arg0,*_arg1);
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) return NULL;
6519 } Py_INCREF(Py_None);
6520 _resultobj = Py_None;
6521 {
6522 if (_obj1)
6523 delete _arg1;
6524 }
6525 return _resultobj;
6526 }
6527
6528 #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0))
6529 static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
6530 PyObject * _resultobj;
6531 wxTextCtrl * _arg0;
6532 wxString * _arg1;
6533 PyObject * _argo0 = 0;
6534 PyObject * _obj1 = 0;
6535 char *_kwnames[] = { "self","text", NULL };
6536
6537 self = self;
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1))
6539 return NULL;
6540 if (_argo0) {
6541 if (_argo0 == Py_None) { _arg0 = NULL; }
6542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p.");
6544 return NULL;
6545 }
6546 }
6547 {
6548 _arg1 = wxString_in_helper(_obj1);
6549 if (_arg1 == NULL)
6550 return NULL;
6551 }
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 wxTextCtrl_AppendText(_arg0,*_arg1);
6555
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) return NULL;
6558 } Py_INCREF(Py_None);
6559 _resultobj = Py_None;
6560 {
6561 if (_obj1)
6562 delete _arg1;
6563 }
6564 return _resultobj;
6565 }
6566
6567 #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2))
6568 static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject * _resultobj;
6570 bool _result;
6571 wxTextCtrl * _arg0;
6572 long _arg1;
6573 long _arg2;
6574 wxTextAttr * _arg3;
6575 PyObject * _argo0 = 0;
6576 PyObject * _argo3 = 0;
6577 char *_kwnames[] = { "self","start","end","style", NULL };
6578
6579 self = self;
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
6581 return NULL;
6582 if (_argo0) {
6583 if (_argo0 == Py_None) { _arg0 = NULL; }
6584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p.");
6586 return NULL;
6587 }
6588 }
6589 if (_argo3) {
6590 if (_argo3 == Py_None) { _arg3 = NULL; }
6591 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) {
6592 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p.");
6593 return NULL;
6594 }
6595 }
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3);
6599
6600 wxPyEndAllowThreads(__tstate);
6601 if (PyErr_Occurred()) return NULL;
6602 } _resultobj = Py_BuildValue("i",_result);
6603 return _resultobj;
6604 }
6605
6606 #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0))
6607 static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6608 PyObject * _resultobj;
6609 bool _result;
6610 wxTextCtrl * _arg0;
6611 wxTextAttr * _arg1;
6612 PyObject * _argo0 = 0;
6613 PyObject * _argo1 = 0;
6614 char *_kwnames[] = { "self","style", NULL };
6615
6616 self = self;
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1))
6618 return NULL;
6619 if (_argo0) {
6620 if (_argo0 == Py_None) { _arg0 = NULL; }
6621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p.");
6623 return NULL;
6624 }
6625 }
6626 if (_argo1) {
6627 if (_argo1 == Py_None) { _arg1 = NULL; }
6628 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
6629 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p.");
6630 return NULL;
6631 }
6632 }
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1);
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) return NULL;
6639 } _resultobj = Py_BuildValue("i",_result);
6640 return _resultobj;
6641 }
6642
6643 #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle())
6644 static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6645 PyObject * _resultobj;
6646 wxTextAttr * _result;
6647 wxTextCtrl * _arg0;
6648 PyObject * _argo0 = 0;
6649 char *_kwnames[] = { "self", NULL };
6650 char _ptemp[128];
6651
6652 self = self;
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0))
6654 return NULL;
6655 if (_argo0) {
6656 if (_argo0 == Py_None) { _arg0 = NULL; }
6657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p.");
6659 return NULL;
6660 }
6661 }
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0);
6665 _result = (wxTextAttr *) &_result_ref;
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) return NULL;
6669 } if (_result) {
6670 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
6671 _resultobj = Py_BuildValue("s",_ptemp);
6672 } else {
6673 Py_INCREF(Py_None);
6674 _resultobj = Py_None;
6675 }
6676 return _resultobj;
6677 }
6678
6679 #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1))
6680 static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6681 PyObject * _resultobj;
6682 long _result;
6683 wxTextCtrl * _arg0;
6684 long _arg1;
6685 long _arg2;
6686 PyObject * _argo0 = 0;
6687 char *_kwnames[] = { "self","x","y", NULL };
6688
6689 self = self;
6690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6691 return NULL;
6692 if (_argo0) {
6693 if (_argo0 == Py_None) { _arg0 = NULL; }
6694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p.");
6696 return NULL;
6697 }
6698 }
6699 {
6700 PyThreadState* __tstate = wxPyBeginAllowThreads();
6701 _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2);
6702
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) return NULL;
6705 } _resultobj = Py_BuildValue("l",_result);
6706 return _resultobj;
6707 }
6708
6709 #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2))
6710 static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6711 PyObject * _resultobj;
6712 wxTextCtrl * _arg0;
6713 long _arg1;
6714 long * _arg2;
6715 long temp;
6716 long * _arg3;
6717 long temp0;
6718 PyObject * _argo0 = 0;
6719 char *_kwnames[] = { "self","pos", NULL };
6720
6721 self = self;
6722 {
6723 _arg2 = &temp;
6724 }
6725 {
6726 _arg3 = &temp0;
6727 }
6728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1))
6729 return NULL;
6730 if (_argo0) {
6731 if (_argo0 == Py_None) { _arg0 = NULL; }
6732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p.");
6734 return NULL;
6735 }
6736 }
6737 {
6738 PyThreadState* __tstate = wxPyBeginAllowThreads();
6739 wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3);
6740
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) return NULL;
6743 } Py_INCREF(Py_None);
6744 _resultobj = Py_None;
6745 {
6746 PyObject *o;
6747 o = PyInt_FromLong((long) (*_arg2));
6748 _resultobj = t_output_helper(_resultobj, o);
6749 }
6750 {
6751 PyObject *o;
6752 o = PyInt_FromLong((long) (*_arg3));
6753 _resultobj = t_output_helper(_resultobj, o);
6754 }
6755 return _resultobj;
6756 }
6757
6758 #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0))
6759 static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6760 PyObject * _resultobj;
6761 wxTextCtrl * _arg0;
6762 long _arg1;
6763 PyObject * _argo0 = 0;
6764 char *_kwnames[] = { "self","pos", NULL };
6765
6766 self = self;
6767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1))
6768 return NULL;
6769 if (_argo0) {
6770 if (_argo0 == Py_None) { _arg0 = NULL; }
6771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p.");
6773 return NULL;
6774 }
6775 }
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 wxTextCtrl_ShowPosition(_arg0,_arg1);
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) return NULL;
6782 } Py_INCREF(Py_None);
6783 _resultobj = Py_None;
6784 return _resultobj;
6785 }
6786
6787 #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy())
6788 static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
6789 PyObject * _resultobj;
6790 wxTextCtrl * _arg0;
6791 PyObject * _argo0 = 0;
6792 char *_kwnames[] = { "self", NULL };
6793
6794 self = self;
6795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0))
6796 return NULL;
6797 if (_argo0) {
6798 if (_argo0 == Py_None) { _arg0 = NULL; }
6799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p.");
6801 return NULL;
6802 }
6803 }
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 wxTextCtrl_Copy(_arg0);
6807
6808 wxPyEndAllowThreads(__tstate);
6809 if (PyErr_Occurred()) return NULL;
6810 } Py_INCREF(Py_None);
6811 _resultobj = Py_None;
6812 return _resultobj;
6813 }
6814
6815 #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut())
6816 static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
6817 PyObject * _resultobj;
6818 wxTextCtrl * _arg0;
6819 PyObject * _argo0 = 0;
6820 char *_kwnames[] = { "self", NULL };
6821
6822 self = self;
6823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0))
6824 return NULL;
6825 if (_argo0) {
6826 if (_argo0 == Py_None) { _arg0 = NULL; }
6827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p.");
6829 return NULL;
6830 }
6831 }
6832 {
6833 PyThreadState* __tstate = wxPyBeginAllowThreads();
6834 wxTextCtrl_Cut(_arg0);
6835
6836 wxPyEndAllowThreads(__tstate);
6837 if (PyErr_Occurred()) return NULL;
6838 } Py_INCREF(Py_None);
6839 _resultobj = Py_None;
6840 return _resultobj;
6841 }
6842
6843 #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste())
6844 static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject * _resultobj;
6846 wxTextCtrl * _arg0;
6847 PyObject * _argo0 = 0;
6848 char *_kwnames[] = { "self", NULL };
6849
6850 self = self;
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0))
6852 return NULL;
6853 if (_argo0) {
6854 if (_argo0 == Py_None) { _arg0 = NULL; }
6855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p.");
6857 return NULL;
6858 }
6859 }
6860 {
6861 PyThreadState* __tstate = wxPyBeginAllowThreads();
6862 wxTextCtrl_Paste(_arg0);
6863
6864 wxPyEndAllowThreads(__tstate);
6865 if (PyErr_Occurred()) return NULL;
6866 } Py_INCREF(Py_None);
6867 _resultobj = Py_None;
6868 return _resultobj;
6869 }
6870
6871 #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy())
6872 static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
6873 PyObject * _resultobj;
6874 bool _result;
6875 wxTextCtrl * _arg0;
6876 PyObject * _argo0 = 0;
6877 char *_kwnames[] = { "self", NULL };
6878
6879 self = self;
6880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0))
6881 return NULL;
6882 if (_argo0) {
6883 if (_argo0 == Py_None) { _arg0 = NULL; }
6884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p.");
6886 return NULL;
6887 }
6888 }
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 _result = (bool )wxTextCtrl_CanCopy(_arg0);
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) return NULL;
6895 } _resultobj = Py_BuildValue("i",_result);
6896 return _resultobj;
6897 }
6898
6899 #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut())
6900 static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
6901 PyObject * _resultobj;
6902 bool _result;
6903 wxTextCtrl * _arg0;
6904 PyObject * _argo0 = 0;
6905 char *_kwnames[] = { "self", NULL };
6906
6907 self = self;
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0))
6909 return NULL;
6910 if (_argo0) {
6911 if (_argo0 == Py_None) { _arg0 = NULL; }
6912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p.");
6914 return NULL;
6915 }
6916 }
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 _result = (bool )wxTextCtrl_CanCut(_arg0);
6920
6921 wxPyEndAllowThreads(__tstate);
6922 if (PyErr_Occurred()) return NULL;
6923 } _resultobj = Py_BuildValue("i",_result);
6924 return _resultobj;
6925 }
6926
6927 #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste())
6928 static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
6929 PyObject * _resultobj;
6930 bool _result;
6931 wxTextCtrl * _arg0;
6932 PyObject * _argo0 = 0;
6933 char *_kwnames[] = { "self", NULL };
6934
6935 self = self;
6936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0))
6937 return NULL;
6938 if (_argo0) {
6939 if (_argo0 == Py_None) { _arg0 = NULL; }
6940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p.");
6942 return NULL;
6943 }
6944 }
6945 {
6946 PyThreadState* __tstate = wxPyBeginAllowThreads();
6947 _result = (bool )wxTextCtrl_CanPaste(_arg0);
6948
6949 wxPyEndAllowThreads(__tstate);
6950 if (PyErr_Occurred()) return NULL;
6951 } _resultobj = Py_BuildValue("i",_result);
6952 return _resultobj;
6953 }
6954
6955 #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo())
6956 static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
6957 PyObject * _resultobj;
6958 wxTextCtrl * _arg0;
6959 PyObject * _argo0 = 0;
6960 char *_kwnames[] = { "self", NULL };
6961
6962 self = self;
6963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0))
6964 return NULL;
6965 if (_argo0) {
6966 if (_argo0 == Py_None) { _arg0 = NULL; }
6967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p.");
6969 return NULL;
6970 }
6971 }
6972 {
6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
6974 wxTextCtrl_Undo(_arg0);
6975
6976 wxPyEndAllowThreads(__tstate);
6977 if (PyErr_Occurred()) return NULL;
6978 } Py_INCREF(Py_None);
6979 _resultobj = Py_None;
6980 return _resultobj;
6981 }
6982
6983 #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo())
6984 static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
6985 PyObject * _resultobj;
6986 wxTextCtrl * _arg0;
6987 PyObject * _argo0 = 0;
6988 char *_kwnames[] = { "self", NULL };
6989
6990 self = self;
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0))
6992 return NULL;
6993 if (_argo0) {
6994 if (_argo0 == Py_None) { _arg0 = NULL; }
6995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
6996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p.");
6997 return NULL;
6998 }
6999 }
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 wxTextCtrl_Redo(_arg0);
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) return NULL;
7006 } Py_INCREF(Py_None);
7007 _resultobj = Py_None;
7008 return _resultobj;
7009 }
7010
7011 #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo())
7012 static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
7013 PyObject * _resultobj;
7014 bool _result;
7015 wxTextCtrl * _arg0;
7016 PyObject * _argo0 = 0;
7017 char *_kwnames[] = { "self", NULL };
7018
7019 self = self;
7020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_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_CanUndo. Expected _wxTextCtrl_p.");
7026 return NULL;
7027 }
7028 }
7029 {
7030 PyThreadState* __tstate = wxPyBeginAllowThreads();
7031 _result = (bool )wxTextCtrl_CanUndo(_arg0);
7032
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) return NULL;
7035 } _resultobj = Py_BuildValue("i",_result);
7036 return _resultobj;
7037 }
7038
7039 #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo())
7040 static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject * _resultobj;
7042 bool _result;
7043 wxTextCtrl * _arg0;
7044 PyObject * _argo0 = 0;
7045 char *_kwnames[] = { "self", NULL };
7046
7047 self = self;
7048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0))
7049 return NULL;
7050 if (_argo0) {
7051 if (_argo0 == Py_None) { _arg0 = NULL; }
7052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p.");
7054 return NULL;
7055 }
7056 }
7057 {
7058 PyThreadState* __tstate = wxPyBeginAllowThreads();
7059 _result = (bool )wxTextCtrl_CanRedo(_arg0);
7060
7061 wxPyEndAllowThreads(__tstate);
7062 if (PyErr_Occurred()) return NULL;
7063 } _resultobj = Py_BuildValue("i",_result);
7064 return _resultobj;
7065 }
7066
7067 #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
7068 static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject * _resultobj;
7070 wxTextCtrl * _arg0;
7071 long _arg1;
7072 PyObject * _argo0 = 0;
7073 char *_kwnames[] = { "self","pos", NULL };
7074
7075 self = self;
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
7077 return NULL;
7078 if (_argo0) {
7079 if (_argo0 == Py_None) { _arg0 = NULL; }
7080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p.");
7082 return NULL;
7083 }
7084 }
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 wxTextCtrl_SetInsertionPoint(_arg0,_arg1);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) return NULL;
7091 } Py_INCREF(Py_None);
7092 _resultobj = Py_None;
7093 return _resultobj;
7094 }
7095
7096 #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
7097 static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
7098 PyObject * _resultobj;
7099 wxTextCtrl * _arg0;
7100 PyObject * _argo0 = 0;
7101 char *_kwnames[] = { "self", NULL };
7102
7103 self = self;
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0))
7105 return NULL;
7106 if (_argo0) {
7107 if (_argo0 == Py_None) { _arg0 = NULL; }
7108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p.");
7110 return NULL;
7111 }
7112 }
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 wxTextCtrl_SetInsertionPointEnd(_arg0);
7116
7117 wxPyEndAllowThreads(__tstate);
7118 if (PyErr_Occurred()) return NULL;
7119 } Py_INCREF(Py_None);
7120 _resultobj = Py_None;
7121 return _resultobj;
7122 }
7123
7124 #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
7125 static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7126 PyObject * _resultobj;
7127 long _result;
7128 wxTextCtrl * _arg0;
7129 PyObject * _argo0 = 0;
7130 char *_kwnames[] = { "self", NULL };
7131
7132 self = self;
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0))
7134 return NULL;
7135 if (_argo0) {
7136 if (_argo0 == Py_None) { _arg0 = NULL; }
7137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p.");
7139 return NULL;
7140 }
7141 }
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 _result = (long )wxTextCtrl_GetInsertionPoint(_arg0);
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) return NULL;
7148 } _resultobj = Py_BuildValue("l",_result);
7149 return _resultobj;
7150 }
7151
7152 #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
7153 static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
7154 PyObject * _resultobj;
7155 long _result;
7156 wxTextCtrl * _arg0;
7157 PyObject * _argo0 = 0;
7158 char *_kwnames[] = { "self", NULL };
7159
7160 self = self;
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0))
7162 return NULL;
7163 if (_argo0) {
7164 if (_argo0 == Py_None) { _arg0 = NULL; }
7165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p.");
7167 return NULL;
7168 }
7169 }
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 _result = (long )wxTextCtrl_GetLastPosition(_arg0);
7173
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) return NULL;
7176 } _resultobj = Py_BuildValue("l",_result);
7177 return _resultobj;
7178 }
7179
7180 #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
7181 static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject * _resultobj;
7183 wxTextCtrl * _arg0;
7184 long _arg1;
7185 long _arg2;
7186 PyObject * _argo0 = 0;
7187 char *_kwnames[] = { "self","from","to", NULL };
7188
7189 self = self;
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
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_SetSelection. Expected _wxTextCtrl_p.");
7196 return NULL;
7197 }
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 wxTextCtrl_SetSelection(_arg0,_arg1,_arg2);
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_SelectAll(_swigobj) (_swigobj->SelectAll())
7211 static PyObject *_wrap_wxTextCtrl_SelectAll(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_SelectAll",_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_SelectAll. Expected _wxTextCtrl_p.");
7224 return NULL;
7225 }
7226 }
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 wxTextCtrl_SelectAll(_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_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
7239 static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7240 PyObject * _resultobj;
7241 wxTextCtrl * _arg0;
7242 bool _arg1;
7243 PyObject * _argo0 = 0;
7244 int tempbool1;
7245 char *_kwnames[] = { "self","editable", NULL };
7246
7247 self = self;
7248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1))
7249 return NULL;
7250 if (_argo0) {
7251 if (_argo0 == Py_None) { _arg0 = NULL; }
7252 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7253 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p.");
7254 return NULL;
7255 }
7256 }
7257 _arg1 = (bool ) tempbool1;
7258 {
7259 PyThreadState* __tstate = wxPyBeginAllowThreads();
7260 wxTextCtrl_SetEditable(_arg0,_arg1);
7261
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) return NULL;
7264 } Py_INCREF(Py_None);
7265 _resultobj = Py_None;
7266 return _resultobj;
7267 }
7268
7269 static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) {
7270 self->AppendText(text);
7271 }
7272 static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject * _resultobj;
7274 wxTextCtrl * _arg0;
7275 wxString * _arg1;
7276 PyObject * _argo0 = 0;
7277 PyObject * _obj1 = 0;
7278 char *_kwnames[] = { "self","text", NULL };
7279
7280 self = self;
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1))
7282 return NULL;
7283 if (_argo0) {
7284 if (_argo0 == Py_None) { _arg0 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p.");
7287 return NULL;
7288 }
7289 }
7290 {
7291 _arg1 = wxString_in_helper(_obj1);
7292 if (_arg1 == NULL)
7293 return NULL;
7294 }
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 wxTextCtrl_write(_arg0,*_arg1);
7298
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) return NULL;
7301 } Py_INCREF(Py_None);
7302 _resultobj = Py_None;
7303 {
7304 if (_obj1)
7305 delete _arg1;
7306 }
7307 return _resultobj;
7308 }
7309
7310 static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) {
7311 return self->GetValue().Mid(from, to-from);
7312 }
7313 static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject * _resultobj;
7315 wxString * _result;
7316 wxTextCtrl * _arg0;
7317 long _arg1;
7318 long _arg2;
7319 PyObject * _argo0 = 0;
7320 char *_kwnames[] = { "self","from","to", NULL };
7321
7322 self = self;
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2))
7324 return NULL;
7325 if (_argo0) {
7326 if (_argo0 == Py_None) { _arg0 = NULL; }
7327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p.");
7329 return NULL;
7330 }
7331 }
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2));
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) return NULL;
7338 }{
7339 #if wxUSE_UNICODE
7340 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
7341 #else
7342 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7343 #endif
7344 }
7345 {
7346 delete _result;
7347 }
7348 return _resultobj;
7349 }
7350
7351 static void *SwigwxScrollBarTowxControl(void *ptr) {
7352 wxScrollBar *src;
7353 wxControl *dest;
7354 src = (wxScrollBar *) ptr;
7355 dest = (wxControl *) src;
7356 return (void *) dest;
7357 }
7358
7359 static void *SwigwxScrollBarTowxWindow(void *ptr) {
7360 wxScrollBar *src;
7361 wxWindow *dest;
7362 src = (wxScrollBar *) ptr;
7363 dest = (wxWindow *) src;
7364 return (void *) dest;
7365 }
7366
7367 static void *SwigwxScrollBarTowxEvtHandler(void *ptr) {
7368 wxScrollBar *src;
7369 wxEvtHandler *dest;
7370 src = (wxScrollBar *) ptr;
7371 dest = (wxEvtHandler *) src;
7372 return (void *) dest;
7373 }
7374
7375 static void *SwigwxScrollBarTowxObject(void *ptr) {
7376 wxScrollBar *src;
7377 wxObject *dest;
7378 src = (wxScrollBar *) ptr;
7379 dest = (wxObject *) src;
7380 return (void *) dest;
7381 }
7382
7383 #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7384 static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject * _resultobj;
7386 wxScrollBar * _result;
7387 wxWindow * _arg0;
7388 wxWindowID _arg1 = (wxWindowID ) -1;
7389 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
7390 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
7391 long _arg4 = (long ) wxSB_HORIZONTAL;
7392 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
7393 char * _arg6 = (char *) "scrollBar";
7394 PyObject * _argo0 = 0;
7395 wxPoint temp;
7396 PyObject * _obj2 = 0;
7397 wxSize temp0;
7398 PyObject * _obj3 = 0;
7399 PyObject * _argo5 = 0;
7400 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
7401 char _ptemp[128];
7402
7403 self = self;
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
7405 return NULL;
7406 if (_argo0) {
7407 if (_argo0 == Py_None) { _arg0 = NULL; }
7408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p.");
7410 return NULL;
7411 }
7412 }
7413 if (_obj2)
7414 {
7415 _arg2 = &temp;
7416 if (! wxPoint_helper(_obj2, &_arg2))
7417 return NULL;
7418 }
7419 if (_obj3)
7420 {
7421 _arg3 = &temp0;
7422 if (! wxSize_helper(_obj3, &_arg3))
7423 return NULL;
7424 }
7425 if (_argo5) {
7426 if (_argo5 == Py_None) { _arg5 = NULL; }
7427 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
7428 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p.");
7429 return NULL;
7430 }
7431 }
7432 {
7433 PyThreadState* __tstate = wxPyBeginAllowThreads();
7434 _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
7435
7436 wxPyEndAllowThreads(__tstate);
7437 if (PyErr_Occurred()) return NULL;
7438 } if (_result) {
7439 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
7440 _resultobj = Py_BuildValue("s",_ptemp);
7441 } else {
7442 Py_INCREF(Py_None);
7443 _resultobj = Py_None;
7444 }
7445 return _resultobj;
7446 }
7447
7448 #define new_wxPreScrollBar() (new wxScrollBar())
7449 static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7450 PyObject * _resultobj;
7451 wxScrollBar * _result;
7452 char *_kwnames[] = { NULL };
7453 char _ptemp[128];
7454
7455 self = self;
7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames))
7457 return NULL;
7458 {
7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
7460 _result = (wxScrollBar *)new_wxPreScrollBar();
7461
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) return NULL;
7464 } if (_result) {
7465 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
7466 _resultobj = Py_BuildValue("s",_ptemp);
7467 } else {
7468 Py_INCREF(Py_None);
7469 _resultobj = Py_None;
7470 }
7471 return _resultobj;
7472 }
7473
7474 #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7475 static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject * _resultobj;
7477 bool _result;
7478 wxScrollBar * _arg0;
7479 wxWindow * _arg1;
7480 wxWindowID _arg2 = (wxWindowID ) -1;
7481 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7482 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7483 long _arg5 = (long ) wxSB_HORIZONTAL;
7484 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
7485 char * _arg7 = (char *) "scrollBar";
7486 PyObject * _argo0 = 0;
7487 PyObject * _argo1 = 0;
7488 wxPoint temp;
7489 PyObject * _obj3 = 0;
7490 wxSize temp0;
7491 PyObject * _obj4 = 0;
7492 PyObject * _argo6 = 0;
7493 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
7494
7495 self = self;
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
7497 return NULL;
7498 if (_argo0) {
7499 if (_argo0 == Py_None) { _arg0 = NULL; }
7500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p.");
7502 return NULL;
7503 }
7504 }
7505 if (_argo1) {
7506 if (_argo1 == Py_None) { _arg1 = NULL; }
7507 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7508 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p.");
7509 return NULL;
7510 }
7511 }
7512 if (_obj3)
7513 {
7514 _arg3 = &temp;
7515 if (! wxPoint_helper(_obj3, &_arg3))
7516 return NULL;
7517 }
7518 if (_obj4)
7519 {
7520 _arg4 = &temp0;
7521 if (! wxSize_helper(_obj4, &_arg4))
7522 return NULL;
7523 }
7524 if (_argo6) {
7525 if (_argo6 == Py_None) { _arg6 = NULL; }
7526 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
7527 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p.");
7528 return NULL;
7529 }
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) return NULL;
7537 } _resultobj = Py_BuildValue("i",_result);
7538 return _resultobj;
7539 }
7540
7541 #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange())
7542 static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7543 PyObject * _resultobj;
7544 int _result;
7545 wxScrollBar * _arg0;
7546 PyObject * _argo0 = 0;
7547 char *_kwnames[] = { "self", NULL };
7548
7549 self = self;
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0))
7551 return NULL;
7552 if (_argo0) {
7553 if (_argo0 == Py_None) { _arg0 = NULL; }
7554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p.");
7556 return NULL;
7557 }
7558 }
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 _result = (int )wxScrollBar_GetRange(_arg0);
7562
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) return NULL;
7565 } _resultobj = Py_BuildValue("i",_result);
7566 return _resultobj;
7567 }
7568
7569 #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize())
7570 static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7571 PyObject * _resultobj;
7572 int _result;
7573 wxScrollBar * _arg0;
7574 PyObject * _argo0 = 0;
7575 char *_kwnames[] = { "self", NULL };
7576
7577 self = self;
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0))
7579 return NULL;
7580 if (_argo0) {
7581 if (_argo0 == Py_None) { _arg0 = NULL; }
7582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p.");
7584 return NULL;
7585 }
7586 }
7587 {
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 _result = (int )wxScrollBar_GetPageSize(_arg0);
7590
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) return NULL;
7593 } _resultobj = Py_BuildValue("i",_result);
7594 return _resultobj;
7595 }
7596
7597 #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition())
7598 static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
7599 PyObject * _resultobj;
7600 int _result;
7601 wxScrollBar * _arg0;
7602 PyObject * _argo0 = 0;
7603 char *_kwnames[] = { "self", NULL };
7604
7605 self = self;
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0))
7607 return NULL;
7608 if (_argo0) {
7609 if (_argo0 == Py_None) { _arg0 = NULL; }
7610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p.");
7612 return NULL;
7613 }
7614 }
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 _result = (int )wxScrollBar_GetThumbPosition(_arg0);
7618
7619 wxPyEndAllowThreads(__tstate);
7620 if (PyErr_Occurred()) return NULL;
7621 } _resultobj = Py_BuildValue("i",_result);
7622 return _resultobj;
7623 }
7624
7625 #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize())
7626 static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7627 PyObject * _resultobj;
7628 int _result;
7629 wxScrollBar * _arg0;
7630 PyObject * _argo0 = 0;
7631 char *_kwnames[] = { "self", NULL };
7632
7633 self = self;
7634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0))
7635 return NULL;
7636 if (_argo0) {
7637 if (_argo0 == Py_None) { _arg0 = NULL; }
7638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p.");
7640 return NULL;
7641 }
7642 }
7643 {
7644 PyThreadState* __tstate = wxPyBeginAllowThreads();
7645 _result = (int )wxScrollBar_GetThumbSize(_arg0);
7646
7647 wxPyEndAllowThreads(__tstate);
7648 if (PyErr_Occurred()) return NULL;
7649 } _resultobj = Py_BuildValue("i",_result);
7650 return _resultobj;
7651 }
7652
7653 #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical())
7654 static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject * _resultobj;
7656 bool _result;
7657 wxScrollBar * _arg0;
7658 PyObject * _argo0 = 0;
7659 char *_kwnames[] = { "self", NULL };
7660
7661 self = self;
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0))
7663 return NULL;
7664 if (_argo0) {
7665 if (_argo0 == Py_None) { _arg0 = NULL; }
7666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p.");
7668 return NULL;
7669 }
7670 }
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 _result = (bool )wxScrollBar_IsVertical(_arg0);
7674
7675 wxPyEndAllowThreads(__tstate);
7676 if (PyErr_Occurred()) return NULL;
7677 } _resultobj = Py_BuildValue("i",_result);
7678 return _resultobj;
7679 }
7680
7681 #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0))
7682 static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject * _resultobj;
7684 wxScrollBar * _arg0;
7685 int _arg1;
7686 PyObject * _argo0 = 0;
7687 char *_kwnames[] = { "self","viewStart", NULL };
7688
7689 self = self;
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1))
7691 return NULL;
7692 if (_argo0) {
7693 if (_argo0 == Py_None) { _arg0 = NULL; }
7694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p.");
7696 return NULL;
7697 }
7698 }
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 wxScrollBar_SetThumbPosition(_arg0,_arg1);
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) return NULL;
7705 } Py_INCREF(Py_None);
7706 _resultobj = Py_None;
7707 return _resultobj;
7708 }
7709
7710 #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7711 static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject * _resultobj;
7713 wxScrollBar * _arg0;
7714 int _arg1;
7715 int _arg2;
7716 int _arg3;
7717 int _arg4;
7718 bool _arg5 = (bool ) TRUE;
7719 PyObject * _argo0 = 0;
7720 int tempbool5 = (int) TRUE;
7721 char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL };
7722
7723 self = self;
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
7725 return NULL;
7726 if (_argo0) {
7727 if (_argo0 == Py_None) { _arg0 = NULL; }
7728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
7729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p.");
7730 return NULL;
7731 }
7732 }
7733 _arg5 = (bool ) tempbool5;
7734 {
7735 PyThreadState* __tstate = wxPyBeginAllowThreads();
7736 wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7737
7738 wxPyEndAllowThreads(__tstate);
7739 if (PyErr_Occurred()) return NULL;
7740 } Py_INCREF(Py_None);
7741 _resultobj = Py_None;
7742 return _resultobj;
7743 }
7744
7745 static void *SwigwxSpinButtonTowxControl(void *ptr) {
7746 wxSpinButton *src;
7747 wxControl *dest;
7748 src = (wxSpinButton *) ptr;
7749 dest = (wxControl *) src;
7750 return (void *) dest;
7751 }
7752
7753 static void *SwigwxSpinButtonTowxWindow(void *ptr) {
7754 wxSpinButton *src;
7755 wxWindow *dest;
7756 src = (wxSpinButton *) ptr;
7757 dest = (wxWindow *) src;
7758 return (void *) dest;
7759 }
7760
7761 static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) {
7762 wxSpinButton *src;
7763 wxEvtHandler *dest;
7764 src = (wxSpinButton *) ptr;
7765 dest = (wxEvtHandler *) src;
7766 return (void *) dest;
7767 }
7768
7769 static void *SwigwxSpinButtonTowxObject(void *ptr) {
7770 wxSpinButton *src;
7771 wxObject *dest;
7772 src = (wxSpinButton *) ptr;
7773 dest = (wxObject *) src;
7774 return (void *) dest;
7775 }
7776
7777 #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7778 static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject * _resultobj;
7780 wxSpinButton * _result;
7781 wxWindow * _arg0;
7782 wxWindowID _arg1 = (wxWindowID ) -1;
7783 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
7784 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
7785 long _arg4 = (long ) wxSP_HORIZONTAL;
7786 char * _arg5 = (char *) "spinButton";
7787 PyObject * _argo0 = 0;
7788 wxPoint temp;
7789 PyObject * _obj2 = 0;
7790 wxSize temp0;
7791 PyObject * _obj3 = 0;
7792 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
7793 char _ptemp[128];
7794
7795 self = self;
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
7797 return NULL;
7798 if (_argo0) {
7799 if (_argo0 == Py_None) { _arg0 = NULL; }
7800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p.");
7802 return NULL;
7803 }
7804 }
7805 if (_obj2)
7806 {
7807 _arg2 = &temp;
7808 if (! wxPoint_helper(_obj2, &_arg2))
7809 return NULL;
7810 }
7811 if (_obj3)
7812 {
7813 _arg3 = &temp0;
7814 if (! wxSize_helper(_obj3, &_arg3))
7815 return NULL;
7816 }
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) return NULL;
7823 } if (_result) {
7824 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
7825 _resultobj = Py_BuildValue("s",_ptemp);
7826 } else {
7827 Py_INCREF(Py_None);
7828 _resultobj = Py_None;
7829 }
7830 return _resultobj;
7831 }
7832
7833 #define new_wxPreSpinButton() (new wxSpinButton())
7834 static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
7835 PyObject * _resultobj;
7836 wxSpinButton * _result;
7837 char *_kwnames[] = { NULL };
7838 char _ptemp[128];
7839
7840 self = self;
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames))
7842 return NULL;
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 _result = (wxSpinButton *)new_wxPreSpinButton();
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) return NULL;
7849 } if (_result) {
7850 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
7851 _resultobj = Py_BuildValue("s",_ptemp);
7852 } else {
7853 Py_INCREF(Py_None);
7854 _resultobj = Py_None;
7855 }
7856 return _resultobj;
7857 }
7858
7859 #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7860 static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject * _resultobj;
7862 bool _result;
7863 wxSpinButton * _arg0;
7864 wxWindow * _arg1;
7865 wxWindowID _arg2 = (wxWindowID ) -1;
7866 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7867 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7868 long _arg5 = (long ) wxSP_HORIZONTAL;
7869 char * _arg6 = (char *) "spinButton";
7870 PyObject * _argo0 = 0;
7871 PyObject * _argo1 = 0;
7872 wxPoint temp;
7873 PyObject * _obj3 = 0;
7874 wxSize temp0;
7875 PyObject * _obj4 = 0;
7876 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
7877
7878 self = self;
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
7880 return NULL;
7881 if (_argo0) {
7882 if (_argo0 == Py_None) { _arg0 = NULL; }
7883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
7884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p.");
7885 return NULL;
7886 }
7887 }
7888 if (_argo1) {
7889 if (_argo1 == Py_None) { _arg1 = NULL; }
7890 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7891 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p.");
7892 return NULL;
7893 }
7894 }
7895 if (_obj3)
7896 {
7897 _arg3 = &temp;
7898 if (! wxPoint_helper(_obj3, &_arg3))
7899 return NULL;
7900 }
7901 if (_obj4)
7902 {
7903 _arg4 = &temp0;
7904 if (! wxSize_helper(_obj4, &_arg4))
7905 return NULL;
7906 }
7907 {
7908 PyThreadState* __tstate = wxPyBeginAllowThreads();
7909 _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
7910
7911 wxPyEndAllowThreads(__tstate);
7912 if (PyErr_Occurred()) return NULL;
7913 } _resultobj = Py_BuildValue("i",_result);
7914 return _resultobj;
7915 }
7916
7917 #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax())
7918 static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7919 PyObject * _resultobj;
7920 int _result;
7921 wxSpinButton * _arg0;
7922 PyObject * _argo0 = 0;
7923 char *_kwnames[] = { "self", NULL };
7924
7925 self = self;
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0))
7927 return NULL;
7928 if (_argo0) {
7929 if (_argo0 == Py_None) { _arg0 = NULL; }
7930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
7931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p.");
7932 return NULL;
7933 }
7934 }
7935 {
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 _result = (int )wxSpinButton_GetMax(_arg0);
7938
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) return NULL;
7941 } _resultobj = Py_BuildValue("i",_result);
7942 return _resultobj;
7943 }
7944
7945 #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin())
7946 static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7947 PyObject * _resultobj;
7948 int _result;
7949 wxSpinButton * _arg0;
7950 PyObject * _argo0 = 0;
7951 char *_kwnames[] = { "self", NULL };
7952
7953 self = self;
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0))
7955 return NULL;
7956 if (_argo0) {
7957 if (_argo0 == Py_None) { _arg0 = NULL; }
7958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
7959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p.");
7960 return NULL;
7961 }
7962 }
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 _result = (int )wxSpinButton_GetMin(_arg0);
7966
7967 wxPyEndAllowThreads(__tstate);
7968 if (PyErr_Occurred()) return NULL;
7969 } _resultobj = Py_BuildValue("i",_result);
7970 return _resultobj;
7971 }
7972
7973 #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue())
7974 static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7975 PyObject * _resultobj;
7976 int _result;
7977 wxSpinButton * _arg0;
7978 PyObject * _argo0 = 0;
7979 char *_kwnames[] = { "self", NULL };
7980
7981 self = self;
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0))
7983 return NULL;
7984 if (_argo0) {
7985 if (_argo0 == Py_None) { _arg0 = NULL; }
7986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
7987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p.");
7988 return NULL;
7989 }
7990 }
7991 {
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 _result = (int )wxSpinButton_GetValue(_arg0);
7994
7995 wxPyEndAllowThreads(__tstate);
7996 if (PyErr_Occurred()) return NULL;
7997 } _resultobj = Py_BuildValue("i",_result);
7998 return _resultobj;
7999 }
8000
8001 #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
8002 static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject * _resultobj;
8004 wxSpinButton * _arg0;
8005 int _arg1;
8006 int _arg2;
8007 PyObject * _argo0 = 0;
8008 char *_kwnames[] = { "self","min","max", NULL };
8009
8010 self = self;
8011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
8012 return NULL;
8013 if (_argo0) {
8014 if (_argo0 == Py_None) { _arg0 = NULL; }
8015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p.");
8017 return NULL;
8018 }
8019 }
8020 {
8021 PyThreadState* __tstate = wxPyBeginAllowThreads();
8022 wxSpinButton_SetRange(_arg0,_arg1,_arg2);
8023
8024 wxPyEndAllowThreads(__tstate);
8025 if (PyErr_Occurred()) return NULL;
8026 } Py_INCREF(Py_None);
8027 _resultobj = Py_None;
8028 return _resultobj;
8029 }
8030
8031 #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
8032 static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8033 PyObject * _resultobj;
8034 wxSpinButton * _arg0;
8035 int _arg1;
8036 PyObject * _argo0 = 0;
8037 char *_kwnames[] = { "self","value", NULL };
8038
8039 self = self;
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1))
8041 return NULL;
8042 if (_argo0) {
8043 if (_argo0 == Py_None) { _arg0 = NULL; }
8044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
8045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p.");
8046 return NULL;
8047 }
8048 }
8049 {
8050 PyThreadState* __tstate = wxPyBeginAllowThreads();
8051 wxSpinButton_SetValue(_arg0,_arg1);
8052
8053 wxPyEndAllowThreads(__tstate);
8054 if (PyErr_Occurred()) return NULL;
8055 } Py_INCREF(Py_None);
8056 _resultobj = Py_None;
8057 return _resultobj;
8058 }
8059
8060 static void *SwigwxStaticBitmapTowxControl(void *ptr) {
8061 wxStaticBitmap *src;
8062 wxControl *dest;
8063 src = (wxStaticBitmap *) ptr;
8064 dest = (wxControl *) src;
8065 return (void *) dest;
8066 }
8067
8068 static void *SwigwxStaticBitmapTowxWindow(void *ptr) {
8069 wxStaticBitmap *src;
8070 wxWindow *dest;
8071 src = (wxStaticBitmap *) ptr;
8072 dest = (wxWindow *) src;
8073 return (void *) dest;
8074 }
8075
8076 static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) {
8077 wxStaticBitmap *src;
8078 wxEvtHandler *dest;
8079 src = (wxStaticBitmap *) ptr;
8080 dest = (wxEvtHandler *) src;
8081 return (void *) dest;
8082 }
8083
8084 static void *SwigwxStaticBitmapTowxObject(void *ptr) {
8085 wxStaticBitmap *src;
8086 wxObject *dest;
8087 src = (wxStaticBitmap *) ptr;
8088 dest = (wxObject *) src;
8089 return (void *) dest;
8090 }
8091
8092 #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8093 static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8094 PyObject * _resultobj;
8095 wxStaticBitmap * _result;
8096 wxWindow * _arg0;
8097 wxWindowID _arg1;
8098 wxBitmap * _arg2;
8099 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8100 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8101 long _arg5 = (long ) 0;
8102 char * _arg6 = (char *) "staticBitmap";
8103 PyObject * _argo0 = 0;
8104 PyObject * _argo2 = 0;
8105 wxPoint temp;
8106 PyObject * _obj3 = 0;
8107 wxSize temp0;
8108 PyObject * _obj4 = 0;
8109 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL };
8110 char _ptemp[128];
8111
8112 self = self;
8113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6))
8114 return NULL;
8115 if (_argo0) {
8116 if (_argo0 == Py_None) { _arg0 = NULL; }
8117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p.");
8119 return NULL;
8120 }
8121 }
8122 if (_argo2) {
8123 if (_argo2 == Py_None) { _arg2 = NULL; }
8124 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8125 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p.");
8126 return NULL;
8127 }
8128 }
8129 if (_obj3)
8130 {
8131 _arg3 = &temp;
8132 if (! wxPoint_helper(_obj3, &_arg3))
8133 return NULL;
8134 }
8135 if (_obj4)
8136 {
8137 _arg4 = &temp0;
8138 if (! wxSize_helper(_obj4, &_arg4))
8139 return NULL;
8140 }
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) return NULL;
8147 } if (_result) {
8148 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8149 _resultobj = Py_BuildValue("s",_ptemp);
8150 } else {
8151 Py_INCREF(Py_None);
8152 _resultobj = Py_None;
8153 }
8154 return _resultobj;
8155 }
8156
8157 #define new_wxPreStaticBitmap() (new wxStaticBitmap())
8158 static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject * _resultobj;
8160 wxStaticBitmap * _result;
8161 char *_kwnames[] = { NULL };
8162 char _ptemp[128];
8163
8164 self = self;
8165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames))
8166 return NULL;
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 _result = (wxStaticBitmap *)new_wxPreStaticBitmap();
8170
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) return NULL;
8173 } if (_result) {
8174 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
8175 _resultobj = Py_BuildValue("s",_ptemp);
8176 } else {
8177 Py_INCREF(Py_None);
8178 _resultobj = Py_None;
8179 }
8180 return _resultobj;
8181 }
8182
8183 #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8184 static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8185 PyObject * _resultobj;
8186 bool _result;
8187 wxStaticBitmap * _arg0;
8188 wxWindow * _arg1;
8189 wxWindowID _arg2;
8190 wxBitmap * _arg3;
8191 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
8192 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
8193 long _arg6 = (long ) 0;
8194 char * _arg7 = (char *) "staticBitmap";
8195 PyObject * _argo0 = 0;
8196 PyObject * _argo1 = 0;
8197 PyObject * _argo3 = 0;
8198 wxPoint temp;
8199 PyObject * _obj4 = 0;
8200 wxSize temp0;
8201 PyObject * _obj5 = 0;
8202 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL };
8203
8204 self = self;
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7))
8206 return NULL;
8207 if (_argo0) {
8208 if (_argo0 == Py_None) { _arg0 = NULL; }
8209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p.");
8211 return NULL;
8212 }
8213 }
8214 if (_argo1) {
8215 if (_argo1 == Py_None) { _arg1 = NULL; }
8216 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8217 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p.");
8218 return NULL;
8219 }
8220 }
8221 if (_argo3) {
8222 if (_argo3 == Py_None) { _arg3 = NULL; }
8223 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
8224 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p.");
8225 return NULL;
8226 }
8227 }
8228 if (_obj4)
8229 {
8230 _arg4 = &temp;
8231 if (! wxPoint_helper(_obj4, &_arg4))
8232 return NULL;
8233 }
8234 if (_obj5)
8235 {
8236 _arg5 = &temp0;
8237 if (! wxSize_helper(_obj5, &_arg5))
8238 return NULL;
8239 }
8240 {
8241 PyThreadState* __tstate = wxPyBeginAllowThreads();
8242 _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
8243
8244 wxPyEndAllowThreads(__tstate);
8245 if (PyErr_Occurred()) return NULL;
8246 } _resultobj = Py_BuildValue("i",_result);
8247 return _resultobj;
8248 }
8249
8250 #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap())
8251 static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8252 PyObject * _resultobj;
8253 wxBitmap * _result;
8254 wxStaticBitmap * _arg0;
8255 PyObject * _argo0 = 0;
8256 char *_kwnames[] = { "self", NULL };
8257 char _ptemp[128];
8258
8259 self = self;
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0))
8261 return NULL;
8262 if (_argo0) {
8263 if (_argo0 == Py_None) { _arg0 = NULL; }
8264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p.");
8266 return NULL;
8267 }
8268 }
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0));
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) return NULL;
8275 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
8276 _resultobj = Py_BuildValue("s",_ptemp);
8277 return _resultobj;
8278 }
8279
8280 #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
8281 static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8282 PyObject * _resultobj;
8283 wxStaticBitmap * _arg0;
8284 wxBitmap * _arg1;
8285 PyObject * _argo0 = 0;
8286 PyObject * _argo1 = 0;
8287 char *_kwnames[] = { "self","bitmap", NULL };
8288
8289 self = self;
8290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1))
8291 return NULL;
8292 if (_argo0) {
8293 if (_argo0 == Py_None) { _arg0 = NULL; }
8294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p.");
8296 return NULL;
8297 }
8298 }
8299 if (_argo1) {
8300 if (_argo1 == Py_None) { _arg1 = NULL; }
8301 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8302 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p.");
8303 return NULL;
8304 }
8305 }
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 wxStaticBitmap_SetBitmap(_arg0,*_arg1);
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) return NULL;
8312 } Py_INCREF(Py_None);
8313 _resultobj = Py_None;
8314 return _resultobj;
8315 }
8316
8317 #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
8318 static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject * _resultobj;
8320 wxStaticBitmap * _arg0;
8321 wxIcon * _arg1;
8322 PyObject * _argo0 = 0;
8323 PyObject * _argo1 = 0;
8324 char *_kwnames[] = { "self","icon", NULL };
8325
8326 self = self;
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1))
8328 return NULL;
8329 if (_argo0) {
8330 if (_argo0 == Py_None) { _arg0 = NULL; }
8331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
8332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p.");
8333 return NULL;
8334 }
8335 }
8336 if (_argo1) {
8337 if (_argo1 == Py_None) { _arg1 = NULL; }
8338 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8339 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p.");
8340 return NULL;
8341 }
8342 }
8343 {
8344 PyThreadState* __tstate = wxPyBeginAllowThreads();
8345 wxStaticBitmap_SetIcon(_arg0,*_arg1);
8346
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) return NULL;
8349 } Py_INCREF(Py_None);
8350 _resultobj = Py_None;
8351 return _resultobj;
8352 }
8353
8354 static void *SwigwxRadioBoxTowxControl(void *ptr) {
8355 wxRadioBox *src;
8356 wxControl *dest;
8357 src = (wxRadioBox *) ptr;
8358 dest = (wxControl *) src;
8359 return (void *) dest;
8360 }
8361
8362 static void *SwigwxRadioBoxTowxWindow(void *ptr) {
8363 wxRadioBox *src;
8364 wxWindow *dest;
8365 src = (wxRadioBox *) ptr;
8366 dest = (wxWindow *) src;
8367 return (void *) dest;
8368 }
8369
8370 static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) {
8371 wxRadioBox *src;
8372 wxEvtHandler *dest;
8373 src = (wxRadioBox *) ptr;
8374 dest = (wxEvtHandler *) src;
8375 return (void *) dest;
8376 }
8377
8378 static void *SwigwxRadioBoxTowxObject(void *ptr) {
8379 wxRadioBox *src;
8380 wxObject *dest;
8381 src = (wxRadioBox *) ptr;
8382 dest = (wxObject *) src;
8383 return (void *) dest;
8384 }
8385
8386 #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))
8387 static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8388 PyObject * _resultobj;
8389 wxRadioBox * _result;
8390 wxWindow * _arg0;
8391 wxWindowID _arg1;
8392 wxString * _arg2;
8393 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
8394 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
8395 int _arg5 = (int ) 0;
8396 wxString * _arg6 = (wxString *) NULL;
8397 int _arg7 = (int ) 0;
8398 long _arg8 = (long ) wxRA_HORIZONTAL;
8399 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
8400 char * _arg10 = (char *) "radioBox";
8401 PyObject * _argo0 = 0;
8402 PyObject * _obj2 = 0;
8403 wxPoint temp;
8404 PyObject * _obj3 = 0;
8405 wxSize temp0;
8406 PyObject * _obj4 = 0;
8407 PyObject * _obj6 = 0;
8408 PyObject * _argo9 = 0;
8409 char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
8410 char _ptemp[128];
8411
8412 self = self;
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10))
8414 return NULL;
8415 if (_argo0) {
8416 if (_argo0 == Py_None) { _arg0 = NULL; }
8417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p.");
8419 return NULL;
8420 }
8421 }
8422 {
8423 _arg2 = wxString_in_helper(_obj2);
8424 if (_arg2 == NULL)
8425 return NULL;
8426 }
8427 if (_obj3)
8428 {
8429 _arg3 = &temp;
8430 if (! wxPoint_helper(_obj3, &_arg3))
8431 return NULL;
8432 }
8433 if (_obj4)
8434 {
8435 _arg4 = &temp0;
8436 if (! wxSize_helper(_obj4, &_arg4))
8437 return NULL;
8438 }
8439 if (_obj6)
8440 {
8441 _arg6 = wxString_LIST_helper(_obj6);
8442 if (_arg6 == NULL) {
8443 return NULL;
8444 }
8445 }
8446 if (_argo9) {
8447 if (_argo9 == Py_None) { _arg9 = NULL; }
8448 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
8449 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p.");
8450 return NULL;
8451 }
8452 }
8453 {
8454 if (_obj6) {
8455 _arg5 = PyList_Size(_obj6);
8456 }
8457 else {
8458 _arg5 = 0;
8459 }
8460 }
8461 {
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10);
8464
8465 wxPyEndAllowThreads(__tstate);
8466 if (PyErr_Occurred()) return NULL;
8467 } if (_result) {
8468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
8469 _resultobj = Py_BuildValue("s",_ptemp);
8470 } else {
8471 Py_INCREF(Py_None);
8472 _resultobj = Py_None;
8473 }
8474 {
8475 if (_obj2)
8476 delete _arg2;
8477 }
8478 {
8479 delete [] _arg6;
8480 }
8481 return _resultobj;
8482 }
8483
8484 #define new_wxPreRadioBox() (new wxRadioBox())
8485 static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8486 PyObject * _resultobj;
8487 wxRadioBox * _result;
8488 char *_kwnames[] = { NULL };
8489 char _ptemp[128];
8490
8491 self = self;
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames))
8493 return NULL;
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 _result = (wxRadioBox *)new_wxPreRadioBox();
8497
8498 wxPyEndAllowThreads(__tstate);
8499 if (PyErr_Occurred()) return NULL;
8500 } if (_result) {
8501 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
8502 _resultobj = Py_BuildValue("s",_ptemp);
8503 } else {
8504 Py_INCREF(Py_None);
8505 _resultobj = Py_None;
8506 }
8507 return _resultobj;
8508 }
8509
8510 #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))
8511 static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8512 PyObject * _resultobj;
8513 bool _result;
8514 wxRadioBox * _arg0;
8515 wxWindow * _arg1;
8516 wxWindowID _arg2;
8517 wxString * _arg3;
8518 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
8519 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
8520 int _arg6 = (int ) 0;
8521 wxString * _arg7 = (wxString *) NULL;
8522 int _arg8 = (int ) 0;
8523 long _arg9 = (long ) wxRA_HORIZONTAL;
8524 wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator;
8525 char * _arg11 = (char *) "radioBox";
8526 PyObject * _argo0 = 0;
8527 PyObject * _argo1 = 0;
8528 PyObject * _obj3 = 0;
8529 wxPoint temp;
8530 PyObject * _obj4 = 0;
8531 wxSize temp0;
8532 PyObject * _obj5 = 0;
8533 PyObject * _obj7 = 0;
8534 PyObject * _argo10 = 0;
8535 char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
8536
8537 self = self;
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11))
8539 return NULL;
8540 if (_argo0) {
8541 if (_argo0 == Py_None) { _arg0 = NULL; }
8542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p.");
8544 return NULL;
8545 }
8546 }
8547 if (_argo1) {
8548 if (_argo1 == Py_None) { _arg1 = NULL; }
8549 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8550 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p.");
8551 return NULL;
8552 }
8553 }
8554 {
8555 _arg3 = wxString_in_helper(_obj3);
8556 if (_arg3 == NULL)
8557 return NULL;
8558 }
8559 if (_obj4)
8560 {
8561 _arg4 = &temp;
8562 if (! wxPoint_helper(_obj4, &_arg4))
8563 return NULL;
8564 }
8565 if (_obj5)
8566 {
8567 _arg5 = &temp0;
8568 if (! wxSize_helper(_obj5, &_arg5))
8569 return NULL;
8570 }
8571 if (_obj7)
8572 {
8573 _arg7 = wxString_LIST_helper(_obj7);
8574 if (_arg7 == NULL) {
8575 return NULL;
8576 }
8577 }
8578 if (_argo10) {
8579 if (_argo10 == Py_None) { _arg10 = NULL; }
8580 else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) {
8581 PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p.");
8582 return NULL;
8583 }
8584 }
8585 {
8586 if (_obj7) {
8587 _arg6 = PyList_Size(_obj7);
8588 }
8589 else {
8590 _arg6 = 0;
8591 }
8592 }
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11);
8596
8597 wxPyEndAllowThreads(__tstate);
8598 if (PyErr_Occurred()) return NULL;
8599 } _resultobj = Py_BuildValue("i",_result);
8600 {
8601 if (_obj3)
8602 delete _arg3;
8603 }
8604 {
8605 delete [] _arg7;
8606 }
8607 return _resultobj;
8608 }
8609
8610 #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
8611 static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8612 PyObject * _resultobj;
8613 wxRadioBox * _arg0;
8614 bool _arg1;
8615 PyObject * _argo0 = 0;
8616 int tempbool1;
8617 char *_kwnames[] = { "self","enable", NULL };
8618
8619 self = self;
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1))
8621 return NULL;
8622 if (_argo0) {
8623 if (_argo0 == Py_None) { _arg0 = NULL; }
8624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p.");
8626 return NULL;
8627 }
8628 }
8629 _arg1 = (bool ) tempbool1;
8630 {
8631 PyThreadState* __tstate = wxPyBeginAllowThreads();
8632 wxRadioBox_Enable(_arg0,_arg1);
8633
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) return NULL;
8636 } Py_INCREF(Py_None);
8637 _resultobj = Py_None;
8638 return _resultobj;
8639 }
8640
8641 #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8642 static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject * _resultobj;
8644 wxRadioBox * _arg0;
8645 int _arg1;
8646 bool _arg2;
8647 PyObject * _argo0 = 0;
8648 int tempbool2;
8649 char *_kwnames[] = { "self","n","enable", NULL };
8650
8651 self = self;
8652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2))
8653 return NULL;
8654 if (_argo0) {
8655 if (_argo0 == Py_None) { _arg0 = NULL; }
8656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p.");
8658 return NULL;
8659 }
8660 }
8661 _arg2 = (bool ) tempbool2;
8662 {
8663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8664 wxRadioBox_EnableItem(_arg0,_arg1,_arg2);
8665
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) return NULL;
8668 } Py_INCREF(Py_None);
8669 _resultobj = Py_None;
8670 return _resultobj;
8671 }
8672
8673 #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
8674 static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
8675 PyObject * _resultobj;
8676 int _result;
8677 wxRadioBox * _arg0;
8678 wxString * _arg1;
8679 PyObject * _argo0 = 0;
8680 PyObject * _obj1 = 0;
8681 char *_kwnames[] = { "self","string", NULL };
8682
8683 self = self;
8684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1))
8685 return NULL;
8686 if (_argo0) {
8687 if (_argo0 == Py_None) { _arg0 = NULL; }
8688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p.");
8690 return NULL;
8691 }
8692 }
8693 {
8694 _arg1 = wxString_in_helper(_obj1);
8695 if (_arg1 == NULL)
8696 return NULL;
8697 }
8698 {
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 _result = (int )wxRadioBox_FindString(_arg0,*_arg1);
8701
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) return NULL;
8704 } _resultobj = Py_BuildValue("i",_result);
8705 {
8706 if (_obj1)
8707 delete _arg1;
8708 }
8709 return _resultobj;
8710 }
8711
8712 #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
8713 static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8714 PyObject * _resultobj;
8715 wxString * _result;
8716 wxRadioBox * _arg0;
8717 int _arg1;
8718 PyObject * _argo0 = 0;
8719 char *_kwnames[] = { "self","n", NULL };
8720
8721 self = self;
8722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1))
8723 return NULL;
8724 if (_argo0) {
8725 if (_argo0 == Py_None) { _arg0 = NULL; }
8726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p.");
8728 return NULL;
8729 }
8730 }
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 _result = new wxString (wxRadioBox_GetString(_arg0,_arg1));
8734
8735 wxPyEndAllowThreads(__tstate);
8736 if (PyErr_Occurred()) return NULL;
8737 }{
8738 #if wxUSE_UNICODE
8739 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
8740 #else
8741 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8742 #endif
8743 }
8744 {
8745 delete _result;
8746 }
8747 return _resultobj;
8748 }
8749
8750 #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
8751 static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8752 PyObject * _resultobj;
8753 wxRadioBox * _arg0;
8754 int _arg1;
8755 wxString * _arg2;
8756 PyObject * _argo0 = 0;
8757 PyObject * _obj2 = 0;
8758 char *_kwnames[] = { "self","n","label", NULL };
8759
8760 self = self;
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
8762 return NULL;
8763 if (_argo0) {
8764 if (_argo0 == Py_None) { _arg0 = NULL; }
8765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p.");
8767 return NULL;
8768 }
8769 }
8770 {
8771 _arg2 = wxString_in_helper(_obj2);
8772 if (_arg2 == NULL)
8773 return NULL;
8774 }
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 wxRadioBox_SetString(_arg0,_arg1,*_arg2);
8778
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) return NULL;
8781 } Py_INCREF(Py_None);
8782 _resultobj = Py_None;
8783 {
8784 if (_obj2)
8785 delete _arg2;
8786 }
8787 return _resultobj;
8788 }
8789
8790 #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
8791 static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8792 PyObject * _resultobj;
8793 int _result;
8794 wxRadioBox * _arg0;
8795 PyObject * _argo0 = 0;
8796 char *_kwnames[] = { "self", NULL };
8797
8798 self = self;
8799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0))
8800 return NULL;
8801 if (_argo0) {
8802 if (_argo0 == Py_None) { _arg0 = NULL; }
8803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p.");
8805 return NULL;
8806 }
8807 }
8808 {
8809 PyThreadState* __tstate = wxPyBeginAllowThreads();
8810 _result = (int )wxRadioBox_GetColumnCount(_arg0);
8811
8812 wxPyEndAllowThreads(__tstate);
8813 if (PyErr_Occurred()) return NULL;
8814 } _resultobj = Py_BuildValue("i",_result);
8815 return _resultobj;
8816 }
8817
8818 #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount())
8819 static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8820 PyObject * _resultobj;
8821 int _result;
8822 wxRadioBox * _arg0;
8823 PyObject * _argo0 = 0;
8824 char *_kwnames[] = { "self", NULL };
8825
8826 self = self;
8827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0))
8828 return NULL;
8829 if (_argo0) {
8830 if (_argo0 == Py_None) { _arg0 = NULL; }
8831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p.");
8833 return NULL;
8834 }
8835 }
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 _result = (int )wxRadioBox_GetRowCount(_arg0);
8839
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) return NULL;
8842 } _resultobj = Py_BuildValue("i",_result);
8843 return _resultobj;
8844 }
8845
8846 #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection())
8847 static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8848 PyObject * _resultobj;
8849 int _result;
8850 wxRadioBox * _arg0;
8851 PyObject * _argo0 = 0;
8852 char *_kwnames[] = { "self", NULL };
8853
8854 self = self;
8855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0))
8856 return NULL;
8857 if (_argo0) {
8858 if (_argo0 == Py_None) { _arg0 = NULL; }
8859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p.");
8861 return NULL;
8862 }
8863 }
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 _result = (int )wxRadioBox_GetSelection(_arg0);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) return NULL;
8870 } _resultobj = Py_BuildValue("i",_result);
8871 return _resultobj;
8872 }
8873
8874 #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
8875 static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8876 PyObject * _resultobj;
8877 wxString * _result;
8878 wxRadioBox * _arg0;
8879 PyObject * _argo0 = 0;
8880 char *_kwnames[] = { "self", NULL };
8881
8882 self = self;
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0))
8884 return NULL;
8885 if (_argo0) {
8886 if (_argo0 == Py_None) { _arg0 = NULL; }
8887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p.");
8889 return NULL;
8890 }
8891 }
8892 {
8893 PyThreadState* __tstate = wxPyBeginAllowThreads();
8894 _result = new wxString (wxRadioBox_GetStringSelection(_arg0));
8895
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) return NULL;
8898 }{
8899 #if wxUSE_UNICODE
8900 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
8901 #else
8902 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8903 #endif
8904 }
8905 {
8906 delete _result;
8907 }
8908 return _resultobj;
8909 }
8910
8911 #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount())
8912 static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8913 PyObject * _resultobj;
8914 int _result;
8915 wxRadioBox * _arg0;
8916 PyObject * _argo0 = 0;
8917 char *_kwnames[] = { "self", NULL };
8918
8919 self = self;
8920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0))
8921 return NULL;
8922 if (_argo0) {
8923 if (_argo0 == Py_None) { _arg0 = NULL; }
8924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p.");
8926 return NULL;
8927 }
8928 }
8929 {
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 _result = (int )wxRadioBox_GetCount(_arg0);
8932
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) return NULL;
8935 } _resultobj = Py_BuildValue("i",_result);
8936 return _resultobj;
8937 }
8938
8939 #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
8940 static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject * _resultobj;
8942 wxRadioBox * _arg0;
8943 int _arg1;
8944 PyObject * _argo0 = 0;
8945 char *_kwnames[] = { "self","n", NULL };
8946
8947 self = self;
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1))
8949 return NULL;
8950 if (_argo0) {
8951 if (_argo0 == Py_None) { _arg0 = NULL; }
8952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p.");
8954 return NULL;
8955 }
8956 }
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 wxRadioBox_SetSelection(_arg0,_arg1);
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) return NULL;
8963 } Py_INCREF(Py_None);
8964 _resultobj = Py_None;
8965 return _resultobj;
8966 }
8967
8968 #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
8969 static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8970 PyObject * _resultobj;
8971 wxRadioBox * _arg0;
8972 wxString * _arg1;
8973 PyObject * _argo0 = 0;
8974 PyObject * _obj1 = 0;
8975 char *_kwnames[] = { "self","string", NULL };
8976
8977 self = self;
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1))
8979 return NULL;
8980 if (_argo0) {
8981 if (_argo0 == Py_None) { _arg0 = NULL; }
8982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
8983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p.");
8984 return NULL;
8985 }
8986 }
8987 {
8988 _arg1 = wxString_in_helper(_obj1);
8989 if (_arg1 == NULL)
8990 return NULL;
8991 }
8992 {
8993 PyThreadState* __tstate = wxPyBeginAllowThreads();
8994 wxRadioBox_SetStringSelection(_arg0,*_arg1);
8995
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) return NULL;
8998 } Py_INCREF(Py_None);
8999 _resultobj = Py_None;
9000 {
9001 if (_obj1)
9002 delete _arg1;
9003 }
9004 return _resultobj;
9005 }
9006
9007 #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
9008 static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
9009 PyObject * _resultobj;
9010 wxRadioBox * _arg0;
9011 bool _arg1;
9012 PyObject * _argo0 = 0;
9013 int tempbool1;
9014 char *_kwnames[] = { "self","show", NULL };
9015
9016 self = self;
9017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1))
9018 return NULL;
9019 if (_argo0) {
9020 if (_argo0 == Py_None) { _arg0 = NULL; }
9021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p.");
9023 return NULL;
9024 }
9025 }
9026 _arg1 = (bool ) tempbool1;
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 wxRadioBox_Show(_arg0,_arg1);
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) return NULL;
9033 } Py_INCREF(Py_None);
9034 _resultobj = Py_None;
9035 return _resultobj;
9036 }
9037
9038 #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1))
9039 static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject * _resultobj;
9041 wxRadioBox * _arg0;
9042 int _arg1;
9043 bool _arg2;
9044 PyObject * _argo0 = 0;
9045 int tempbool2;
9046 char *_kwnames[] = { "self","item","show", NULL };
9047
9048 self = self;
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2))
9050 return NULL;
9051 if (_argo0) {
9052 if (_argo0 == Py_None) { _arg0 = NULL; }
9053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
9054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p.");
9055 return NULL;
9056 }
9057 }
9058 _arg2 = (bool ) tempbool2;
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 wxRadioBox_ShowItem(_arg0,_arg1,_arg2);
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) return NULL;
9065 } Py_INCREF(Py_None);
9066 _resultobj = Py_None;
9067 return _resultobj;
9068 }
9069
9070 static void *SwigwxRadioButtonTowxControl(void *ptr) {
9071 wxRadioButton *src;
9072 wxControl *dest;
9073 src = (wxRadioButton *) ptr;
9074 dest = (wxControl *) src;
9075 return (void *) dest;
9076 }
9077
9078 static void *SwigwxRadioButtonTowxWindow(void *ptr) {
9079 wxRadioButton *src;
9080 wxWindow *dest;
9081 src = (wxRadioButton *) ptr;
9082 dest = (wxWindow *) src;
9083 return (void *) dest;
9084 }
9085
9086 static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) {
9087 wxRadioButton *src;
9088 wxEvtHandler *dest;
9089 src = (wxRadioButton *) ptr;
9090 dest = (wxEvtHandler *) src;
9091 return (void *) dest;
9092 }
9093
9094 static void *SwigwxRadioButtonTowxObject(void *ptr) {
9095 wxRadioButton *src;
9096 wxObject *dest;
9097 src = (wxRadioButton *) ptr;
9098 dest = (wxObject *) src;
9099 return (void *) dest;
9100 }
9101
9102 #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
9103 static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9104 PyObject * _resultobj;
9105 wxRadioButton * _result;
9106 wxWindow * _arg0;
9107 wxWindowID _arg1;
9108 wxString * _arg2;
9109 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9110 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
9111 long _arg5 = (long ) 0;
9112 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
9113 char * _arg7 = (char *) "radioButton";
9114 PyObject * _argo0 = 0;
9115 PyObject * _obj2 = 0;
9116 wxPoint temp;
9117 PyObject * _obj3 = 0;
9118 wxSize temp0;
9119 PyObject * _obj4 = 0;
9120 PyObject * _argo6 = 0;
9121 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
9122 char _ptemp[128];
9123
9124 self = self;
9125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
9126 return NULL;
9127 if (_argo0) {
9128 if (_argo0 == Py_None) { _arg0 = NULL; }
9129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p.");
9131 return NULL;
9132 }
9133 }
9134 {
9135 _arg2 = wxString_in_helper(_obj2);
9136 if (_arg2 == NULL)
9137 return NULL;
9138 }
9139 if (_obj3)
9140 {
9141 _arg3 = &temp;
9142 if (! wxPoint_helper(_obj3, &_arg3))
9143 return NULL;
9144 }
9145 if (_obj4)
9146 {
9147 _arg4 = &temp0;
9148 if (! wxSize_helper(_obj4, &_arg4))
9149 return NULL;
9150 }
9151 if (_argo6) {
9152 if (_argo6 == Py_None) { _arg6 = NULL; }
9153 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
9154 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p.");
9155 return NULL;
9156 }
9157 }
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
9161
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) return NULL;
9164 } if (_result) {
9165 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9166 _resultobj = Py_BuildValue("s",_ptemp);
9167 } else {
9168 Py_INCREF(Py_None);
9169 _resultobj = Py_None;
9170 }
9171 {
9172 if (_obj2)
9173 delete _arg2;
9174 }
9175 return _resultobj;
9176 }
9177
9178 #define new_wxPreRadioButton() (new wxRadioButton())
9179 static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject * _resultobj;
9181 wxRadioButton * _result;
9182 char *_kwnames[] = { NULL };
9183 char _ptemp[128];
9184
9185 self = self;
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames))
9187 return NULL;
9188 {
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 _result = (wxRadioButton *)new_wxPreRadioButton();
9191
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) return NULL;
9194 } if (_result) {
9195 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
9196 _resultobj = Py_BuildValue("s",_ptemp);
9197 } else {
9198 Py_INCREF(Py_None);
9199 _resultobj = Py_None;
9200 }
9201 return _resultobj;
9202 }
9203
9204 #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
9205 static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject * _resultobj;
9207 bool _result;
9208 wxRadioButton * _arg0;
9209 wxWindow * _arg1;
9210 wxWindowID _arg2;
9211 wxString * _arg3;
9212 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
9213 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
9214 long _arg6 = (long ) 0;
9215 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
9216 char * _arg8 = (char *) "radioButton";
9217 PyObject * _argo0 = 0;
9218 PyObject * _argo1 = 0;
9219 PyObject * _obj3 = 0;
9220 wxPoint temp;
9221 PyObject * _obj4 = 0;
9222 wxSize temp0;
9223 PyObject * _obj5 = 0;
9224 PyObject * _argo7 = 0;
9225 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
9226
9227 self = self;
9228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8))
9229 return NULL;
9230 if (_argo0) {
9231 if (_argo0 == Py_None) { _arg0 = NULL; }
9232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p.");
9234 return NULL;
9235 }
9236 }
9237 if (_argo1) {
9238 if (_argo1 == Py_None) { _arg1 = NULL; }
9239 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9240 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p.");
9241 return NULL;
9242 }
9243 }
9244 {
9245 _arg3 = wxString_in_helper(_obj3);
9246 if (_arg3 == NULL)
9247 return NULL;
9248 }
9249 if (_obj4)
9250 {
9251 _arg4 = &temp;
9252 if (! wxPoint_helper(_obj4, &_arg4))
9253 return NULL;
9254 }
9255 if (_obj5)
9256 {
9257 _arg5 = &temp0;
9258 if (! wxSize_helper(_obj5, &_arg5))
9259 return NULL;
9260 }
9261 if (_argo7) {
9262 if (_argo7 == Py_None) { _arg7 = NULL; }
9263 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
9264 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p.");
9265 return NULL;
9266 }
9267 }
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8);
9271
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) return NULL;
9274 } _resultobj = Py_BuildValue("i",_result);
9275 {
9276 if (_obj3)
9277 delete _arg3;
9278 }
9279 return _resultobj;
9280 }
9281
9282 #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue())
9283 static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9284 PyObject * _resultobj;
9285 bool _result;
9286 wxRadioButton * _arg0;
9287 PyObject * _argo0 = 0;
9288 char *_kwnames[] = { "self", NULL };
9289
9290 self = self;
9291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0))
9292 return NULL;
9293 if (_argo0) {
9294 if (_argo0 == Py_None) { _arg0 = NULL; }
9295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p.");
9297 return NULL;
9298 }
9299 }
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 _result = (bool )wxRadioButton_GetValue(_arg0);
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) return NULL;
9306 } _resultobj = Py_BuildValue("i",_result);
9307 return _resultobj;
9308 }
9309
9310 #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
9311 static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9312 PyObject * _resultobj;
9313 wxRadioButton * _arg0;
9314 bool _arg1;
9315 PyObject * _argo0 = 0;
9316 int tempbool1;
9317 char *_kwnames[] = { "self","value", NULL };
9318
9319 self = self;
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1))
9321 return NULL;
9322 if (_argo0) {
9323 if (_argo0 == Py_None) { _arg0 = NULL; }
9324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
9325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p.");
9326 return NULL;
9327 }
9328 }
9329 _arg1 = (bool ) tempbool1;
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 wxRadioButton_SetValue(_arg0,_arg1);
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) return NULL;
9336 } Py_INCREF(Py_None);
9337 _resultobj = Py_None;
9338 return _resultobj;
9339 }
9340
9341 static void *SwigwxSliderTowxControl(void *ptr) {
9342 wxSlider *src;
9343 wxControl *dest;
9344 src = (wxSlider *) ptr;
9345 dest = (wxControl *) src;
9346 return (void *) dest;
9347 }
9348
9349 static void *SwigwxSliderTowxWindow(void *ptr) {
9350 wxSlider *src;
9351 wxWindow *dest;
9352 src = (wxSlider *) ptr;
9353 dest = (wxWindow *) src;
9354 return (void *) dest;
9355 }
9356
9357 static void *SwigwxSliderTowxEvtHandler(void *ptr) {
9358 wxSlider *src;
9359 wxEvtHandler *dest;
9360 src = (wxSlider *) ptr;
9361 dest = (wxEvtHandler *) src;
9362 return (void *) dest;
9363 }
9364
9365 static void *SwigwxSliderTowxObject(void *ptr) {
9366 wxSlider *src;
9367 wxObject *dest;
9368 src = (wxSlider *) ptr;
9369 dest = (wxObject *) src;
9370 return (void *) dest;
9371 }
9372
9373 #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))
9374 static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject * _resultobj;
9376 wxSlider * _result;
9377 wxWindow * _arg0;
9378 wxWindowID _arg1;
9379 int _arg2;
9380 int _arg3;
9381 int _arg4;
9382 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
9383 wxSize * _arg6 = (wxSize *) &wxDefaultSize;
9384 long _arg7 = (long ) wxSL_HORIZONTAL;
9385 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
9386 char * _arg9 = (char *) "slider";
9387 PyObject * _argo0 = 0;
9388 wxPoint temp;
9389 PyObject * _obj5 = 0;
9390 wxSize temp0;
9391 PyObject * _obj6 = 0;
9392 PyObject * _argo8 = 0;
9393 char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
9394 char _ptemp[128];
9395
9396 self = self;
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9))
9398 return NULL;
9399 if (_argo0) {
9400 if (_argo0 == Py_None) { _arg0 = NULL; }
9401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p.");
9403 return NULL;
9404 }
9405 }
9406 if (_obj5)
9407 {
9408 _arg5 = &temp;
9409 if (! wxPoint_helper(_obj5, &_arg5))
9410 return NULL;
9411 }
9412 if (_obj6)
9413 {
9414 _arg6 = &temp0;
9415 if (! wxSize_helper(_obj6, &_arg6))
9416 return NULL;
9417 }
9418 if (_argo8) {
9419 if (_argo8 == Py_None) { _arg8 = NULL; }
9420 else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
9421 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p.");
9422 return NULL;
9423 }
9424 }
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9);
9428
9429 wxPyEndAllowThreads(__tstate);
9430 if (PyErr_Occurred()) return NULL;
9431 } if (_result) {
9432 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
9433 _resultobj = Py_BuildValue("s",_ptemp);
9434 } else {
9435 Py_INCREF(Py_None);
9436 _resultobj = Py_None;
9437 }
9438 return _resultobj;
9439 }
9440
9441 #define new_wxPreSlider() (new wxSlider())
9442 static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject * _resultobj;
9444 wxSlider * _result;
9445 char *_kwnames[] = { NULL };
9446 char _ptemp[128];
9447
9448 self = self;
9449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames))
9450 return NULL;
9451 {
9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
9453 _result = (wxSlider *)new_wxPreSlider();
9454
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) return NULL;
9457 } if (_result) {
9458 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
9459 _resultobj = Py_BuildValue("s",_ptemp);
9460 } else {
9461 Py_INCREF(Py_None);
9462 _resultobj = Py_None;
9463 }
9464 return _resultobj;
9465 }
9466
9467 #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))
9468 static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9469 PyObject * _resultobj;
9470 bool _result;
9471 wxSlider * _arg0;
9472 wxWindow * _arg1;
9473 wxWindowID _arg2;
9474 int _arg3;
9475 int _arg4;
9476 int _arg5;
9477 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
9478 wxSize * _arg7 = (wxSize *) &wxDefaultSize;
9479 long _arg8 = (long ) wxSL_HORIZONTAL;
9480 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
9481 char * _arg10 = (char *) "slider";
9482 PyObject * _argo0 = 0;
9483 PyObject * _argo1 = 0;
9484 wxPoint temp;
9485 PyObject * _obj6 = 0;
9486 wxSize temp0;
9487 PyObject * _obj7 = 0;
9488 PyObject * _argo9 = 0;
9489 char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
9490
9491 self = self;
9492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10))
9493 return NULL;
9494 if (_argo0) {
9495 if (_argo0 == Py_None) { _arg0 = NULL; }
9496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p.");
9498 return NULL;
9499 }
9500 }
9501 if (_argo1) {
9502 if (_argo1 == Py_None) { _arg1 = NULL; }
9503 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9504 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p.");
9505 return NULL;
9506 }
9507 }
9508 if (_obj6)
9509 {
9510 _arg6 = &temp;
9511 if (! wxPoint_helper(_obj6, &_arg6))
9512 return NULL;
9513 }
9514 if (_obj7)
9515 {
9516 _arg7 = &temp0;
9517 if (! wxSize_helper(_obj7, &_arg7))
9518 return NULL;
9519 }
9520 if (_argo9) {
9521 if (_argo9 == Py_None) { _arg9 = NULL; }
9522 else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
9523 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p.");
9524 return NULL;
9525 }
9526 }
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10);
9530
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) return NULL;
9533 } _resultobj = Py_BuildValue("i",_result);
9534 return _resultobj;
9535 }
9536
9537 #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel())
9538 static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
9539 PyObject * _resultobj;
9540 wxSlider * _arg0;
9541 PyObject * _argo0 = 0;
9542 char *_kwnames[] = { "self", NULL };
9543
9544 self = self;
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0))
9546 return NULL;
9547 if (_argo0) {
9548 if (_argo0 == Py_None) { _arg0 = NULL; }
9549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p.");
9551 return NULL;
9552 }
9553 }
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 wxSlider_ClearSel(_arg0);
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) return NULL;
9560 } Py_INCREF(Py_None);
9561 _resultobj = Py_None;
9562 return _resultobj;
9563 }
9564
9565 #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks())
9566 static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject * _resultobj;
9568 wxSlider * _arg0;
9569 PyObject * _argo0 = 0;
9570 char *_kwnames[] = { "self", NULL };
9571
9572 self = self;
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0))
9574 return NULL;
9575 if (_argo0) {
9576 if (_argo0 == Py_None) { _arg0 = NULL; }
9577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p.");
9579 return NULL;
9580 }
9581 }
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 wxSlider_ClearTicks(_arg0);
9585
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) return NULL;
9588 } Py_INCREF(Py_None);
9589 _resultobj = Py_None;
9590 return _resultobj;
9591 }
9592
9593 #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize())
9594 static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject * _resultobj;
9596 int _result;
9597 wxSlider * _arg0;
9598 PyObject * _argo0 = 0;
9599 char *_kwnames[] = { "self", NULL };
9600
9601 self = self;
9602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0))
9603 return NULL;
9604 if (_argo0) {
9605 if (_argo0 == Py_None) { _arg0 = NULL; }
9606 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9607 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p.");
9608 return NULL;
9609 }
9610 }
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 _result = (int )wxSlider_GetLineSize(_arg0);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) return NULL;
9617 } _resultobj = Py_BuildValue("i",_result);
9618 return _resultobj;
9619 }
9620
9621 #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax())
9622 static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject * _resultobj;
9624 int _result;
9625 wxSlider * _arg0;
9626 PyObject * _argo0 = 0;
9627 char *_kwnames[] = { "self", NULL };
9628
9629 self = self;
9630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0))
9631 return NULL;
9632 if (_argo0) {
9633 if (_argo0 == Py_None) { _arg0 = NULL; }
9634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p.");
9636 return NULL;
9637 }
9638 }
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 _result = (int )wxSlider_GetMax(_arg0);
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) return NULL;
9645 } _resultobj = Py_BuildValue("i",_result);
9646 return _resultobj;
9647 }
9648
9649 #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin())
9650 static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9651 PyObject * _resultobj;
9652 int _result;
9653 wxSlider * _arg0;
9654 PyObject * _argo0 = 0;
9655 char *_kwnames[] = { "self", NULL };
9656
9657 self = self;
9658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0))
9659 return NULL;
9660 if (_argo0) {
9661 if (_argo0 == Py_None) { _arg0 = NULL; }
9662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p.");
9664 return NULL;
9665 }
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 _result = (int )wxSlider_GetMin(_arg0);
9670
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) return NULL;
9673 } _resultobj = Py_BuildValue("i",_result);
9674 return _resultobj;
9675 }
9676
9677 #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize())
9678 static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9679 PyObject * _resultobj;
9680 int _result;
9681 wxSlider * _arg0;
9682 PyObject * _argo0 = 0;
9683 char *_kwnames[] = { "self", NULL };
9684
9685 self = self;
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0))
9687 return NULL;
9688 if (_argo0) {
9689 if (_argo0 == Py_None) { _arg0 = NULL; }
9690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p.");
9692 return NULL;
9693 }
9694 }
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 _result = (int )wxSlider_GetPageSize(_arg0);
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) return NULL;
9701 } _resultobj = Py_BuildValue("i",_result);
9702 return _resultobj;
9703 }
9704
9705 #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd())
9706 static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject * _resultobj;
9708 int _result;
9709 wxSlider * _arg0;
9710 PyObject * _argo0 = 0;
9711 char *_kwnames[] = { "self", NULL };
9712
9713 self = self;
9714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0))
9715 return NULL;
9716 if (_argo0) {
9717 if (_argo0 == Py_None) { _arg0 = NULL; }
9718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p.");
9720 return NULL;
9721 }
9722 }
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 _result = (int )wxSlider_GetSelEnd(_arg0);
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) return NULL;
9729 } _resultobj = Py_BuildValue("i",_result);
9730 return _resultobj;
9731 }
9732
9733 #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart())
9734 static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
9735 PyObject * _resultobj;
9736 int _result;
9737 wxSlider * _arg0;
9738 PyObject * _argo0 = 0;
9739 char *_kwnames[] = { "self", NULL };
9740
9741 self = self;
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0))
9743 return NULL;
9744 if (_argo0) {
9745 if (_argo0 == Py_None) { _arg0 = NULL; }
9746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p.");
9748 return NULL;
9749 }
9750 }
9751 {
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 _result = (int )wxSlider_GetSelStart(_arg0);
9754
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) return NULL;
9757 } _resultobj = Py_BuildValue("i",_result);
9758 return _resultobj;
9759 }
9760
9761 #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength())
9762 static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
9763 PyObject * _resultobj;
9764 int _result;
9765 wxSlider * _arg0;
9766 PyObject * _argo0 = 0;
9767 char *_kwnames[] = { "self", NULL };
9768
9769 self = self;
9770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0))
9771 return NULL;
9772 if (_argo0) {
9773 if (_argo0 == Py_None) { _arg0 = NULL; }
9774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p.");
9776 return NULL;
9777 }
9778 }
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 _result = (int )wxSlider_GetThumbLength(_arg0);
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) return NULL;
9785 } _resultobj = Py_BuildValue("i",_result);
9786 return _resultobj;
9787 }
9788
9789 #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq())
9790 static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject * _resultobj;
9792 int _result;
9793 wxSlider * _arg0;
9794 PyObject * _argo0 = 0;
9795 char *_kwnames[] = { "self", NULL };
9796
9797 self = self;
9798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0))
9799 return NULL;
9800 if (_argo0) {
9801 if (_argo0 == Py_None) { _arg0 = NULL; }
9802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p.");
9804 return NULL;
9805 }
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 _result = (int )wxSlider_GetTickFreq(_arg0);
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) return NULL;
9813 } _resultobj = Py_BuildValue("i",_result);
9814 return _resultobj;
9815 }
9816
9817 #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue())
9818 static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject * _resultobj;
9820 int _result;
9821 wxSlider * _arg0;
9822 PyObject * _argo0 = 0;
9823 char *_kwnames[] = { "self", NULL };
9824
9825 self = self;
9826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0))
9827 return NULL;
9828 if (_argo0) {
9829 if (_argo0 == Py_None) { _arg0 = NULL; }
9830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p.");
9832 return NULL;
9833 }
9834 }
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 _result = (int )wxSlider_GetValue(_arg0);
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) return NULL;
9841 } _resultobj = Py_BuildValue("i",_result);
9842 return _resultobj;
9843 }
9844
9845 #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
9846 static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject * _resultobj;
9848 wxSlider * _arg0;
9849 int _arg1;
9850 int _arg2;
9851 PyObject * _argo0 = 0;
9852 char *_kwnames[] = { "self","minValue","maxValue", NULL };
9853
9854 self = self;
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
9856 return NULL;
9857 if (_argo0) {
9858 if (_argo0 == Py_None) { _arg0 = NULL; }
9859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p.");
9861 return NULL;
9862 }
9863 }
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 wxSlider_SetRange(_arg0,_arg1,_arg2);
9867
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) return NULL;
9870 } Py_INCREF(Py_None);
9871 _resultobj = Py_None;
9872 return _resultobj;
9873 }
9874
9875 #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1))
9876 static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
9877 PyObject * _resultobj;
9878 wxSlider * _arg0;
9879 int _arg1;
9880 int _arg2;
9881 PyObject * _argo0 = 0;
9882 char *_kwnames[] = { "self","n","pos", NULL };
9883
9884 self = self;
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2))
9886 return NULL;
9887 if (_argo0) {
9888 if (_argo0 == Py_None) { _arg0 = NULL; }
9889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p.");
9891 return NULL;
9892 }
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 wxSlider_SetTickFreq(_arg0,_arg1,_arg2);
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) return NULL;
9900 } Py_INCREF(Py_None);
9901 _resultobj = Py_None;
9902 return _resultobj;
9903 }
9904
9905 #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0))
9906 static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject * _resultobj;
9908 wxSlider * _arg0;
9909 int _arg1;
9910 PyObject * _argo0 = 0;
9911 char *_kwnames[] = { "self","lineSize", NULL };
9912
9913 self = self;
9914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1))
9915 return NULL;
9916 if (_argo0) {
9917 if (_argo0 == Py_None) { _arg0 = NULL; }
9918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p.");
9920 return NULL;
9921 }
9922 }
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 wxSlider_SetLineSize(_arg0,_arg1);
9926
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) return NULL;
9929 } Py_INCREF(Py_None);
9930 _resultobj = Py_None;
9931 return _resultobj;
9932 }
9933
9934 #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
9935 static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject * _resultobj;
9937 wxSlider * _arg0;
9938 int _arg1;
9939 PyObject * _argo0 = 0;
9940 char *_kwnames[] = { "self","pageSize", NULL };
9941
9942 self = self;
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1))
9944 return NULL;
9945 if (_argo0) {
9946 if (_argo0 == Py_None) { _arg0 = NULL; }
9947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p.");
9949 return NULL;
9950 }
9951 }
9952 {
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 wxSlider_SetPageSize(_arg0,_arg1);
9955
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) return NULL;
9958 } Py_INCREF(Py_None);
9959 _resultobj = Py_None;
9960 return _resultobj;
9961 }
9962
9963 #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
9964 static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject * _resultobj;
9966 wxSlider * _arg0;
9967 int _arg1;
9968 int _arg2;
9969 PyObject * _argo0 = 0;
9970 char *_kwnames[] = { "self","startPos","endPos", NULL };
9971
9972 self = self;
9973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
9974 return NULL;
9975 if (_argo0) {
9976 if (_argo0 == Py_None) { _arg0 = NULL; }
9977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
9978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p.");
9979 return NULL;
9980 }
9981 }
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 wxSlider_SetSelection(_arg0,_arg1,_arg2);
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) return NULL;
9988 } Py_INCREF(Py_None);
9989 _resultobj = Py_None;
9990 return _resultobj;
9991 }
9992
9993 #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0))
9994 static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
9995 PyObject * _resultobj;
9996 wxSlider * _arg0;
9997 int _arg1;
9998 PyObject * _argo0 = 0;
9999 char *_kwnames[] = { "self","len", NULL };
10000
10001 self = self;
10002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1))
10003 return NULL;
10004 if (_argo0) {
10005 if (_argo0 == Py_None) { _arg0 = NULL; }
10006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p.");
10008 return NULL;
10009 }
10010 }
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 wxSlider_SetThumbLength(_arg0,_arg1);
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) return NULL;
10017 } Py_INCREF(Py_None);
10018 _resultobj = Py_None;
10019 return _resultobj;
10020 }
10021
10022 #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0))
10023 static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
10024 PyObject * _resultobj;
10025 wxSlider * _arg0;
10026 int _arg1;
10027 PyObject * _argo0 = 0;
10028 char *_kwnames[] = { "self","tickPos", NULL };
10029
10030 self = self;
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1))
10032 return NULL;
10033 if (_argo0) {
10034 if (_argo0 == Py_None) { _arg0 = NULL; }
10035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p.");
10037 return NULL;
10038 }
10039 }
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 wxSlider_SetTick(_arg0,_arg1);
10043
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) return NULL;
10046 } Py_INCREF(Py_None);
10047 _resultobj = Py_None;
10048 return _resultobj;
10049 }
10050
10051 #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
10052 static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10053 PyObject * _resultobj;
10054 wxSlider * _arg0;
10055 int _arg1;
10056 PyObject * _argo0 = 0;
10057 char *_kwnames[] = { "self","value", NULL };
10058
10059 self = self;
10060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1))
10061 return NULL;
10062 if (_argo0) {
10063 if (_argo0 == Py_None) { _arg0 = NULL; }
10064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
10065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p.");
10066 return NULL;
10067 }
10068 }
10069 {
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 wxSlider_SetValue(_arg0,_arg1);
10072
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) return NULL;
10075 } Py_INCREF(Py_None);
10076 _resultobj = Py_None;
10077 return _resultobj;
10078 }
10079
10080 static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) {
10081 wxSpinCtrl *src;
10082 wxSpinButton *dest;
10083 src = (wxSpinCtrl *) ptr;
10084 dest = (wxSpinButton *) src;
10085 return (void *) dest;
10086 }
10087
10088 static void *SwigwxSpinCtrlTowxControl(void *ptr) {
10089 wxSpinCtrl *src;
10090 wxControl *dest;
10091 src = (wxSpinCtrl *) ptr;
10092 dest = (wxControl *) src;
10093 return (void *) dest;
10094 }
10095
10096 static void *SwigwxSpinCtrlTowxWindow(void *ptr) {
10097 wxSpinCtrl *src;
10098 wxWindow *dest;
10099 src = (wxSpinCtrl *) ptr;
10100 dest = (wxWindow *) src;
10101 return (void *) dest;
10102 }
10103
10104 static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) {
10105 wxSpinCtrl *src;
10106 wxEvtHandler *dest;
10107 src = (wxSpinCtrl *) ptr;
10108 dest = (wxEvtHandler *) src;
10109 return (void *) dest;
10110 }
10111
10112 static void *SwigwxSpinCtrlTowxObject(void *ptr) {
10113 wxSpinCtrl *src;
10114 wxObject *dest;
10115 src = (wxSpinCtrl *) ptr;
10116 dest = (wxObject *) src;
10117 return (void *) dest;
10118 }
10119
10120 #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))
10121 static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject * _resultobj;
10123 wxSpinCtrl * _result;
10124 wxWindow * _arg0;
10125 wxWindowID _arg1 = (wxWindowID ) -1;
10126 char * _arg2 = (char *) "";
10127 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10128 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10129 long _arg5 = (long ) wxSP_ARROW_KEYS;
10130 int _arg6 = (int ) 0;
10131 int _arg7 = (int ) 100;
10132 int _arg8 = (int ) 0;
10133 char * _arg9 = (char *) "wxSpinCtrl";
10134 PyObject * _argo0 = 0;
10135 wxPoint temp;
10136 PyObject * _obj3 = 0;
10137 wxSize temp0;
10138 PyObject * _obj4 = 0;
10139 char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL };
10140 char _ptemp[128];
10141
10142 self = self;
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9))
10144 return NULL;
10145 if (_argo0) {
10146 if (_argo0 == Py_None) { _arg0 = NULL; }
10147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p.");
10149 return NULL;
10150 }
10151 }
10152 if (_obj3)
10153 {
10154 _arg3 = &temp;
10155 if (! wxPoint_helper(_obj3, &_arg3))
10156 return NULL;
10157 }
10158 if (_obj4)
10159 {
10160 _arg4 = &temp0;
10161 if (! wxSize_helper(_obj4, &_arg4))
10162 return NULL;
10163 }
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) return NULL;
10170 } if (_result) {
10171 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10172 _resultobj = Py_BuildValue("s",_ptemp);
10173 } else {
10174 Py_INCREF(Py_None);
10175 _resultobj = Py_None;
10176 }
10177 return _resultobj;
10178 }
10179
10180 #define new_wxPreSpinCtrl() (new wxSpinCtrl())
10181 static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10182 PyObject * _resultobj;
10183 wxSpinCtrl * _result;
10184 char *_kwnames[] = { NULL };
10185 char _ptemp[128];
10186
10187 self = self;
10188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames))
10189 return NULL;
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 _result = (wxSpinCtrl *)new_wxPreSpinCtrl();
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) return NULL;
10196 } if (_result) {
10197 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
10198 _resultobj = Py_BuildValue("s",_ptemp);
10199 } else {
10200 Py_INCREF(Py_None);
10201 _resultobj = Py_None;
10202 }
10203 return _resultobj;
10204 }
10205
10206 #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))
10207 static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10208 PyObject * _resultobj;
10209 bool _result;
10210 wxSpinCtrl * _arg0;
10211 wxWindow * _arg1;
10212 wxWindowID _arg2 = (wxWindowID ) -1;
10213 char * _arg3 = (char *) "";
10214 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10215 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10216 long _arg6 = (long ) wxSP_ARROW_KEYS;
10217 int _arg7 = (int ) 0;
10218 int _arg8 = (int ) 100;
10219 int _arg9 = (int ) 0;
10220 char * _arg10 = (char *) "wxSpinCtrl";
10221 PyObject * _argo0 = 0;
10222 PyObject * _argo1 = 0;
10223 wxPoint temp;
10224 PyObject * _obj4 = 0;
10225 wxSize temp0;
10226 PyObject * _obj5 = 0;
10227 char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL };
10228
10229 self = self;
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10))
10231 return NULL;
10232 if (_argo0) {
10233 if (_argo0 == Py_None) { _arg0 = NULL; }
10234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p.");
10236 return NULL;
10237 }
10238 }
10239 if (_argo1) {
10240 if (_argo1 == Py_None) { _arg1 = NULL; }
10241 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10242 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p.");
10243 return NULL;
10244 }
10245 }
10246 if (_obj4)
10247 {
10248 _arg4 = &temp;
10249 if (! wxPoint_helper(_obj4, &_arg4))
10250 return NULL;
10251 }
10252 if (_obj5)
10253 {
10254 _arg5 = &temp0;
10255 if (! wxSize_helper(_obj5, &_arg5))
10256 return NULL;
10257 }
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10);
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) return NULL;
10264 } _resultobj = Py_BuildValue("i",_result);
10265 return _resultobj;
10266 }
10267
10268 #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax())
10269 static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject * _resultobj;
10271 int _result;
10272 wxSpinCtrl * _arg0;
10273 PyObject * _argo0 = 0;
10274 char *_kwnames[] = { "self", NULL };
10275
10276 self = self;
10277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0))
10278 return NULL;
10279 if (_argo0) {
10280 if (_argo0 == Py_None) { _arg0 = NULL; }
10281 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p.");
10283 return NULL;
10284 }
10285 }
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 _result = (int )wxSpinCtrl_GetMax(_arg0);
10289
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) return NULL;
10292 } _resultobj = Py_BuildValue("i",_result);
10293 return _resultobj;
10294 }
10295
10296 #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin())
10297 static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10298 PyObject * _resultobj;
10299 int _result;
10300 wxSpinCtrl * _arg0;
10301 PyObject * _argo0 = 0;
10302 char *_kwnames[] = { "self", NULL };
10303
10304 self = self;
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0))
10306 return NULL;
10307 if (_argo0) {
10308 if (_argo0 == Py_None) { _arg0 = NULL; }
10309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p.");
10311 return NULL;
10312 }
10313 }
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 _result = (int )wxSpinCtrl_GetMin(_arg0);
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) return NULL;
10320 } _resultobj = Py_BuildValue("i",_result);
10321 return _resultobj;
10322 }
10323
10324 #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue())
10325 static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10326 PyObject * _resultobj;
10327 int _result;
10328 wxSpinCtrl * _arg0;
10329 PyObject * _argo0 = 0;
10330 char *_kwnames[] = { "self", NULL };
10331
10332 self = self;
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0))
10334 return NULL;
10335 if (_argo0) {
10336 if (_argo0 == Py_None) { _arg0 = NULL; }
10337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p.");
10339 return NULL;
10340 }
10341 }
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 _result = (int )wxSpinCtrl_GetValue(_arg0);
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) return NULL;
10348 } _resultobj = Py_BuildValue("i",_result);
10349 return _resultobj;
10350 }
10351
10352 #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
10353 static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
10354 PyObject * _resultobj;
10355 wxSpinCtrl * _arg0;
10356 int _arg1;
10357 int _arg2;
10358 PyObject * _argo0 = 0;
10359 char *_kwnames[] = { "self","min","max", NULL };
10360
10361 self = self;
10362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
10363 return NULL;
10364 if (_argo0) {
10365 if (_argo0 == Py_None) { _arg0 = NULL; }
10366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p.");
10368 return NULL;
10369 }
10370 }
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 wxSpinCtrl_SetRange(_arg0,_arg1,_arg2);
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) return NULL;
10377 } Py_INCREF(Py_None);
10378 _resultobj = Py_None;
10379 return _resultobj;
10380 }
10381
10382 #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
10383 static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject * _resultobj;
10385 wxSpinCtrl * _arg0;
10386 int _arg1;
10387 PyObject * _argo0 = 0;
10388 char *_kwnames[] = { "self","value", NULL };
10389
10390 self = self;
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1))
10392 return NULL;
10393 if (_argo0) {
10394 if (_argo0 == Py_None) { _arg0 = NULL; }
10395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
10396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p.");
10397 return NULL;
10398 }
10399 }
10400 {
10401 PyThreadState* __tstate = wxPyBeginAllowThreads();
10402 wxSpinCtrl_SetValue(_arg0,_arg1);
10403
10404 wxPyEndAllowThreads(__tstate);
10405 if (PyErr_Occurred()) return NULL;
10406 } Py_INCREF(Py_None);
10407 _resultobj = Py_None;
10408 return _resultobj;
10409 }
10410
10411 static PyMethodDef controlscMethods[] = {
10412 { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
10413 { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
10414 { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
10415 { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
10416 { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
10417 { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10418 { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
10419 { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS },
10420 { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS },
10421 { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS },
10422 { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
10423 { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS },
10424 { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
10425 { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
10426 { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
10427 { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS },
10428 { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS },
10429 { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
10430 { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
10431 { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
10432 { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
10433 { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
10434 { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS },
10435 { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS },
10436 { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
10437 { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
10438 { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS },
10439 { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS },
10440 { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS },
10441 { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS },
10442 { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
10443 { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
10444 { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS },
10445 { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS },
10446 { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS },
10447 { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
10448 { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS },
10449 { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
10450 { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
10451 { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
10452 { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
10453 { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
10454 { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS },
10455 { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
10456 { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
10457 { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
10458 { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
10459 { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
10460 { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS },
10461 { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS },
10462 { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS },
10463 { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS },
10464 { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
10465 { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
10466 { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
10467 { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
10468 { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
10469 { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS },
10470 { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
10471 { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
10472 { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
10473 { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
10474 { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
10475 { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS },
10476 { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS },
10477 { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
10478 { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
10479 { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
10480 { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
10481 { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
10482 { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
10483 { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
10484 { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
10485 { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
10486 { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
10487 { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS },
10488 { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS },
10489 { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
10490 { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS },
10491 { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
10492 { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
10493 { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
10494 { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
10495 { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
10496 { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
10497 { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
10498 { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
10499 { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
10500 { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
10501 { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
10502 { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
10503 { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
10504 { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
10505 { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
10506 { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
10507 { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
10508 { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
10509 { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
10510 { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
10511 { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
10512 { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
10513 { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
10514 { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
10515 { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
10516 { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
10517 { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
10518 { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
10519 { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
10520 { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
10521 { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
10522 { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
10523 { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
10524 { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
10525 { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
10526 { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
10527 { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
10528 { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
10529 { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
10530 { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
10531 { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
10532 { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
10533 { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10534 { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS },
10535 { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS },
10536 { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
10537 { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
10538 { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
10539 { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10540 { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
10541 { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
10542 { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10543 { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
10544 { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
10545 { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10546 { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
10547 { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
10548 { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
10549 { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
10550 { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
10551 { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
10552 { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
10553 { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS },
10554 { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS },
10555 { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
10556 { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS },
10557 { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
10558 { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
10559 { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
10560 { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS },
10561 { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS },
10562 { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
10563 { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
10564 { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
10565 { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
10566 { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS },
10567 { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS },
10568 { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS },
10569 { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS },
10570 { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS },
10571 { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS },
10572 { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS },
10573 { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS },
10574 { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS },
10575 { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS },
10576 { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS },
10577 { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS },
10578 { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS },
10579 { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS },
10580 { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS },
10581 { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS },
10582 { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
10583 { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS },
10584 { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
10585 { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS },
10586 { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
10587 { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS },
10588 { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
10589 { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS },
10590 { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS },
10591 { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS },
10592 { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
10593 { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
10594 { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
10595 { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
10596 { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
10597 { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
10598 { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
10599 { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
10600 { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
10601 { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
10602 { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
10603 { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
10604 { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
10605 { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
10606 { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS },
10607 { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS },
10608 { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS },
10609 { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS },
10610 { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
10611 { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS },
10612 { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS },
10613 { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS },
10614 { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS },
10615 { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS },
10616 { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS },
10617 { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS },
10618 { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
10619 { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
10620 { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS },
10621 { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS },
10622 { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS },
10623 { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
10624 { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
10625 { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
10626 { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
10627 { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
10628 { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
10629 { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
10630 { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
10631 { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
10632 { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
10633 { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
10634 { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
10635 { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS },
10636 { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS },
10637 { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
10638 { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
10639 { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10640 { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS },
10641 { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS },
10642 { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS },
10643 { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS },
10644 { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS },
10645 { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS },
10646 { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS },
10647 { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS },
10648 { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
10649 { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS },
10650 { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS },
10651 { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS },
10652 { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS },
10653 { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS },
10654 { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS },
10655 { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS },
10656 { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS },
10657 { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS },
10658 { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS },
10659 { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS },
10660 { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS },
10661 { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS },
10662 { NULL, NULL }
10663 };
10664 #ifdef __cplusplus
10665 }
10666 #endif
10667 /*
10668 * This table is used by the pointer type-checker
10669 */
10670 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10671 { "_signed_long","_long",0},
10672 { "_wxPrintQuality","_wxCoord",0},
10673 { "_wxPrintQuality","_int",0},
10674 { "_wxPrintQuality","_signed_int",0},
10675 { "_wxPrintQuality","_unsigned_int",0},
10676 { "_wxPrintQuality","_wxWindowID",0},
10677 { "_wxPrintQuality","_uint",0},
10678 { "_wxPrintQuality","_EBool",0},
10679 { "_wxPrintQuality","_size_t",0},
10680 { "_wxPrintQuality","_time_t",0},
10681 { "_byte","_unsigned_char",0},
10682 { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice},
10683 { "_long","_unsigned_long",0},
10684 { "_long","_signed_long",0},
10685 { "_size_t","_wxCoord",0},
10686 { "_size_t","_wxPrintQuality",0},
10687 { "_size_t","_time_t",0},
10688 { "_size_t","_unsigned_int",0},
10689 { "_size_t","_int",0},
10690 { "_size_t","_wxWindowID",0},
10691 { "_size_t","_uint",0},
10692 { "_uint","_wxCoord",0},
10693 { "_uint","_wxPrintQuality",0},
10694 { "_uint","_time_t",0},
10695 { "_uint","_size_t",0},
10696 { "_uint","_unsigned_int",0},
10697 { "_uint","_int",0},
10698 { "_uint","_wxWindowID",0},
10699 { "_wxChar","_char",0},
10700 { "_char","_wxChar",0},
10701 { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
10702 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10703 { "_EBool","_wxCoord",0},
10704 { "_EBool","_wxPrintQuality",0},
10705 { "_EBool","_signed_int",0},
10706 { "_EBool","_int",0},
10707 { "_EBool","_wxWindowID",0},
10708 { "_unsigned_long","_long",0},
10709 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10710 { "_signed_int","_wxCoord",0},
10711 { "_signed_int","_wxPrintQuality",0},
10712 { "_signed_int","_EBool",0},
10713 { "_signed_int","_wxWindowID",0},
10714 { "_signed_int","_int",0},
10715 { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
10716 { "_WXTYPE","_short",0},
10717 { "_WXTYPE","_signed_short",0},
10718 { "_WXTYPE","_unsigned_short",0},
10719 { "_unsigned_short","_WXTYPE",0},
10720 { "_unsigned_short","_short",0},
10721 { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
10722 { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
10723 { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
10724 { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
10725 { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
10726 { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
10727 { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
10728 { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
10729 { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
10730 { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
10731 { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
10732 { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
10733 { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
10734 { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
10735 { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
10736 { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
10737 { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
10738 { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
10739 { "_wxObject","_wxButton",SwigwxButtonTowxObject},
10740 { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject},
10741 { "_wxObject","_wxControl",SwigwxControlTowxObject},
10742 { "_signed_short","_WXTYPE",0},
10743 { "_signed_short","_short",0},
10744 { "_unsigned_char","_byte",0},
10745 { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
10746 { "_wxControl","_wxSlider",SwigwxSliderTowxControl},
10747 { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
10748 { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
10749 { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
10750 { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
10751 { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
10752 { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
10753 { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
10754 { "_wxControl","_wxListBox",SwigwxListBoxTowxControl},
10755 { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
10756 { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
10757 { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
10758 { "_wxControl","_wxGauge",SwigwxGaugeTowxControl},
10759 { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
10760 { "_wxControl","_wxChoice",SwigwxChoiceTowxControl},
10761 { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
10762 { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
10763 { "_wxControl","_wxButton",SwigwxButtonTowxControl},
10764 { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl},
10765 { "_unsigned_int","_wxCoord",0},
10766 { "_unsigned_int","_wxPrintQuality",0},
10767 { "_unsigned_int","_time_t",0},
10768 { "_unsigned_int","_size_t",0},
10769 { "_unsigned_int","_uint",0},
10770 { "_unsigned_int","_wxWindowID",0},
10771 { "_unsigned_int","_int",0},
10772 { "_short","_WXTYPE",0},
10773 { "_short","_unsigned_short",0},
10774 { "_short","_signed_short",0},
10775 { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems},
10776 { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems},
10777 { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems},
10778 { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems},
10779 { "_wxWindowID","_wxCoord",0},
10780 { "_wxWindowID","_wxPrintQuality",0},
10781 { "_wxWindowID","_time_t",0},
10782 { "_wxWindowID","_size_t",0},
10783 { "_wxWindowID","_EBool",0},
10784 { "_wxWindowID","_uint",0},
10785 { "_wxWindowID","_int",0},
10786 { "_wxWindowID","_signed_int",0},
10787 { "_wxWindowID","_unsigned_int",0},
10788 { "_int","_wxCoord",0},
10789 { "_int","_wxPrintQuality",0},
10790 { "_int","_time_t",0},
10791 { "_int","_size_t",0},
10792 { "_int","_EBool",0},
10793 { "_int","_uint",0},
10794 { "_int","_wxWindowID",0},
10795 { "_int","_unsigned_int",0},
10796 { "_int","_signed_int",0},
10797 { "_time_t","_wxCoord",0},
10798 { "_time_t","_wxPrintQuality",0},
10799 { "_time_t","_unsigned_int",0},
10800 { "_time_t","_int",0},
10801 { "_time_t","_wxWindowID",0},
10802 { "_time_t","_uint",0},
10803 { "_time_t","_size_t",0},
10804 { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
10805 { "_wxCoord","_int",0},
10806 { "_wxCoord","_signed_int",0},
10807 { "_wxCoord","_unsigned_int",0},
10808 { "_wxCoord","_wxWindowID",0},
10809 { "_wxCoord","_uint",0},
10810 { "_wxCoord","_EBool",0},
10811 { "_wxCoord","_size_t",0},
10812 { "_wxCoord","_time_t",0},
10813 { "_wxCoord","_wxPrintQuality",0},
10814 { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
10815 { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
10816 { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
10817 { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
10818 { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
10819 { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
10820 { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
10821 { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
10822 { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
10823 { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
10824 { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
10825 { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
10826 { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
10827 { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
10828 { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
10829 { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
10830 { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
10831 { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
10832 { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
10833 { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler},
10834 { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
10835 { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
10836 { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
10837 { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
10838 { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
10839 { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
10840 { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
10841 { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
10842 { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
10843 { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
10844 { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
10845 { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
10846 { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
10847 { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
10848 { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
10849 { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
10850 { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
10851 { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
10852 { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
10853 { "_wxWindow","_wxButton",SwigwxButtonTowxWindow},
10854 { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow},
10855 { "_wxWindow","_wxControl",SwigwxControlTowxWindow},
10856 {0,0,0}};
10857
10858 static PyObject *SWIG_globals;
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 SWIGEXPORT(void) initcontrolsc() {
10863 PyObject *m, *d;
10864 SWIG_globals = SWIG_newvarlink();
10865 m = Py_InitModule("controlsc", controlscMethods);
10866 d = PyModule_GetDict(m);
10867 PyDict_SetItemString(d,"cvar", SWIG_globals);
10868 SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set);
10869 {
10870 int i;
10871 for (i = 0; _swig_mapping[i].n1; i++)
10872 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10873 }
10874 }