]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/controls.cpp
New version from Timothy Hochberg
[wxWidgets.git] / wxPython / src / gtk / controls.cpp
1 /*
2 * FILE : src/gtk/controls.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initcontrolsc
54
55 #define SWIG_name "controlsc"
56
57 #include "helpers.h"
58 #include <wx/slider.h>
59 #include <wx/spinbutt.h>
60 #include <wx/spinctrl.h>
61 #include <wx/dynarray.h>
62 #include <wx/statline.h>
63 #include <wx/tglbtn.h>
64
65 #ifdef __WXMSW__
66 #if wxUSE_OWNER_DRAWN
67 #include <wx/checklst.h>
68 #endif
69 #endif
70
71 #ifdef __WXGTK__
72 #include <wx/checklst.h>
73 #endif
74
75
76 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
77 PyObject* o2;
78 PyObject* o3;
79
80 if (!target) {
81 target = o;
82 } else if (target == Py_None) {
83 Py_DECREF(Py_None);
84 target = o;
85 } else {
86 if (!PyTuple_Check(target)) {
87 o2 = target;
88 target = PyTuple_New(1);
89 PyTuple_SetItem(target, 0, o2);
90 }
91 o3 = PyTuple_New(1);
92 PyTuple_SetItem(o3, 0, o);
93
94 o2 = target;
95 target = PySequence_Concat(o2, o3);
96 Py_DECREF(o2);
97 Py_DECREF(o3);
98 }
99 return target;
100 }
101
102 //#define DECLARE_DEF_STRING(name) static wxString* wxPy##name
103
104 // Put some wx default wxChar* values into wxStrings.
105 DECLARE_DEF_STRING(ControlNameStr);
106 DECLARE_DEF_STRING(ButtonNameStr);
107 DECLARE_DEF_STRING(CheckBoxNameStr);
108 DECLARE_DEF_STRING(ChoiceNameStr);
109 DECLARE_DEF_STRING(ComboBoxNameStr);
110 DECLARE_DEF_STRING(GaugeNameStr);
111 DECLARE_DEF_STRING(StaticBoxNameStr);
112 DECLARE_DEF_STRING(StaticTextNameStr);
113 DECLARE_DEF_STRING(ListBoxNameStr);
114 DECLARE_DEF_STRING(TextCtrlNameStr);
115 DECLARE_DEF_STRING(ScrollBarNameStr);
116 DECLARE_DEF_STRING(SPIN_BUTTON_NAME);
117 DECLARE_DEF_STRING(StaticBitmapNameStr);
118 DECLARE_DEF_STRING(RadioBoxNameStr);
119 DECLARE_DEF_STRING(RadioButtonNameStr);
120 DECLARE_DEF_STRING(SliderNameStr);
121
122 wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl");
123 DECLARE_DEF_STRING(SpinCtrlNameStr);
124
125 static const wxString wxPyEmptyString(wxT(""));
126 #ifdef __cplusplus
127 extern "C" {
128 #endif
129 static int _wrap_wxDefaultValidator_set(PyObject *val) {
130
131 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only.");
132 return 1;
133 }
134
135 static PyObject *_wrap_wxDefaultValidator_get() {
136 PyObject * pyobj;
137 char ptemp[128];
138
139 SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p");
140 pyobj = PyString_FromString(ptemp);
141 return pyobj;
142 }
143
144 static void *SwigwxControlTowxWindow(void *ptr) {
145 wxControl *src;
146 wxWindow *dest;
147 src = (wxControl *) ptr;
148 dest = (wxWindow *) src;
149 return (void *) dest;
150 }
151
152 static void *SwigwxControlTowxEvtHandler(void *ptr) {
153 wxControl *src;
154 wxEvtHandler *dest;
155 src = (wxControl *) ptr;
156 dest = (wxEvtHandler *) src;
157 return (void *) dest;
158 }
159
160 static void *SwigwxControlTowxObject(void *ptr) {
161 wxControl *src;
162 wxObject *dest;
163 src = (wxControl *) ptr;
164 dest = (wxObject *) src;
165 return (void *) dest;
166 }
167
168 #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
169 static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) {
170 PyObject * _resultobj;
171 wxControl * _result;
172 wxWindow * _arg0;
173 wxWindowID _arg1;
174 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
175 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
176 long _arg4 = (long ) 0;
177 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
178 wxString * _arg6 = (wxString *) &wxPyControlNameStr;
179 PyObject * _argo0 = 0;
180 wxPoint temp;
181 PyObject * _obj2 = 0;
182 wxSize temp0;
183 PyObject * _obj3 = 0;
184 PyObject * _argo5 = 0;
185 PyObject * _obj6 = 0;
186 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
187 char _ptemp[128];
188
189 self = self;
190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
191 return NULL;
192 if (_argo0) {
193 if (_argo0 == Py_None) { _arg0 = NULL; }
194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p.");
196 return NULL;
197 }
198 }
199 if (_obj2)
200 {
201 _arg2 = &temp;
202 if (! wxPoint_helper(_obj2, &_arg2))
203 return NULL;
204 }
205 if (_obj3)
206 {
207 _arg3 = &temp0;
208 if (! wxSize_helper(_obj3, &_arg3))
209 return NULL;
210 }
211 if (_argo5) {
212 if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
213 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p.");
214 return NULL;
215 }
216 }
217 if (_obj6)
218 {
219 _arg6 = wxString_in_helper(_obj6);
220 if (_arg6 == NULL)
221 return NULL;
222 }
223 {
224 PyThreadState* __tstate = wxPyBeginAllowThreads();
225 _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
226
227 wxPyEndAllowThreads(__tstate);
228 if (PyErr_Occurred()) return NULL;
229 } if (_result) {
230 SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
231 _resultobj = Py_BuildValue("s",_ptemp);
232 } else {
233 Py_INCREF(Py_None);
234 _resultobj = Py_None;
235 }
236 {
237 if (_obj6)
238 delete _arg6;
239 }
240 return _resultobj;
241 }
242
243 #define new_wxPreControl() (new wxControl())
244 static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
245 PyObject * _resultobj;
246 wxControl * _result;
247 char *_kwnames[] = { NULL };
248 char _ptemp[128];
249
250 self = self;
251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames))
252 return NULL;
253 {
254 PyThreadState* __tstate = wxPyBeginAllowThreads();
255 _result = (wxControl *)new_wxPreControl();
256
257 wxPyEndAllowThreads(__tstate);
258 if (PyErr_Occurred()) return NULL;
259 } if (_result) {
260 SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
261 _resultobj = Py_BuildValue("s",_ptemp);
262 } else {
263 Py_INCREF(Py_None);
264 _resultobj = Py_None;
265 }
266 return _resultobj;
267 }
268
269 #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
270 static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
271 PyObject * _resultobj;
272 bool _result;
273 wxControl * _arg0;
274 wxWindow * _arg1;
275 wxWindowID _arg2;
276 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
277 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
278 long _arg5 = (long ) 0;
279 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
280 wxString * _arg7 = (wxString *) &wxPyControlNameStr;
281 PyObject * _argo0 = 0;
282 PyObject * _argo1 = 0;
283 wxPoint temp;
284 PyObject * _obj3 = 0;
285 wxSize temp0;
286 PyObject * _obj4 = 0;
287 PyObject * _argo6 = 0;
288 PyObject * _obj7 = 0;
289 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
290
291 self = self;
292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
293 return NULL;
294 if (_argo0) {
295 if (_argo0 == Py_None) { _arg0 = NULL; }
296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p.");
298 return NULL;
299 }
300 }
301 if (_argo1) {
302 if (_argo1 == Py_None) { _arg1 = NULL; }
303 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
304 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p.");
305 return NULL;
306 }
307 }
308 if (_obj3)
309 {
310 _arg3 = &temp;
311 if (! wxPoint_helper(_obj3, &_arg3))
312 return NULL;
313 }
314 if (_obj4)
315 {
316 _arg4 = &temp0;
317 if (! wxSize_helper(_obj4, &_arg4))
318 return NULL;
319 }
320 if (_argo6) {
321 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
322 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p.");
323 return NULL;
324 }
325 }
326 if (_obj7)
327 {
328 _arg7 = wxString_in_helper(_obj7);
329 if (_arg7 == NULL)
330 return NULL;
331 }
332 {
333 PyThreadState* __tstate = wxPyBeginAllowThreads();
334 _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
335
336 wxPyEndAllowThreads(__tstate);
337 if (PyErr_Occurred()) return NULL;
338 } _resultobj = Py_BuildValue("i",_result);
339 {
340 if (_obj7)
341 delete _arg7;
342 }
343 return _resultobj;
344 }
345
346 #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
347 static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
348 PyObject * _resultobj;
349 wxControl * _arg0;
350 wxCommandEvent * _arg1;
351 PyObject * _argo0 = 0;
352 PyObject * _argo1 = 0;
353 char *_kwnames[] = { "self","event", NULL };
354
355 self = self;
356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1))
357 return NULL;
358 if (_argo0) {
359 if (_argo0 == Py_None) { _arg0 = NULL; }
360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p.");
362 return NULL;
363 }
364 }
365 if (_argo1) {
366 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) {
367 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p.");
368 return NULL;
369 }
370 }
371 {
372 PyThreadState* __tstate = wxPyBeginAllowThreads();
373 wxControl_Command(_arg0,*_arg1);
374
375 wxPyEndAllowThreads(__tstate);
376 if (PyErr_Occurred()) return NULL;
377 } Py_INCREF(Py_None);
378 _resultobj = Py_None;
379 return _resultobj;
380 }
381
382 #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel())
383 static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
384 PyObject * _resultobj;
385 wxString * _result;
386 wxControl * _arg0;
387 PyObject * _argo0 = 0;
388 char *_kwnames[] = { "self", NULL };
389
390 self = self;
391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0))
392 return NULL;
393 if (_argo0) {
394 if (_argo0 == Py_None) { _arg0 = NULL; }
395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p.");
397 return NULL;
398 }
399 }
400 {
401 PyThreadState* __tstate = wxPyBeginAllowThreads();
402 _result = new wxString (wxControl_GetLabel(_arg0));
403
404 wxPyEndAllowThreads(__tstate);
405 if (PyErr_Occurred()) return NULL;
406 }{
407 #if wxUSE_UNICODE
408 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
409 #else
410 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
411 #endif
412 }
413 {
414 delete _result;
415 }
416 return _resultobj;
417 }
418
419 #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
420 static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
421 PyObject * _resultobj;
422 wxControl * _arg0;
423 wxString * _arg1;
424 PyObject * _argo0 = 0;
425 PyObject * _obj1 = 0;
426 char *_kwnames[] = { "self","label", NULL };
427
428 self = self;
429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1))
430 return NULL;
431 if (_argo0) {
432 if (_argo0 == Py_None) { _arg0 = NULL; }
433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) {
434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p.");
435 return NULL;
436 }
437 }
438 {
439 _arg1 = wxString_in_helper(_obj1);
440 if (_arg1 == NULL)
441 return NULL;
442 }
443 {
444 PyThreadState* __tstate = wxPyBeginAllowThreads();
445 wxControl_SetLabel(_arg0,*_arg1);
446
447 wxPyEndAllowThreads(__tstate);
448 if (PyErr_Occurred()) return NULL;
449 } Py_INCREF(Py_None);
450 _resultobj = Py_None;
451 {
452 if (_obj1)
453 delete _arg1;
454 }
455 return _resultobj;
456 }
457
458 static void *SwigwxControlWithItemsTowxControl(void *ptr) {
459 wxControlWithItems *src;
460 wxControl *dest;
461 src = (wxControlWithItems *) ptr;
462 dest = (wxControl *) src;
463 return (void *) dest;
464 }
465
466 static void *SwigwxControlWithItemsTowxWindow(void *ptr) {
467 wxControlWithItems *src;
468 wxWindow *dest;
469 src = (wxControlWithItems *) ptr;
470 dest = (wxWindow *) src;
471 return (void *) dest;
472 }
473
474 static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) {
475 wxControlWithItems *src;
476 wxEvtHandler *dest;
477 src = (wxControlWithItems *) ptr;
478 dest = (wxEvtHandler *) src;
479 return (void *) dest;
480 }
481
482 static void *SwigwxControlWithItemsTowxObject(void *ptr) {
483 wxControlWithItems *src;
484 wxObject *dest;
485 src = (wxControlWithItems *) ptr;
486 dest = (wxObject *) src;
487 return (void *) dest;
488 }
489
490 #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
491 static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
492 PyObject * _resultobj;
493 wxControlWithItems * _arg0;
494 int _arg1;
495 PyObject * _argo0 = 0;
496 char *_kwnames[] = { "self","n", NULL };
497
498 self = self;
499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1))
500 return NULL;
501 if (_argo0) {
502 if (_argo0 == Py_None) { _arg0 = NULL; }
503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p.");
505 return NULL;
506 }
507 }
508 {
509 PyThreadState* __tstate = wxPyBeginAllowThreads();
510 wxControlWithItems_Delete(_arg0,_arg1);
511
512 wxPyEndAllowThreads(__tstate);
513 if (PyErr_Occurred()) return NULL;
514 } Py_INCREF(Py_None);
515 _resultobj = Py_None;
516 return _resultobj;
517 }
518
519 #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount())
520 static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
521 PyObject * _resultobj;
522 int _result;
523 wxControlWithItems * _arg0;
524 PyObject * _argo0 = 0;
525 char *_kwnames[] = { "self", NULL };
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0))
529 return NULL;
530 if (_argo0) {
531 if (_argo0 == Py_None) { _arg0 = NULL; }
532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p.");
534 return NULL;
535 }
536 }
537 {
538 PyThreadState* __tstate = wxPyBeginAllowThreads();
539 _result = (int )wxControlWithItems_GetCount(_arg0);
540
541 wxPyEndAllowThreads(__tstate);
542 if (PyErr_Occurred()) return NULL;
543 } _resultobj = Py_BuildValue("i",_result);
544 return _resultobj;
545 }
546
547 #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
548 static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
549 PyObject * _resultobj;
550 wxString * _result;
551 wxControlWithItems * _arg0;
552 int _arg1;
553 PyObject * _argo0 = 0;
554 char *_kwnames[] = { "self","n", NULL };
555
556 self = self;
557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1))
558 return NULL;
559 if (_argo0) {
560 if (_argo0 == Py_None) { _arg0 = NULL; }
561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p.");
563 return NULL;
564 }
565 }
566 {
567 PyThreadState* __tstate = wxPyBeginAllowThreads();
568 _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1));
569
570 wxPyEndAllowThreads(__tstate);
571 if (PyErr_Occurred()) return NULL;
572 }{
573 #if wxUSE_UNICODE
574 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
575 #else
576 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
577 #endif
578 }
579 {
580 delete _result;
581 }
582 return _resultobj;
583 }
584
585 #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
586 static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
587 PyObject * _resultobj;
588 wxControlWithItems * _arg0;
589 int _arg1;
590 wxString * _arg2;
591 PyObject * _argo0 = 0;
592 PyObject * _obj2 = 0;
593 char *_kwnames[] = { "self","n","s", NULL };
594
595 self = self;
596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
597 return NULL;
598 if (_argo0) {
599 if (_argo0 == Py_None) { _arg0 = NULL; }
600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p.");
602 return NULL;
603 }
604 }
605 {
606 _arg2 = wxString_in_helper(_obj2);
607 if (_arg2 == NULL)
608 return NULL;
609 }
610 {
611 PyThreadState* __tstate = wxPyBeginAllowThreads();
612 wxControlWithItems_SetString(_arg0,_arg1,*_arg2);
613
614 wxPyEndAllowThreads(__tstate);
615 if (PyErr_Occurred()) return NULL;
616 } Py_INCREF(Py_None);
617 _resultobj = Py_None;
618 {
619 if (_obj2)
620 delete _arg2;
621 }
622 return _resultobj;
623 }
624
625 #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
626 static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
627 PyObject * _resultobj;
628 int _result;
629 wxControlWithItems * _arg0;
630 wxString * _arg1;
631 PyObject * _argo0 = 0;
632 PyObject * _obj1 = 0;
633 char *_kwnames[] = { "self","s", NULL };
634
635 self = self;
636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1))
637 return NULL;
638 if (_argo0) {
639 if (_argo0 == Py_None) { _arg0 = NULL; }
640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p.");
642 return NULL;
643 }
644 }
645 {
646 _arg1 = wxString_in_helper(_obj1);
647 if (_arg1 == NULL)
648 return NULL;
649 }
650 {
651 PyThreadState* __tstate = wxPyBeginAllowThreads();
652 _result = (int )wxControlWithItems_FindString(_arg0,*_arg1);
653
654 wxPyEndAllowThreads(__tstate);
655 if (PyErr_Occurred()) return NULL;
656 } _resultobj = Py_BuildValue("i",_result);
657 {
658 if (_obj1)
659 delete _arg1;
660 }
661 return _resultobj;
662 }
663
664 #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0))
665 static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
666 PyObject * _resultobj;
667 wxControlWithItems * _arg0;
668 int _arg1;
669 PyObject * _argo0 = 0;
670 char *_kwnames[] = { "self","n", NULL };
671
672 self = self;
673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1))
674 return NULL;
675 if (_argo0) {
676 if (_argo0 == Py_None) { _arg0 = NULL; }
677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p.");
679 return NULL;
680 }
681 }
682 {
683 PyThreadState* __tstate = wxPyBeginAllowThreads();
684 wxControlWithItems_Select(_arg0,_arg1);
685
686 wxPyEndAllowThreads(__tstate);
687 if (PyErr_Occurred()) return NULL;
688 } Py_INCREF(Py_None);
689 _resultobj = Py_None;
690 return _resultobj;
691 }
692
693 #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection())
694 static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
695 PyObject * _resultobj;
696 int _result;
697 wxControlWithItems * _arg0;
698 PyObject * _argo0 = 0;
699 char *_kwnames[] = { "self", NULL };
700
701 self = self;
702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0))
703 return NULL;
704 if (_argo0) {
705 if (_argo0 == Py_None) { _arg0 = NULL; }
706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p.");
708 return NULL;
709 }
710 }
711 {
712 PyThreadState* __tstate = wxPyBeginAllowThreads();
713 _result = (int )wxControlWithItems_GetSelection(_arg0);
714
715 wxPyEndAllowThreads(__tstate);
716 if (PyErr_Occurred()) return NULL;
717 } _resultobj = Py_BuildValue("i",_result);
718 return _resultobj;
719 }
720
721 #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
722 static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
723 PyObject * _resultobj;
724 wxString * _result;
725 wxControlWithItems * _arg0;
726 PyObject * _argo0 = 0;
727 char *_kwnames[] = { "self", NULL };
728
729 self = self;
730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0))
731 return NULL;
732 if (_argo0) {
733 if (_argo0 == Py_None) { _arg0 = NULL; }
734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p.");
736 return NULL;
737 }
738 }
739 {
740 PyThreadState* __tstate = wxPyBeginAllowThreads();
741 _result = new wxString (wxControlWithItems_GetStringSelection(_arg0));
742
743 wxPyEndAllowThreads(__tstate);
744 if (PyErr_Occurred()) return NULL;
745 }{
746 #if wxUSE_UNICODE
747 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
748 #else
749 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
750 #endif
751 }
752 {
753 delete _result;
754 }
755 return _resultobj;
756 }
757
758 static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) {
759 if (clientData) {
760 wxPyClientData* data = new wxPyClientData(clientData);
761 self->Append(item, data);
762 } else
763 self->Append(item);
764 }
765 static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
766 PyObject * _resultobj;
767 wxControlWithItems * _arg0;
768 wxString * _arg1;
769 PyObject * _arg2 = (PyObject *) NULL;
770 PyObject * _argo0 = 0;
771 PyObject * _obj1 = 0;
772 PyObject * _obj2 = 0;
773 char *_kwnames[] = { "self","item","clientData", NULL };
774
775 self = self;
776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2))
777 return NULL;
778 if (_argo0) {
779 if (_argo0 == Py_None) { _arg0 = NULL; }
780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p.");
782 return NULL;
783 }
784 }
785 {
786 _arg1 = wxString_in_helper(_obj1);
787 if (_arg1 == NULL)
788 return NULL;
789 }
790 if (_obj2)
791 {
792 _arg2 = _obj2;
793 }
794 {
795 PyThreadState* __tstate = wxPyBeginAllowThreads();
796 wxControlWithItems_Append(_arg0,*_arg1,_arg2);
797
798 wxPyEndAllowThreads(__tstate);
799 if (PyErr_Occurred()) return NULL;
800 } Py_INCREF(Py_None);
801 _resultobj = Py_None;
802 {
803 if (_obj1)
804 delete _arg1;
805 }
806 return _resultobj;
807 }
808
809 static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) {
810 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
811 if (data) {
812 Py_INCREF(data->m_obj);
813 return data->m_obj;
814 } else {
815 Py_INCREF(Py_None);
816 return Py_None;
817 }
818 }
819 static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
820 PyObject * _resultobj;
821 PyObject * _result;
822 wxControlWithItems * _arg0;
823 int _arg1;
824 PyObject * _argo0 = 0;
825 char *_kwnames[] = { "self","n", NULL };
826
827 self = self;
828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1))
829 return NULL;
830 if (_argo0) {
831 if (_argo0 == Py_None) { _arg0 = NULL; }
832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p.");
834 return NULL;
835 }
836 }
837 {
838 PyThreadState* __tstate = wxPyBeginAllowThreads();
839 _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1);
840
841 wxPyEndAllowThreads(__tstate);
842 if (PyErr_Occurred()) return NULL;
843 }{
844 _resultobj = _result;
845 }
846 return _resultobj;
847 }
848
849 static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) {
850 wxPyClientData* data = new wxPyClientData(clientData);
851 self->SetClientObject(n, data);
852 }
853 static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
854 PyObject * _resultobj;
855 wxControlWithItems * _arg0;
856 int _arg1;
857 PyObject * _arg2;
858 PyObject * _argo0 = 0;
859 PyObject * _obj2 = 0;
860 char *_kwnames[] = { "self","n","clientData", NULL };
861
862 self = self;
863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2))
864 return NULL;
865 if (_argo0) {
866 if (_argo0 == Py_None) { _arg0 = NULL; }
867 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
868 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p.");
869 return NULL;
870 }
871 }
872 {
873 _arg2 = _obj2;
874 }
875 {
876 PyThreadState* __tstate = wxPyBeginAllowThreads();
877 wxControlWithItems_SetClientData(_arg0,_arg1,_arg2);
878
879 wxPyEndAllowThreads(__tstate);
880 if (PyErr_Occurred()) return NULL;
881 } Py_INCREF(Py_None);
882 _resultobj = Py_None;
883 return _resultobj;
884 }
885
886 #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
887 static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
888 PyObject * _resultobj;
889 wxControlWithItems * _arg0;
890 wxArrayString * _arg1;
891 PyObject * _argo0 = 0;
892 PyObject * _obj1 = 0;
893 char *_kwnames[] = { "self","strings", NULL };
894
895 self = self;
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1))
897 return NULL;
898 if (_argo0) {
899 if (_argo0 == Py_None) { _arg0 = NULL; }
900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) {
901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p.");
902 return NULL;
903 }
904 }
905 {
906 if (! PySequence_Check(_obj1)) {
907 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
908 return NULL;
909 }
910 _arg1 = new wxArrayString;
911 int i, len=PySequence_Length(_obj1);
912 for (i=0; i<len; i++) {
913 PyObject* item = PySequence_GetItem(_obj1, i);
914 #if wxUSE_UNICODE
915 PyObject* str = PyObject_Unicode(item);
916 #else
917 PyObject* str = PyObject_Str(item);
918 #endif
919 _arg1->Add(Py2wxString(str));
920 Py_DECREF(item);
921 Py_DECREF(str);
922 }
923 }
924 {
925 PyThreadState* __tstate = wxPyBeginAllowThreads();
926 wxControlWithItems_AppendItems(_arg0,*_arg1);
927
928 wxPyEndAllowThreads(__tstate);
929 if (PyErr_Occurred()) return NULL;
930 } Py_INCREF(Py_None);
931 _resultobj = Py_None;
932 {
933 if (_obj1)
934 delete _arg1;
935 }
936 return _resultobj;
937 }
938
939 static void *SwigwxButtonTowxControl(void *ptr) {
940 wxButton *src;
941 wxControl *dest;
942 src = (wxButton *) ptr;
943 dest = (wxControl *) src;
944 return (void *) dest;
945 }
946
947 static void *SwigwxButtonTowxWindow(void *ptr) {
948 wxButton *src;
949 wxWindow *dest;
950 src = (wxButton *) ptr;
951 dest = (wxWindow *) src;
952 return (void *) dest;
953 }
954
955 static void *SwigwxButtonTowxEvtHandler(void *ptr) {
956 wxButton *src;
957 wxEvtHandler *dest;
958 src = (wxButton *) ptr;
959 dest = (wxEvtHandler *) src;
960 return (void *) dest;
961 }
962
963 static void *SwigwxButtonTowxObject(void *ptr) {
964 wxButton *src;
965 wxObject *dest;
966 src = (wxButton *) ptr;
967 dest = (wxObject *) src;
968 return (void *) dest;
969 }
970
971 #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
972 static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) {
973 PyObject * _resultobj;
974 wxButton * _result;
975 wxWindow * _arg0;
976 wxWindowID _arg1;
977 wxString * _arg2;
978 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
979 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
980 long _arg5 = (long ) 0;
981 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
982 wxString * _arg7 = (wxString *) &wxPyButtonNameStr;
983 PyObject * _argo0 = 0;
984 PyObject * _obj2 = 0;
985 wxPoint temp;
986 PyObject * _obj3 = 0;
987 wxSize temp0;
988 PyObject * _obj4 = 0;
989 PyObject * _argo6 = 0;
990 PyObject * _obj7 = 0;
991 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
992 char _ptemp[128];
993
994 self = self;
995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
996 return NULL;
997 if (_argo0) {
998 if (_argo0 == Py_None) { _arg0 = NULL; }
999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p.");
1001 return NULL;
1002 }
1003 }
1004 {
1005 _arg2 = wxString_in_helper(_obj2);
1006 if (_arg2 == NULL)
1007 return NULL;
1008 }
1009 if (_obj3)
1010 {
1011 _arg3 = &temp;
1012 if (! wxPoint_helper(_obj3, &_arg3))
1013 return NULL;
1014 }
1015 if (_obj4)
1016 {
1017 _arg4 = &temp0;
1018 if (! wxSize_helper(_obj4, &_arg4))
1019 return NULL;
1020 }
1021 if (_argo6) {
1022 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
1023 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p.");
1024 return NULL;
1025 }
1026 }
1027 if (_obj7)
1028 {
1029 _arg7 = wxString_in_helper(_obj7);
1030 if (_arg7 == NULL)
1031 return NULL;
1032 }
1033 {
1034 PyThreadState* __tstate = wxPyBeginAllowThreads();
1035 _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
1036
1037 wxPyEndAllowThreads(__tstate);
1038 if (PyErr_Occurred()) return NULL;
1039 } if (_result) {
1040 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
1041 _resultobj = Py_BuildValue("s",_ptemp);
1042 } else {
1043 Py_INCREF(Py_None);
1044 _resultobj = Py_None;
1045 }
1046 {
1047 if (_obj2)
1048 delete _arg2;
1049 }
1050 {
1051 if (_obj7)
1052 delete _arg7;
1053 }
1054 return _resultobj;
1055 }
1056
1057 #define new_wxPreButton() (new wxButton())
1058 static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxButton * _result;
1061 char *_kwnames[] = { NULL };
1062 char _ptemp[128];
1063
1064 self = self;
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames))
1066 return NULL;
1067 {
1068 PyThreadState* __tstate = wxPyBeginAllowThreads();
1069 _result = (wxButton *)new_wxPreButton();
1070
1071 wxPyEndAllowThreads(__tstate);
1072 if (PyErr_Occurred()) return NULL;
1073 } if (_result) {
1074 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
1075 _resultobj = Py_BuildValue("s",_ptemp);
1076 } else {
1077 Py_INCREF(Py_None);
1078 _resultobj = Py_None;
1079 }
1080 return _resultobj;
1081 }
1082
1083 #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1084 static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1085 PyObject * _resultobj;
1086 bool _result;
1087 wxButton * _arg0;
1088 wxWindow * _arg1;
1089 wxWindowID _arg2;
1090 wxString * _arg3;
1091 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1092 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1093 long _arg6 = (long ) 0;
1094 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1095 wxString * _arg8 = (wxString *) &wxPyButtonNameStr;
1096 PyObject * _argo0 = 0;
1097 PyObject * _argo1 = 0;
1098 PyObject * _obj3 = 0;
1099 wxPoint temp;
1100 PyObject * _obj4 = 0;
1101 wxSize temp0;
1102 PyObject * _obj5 = 0;
1103 PyObject * _argo7 = 0;
1104 PyObject * _obj8 = 0;
1105 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p.");
1114 return NULL;
1115 }
1116 }
1117 if (_argo1) {
1118 if (_argo1 == Py_None) { _arg1 = NULL; }
1119 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1120 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p.");
1121 return NULL;
1122 }
1123 }
1124 {
1125 _arg3 = wxString_in_helper(_obj3);
1126 if (_arg3 == NULL)
1127 return NULL;
1128 }
1129 if (_obj4)
1130 {
1131 _arg4 = &temp;
1132 if (! wxPoint_helper(_obj4, &_arg4))
1133 return NULL;
1134 }
1135 if (_obj5)
1136 {
1137 _arg5 = &temp0;
1138 if (! wxSize_helper(_obj5, &_arg5))
1139 return NULL;
1140 }
1141 if (_argo7) {
1142 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1143 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p.");
1144 return NULL;
1145 }
1146 }
1147 if (_obj8)
1148 {
1149 _arg8 = wxString_in_helper(_obj8);
1150 if (_arg8 == NULL)
1151 return NULL;
1152 }
1153 {
1154 PyThreadState* __tstate = wxPyBeginAllowThreads();
1155 _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
1156
1157 wxPyEndAllowThreads(__tstate);
1158 if (PyErr_Occurred()) return NULL;
1159 } _resultobj = Py_BuildValue("i",_result);
1160 {
1161 if (_obj3)
1162 delete _arg3;
1163 }
1164 {
1165 if (_obj8)
1166 delete _arg8;
1167 }
1168 return _resultobj;
1169 }
1170
1171 #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault())
1172 static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
1173 PyObject * _resultobj;
1174 wxButton * _arg0;
1175 PyObject * _argo0 = 0;
1176 char *_kwnames[] = { "self", NULL };
1177
1178 self = self;
1179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0))
1180 return NULL;
1181 if (_argo0) {
1182 if (_argo0 == Py_None) { _arg0 = NULL; }
1183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p.");
1185 return NULL;
1186 }
1187 }
1188 {
1189 PyThreadState* __tstate = wxPyBeginAllowThreads();
1190 wxButton_SetDefault(_arg0);
1191
1192 wxPyEndAllowThreads(__tstate);
1193 if (PyErr_Occurred()) return NULL;
1194 } Py_INCREF(Py_None);
1195 _resultobj = Py_None;
1196 return _resultobj;
1197 }
1198
1199 #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
1200 static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1201 PyObject * _resultobj;
1202 wxButton * _arg0;
1203 wxColour * _arg1;
1204 PyObject * _argo0 = 0;
1205 wxColour temp;
1206 PyObject * _obj1 = 0;
1207 char *_kwnames[] = { "self","colour", NULL };
1208
1209 self = self;
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
1211 return NULL;
1212 if (_argo0) {
1213 if (_argo0 == Py_None) { _arg0 = NULL; }
1214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p.");
1216 return NULL;
1217 }
1218 }
1219 {
1220 _arg1 = &temp;
1221 if (! wxColour_helper(_obj1, &_arg1))
1222 return NULL;
1223 }
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 wxButton_SetBackgroundColour(_arg0,*_arg1);
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) return NULL;
1230 } Py_INCREF(Py_None);
1231 _resultobj = Py_None;
1232 return _resultobj;
1233 }
1234
1235 #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
1236 static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1237 PyObject * _resultobj;
1238 wxButton * _arg0;
1239 wxColour * _arg1;
1240 PyObject * _argo0 = 0;
1241 wxColour temp;
1242 PyObject * _obj1 = 0;
1243 char *_kwnames[] = { "self","colour", NULL };
1244
1245 self = self;
1246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1))
1247 return NULL;
1248 if (_argo0) {
1249 if (_argo0 == Py_None) { _arg0 = NULL; }
1250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) {
1251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p.");
1252 return NULL;
1253 }
1254 }
1255 {
1256 _arg1 = &temp;
1257 if (! wxColour_helper(_obj1, &_arg1))
1258 return NULL;
1259 }
1260 {
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 wxButton_SetForegroundColour(_arg0,*_arg1);
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) return NULL;
1266 } Py_INCREF(Py_None);
1267 _resultobj = Py_None;
1268 return _resultobj;
1269 }
1270
1271 static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1272 PyObject * _resultobj;
1273 wxSize * _result;
1274 char *_kwnames[] = { NULL };
1275 char _ptemp[128];
1276
1277 self = self;
1278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames))
1279 return NULL;
1280 {
1281 PyThreadState* __tstate = wxPyBeginAllowThreads();
1282 _result = new wxSize (wxButton::GetDefaultSize());
1283
1284 wxPyEndAllowThreads(__tstate);
1285 if (PyErr_Occurred()) return NULL;
1286 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1287 _resultobj = Py_BuildValue("s",_ptemp);
1288 return _resultobj;
1289 }
1290
1291 static void *SwigwxBitmapButtonTowxButton(void *ptr) {
1292 wxBitmapButton *src;
1293 wxButton *dest;
1294 src = (wxBitmapButton *) ptr;
1295 dest = (wxButton *) src;
1296 return (void *) dest;
1297 }
1298
1299 static void *SwigwxBitmapButtonTowxControl(void *ptr) {
1300 wxBitmapButton *src;
1301 wxControl *dest;
1302 src = (wxBitmapButton *) ptr;
1303 dest = (wxControl *) src;
1304 return (void *) dest;
1305 }
1306
1307 static void *SwigwxBitmapButtonTowxWindow(void *ptr) {
1308 wxBitmapButton *src;
1309 wxWindow *dest;
1310 src = (wxBitmapButton *) ptr;
1311 dest = (wxWindow *) src;
1312 return (void *) dest;
1313 }
1314
1315 static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) {
1316 wxBitmapButton *src;
1317 wxEvtHandler *dest;
1318 src = (wxBitmapButton *) ptr;
1319 dest = (wxEvtHandler *) src;
1320 return (void *) dest;
1321 }
1322
1323 static void *SwigwxBitmapButtonTowxObject(void *ptr) {
1324 wxBitmapButton *src;
1325 wxObject *dest;
1326 src = (wxBitmapButton *) ptr;
1327 dest = (wxObject *) src;
1328 return (void *) dest;
1329 }
1330
1331 #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1332 static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1333 PyObject * _resultobj;
1334 wxBitmapButton * _result;
1335 wxWindow * _arg0;
1336 wxWindowID _arg1;
1337 wxBitmap * _arg2;
1338 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1339 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1340 long _arg5 = (long ) wxBU_AUTODRAW;
1341 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
1342 wxString * _arg7 = (wxString *) &wxPyButtonNameStr;
1343 PyObject * _argo0 = 0;
1344 PyObject * _argo2 = 0;
1345 wxPoint temp;
1346 PyObject * _obj3 = 0;
1347 wxSize temp0;
1348 PyObject * _obj4 = 0;
1349 PyObject * _argo6 = 0;
1350 PyObject * _obj7 = 0;
1351 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL };
1352 char _ptemp[128];
1353
1354 self = self;
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
1356 return NULL;
1357 if (_argo0) {
1358 if (_argo0 == Py_None) { _arg0 = NULL; }
1359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p.");
1361 return NULL;
1362 }
1363 }
1364 if (_argo2) {
1365 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1366 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p.");
1367 return NULL;
1368 }
1369 }
1370 if (_obj3)
1371 {
1372 _arg3 = &temp;
1373 if (! wxPoint_helper(_obj3, &_arg3))
1374 return NULL;
1375 }
1376 if (_obj4)
1377 {
1378 _arg4 = &temp0;
1379 if (! wxSize_helper(_obj4, &_arg4))
1380 return NULL;
1381 }
1382 if (_argo6) {
1383 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p.");
1385 return NULL;
1386 }
1387 }
1388 if (_obj7)
1389 {
1390 _arg7 = wxString_in_helper(_obj7);
1391 if (_arg7 == NULL)
1392 return NULL;
1393 }
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) return NULL;
1400 } if (_result) {
1401 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
1402 _resultobj = Py_BuildValue("s",_ptemp);
1403 } else {
1404 Py_INCREF(Py_None);
1405 _resultobj = Py_None;
1406 }
1407 {
1408 if (_obj7)
1409 delete _arg7;
1410 }
1411 return _resultobj;
1412 }
1413
1414 #define new_wxPreBitmapButton() (new wxBitmapButton())
1415 static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject * _resultobj;
1417 wxBitmapButton * _result;
1418 char *_kwnames[] = { NULL };
1419 char _ptemp[128];
1420
1421 self = self;
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames))
1423 return NULL;
1424 {
1425 PyThreadState* __tstate = wxPyBeginAllowThreads();
1426 _result = (wxBitmapButton *)new_wxPreBitmapButton();
1427
1428 wxPyEndAllowThreads(__tstate);
1429 if (PyErr_Occurred()) return NULL;
1430 } if (_result) {
1431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p");
1432 _resultobj = Py_BuildValue("s",_ptemp);
1433 } else {
1434 Py_INCREF(Py_None);
1435 _resultobj = Py_None;
1436 }
1437 return _resultobj;
1438 }
1439
1440 #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1441 static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1442 PyObject * _resultobj;
1443 bool _result;
1444 wxBitmapButton * _arg0;
1445 wxWindow * _arg1;
1446 wxWindowID _arg2;
1447 wxBitmap * _arg3;
1448 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1449 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1450 long _arg6 = (long ) wxBU_AUTODRAW;
1451 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
1452 wxString * _arg8 = (wxString *) &wxPyButtonNameStr;
1453 PyObject * _argo0 = 0;
1454 PyObject * _argo1 = 0;
1455 PyObject * _argo3 = 0;
1456 wxPoint temp;
1457 PyObject * _obj4 = 0;
1458 wxSize temp0;
1459 PyObject * _obj5 = 0;
1460 PyObject * _argo7 = 0;
1461 PyObject * _obj8 = 0;
1462 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL };
1463
1464 self = self;
1465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
1466 return NULL;
1467 if (_argo0) {
1468 if (_argo0 == Py_None) { _arg0 = NULL; }
1469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p.");
1471 return NULL;
1472 }
1473 }
1474 if (_argo1) {
1475 if (_argo1 == Py_None) { _arg1 = NULL; }
1476 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1477 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p.");
1478 return NULL;
1479 }
1480 }
1481 if (_argo3) {
1482 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1483 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p.");
1484 return NULL;
1485 }
1486 }
1487 if (_obj4)
1488 {
1489 _arg4 = &temp;
1490 if (! wxPoint_helper(_obj4, &_arg4))
1491 return NULL;
1492 }
1493 if (_obj5)
1494 {
1495 _arg5 = &temp0;
1496 if (! wxSize_helper(_obj5, &_arg5))
1497 return NULL;
1498 }
1499 if (_argo7) {
1500 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
1501 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p.");
1502 return NULL;
1503 }
1504 }
1505 if (_obj8)
1506 {
1507 _arg8 = wxString_in_helper(_obj8);
1508 if (_arg8 == NULL)
1509 return NULL;
1510 }
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) return NULL;
1517 } _resultobj = Py_BuildValue("i",_result);
1518 {
1519 if (_obj8)
1520 delete _arg8;
1521 }
1522 return _resultobj;
1523 }
1524
1525 #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel())
1526 static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1527 PyObject * _resultobj;
1528 wxBitmap * _result;
1529 wxBitmapButton * _arg0;
1530 PyObject * _argo0 = 0;
1531 char *_kwnames[] = { "self", NULL };
1532 char _ptemp[128];
1533
1534 self = self;
1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0))
1536 return NULL;
1537 if (_argo0) {
1538 if (_argo0 == Py_None) { _arg0 = NULL; }
1539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p.");
1541 return NULL;
1542 }
1543 }
1544 {
1545 PyThreadState* __tstate = wxPyBeginAllowThreads();
1546 _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0));
1547
1548 wxPyEndAllowThreads(__tstate);
1549 if (PyErr_Occurred()) return NULL;
1550 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1551 _resultobj = Py_BuildValue("s",_ptemp);
1552 return _resultobj;
1553 }
1554
1555 #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled())
1556 static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1557 PyObject * _resultobj;
1558 wxBitmap * _result;
1559 wxBitmapButton * _arg0;
1560 PyObject * _argo0 = 0;
1561 char *_kwnames[] = { "self", NULL };
1562 char _ptemp[128];
1563
1564 self = self;
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0))
1566 return NULL;
1567 if (_argo0) {
1568 if (_argo0 == Py_None) { _arg0 = NULL; }
1569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p.");
1571 return NULL;
1572 }
1573 }
1574 {
1575 PyThreadState* __tstate = wxPyBeginAllowThreads();
1576 _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0));
1577
1578 wxPyEndAllowThreads(__tstate);
1579 if (PyErr_Occurred()) return NULL;
1580 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1581 _resultobj = Py_BuildValue("s",_ptemp);
1582 return _resultobj;
1583 }
1584
1585 #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus())
1586 static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1587 PyObject * _resultobj;
1588 wxBitmap * _result;
1589 wxBitmapButton * _arg0;
1590 PyObject * _argo0 = 0;
1591 char *_kwnames[] = { "self", NULL };
1592 char _ptemp[128];
1593
1594 self = self;
1595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0))
1596 return NULL;
1597 if (_argo0) {
1598 if (_argo0 == Py_None) { _arg0 = NULL; }
1599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p.");
1601 return NULL;
1602 }
1603 }
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0));
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) return NULL;
1610 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1611 _resultobj = Py_BuildValue("s",_ptemp);
1612 return _resultobj;
1613 }
1614
1615 #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected())
1616 static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject * _resultobj;
1618 wxBitmap * _result;
1619 wxBitmapButton * _arg0;
1620 PyObject * _argo0 = 0;
1621 char *_kwnames[] = { "self", NULL };
1622 char _ptemp[128];
1623
1624 self = self;
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0))
1626 return NULL;
1627 if (_argo0) {
1628 if (_argo0 == Py_None) { _arg0 = NULL; }
1629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p.");
1631 return NULL;
1632 }
1633 }
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0));
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) return NULL;
1640 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1641 _resultobj = Py_BuildValue("s",_ptemp);
1642 return _resultobj;
1643 }
1644
1645 #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0))
1646 static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject * _resultobj;
1648 wxBitmapButton * _arg0;
1649 wxBitmap * _arg1;
1650 PyObject * _argo0 = 0;
1651 PyObject * _argo1 = 0;
1652 char *_kwnames[] = { "self","bitmap", NULL };
1653
1654 self = self;
1655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1))
1656 return NULL;
1657 if (_argo0) {
1658 if (_argo0 == Py_None) { _arg0 = NULL; }
1659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p.");
1661 return NULL;
1662 }
1663 }
1664 if (_argo1) {
1665 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1666 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p.");
1667 return NULL;
1668 }
1669 }
1670 {
1671 PyThreadState* __tstate = wxPyBeginAllowThreads();
1672 wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1);
1673
1674 wxPyEndAllowThreads(__tstate);
1675 if (PyErr_Occurred()) return NULL;
1676 } Py_INCREF(Py_None);
1677 _resultobj = Py_None;
1678 return _resultobj;
1679 }
1680
1681 #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0))
1682 static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
1683 PyObject * _resultobj;
1684 wxBitmapButton * _arg0;
1685 wxBitmap * _arg1;
1686 PyObject * _argo0 = 0;
1687 PyObject * _argo1 = 0;
1688 char *_kwnames[] = { "self","bitmap", NULL };
1689
1690 self = self;
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1))
1692 return NULL;
1693 if (_argo0) {
1694 if (_argo0 == Py_None) { _arg0 = NULL; }
1695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p.");
1697 return NULL;
1698 }
1699 }
1700 if (_argo1) {
1701 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1702 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p.");
1703 return NULL;
1704 }
1705 }
1706 {
1707 PyThreadState* __tstate = wxPyBeginAllowThreads();
1708 wxBitmapButton_SetBitmapFocus(_arg0,*_arg1);
1709
1710 wxPyEndAllowThreads(__tstate);
1711 if (PyErr_Occurred()) return NULL;
1712 } Py_INCREF(Py_None);
1713 _resultobj = Py_None;
1714 return _resultobj;
1715 }
1716
1717 #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0))
1718 static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject * _resultobj;
1720 wxBitmapButton * _arg0;
1721 wxBitmap * _arg1;
1722 PyObject * _argo0 = 0;
1723 PyObject * _argo1 = 0;
1724 char *_kwnames[] = { "self","bitmap", NULL };
1725
1726 self = self;
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1))
1728 return NULL;
1729 if (_argo0) {
1730 if (_argo0 == Py_None) { _arg0 = NULL; }
1731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p.");
1733 return NULL;
1734 }
1735 }
1736 if (_argo1) {
1737 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1738 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p.");
1739 return NULL;
1740 }
1741 }
1742 {
1743 PyThreadState* __tstate = wxPyBeginAllowThreads();
1744 wxBitmapButton_SetBitmapSelected(_arg0,*_arg1);
1745
1746 wxPyEndAllowThreads(__tstate);
1747 if (PyErr_Occurred()) return NULL;
1748 } Py_INCREF(Py_None);
1749 _resultobj = Py_None;
1750 return _resultobj;
1751 }
1752
1753 #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0))
1754 static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1755 PyObject * _resultobj;
1756 wxBitmapButton * _arg0;
1757 wxBitmap * _arg1;
1758 PyObject * _argo0 = 0;
1759 PyObject * _argo1 = 0;
1760 char *_kwnames[] = { "self","bitmap", NULL };
1761
1762 self = self;
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1))
1764 return NULL;
1765 if (_argo0) {
1766 if (_argo0 == Py_None) { _arg0 = NULL; }
1767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p.");
1769 return NULL;
1770 }
1771 }
1772 if (_argo1) {
1773 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1774 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p.");
1775 return NULL;
1776 }
1777 }
1778 {
1779 PyThreadState* __tstate = wxPyBeginAllowThreads();
1780 wxBitmapButton_SetBitmapLabel(_arg0,*_arg1);
1781
1782 wxPyEndAllowThreads(__tstate);
1783 if (PyErr_Occurred()) return NULL;
1784 } Py_INCREF(Py_None);
1785 _resultobj = Py_None;
1786 return _resultobj;
1787 }
1788
1789 #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
1790 static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1791 PyObject * _resultobj;
1792 wxBitmapButton * _arg0;
1793 int _arg1;
1794 int _arg2;
1795 PyObject * _argo0 = 0;
1796 char *_kwnames[] = { "self","x","y", NULL };
1797
1798 self = self;
1799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2))
1800 return NULL;
1801 if (_argo0) {
1802 if (_argo0 == Py_None) { _arg0 = NULL; }
1803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p.");
1805 return NULL;
1806 }
1807 }
1808 {
1809 PyThreadState* __tstate = wxPyBeginAllowThreads();
1810 wxBitmapButton_SetMargins(_arg0,_arg1,_arg2);
1811
1812 wxPyEndAllowThreads(__tstate);
1813 if (PyErr_Occurred()) return NULL;
1814 } Py_INCREF(Py_None);
1815 _resultobj = Py_None;
1816 return _resultobj;
1817 }
1818
1819 #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX())
1820 static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject * _resultobj;
1822 int _result;
1823 wxBitmapButton * _arg0;
1824 PyObject * _argo0 = 0;
1825 char *_kwnames[] = { "self", NULL };
1826
1827 self = self;
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0))
1829 return NULL;
1830 if (_argo0) {
1831 if (_argo0 == Py_None) { _arg0 = NULL; }
1832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p.");
1834 return NULL;
1835 }
1836 }
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 _result = (int )wxBitmapButton_GetMarginX(_arg0);
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) return NULL;
1843 } _resultobj = Py_BuildValue("i",_result);
1844 return _resultobj;
1845 }
1846
1847 #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY())
1848 static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject * _resultobj;
1850 int _result;
1851 wxBitmapButton * _arg0;
1852 PyObject * _argo0 = 0;
1853 char *_kwnames[] = { "self", NULL };
1854
1855 self = self;
1856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0))
1857 return NULL;
1858 if (_argo0) {
1859 if (_argo0 == Py_None) { _arg0 = NULL; }
1860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) {
1861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p.");
1862 return NULL;
1863 }
1864 }
1865 {
1866 PyThreadState* __tstate = wxPyBeginAllowThreads();
1867 _result = (int )wxBitmapButton_GetMarginY(_arg0);
1868
1869 wxPyEndAllowThreads(__tstate);
1870 if (PyErr_Occurred()) return NULL;
1871 } _resultobj = Py_BuildValue("i",_result);
1872 return _resultobj;
1873 }
1874
1875 static void *SwigwxCheckBoxTowxControl(void *ptr) {
1876 wxCheckBox *src;
1877 wxControl *dest;
1878 src = (wxCheckBox *) ptr;
1879 dest = (wxControl *) src;
1880 return (void *) dest;
1881 }
1882
1883 static void *SwigwxCheckBoxTowxWindow(void *ptr) {
1884 wxCheckBox *src;
1885 wxWindow *dest;
1886 src = (wxCheckBox *) ptr;
1887 dest = (wxWindow *) src;
1888 return (void *) dest;
1889 }
1890
1891 static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) {
1892 wxCheckBox *src;
1893 wxEvtHandler *dest;
1894 src = (wxCheckBox *) ptr;
1895 dest = (wxEvtHandler *) src;
1896 return (void *) dest;
1897 }
1898
1899 static void *SwigwxCheckBoxTowxObject(void *ptr) {
1900 wxCheckBox *src;
1901 wxObject *dest;
1902 src = (wxCheckBox *) ptr;
1903 dest = (wxObject *) src;
1904 return (void *) dest;
1905 }
1906
1907 #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1908 static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject * _resultobj;
1910 wxCheckBox * _result;
1911 wxWindow * _arg0;
1912 wxWindowID _arg1;
1913 wxString * _arg2;
1914 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1915 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1916 long _arg5 = (long ) 0;
1917 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
1918 wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr;
1919 PyObject * _argo0 = 0;
1920 PyObject * _obj2 = 0;
1921 wxPoint temp;
1922 PyObject * _obj3 = 0;
1923 wxSize temp0;
1924 PyObject * _obj4 = 0;
1925 PyObject * _argo6 = 0;
1926 PyObject * _obj7 = 0;
1927 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
1928 char _ptemp[128];
1929
1930 self = self;
1931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
1932 return NULL;
1933 if (_argo0) {
1934 if (_argo0 == Py_None) { _arg0 = NULL; }
1935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p.");
1937 return NULL;
1938 }
1939 }
1940 {
1941 _arg2 = wxString_in_helper(_obj2);
1942 if (_arg2 == NULL)
1943 return NULL;
1944 }
1945 if (_obj3)
1946 {
1947 _arg3 = &temp;
1948 if (! wxPoint_helper(_obj3, &_arg3))
1949 return NULL;
1950 }
1951 if (_obj4)
1952 {
1953 _arg4 = &temp0;
1954 if (! wxSize_helper(_obj4, &_arg4))
1955 return NULL;
1956 }
1957 if (_argo6) {
1958 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
1959 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p.");
1960 return NULL;
1961 }
1962 }
1963 if (_obj7)
1964 {
1965 _arg7 = wxString_in_helper(_obj7);
1966 if (_arg7 == NULL)
1967 return NULL;
1968 }
1969 {
1970 PyThreadState* __tstate = wxPyBeginAllowThreads();
1971 _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
1972
1973 wxPyEndAllowThreads(__tstate);
1974 if (PyErr_Occurred()) return NULL;
1975 } if (_result) {
1976 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
1977 _resultobj = Py_BuildValue("s",_ptemp);
1978 } else {
1979 Py_INCREF(Py_None);
1980 _resultobj = Py_None;
1981 }
1982 {
1983 if (_obj2)
1984 delete _arg2;
1985 }
1986 {
1987 if (_obj7)
1988 delete _arg7;
1989 }
1990 return _resultobj;
1991 }
1992
1993 #define new_wxPreCheckBox() (new wxCheckBox())
1994 static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxCheckBox * _result;
1997 char *_kwnames[] = { NULL };
1998 char _ptemp[128];
1999
2000 self = self;
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames))
2002 return NULL;
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 _result = (wxCheckBox *)new_wxPreCheckBox();
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) return NULL;
2009 } if (_result) {
2010 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p");
2011 _resultobj = Py_BuildValue("s",_ptemp);
2012 } else {
2013 Py_INCREF(Py_None);
2014 _resultobj = Py_None;
2015 }
2016 return _resultobj;
2017 }
2018
2019 #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
2020 static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject * _resultobj;
2022 bool _result;
2023 wxCheckBox * _arg0;
2024 wxWindow * _arg1;
2025 wxWindowID _arg2;
2026 wxString * _arg3;
2027 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2028 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2029 long _arg6 = (long ) 0;
2030 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
2031 wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr;
2032 PyObject * _argo0 = 0;
2033 PyObject * _argo1 = 0;
2034 PyObject * _obj3 = 0;
2035 wxPoint temp;
2036 PyObject * _obj4 = 0;
2037 wxSize temp0;
2038 PyObject * _obj5 = 0;
2039 PyObject * _argo7 = 0;
2040 PyObject * _obj8 = 0;
2041 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
2042
2043 self = self;
2044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
2045 return NULL;
2046 if (_argo0) {
2047 if (_argo0 == Py_None) { _arg0 = NULL; }
2048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p.");
2050 return NULL;
2051 }
2052 }
2053 if (_argo1) {
2054 if (_argo1 == Py_None) { _arg1 = NULL; }
2055 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2056 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p.");
2057 return NULL;
2058 }
2059 }
2060 {
2061 _arg3 = wxString_in_helper(_obj3);
2062 if (_arg3 == NULL)
2063 return NULL;
2064 }
2065 if (_obj4)
2066 {
2067 _arg4 = &temp;
2068 if (! wxPoint_helper(_obj4, &_arg4))
2069 return NULL;
2070 }
2071 if (_obj5)
2072 {
2073 _arg5 = &temp0;
2074 if (! wxSize_helper(_obj5, &_arg5))
2075 return NULL;
2076 }
2077 if (_argo7) {
2078 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
2079 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p.");
2080 return NULL;
2081 }
2082 }
2083 if (_obj8)
2084 {
2085 _arg8 = wxString_in_helper(_obj8);
2086 if (_arg8 == NULL)
2087 return NULL;
2088 }
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) return NULL;
2095 } _resultobj = Py_BuildValue("i",_result);
2096 {
2097 if (_obj3)
2098 delete _arg3;
2099 }
2100 {
2101 if (_obj8)
2102 delete _arg8;
2103 }
2104 return _resultobj;
2105 }
2106
2107 #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue())
2108 static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2109 PyObject * _resultobj;
2110 bool _result;
2111 wxCheckBox * _arg0;
2112 PyObject * _argo0 = 0;
2113 char *_kwnames[] = { "self", NULL };
2114
2115 self = self;
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0))
2117 return NULL;
2118 if (_argo0) {
2119 if (_argo0 == Py_None) { _arg0 = NULL; }
2120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p.");
2122 return NULL;
2123 }
2124 }
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 _result = (bool )wxCheckBox_GetValue(_arg0);
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) return NULL;
2131 } _resultobj = Py_BuildValue("i",_result);
2132 return _resultobj;
2133 }
2134
2135 #define wxCheckBox_IsChecked(_swigobj) (_swigobj->IsChecked())
2136 static PyObject *_wrap_wxCheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
2137 PyObject * _resultobj;
2138 bool _result;
2139 wxCheckBox * _arg0;
2140 PyObject * _argo0 = 0;
2141 char *_kwnames[] = { "self", NULL };
2142
2143 self = self;
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_IsChecked",_kwnames,&_argo0))
2145 return NULL;
2146 if (_argo0) {
2147 if (_argo0 == Py_None) { _arg0 = NULL; }
2148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_IsChecked. Expected _wxCheckBox_p.");
2150 return NULL;
2151 }
2152 }
2153 {
2154 PyThreadState* __tstate = wxPyBeginAllowThreads();
2155 _result = (bool )wxCheckBox_IsChecked(_arg0);
2156
2157 wxPyEndAllowThreads(__tstate);
2158 if (PyErr_Occurred()) return NULL;
2159 } _resultobj = Py_BuildValue("i",_result);
2160 return _resultobj;
2161 }
2162
2163 #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
2164 static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject * _resultobj;
2166 wxCheckBox * _arg0;
2167 bool _arg1;
2168 PyObject * _argo0 = 0;
2169 int tempbool1;
2170 char *_kwnames[] = { "self","state", NULL };
2171
2172 self = self;
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1))
2174 return NULL;
2175 if (_argo0) {
2176 if (_argo0 == Py_None) { _arg0 = NULL; }
2177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p.");
2179 return NULL;
2180 }
2181 }
2182 _arg1 = (bool ) tempbool1;
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 wxCheckBox_SetValue(_arg0,_arg1);
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) return NULL;
2189 } Py_INCREF(Py_None);
2190 _resultobj = Py_None;
2191 return _resultobj;
2192 }
2193
2194 #define wxCheckBox_Get3StateValue(_swigobj) (_swigobj->Get3StateValue())
2195 static PyObject *_wrap_wxCheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject * _resultobj;
2197 wxCheckBoxState _result;
2198 wxCheckBox * _arg0;
2199 PyObject * _argo0 = 0;
2200 char *_kwnames[] = { "self", NULL };
2201
2202 self = self;
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_Get3StateValue",_kwnames,&_argo0))
2204 return NULL;
2205 if (_argo0) {
2206 if (_argo0 == Py_None) { _arg0 = NULL; }
2207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Get3StateValue. Expected _wxCheckBox_p.");
2209 return NULL;
2210 }
2211 }
2212 {
2213 PyThreadState* __tstate = wxPyBeginAllowThreads();
2214 _result = (wxCheckBoxState )wxCheckBox_Get3StateValue(_arg0);
2215
2216 wxPyEndAllowThreads(__tstate);
2217 if (PyErr_Occurred()) return NULL;
2218 } _resultobj = Py_BuildValue("i",_result);
2219 return _resultobj;
2220 }
2221
2222 #define wxCheckBox_Set3StateValue(_swigobj,_swigarg0) (_swigobj->Set3StateValue(_swigarg0))
2223 static PyObject *_wrap_wxCheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject * _resultobj;
2225 wxCheckBox * _arg0;
2226 wxCheckBoxState _arg1;
2227 PyObject * _argo0 = 0;
2228 char *_kwnames[] = { "self","state", NULL };
2229
2230 self = self;
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_Set3StateValue",_kwnames,&_argo0,&_arg1))
2232 return NULL;
2233 if (_argo0) {
2234 if (_argo0 == Py_None) { _arg0 = NULL; }
2235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Set3StateValue. Expected _wxCheckBox_p.");
2237 return NULL;
2238 }
2239 }
2240 {
2241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2242 wxCheckBox_Set3StateValue(_arg0,_arg1);
2243
2244 wxPyEndAllowThreads(__tstate);
2245 if (PyErr_Occurred()) return NULL;
2246 } Py_INCREF(Py_None);
2247 _resultobj = Py_None;
2248 return _resultobj;
2249 }
2250
2251 #define wxCheckBox_Is3State(_swigobj) (_swigobj->Is3State())
2252 static PyObject *_wrap_wxCheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) {
2253 PyObject * _resultobj;
2254 bool _result;
2255 wxCheckBox * _arg0;
2256 PyObject * _argo0 = 0;
2257 char *_kwnames[] = { "self", NULL };
2258
2259 self = self;
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_Is3State",_kwnames,&_argo0))
2261 return NULL;
2262 if (_argo0) {
2263 if (_argo0 == Py_None) { _arg0 = NULL; }
2264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Is3State. Expected _wxCheckBox_p.");
2266 return NULL;
2267 }
2268 }
2269 {
2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
2271 _result = (bool )wxCheckBox_Is3State(_arg0);
2272
2273 wxPyEndAllowThreads(__tstate);
2274 if (PyErr_Occurred()) return NULL;
2275 } _resultobj = Py_BuildValue("i",_result);
2276 return _resultobj;
2277 }
2278
2279 #define wxCheckBox_Is3rdStateAllowedForUser(_swigobj) (_swigobj->Is3rdStateAllowedForUser())
2280 static PyObject *_wrap_wxCheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2281 PyObject * _resultobj;
2282 bool _result;
2283 wxCheckBox * _arg0;
2284 PyObject * _argo0 = 0;
2285 char *_kwnames[] = { "self", NULL };
2286
2287 self = self;
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_Is3rdStateAllowedForUser",_kwnames,&_argo0))
2289 return NULL;
2290 if (_argo0) {
2291 if (_argo0 == Py_None) { _arg0 = NULL; }
2292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) {
2293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Is3rdStateAllowedForUser. Expected _wxCheckBox_p.");
2294 return NULL;
2295 }
2296 }
2297 {
2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
2299 _result = (bool )wxCheckBox_Is3rdStateAllowedForUser(_arg0);
2300
2301 wxPyEndAllowThreads(__tstate);
2302 if (PyErr_Occurred()) return NULL;
2303 } _resultobj = Py_BuildValue("i",_result);
2304 return _resultobj;
2305 }
2306
2307 static void *SwigwxChoiceTowxControlWithItems(void *ptr) {
2308 wxChoice *src;
2309 wxControlWithItems *dest;
2310 src = (wxChoice *) ptr;
2311 dest = (wxControlWithItems *) src;
2312 return (void *) dest;
2313 }
2314
2315 static void *SwigwxChoiceTowxControl(void *ptr) {
2316 wxChoice *src;
2317 wxControl *dest;
2318 src = (wxChoice *) ptr;
2319 dest = (wxControl *) src;
2320 return (void *) dest;
2321 }
2322
2323 static void *SwigwxChoiceTowxWindow(void *ptr) {
2324 wxChoice *src;
2325 wxWindow *dest;
2326 src = (wxChoice *) ptr;
2327 dest = (wxWindow *) src;
2328 return (void *) dest;
2329 }
2330
2331 static void *SwigwxChoiceTowxEvtHandler(void *ptr) {
2332 wxChoice *src;
2333 wxEvtHandler *dest;
2334 src = (wxChoice *) ptr;
2335 dest = (wxEvtHandler *) src;
2336 return (void *) dest;
2337 }
2338
2339 static void *SwigwxChoiceTowxObject(void *ptr) {
2340 wxChoice *src;
2341 wxObject *dest;
2342 src = (wxChoice *) ptr;
2343 dest = (wxObject *) src;
2344 return (void *) dest;
2345 }
2346
2347 #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
2348 static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2349 PyObject * _resultobj;
2350 wxChoice * _result;
2351 wxWindow * _arg0;
2352 wxWindowID _arg1;
2353 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2354 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
2355 int _arg4 = (int ) 0;
2356 wxString * _arg5 = (wxString *) NULL;
2357 long _arg6 = (long ) 0;
2358 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
2359 wxString * _arg8 = (wxString *) &wxPyChoiceNameStr;
2360 PyObject * _argo0 = 0;
2361 wxPoint temp;
2362 PyObject * _obj2 = 0;
2363 wxSize temp0;
2364 PyObject * _obj3 = 0;
2365 PyObject * _obj5 = 0;
2366 PyObject * _argo7 = 0;
2367 PyObject * _obj8 = 0;
2368 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
2369 char _ptemp[128];
2370
2371 self = self;
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8))
2373 return NULL;
2374 if (_argo0) {
2375 if (_argo0 == Py_None) { _arg0 = NULL; }
2376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p.");
2378 return NULL;
2379 }
2380 }
2381 if (_obj2)
2382 {
2383 _arg2 = &temp;
2384 if (! wxPoint_helper(_obj2, &_arg2))
2385 return NULL;
2386 }
2387 if (_obj3)
2388 {
2389 _arg3 = &temp0;
2390 if (! wxSize_helper(_obj3, &_arg3))
2391 return NULL;
2392 }
2393 if (_obj5)
2394 {
2395 _arg5 = wxString_LIST_helper(_obj5);
2396 if (_arg5 == NULL) {
2397 return NULL;
2398 }
2399 }
2400 if (_argo7) {
2401 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
2402 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p.");
2403 return NULL;
2404 }
2405 }
2406 if (_obj8)
2407 {
2408 _arg8 = wxString_in_helper(_obj8);
2409 if (_arg8 == NULL)
2410 return NULL;
2411 }
2412 {
2413 if (_obj5) {
2414 _arg4 = PyList_Size(_obj5);
2415 }
2416 else {
2417 _arg4 = 0;
2418 }
2419 }
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
2422 _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8);
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) return NULL;
2426 } if (_result) {
2427 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
2428 _resultobj = Py_BuildValue("s",_ptemp);
2429 } else {
2430 Py_INCREF(Py_None);
2431 _resultobj = Py_None;
2432 }
2433 {
2434 delete [] _arg5;
2435 }
2436 {
2437 if (_obj8)
2438 delete _arg8;
2439 }
2440 return _resultobj;
2441 }
2442
2443 #define new_wxPreChoice() (new wxChoice())
2444 static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2445 PyObject * _resultobj;
2446 wxChoice * _result;
2447 char *_kwnames[] = { NULL };
2448 char _ptemp[128];
2449
2450 self = self;
2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames))
2452 return NULL;
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 _result = (wxChoice *)new_wxPreChoice();
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) return NULL;
2459 } if (_result) {
2460 SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p");
2461 _resultobj = Py_BuildValue("s",_ptemp);
2462 } else {
2463 Py_INCREF(Py_None);
2464 _resultobj = Py_None;
2465 }
2466 return _resultobj;
2467 }
2468
2469 #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
2470 static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2471 PyObject * _resultobj;
2472 bool _result;
2473 wxChoice * _arg0;
2474 wxWindow * _arg1;
2475 wxWindowID _arg2;
2476 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2477 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2478 int _arg5 = (int ) 0;
2479 wxString * _arg6 = (wxString *) NULL;
2480 long _arg7 = (long ) 0;
2481 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2482 wxString * _arg9 = (wxString *) &wxPyChoiceNameStr;
2483 PyObject * _argo0 = 0;
2484 PyObject * _argo1 = 0;
2485 wxPoint temp;
2486 PyObject * _obj3 = 0;
2487 wxSize temp0;
2488 PyObject * _obj4 = 0;
2489 PyObject * _obj6 = 0;
2490 PyObject * _argo8 = 0;
2491 PyObject * _obj9 = 0;
2492 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
2493
2494 self = self;
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9))
2496 return NULL;
2497 if (_argo0) {
2498 if (_argo0 == Py_None) { _arg0 = NULL; }
2499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p.");
2501 return NULL;
2502 }
2503 }
2504 if (_argo1) {
2505 if (_argo1 == Py_None) { _arg1 = NULL; }
2506 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2507 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p.");
2508 return NULL;
2509 }
2510 }
2511 if (_obj3)
2512 {
2513 _arg3 = &temp;
2514 if (! wxPoint_helper(_obj3, &_arg3))
2515 return NULL;
2516 }
2517 if (_obj4)
2518 {
2519 _arg4 = &temp0;
2520 if (! wxSize_helper(_obj4, &_arg4))
2521 return NULL;
2522 }
2523 if (_obj6)
2524 {
2525 _arg6 = wxString_LIST_helper(_obj6);
2526 if (_arg6 == NULL) {
2527 return NULL;
2528 }
2529 }
2530 if (_argo8) {
2531 if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
2532 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p.");
2533 return NULL;
2534 }
2535 }
2536 if (_obj9)
2537 {
2538 _arg9 = wxString_in_helper(_obj9);
2539 if (_arg9 == NULL)
2540 return NULL;
2541 }
2542 {
2543 if (_obj6) {
2544 _arg5 = PyList_Size(_obj6);
2545 }
2546 else {
2547 _arg5 = 0;
2548 }
2549 }
2550 {
2551 PyThreadState* __tstate = wxPyBeginAllowThreads();
2552 _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9);
2553
2554 wxPyEndAllowThreads(__tstate);
2555 if (PyErr_Occurred()) return NULL;
2556 } _resultobj = Py_BuildValue("i",_result);
2557 {
2558 delete [] _arg6;
2559 }
2560 {
2561 if (_obj9)
2562 delete _arg9;
2563 }
2564 return _resultobj;
2565 }
2566
2567 #define wxChoice_Clear(_swigobj) (_swigobj->Clear())
2568 static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
2569 PyObject * _resultobj;
2570 wxChoice * _arg0;
2571 PyObject * _argo0 = 0;
2572 char *_kwnames[] = { "self", NULL };
2573
2574 self = self;
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0))
2576 return NULL;
2577 if (_argo0) {
2578 if (_argo0 == Py_None) { _arg0 = NULL; }
2579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p.");
2581 return NULL;
2582 }
2583 }
2584 {
2585 PyThreadState* __tstate = wxPyBeginAllowThreads();
2586 wxChoice_Clear(_arg0);
2587
2588 wxPyEndAllowThreads(__tstate);
2589 if (PyErr_Occurred()) return NULL;
2590 } Py_INCREF(Py_None);
2591 _resultobj = Py_None;
2592 return _resultobj;
2593 }
2594
2595 #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns())
2596 static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2597 PyObject * _resultobj;
2598 int _result;
2599 wxChoice * _arg0;
2600 PyObject * _argo0 = 0;
2601 char *_kwnames[] = { "self", NULL };
2602
2603 self = self;
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0))
2605 return NULL;
2606 if (_argo0) {
2607 if (_argo0 == Py_None) { _arg0 = NULL; }
2608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p.");
2610 return NULL;
2611 }
2612 }
2613 {
2614 PyThreadState* __tstate = wxPyBeginAllowThreads();
2615 _result = (int )wxChoice_GetColumns(_arg0);
2616
2617 wxPyEndAllowThreads(__tstate);
2618 if (PyErr_Occurred()) return NULL;
2619 } _resultobj = Py_BuildValue("i",_result);
2620 return _resultobj;
2621 }
2622
2623 #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0))
2624 static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
2625 PyObject * _resultobj;
2626 wxChoice * _arg0;
2627 int _arg1 = (int ) 1;
2628 PyObject * _argo0 = 0;
2629 char *_kwnames[] = { "self","n", NULL };
2630
2631 self = self;
2632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1))
2633 return NULL;
2634 if (_argo0) {
2635 if (_argo0 == Py_None) { _arg0 = NULL; }
2636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p.");
2638 return NULL;
2639 }
2640 }
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 wxChoice_SetColumns(_arg0,_arg1);
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) return NULL;
2647 } Py_INCREF(Py_None);
2648 _resultobj = Py_None;
2649 return _resultobj;
2650 }
2651
2652 #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
2653 static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2654 PyObject * _resultobj;
2655 wxChoice * _arg0;
2656 int _arg1;
2657 PyObject * _argo0 = 0;
2658 char *_kwnames[] = { "self","n", NULL };
2659
2660 self = self;
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1))
2662 return NULL;
2663 if (_argo0) {
2664 if (_argo0 == Py_None) { _arg0 = NULL; }
2665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p.");
2667 return NULL;
2668 }
2669 }
2670 {
2671 PyThreadState* __tstate = wxPyBeginAllowThreads();
2672 wxChoice_SetSelection(_arg0,_arg1);
2673
2674 wxPyEndAllowThreads(__tstate);
2675 if (PyErr_Occurred()) return NULL;
2676 } Py_INCREF(Py_None);
2677 _resultobj = Py_None;
2678 return _resultobj;
2679 }
2680
2681 #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
2682 static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2683 PyObject * _resultobj;
2684 wxChoice * _arg0;
2685 wxString * _arg1;
2686 PyObject * _argo0 = 0;
2687 PyObject * _obj1 = 0;
2688 char *_kwnames[] = { "self","string", NULL };
2689
2690 self = self;
2691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1))
2692 return NULL;
2693 if (_argo0) {
2694 if (_argo0 == Py_None) { _arg0 = NULL; }
2695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p.");
2697 return NULL;
2698 }
2699 }
2700 {
2701 _arg1 = wxString_in_helper(_obj1);
2702 if (_arg1 == NULL)
2703 return NULL;
2704 }
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 wxChoice_SetStringSelection(_arg0,*_arg1);
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) return NULL;
2711 } Py_INCREF(Py_None);
2712 _resultobj = Py_None;
2713 {
2714 if (_obj1)
2715 delete _arg1;
2716 }
2717 return _resultobj;
2718 }
2719
2720 #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
2721 static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject * _resultobj;
2723 wxChoice * _arg0;
2724 int _arg1;
2725 wxString * _arg2;
2726 PyObject * _argo0 = 0;
2727 PyObject * _obj2 = 0;
2728 char *_kwnames[] = { "self","n","s", NULL };
2729
2730 self = self;
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
2732 return NULL;
2733 if (_argo0) {
2734 if (_argo0 == Py_None) { _arg0 = NULL; }
2735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) {
2736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p.");
2737 return NULL;
2738 }
2739 }
2740 {
2741 _arg2 = wxString_in_helper(_obj2);
2742 if (_arg2 == NULL)
2743 return NULL;
2744 }
2745 {
2746 PyThreadState* __tstate = wxPyBeginAllowThreads();
2747 wxChoice_SetString(_arg0,_arg1,*_arg2);
2748
2749 wxPyEndAllowThreads(__tstate);
2750 if (PyErr_Occurred()) return NULL;
2751 } Py_INCREF(Py_None);
2752 _resultobj = Py_None;
2753 {
2754 if (_obj2)
2755 delete _arg2;
2756 }
2757 return _resultobj;
2758 }
2759
2760 static void *SwigwxComboBoxTowxControl(void *ptr) {
2761 wxComboBox *src;
2762 wxControl *dest;
2763 src = (wxComboBox *) ptr;
2764 dest = (wxControl *) src;
2765 return (void *) dest;
2766 }
2767
2768 static void *SwigwxComboBoxTowxWindow(void *ptr) {
2769 wxComboBox *src;
2770 wxWindow *dest;
2771 src = (wxComboBox *) ptr;
2772 dest = (wxWindow *) src;
2773 return (void *) dest;
2774 }
2775
2776 static void *SwigwxComboBoxTowxEvtHandler(void *ptr) {
2777 wxComboBox *src;
2778 wxEvtHandler *dest;
2779 src = (wxComboBox *) ptr;
2780 dest = (wxEvtHandler *) src;
2781 return (void *) dest;
2782 }
2783
2784 static void *SwigwxComboBoxTowxObject(void *ptr) {
2785 wxComboBox *src;
2786 wxObject *dest;
2787 src = (wxComboBox *) ptr;
2788 dest = (wxObject *) src;
2789 return (void *) dest;
2790 }
2791
2792 #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))
2793 static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject * _resultobj;
2795 wxComboBox * _result;
2796 wxWindow * _arg0;
2797 wxWindowID _arg1;
2798 wxString * _arg2 = (wxString *) &wxPyEmptyString;
2799 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
2800 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
2801 int _arg5 = (int ) 0;
2802 wxString * _arg6 = (wxString *) NULL;
2803 long _arg7 = (long ) 0;
2804 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
2805 wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr;
2806 PyObject * _argo0 = 0;
2807 PyObject * _obj2 = 0;
2808 wxPoint temp;
2809 PyObject * _obj3 = 0;
2810 wxSize temp0;
2811 PyObject * _obj4 = 0;
2812 PyObject * _obj6 = 0;
2813 PyObject * _argo8 = 0;
2814 PyObject * _obj9 = 0;
2815 char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL };
2816 char _ptemp[128];
2817
2818 self = self;
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9))
2820 return NULL;
2821 if (_argo0) {
2822 if (_argo0 == Py_None) { _arg0 = NULL; }
2823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p.");
2825 return NULL;
2826 }
2827 }
2828 if (_obj2)
2829 {
2830 _arg2 = wxString_in_helper(_obj2);
2831 if (_arg2 == NULL)
2832 return NULL;
2833 }
2834 if (_obj3)
2835 {
2836 _arg3 = &temp;
2837 if (! wxPoint_helper(_obj3, &_arg3))
2838 return NULL;
2839 }
2840 if (_obj4)
2841 {
2842 _arg4 = &temp0;
2843 if (! wxSize_helper(_obj4, &_arg4))
2844 return NULL;
2845 }
2846 if (_obj6)
2847 {
2848 _arg6 = wxString_LIST_helper(_obj6);
2849 if (_arg6 == NULL) {
2850 return NULL;
2851 }
2852 }
2853 if (_argo8) {
2854 if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
2855 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p.");
2856 return NULL;
2857 }
2858 }
2859 if (_obj9)
2860 {
2861 _arg9 = wxString_in_helper(_obj9);
2862 if (_arg9 == NULL)
2863 return NULL;
2864 }
2865 {
2866 if (_obj6) {
2867 _arg5 = PyList_Size(_obj6);
2868 }
2869 else {
2870 _arg5 = 0;
2871 }
2872 }
2873 {
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9);
2876
2877 wxPyEndAllowThreads(__tstate);
2878 if (PyErr_Occurred()) return NULL;
2879 } if (_result) {
2880 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2881 _resultobj = Py_BuildValue("s",_ptemp);
2882 } else {
2883 Py_INCREF(Py_None);
2884 _resultobj = Py_None;
2885 }
2886 {
2887 if (_obj2)
2888 delete _arg2;
2889 }
2890 {
2891 delete [] _arg6;
2892 }
2893 {
2894 if (_obj9)
2895 delete _arg9;
2896 }
2897 return _resultobj;
2898 }
2899
2900 #define new_wxPreComboBox() (new wxComboBox())
2901 static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
2902 PyObject * _resultobj;
2903 wxComboBox * _result;
2904 char *_kwnames[] = { NULL };
2905 char _ptemp[128];
2906
2907 self = self;
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames))
2909 return NULL;
2910 {
2911 PyThreadState* __tstate = wxPyBeginAllowThreads();
2912 _result = (wxComboBox *)new_wxPreComboBox();
2913
2914 wxPyEndAllowThreads(__tstate);
2915 if (PyErr_Occurred()) return NULL;
2916 } if (_result) {
2917 SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p");
2918 _resultobj = Py_BuildValue("s",_ptemp);
2919 } else {
2920 Py_INCREF(Py_None);
2921 _resultobj = Py_None;
2922 }
2923 return _resultobj;
2924 }
2925
2926 #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))
2927 static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2928 PyObject * _resultobj;
2929 bool _result;
2930 wxComboBox * _arg0;
2931 wxWindow * _arg1;
2932 wxWindowID _arg2;
2933 wxString * _arg3 = (wxString *) &wxPyEmptyString;
2934 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2935 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2936 int _arg6 = (int ) 0;
2937 wxString * _arg7 = (wxString *) NULL;
2938 long _arg8 = (long ) 0;
2939 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
2940 wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr;
2941 PyObject * _argo0 = 0;
2942 PyObject * _argo1 = 0;
2943 PyObject * _obj3 = 0;
2944 wxPoint temp;
2945 PyObject * _obj4 = 0;
2946 wxSize temp0;
2947 PyObject * _obj5 = 0;
2948 PyObject * _obj7 = 0;
2949 PyObject * _argo9 = 0;
2950 PyObject * _obj10 = 0;
2951 char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL };
2952
2953 self = self;
2954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10))
2955 return NULL;
2956 if (_argo0) {
2957 if (_argo0 == Py_None) { _arg0 = NULL; }
2958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
2959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p.");
2960 return NULL;
2961 }
2962 }
2963 if (_argo1) {
2964 if (_argo1 == Py_None) { _arg1 = NULL; }
2965 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2966 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p.");
2967 return NULL;
2968 }
2969 }
2970 if (_obj3)
2971 {
2972 _arg3 = wxString_in_helper(_obj3);
2973 if (_arg3 == NULL)
2974 return NULL;
2975 }
2976 if (_obj4)
2977 {
2978 _arg4 = &temp;
2979 if (! wxPoint_helper(_obj4, &_arg4))
2980 return NULL;
2981 }
2982 if (_obj5)
2983 {
2984 _arg5 = &temp0;
2985 if (! wxSize_helper(_obj5, &_arg5))
2986 return NULL;
2987 }
2988 if (_obj7)
2989 {
2990 _arg7 = wxString_LIST_helper(_obj7);
2991 if (_arg7 == NULL) {
2992 return NULL;
2993 }
2994 }
2995 if (_argo9) {
2996 if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
2997 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p.");
2998 return NULL;
2999 }
3000 }
3001 if (_obj10)
3002 {
3003 _arg10 = wxString_in_helper(_obj10);
3004 if (_arg10 == NULL)
3005 return NULL;
3006 }
3007 {
3008 if (_obj7) {
3009 _arg6 = PyList_Size(_obj7);
3010 }
3011 else {
3012 _arg6 = 0;
3013 }
3014 }
3015 {
3016 PyThreadState* __tstate = wxPyBeginAllowThreads();
3017 _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10);
3018
3019 wxPyEndAllowThreads(__tstate);
3020 if (PyErr_Occurred()) return NULL;
3021 } _resultobj = Py_BuildValue("i",_result);
3022 {
3023 if (_obj3)
3024 delete _arg3;
3025 }
3026 {
3027 delete [] _arg7;
3028 }
3029 {
3030 if (_obj10)
3031 delete _arg10;
3032 }
3033 return _resultobj;
3034 }
3035
3036 #define wxComboBox_Copy(_swigobj) (_swigobj->Copy())
3037 static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
3038 PyObject * _resultobj;
3039 wxComboBox * _arg0;
3040 PyObject * _argo0 = 0;
3041 char *_kwnames[] = { "self", NULL };
3042
3043 self = self;
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0))
3045 return NULL;
3046 if (_argo0) {
3047 if (_argo0 == Py_None) { _arg0 = NULL; }
3048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p.");
3050 return NULL;
3051 }
3052 }
3053 {
3054 PyThreadState* __tstate = wxPyBeginAllowThreads();
3055 wxComboBox_Copy(_arg0);
3056
3057 wxPyEndAllowThreads(__tstate);
3058 if (PyErr_Occurred()) return NULL;
3059 } Py_INCREF(Py_None);
3060 _resultobj = Py_None;
3061 return _resultobj;
3062 }
3063
3064 #define wxComboBox_Cut(_swigobj) (_swigobj->Cut())
3065 static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
3066 PyObject * _resultobj;
3067 wxComboBox * _arg0;
3068 PyObject * _argo0 = 0;
3069 char *_kwnames[] = { "self", NULL };
3070
3071 self = self;
3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0))
3073 return NULL;
3074 if (_argo0) {
3075 if (_argo0 == Py_None) { _arg0 = NULL; }
3076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p.");
3078 return NULL;
3079 }
3080 }
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 wxComboBox_Cut(_arg0);
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) return NULL;
3087 } Py_INCREF(Py_None);
3088 _resultobj = Py_None;
3089 return _resultobj;
3090 }
3091
3092 #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
3093 static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3094 PyObject * _resultobj;
3095 long _result;
3096 wxComboBox * _arg0;
3097 PyObject * _argo0 = 0;
3098 char *_kwnames[] = { "self", NULL };
3099
3100 self = self;
3101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0))
3102 return NULL;
3103 if (_argo0) {
3104 if (_argo0 == Py_None) { _arg0 = NULL; }
3105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p.");
3107 return NULL;
3108 }
3109 }
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 _result = (long )wxComboBox_GetInsertionPoint(_arg0);
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) return NULL;
3116 } _resultobj = Py_BuildValue("l",_result);
3117 return _resultobj;
3118 }
3119
3120 #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
3121 static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3122 PyObject * _resultobj;
3123 long _result;
3124 wxComboBox * _arg0;
3125 PyObject * _argo0 = 0;
3126 char *_kwnames[] = { "self", NULL };
3127
3128 self = self;
3129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0))
3130 return NULL;
3131 if (_argo0) {
3132 if (_argo0 == Py_None) { _arg0 = NULL; }
3133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p.");
3135 return NULL;
3136 }
3137 }
3138 {
3139 PyThreadState* __tstate = wxPyBeginAllowThreads();
3140 _result = (long )wxComboBox_GetLastPosition(_arg0);
3141
3142 wxPyEndAllowThreads(__tstate);
3143 if (PyErr_Occurred()) return NULL;
3144 } _resultobj = Py_BuildValue("l",_result);
3145 return _resultobj;
3146 }
3147
3148 #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue())
3149 static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3150 PyObject * _resultobj;
3151 wxString * _result;
3152 wxComboBox * _arg0;
3153 PyObject * _argo0 = 0;
3154 char *_kwnames[] = { "self", NULL };
3155
3156 self = self;
3157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0))
3158 return NULL;
3159 if (_argo0) {
3160 if (_argo0 == Py_None) { _arg0 = NULL; }
3161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p.");
3163 return NULL;
3164 }
3165 }
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 _result = new wxString (wxComboBox_GetValue(_arg0));
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) return NULL;
3172 }{
3173 #if wxUSE_UNICODE
3174 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3175 #else
3176 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3177 #endif
3178 }
3179 {
3180 delete _result;
3181 }
3182 return _resultobj;
3183 }
3184
3185 #define wxComboBox_Paste(_swigobj) (_swigobj->Paste())
3186 static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject * _resultobj;
3188 wxComboBox * _arg0;
3189 PyObject * _argo0 = 0;
3190 char *_kwnames[] = { "self", NULL };
3191
3192 self = self;
3193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0))
3194 return NULL;
3195 if (_argo0) {
3196 if (_argo0 == Py_None) { _arg0 = NULL; }
3197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p.");
3199 return NULL;
3200 }
3201 }
3202 {
3203 PyThreadState* __tstate = wxPyBeginAllowThreads();
3204 wxComboBox_Paste(_arg0);
3205
3206 wxPyEndAllowThreads(__tstate);
3207 if (PyErr_Occurred()) return NULL;
3208 } Py_INCREF(Py_None);
3209 _resultobj = Py_None;
3210 return _resultobj;
3211 }
3212
3213 #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
3214 static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
3215 PyObject * _resultobj;
3216 wxComboBox * _arg0;
3217 long _arg1;
3218 long _arg2;
3219 wxString * _arg3;
3220 PyObject * _argo0 = 0;
3221 PyObject * _obj3 = 0;
3222 char *_kwnames[] = { "self","from","to","text", NULL };
3223
3224 self = self;
3225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3226 return NULL;
3227 if (_argo0) {
3228 if (_argo0 == Py_None) { _arg0 = NULL; }
3229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p.");
3231 return NULL;
3232 }
3233 }
3234 {
3235 _arg3 = wxString_in_helper(_obj3);
3236 if (_arg3 == NULL)
3237 return NULL;
3238 }
3239 {
3240 PyThreadState* __tstate = wxPyBeginAllowThreads();
3241 wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3);
3242
3243 wxPyEndAllowThreads(__tstate);
3244 if (PyErr_Occurred()) return NULL;
3245 } Py_INCREF(Py_None);
3246 _resultobj = Py_None;
3247 {
3248 if (_obj3)
3249 delete _arg3;
3250 }
3251 return _resultobj;
3252 }
3253
3254 #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
3255 static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
3256 PyObject * _resultobj;
3257 wxComboBox * _arg0;
3258 long _arg1;
3259 long _arg2;
3260 PyObject * _argo0 = 0;
3261 char *_kwnames[] = { "self","from","to", NULL };
3262
3263 self = self;
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
3265 return NULL;
3266 if (_argo0) {
3267 if (_argo0 == Py_None) { _arg0 = NULL; }
3268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p.");
3270 return NULL;
3271 }
3272 }
3273 {
3274 PyThreadState* __tstate = wxPyBeginAllowThreads();
3275 wxComboBox_Remove(_arg0,_arg1,_arg2);
3276
3277 wxPyEndAllowThreads(__tstate);
3278 if (PyErr_Occurred()) return NULL;
3279 } Py_INCREF(Py_None);
3280 _resultobj = Py_None;
3281 return _resultobj;
3282 }
3283
3284 #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
3285 static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3286 PyObject * _resultobj;
3287 wxComboBox * _arg0;
3288 long _arg1;
3289 PyObject * _argo0 = 0;
3290 char *_kwnames[] = { "self","pos", NULL };
3291
3292 self = self;
3293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
3294 return NULL;
3295 if (_argo0) {
3296 if (_argo0 == Py_None) { _arg0 = NULL; }
3297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p.");
3299 return NULL;
3300 }
3301 }
3302 {
3303 PyThreadState* __tstate = wxPyBeginAllowThreads();
3304 wxComboBox_SetInsertionPoint(_arg0,_arg1);
3305
3306 wxPyEndAllowThreads(__tstate);
3307 if (PyErr_Occurred()) return NULL;
3308 } Py_INCREF(Py_None);
3309 _resultobj = Py_None;
3310 return _resultobj;
3311 }
3312
3313 #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
3314 static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
3315 PyObject * _resultobj;
3316 wxComboBox * _arg0;
3317 PyObject * _argo0 = 0;
3318 char *_kwnames[] = { "self", NULL };
3319
3320 self = self;
3321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0))
3322 return NULL;
3323 if (_argo0) {
3324 if (_argo0 == Py_None) { _arg0 = NULL; }
3325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p.");
3327 return NULL;
3328 }
3329 }
3330 {
3331 PyThreadState* __tstate = wxPyBeginAllowThreads();
3332 wxComboBox_SetInsertionPointEnd(_arg0);
3333
3334 wxPyEndAllowThreads(__tstate);
3335 if (PyErr_Occurred()) return NULL;
3336 } Py_INCREF(Py_None);
3337 _resultobj = Py_None;
3338 return _resultobj;
3339 }
3340
3341 #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
3342 static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3343 PyObject * _resultobj;
3344 wxComboBox * _arg0;
3345 int _arg1;
3346 PyObject * _argo0 = 0;
3347 char *_kwnames[] = { "self","n", NULL };
3348
3349 self = self;
3350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1))
3351 return NULL;
3352 if (_argo0) {
3353 if (_argo0 == Py_None) { _arg0 = NULL; }
3354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p.");
3356 return NULL;
3357 }
3358 }
3359 {
3360 PyThreadState* __tstate = wxPyBeginAllowThreads();
3361 wxComboBox_SetSelection(_arg0,_arg1);
3362
3363 wxPyEndAllowThreads(__tstate);
3364 if (PyErr_Occurred()) return NULL;
3365 } Py_INCREF(Py_None);
3366 _resultobj = Py_None;
3367 return _resultobj;
3368 }
3369
3370 #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
3371 static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) {
3372 PyObject * _resultobj;
3373 wxComboBox * _arg0;
3374 long _arg1;
3375 long _arg2;
3376 PyObject * _argo0 = 0;
3377 char *_kwnames[] = { "self","from","to", NULL };
3378
3379 self = self;
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2))
3381 return NULL;
3382 if (_argo0) {
3383 if (_argo0 == Py_None) { _arg0 = NULL; }
3384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p.");
3386 return NULL;
3387 }
3388 }
3389 {
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 wxComboBox_SetMark(_arg0,_arg1,_arg2);
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) return NULL;
3395 } Py_INCREF(Py_None);
3396 _resultobj = Py_None;
3397 return _resultobj;
3398 }
3399
3400 #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
3401 static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3402 PyObject * _resultobj;
3403 wxComboBox * _arg0;
3404 wxString * _arg1;
3405 PyObject * _argo0 = 0;
3406 PyObject * _obj1 = 0;
3407 char *_kwnames[] = { "self","text", NULL };
3408
3409 self = self;
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1))
3411 return NULL;
3412 if (_argo0) {
3413 if (_argo0 == Py_None) { _arg0 = NULL; }
3414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p.");
3416 return NULL;
3417 }
3418 }
3419 {
3420 _arg1 = wxString_in_helper(_obj1);
3421 if (_arg1 == NULL)
3422 return NULL;
3423 }
3424 {
3425 PyThreadState* __tstate = wxPyBeginAllowThreads();
3426 wxComboBox_SetValue(_arg0,*_arg1);
3427
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) return NULL;
3430 } Py_INCREF(Py_None);
3431 _resultobj = Py_None;
3432 {
3433 if (_obj1)
3434 delete _arg1;
3435 }
3436 return _resultobj;
3437 }
3438
3439 #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
3440 static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
3441 PyObject * _resultobj;
3442 wxComboBox * _arg0;
3443 bool _arg1;
3444 PyObject * _argo0 = 0;
3445 int tempbool1;
3446 char *_kwnames[] = { "self","editable", NULL };
3447
3448 self = self;
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1))
3450 return NULL;
3451 if (_argo0) {
3452 if (_argo0 == Py_None) { _arg0 = NULL; }
3453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p.");
3455 return NULL;
3456 }
3457 }
3458 _arg1 = (bool ) tempbool1;
3459 {
3460 PyThreadState* __tstate = wxPyBeginAllowThreads();
3461 wxComboBox_SetEditable(_arg0,_arg1);
3462
3463 wxPyEndAllowThreads(__tstate);
3464 if (PyErr_Occurred()) return NULL;
3465 } Py_INCREF(Py_None);
3466 _resultobj = Py_None;
3467 return _resultobj;
3468 }
3469
3470 #define wxComboBox_Clear(_swigobj) (_swigobj->Clear())
3471 static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3472 PyObject * _resultobj;
3473 wxComboBox * _arg0;
3474 PyObject * _argo0 = 0;
3475 char *_kwnames[] = { "self", NULL };
3476
3477 self = self;
3478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0))
3479 return NULL;
3480 if (_argo0) {
3481 if (_argo0 == Py_None) { _arg0 = NULL; }
3482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p.");
3484 return NULL;
3485 }
3486 }
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 wxComboBox_Clear(_arg0);
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) return NULL;
3493 } Py_INCREF(Py_None);
3494 _resultobj = Py_None;
3495 return _resultobj;
3496 }
3497
3498 #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
3499 static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
3500 PyObject * _resultobj;
3501 wxComboBox * _arg0;
3502 int _arg1;
3503 PyObject * _argo0 = 0;
3504 char *_kwnames[] = { "self","n", NULL };
3505
3506 self = self;
3507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1))
3508 return NULL;
3509 if (_argo0) {
3510 if (_argo0 == Py_None) { _arg0 = NULL; }
3511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p.");
3513 return NULL;
3514 }
3515 }
3516 {
3517 PyThreadState* __tstate = wxPyBeginAllowThreads();
3518 wxComboBox_Delete(_arg0,_arg1);
3519
3520 wxPyEndAllowThreads(__tstate);
3521 if (PyErr_Occurred()) return NULL;
3522 } Py_INCREF(Py_None);
3523 _resultobj = Py_None;
3524 return _resultobj;
3525 }
3526
3527 #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount())
3528 static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3529 PyObject * _resultobj;
3530 int _result;
3531 wxComboBox * _arg0;
3532 PyObject * _argo0 = 0;
3533 char *_kwnames[] = { "self", NULL };
3534
3535 self = self;
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0))
3537 return NULL;
3538 if (_argo0) {
3539 if (_argo0 == Py_None) { _arg0 = NULL; }
3540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p.");
3542 return NULL;
3543 }
3544 }
3545 {
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 _result = (int )wxComboBox_GetCount(_arg0);
3548
3549 wxPyEndAllowThreads(__tstate);
3550 if (PyErr_Occurred()) return NULL;
3551 } _resultobj = Py_BuildValue("i",_result);
3552 return _resultobj;
3553 }
3554
3555 #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
3556 static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject * _resultobj;
3558 wxString * _result;
3559 wxComboBox * _arg0;
3560 int _arg1;
3561 PyObject * _argo0 = 0;
3562 char *_kwnames[] = { "self","n", NULL };
3563
3564 self = self;
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1))
3566 return NULL;
3567 if (_argo0) {
3568 if (_argo0 == Py_None) { _arg0 = NULL; }
3569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p.");
3571 return NULL;
3572 }
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 _result = new wxString (wxComboBox_GetString(_arg0,_arg1));
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) return NULL;
3580 }{
3581 #if wxUSE_UNICODE
3582 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3583 #else
3584 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3585 #endif
3586 }
3587 {
3588 delete _result;
3589 }
3590 return _resultobj;
3591 }
3592
3593 #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
3594 static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject * _resultobj;
3596 int _result;
3597 wxComboBox * _arg0;
3598 wxString * _arg1;
3599 PyObject * _argo0 = 0;
3600 PyObject * _obj1 = 0;
3601 char *_kwnames[] = { "self","s", NULL };
3602
3603 self = self;
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1))
3605 return NULL;
3606 if (_argo0) {
3607 if (_argo0 == Py_None) { _arg0 = NULL; }
3608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p.");
3610 return NULL;
3611 }
3612 }
3613 {
3614 _arg1 = wxString_in_helper(_obj1);
3615 if (_arg1 == NULL)
3616 return NULL;
3617 }
3618 {
3619 PyThreadState* __tstate = wxPyBeginAllowThreads();
3620 _result = (int )wxComboBox_FindString(_arg0,*_arg1);
3621
3622 wxPyEndAllowThreads(__tstate);
3623 if (PyErr_Occurred()) return NULL;
3624 } _resultobj = Py_BuildValue("i",_result);
3625 {
3626 if (_obj1)
3627 delete _arg1;
3628 }
3629 return _resultobj;
3630 }
3631
3632 #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection())
3633 static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3634 PyObject * _resultobj;
3635 int _result;
3636 wxComboBox * _arg0;
3637 PyObject * _argo0 = 0;
3638 char *_kwnames[] = { "self", NULL };
3639
3640 self = self;
3641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0))
3642 return NULL;
3643 if (_argo0) {
3644 if (_argo0 == Py_None) { _arg0 = NULL; }
3645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p.");
3647 return NULL;
3648 }
3649 }
3650 {
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 _result = (int )wxComboBox_GetSelection(_arg0);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) return NULL;
3656 } _resultobj = Py_BuildValue("i",_result);
3657 return _resultobj;
3658 }
3659
3660 #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
3661 static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3662 PyObject * _resultobj;
3663 wxString * _result;
3664 wxComboBox * _arg0;
3665 PyObject * _argo0 = 0;
3666 char *_kwnames[] = { "self", NULL };
3667
3668 self = self;
3669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0))
3670 return NULL;
3671 if (_argo0) {
3672 if (_argo0 == Py_None) { _arg0 = NULL; }
3673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p.");
3675 return NULL;
3676 }
3677 }
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 _result = new wxString (wxComboBox_GetStringSelection(_arg0));
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) return NULL;
3684 }{
3685 #if wxUSE_UNICODE
3686 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3687 #else
3688 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3689 #endif
3690 }
3691 {
3692 delete _result;
3693 }
3694 return _resultobj;
3695 }
3696
3697 static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) {
3698 if (clientData) {
3699 wxPyClientData* data = new wxPyClientData(clientData);
3700 self->Append(item, data);
3701 } else
3702 self->Append(item);
3703 }
3704 static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject * _resultobj;
3706 wxComboBox * _arg0;
3707 wxString * _arg1;
3708 PyObject * _arg2 = (PyObject *) NULL;
3709 PyObject * _argo0 = 0;
3710 PyObject * _obj1 = 0;
3711 PyObject * _obj2 = 0;
3712 char *_kwnames[] = { "self","item","clientData", NULL };
3713
3714 self = self;
3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2))
3716 return NULL;
3717 if (_argo0) {
3718 if (_argo0 == Py_None) { _arg0 = NULL; }
3719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p.");
3721 return NULL;
3722 }
3723 }
3724 {
3725 _arg1 = wxString_in_helper(_obj1);
3726 if (_arg1 == NULL)
3727 return NULL;
3728 }
3729 if (_obj2)
3730 {
3731 _arg2 = _obj2;
3732 }
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 wxComboBox_Append(_arg0,*_arg1,_arg2);
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) return NULL;
3739 } Py_INCREF(Py_None);
3740 _resultobj = Py_None;
3741 {
3742 if (_obj1)
3743 delete _arg1;
3744 }
3745 return _resultobj;
3746 }
3747
3748 static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) {
3749 #ifdef __WXMAC__
3750 wxPyClientData* data = (wxPyClientData*)self->wxItemContainer::GetClientObject(n);
3751 #else
3752 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
3753 #endif
3754 if (data) {
3755 Py_INCREF(data->m_obj);
3756 return data->m_obj;
3757 } else {
3758 Py_INCREF(Py_None);
3759 return Py_None;
3760 }
3761 }
3762 static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
3763 PyObject * _resultobj;
3764 PyObject * _result;
3765 wxComboBox * _arg0;
3766 int _arg1;
3767 PyObject * _argo0 = 0;
3768 char *_kwnames[] = { "self","n", NULL };
3769
3770 self = self;
3771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1))
3772 return NULL;
3773 if (_argo0) {
3774 if (_argo0 == Py_None) { _arg0 = NULL; }
3775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p.");
3777 return NULL;
3778 }
3779 }
3780 {
3781 PyThreadState* __tstate = wxPyBeginAllowThreads();
3782 _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1);
3783
3784 wxPyEndAllowThreads(__tstate);
3785 if (PyErr_Occurred()) return NULL;
3786 }{
3787 _resultobj = _result;
3788 }
3789 return _resultobj;
3790 }
3791
3792 static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) {
3793 wxPyClientData* data = new wxPyClientData(clientData);
3794 #ifdef __WXMAC__
3795 self->wxItemContainer::SetClientObject(n, data);
3796 #else
3797 self->SetClientObject(n, data);
3798 #endif
3799 }
3800 static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
3801 PyObject * _resultobj;
3802 wxComboBox * _arg0;
3803 int _arg1;
3804 PyObject * _arg2;
3805 PyObject * _argo0 = 0;
3806 PyObject * _obj2 = 0;
3807 char *_kwnames[] = { "self","n","clientData", NULL };
3808
3809 self = self;
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2))
3811 return NULL;
3812 if (_argo0) {
3813 if (_argo0 == Py_None) { _arg0 = NULL; }
3814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) {
3815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p.");
3816 return NULL;
3817 }
3818 }
3819 {
3820 _arg2 = _obj2;
3821 }
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 wxComboBox_SetClientData(_arg0,_arg1,_arg2);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) return NULL;
3828 } Py_INCREF(Py_None);
3829 _resultobj = Py_None;
3830 return _resultobj;
3831 }
3832
3833 static void *SwigwxGaugeTowxControl(void *ptr) {
3834 wxGauge *src;
3835 wxControl *dest;
3836 src = (wxGauge *) ptr;
3837 dest = (wxControl *) src;
3838 return (void *) dest;
3839 }
3840
3841 static void *SwigwxGaugeTowxWindow(void *ptr) {
3842 wxGauge *src;
3843 wxWindow *dest;
3844 src = (wxGauge *) ptr;
3845 dest = (wxWindow *) src;
3846 return (void *) dest;
3847 }
3848
3849 static void *SwigwxGaugeTowxEvtHandler(void *ptr) {
3850 wxGauge *src;
3851 wxEvtHandler *dest;
3852 src = (wxGauge *) ptr;
3853 dest = (wxEvtHandler *) src;
3854 return (void *) dest;
3855 }
3856
3857 static void *SwigwxGaugeTowxObject(void *ptr) {
3858 wxGauge *src;
3859 wxObject *dest;
3860 src = (wxGauge *) ptr;
3861 dest = (wxObject *) src;
3862 return (void *) dest;
3863 }
3864
3865 #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3866 static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3867 PyObject * _resultobj;
3868 wxGauge * _result;
3869 wxWindow * _arg0;
3870 wxWindowID _arg1;
3871 int _arg2;
3872 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3873 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3874 long _arg5 = (long ) wxGA_HORIZONTAL;
3875 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3876 wxString * _arg7 = (wxString *) &wxPyGaugeNameStr;
3877 PyObject * _argo0 = 0;
3878 wxPoint temp;
3879 PyObject * _obj3 = 0;
3880 wxSize temp0;
3881 PyObject * _obj4 = 0;
3882 PyObject * _argo6 = 0;
3883 PyObject * _obj7 = 0;
3884 char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL };
3885 char _ptemp[128];
3886
3887 self = self;
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
3889 return NULL;
3890 if (_argo0) {
3891 if (_argo0 == Py_None) { _arg0 = NULL; }
3892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p.");
3894 return NULL;
3895 }
3896 }
3897 if (_obj3)
3898 {
3899 _arg3 = &temp;
3900 if (! wxPoint_helper(_obj3, &_arg3))
3901 return NULL;
3902 }
3903 if (_obj4)
3904 {
3905 _arg4 = &temp0;
3906 if (! wxSize_helper(_obj4, &_arg4))
3907 return NULL;
3908 }
3909 if (_argo6) {
3910 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3911 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p.");
3912 return NULL;
3913 }
3914 }
3915 if (_obj7)
3916 {
3917 _arg7 = wxString_in_helper(_obj7);
3918 if (_arg7 == NULL)
3919 return NULL;
3920 }
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) return NULL;
3927 } if (_result) {
3928 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3929 _resultobj = Py_BuildValue("s",_ptemp);
3930 } else {
3931 Py_INCREF(Py_None);
3932 _resultobj = Py_None;
3933 }
3934 {
3935 if (_obj7)
3936 delete _arg7;
3937 }
3938 return _resultobj;
3939 }
3940
3941 #define new_wxPreGauge() (new wxGauge())
3942 static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
3943 PyObject * _resultobj;
3944 wxGauge * _result;
3945 char *_kwnames[] = { NULL };
3946 char _ptemp[128];
3947
3948 self = self;
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames))
3950 return NULL;
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 _result = (wxGauge *)new_wxPreGauge();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) return NULL;
3957 } if (_result) {
3958 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p");
3959 _resultobj = Py_BuildValue("s",_ptemp);
3960 } else {
3961 Py_INCREF(Py_None);
3962 _resultobj = Py_None;
3963 }
3964 return _resultobj;
3965 }
3966
3967 #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
3968 static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3969 PyObject * _resultobj;
3970 bool _result;
3971 wxGauge * _arg0;
3972 wxWindow * _arg1;
3973 wxWindowID _arg2;
3974 int _arg3;
3975 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
3976 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
3977 long _arg6 = (long ) wxGA_HORIZONTAL;
3978 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
3979 wxString * _arg8 = (wxString *) &wxPyGaugeNameStr;
3980 PyObject * _argo0 = 0;
3981 PyObject * _argo1 = 0;
3982 wxPoint temp;
3983 PyObject * _obj4 = 0;
3984 wxSize temp0;
3985 PyObject * _obj5 = 0;
3986 PyObject * _argo7 = 0;
3987 PyObject * _obj8 = 0;
3988 char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL };
3989
3990 self = self;
3991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
3992 return NULL;
3993 if (_argo0) {
3994 if (_argo0 == Py_None) { _arg0 = NULL; }
3995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
3996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p.");
3997 return NULL;
3998 }
3999 }
4000 if (_argo1) {
4001 if (_argo1 == Py_None) { _arg1 = NULL; }
4002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p.");
4004 return NULL;
4005 }
4006 }
4007 if (_obj4)
4008 {
4009 _arg4 = &temp;
4010 if (! wxPoint_helper(_obj4, &_arg4))
4011 return NULL;
4012 }
4013 if (_obj5)
4014 {
4015 _arg5 = &temp0;
4016 if (! wxSize_helper(_obj5, &_arg5))
4017 return NULL;
4018 }
4019 if (_argo7) {
4020 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
4021 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p.");
4022 return NULL;
4023 }
4024 }
4025 if (_obj8)
4026 {
4027 _arg8 = wxString_in_helper(_obj8);
4028 if (_arg8 == NULL)
4029 return NULL;
4030 }
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) return NULL;
4037 } _resultobj = Py_BuildValue("i",_result);
4038 {
4039 if (_obj8)
4040 delete _arg8;
4041 }
4042 return _resultobj;
4043 }
4044
4045 #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace())
4046 static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4047 PyObject * _resultobj;
4048 int _result;
4049 wxGauge * _arg0;
4050 PyObject * _argo0 = 0;
4051 char *_kwnames[] = { "self", NULL };
4052
4053 self = self;
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0))
4055 return NULL;
4056 if (_argo0) {
4057 if (_argo0 == Py_None) { _arg0 = NULL; }
4058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p.");
4060 return NULL;
4061 }
4062 }
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 _result = (int )wxGauge_GetBezelFace(_arg0);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) return NULL;
4069 } _resultobj = Py_BuildValue("i",_result);
4070 return _resultobj;
4071 }
4072
4073 #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange())
4074 static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject * _resultobj;
4076 int _result;
4077 wxGauge * _arg0;
4078 PyObject * _argo0 = 0;
4079 char *_kwnames[] = { "self", NULL };
4080
4081 self = self;
4082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0))
4083 return NULL;
4084 if (_argo0) {
4085 if (_argo0 == Py_None) { _arg0 = NULL; }
4086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p.");
4088 return NULL;
4089 }
4090 }
4091 {
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 _result = (int )wxGauge_GetRange(_arg0);
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) return NULL;
4097 } _resultobj = Py_BuildValue("i",_result);
4098 return _resultobj;
4099 }
4100
4101 #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth())
4102 static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4103 PyObject * _resultobj;
4104 int _result;
4105 wxGauge * _arg0;
4106 PyObject * _argo0 = 0;
4107 char *_kwnames[] = { "self", NULL };
4108
4109 self = self;
4110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0))
4111 return NULL;
4112 if (_argo0) {
4113 if (_argo0 == Py_None) { _arg0 = NULL; }
4114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p.");
4116 return NULL;
4117 }
4118 }
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 _result = (int )wxGauge_GetShadowWidth(_arg0);
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) return NULL;
4125 } _resultobj = Py_BuildValue("i",_result);
4126 return _resultobj;
4127 }
4128
4129 #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue())
4130 static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4131 PyObject * _resultobj;
4132 int _result;
4133 wxGauge * _arg0;
4134 PyObject * _argo0 = 0;
4135 char *_kwnames[] = { "self", NULL };
4136
4137 self = self;
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0))
4139 return NULL;
4140 if (_argo0) {
4141 if (_argo0 == Py_None) { _arg0 = NULL; }
4142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p.");
4144 return NULL;
4145 }
4146 }
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 _result = (int )wxGauge_GetValue(_arg0);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) return NULL;
4153 } _resultobj = Py_BuildValue("i",_result);
4154 return _resultobj;
4155 }
4156
4157 #define wxGauge_IsVertical(_swigobj) (_swigobj->IsVertical())
4158 static PyObject *_wrap_wxGauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject * _resultobj;
4160 bool _result;
4161 wxGauge * _arg0;
4162 PyObject * _argo0 = 0;
4163 char *_kwnames[] = { "self", NULL };
4164
4165 self = self;
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_IsVertical",_kwnames,&_argo0))
4167 return NULL;
4168 if (_argo0) {
4169 if (_argo0 == Py_None) { _arg0 = NULL; }
4170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_IsVertical. Expected _wxGauge_p.");
4172 return NULL;
4173 }
4174 }
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 _result = (bool )wxGauge_IsVertical(_arg0);
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) return NULL;
4181 } _resultobj = Py_BuildValue("i",_result);
4182 return _resultobj;
4183 }
4184
4185 #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0))
4186 static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject * _resultobj;
4188 wxGauge * _arg0;
4189 int _arg1;
4190 PyObject * _argo0 = 0;
4191 char *_kwnames[] = { "self","width", NULL };
4192
4193 self = self;
4194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1))
4195 return NULL;
4196 if (_argo0) {
4197 if (_argo0 == Py_None) { _arg0 = NULL; }
4198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p.");
4200 return NULL;
4201 }
4202 }
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 wxGauge_SetBezelFace(_arg0,_arg1);
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) return NULL;
4209 } Py_INCREF(Py_None);
4210 _resultobj = Py_None;
4211 return _resultobj;
4212 }
4213
4214 #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0))
4215 static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
4216 PyObject * _resultobj;
4217 wxGauge * _arg0;
4218 int _arg1;
4219 PyObject * _argo0 = 0;
4220 char *_kwnames[] = { "self","range", NULL };
4221
4222 self = self;
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1))
4224 return NULL;
4225 if (_argo0) {
4226 if (_argo0 == Py_None) { _arg0 = NULL; }
4227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p.");
4229 return NULL;
4230 }
4231 }
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 wxGauge_SetRange(_arg0,_arg1);
4235
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) return NULL;
4238 } Py_INCREF(Py_None);
4239 _resultobj = Py_None;
4240 return _resultobj;
4241 }
4242
4243 #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0))
4244 static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4245 PyObject * _resultobj;
4246 wxGauge * _arg0;
4247 int _arg1;
4248 PyObject * _argo0 = 0;
4249 char *_kwnames[] = { "self","width", NULL };
4250
4251 self = self;
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1))
4253 return NULL;
4254 if (_argo0) {
4255 if (_argo0 == Py_None) { _arg0 = NULL; }
4256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p.");
4258 return NULL;
4259 }
4260 }
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 wxGauge_SetShadowWidth(_arg0,_arg1);
4264
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) return NULL;
4267 } Py_INCREF(Py_None);
4268 _resultobj = Py_None;
4269 return _resultobj;
4270 }
4271
4272 #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
4273 static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject * _resultobj;
4275 wxGauge * _arg0;
4276 int _arg1;
4277 PyObject * _argo0 = 0;
4278 char *_kwnames[] = { "self","pos", NULL };
4279
4280 self = self;
4281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1))
4282 return NULL;
4283 if (_argo0) {
4284 if (_argo0 == Py_None) { _arg0 = NULL; }
4285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) {
4286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p.");
4287 return NULL;
4288 }
4289 }
4290 {
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 wxGauge_SetValue(_arg0,_arg1);
4293
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) return NULL;
4296 } Py_INCREF(Py_None);
4297 _resultobj = Py_None;
4298 return _resultobj;
4299 }
4300
4301 static void *SwigwxStaticBoxTowxControl(void *ptr) {
4302 wxStaticBox *src;
4303 wxControl *dest;
4304 src = (wxStaticBox *) ptr;
4305 dest = (wxControl *) src;
4306 return (void *) dest;
4307 }
4308
4309 static void *SwigwxStaticBoxTowxWindow(void *ptr) {
4310 wxStaticBox *src;
4311 wxWindow *dest;
4312 src = (wxStaticBox *) ptr;
4313 dest = (wxWindow *) src;
4314 return (void *) dest;
4315 }
4316
4317 static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) {
4318 wxStaticBox *src;
4319 wxEvtHandler *dest;
4320 src = (wxStaticBox *) ptr;
4321 dest = (wxEvtHandler *) src;
4322 return (void *) dest;
4323 }
4324
4325 static void *SwigwxStaticBoxTowxObject(void *ptr) {
4326 wxStaticBox *src;
4327 wxObject *dest;
4328 src = (wxStaticBox *) ptr;
4329 dest = (wxObject *) src;
4330 return (void *) dest;
4331 }
4332
4333 #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4334 static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject * _resultobj;
4336 wxStaticBox * _result;
4337 wxWindow * _arg0;
4338 wxWindowID _arg1;
4339 wxString * _arg2;
4340 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4341 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4342 long _arg5 = (long ) 0;
4343 wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr;
4344 PyObject * _argo0 = 0;
4345 PyObject * _obj2 = 0;
4346 wxPoint temp;
4347 PyObject * _obj3 = 0;
4348 wxSize temp0;
4349 PyObject * _obj4 = 0;
4350 PyObject * _obj6 = 0;
4351 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
4352 char _ptemp[128];
4353
4354 self = self;
4355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
4356 return NULL;
4357 if (_argo0) {
4358 if (_argo0 == Py_None) { _arg0 = NULL; }
4359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p.");
4361 return NULL;
4362 }
4363 }
4364 {
4365 _arg2 = wxString_in_helper(_obj2);
4366 if (_arg2 == NULL)
4367 return NULL;
4368 }
4369 if (_obj3)
4370 {
4371 _arg3 = &temp;
4372 if (! wxPoint_helper(_obj3, &_arg3))
4373 return NULL;
4374 }
4375 if (_obj4)
4376 {
4377 _arg4 = &temp0;
4378 if (! wxSize_helper(_obj4, &_arg4))
4379 return NULL;
4380 }
4381 if (_obj6)
4382 {
4383 _arg6 = wxString_in_helper(_obj6);
4384 if (_arg6 == NULL)
4385 return NULL;
4386 }
4387 {
4388 PyThreadState* __tstate = wxPyBeginAllowThreads();
4389 _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
4390
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) return NULL;
4393 } if (_result) {
4394 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
4395 _resultobj = Py_BuildValue("s",_ptemp);
4396 } else {
4397 Py_INCREF(Py_None);
4398 _resultobj = Py_None;
4399 }
4400 {
4401 if (_obj2)
4402 delete _arg2;
4403 }
4404 {
4405 if (_obj6)
4406 delete _arg6;
4407 }
4408 return _resultobj;
4409 }
4410
4411 #define new_wxPreStaticBox() (new wxStaticBox())
4412 static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4413 PyObject * _resultobj;
4414 wxStaticBox * _result;
4415 char *_kwnames[] = { NULL };
4416 char _ptemp[128];
4417
4418 self = self;
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames))
4420 return NULL;
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 _result = (wxStaticBox *)new_wxPreStaticBox();
4424
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) return NULL;
4427 } if (_result) {
4428 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
4429 _resultobj = Py_BuildValue("s",_ptemp);
4430 } else {
4431 Py_INCREF(Py_None);
4432 _resultobj = Py_None;
4433 }
4434 return _resultobj;
4435 }
4436
4437 #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4438 static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4439 PyObject * _resultobj;
4440 bool _result;
4441 wxStaticBox * _arg0;
4442 wxWindow * _arg1;
4443 wxWindowID _arg2;
4444 wxString * _arg3;
4445 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4446 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4447 long _arg6 = (long ) 0;
4448 wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr;
4449 PyObject * _argo0 = 0;
4450 PyObject * _argo1 = 0;
4451 PyObject * _obj3 = 0;
4452 wxPoint temp;
4453 PyObject * _obj4 = 0;
4454 wxSize temp0;
4455 PyObject * _obj5 = 0;
4456 PyObject * _obj7 = 0;
4457 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4458
4459 self = self;
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7))
4461 return NULL;
4462 if (_argo0) {
4463 if (_argo0 == Py_None) { _arg0 = NULL; }
4464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) {
4465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p.");
4466 return NULL;
4467 }
4468 }
4469 if (_argo1) {
4470 if (_argo1 == Py_None) { _arg1 = NULL; }
4471 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4472 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p.");
4473 return NULL;
4474 }
4475 }
4476 {
4477 _arg3 = wxString_in_helper(_obj3);
4478 if (_arg3 == NULL)
4479 return NULL;
4480 }
4481 if (_obj4)
4482 {
4483 _arg4 = &temp;
4484 if (! wxPoint_helper(_obj4, &_arg4))
4485 return NULL;
4486 }
4487 if (_obj5)
4488 {
4489 _arg5 = &temp0;
4490 if (! wxSize_helper(_obj5, &_arg5))
4491 return NULL;
4492 }
4493 if (_obj7)
4494 {
4495 _arg7 = wxString_in_helper(_obj7);
4496 if (_arg7 == NULL)
4497 return NULL;
4498 }
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7);
4502
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) return NULL;
4505 } _resultobj = Py_BuildValue("i",_result);
4506 {
4507 if (_obj3)
4508 delete _arg3;
4509 }
4510 {
4511 if (_obj7)
4512 delete _arg7;
4513 }
4514 return _resultobj;
4515 }
4516
4517 static void *SwigwxStaticLineTowxControl(void *ptr) {
4518 wxStaticLine *src;
4519 wxControl *dest;
4520 src = (wxStaticLine *) ptr;
4521 dest = (wxControl *) src;
4522 return (void *) dest;
4523 }
4524
4525 static void *SwigwxStaticLineTowxWindow(void *ptr) {
4526 wxStaticLine *src;
4527 wxWindow *dest;
4528 src = (wxStaticLine *) ptr;
4529 dest = (wxWindow *) src;
4530 return (void *) dest;
4531 }
4532
4533 static void *SwigwxStaticLineTowxEvtHandler(void *ptr) {
4534 wxStaticLine *src;
4535 wxEvtHandler *dest;
4536 src = (wxStaticLine *) ptr;
4537 dest = (wxEvtHandler *) src;
4538 return (void *) dest;
4539 }
4540
4541 static void *SwigwxStaticLineTowxObject(void *ptr) {
4542 wxStaticLine *src;
4543 wxObject *dest;
4544 src = (wxStaticLine *) ptr;
4545 dest = (wxObject *) src;
4546 return (void *) dest;
4547 }
4548
4549 #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4550 static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject * _resultobj;
4552 wxStaticLine * _result;
4553 wxWindow * _arg0;
4554 wxWindowID _arg1;
4555 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4556 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4557 long _arg4 = (long ) wxLI_HORIZONTAL;
4558 wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr;
4559 PyObject * _argo0 = 0;
4560 wxPoint temp;
4561 PyObject * _obj2 = 0;
4562 wxSize temp0;
4563 PyObject * _obj3 = 0;
4564 PyObject * _obj5 = 0;
4565 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4566 char _ptemp[128];
4567
4568 self = self;
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
4570 return NULL;
4571 if (_argo0) {
4572 if (_argo0 == Py_None) { _arg0 = NULL; }
4573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p.");
4575 return NULL;
4576 }
4577 }
4578 if (_obj2)
4579 {
4580 _arg2 = &temp;
4581 if (! wxPoint_helper(_obj2, &_arg2))
4582 return NULL;
4583 }
4584 if (_obj3)
4585 {
4586 _arg3 = &temp0;
4587 if (! wxSize_helper(_obj3, &_arg3))
4588 return NULL;
4589 }
4590 if (_obj5)
4591 {
4592 _arg5 = wxString_in_helper(_obj5);
4593 if (_arg5 == NULL)
4594 return NULL;
4595 }
4596 {
4597 PyThreadState* __tstate = wxPyBeginAllowThreads();
4598 _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
4599
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) return NULL;
4602 } if (_result) {
4603 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4604 _resultobj = Py_BuildValue("s",_ptemp);
4605 } else {
4606 Py_INCREF(Py_None);
4607 _resultobj = Py_None;
4608 }
4609 {
4610 if (_obj5)
4611 delete _arg5;
4612 }
4613 return _resultobj;
4614 }
4615
4616 #define new_wxPreStaticLine() (new wxStaticLine())
4617 static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
4618 PyObject * _resultobj;
4619 wxStaticLine * _result;
4620 char *_kwnames[] = { NULL };
4621 char _ptemp[128];
4622
4623 self = self;
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames))
4625 return NULL;
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 _result = (wxStaticLine *)new_wxPreStaticLine();
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) return NULL;
4632 } if (_result) {
4633 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p");
4634 _resultobj = Py_BuildValue("s",_ptemp);
4635 } else {
4636 Py_INCREF(Py_None);
4637 _resultobj = Py_None;
4638 }
4639 return _resultobj;
4640 }
4641
4642 #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4643 static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4644 PyObject * _resultobj;
4645 bool _result;
4646 wxStaticLine * _arg0;
4647 wxWindow * _arg1;
4648 wxWindowID _arg2;
4649 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4650 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4651 long _arg5 = (long ) wxLI_HORIZONTAL;
4652 wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr;
4653 PyObject * _argo0 = 0;
4654 PyObject * _argo1 = 0;
4655 wxPoint temp;
4656 PyObject * _obj3 = 0;
4657 wxSize temp0;
4658 PyObject * _obj4 = 0;
4659 PyObject * _obj6 = 0;
4660 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
4661
4662 self = self;
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
4664 return NULL;
4665 if (_argo0) {
4666 if (_argo0 == Py_None) { _arg0 = NULL; }
4667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) {
4668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p.");
4669 return NULL;
4670 }
4671 }
4672 if (_argo1) {
4673 if (_argo1 == Py_None) { _arg1 = NULL; }
4674 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4675 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p.");
4676 return NULL;
4677 }
4678 }
4679 if (_obj3)
4680 {
4681 _arg3 = &temp;
4682 if (! wxPoint_helper(_obj3, &_arg3))
4683 return NULL;
4684 }
4685 if (_obj4)
4686 {
4687 _arg4 = &temp0;
4688 if (! wxSize_helper(_obj4, &_arg4))
4689 return NULL;
4690 }
4691 if (_obj6)
4692 {
4693 _arg6 = wxString_in_helper(_obj6);
4694 if (_arg6 == NULL)
4695 return NULL;
4696 }
4697 {
4698 PyThreadState* __tstate = wxPyBeginAllowThreads();
4699 _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
4700
4701 wxPyEndAllowThreads(__tstate);
4702 if (PyErr_Occurred()) return NULL;
4703 } _resultobj = Py_BuildValue("i",_result);
4704 {
4705 if (_obj6)
4706 delete _arg6;
4707 }
4708 return _resultobj;
4709 }
4710
4711 static void *SwigwxStaticTextTowxControl(void *ptr) {
4712 wxStaticText *src;
4713 wxControl *dest;
4714 src = (wxStaticText *) ptr;
4715 dest = (wxControl *) src;
4716 return (void *) dest;
4717 }
4718
4719 static void *SwigwxStaticTextTowxWindow(void *ptr) {
4720 wxStaticText *src;
4721 wxWindow *dest;
4722 src = (wxStaticText *) ptr;
4723 dest = (wxWindow *) src;
4724 return (void *) dest;
4725 }
4726
4727 static void *SwigwxStaticTextTowxEvtHandler(void *ptr) {
4728 wxStaticText *src;
4729 wxEvtHandler *dest;
4730 src = (wxStaticText *) ptr;
4731 dest = (wxEvtHandler *) src;
4732 return (void *) dest;
4733 }
4734
4735 static void *SwigwxStaticTextTowxObject(void *ptr) {
4736 wxStaticText *src;
4737 wxObject *dest;
4738 src = (wxStaticText *) ptr;
4739 dest = (wxObject *) src;
4740 return (void *) dest;
4741 }
4742
4743 #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4744 static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject * _resultobj;
4746 wxStaticText * _result;
4747 wxWindow * _arg0;
4748 wxWindowID _arg1;
4749 wxString * _arg2;
4750 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4751 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4752 long _arg5 = (long ) 0;
4753 wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr;
4754 PyObject * _argo0 = 0;
4755 PyObject * _obj2 = 0;
4756 wxPoint temp;
4757 PyObject * _obj3 = 0;
4758 wxSize temp0;
4759 PyObject * _obj4 = 0;
4760 PyObject * _obj6 = 0;
4761 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
4762 char _ptemp[128];
4763
4764 self = self;
4765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
4766 return NULL;
4767 if (_argo0) {
4768 if (_argo0 == Py_None) { _arg0 = NULL; }
4769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p.");
4771 return NULL;
4772 }
4773 }
4774 {
4775 _arg2 = wxString_in_helper(_obj2);
4776 if (_arg2 == NULL)
4777 return NULL;
4778 }
4779 if (_obj3)
4780 {
4781 _arg3 = &temp;
4782 if (! wxPoint_helper(_obj3, &_arg3))
4783 return NULL;
4784 }
4785 if (_obj4)
4786 {
4787 _arg4 = &temp0;
4788 if (! wxSize_helper(_obj4, &_arg4))
4789 return NULL;
4790 }
4791 if (_obj6)
4792 {
4793 _arg6 = wxString_in_helper(_obj6);
4794 if (_arg6 == NULL)
4795 return NULL;
4796 }
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) return NULL;
4803 } if (_result) {
4804 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4805 _resultobj = Py_BuildValue("s",_ptemp);
4806 } else {
4807 Py_INCREF(Py_None);
4808 _resultobj = Py_None;
4809 }
4810 {
4811 if (_obj2)
4812 delete _arg2;
4813 }
4814 {
4815 if (_obj6)
4816 delete _arg6;
4817 }
4818 return _resultobj;
4819 }
4820
4821 #define new_wxPreStaticText() (new wxStaticText())
4822 static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
4823 PyObject * _resultobj;
4824 wxStaticText * _result;
4825 char *_kwnames[] = { NULL };
4826 char _ptemp[128];
4827
4828 self = self;
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames))
4830 return NULL;
4831 {
4832 PyThreadState* __tstate = wxPyBeginAllowThreads();
4833 _result = (wxStaticText *)new_wxPreStaticText();
4834
4835 wxPyEndAllowThreads(__tstate);
4836 if (PyErr_Occurred()) return NULL;
4837 } if (_result) {
4838 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p");
4839 _resultobj = Py_BuildValue("s",_ptemp);
4840 } else {
4841 Py_INCREF(Py_None);
4842 _resultobj = Py_None;
4843 }
4844 return _resultobj;
4845 }
4846
4847 #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4848 static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4849 PyObject * _resultobj;
4850 bool _result;
4851 wxStaticText * _arg0;
4852 wxWindow * _arg1;
4853 wxWindowID _arg2;
4854 wxString * _arg3;
4855 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
4856 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
4857 long _arg6 = (long ) 0;
4858 wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr;
4859 PyObject * _argo0 = 0;
4860 PyObject * _argo1 = 0;
4861 PyObject * _obj3 = 0;
4862 wxPoint temp;
4863 PyObject * _obj4 = 0;
4864 wxSize temp0;
4865 PyObject * _obj5 = 0;
4866 PyObject * _obj7 = 0;
4867 char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL };
4868
4869 self = self;
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7))
4871 return NULL;
4872 if (_argo0) {
4873 if (_argo0 == Py_None) { _arg0 = NULL; }
4874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p.");
4876 return NULL;
4877 }
4878 }
4879 if (_argo1) {
4880 if (_argo1 == Py_None) { _arg1 = NULL; }
4881 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4882 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p.");
4883 return NULL;
4884 }
4885 }
4886 {
4887 _arg3 = wxString_in_helper(_obj3);
4888 if (_arg3 == NULL)
4889 return NULL;
4890 }
4891 if (_obj4)
4892 {
4893 _arg4 = &temp;
4894 if (! wxPoint_helper(_obj4, &_arg4))
4895 return NULL;
4896 }
4897 if (_obj5)
4898 {
4899 _arg5 = &temp0;
4900 if (! wxSize_helper(_obj5, &_arg5))
4901 return NULL;
4902 }
4903 if (_obj7)
4904 {
4905 _arg7 = wxString_in_helper(_obj7);
4906 if (_arg7 == NULL)
4907 return NULL;
4908 }
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7);
4912
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) return NULL;
4915 } _resultobj = Py_BuildValue("i",_result);
4916 {
4917 if (_obj3)
4918 delete _arg3;
4919 }
4920 {
4921 if (_obj7)
4922 delete _arg7;
4923 }
4924 return _resultobj;
4925 }
4926
4927 #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel())
4928 static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4929 PyObject * _resultobj;
4930 wxString * _result;
4931 wxStaticText * _arg0;
4932 PyObject * _argo0 = 0;
4933 char *_kwnames[] = { "self", NULL };
4934
4935 self = self;
4936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0))
4937 return NULL;
4938 if (_argo0) {
4939 if (_argo0 == Py_None) { _arg0 = NULL; }
4940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p.");
4942 return NULL;
4943 }
4944 }
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 _result = new wxString (wxStaticText_GetLabel(_arg0));
4948
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) return NULL;
4951 }{
4952 #if wxUSE_UNICODE
4953 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4954 #else
4955 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4956 #endif
4957 }
4958 {
4959 delete _result;
4960 }
4961 return _resultobj;
4962 }
4963
4964 #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
4965 static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject * _resultobj;
4967 wxStaticText * _arg0;
4968 wxString * _arg1;
4969 PyObject * _argo0 = 0;
4970 PyObject * _obj1 = 0;
4971 char *_kwnames[] = { "self","label", NULL };
4972
4973 self = self;
4974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1))
4975 return NULL;
4976 if (_argo0) {
4977 if (_argo0 == Py_None) { _arg0 = NULL; }
4978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) {
4979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p.");
4980 return NULL;
4981 }
4982 }
4983 {
4984 _arg1 = wxString_in_helper(_obj1);
4985 if (_arg1 == NULL)
4986 return NULL;
4987 }
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 wxStaticText_SetLabel(_arg0,*_arg1);
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) return NULL;
4994 } Py_INCREF(Py_None);
4995 _resultobj = Py_None;
4996 {
4997 if (_obj1)
4998 delete _arg1;
4999 }
5000 return _resultobj;
5001 }
5002
5003 static void *SwigwxListBoxTowxControlWithItems(void *ptr) {
5004 wxListBox *src;
5005 wxControlWithItems *dest;
5006 src = (wxListBox *) ptr;
5007 dest = (wxControlWithItems *) src;
5008 return (void *) dest;
5009 }
5010
5011 static void *SwigwxListBoxTowxControl(void *ptr) {
5012 wxListBox *src;
5013 wxControl *dest;
5014 src = (wxListBox *) ptr;
5015 dest = (wxControl *) src;
5016 return (void *) dest;
5017 }
5018
5019 static void *SwigwxListBoxTowxWindow(void *ptr) {
5020 wxListBox *src;
5021 wxWindow *dest;
5022 src = (wxListBox *) ptr;
5023 dest = (wxWindow *) src;
5024 return (void *) dest;
5025 }
5026
5027 static void *SwigwxListBoxTowxEvtHandler(void *ptr) {
5028 wxListBox *src;
5029 wxEvtHandler *dest;
5030 src = (wxListBox *) ptr;
5031 dest = (wxEvtHandler *) src;
5032 return (void *) dest;
5033 }
5034
5035 static void *SwigwxListBoxTowxObject(void *ptr) {
5036 wxListBox *src;
5037 wxObject *dest;
5038 src = (wxListBox *) ptr;
5039 dest = (wxObject *) src;
5040 return (void *) dest;
5041 }
5042
5043 #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5044 static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject * _resultobj;
5046 wxListBox * _result;
5047 wxWindow * _arg0;
5048 wxWindowID _arg1;
5049 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5050 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5051 int _arg4;
5052 wxString * _arg5 = (wxString *) NULL;
5053 long _arg6 = (long ) 0;
5054 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
5055 wxString * _arg8 = (wxString *) &wxPyListBoxNameStr;
5056 PyObject * _argo0 = 0;
5057 wxPoint temp;
5058 PyObject * _obj2 = 0;
5059 wxSize temp0;
5060 PyObject * _obj3 = 0;
5061 PyObject * _obj5 = 0;
5062 PyObject * _argo7 = 0;
5063 PyObject * _obj8 = 0;
5064 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
5065 char _ptemp[128];
5066
5067 self = self;
5068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8))
5069 return NULL;
5070 if (_argo0) {
5071 if (_argo0 == Py_None) { _arg0 = NULL; }
5072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p.");
5074 return NULL;
5075 }
5076 }
5077 if (_obj2)
5078 {
5079 _arg2 = &temp;
5080 if (! wxPoint_helper(_obj2, &_arg2))
5081 return NULL;
5082 }
5083 if (_obj3)
5084 {
5085 _arg3 = &temp0;
5086 if (! wxSize_helper(_obj3, &_arg3))
5087 return NULL;
5088 }
5089 if (_obj5)
5090 {
5091 _arg5 = wxString_LIST_helper(_obj5);
5092 if (_arg5 == NULL) {
5093 return NULL;
5094 }
5095 }
5096 if (_argo7) {
5097 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
5098 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p.");
5099 return NULL;
5100 }
5101 }
5102 if (_obj8)
5103 {
5104 _arg8 = wxString_in_helper(_obj8);
5105 if (_arg8 == NULL)
5106 return NULL;
5107 }
5108 {
5109 if (_obj5) {
5110 _arg4 = PyList_Size(_obj5);
5111 }
5112 else {
5113 _arg4 = 0;
5114 }
5115 }
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) return NULL;
5122 } if (_result) {
5123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
5124 _resultobj = Py_BuildValue("s",_ptemp);
5125 } else {
5126 Py_INCREF(Py_None);
5127 _resultobj = Py_None;
5128 }
5129 {
5130 delete [] _arg5;
5131 }
5132 {
5133 if (_obj8)
5134 delete _arg8;
5135 }
5136 return _resultobj;
5137 }
5138
5139 #define new_wxPreListBox() (new wxListBox())
5140 static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5141 PyObject * _resultobj;
5142 wxListBox * _result;
5143 char *_kwnames[] = { NULL };
5144 char _ptemp[128];
5145
5146 self = self;
5147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames))
5148 return NULL;
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 _result = (wxListBox *)new_wxPreListBox();
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) return NULL;
5155 } if (_result) {
5156 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p");
5157 _resultobj = Py_BuildValue("s",_ptemp);
5158 } else {
5159 Py_INCREF(Py_None);
5160 _resultobj = Py_None;
5161 }
5162 return _resultobj;
5163 }
5164
5165 #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5166 static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5167 PyObject * _resultobj;
5168 bool _result;
5169 wxListBox * _arg0;
5170 wxWindow * _arg1;
5171 wxWindowID _arg2;
5172 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5173 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5174 int _arg5;
5175 wxString * _arg6 = (wxString *) NULL;
5176 long _arg7 = (long ) 0;
5177 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
5178 wxString * _arg9 = (wxString *) &wxPyListBoxNameStr;
5179 PyObject * _argo0 = 0;
5180 PyObject * _argo1 = 0;
5181 wxPoint temp;
5182 PyObject * _obj3 = 0;
5183 wxSize temp0;
5184 PyObject * _obj4 = 0;
5185 PyObject * _obj6 = 0;
5186 PyObject * _argo8 = 0;
5187 PyObject * _obj9 = 0;
5188 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
5189
5190 self = self;
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9))
5192 return NULL;
5193 if (_argo0) {
5194 if (_argo0 == Py_None) { _arg0 = NULL; }
5195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p.");
5197 return NULL;
5198 }
5199 }
5200 if (_argo1) {
5201 if (_argo1 == Py_None) { _arg1 = NULL; }
5202 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5203 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p.");
5204 return NULL;
5205 }
5206 }
5207 if (_obj3)
5208 {
5209 _arg3 = &temp;
5210 if (! wxPoint_helper(_obj3, &_arg3))
5211 return NULL;
5212 }
5213 if (_obj4)
5214 {
5215 _arg4 = &temp0;
5216 if (! wxSize_helper(_obj4, &_arg4))
5217 return NULL;
5218 }
5219 if (_obj6)
5220 {
5221 _arg6 = wxString_LIST_helper(_obj6);
5222 if (_arg6 == NULL) {
5223 return NULL;
5224 }
5225 }
5226 if (_argo8) {
5227 if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
5228 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p.");
5229 return NULL;
5230 }
5231 }
5232 if (_obj9)
5233 {
5234 _arg9 = wxString_in_helper(_obj9);
5235 if (_arg9 == NULL)
5236 return NULL;
5237 }
5238 {
5239 if (_obj6) {
5240 _arg5 = PyList_Size(_obj6);
5241 }
5242 else {
5243 _arg5 = 0;
5244 }
5245 }
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9);
5249
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) return NULL;
5252 } _resultobj = Py_BuildValue("i",_result);
5253 {
5254 delete [] _arg6;
5255 }
5256 {
5257 if (_obj9)
5258 delete _arg9;
5259 }
5260 return _resultobj;
5261 }
5262
5263 #define wxListBox_Clear(_swigobj) (_swigobj->Clear())
5264 static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5265 PyObject * _resultobj;
5266 wxListBox * _arg0;
5267 PyObject * _argo0 = 0;
5268 char *_kwnames[] = { "self", NULL };
5269
5270 self = self;
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0))
5272 return NULL;
5273 if (_argo0) {
5274 if (_argo0 == Py_None) { _arg0 = NULL; }
5275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p.");
5277 return NULL;
5278 }
5279 }
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 wxListBox_Clear(_arg0);
5283
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) return NULL;
5286 } Py_INCREF(Py_None);
5287 _resultobj = Py_None;
5288 return _resultobj;
5289 }
5290
5291 #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0))
5292 static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject * _resultobj;
5294 wxListBox * _arg0;
5295 int _arg1;
5296 PyObject * _argo0 = 0;
5297 char *_kwnames[] = { "self","n", NULL };
5298
5299 self = self;
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1))
5301 return NULL;
5302 if (_argo0) {
5303 if (_argo0 == Py_None) { _arg0 = NULL; }
5304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p.");
5306 return NULL;
5307 }
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 wxListBox_Deselect(_arg0,_arg1);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) return NULL;
5315 } Py_INCREF(Py_None);
5316 _resultobj = Py_None;
5317 return _resultobj;
5318 }
5319
5320 static PyObject * wxListBox_GetSelections(wxListBox *self) {
5321 wxArrayInt lst;
5322 self->GetSelections(lst);
5323 PyObject *tup = PyTuple_New(lst.GetCount());
5324 for(size_t i=0; i<lst.GetCount(); i++) {
5325 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
5326 }
5327 return tup;
5328 }
5329 static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
5330 PyObject * _resultobj;
5331 PyObject * _result;
5332 wxListBox * _arg0;
5333 PyObject * _argo0 = 0;
5334 char *_kwnames[] = { "self", NULL };
5335
5336 self = self;
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0))
5338 return NULL;
5339 if (_argo0) {
5340 if (_argo0 == Py_None) { _arg0 = NULL; }
5341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p.");
5343 return NULL;
5344 }
5345 }
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 _result = (PyObject *)wxListBox_GetSelections(_arg0);
5349
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) return NULL;
5352 }{
5353 _resultobj = _result;
5354 }
5355 return _resultobj;
5356 }
5357
5358 #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
5359 static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject * _resultobj;
5361 wxListBox * _arg0;
5362 int _arg1;
5363 wxString * _arg2;
5364 int _arg3;
5365 PyObject * _argo0 = 0;
5366 PyObject * _obj2 = 0;
5367 char *_kwnames[] = { "self","choices","pos", NULL };
5368
5369 self = self;
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
5371 return NULL;
5372 if (_argo0) {
5373 if (_argo0 == Py_None) { _arg0 = NULL; }
5374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p.");
5376 return NULL;
5377 }
5378 }
5379 {
5380 _arg2 = wxString_LIST_helper(_obj2);
5381 if (_arg2 == NULL) {
5382 return NULL;
5383 }
5384 }
5385 {
5386 if (_obj2) {
5387 _arg1 = PyList_Size(_obj2);
5388 }
5389 else {
5390 _arg1 = 0;
5391 }
5392 }
5393 {
5394 PyThreadState* __tstate = wxPyBeginAllowThreads();
5395 wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
5396
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) return NULL;
5399 } Py_INCREF(Py_None);
5400 _resultobj = Py_None;
5401 {
5402 delete [] _arg2;
5403 }
5404 return _resultobj;
5405 }
5406
5407 #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5408 static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5409 PyObject * _resultobj;
5410 bool _result;
5411 wxListBox * _arg0;
5412 int _arg1;
5413 PyObject * _argo0 = 0;
5414 char *_kwnames[] = { "self","n", NULL };
5415
5416 self = self;
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1))
5418 return NULL;
5419 if (_argo0) {
5420 if (_argo0 == Py_None) { _arg0 = NULL; }
5421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p.");
5423 return NULL;
5424 }
5425 }
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 _result = (bool )wxListBox_IsSelected(_arg0,_arg1);
5429
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) return NULL;
5432 } _resultobj = Py_BuildValue("i",_result);
5433 return _resultobj;
5434 }
5435
5436 #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0))
5437 static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) {
5438 PyObject * _resultobj;
5439 bool _result;
5440 wxListBox * _arg0;
5441 int _arg1;
5442 PyObject * _argo0 = 0;
5443 char *_kwnames[] = { "self","n", NULL };
5444
5445 self = self;
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1))
5447 return NULL;
5448 if (_argo0) {
5449 if (_argo0 == Py_None) { _arg0 = NULL; }
5450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p.");
5452 return NULL;
5453 }
5454 }
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 _result = (bool )wxListBox_Selected(_arg0,_arg1);
5458
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) return NULL;
5461 } _resultobj = Py_BuildValue("i",_result);
5462 return _resultobj;
5463 }
5464
5465 #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
5466 static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5467 PyObject * _resultobj;
5468 wxListBox * _arg0;
5469 int _arg1;
5470 wxString * _arg2;
5471 PyObject * _argo0 = 0;
5472 PyObject * _obj2 = 0;
5473 char *_kwnames[] = { "self","choices", NULL };
5474
5475 self = self;
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2))
5477 return NULL;
5478 if (_argo0) {
5479 if (_argo0 == Py_None) { _arg0 = NULL; }
5480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p.");
5482 return NULL;
5483 }
5484 }
5485 if (_obj2)
5486 {
5487 _arg2 = wxString_LIST_helper(_obj2);
5488 if (_arg2 == NULL) {
5489 return NULL;
5490 }
5491 }
5492 {
5493 if (_obj2) {
5494 _arg1 = PyList_Size(_obj2);
5495 }
5496 else {
5497 _arg1 = 0;
5498 }
5499 }
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 wxListBox_Set(_arg0,_arg1,_arg2);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) return NULL;
5506 } Py_INCREF(Py_None);
5507 _resultobj = Py_None;
5508 {
5509 delete [] _arg2;
5510 }
5511 return _resultobj;
5512 }
5513
5514 #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
5515 static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5516 PyObject * _resultobj;
5517 wxListBox * _arg0;
5518 int _arg1;
5519 PyObject * _argo0 = 0;
5520 char *_kwnames[] = { "self","n", NULL };
5521
5522 self = self;
5523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1))
5524 return NULL;
5525 if (_argo0) {
5526 if (_argo0 == Py_None) { _arg0 = NULL; }
5527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p.");
5529 return NULL;
5530 }
5531 }
5532 {
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 wxListBox_SetFirstItem(_arg0,_arg1);
5535
5536 wxPyEndAllowThreads(__tstate);
5537 if (PyErr_Occurred()) return NULL;
5538 } Py_INCREF(Py_None);
5539 _resultobj = Py_None;
5540 return _resultobj;
5541 }
5542
5543 #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0))
5544 static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject * _resultobj;
5546 wxListBox * _arg0;
5547 wxString * _arg1;
5548 PyObject * _argo0 = 0;
5549 PyObject * _obj1 = 0;
5550 char *_kwnames[] = { "self","string", NULL };
5551
5552 self = self;
5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1))
5554 return NULL;
5555 if (_argo0) {
5556 if (_argo0 == Py_None) { _arg0 = NULL; }
5557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p.");
5559 return NULL;
5560 }
5561 }
5562 {
5563 _arg1 = wxString_in_helper(_obj1);
5564 if (_arg1 == NULL)
5565 return NULL;
5566 }
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 wxListBox_SetFirstItemStr(_arg0,*_arg1);
5570
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) return NULL;
5573 } Py_INCREF(Py_None);
5574 _resultobj = Py_None;
5575 {
5576 if (_obj1)
5577 delete _arg1;
5578 }
5579 return _resultobj;
5580 }
5581
5582 #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
5583 static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5584 PyObject * _resultobj;
5585 wxListBox * _arg0;
5586 int _arg1;
5587 bool _arg2 = (bool ) TRUE;
5588 PyObject * _argo0 = 0;
5589 int tempbool2 = (int) TRUE;
5590 char *_kwnames[] = { "self","n","select", NULL };
5591
5592 self = self;
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2))
5594 return NULL;
5595 if (_argo0) {
5596 if (_argo0 == Py_None) { _arg0 = NULL; }
5597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p.");
5599 return NULL;
5600 }
5601 }
5602 _arg2 = (bool ) tempbool2;
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 wxListBox_SetSelection(_arg0,_arg1,_arg2);
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) return NULL;
5609 } Py_INCREF(Py_None);
5610 _resultobj = Py_None;
5611 return _resultobj;
5612 }
5613
5614 #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
5615 static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
5616 PyObject * _resultobj;
5617 wxListBox * _arg0;
5618 int _arg1;
5619 wxString * _arg2;
5620 PyObject * _argo0 = 0;
5621 PyObject * _obj2 = 0;
5622 char *_kwnames[] = { "self","n","string", NULL };
5623
5624 self = self;
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
5626 return NULL;
5627 if (_argo0) {
5628 if (_argo0 == Py_None) { _arg0 = NULL; }
5629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p.");
5631 return NULL;
5632 }
5633 }
5634 {
5635 _arg2 = wxString_in_helper(_obj2);
5636 if (_arg2 == NULL)
5637 return NULL;
5638 }
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 wxListBox_SetString(_arg0,_arg1,*_arg2);
5642
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) return NULL;
5645 } Py_INCREF(Py_None);
5646 _resultobj = Py_None;
5647 {
5648 if (_obj2)
5649 delete _arg2;
5650 }
5651 return _resultobj;
5652 }
5653
5654 #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1))
5655 static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
5656 PyObject * _resultobj;
5657 wxListBox * _arg0;
5658 wxString * _arg1;
5659 bool _arg2 = (bool ) TRUE;
5660 PyObject * _argo0 = 0;
5661 PyObject * _obj1 = 0;
5662 int tempbool2 = (int) TRUE;
5663 char *_kwnames[] = { "self","string","select", NULL };
5664
5665 self = self;
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2))
5667 return NULL;
5668 if (_argo0) {
5669 if (_argo0 == Py_None) { _arg0 = NULL; }
5670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) {
5671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p.");
5672 return NULL;
5673 }
5674 }
5675 {
5676 _arg1 = wxString_in_helper(_obj1);
5677 if (_arg1 == NULL)
5678 return NULL;
5679 }
5680 _arg2 = (bool ) tempbool2;
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 wxListBox_SetStringSelection(_arg0,*_arg1,_arg2);
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) return NULL;
5687 } Py_INCREF(Py_None);
5688 _resultobj = Py_None;
5689 {
5690 if (_obj1)
5691 delete _arg1;
5692 }
5693 return _resultobj;
5694 }
5695
5696 static void *SwigwxCheckListBoxTowxListBox(void *ptr) {
5697 wxCheckListBox *src;
5698 wxListBox *dest;
5699 src = (wxCheckListBox *) ptr;
5700 dest = (wxListBox *) src;
5701 return (void *) dest;
5702 }
5703
5704 static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) {
5705 wxCheckListBox *src;
5706 wxControlWithItems *dest;
5707 src = (wxCheckListBox *) ptr;
5708 dest = (wxControlWithItems *) src;
5709 return (void *) dest;
5710 }
5711
5712 static void *SwigwxCheckListBoxTowxControl(void *ptr) {
5713 wxCheckListBox *src;
5714 wxControl *dest;
5715 src = (wxCheckListBox *) ptr;
5716 dest = (wxControl *) src;
5717 return (void *) dest;
5718 }
5719
5720 static void *SwigwxCheckListBoxTowxWindow(void *ptr) {
5721 wxCheckListBox *src;
5722 wxWindow *dest;
5723 src = (wxCheckListBox *) ptr;
5724 dest = (wxWindow *) src;
5725 return (void *) dest;
5726 }
5727
5728 static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) {
5729 wxCheckListBox *src;
5730 wxEvtHandler *dest;
5731 src = (wxCheckListBox *) ptr;
5732 dest = (wxEvtHandler *) src;
5733 return (void *) dest;
5734 }
5735
5736 static void *SwigwxCheckListBoxTowxObject(void *ptr) {
5737 wxCheckListBox *src;
5738 wxObject *dest;
5739 src = (wxCheckListBox *) ptr;
5740 dest = (wxObject *) src;
5741 return (void *) dest;
5742 }
5743
5744 #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5745 static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject * _resultobj;
5747 wxCheckListBox * _result;
5748 wxWindow * _arg0;
5749 wxWindowID _arg1;
5750 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5751 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5752 int _arg4 = (int ) 0;
5753 wxString * _arg5 = (wxString *) NULL;
5754 long _arg6 = (long ) 0;
5755 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
5756 wxString * _arg8 = (wxString *) &wxPyListBoxNameStr;
5757 PyObject * _argo0 = 0;
5758 wxPoint temp;
5759 PyObject * _obj2 = 0;
5760 wxSize temp0;
5761 PyObject * _obj3 = 0;
5762 PyObject * _obj5 = 0;
5763 PyObject * _argo7 = 0;
5764 PyObject * _obj8 = 0;
5765 char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL };
5766 char _ptemp[128];
5767
5768 self = self;
5769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8))
5770 return NULL;
5771 if (_argo0) {
5772 if (_argo0 == Py_None) { _arg0 = NULL; }
5773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p.");
5775 return NULL;
5776 }
5777 }
5778 if (_obj2)
5779 {
5780 _arg2 = &temp;
5781 if (! wxPoint_helper(_obj2, &_arg2))
5782 return NULL;
5783 }
5784 if (_obj3)
5785 {
5786 _arg3 = &temp0;
5787 if (! wxSize_helper(_obj3, &_arg3))
5788 return NULL;
5789 }
5790 if (_obj5)
5791 {
5792 _arg5 = wxString_LIST_helper(_obj5);
5793 if (_arg5 == NULL) {
5794 return NULL;
5795 }
5796 }
5797 if (_argo7) {
5798 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
5799 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p.");
5800 return NULL;
5801 }
5802 }
5803 if (_obj8)
5804 {
5805 _arg8 = wxString_in_helper(_obj8);
5806 if (_arg8 == NULL)
5807 return NULL;
5808 }
5809 {
5810 if (_obj5) {
5811 _arg4 = PyList_Size(_obj5);
5812 }
5813 else {
5814 _arg4 = 0;
5815 }
5816 }
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8);
5820
5821 wxPyEndAllowThreads(__tstate);
5822 if (PyErr_Occurred()) return NULL;
5823 } if (_result) {
5824 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5825 _resultobj = Py_BuildValue("s",_ptemp);
5826 } else {
5827 Py_INCREF(Py_None);
5828 _resultobj = Py_None;
5829 }
5830 {
5831 delete [] _arg5;
5832 }
5833 {
5834 if (_obj8)
5835 delete _arg8;
5836 }
5837 return _resultobj;
5838 }
5839
5840 #define new_wxPreCheckListBox() (new wxCheckListBox())
5841 static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject * _resultobj;
5843 wxCheckListBox * _result;
5844 char *_kwnames[] = { NULL };
5845 char _ptemp[128];
5846
5847 self = self;
5848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames))
5849 return NULL;
5850 {
5851 PyThreadState* __tstate = wxPyBeginAllowThreads();
5852 _result = (wxCheckListBox *)new_wxPreCheckListBox();
5853
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) return NULL;
5856 } if (_result) {
5857 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p");
5858 _resultobj = Py_BuildValue("s",_ptemp);
5859 } else {
5860 Py_INCREF(Py_None);
5861 _resultobj = Py_None;
5862 }
5863 return _resultobj;
5864 }
5865
5866 #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5867 static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject * _resultobj;
5869 bool _result;
5870 wxCheckListBox * _arg0;
5871 wxWindow * _arg1;
5872 wxWindowID _arg2;
5873 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5874 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5875 int _arg5 = (int ) 0;
5876 wxString * _arg6 = (wxString *) NULL;
5877 long _arg7 = (long ) 0;
5878 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
5879 wxString * _arg9 = (wxString *) &wxPyListBoxNameStr;
5880 PyObject * _argo0 = 0;
5881 PyObject * _argo1 = 0;
5882 wxPoint temp;
5883 PyObject * _obj3 = 0;
5884 wxSize temp0;
5885 PyObject * _obj4 = 0;
5886 PyObject * _obj6 = 0;
5887 PyObject * _argo8 = 0;
5888 PyObject * _obj9 = 0;
5889 char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL };
5890
5891 self = self;
5892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9))
5893 return NULL;
5894 if (_argo0) {
5895 if (_argo0 == Py_None) { _arg0 = NULL; }
5896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p.");
5898 return NULL;
5899 }
5900 }
5901 if (_argo1) {
5902 if (_argo1 == Py_None) { _arg1 = NULL; }
5903 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5904 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p.");
5905 return NULL;
5906 }
5907 }
5908 if (_obj3)
5909 {
5910 _arg3 = &temp;
5911 if (! wxPoint_helper(_obj3, &_arg3))
5912 return NULL;
5913 }
5914 if (_obj4)
5915 {
5916 _arg4 = &temp0;
5917 if (! wxSize_helper(_obj4, &_arg4))
5918 return NULL;
5919 }
5920 if (_obj6)
5921 {
5922 _arg6 = wxString_LIST_helper(_obj6);
5923 if (_arg6 == NULL) {
5924 return NULL;
5925 }
5926 }
5927 if (_argo8) {
5928 if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
5929 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p.");
5930 return NULL;
5931 }
5932 }
5933 if (_obj9)
5934 {
5935 _arg9 = wxString_in_helper(_obj9);
5936 if (_arg9 == NULL)
5937 return NULL;
5938 }
5939 {
5940 if (_obj6) {
5941 _arg5 = PyList_Size(_obj6);
5942 }
5943 else {
5944 _arg5 = 0;
5945 }
5946 }
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) return NULL;
5953 } _resultobj = Py_BuildValue("i",_result);
5954 {
5955 delete [] _arg6;
5956 }
5957 {
5958 if (_obj9)
5959 delete _arg9;
5960 }
5961 return _resultobj;
5962 }
5963
5964 #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
5965 static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5966 PyObject * _resultobj;
5967 bool _result;
5968 wxCheckListBox * _arg0;
5969 int _arg1;
5970 PyObject * _argo0 = 0;
5971 char *_kwnames[] = { "self","uiIndex", NULL };
5972
5973 self = self;
5974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1))
5975 return NULL;
5976 if (_argo0) {
5977 if (_argo0 == Py_None) { _arg0 = NULL; }
5978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
5979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p.");
5980 return NULL;
5981 }
5982 }
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1);
5986
5987 wxPyEndAllowThreads(__tstate);
5988 if (PyErr_Occurred()) return NULL;
5989 } _resultobj = Py_BuildValue("i",_result);
5990 return _resultobj;
5991 }
5992
5993 #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5994 static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5995 PyObject * _resultobj;
5996 wxCheckListBox * _arg0;
5997 int _arg1;
5998 int _arg2 = (int ) TRUE;
5999 PyObject * _argo0 = 0;
6000 char *_kwnames[] = { "self","uiIndex","bCheck", NULL };
6001
6002 self = self;
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2))
6004 return NULL;
6005 if (_argo0) {
6006 if (_argo0 == Py_None) { _arg0 = NULL; }
6007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
6008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p.");
6009 return NULL;
6010 }
6011 }
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 wxCheckListBox_Check(_arg0,_arg1,_arg2);
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) return NULL;
6018 } Py_INCREF(Py_None);
6019 _resultobj = Py_None;
6020 return _resultobj;
6021 }
6022
6023 #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2))
6024 static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) {
6025 PyObject * _resultobj;
6026 wxCheckListBox * _arg0;
6027 int _arg1;
6028 wxString * _arg2;
6029 int _arg3;
6030 PyObject * _argo0 = 0;
6031 PyObject * _obj2 = 0;
6032 char *_kwnames[] = { "self","choices","pos", NULL };
6033
6034 self = self;
6035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3))
6036 return NULL;
6037 if (_argo0) {
6038 if (_argo0 == Py_None) { _arg0 = NULL; }
6039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
6040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p.");
6041 return NULL;
6042 }
6043 }
6044 {
6045 _arg2 = wxString_LIST_helper(_obj2);
6046 if (_arg2 == NULL) {
6047 return NULL;
6048 }
6049 }
6050 {
6051 if (_obj2) {
6052 _arg1 = PyList_Size(_obj2);
6053 }
6054 else {
6055 _arg1 = 0;
6056 }
6057 }
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3);
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) return NULL;
6064 } Py_INCREF(Py_None);
6065 _resultobj = Py_None;
6066 {
6067 delete [] _arg2;
6068 }
6069 return _resultobj;
6070 }
6071
6072 #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight())
6073 static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6074 PyObject * _resultobj;
6075 int _result;
6076 wxCheckListBox * _arg0;
6077 PyObject * _argo0 = 0;
6078 char *_kwnames[] = { "self", NULL };
6079
6080 self = self;
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0))
6082 return NULL;
6083 if (_argo0) {
6084 if (_argo0 == Py_None) { _arg0 = NULL; }
6085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
6086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p.");
6087 return NULL;
6088 }
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 _result = (int )wxCheckListBox_GetItemHeight(_arg0);
6093
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) return NULL;
6096 } _resultobj = Py_BuildValue("i",_result);
6097 return _resultobj;
6098 }
6099
6100 #define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
6101 static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject * _resultobj;
6103 int _result;
6104 wxCheckListBox * _arg0;
6105 wxPoint * _arg1;
6106 PyObject * _argo0 = 0;
6107 wxPoint temp;
6108 PyObject * _obj1 = 0;
6109 char *_kwnames[] = { "self","pt", NULL };
6110
6111 self = self;
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1))
6113 return NULL;
6114 if (_argo0) {
6115 if (_argo0 == Py_None) { _arg0 = NULL; }
6116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
6117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p.");
6118 return NULL;
6119 }
6120 }
6121 {
6122 _arg1 = &temp;
6123 if (! wxPoint_helper(_obj1, &_arg1))
6124 return NULL;
6125 }
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 _result = (int )wxCheckListBox_HitTest(_arg0,*_arg1);
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) return NULL;
6132 } _resultobj = Py_BuildValue("i",_result);
6133 return _resultobj;
6134 }
6135
6136 #define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
6137 static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject * _resultobj;
6139 int _result;
6140 wxCheckListBox * _arg0;
6141 wxCoord _arg1;
6142 wxCoord _arg2;
6143 PyObject * _argo0 = 0;
6144 char *_kwnames[] = { "self","x","y", NULL };
6145
6146 self = self;
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2))
6148 return NULL;
6149 if (_argo0) {
6150 if (_argo0 == Py_None) { _arg0 = NULL; }
6151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) {
6152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p.");
6153 return NULL;
6154 }
6155 }
6156 {
6157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6158 _result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2);
6159
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) return NULL;
6162 } _resultobj = Py_BuildValue("i",_result);
6163 return _resultobj;
6164 }
6165
6166 #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6167 static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6168 PyObject * _resultobj;
6169 wxTextAttr * _result;
6170 wxColour * _arg0 = (wxColour *) &wxNullColour;
6171 wxColour * _arg1 = (wxColour *) &wxNullColour;
6172 wxFont * _arg2 = (wxFont *) &wxNullFont;
6173 wxTextAttrAlignment _arg3 = (wxTextAttrAlignment ) (wxTEXT_ALIGNMENT_DEFAULT);
6174 wxColour temp;
6175 PyObject * _obj0 = 0;
6176 wxColour temp0;
6177 PyObject * _obj1 = 0;
6178 PyObject * _argo2 = 0;
6179 char *_kwnames[] = { "colText","colBack","font","alignment", NULL };
6180 char _ptemp[128];
6181
6182 self = self;
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOi:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2,&_arg3))
6184 return NULL;
6185 if (_obj0)
6186 {
6187 _arg0 = &temp;
6188 if (! wxColour_helper(_obj0, &_arg0))
6189 return NULL;
6190 }
6191 if (_obj1)
6192 {
6193 _arg1 = &temp0;
6194 if (! wxColour_helper(_obj1, &_arg1))
6195 return NULL;
6196 }
6197 if (_argo2) {
6198 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
6199 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p.");
6200 return NULL;
6201 }
6202 }
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2,_arg3);
6206
6207 wxPyEndAllowThreads(__tstate);
6208 if (PyErr_Occurred()) return NULL;
6209 } if (_result) {
6210 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p");
6211 _resultobj = Py_BuildValue("s",_ptemp);
6212 } else {
6213 Py_INCREF(Py_None);
6214 _resultobj = Py_None;
6215 }
6216 return _resultobj;
6217 }
6218
6219 #define delete_wxTextAttr(_swigobj) (delete _swigobj)
6220 static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6221 PyObject * _resultobj;
6222 wxTextAttr * _arg0;
6223 PyObject * _argo0 = 0;
6224 char *_kwnames[] = { "self", NULL };
6225
6226 self = self;
6227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0))
6228 return NULL;
6229 if (_argo0) {
6230 if (_argo0 == Py_None) { _arg0 = NULL; }
6231 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p.");
6233 return NULL;
6234 }
6235 }
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 delete_wxTextAttr(_arg0);
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) return NULL;
6242 } Py_INCREF(Py_None);
6243 _resultobj = Py_None;
6244 return _resultobj;
6245 }
6246
6247 #define wxTextAttr_Init(_swigobj) (_swigobj->Init())
6248 static PyObject *_wrap_wxTextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6249 PyObject * _resultobj;
6250 wxTextAttr * _arg0;
6251 PyObject * _argo0 = 0;
6252 char *_kwnames[] = { "self", NULL };
6253
6254 self = self;
6255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_Init",_kwnames,&_argo0))
6256 return NULL;
6257 if (_argo0) {
6258 if (_argo0 == Py_None) { _arg0 = NULL; }
6259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Init. Expected _wxTextAttr_p.");
6261 return NULL;
6262 }
6263 }
6264 {
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 wxTextAttr_Init(_arg0);
6267
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) return NULL;
6270 } Py_INCREF(Py_None);
6271 _resultobj = Py_None;
6272 return _resultobj;
6273 }
6274
6275 #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
6276 static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6277 PyObject * _resultobj;
6278 wxTextAttr * _arg0;
6279 wxColour * _arg1;
6280 PyObject * _argo0 = 0;
6281 wxColour temp;
6282 PyObject * _obj1 = 0;
6283 char *_kwnames[] = { "self","colText", NULL };
6284
6285 self = self;
6286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
6287 return NULL;
6288 if (_argo0) {
6289 if (_argo0 == Py_None) { _arg0 = NULL; }
6290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p.");
6292 return NULL;
6293 }
6294 }
6295 {
6296 _arg1 = &temp;
6297 if (! wxColour_helper(_obj1, &_arg1))
6298 return NULL;
6299 }
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 wxTextAttr_SetTextColour(_arg0,*_arg1);
6303
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) return NULL;
6306 } Py_INCREF(Py_None);
6307 _resultobj = Py_None;
6308 return _resultobj;
6309 }
6310
6311 #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
6312 static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6313 PyObject * _resultobj;
6314 wxTextAttr * _arg0;
6315 wxColour * _arg1;
6316 PyObject * _argo0 = 0;
6317 wxColour temp;
6318 PyObject * _obj1 = 0;
6319 char *_kwnames[] = { "self","colBack", NULL };
6320
6321 self = self;
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
6323 return NULL;
6324 if (_argo0) {
6325 if (_argo0 == Py_None) { _arg0 = NULL; }
6326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p.");
6328 return NULL;
6329 }
6330 }
6331 {
6332 _arg1 = &temp;
6333 if (! wxColour_helper(_obj1, &_arg1))
6334 return NULL;
6335 }
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 wxTextAttr_SetBackgroundColour(_arg0,*_arg1);
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) return NULL;
6342 } Py_INCREF(Py_None);
6343 _resultobj = Py_None;
6344 return _resultobj;
6345 }
6346
6347 #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6348 static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6349 PyObject * _resultobj;
6350 wxTextAttr * _arg0;
6351 wxFont * _arg1;
6352 PyObject * _argo0 = 0;
6353 PyObject * _argo1 = 0;
6354 char *_kwnames[] = { "self","font", NULL };
6355
6356 self = self;
6357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1))
6358 return NULL;
6359 if (_argo0) {
6360 if (_argo0 == Py_None) { _arg0 = NULL; }
6361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p.");
6363 return NULL;
6364 }
6365 }
6366 if (_argo1) {
6367 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
6368 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p.");
6369 return NULL;
6370 }
6371 }
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 wxTextAttr_SetFont(_arg0,*_arg1);
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) return NULL;
6378 } Py_INCREF(Py_None);
6379 _resultobj = Py_None;
6380 return _resultobj;
6381 }
6382
6383 #define wxTextAttr_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0))
6384 static PyObject *_wrap_wxTextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6385 PyObject * _resultobj;
6386 wxTextAttr * _arg0;
6387 wxTextAttrAlignment _arg1;
6388 PyObject * _argo0 = 0;
6389 char *_kwnames[] = { "self","alignment", NULL };
6390
6391 self = self;
6392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetAlignment",_kwnames,&_argo0,&_arg1))
6393 return NULL;
6394 if (_argo0) {
6395 if (_argo0 == Py_None) { _arg0 = NULL; }
6396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetAlignment. Expected _wxTextAttr_p.");
6398 return NULL;
6399 }
6400 }
6401 {
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 wxTextAttr_SetAlignment(_arg0,_arg1);
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) return NULL;
6407 } Py_INCREF(Py_None);
6408 _resultobj = Py_None;
6409 return _resultobj;
6410 }
6411
6412 #define wxTextAttr_SetTabs(_swigobj,_swigarg0) (_swigobj->SetTabs(_swigarg0))
6413 static PyObject *_wrap_wxTextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject * _resultobj;
6415 wxTextAttr * _arg0;
6416 wxArrayInt * _arg1;
6417 PyObject * _argo0 = 0;
6418 PyObject * _obj1 = 0;
6419 char *_kwnames[] = { "self","tabs", NULL };
6420
6421 self = self;
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTabs",_kwnames,&_argo0,&_obj1))
6423 return NULL;
6424 if (_argo0) {
6425 if (_argo0 == Py_None) { _arg0 = NULL; }
6426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTabs. Expected _wxTextAttr_p.");
6428 return NULL;
6429 }
6430 }
6431 {
6432 if (! PySequence_Check(_obj1)) {
6433 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
6434 return NULL;
6435 }
6436 _arg1 = new wxArrayInt;
6437 int i, len=PySequence_Length(_obj1);
6438 for (i=0; i<len; i++) {
6439 PyObject* item = PySequence_GetItem(_obj1, i);
6440 PyObject* number = PyNumber_Int(item);
6441 _arg1->Add(PyInt_AS_LONG(number));
6442 Py_DECREF(item);
6443 Py_DECREF(number);
6444 }
6445 }
6446 {
6447 PyThreadState* __tstate = wxPyBeginAllowThreads();
6448 wxTextAttr_SetTabs(_arg0,*_arg1);
6449
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) return NULL;
6452 } Py_INCREF(Py_None);
6453 _resultobj = Py_None;
6454 {
6455 if (_obj1)
6456 delete _arg1;
6457 }
6458 return _resultobj;
6459 }
6460
6461 #define wxTextAttr_SetLeftIndent(_swigobj,_swigarg0) (_swigobj->SetLeftIndent(_swigarg0))
6462 static PyObject *_wrap_wxTextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6463 PyObject * _resultobj;
6464 wxTextAttr * _arg0;
6465 int _arg1;
6466 PyObject * _argo0 = 0;
6467 char *_kwnames[] = { "self","indent", NULL };
6468
6469 self = self;
6470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetLeftIndent",_kwnames,&_argo0,&_arg1))
6471 return NULL;
6472 if (_argo0) {
6473 if (_argo0 == Py_None) { _arg0 = NULL; }
6474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetLeftIndent. Expected _wxTextAttr_p.");
6476 return NULL;
6477 }
6478 }
6479 {
6480 PyThreadState* __tstate = wxPyBeginAllowThreads();
6481 wxTextAttr_SetLeftIndent(_arg0,_arg1);
6482
6483 wxPyEndAllowThreads(__tstate);
6484 if (PyErr_Occurred()) return NULL;
6485 } Py_INCREF(Py_None);
6486 _resultobj = Py_None;
6487 return _resultobj;
6488 }
6489
6490 #define wxTextAttr_SetRightIndent(_swigobj,_swigarg0) (_swigobj->SetRightIndent(_swigarg0))
6491 static PyObject *_wrap_wxTextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject * _resultobj;
6493 wxTextAttr * _arg0;
6494 int _arg1;
6495 PyObject * _argo0 = 0;
6496 char *_kwnames[] = { "self","indent", NULL };
6497
6498 self = self;
6499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetRightIndent",_kwnames,&_argo0,&_arg1))
6500 return NULL;
6501 if (_argo0) {
6502 if (_argo0 == Py_None) { _arg0 = NULL; }
6503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetRightIndent. Expected _wxTextAttr_p.");
6505 return NULL;
6506 }
6507 }
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 wxTextAttr_SetRightIndent(_arg0,_arg1);
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) return NULL;
6514 } Py_INCREF(Py_None);
6515 _resultobj = Py_None;
6516 return _resultobj;
6517 }
6518
6519 #define wxTextAttr_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
6520 static PyObject *_wrap_wxTextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject * _resultobj;
6522 wxTextAttr * _arg0;
6523 long _arg1;
6524 PyObject * _argo0 = 0;
6525 char *_kwnames[] = { "self","flags", NULL };
6526
6527 self = self;
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextAttr_SetFlags",_kwnames,&_argo0,&_arg1))
6529 return NULL;
6530 if (_argo0) {
6531 if (_argo0 == Py_None) { _arg0 = NULL; }
6532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFlags. Expected _wxTextAttr_p.");
6534 return NULL;
6535 }
6536 }
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 wxTextAttr_SetFlags(_arg0,_arg1);
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) return NULL;
6543 } Py_INCREF(Py_None);
6544 _resultobj = Py_None;
6545 return _resultobj;
6546 }
6547
6548 #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
6549 static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6550 PyObject * _resultobj;
6551 bool _result;
6552 wxTextAttr * _arg0;
6553 PyObject * _argo0 = 0;
6554 char *_kwnames[] = { "self", NULL };
6555
6556 self = self;
6557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0))
6558 return NULL;
6559 if (_argo0) {
6560 if (_argo0 == Py_None) { _arg0 = NULL; }
6561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p.");
6563 return NULL;
6564 }
6565 }
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 _result = (bool )wxTextAttr_HasTextColour(_arg0);
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) return NULL;
6572 } _resultobj = Py_BuildValue("i",_result);
6573 return _resultobj;
6574 }
6575
6576 #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
6577 static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6578 PyObject * _resultobj;
6579 bool _result;
6580 wxTextAttr * _arg0;
6581 PyObject * _argo0 = 0;
6582 char *_kwnames[] = { "self", NULL };
6583
6584 self = self;
6585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0))
6586 return NULL;
6587 if (_argo0) {
6588 if (_argo0 == Py_None) { _arg0 = NULL; }
6589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p.");
6591 return NULL;
6592 }
6593 }
6594 {
6595 PyThreadState* __tstate = wxPyBeginAllowThreads();
6596 _result = (bool )wxTextAttr_HasBackgroundColour(_arg0);
6597
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) return NULL;
6600 } _resultobj = Py_BuildValue("i",_result);
6601 return _resultobj;
6602 }
6603
6604 #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont())
6605 static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6606 PyObject * _resultobj;
6607 bool _result;
6608 wxTextAttr * _arg0;
6609 PyObject * _argo0 = 0;
6610 char *_kwnames[] = { "self", NULL };
6611
6612 self = self;
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0))
6614 return NULL;
6615 if (_argo0) {
6616 if (_argo0 == Py_None) { _arg0 = NULL; }
6617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p.");
6619 return NULL;
6620 }
6621 }
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 _result = (bool )wxTextAttr_HasFont(_arg0);
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) return NULL;
6628 } _resultobj = Py_BuildValue("i",_result);
6629 return _resultobj;
6630 }
6631
6632 #define wxTextAttr_HasAlignment(_swigobj) (_swigobj->HasAlignment())
6633 static PyObject *_wrap_wxTextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6634 PyObject * _resultobj;
6635 bool _result;
6636 wxTextAttr * _arg0;
6637 PyObject * _argo0 = 0;
6638 char *_kwnames[] = { "self", NULL };
6639
6640 self = self;
6641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasAlignment",_kwnames,&_argo0))
6642 return NULL;
6643 if (_argo0) {
6644 if (_argo0 == Py_None) { _arg0 = NULL; }
6645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasAlignment. Expected _wxTextAttr_p.");
6647 return NULL;
6648 }
6649 }
6650 {
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 _result = (bool )wxTextAttr_HasAlignment(_arg0);
6653
6654 wxPyEndAllowThreads(__tstate);
6655 if (PyErr_Occurred()) return NULL;
6656 } _resultobj = Py_BuildValue("i",_result);
6657 return _resultobj;
6658 }
6659
6660 #define wxTextAttr_HasTabs(_swigobj) (_swigobj->HasTabs())
6661 static PyObject *_wrap_wxTextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6662 PyObject * _resultobj;
6663 bool _result;
6664 wxTextAttr * _arg0;
6665 PyObject * _argo0 = 0;
6666 char *_kwnames[] = { "self", NULL };
6667
6668 self = self;
6669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTabs",_kwnames,&_argo0))
6670 return NULL;
6671 if (_argo0) {
6672 if (_argo0 == Py_None) { _arg0 = NULL; }
6673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTabs. Expected _wxTextAttr_p.");
6675 return NULL;
6676 }
6677 }
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 _result = (bool )wxTextAttr_HasTabs(_arg0);
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) return NULL;
6684 } _resultobj = Py_BuildValue("i",_result);
6685 return _resultobj;
6686 }
6687
6688 #define wxTextAttr_HasLeftIndent(_swigobj) (_swigobj->HasLeftIndent())
6689 static PyObject *_wrap_wxTextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6690 PyObject * _resultobj;
6691 bool _result;
6692 wxTextAttr * _arg0;
6693 PyObject * _argo0 = 0;
6694 char *_kwnames[] = { "self", NULL };
6695
6696 self = self;
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasLeftIndent",_kwnames,&_argo0))
6698 return NULL;
6699 if (_argo0) {
6700 if (_argo0 == Py_None) { _arg0 = NULL; }
6701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasLeftIndent. Expected _wxTextAttr_p.");
6703 return NULL;
6704 }
6705 }
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 _result = (bool )wxTextAttr_HasLeftIndent(_arg0);
6709
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) return NULL;
6712 } _resultobj = Py_BuildValue("i",_result);
6713 return _resultobj;
6714 }
6715
6716 #define wxTextAttr_HasRightIndent(_swigobj) (_swigobj->HasRightIndent())
6717 static PyObject *_wrap_wxTextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6718 PyObject * _resultobj;
6719 bool _result;
6720 wxTextAttr * _arg0;
6721 PyObject * _argo0 = 0;
6722 char *_kwnames[] = { "self", NULL };
6723
6724 self = self;
6725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasRightIndent",_kwnames,&_argo0))
6726 return NULL;
6727 if (_argo0) {
6728 if (_argo0 == Py_None) { _arg0 = NULL; }
6729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasRightIndent. Expected _wxTextAttr_p.");
6731 return NULL;
6732 }
6733 }
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 _result = (bool )wxTextAttr_HasRightIndent(_arg0);
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) return NULL;
6740 } _resultobj = Py_BuildValue("i",_result);
6741 return _resultobj;
6742 }
6743
6744 #define wxTextAttr_HasFlag(_swigobj,_swigarg0) (_swigobj->HasFlag(_swigarg0))
6745 static PyObject *_wrap_wxTextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
6746 PyObject * _resultobj;
6747 bool _result;
6748 wxTextAttr * _arg0;
6749 long _arg1;
6750 PyObject * _argo0 = 0;
6751 char *_kwnames[] = { "self","flag", NULL };
6752
6753 self = self;
6754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextAttr_HasFlag",_kwnames,&_argo0,&_arg1))
6755 return NULL;
6756 if (_argo0) {
6757 if (_argo0 == Py_None) { _arg0 = NULL; }
6758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFlag. Expected _wxTextAttr_p.");
6760 return NULL;
6761 }
6762 }
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 _result = (bool )wxTextAttr_HasFlag(_arg0,_arg1);
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) return NULL;
6769 } _resultobj = Py_BuildValue("i",_result);
6770 return _resultobj;
6771 }
6772
6773 #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
6774 static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6775 PyObject * _resultobj;
6776 wxColour * _result;
6777 wxTextAttr * _arg0;
6778 PyObject * _argo0 = 0;
6779 char *_kwnames[] = { "self", NULL };
6780 char _ptemp[128];
6781
6782 self = self;
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0))
6784 return NULL;
6785 if (_argo0) {
6786 if (_argo0 == Py_None) { _arg0 = NULL; }
6787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p.");
6789 return NULL;
6790 }
6791 }
6792 {
6793 PyThreadState* __tstate = wxPyBeginAllowThreads();
6794 _result = new wxColour (wxTextAttr_GetTextColour(_arg0));
6795
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) return NULL;
6798 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6799 _resultobj = Py_BuildValue("s",_ptemp);
6800 return _resultobj;
6801 }
6802
6803 #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
6804 static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6805 PyObject * _resultobj;
6806 wxColour * _result;
6807 wxTextAttr * _arg0;
6808 PyObject * _argo0 = 0;
6809 char *_kwnames[] = { "self", NULL };
6810 char _ptemp[128];
6811
6812 self = self;
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0))
6814 return NULL;
6815 if (_argo0) {
6816 if (_argo0 == Py_None) { _arg0 = NULL; }
6817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p.");
6819 return NULL;
6820 }
6821 }
6822 {
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0));
6825
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) return NULL;
6828 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6829 _resultobj = Py_BuildValue("s",_ptemp);
6830 return _resultobj;
6831 }
6832
6833 #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont())
6834 static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject * _resultobj;
6836 wxFont * _result;
6837 wxTextAttr * _arg0;
6838 PyObject * _argo0 = 0;
6839 char *_kwnames[] = { "self", NULL };
6840 char _ptemp[128];
6841
6842 self = self;
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0))
6844 return NULL;
6845 if (_argo0) {
6846 if (_argo0 == Py_None) { _arg0 = NULL; }
6847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p.");
6849 return NULL;
6850 }
6851 }
6852 {
6853 PyThreadState* __tstate = wxPyBeginAllowThreads();
6854 _result = new wxFont (wxTextAttr_GetFont(_arg0));
6855
6856 wxPyEndAllowThreads(__tstate);
6857 if (PyErr_Occurred()) return NULL;
6858 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
6859 _resultobj = Py_BuildValue("s",_ptemp);
6860 return _resultobj;
6861 }
6862
6863 #define wxTextAttr_GetAlignment(_swigobj) (_swigobj->GetAlignment())
6864 static PyObject *_wrap_wxTextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
6865 PyObject * _resultobj;
6866 wxTextAttrAlignment _result;
6867 wxTextAttr * _arg0;
6868 PyObject * _argo0 = 0;
6869 char *_kwnames[] = { "self", NULL };
6870
6871 self = self;
6872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetAlignment",_kwnames,&_argo0))
6873 return NULL;
6874 if (_argo0) {
6875 if (_argo0 == Py_None) { _arg0 = NULL; }
6876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetAlignment. Expected _wxTextAttr_p.");
6878 return NULL;
6879 }
6880 }
6881 {
6882 PyThreadState* __tstate = wxPyBeginAllowThreads();
6883 _result = (wxTextAttrAlignment )wxTextAttr_GetAlignment(_arg0);
6884
6885 wxPyEndAllowThreads(__tstate);
6886 if (PyErr_Occurred()) return NULL;
6887 } _resultobj = Py_BuildValue("i",_result);
6888 return _resultobj;
6889 }
6890
6891 #define wxTextAttr_GetTabs(_swigobj) (_swigobj->GetTabs())
6892 static PyObject *_wrap_wxTextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject * _resultobj;
6894 wxArrayInt * _result;
6895 wxTextAttr * _arg0;
6896 PyObject * _argo0 = 0;
6897 char *_kwnames[] = { "self", NULL };
6898
6899 self = self;
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTabs",_kwnames,&_argo0))
6901 return NULL;
6902 if (_argo0) {
6903 if (_argo0 == Py_None) { _arg0 = NULL; }
6904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTabs. Expected _wxTextAttr_p.");
6906 return NULL;
6907 }
6908 }
6909 {
6910 PyThreadState* __tstate = wxPyBeginAllowThreads();
6911 const wxArrayInt & _result_ref = wxTextAttr_GetTabs(_arg0);
6912 _result = (wxArrayInt *) &_result_ref;
6913
6914 wxPyEndAllowThreads(__tstate);
6915 if (PyErr_Occurred()) return NULL;
6916 }{
6917 _resultobj = PyList_New(0);
6918 size_t idx;
6919 for (idx = 0; idx < _result->GetCount(); idx += 1) {
6920 PyObject* val = PyInt_FromLong(_result->Item(idx));
6921 PyList_Append(_resultobj, val);
6922 Py_DECREF(val);
6923 }
6924 }
6925 return _resultobj;
6926 }
6927
6928 #define wxTextAttr_GetLeftIndent(_swigobj) (_swigobj->GetLeftIndent())
6929 static PyObject *_wrap_wxTextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject * _resultobj;
6931 long _result;
6932 wxTextAttr * _arg0;
6933 PyObject * _argo0 = 0;
6934 char *_kwnames[] = { "self", NULL };
6935
6936 self = self;
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetLeftIndent",_kwnames,&_argo0))
6938 return NULL;
6939 if (_argo0) {
6940 if (_argo0 == Py_None) { _arg0 = NULL; }
6941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetLeftIndent. Expected _wxTextAttr_p.");
6943 return NULL;
6944 }
6945 }
6946 {
6947 PyThreadState* __tstate = wxPyBeginAllowThreads();
6948 _result = (long )wxTextAttr_GetLeftIndent(_arg0);
6949
6950 wxPyEndAllowThreads(__tstate);
6951 if (PyErr_Occurred()) return NULL;
6952 } _resultobj = Py_BuildValue("l",_result);
6953 return _resultobj;
6954 }
6955
6956 #define wxTextAttr_GetRightIndent(_swigobj) (_swigobj->GetRightIndent())
6957 static PyObject *_wrap_wxTextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
6958 PyObject * _resultobj;
6959 long _result;
6960 wxTextAttr * _arg0;
6961 PyObject * _argo0 = 0;
6962 char *_kwnames[] = { "self", NULL };
6963
6964 self = self;
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetRightIndent",_kwnames,&_argo0))
6966 return NULL;
6967 if (_argo0) {
6968 if (_argo0 == Py_None) { _arg0 = NULL; }
6969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetRightIndent. Expected _wxTextAttr_p.");
6971 return NULL;
6972 }
6973 }
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 _result = (long )wxTextAttr_GetRightIndent(_arg0);
6977
6978 wxPyEndAllowThreads(__tstate);
6979 if (PyErr_Occurred()) return NULL;
6980 } _resultobj = Py_BuildValue("l",_result);
6981 return _resultobj;
6982 }
6983
6984 #define wxTextAttr_GetFlags(_swigobj) (_swigobj->GetFlags())
6985 static PyObject *_wrap_wxTextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
6986 PyObject * _resultobj;
6987 long _result;
6988 wxTextAttr * _arg0;
6989 PyObject * _argo0 = 0;
6990 char *_kwnames[] = { "self", NULL };
6991
6992 self = self;
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFlags",_kwnames,&_argo0))
6994 return NULL;
6995 if (_argo0) {
6996 if (_argo0 == Py_None) { _arg0 = NULL; }
6997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
6998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFlags. Expected _wxTextAttr_p.");
6999 return NULL;
7000 }
7001 }
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 _result = (long )wxTextAttr_GetFlags(_arg0);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) return NULL;
7008 } _resultobj = Py_BuildValue("l",_result);
7009 return _resultobj;
7010 }
7011
7012 #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault())
7013 static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
7014 PyObject * _resultobj;
7015 bool _result;
7016 wxTextAttr * _arg0;
7017 PyObject * _argo0 = 0;
7018 char *_kwnames[] = { "self", NULL };
7019
7020 self = self;
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0))
7022 return NULL;
7023 if (_argo0) {
7024 if (_argo0 == Py_None) { _arg0 = NULL; }
7025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
7026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p.");
7027 return NULL;
7028 }
7029 }
7030 {
7031 PyThreadState* __tstate = wxPyBeginAllowThreads();
7032 _result = (bool )wxTextAttr_IsDefault(_arg0);
7033
7034 wxPyEndAllowThreads(__tstate);
7035 if (PyErr_Occurred()) return NULL;
7036 } _resultobj = Py_BuildValue("i",_result);
7037 return _resultobj;
7038 }
7039
7040 static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject * _resultobj;
7042 wxTextAttr * _result;
7043 wxTextAttr * _arg0;
7044 wxTextAttr * _arg1;
7045 wxTextCtrl * _arg2;
7046 PyObject * _argo0 = 0;
7047 PyObject * _argo1 = 0;
7048 PyObject * _argo2 = 0;
7049 char *_kwnames[] = { "attr","attrDef","text", NULL };
7050 char _ptemp[128];
7051
7052 self = self;
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2))
7054 return NULL;
7055 if (_argo0) {
7056 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) {
7057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
7058 return NULL;
7059 }
7060 }
7061 if (_argo1) {
7062 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
7063 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p.");
7064 return NULL;
7065 }
7066 }
7067 if (_argo2) {
7068 if (_argo2 == Py_None) { _arg2 = NULL; }
7069 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) {
7070 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p.");
7071 return NULL;
7072 }
7073 }
7074 {
7075 PyThreadState* __tstate = wxPyBeginAllowThreads();
7076 _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2));
7077
7078 wxPyEndAllowThreads(__tstate);
7079 if (PyErr_Occurred()) return NULL;
7080 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p");
7081 _resultobj = Py_BuildValue("s",_ptemp);
7082 return _resultobj;
7083 }
7084
7085 static void *SwigwxTextCtrlTowxControl(void *ptr) {
7086 wxTextCtrl *src;
7087 wxControl *dest;
7088 src = (wxTextCtrl *) ptr;
7089 dest = (wxControl *) src;
7090 return (void *) dest;
7091 }
7092
7093 static void *SwigwxTextCtrlTowxWindow(void *ptr) {
7094 wxTextCtrl *src;
7095 wxWindow *dest;
7096 src = (wxTextCtrl *) ptr;
7097 dest = (wxWindow *) src;
7098 return (void *) dest;
7099 }
7100
7101 static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) {
7102 wxTextCtrl *src;
7103 wxEvtHandler *dest;
7104 src = (wxTextCtrl *) ptr;
7105 dest = (wxEvtHandler *) src;
7106 return (void *) dest;
7107 }
7108
7109 static void *SwigwxTextCtrlTowxObject(void *ptr) {
7110 wxTextCtrl *src;
7111 wxObject *dest;
7112 src = (wxTextCtrl *) ptr;
7113 dest = (wxObject *) src;
7114 return (void *) dest;
7115 }
7116
7117 #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
7118 static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7119 PyObject * _resultobj;
7120 wxTextCtrl * _result;
7121 wxWindow * _arg0;
7122 wxWindowID _arg1;
7123 wxString * _arg2 = (wxString *) &wxPyEmptyString;
7124 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7125 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7126 long _arg5 = (long ) 0;
7127 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
7128 wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr;
7129 PyObject * _argo0 = 0;
7130 PyObject * _obj2 = 0;
7131 wxPoint temp;
7132 PyObject * _obj3 = 0;
7133 wxSize temp0;
7134 PyObject * _obj4 = 0;
7135 PyObject * _argo6 = 0;
7136 PyObject * _obj7 = 0;
7137 char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL };
7138 char _ptemp[128];
7139
7140 self = self;
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
7142 return NULL;
7143 if (_argo0) {
7144 if (_argo0 == Py_None) { _arg0 = NULL; }
7145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p.");
7147 return NULL;
7148 }
7149 }
7150 if (_obj2)
7151 {
7152 _arg2 = wxString_in_helper(_obj2);
7153 if (_arg2 == NULL)
7154 return NULL;
7155 }
7156 if (_obj3)
7157 {
7158 _arg3 = &temp;
7159 if (! wxPoint_helper(_obj3, &_arg3))
7160 return NULL;
7161 }
7162 if (_obj4)
7163 {
7164 _arg4 = &temp0;
7165 if (! wxSize_helper(_obj4, &_arg4))
7166 return NULL;
7167 }
7168 if (_argo6) {
7169 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
7170 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p.");
7171 return NULL;
7172 }
7173 }
7174 if (_obj7)
7175 {
7176 _arg7 = wxString_in_helper(_obj7);
7177 if (_arg7 == NULL)
7178 return NULL;
7179 }
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) return NULL;
7186 } if (_result) {
7187 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
7188 _resultobj = Py_BuildValue("s",_ptemp);
7189 } else {
7190 Py_INCREF(Py_None);
7191 _resultobj = Py_None;
7192 }
7193 {
7194 if (_obj2)
7195 delete _arg2;
7196 }
7197 {
7198 if (_obj7)
7199 delete _arg7;
7200 }
7201 return _resultobj;
7202 }
7203
7204 #define new_wxPreTextCtrl() (new wxTextCtrl())
7205 static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7206 PyObject * _resultobj;
7207 wxTextCtrl * _result;
7208 char *_kwnames[] = { NULL };
7209 char _ptemp[128];
7210
7211 self = self;
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames))
7213 return NULL;
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 _result = (wxTextCtrl *)new_wxPreTextCtrl();
7217
7218 wxPyEndAllowThreads(__tstate);
7219 if (PyErr_Occurred()) return NULL;
7220 } if (_result) {
7221 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
7222 _resultobj = Py_BuildValue("s",_ptemp);
7223 } else {
7224 Py_INCREF(Py_None);
7225 _resultobj = Py_None;
7226 }
7227 return _resultobj;
7228 }
7229
7230 #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
7231 static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7232 PyObject * _resultobj;
7233 bool _result;
7234 wxTextCtrl * _arg0;
7235 wxWindow * _arg1;
7236 wxWindowID _arg2;
7237 wxString * _arg3 = (wxString *) &wxPyEmptyString;
7238 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
7239 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
7240 long _arg6 = (long ) 0;
7241 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
7242 wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr;
7243 PyObject * _argo0 = 0;
7244 PyObject * _argo1 = 0;
7245 PyObject * _obj3 = 0;
7246 wxPoint temp;
7247 PyObject * _obj4 = 0;
7248 wxSize temp0;
7249 PyObject * _obj5 = 0;
7250 PyObject * _argo7 = 0;
7251 PyObject * _obj8 = 0;
7252 char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL };
7253
7254 self = self;
7255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
7256 return NULL;
7257 if (_argo0) {
7258 if (_argo0 == Py_None) { _arg0 = NULL; }
7259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p.");
7261 return NULL;
7262 }
7263 }
7264 if (_argo1) {
7265 if (_argo1 == Py_None) { _arg1 = NULL; }
7266 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7267 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p.");
7268 return NULL;
7269 }
7270 }
7271 if (_obj3)
7272 {
7273 _arg3 = wxString_in_helper(_obj3);
7274 if (_arg3 == NULL)
7275 return NULL;
7276 }
7277 if (_obj4)
7278 {
7279 _arg4 = &temp;
7280 if (! wxPoint_helper(_obj4, &_arg4))
7281 return NULL;
7282 }
7283 if (_obj5)
7284 {
7285 _arg5 = &temp0;
7286 if (! wxSize_helper(_obj5, &_arg5))
7287 return NULL;
7288 }
7289 if (_argo7) {
7290 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
7291 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p.");
7292 return NULL;
7293 }
7294 }
7295 if (_obj8)
7296 {
7297 _arg8 = wxString_in_helper(_obj8);
7298 if (_arg8 == NULL)
7299 return NULL;
7300 }
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) return NULL;
7307 } _resultobj = Py_BuildValue("i",_result);
7308 {
7309 if (_obj3)
7310 delete _arg3;
7311 }
7312 {
7313 if (_obj8)
7314 delete _arg8;
7315 }
7316 return _resultobj;
7317 }
7318
7319 #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue())
7320 static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7321 PyObject * _resultobj;
7322 wxString * _result;
7323 wxTextCtrl * _arg0;
7324 PyObject * _argo0 = 0;
7325 char *_kwnames[] = { "self", NULL };
7326
7327 self = self;
7328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0))
7329 return NULL;
7330 if (_argo0) {
7331 if (_argo0 == Py_None) { _arg0 = NULL; }
7332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p.");
7334 return NULL;
7335 }
7336 }
7337 {
7338 PyThreadState* __tstate = wxPyBeginAllowThreads();
7339 _result = new wxString (wxTextCtrl_GetValue(_arg0));
7340
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) return NULL;
7343 }{
7344 #if wxUSE_UNICODE
7345 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
7346 #else
7347 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7348 #endif
7349 }
7350 {
7351 delete _result;
7352 }
7353 return _resultobj;
7354 }
7355
7356 #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
7357 static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject * _resultobj;
7359 wxTextCtrl * _arg0;
7360 wxString * _arg1;
7361 PyObject * _argo0 = 0;
7362 PyObject * _obj1 = 0;
7363 char *_kwnames[] = { "self","value", NULL };
7364
7365 self = self;
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1))
7367 return NULL;
7368 if (_argo0) {
7369 if (_argo0 == Py_None) { _arg0 = NULL; }
7370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p.");
7372 return NULL;
7373 }
7374 }
7375 {
7376 _arg1 = wxString_in_helper(_obj1);
7377 if (_arg1 == NULL)
7378 return NULL;
7379 }
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 wxTextCtrl_SetValue(_arg0,*_arg1);
7383
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) return NULL;
7386 } Py_INCREF(Py_None);
7387 _resultobj = Py_None;
7388 {
7389 if (_obj1)
7390 delete _arg1;
7391 }
7392 return _resultobj;
7393 }
7394
7395 #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1))
7396 static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
7397 PyObject * _resultobj;
7398 wxString * _result;
7399 wxTextCtrl * _arg0;
7400 long _arg1;
7401 long _arg2;
7402 PyObject * _argo0 = 0;
7403 char *_kwnames[] = { "self","from","to", NULL };
7404
7405 self = self;
7406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2))
7407 return NULL;
7408 if (_argo0) {
7409 if (_argo0 == Py_None) { _arg0 = NULL; }
7410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p.");
7412 return NULL;
7413 }
7414 }
7415 {
7416 PyThreadState* __tstate = wxPyBeginAllowThreads();
7417 _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2));
7418
7419 wxPyEndAllowThreads(__tstate);
7420 if (PyErr_Occurred()) return NULL;
7421 }{
7422 #if wxUSE_UNICODE
7423 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
7424 #else
7425 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7426 #endif
7427 }
7428 {
7429 delete _result;
7430 }
7431 return _resultobj;
7432 }
7433
7434 #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0))
7435 static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7436 PyObject * _resultobj;
7437 int _result;
7438 wxTextCtrl * _arg0;
7439 long _arg1;
7440 PyObject * _argo0 = 0;
7441 char *_kwnames[] = { "self","lineNo", NULL };
7442
7443 self = self;
7444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1))
7445 return NULL;
7446 if (_argo0) {
7447 if (_argo0 == Py_None) { _arg0 = NULL; }
7448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p.");
7450 return NULL;
7451 }
7452 }
7453 {
7454 PyThreadState* __tstate = wxPyBeginAllowThreads();
7455 _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1);
7456
7457 wxPyEndAllowThreads(__tstate);
7458 if (PyErr_Occurred()) return NULL;
7459 } _resultobj = Py_BuildValue("i",_result);
7460 return _resultobj;
7461 }
7462
7463 #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0))
7464 static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) {
7465 PyObject * _resultobj;
7466 wxString * _result;
7467 wxTextCtrl * _arg0;
7468 long _arg1;
7469 PyObject * _argo0 = 0;
7470 char *_kwnames[] = { "self","lineNo", NULL };
7471
7472 self = self;
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1))
7474 return NULL;
7475 if (_argo0) {
7476 if (_argo0 == Py_None) { _arg0 = NULL; }
7477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p.");
7479 return NULL;
7480 }
7481 }
7482 {
7483 PyThreadState* __tstate = wxPyBeginAllowThreads();
7484 _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1));
7485
7486 wxPyEndAllowThreads(__tstate);
7487 if (PyErr_Occurred()) return NULL;
7488 }{
7489 #if wxUSE_UNICODE
7490 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
7491 #else
7492 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7493 #endif
7494 }
7495 {
7496 delete _result;
7497 }
7498 return _resultobj;
7499 }
7500
7501 #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines())
7502 static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) {
7503 PyObject * _resultobj;
7504 int _result;
7505 wxTextCtrl * _arg0;
7506 PyObject * _argo0 = 0;
7507 char *_kwnames[] = { "self", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p.");
7516 return NULL;
7517 }
7518 }
7519 {
7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
7521 _result = (int )wxTextCtrl_GetNumberOfLines(_arg0);
7522
7523 wxPyEndAllowThreads(__tstate);
7524 if (PyErr_Occurred()) return NULL;
7525 } _resultobj = Py_BuildValue("i",_result);
7526 return _resultobj;
7527 }
7528
7529 #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified())
7530 static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) {
7531 PyObject * _resultobj;
7532 bool _result;
7533 wxTextCtrl * _arg0;
7534 PyObject * _argo0 = 0;
7535 char *_kwnames[] = { "self", NULL };
7536
7537 self = self;
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0))
7539 return NULL;
7540 if (_argo0) {
7541 if (_argo0 == Py_None) { _arg0 = NULL; }
7542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p.");
7544 return NULL;
7545 }
7546 }
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 _result = (bool )wxTextCtrl_IsModified(_arg0);
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) return NULL;
7553 } _resultobj = Py_BuildValue("i",_result);
7554 return _resultobj;
7555 }
7556
7557 #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable())
7558 static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7559 PyObject * _resultobj;
7560 bool _result;
7561 wxTextCtrl * _arg0;
7562 PyObject * _argo0 = 0;
7563 char *_kwnames[] = { "self", NULL };
7564
7565 self = self;
7566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0))
7567 return NULL;
7568 if (_argo0) {
7569 if (_argo0 == Py_None) { _arg0 = NULL; }
7570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p.");
7572 return NULL;
7573 }
7574 }
7575 {
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 _result = (bool )wxTextCtrl_IsEditable(_arg0);
7578
7579 wxPyEndAllowThreads(__tstate);
7580 if (PyErr_Occurred()) return NULL;
7581 } _resultobj = Py_BuildValue("i",_result);
7582 return _resultobj;
7583 }
7584
7585 #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1))
7586 static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7587 PyObject * _resultobj;
7588 wxTextCtrl * _arg0;
7589 long * _arg1;
7590 long temp;
7591 long * _arg2;
7592 long temp0;
7593 PyObject * _argo0 = 0;
7594 char *_kwnames[] = { "self", NULL };
7595
7596 self = self;
7597 {
7598 _arg1 = &temp;
7599 }
7600 {
7601 _arg2 = &temp0;
7602 }
7603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0))
7604 return NULL;
7605 if (_argo0) {
7606 if (_argo0 == Py_None) { _arg0 = NULL; }
7607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p.");
7609 return NULL;
7610 }
7611 }
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 wxTextCtrl_GetSelection(_arg0,_arg1,_arg2);
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) return NULL;
7618 } Py_INCREF(Py_None);
7619 _resultobj = Py_None;
7620 {
7621 PyObject *o;
7622 o = PyInt_FromLong((long) (*_arg1));
7623 _resultobj = t_output_helper(_resultobj, o);
7624 }
7625 {
7626 PyObject *o;
7627 o = PyInt_FromLong((long) (*_arg2));
7628 _resultobj = t_output_helper(_resultobj, o);
7629 }
7630 return _resultobj;
7631 }
7632
7633 #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
7634 static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject * _resultobj;
7636 wxString * _result;
7637 wxTextCtrl * _arg0;
7638 PyObject * _argo0 = 0;
7639 char *_kwnames[] = { "self", NULL };
7640
7641 self = self;
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0))
7643 return NULL;
7644 if (_argo0) {
7645 if (_argo0 == Py_None) { _arg0 = NULL; }
7646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p.");
7648 return NULL;
7649 }
7650 }
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 _result = new wxString (wxTextCtrl_GetStringSelection(_arg0));
7654
7655 wxPyEndAllowThreads(__tstate);
7656 if (PyErr_Occurred()) return NULL;
7657 }{
7658 #if wxUSE_UNICODE
7659 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
7660 #else
7661 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7662 #endif
7663 }
7664 {
7665 delete _result;
7666 }
7667 return _resultobj;
7668 }
7669
7670 #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear())
7671 static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
7672 PyObject * _resultobj;
7673 wxTextCtrl * _arg0;
7674 PyObject * _argo0 = 0;
7675 char *_kwnames[] = { "self", NULL };
7676
7677 self = self;
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0))
7679 return NULL;
7680 if (_argo0) {
7681 if (_argo0 == Py_None) { _arg0 = NULL; }
7682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p.");
7684 return NULL;
7685 }
7686 }
7687 {
7688 PyThreadState* __tstate = wxPyBeginAllowThreads();
7689 wxTextCtrl_Clear(_arg0);
7690
7691 wxPyEndAllowThreads(__tstate);
7692 if (PyErr_Occurred()) return NULL;
7693 } Py_INCREF(Py_None);
7694 _resultobj = Py_None;
7695 return _resultobj;
7696 }
7697
7698 #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
7699 static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
7700 PyObject * _resultobj;
7701 wxTextCtrl * _arg0;
7702 long _arg1;
7703 long _arg2;
7704 wxString * _arg3;
7705 PyObject * _argo0 = 0;
7706 PyObject * _obj3 = 0;
7707 char *_kwnames[] = { "self","from","to","value", NULL };
7708
7709 self = self;
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
7711 return NULL;
7712 if (_argo0) {
7713 if (_argo0 == Py_None) { _arg0 = NULL; }
7714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p.");
7716 return NULL;
7717 }
7718 }
7719 {
7720 _arg3 = wxString_in_helper(_obj3);
7721 if (_arg3 == NULL)
7722 return NULL;
7723 }
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3);
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) return NULL;
7730 } Py_INCREF(Py_None);
7731 _resultobj = Py_None;
7732 {
7733 if (_obj3)
7734 delete _arg3;
7735 }
7736 return _resultobj;
7737 }
7738
7739 #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1))
7740 static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7741 PyObject * _resultobj;
7742 wxTextCtrl * _arg0;
7743 long _arg1;
7744 long _arg2;
7745 PyObject * _argo0 = 0;
7746 char *_kwnames[] = { "self","from","to", NULL };
7747
7748 self = self;
7749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2))
7750 return NULL;
7751 if (_argo0) {
7752 if (_argo0 == Py_None) { _arg0 = NULL; }
7753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p.");
7755 return NULL;
7756 }
7757 }
7758 {
7759 PyThreadState* __tstate = wxPyBeginAllowThreads();
7760 wxTextCtrl_Remove(_arg0,_arg1,_arg2);
7761
7762 wxPyEndAllowThreads(__tstate);
7763 if (PyErr_Occurred()) return NULL;
7764 } Py_INCREF(Py_None);
7765 _resultobj = Py_None;
7766 return _resultobj;
7767 }
7768
7769 #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
7770 static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject * _resultobj;
7772 bool _result;
7773 wxTextCtrl * _arg0;
7774 wxString * _arg1;
7775 PyObject * _argo0 = 0;
7776 PyObject * _obj1 = 0;
7777 char *_kwnames[] = { "self","file", NULL };
7778
7779 self = self;
7780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
7781 return NULL;
7782 if (_argo0) {
7783 if (_argo0 == Py_None) { _arg0 = NULL; }
7784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p.");
7786 return NULL;
7787 }
7788 }
7789 {
7790 _arg1 = wxString_in_helper(_obj1);
7791 if (_arg1 == NULL)
7792 return NULL;
7793 }
7794 {
7795 PyThreadState* __tstate = wxPyBeginAllowThreads();
7796 _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1);
7797
7798 wxPyEndAllowThreads(__tstate);
7799 if (PyErr_Occurred()) return NULL;
7800 } _resultobj = Py_BuildValue("i",_result);
7801 {
7802 if (_obj1)
7803 delete _arg1;
7804 }
7805 return _resultobj;
7806 }
7807
7808 #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
7809 static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7810 PyObject * _resultobj;
7811 bool _result;
7812 wxTextCtrl * _arg0;
7813 wxString * _arg1 = (wxString *) &wxPyEmptyString;
7814 PyObject * _argo0 = 0;
7815 PyObject * _obj1 = 0;
7816 char *_kwnames[] = { "self","file", NULL };
7817
7818 self = self;
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
7820 return NULL;
7821 if (_argo0) {
7822 if (_argo0 == Py_None) { _arg0 = NULL; }
7823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p.");
7825 return NULL;
7826 }
7827 }
7828 if (_obj1)
7829 {
7830 _arg1 = wxString_in_helper(_obj1);
7831 if (_arg1 == NULL)
7832 return NULL;
7833 }
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1);
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) return NULL;
7840 } _resultobj = Py_BuildValue("i",_result);
7841 {
7842 if (_obj1)
7843 delete _arg1;
7844 }
7845 return _resultobj;
7846 }
7847
7848 #define wxTextCtrl_MarkDirty(_swigobj) (_swigobj->MarkDirty())
7849 static PyObject *_wrap_wxTextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) {
7850 PyObject * _resultobj;
7851 wxTextCtrl * _arg0;
7852 PyObject * _argo0 = 0;
7853 char *_kwnames[] = { "self", NULL };
7854
7855 self = self;
7856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_MarkDirty",_kwnames,&_argo0))
7857 return NULL;
7858 if (_argo0) {
7859 if (_argo0 == Py_None) { _arg0 = NULL; }
7860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_MarkDirty. Expected _wxTextCtrl_p.");
7862 return NULL;
7863 }
7864 }
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 wxTextCtrl_MarkDirty(_arg0);
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) return NULL;
7871 } Py_INCREF(Py_None);
7872 _resultobj = Py_None;
7873 return _resultobj;
7874 }
7875
7876 #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits())
7877 static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) {
7878 PyObject * _resultobj;
7879 wxTextCtrl * _arg0;
7880 PyObject * _argo0 = 0;
7881 char *_kwnames[] = { "self", NULL };
7882
7883 self = self;
7884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0))
7885 return NULL;
7886 if (_argo0) {
7887 if (_argo0 == Py_None) { _arg0 = NULL; }
7888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p.");
7890 return NULL;
7891 }
7892 }
7893 {
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 wxTextCtrl_DiscardEdits(_arg0);
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) return NULL;
7899 } Py_INCREF(Py_None);
7900 _resultobj = Py_None;
7901 return _resultobj;
7902 }
7903
7904 #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0))
7905 static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) {
7906 PyObject * _resultobj;
7907 wxTextCtrl * _arg0;
7908 unsigned long _arg1;
7909 PyObject * _argo0 = 0;
7910 char *_kwnames[] = { "self","len", NULL };
7911
7912 self = self;
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1))
7914 return NULL;
7915 if (_argo0) {
7916 if (_argo0 == Py_None) { _arg0 = NULL; }
7917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p.");
7919 return NULL;
7920 }
7921 }
7922 {
7923 PyThreadState* __tstate = wxPyBeginAllowThreads();
7924 wxTextCtrl_SetMaxLength(_arg0,_arg1);
7925
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) return NULL;
7928 } Py_INCREF(Py_None);
7929 _resultobj = Py_None;
7930 return _resultobj;
7931 }
7932
7933 #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0))
7934 static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) {
7935 PyObject * _resultobj;
7936 wxTextCtrl * _arg0;
7937 wxString * _arg1;
7938 PyObject * _argo0 = 0;
7939 PyObject * _obj1 = 0;
7940 char *_kwnames[] = { "self","text", NULL };
7941
7942 self = self;
7943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1))
7944 return NULL;
7945 if (_argo0) {
7946 if (_argo0 == Py_None) { _arg0 = NULL; }
7947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p.");
7949 return NULL;
7950 }
7951 }
7952 {
7953 _arg1 = wxString_in_helper(_obj1);
7954 if (_arg1 == NULL)
7955 return NULL;
7956 }
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 wxTextCtrl_WriteText(_arg0,*_arg1);
7960
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) return NULL;
7963 } Py_INCREF(Py_None);
7964 _resultobj = Py_None;
7965 {
7966 if (_obj1)
7967 delete _arg1;
7968 }
7969 return _resultobj;
7970 }
7971
7972 #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0))
7973 static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
7974 PyObject * _resultobj;
7975 wxTextCtrl * _arg0;
7976 wxString * _arg1;
7977 PyObject * _argo0 = 0;
7978 PyObject * _obj1 = 0;
7979 char *_kwnames[] = { "self","text", NULL };
7980
7981 self = self;
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1))
7983 return NULL;
7984 if (_argo0) {
7985 if (_argo0 == Py_None) { _arg0 = NULL; }
7986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
7987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p.");
7988 return NULL;
7989 }
7990 }
7991 {
7992 _arg1 = wxString_in_helper(_obj1);
7993 if (_arg1 == NULL)
7994 return NULL;
7995 }
7996 {
7997 PyThreadState* __tstate = wxPyBeginAllowThreads();
7998 wxTextCtrl_AppendText(_arg0,*_arg1);
7999
8000 wxPyEndAllowThreads(__tstate);
8001 if (PyErr_Occurred()) return NULL;
8002 } Py_INCREF(Py_None);
8003 _resultobj = Py_None;
8004 {
8005 if (_obj1)
8006 delete _arg1;
8007 }
8008 return _resultobj;
8009 }
8010
8011 #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0))
8012 static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) {
8013 PyObject * _resultobj;
8014 bool _result;
8015 wxTextCtrl * _arg0;
8016 wxKeyEvent * _arg1;
8017 PyObject * _argo0 = 0;
8018 PyObject * _argo1 = 0;
8019 char *_kwnames[] = { "self","event", NULL };
8020
8021 self = self;
8022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1))
8023 return NULL;
8024 if (_argo0) {
8025 if (_argo0 == Py_None) { _arg0 = NULL; }
8026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p.");
8028 return NULL;
8029 }
8030 }
8031 if (_argo1) {
8032 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) {
8033 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p.");
8034 return NULL;
8035 }
8036 }
8037 {
8038 PyThreadState* __tstate = wxPyBeginAllowThreads();
8039 _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1);
8040
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) return NULL;
8043 } _resultobj = Py_BuildValue("i",_result);
8044 return _resultobj;
8045 }
8046
8047 #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2))
8048 static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8049 PyObject * _resultobj;
8050 bool _result;
8051 wxTextCtrl * _arg0;
8052 long _arg1;
8053 long _arg2;
8054 wxTextAttr * _arg3;
8055 PyObject * _argo0 = 0;
8056 PyObject * _argo3 = 0;
8057 char *_kwnames[] = { "self","start","end","style", NULL };
8058
8059 self = self;
8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
8061 return NULL;
8062 if (_argo0) {
8063 if (_argo0 == Py_None) { _arg0 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p.");
8066 return NULL;
8067 }
8068 }
8069 if (_argo3) {
8070 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) {
8071 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p.");
8072 return NULL;
8073 }
8074 }
8075 {
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3);
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) return NULL;
8081 } _resultobj = Py_BuildValue("i",_result);
8082 return _resultobj;
8083 }
8084
8085 #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0))
8086 static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8087 PyObject * _resultobj;
8088 bool _result;
8089 wxTextCtrl * _arg0;
8090 wxTextAttr * _arg1;
8091 PyObject * _argo0 = 0;
8092 PyObject * _argo1 = 0;
8093 char *_kwnames[] = { "self","style", NULL };
8094
8095 self = self;
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1))
8097 return NULL;
8098 if (_argo0) {
8099 if (_argo0 == Py_None) { _arg0 = NULL; }
8100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p.");
8102 return NULL;
8103 }
8104 }
8105 if (_argo1) {
8106 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) {
8107 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p.");
8108 return NULL;
8109 }
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1);
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) return NULL;
8117 } _resultobj = Py_BuildValue("i",_result);
8118 return _resultobj;
8119 }
8120
8121 #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle())
8122 static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8123 PyObject * _resultobj;
8124 wxTextAttr * _result;
8125 wxTextCtrl * _arg0;
8126 PyObject * _argo0 = 0;
8127 char *_kwnames[] = { "self", NULL };
8128 char _ptemp[128];
8129
8130 self = self;
8131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0))
8132 return NULL;
8133 if (_argo0) {
8134 if (_argo0 == Py_None) { _arg0 = NULL; }
8135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p.");
8137 return NULL;
8138 }
8139 }
8140 {
8141 PyThreadState* __tstate = wxPyBeginAllowThreads();
8142 const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0);
8143 _result = (wxTextAttr *) &_result_ref;
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) return NULL;
8147 } if (_result) {
8148 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_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 wxTextCtrl_GetStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyle(_swigarg0,_swigarg1))
8158 static PyObject *_wrap_wxTextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject * _resultobj;
8160 bool _result;
8161 wxTextCtrl * _arg0;
8162 long _arg1;
8163 wxTextAttr * _arg2;
8164 PyObject * _argo0 = 0;
8165 PyObject * _argo2 = 0;
8166 char *_kwnames[] = { "self","position","style", NULL };
8167
8168 self = self;
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxTextCtrl_GetStyle",_kwnames,&_argo0,&_arg1,&_argo2))
8170 return NULL;
8171 if (_argo0) {
8172 if (_argo0 == Py_None) { _arg0 = NULL; }
8173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStyle. Expected _wxTextCtrl_p.");
8175 return NULL;
8176 }
8177 }
8178 if (_argo2) {
8179 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextAttr_p")) {
8180 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextCtrl_GetStyle. Expected _wxTextAttr_p.");
8181 return NULL;
8182 }
8183 }
8184 {
8185 PyThreadState* __tstate = wxPyBeginAllowThreads();
8186 _result = (bool )wxTextCtrl_GetStyle(_arg0,_arg1,*_arg2);
8187
8188 wxPyEndAllowThreads(__tstate);
8189 if (PyErr_Occurred()) return NULL;
8190 } _resultobj = Py_BuildValue("i",_result);
8191 return _resultobj;
8192 }
8193
8194 #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1))
8195 static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8196 PyObject * _resultobj;
8197 long _result;
8198 wxTextCtrl * _arg0;
8199 long _arg1;
8200 long _arg2;
8201 PyObject * _argo0 = 0;
8202 char *_kwnames[] = { "self","x","y", NULL };
8203
8204 self = self;
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2))
8206 return NULL;
8207 if (_argo0) {
8208 if (_argo0 == Py_None) { _arg0 = NULL; }
8209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p.");
8211 return NULL;
8212 }
8213 }
8214 {
8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
8216 _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2);
8217
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) return NULL;
8220 } _resultobj = Py_BuildValue("l",_result);
8221 return _resultobj;
8222 }
8223
8224 #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2))
8225 static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8226 PyObject * _resultobj;
8227 wxTextCtrl * _arg0;
8228 long _arg1;
8229 long * _arg2;
8230 long temp;
8231 long * _arg3;
8232 long temp0;
8233 PyObject * _argo0 = 0;
8234 char *_kwnames[] = { "self","pos", NULL };
8235
8236 self = self;
8237 {
8238 _arg2 = &temp;
8239 }
8240 {
8241 _arg3 = &temp0;
8242 }
8243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1))
8244 return NULL;
8245 if (_argo0) {
8246 if (_argo0 == Py_None) { _arg0 = NULL; }
8247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p.");
8249 return NULL;
8250 }
8251 }
8252 {
8253 PyThreadState* __tstate = wxPyBeginAllowThreads();
8254 wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3);
8255
8256 wxPyEndAllowThreads(__tstate);
8257 if (PyErr_Occurred()) return NULL;
8258 } Py_INCREF(Py_None);
8259 _resultobj = Py_None;
8260 {
8261 PyObject *o;
8262 o = PyInt_FromLong((long) (*_arg2));
8263 _resultobj = t_output_helper(_resultobj, o);
8264 }
8265 {
8266 PyObject *o;
8267 o = PyInt_FromLong((long) (*_arg3));
8268 _resultobj = t_output_helper(_resultobj, o);
8269 }
8270 return _resultobj;
8271 }
8272
8273 #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0))
8274 static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8275 PyObject * _resultobj;
8276 wxTextCtrl * _arg0;
8277 long _arg1;
8278 PyObject * _argo0 = 0;
8279 char *_kwnames[] = { "self","pos", NULL };
8280
8281 self = self;
8282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1))
8283 return NULL;
8284 if (_argo0) {
8285 if (_argo0 == Py_None) { _arg0 = NULL; }
8286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p.");
8288 return NULL;
8289 }
8290 }
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 wxTextCtrl_ShowPosition(_arg0,_arg1);
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) return NULL;
8297 } Py_INCREF(Py_None);
8298 _resultobj = Py_None;
8299 return _resultobj;
8300 }
8301
8302 #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy())
8303 static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
8304 PyObject * _resultobj;
8305 wxTextCtrl * _arg0;
8306 PyObject * _argo0 = 0;
8307 char *_kwnames[] = { "self", NULL };
8308
8309 self = self;
8310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0))
8311 return NULL;
8312 if (_argo0) {
8313 if (_argo0 == Py_None) { _arg0 = NULL; }
8314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p.");
8316 return NULL;
8317 }
8318 }
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 wxTextCtrl_Copy(_arg0);
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) return NULL;
8325 } Py_INCREF(Py_None);
8326 _resultobj = Py_None;
8327 return _resultobj;
8328 }
8329
8330 #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut())
8331 static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) {
8332 PyObject * _resultobj;
8333 wxTextCtrl * _arg0;
8334 PyObject * _argo0 = 0;
8335 char *_kwnames[] = { "self", NULL };
8336
8337 self = self;
8338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0))
8339 return NULL;
8340 if (_argo0) {
8341 if (_argo0 == Py_None) { _arg0 = NULL; }
8342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p.");
8344 return NULL;
8345 }
8346 }
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 wxTextCtrl_Cut(_arg0);
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) return NULL;
8353 } Py_INCREF(Py_None);
8354 _resultobj = Py_None;
8355 return _resultobj;
8356 }
8357
8358 #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste())
8359 static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject * _resultobj;
8361 wxTextCtrl * _arg0;
8362 PyObject * _argo0 = 0;
8363 char *_kwnames[] = { "self", NULL };
8364
8365 self = self;
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0))
8367 return NULL;
8368 if (_argo0) {
8369 if (_argo0 == Py_None) { _arg0 = NULL; }
8370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p.");
8372 return NULL;
8373 }
8374 }
8375 {
8376 PyThreadState* __tstate = wxPyBeginAllowThreads();
8377 wxTextCtrl_Paste(_arg0);
8378
8379 wxPyEndAllowThreads(__tstate);
8380 if (PyErr_Occurred()) return NULL;
8381 } Py_INCREF(Py_None);
8382 _resultobj = Py_None;
8383 return _resultobj;
8384 }
8385
8386 #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy())
8387 static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
8388 PyObject * _resultobj;
8389 bool _result;
8390 wxTextCtrl * _arg0;
8391 PyObject * _argo0 = 0;
8392 char *_kwnames[] = { "self", NULL };
8393
8394 self = self;
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0))
8396 return NULL;
8397 if (_argo0) {
8398 if (_argo0 == Py_None) { _arg0 = NULL; }
8399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p.");
8401 return NULL;
8402 }
8403 }
8404 {
8405 PyThreadState* __tstate = wxPyBeginAllowThreads();
8406 _result = (bool )wxTextCtrl_CanCopy(_arg0);
8407
8408 wxPyEndAllowThreads(__tstate);
8409 if (PyErr_Occurred()) return NULL;
8410 } _resultobj = Py_BuildValue("i",_result);
8411 return _resultobj;
8412 }
8413
8414 #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut())
8415 static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) {
8416 PyObject * _resultobj;
8417 bool _result;
8418 wxTextCtrl * _arg0;
8419 PyObject * _argo0 = 0;
8420 char *_kwnames[] = { "self", NULL };
8421
8422 self = self;
8423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0))
8424 return NULL;
8425 if (_argo0) {
8426 if (_argo0 == Py_None) { _arg0 = NULL; }
8427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p.");
8429 return NULL;
8430 }
8431 }
8432 {
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 _result = (bool )wxTextCtrl_CanCut(_arg0);
8435
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) return NULL;
8438 } _resultobj = Py_BuildValue("i",_result);
8439 return _resultobj;
8440 }
8441
8442 #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste())
8443 static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) {
8444 PyObject * _resultobj;
8445 bool _result;
8446 wxTextCtrl * _arg0;
8447 PyObject * _argo0 = 0;
8448 char *_kwnames[] = { "self", NULL };
8449
8450 self = self;
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0))
8452 return NULL;
8453 if (_argo0) {
8454 if (_argo0 == Py_None) { _arg0 = NULL; }
8455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p.");
8457 return NULL;
8458 }
8459 }
8460 {
8461 PyThreadState* __tstate = wxPyBeginAllowThreads();
8462 _result = (bool )wxTextCtrl_CanPaste(_arg0);
8463
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) return NULL;
8466 } _resultobj = Py_BuildValue("i",_result);
8467 return _resultobj;
8468 }
8469
8470 #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo())
8471 static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) {
8472 PyObject * _resultobj;
8473 wxTextCtrl * _arg0;
8474 PyObject * _argo0 = 0;
8475 char *_kwnames[] = { "self", NULL };
8476
8477 self = self;
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0))
8479 return NULL;
8480 if (_argo0) {
8481 if (_argo0 == Py_None) { _arg0 = NULL; }
8482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p.");
8484 return NULL;
8485 }
8486 }
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 wxTextCtrl_Undo(_arg0);
8490
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) return NULL;
8493 } Py_INCREF(Py_None);
8494 _resultobj = Py_None;
8495 return _resultobj;
8496 }
8497
8498 #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo())
8499 static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) {
8500 PyObject * _resultobj;
8501 wxTextCtrl * _arg0;
8502 PyObject * _argo0 = 0;
8503 char *_kwnames[] = { "self", NULL };
8504
8505 self = self;
8506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0))
8507 return NULL;
8508 if (_argo0) {
8509 if (_argo0 == Py_None) { _arg0 = NULL; }
8510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p.");
8512 return NULL;
8513 }
8514 }
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 wxTextCtrl_Redo(_arg0);
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) return NULL;
8521 } Py_INCREF(Py_None);
8522 _resultobj = Py_None;
8523 return _resultobj;
8524 }
8525
8526 #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo())
8527 static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject * _resultobj;
8529 bool _result;
8530 wxTextCtrl * _arg0;
8531 PyObject * _argo0 = 0;
8532 char *_kwnames[] = { "self", NULL };
8533
8534 self = self;
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0))
8536 return NULL;
8537 if (_argo0) {
8538 if (_argo0 == Py_None) { _arg0 = NULL; }
8539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p.");
8541 return NULL;
8542 }
8543 }
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 _result = (bool )wxTextCtrl_CanUndo(_arg0);
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) return NULL;
8550 } _resultobj = Py_BuildValue("i",_result);
8551 return _resultobj;
8552 }
8553
8554 #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo())
8555 static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) {
8556 PyObject * _resultobj;
8557 bool _result;
8558 wxTextCtrl * _arg0;
8559 PyObject * _argo0 = 0;
8560 char *_kwnames[] = { "self", NULL };
8561
8562 self = self;
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0))
8564 return NULL;
8565 if (_argo0) {
8566 if (_argo0 == Py_None) { _arg0 = NULL; }
8567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p.");
8569 return NULL;
8570 }
8571 }
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 _result = (bool )wxTextCtrl_CanRedo(_arg0);
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) return NULL;
8578 } _resultobj = Py_BuildValue("i",_result);
8579 return _resultobj;
8580 }
8581
8582 #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0))
8583 static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8584 PyObject * _resultobj;
8585 wxTextCtrl * _arg0;
8586 long _arg1;
8587 PyObject * _argo0 = 0;
8588 char *_kwnames[] = { "self","pos", NULL };
8589
8590 self = self;
8591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1))
8592 return NULL;
8593 if (_argo0) {
8594 if (_argo0 == Py_None) { _arg0 = NULL; }
8595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p.");
8597 return NULL;
8598 }
8599 }
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 wxTextCtrl_SetInsertionPoint(_arg0,_arg1);
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) return NULL;
8606 } Py_INCREF(Py_None);
8607 _resultobj = Py_None;
8608 return _resultobj;
8609 }
8610
8611 #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd())
8612 static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
8613 PyObject * _resultobj;
8614 wxTextCtrl * _arg0;
8615 PyObject * _argo0 = 0;
8616 char *_kwnames[] = { "self", NULL };
8617
8618 self = self;
8619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0))
8620 return NULL;
8621 if (_argo0) {
8622 if (_argo0 == Py_None) { _arg0 = NULL; }
8623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p.");
8625 return NULL;
8626 }
8627 }
8628 {
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 wxTextCtrl_SetInsertionPointEnd(_arg0);
8631
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) return NULL;
8634 } Py_INCREF(Py_None);
8635 _resultobj = Py_None;
8636 return _resultobj;
8637 }
8638
8639 #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint())
8640 static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8641 PyObject * _resultobj;
8642 long _result;
8643 wxTextCtrl * _arg0;
8644 PyObject * _argo0 = 0;
8645 char *_kwnames[] = { "self", NULL };
8646
8647 self = self;
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0))
8649 return NULL;
8650 if (_argo0) {
8651 if (_argo0 == Py_None) { _arg0 = NULL; }
8652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p.");
8654 return NULL;
8655 }
8656 }
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 _result = (long )wxTextCtrl_GetInsertionPoint(_arg0);
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) return NULL;
8663 } _resultobj = Py_BuildValue("l",_result);
8664 return _resultobj;
8665 }
8666
8667 #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition())
8668 static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject * _resultobj;
8670 long _result;
8671 wxTextCtrl * _arg0;
8672 PyObject * _argo0 = 0;
8673 char *_kwnames[] = { "self", NULL };
8674
8675 self = self;
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0))
8677 return NULL;
8678 if (_argo0) {
8679 if (_argo0 == Py_None) { _arg0 = NULL; }
8680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p.");
8682 return NULL;
8683 }
8684 }
8685 {
8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
8687 _result = (long )wxTextCtrl_GetLastPosition(_arg0);
8688
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) return NULL;
8691 } _resultobj = Py_BuildValue("l",_result);
8692 return _resultobj;
8693 }
8694
8695 #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
8696 static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8697 PyObject * _resultobj;
8698 wxTextCtrl * _arg0;
8699 long _arg1;
8700 long _arg2;
8701 PyObject * _argo0 = 0;
8702 char *_kwnames[] = { "self","from","to", NULL };
8703
8704 self = self;
8705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
8706 return NULL;
8707 if (_argo0) {
8708 if (_argo0 == Py_None) { _arg0 = NULL; }
8709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p.");
8711 return NULL;
8712 }
8713 }
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 wxTextCtrl_SetSelection(_arg0,_arg1,_arg2);
8717
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) return NULL;
8720 } Py_INCREF(Py_None);
8721 _resultobj = Py_None;
8722 return _resultobj;
8723 }
8724
8725 #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll())
8726 static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8727 PyObject * _resultobj;
8728 wxTextCtrl * _arg0;
8729 PyObject * _argo0 = 0;
8730 char *_kwnames[] = { "self", NULL };
8731
8732 self = self;
8733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0))
8734 return NULL;
8735 if (_argo0) {
8736 if (_argo0 == Py_None) { _arg0 = NULL; }
8737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p.");
8739 return NULL;
8740 }
8741 }
8742 {
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 wxTextCtrl_SelectAll(_arg0);
8745
8746 wxPyEndAllowThreads(__tstate);
8747 if (PyErr_Occurred()) return NULL;
8748 } Py_INCREF(Py_None);
8749 _resultobj = Py_None;
8750 return _resultobj;
8751 }
8752
8753 #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0))
8754 static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8755 PyObject * _resultobj;
8756 wxTextCtrl * _arg0;
8757 bool _arg1;
8758 PyObject * _argo0 = 0;
8759 int tempbool1;
8760 char *_kwnames[] = { "self","editable", NULL };
8761
8762 self = self;
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1))
8764 return NULL;
8765 if (_argo0) {
8766 if (_argo0 == Py_None) { _arg0 = NULL; }
8767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p.");
8769 return NULL;
8770 }
8771 }
8772 _arg1 = (bool ) tempbool1;
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 wxTextCtrl_SetEditable(_arg0,_arg1);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) return NULL;
8779 } Py_INCREF(Py_None);
8780 _resultobj = Py_None;
8781 return _resultobj;
8782 }
8783
8784 #define wxTextCtrl_IsSingleLine(_swigobj) (_swigobj->IsSingleLine())
8785 static PyObject *_wrap_wxTextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject * _resultobj;
8787 bool _result;
8788 wxTextCtrl * _arg0;
8789 PyObject * _argo0 = 0;
8790 char *_kwnames[] = { "self", NULL };
8791
8792 self = self;
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsSingleLine",_kwnames,&_argo0))
8794 return NULL;
8795 if (_argo0) {
8796 if (_argo0 == Py_None) { _arg0 = NULL; }
8797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsSingleLine. Expected _wxTextCtrl_p.");
8799 return NULL;
8800 }
8801 }
8802 {
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 _result = (bool )wxTextCtrl_IsSingleLine(_arg0);
8805
8806 wxPyEndAllowThreads(__tstate);
8807 if (PyErr_Occurred()) return NULL;
8808 } _resultobj = Py_BuildValue("i",_result);
8809 return _resultobj;
8810 }
8811
8812 #define wxTextCtrl_IsMultiLine(_swigobj) (_swigobj->IsMultiLine())
8813 static PyObject *_wrap_wxTextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) {
8814 PyObject * _resultobj;
8815 bool _result;
8816 wxTextCtrl * _arg0;
8817 PyObject * _argo0 = 0;
8818 char *_kwnames[] = { "self", NULL };
8819
8820 self = self;
8821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsMultiLine",_kwnames,&_argo0))
8822 return NULL;
8823 if (_argo0) {
8824 if (_argo0 == Py_None) { _arg0 = NULL; }
8825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsMultiLine. Expected _wxTextCtrl_p.");
8827 return NULL;
8828 }
8829 }
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 _result = (bool )wxTextCtrl_IsMultiLine(_arg0);
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) return NULL;
8836 } _resultobj = Py_BuildValue("i",_result);
8837 return _resultobj;
8838 }
8839
8840 static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) {
8841 self->AppendText(text);
8842 }
8843 static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) {
8844 PyObject * _resultobj;
8845 wxTextCtrl * _arg0;
8846 wxString * _arg1;
8847 PyObject * _argo0 = 0;
8848 PyObject * _obj1 = 0;
8849 char *_kwnames[] = { "self","text", NULL };
8850
8851 self = self;
8852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1))
8853 return NULL;
8854 if (_argo0) {
8855 if (_argo0 == Py_None) { _arg0 = NULL; }
8856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p.");
8858 return NULL;
8859 }
8860 }
8861 {
8862 _arg1 = wxString_in_helper(_obj1);
8863 if (_arg1 == NULL)
8864 return NULL;
8865 }
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 wxTextCtrl_write(_arg0,*_arg1);
8869
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) return NULL;
8872 } Py_INCREF(Py_None);
8873 _resultobj = Py_None;
8874 {
8875 if (_obj1)
8876 delete _arg1;
8877 }
8878 return _resultobj;
8879 }
8880
8881 static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) {
8882 return self->GetValue().Mid(from, to - from);
8883 }
8884 static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8885 PyObject * _resultobj;
8886 wxString * _result;
8887 wxTextCtrl * _arg0;
8888 long _arg1;
8889 long _arg2;
8890 PyObject * _argo0 = 0;
8891 char *_kwnames[] = { "self","from","to", NULL };
8892
8893 self = self;
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2))
8895 return NULL;
8896 if (_argo0) {
8897 if (_argo0 == Py_None) { _arg0 = NULL; }
8898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
8899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p.");
8900 return NULL;
8901 }
8902 }
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2));
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) return NULL;
8909 }{
8910 #if wxUSE_UNICODE
8911 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8912 #else
8913 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8914 #endif
8915 }
8916 {
8917 delete _result;
8918 }
8919 return _resultobj;
8920 }
8921
8922 static void *SwigwxScrollBarTowxControl(void *ptr) {
8923 wxScrollBar *src;
8924 wxControl *dest;
8925 src = (wxScrollBar *) ptr;
8926 dest = (wxControl *) src;
8927 return (void *) dest;
8928 }
8929
8930 static void *SwigwxScrollBarTowxWindow(void *ptr) {
8931 wxScrollBar *src;
8932 wxWindow *dest;
8933 src = (wxScrollBar *) ptr;
8934 dest = (wxWindow *) src;
8935 return (void *) dest;
8936 }
8937
8938 static void *SwigwxScrollBarTowxEvtHandler(void *ptr) {
8939 wxScrollBar *src;
8940 wxEvtHandler *dest;
8941 src = (wxScrollBar *) ptr;
8942 dest = (wxEvtHandler *) src;
8943 return (void *) dest;
8944 }
8945
8946 static void *SwigwxScrollBarTowxObject(void *ptr) {
8947 wxScrollBar *src;
8948 wxObject *dest;
8949 src = (wxScrollBar *) ptr;
8950 dest = (wxObject *) src;
8951 return (void *) dest;
8952 }
8953
8954 #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
8955 static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
8956 PyObject * _resultobj;
8957 wxScrollBar * _result;
8958 wxWindow * _arg0;
8959 wxWindowID _arg1 = (wxWindowID ) -1;
8960 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
8961 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
8962 long _arg4 = (long ) wxSB_HORIZONTAL;
8963 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
8964 wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr;
8965 PyObject * _argo0 = 0;
8966 wxPoint temp;
8967 PyObject * _obj2 = 0;
8968 wxSize temp0;
8969 PyObject * _obj3 = 0;
8970 PyObject * _argo5 = 0;
8971 PyObject * _obj6 = 0;
8972 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
8973 char _ptemp[128];
8974
8975 self = self;
8976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
8977 return NULL;
8978 if (_argo0) {
8979 if (_argo0 == Py_None) { _arg0 = NULL; }
8980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p.");
8982 return NULL;
8983 }
8984 }
8985 if (_obj2)
8986 {
8987 _arg2 = &temp;
8988 if (! wxPoint_helper(_obj2, &_arg2))
8989 return NULL;
8990 }
8991 if (_obj3)
8992 {
8993 _arg3 = &temp0;
8994 if (! wxSize_helper(_obj3, &_arg3))
8995 return NULL;
8996 }
8997 if (_argo5) {
8998 if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
8999 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p.");
9000 return NULL;
9001 }
9002 }
9003 if (_obj6)
9004 {
9005 _arg6 = wxString_in_helper(_obj6);
9006 if (_arg6 == NULL)
9007 return NULL;
9008 }
9009 {
9010 PyThreadState* __tstate = wxPyBeginAllowThreads();
9011 _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
9012
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) return NULL;
9015 } if (_result) {
9016 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
9017 _resultobj = Py_BuildValue("s",_ptemp);
9018 } else {
9019 Py_INCREF(Py_None);
9020 _resultobj = Py_None;
9021 }
9022 {
9023 if (_obj6)
9024 delete _arg6;
9025 }
9026 return _resultobj;
9027 }
9028
9029 #define new_wxPreScrollBar() (new wxScrollBar())
9030 static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9031 PyObject * _resultobj;
9032 wxScrollBar * _result;
9033 char *_kwnames[] = { NULL };
9034 char _ptemp[128];
9035
9036 self = self;
9037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames))
9038 return NULL;
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 _result = (wxScrollBar *)new_wxPreScrollBar();
9042
9043 wxPyEndAllowThreads(__tstate);
9044 if (PyErr_Occurred()) return NULL;
9045 } if (_result) {
9046 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
9047 _resultobj = Py_BuildValue("s",_ptemp);
9048 } else {
9049 Py_INCREF(Py_None);
9050 _resultobj = Py_None;
9051 }
9052 return _resultobj;
9053 }
9054
9055 #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
9056 static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject * _resultobj;
9058 bool _result;
9059 wxScrollBar * _arg0;
9060 wxWindow * _arg1;
9061 wxWindowID _arg2 = (wxWindowID ) -1;
9062 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9063 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
9064 long _arg5 = (long ) wxSB_HORIZONTAL;
9065 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
9066 wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr;
9067 PyObject * _argo0 = 0;
9068 PyObject * _argo1 = 0;
9069 wxPoint temp;
9070 PyObject * _obj3 = 0;
9071 wxSize temp0;
9072 PyObject * _obj4 = 0;
9073 PyObject * _argo6 = 0;
9074 PyObject * _obj7 = 0;
9075 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
9076
9077 self = self;
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
9079 return NULL;
9080 if (_argo0) {
9081 if (_argo0 == Py_None) { _arg0 = NULL; }
9082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p.");
9084 return NULL;
9085 }
9086 }
9087 if (_argo1) {
9088 if (_argo1 == Py_None) { _arg1 = NULL; }
9089 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9090 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p.");
9091 return NULL;
9092 }
9093 }
9094 if (_obj3)
9095 {
9096 _arg3 = &temp;
9097 if (! wxPoint_helper(_obj3, &_arg3))
9098 return NULL;
9099 }
9100 if (_obj4)
9101 {
9102 _arg4 = &temp0;
9103 if (! wxSize_helper(_obj4, &_arg4))
9104 return NULL;
9105 }
9106 if (_argo6) {
9107 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
9108 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p.");
9109 return NULL;
9110 }
9111 }
9112 if (_obj7)
9113 {
9114 _arg7 = wxString_in_helper(_obj7);
9115 if (_arg7 == NULL)
9116 return NULL;
9117 }
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) return NULL;
9124 } _resultobj = Py_BuildValue("i",_result);
9125 {
9126 if (_obj7)
9127 delete _arg7;
9128 }
9129 return _resultobj;
9130 }
9131
9132 #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange())
9133 static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9134 PyObject * _resultobj;
9135 int _result;
9136 wxScrollBar * _arg0;
9137 PyObject * _argo0 = 0;
9138 char *_kwnames[] = { "self", NULL };
9139
9140 self = self;
9141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0))
9142 return NULL;
9143 if (_argo0) {
9144 if (_argo0 == Py_None) { _arg0 = NULL; }
9145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p.");
9147 return NULL;
9148 }
9149 }
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 _result = (int )wxScrollBar_GetRange(_arg0);
9153
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) return NULL;
9156 } _resultobj = Py_BuildValue("i",_result);
9157 return _resultobj;
9158 }
9159
9160 #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize())
9161 static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9162 PyObject * _resultobj;
9163 int _result;
9164 wxScrollBar * _arg0;
9165 PyObject * _argo0 = 0;
9166 char *_kwnames[] = { "self", NULL };
9167
9168 self = self;
9169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0))
9170 return NULL;
9171 if (_argo0) {
9172 if (_argo0 == Py_None) { _arg0 = NULL; }
9173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p.");
9175 return NULL;
9176 }
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 _result = (int )wxScrollBar_GetPageSize(_arg0);
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) return NULL;
9184 } _resultobj = Py_BuildValue("i",_result);
9185 return _resultobj;
9186 }
9187
9188 #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition())
9189 static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9190 PyObject * _resultobj;
9191 int _result;
9192 wxScrollBar * _arg0;
9193 PyObject * _argo0 = 0;
9194 char *_kwnames[] = { "self", NULL };
9195
9196 self = self;
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0))
9198 return NULL;
9199 if (_argo0) {
9200 if (_argo0 == Py_None) { _arg0 = NULL; }
9201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p.");
9203 return NULL;
9204 }
9205 }
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 _result = (int )wxScrollBar_GetThumbPosition(_arg0);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) return NULL;
9212 } _resultobj = Py_BuildValue("i",_result);
9213 return _resultobj;
9214 }
9215
9216 #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize())
9217 static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9218 PyObject * _resultobj;
9219 int _result;
9220 wxScrollBar * _arg0;
9221 PyObject * _argo0 = 0;
9222 char *_kwnames[] = { "self", NULL };
9223
9224 self = self;
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0))
9226 return NULL;
9227 if (_argo0) {
9228 if (_argo0 == Py_None) { _arg0 = NULL; }
9229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p.");
9231 return NULL;
9232 }
9233 }
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 _result = (int )wxScrollBar_GetThumbSize(_arg0);
9237
9238 wxPyEndAllowThreads(__tstate);
9239 if (PyErr_Occurred()) return NULL;
9240 } _resultobj = Py_BuildValue("i",_result);
9241 return _resultobj;
9242 }
9243
9244 #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical())
9245 static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
9246 PyObject * _resultobj;
9247 bool _result;
9248 wxScrollBar * _arg0;
9249 PyObject * _argo0 = 0;
9250 char *_kwnames[] = { "self", NULL };
9251
9252 self = self;
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0))
9254 return NULL;
9255 if (_argo0) {
9256 if (_argo0 == Py_None) { _arg0 = NULL; }
9257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p.");
9259 return NULL;
9260 }
9261 }
9262 {
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 _result = (bool )wxScrollBar_IsVertical(_arg0);
9265
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) return NULL;
9268 } _resultobj = Py_BuildValue("i",_result);
9269 return _resultobj;
9270 }
9271
9272 #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0))
9273 static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9274 PyObject * _resultobj;
9275 wxScrollBar * _arg0;
9276 int _arg1;
9277 PyObject * _argo0 = 0;
9278 char *_kwnames[] = { "self","viewStart", NULL };
9279
9280 self = self;
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1))
9282 return NULL;
9283 if (_argo0) {
9284 if (_argo0 == Py_None) { _arg0 = NULL; }
9285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p.");
9287 return NULL;
9288 }
9289 }
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 wxScrollBar_SetThumbPosition(_arg0,_arg1);
9293
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) return NULL;
9296 } Py_INCREF(Py_None);
9297 _resultobj = Py_None;
9298 return _resultobj;
9299 }
9300
9301 #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
9302 static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject * _resultobj;
9304 wxScrollBar * _arg0;
9305 int _arg1;
9306 int _arg2;
9307 int _arg3;
9308 int _arg4;
9309 bool _arg5 = (bool ) TRUE;
9310 PyObject * _argo0 = 0;
9311 int tempbool5 = (int) TRUE;
9312 char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL };
9313
9314 self = self;
9315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
9316 return NULL;
9317 if (_argo0) {
9318 if (_argo0 == Py_None) { _arg0 = NULL; }
9319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) {
9320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p.");
9321 return NULL;
9322 }
9323 }
9324 _arg5 = (bool ) tempbool5;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) return NULL;
9331 } Py_INCREF(Py_None);
9332 _resultobj = Py_None;
9333 return _resultobj;
9334 }
9335
9336 static void *SwigwxSpinButtonTowxControl(void *ptr) {
9337 wxSpinButton *src;
9338 wxControl *dest;
9339 src = (wxSpinButton *) ptr;
9340 dest = (wxControl *) src;
9341 return (void *) dest;
9342 }
9343
9344 static void *SwigwxSpinButtonTowxWindow(void *ptr) {
9345 wxSpinButton *src;
9346 wxWindow *dest;
9347 src = (wxSpinButton *) ptr;
9348 dest = (wxWindow *) src;
9349 return (void *) dest;
9350 }
9351
9352 static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) {
9353 wxSpinButton *src;
9354 wxEvtHandler *dest;
9355 src = (wxSpinButton *) ptr;
9356 dest = (wxEvtHandler *) src;
9357 return (void *) dest;
9358 }
9359
9360 static void *SwigwxSpinButtonTowxObject(void *ptr) {
9361 wxSpinButton *src;
9362 wxObject *dest;
9363 src = (wxSpinButton *) ptr;
9364 dest = (wxObject *) src;
9365 return (void *) dest;
9366 }
9367
9368 #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9369 static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9370 PyObject * _resultobj;
9371 wxSpinButton * _result;
9372 wxWindow * _arg0;
9373 wxWindowID _arg1 = (wxWindowID ) -1;
9374 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
9375 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
9376 long _arg4 = (long ) wxSP_HORIZONTAL;
9377 wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME;
9378 PyObject * _argo0 = 0;
9379 wxPoint temp;
9380 PyObject * _obj2 = 0;
9381 wxSize temp0;
9382 PyObject * _obj3 = 0;
9383 PyObject * _obj5 = 0;
9384 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
9385 char _ptemp[128];
9386
9387 self = self;
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
9389 return NULL;
9390 if (_argo0) {
9391 if (_argo0 == Py_None) { _arg0 = NULL; }
9392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p.");
9394 return NULL;
9395 }
9396 }
9397 if (_obj2)
9398 {
9399 _arg2 = &temp;
9400 if (! wxPoint_helper(_obj2, &_arg2))
9401 return NULL;
9402 }
9403 if (_obj3)
9404 {
9405 _arg3 = &temp0;
9406 if (! wxSize_helper(_obj3, &_arg3))
9407 return NULL;
9408 }
9409 if (_obj5)
9410 {
9411 _arg5 = wxString_in_helper(_obj5);
9412 if (_arg5 == NULL)
9413 return NULL;
9414 }
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) return NULL;
9421 } if (_result) {
9422 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
9423 _resultobj = Py_BuildValue("s",_ptemp);
9424 } else {
9425 Py_INCREF(Py_None);
9426 _resultobj = Py_None;
9427 }
9428 {
9429 if (_obj5)
9430 delete _arg5;
9431 }
9432 return _resultobj;
9433 }
9434
9435 #define new_wxPreSpinButton() (new wxSpinButton())
9436 static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
9437 PyObject * _resultobj;
9438 wxSpinButton * _result;
9439 char *_kwnames[] = { NULL };
9440 char _ptemp[128];
9441
9442 self = self;
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames))
9444 return NULL;
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 _result = (wxSpinButton *)new_wxPreSpinButton();
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) return NULL;
9451 } if (_result) {
9452 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p");
9453 _resultobj = Py_BuildValue("s",_ptemp);
9454 } else {
9455 Py_INCREF(Py_None);
9456 _resultobj = Py_None;
9457 }
9458 return _resultobj;
9459 }
9460
9461 #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9462 static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject * _resultobj;
9464 bool _result;
9465 wxSpinButton * _arg0;
9466 wxWindow * _arg1;
9467 wxWindowID _arg2 = (wxWindowID ) -1;
9468 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9469 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
9470 long _arg5 = (long ) wxSP_HORIZONTAL;
9471 wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME;
9472 PyObject * _argo0 = 0;
9473 PyObject * _argo1 = 0;
9474 wxPoint temp;
9475 PyObject * _obj3 = 0;
9476 wxSize temp0;
9477 PyObject * _obj4 = 0;
9478 PyObject * _obj6 = 0;
9479 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
9480
9481 self = self;
9482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
9483 return NULL;
9484 if (_argo0) {
9485 if (_argo0 == Py_None) { _arg0 = NULL; }
9486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p.");
9488 return NULL;
9489 }
9490 }
9491 if (_argo1) {
9492 if (_argo1 == Py_None) { _arg1 = NULL; }
9493 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9494 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p.");
9495 return NULL;
9496 }
9497 }
9498 if (_obj3)
9499 {
9500 _arg3 = &temp;
9501 if (! wxPoint_helper(_obj3, &_arg3))
9502 return NULL;
9503 }
9504 if (_obj4)
9505 {
9506 _arg4 = &temp0;
9507 if (! wxSize_helper(_obj4, &_arg4))
9508 return NULL;
9509 }
9510 if (_obj6)
9511 {
9512 _arg6 = wxString_in_helper(_obj6);
9513 if (_arg6 == NULL)
9514 return NULL;
9515 }
9516 {
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
9519
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) return NULL;
9522 } _resultobj = Py_BuildValue("i",_result);
9523 {
9524 if (_obj6)
9525 delete _arg6;
9526 }
9527 return _resultobj;
9528 }
9529
9530 #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax())
9531 static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9532 PyObject * _resultobj;
9533 int _result;
9534 wxSpinButton * _arg0;
9535 PyObject * _argo0 = 0;
9536 char *_kwnames[] = { "self", NULL };
9537
9538 self = self;
9539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0))
9540 return NULL;
9541 if (_argo0) {
9542 if (_argo0 == Py_None) { _arg0 = NULL; }
9543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p.");
9545 return NULL;
9546 }
9547 }
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 _result = (int )wxSpinButton_GetMax(_arg0);
9551
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) return NULL;
9554 } _resultobj = Py_BuildValue("i",_result);
9555 return _resultobj;
9556 }
9557
9558 #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin())
9559 static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9560 PyObject * _resultobj;
9561 int _result;
9562 wxSpinButton * _arg0;
9563 PyObject * _argo0 = 0;
9564 char *_kwnames[] = { "self", NULL };
9565
9566 self = self;
9567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0))
9568 return NULL;
9569 if (_argo0) {
9570 if (_argo0 == Py_None) { _arg0 = NULL; }
9571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p.");
9573 return NULL;
9574 }
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 _result = (int )wxSpinButton_GetMin(_arg0);
9579
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) return NULL;
9582 } _resultobj = Py_BuildValue("i",_result);
9583 return _resultobj;
9584 }
9585
9586 #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue())
9587 static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9588 PyObject * _resultobj;
9589 int _result;
9590 wxSpinButton * _arg0;
9591 PyObject * _argo0 = 0;
9592 char *_kwnames[] = { "self", NULL };
9593
9594 self = self;
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0))
9596 return NULL;
9597 if (_argo0) {
9598 if (_argo0 == Py_None) { _arg0 = NULL; }
9599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p.");
9601 return NULL;
9602 }
9603 }
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 _result = (int )wxSpinButton_GetValue(_arg0);
9607
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) return NULL;
9610 } _resultobj = Py_BuildValue("i",_result);
9611 return _resultobj;
9612 }
9613
9614 #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
9615 static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
9616 PyObject * _resultobj;
9617 wxSpinButton * _arg0;
9618 int _arg1;
9619 int _arg2;
9620 PyObject * _argo0 = 0;
9621 char *_kwnames[] = { "self","min","max", NULL };
9622
9623 self = self;
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
9625 return NULL;
9626 if (_argo0) {
9627 if (_argo0 == Py_None) { _arg0 = NULL; }
9628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p.");
9630 return NULL;
9631 }
9632 }
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 wxSpinButton_SetRange(_arg0,_arg1,_arg2);
9636
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) return NULL;
9639 } Py_INCREF(Py_None);
9640 _resultobj = Py_None;
9641 return _resultobj;
9642 }
9643
9644 #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
9645 static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9646 PyObject * _resultobj;
9647 wxSpinButton * _arg0;
9648 int _arg1;
9649 PyObject * _argo0 = 0;
9650 char *_kwnames[] = { "self","value", NULL };
9651
9652 self = self;
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1))
9654 return NULL;
9655 if (_argo0) {
9656 if (_argo0 == Py_None) { _arg0 = NULL; }
9657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) {
9658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p.");
9659 return NULL;
9660 }
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 wxSpinButton_SetValue(_arg0,_arg1);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) return NULL;
9668 } Py_INCREF(Py_None);
9669 _resultobj = Py_None;
9670 return _resultobj;
9671 }
9672
9673 static void *SwigwxStaticBitmapTowxControl(void *ptr) {
9674 wxStaticBitmap *src;
9675 wxControl *dest;
9676 src = (wxStaticBitmap *) ptr;
9677 dest = (wxControl *) src;
9678 return (void *) dest;
9679 }
9680
9681 static void *SwigwxStaticBitmapTowxWindow(void *ptr) {
9682 wxStaticBitmap *src;
9683 wxWindow *dest;
9684 src = (wxStaticBitmap *) ptr;
9685 dest = (wxWindow *) src;
9686 return (void *) dest;
9687 }
9688
9689 static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) {
9690 wxStaticBitmap *src;
9691 wxEvtHandler *dest;
9692 src = (wxStaticBitmap *) ptr;
9693 dest = (wxEvtHandler *) src;
9694 return (void *) dest;
9695 }
9696
9697 static void *SwigwxStaticBitmapTowxObject(void *ptr) {
9698 wxStaticBitmap *src;
9699 wxObject *dest;
9700 src = (wxStaticBitmap *) ptr;
9701 dest = (wxObject *) src;
9702 return (void *) dest;
9703 }
9704
9705 #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
9706 static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject * _resultobj;
9708 wxStaticBitmap * _result;
9709 wxWindow * _arg0;
9710 wxWindowID _arg1;
9711 wxBitmap * _arg2;
9712 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
9713 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
9714 long _arg5 = (long ) 0;
9715 wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr;
9716 PyObject * _argo0 = 0;
9717 PyObject * _argo2 = 0;
9718 wxPoint temp;
9719 PyObject * _obj3 = 0;
9720 wxSize temp0;
9721 PyObject * _obj4 = 0;
9722 PyObject * _obj6 = 0;
9723 char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL };
9724 char _ptemp[128];
9725
9726 self = self;
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6))
9728 return NULL;
9729 if (_argo0) {
9730 if (_argo0 == Py_None) { _arg0 = NULL; }
9731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p.");
9733 return NULL;
9734 }
9735 }
9736 if (_argo2) {
9737 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
9738 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p.");
9739 return NULL;
9740 }
9741 }
9742 if (_obj3)
9743 {
9744 _arg3 = &temp;
9745 if (! wxPoint_helper(_obj3, &_arg3))
9746 return NULL;
9747 }
9748 if (_obj4)
9749 {
9750 _arg4 = &temp0;
9751 if (! wxSize_helper(_obj4, &_arg4))
9752 return NULL;
9753 }
9754 if (_obj6)
9755 {
9756 _arg6 = wxString_in_helper(_obj6);
9757 if (_arg6 == NULL)
9758 return NULL;
9759 }
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) return NULL;
9766 } if (_result) {
9767 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
9768 _resultobj = Py_BuildValue("s",_ptemp);
9769 } else {
9770 Py_INCREF(Py_None);
9771 _resultobj = Py_None;
9772 }
9773 {
9774 if (_obj6)
9775 delete _arg6;
9776 }
9777 return _resultobj;
9778 }
9779
9780 #define new_wxPreStaticBitmap() (new wxStaticBitmap())
9781 static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject * _resultobj;
9783 wxStaticBitmap * _result;
9784 char *_kwnames[] = { NULL };
9785 char _ptemp[128];
9786
9787 self = self;
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames))
9789 return NULL;
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 _result = (wxStaticBitmap *)new_wxPreStaticBitmap();
9793
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) return NULL;
9796 } if (_result) {
9797 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p");
9798 _resultobj = Py_BuildValue("s",_ptemp);
9799 } else {
9800 Py_INCREF(Py_None);
9801 _resultobj = Py_None;
9802 }
9803 return _resultobj;
9804 }
9805
9806 #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
9807 static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
9808 PyObject * _resultobj;
9809 bool _result;
9810 wxStaticBitmap * _arg0;
9811 wxWindow * _arg1;
9812 wxWindowID _arg2;
9813 wxBitmap * _arg3;
9814 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
9815 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
9816 long _arg6 = (long ) 0;
9817 wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr;
9818 PyObject * _argo0 = 0;
9819 PyObject * _argo1 = 0;
9820 PyObject * _argo3 = 0;
9821 wxPoint temp;
9822 PyObject * _obj4 = 0;
9823 wxSize temp0;
9824 PyObject * _obj5 = 0;
9825 PyObject * _obj7 = 0;
9826 char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL };
9827
9828 self = self;
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7))
9830 return NULL;
9831 if (_argo0) {
9832 if (_argo0 == Py_None) { _arg0 = NULL; }
9833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
9834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p.");
9835 return NULL;
9836 }
9837 }
9838 if (_argo1) {
9839 if (_argo1 == Py_None) { _arg1 = NULL; }
9840 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9841 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p.");
9842 return NULL;
9843 }
9844 }
9845 if (_argo3) {
9846 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
9847 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p.");
9848 return NULL;
9849 }
9850 }
9851 if (_obj4)
9852 {
9853 _arg4 = &temp;
9854 if (! wxPoint_helper(_obj4, &_arg4))
9855 return NULL;
9856 }
9857 if (_obj5)
9858 {
9859 _arg5 = &temp0;
9860 if (! wxSize_helper(_obj5, &_arg5))
9861 return NULL;
9862 }
9863 if (_obj7)
9864 {
9865 _arg7 = wxString_in_helper(_obj7);
9866 if (_arg7 == NULL)
9867 return NULL;
9868 }
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7);
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) return NULL;
9875 } _resultobj = Py_BuildValue("i",_result);
9876 {
9877 if (_obj7)
9878 delete _arg7;
9879 }
9880 return _resultobj;
9881 }
9882
9883 #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap())
9884 static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9885 PyObject * _resultobj;
9886 wxBitmap * _result;
9887 wxStaticBitmap * _arg0;
9888 PyObject * _argo0 = 0;
9889 char *_kwnames[] = { "self", NULL };
9890 char _ptemp[128];
9891
9892 self = self;
9893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0))
9894 return NULL;
9895 if (_argo0) {
9896 if (_argo0 == Py_None) { _arg0 = NULL; }
9897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
9898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p.");
9899 return NULL;
9900 }
9901 }
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0));
9905
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) return NULL;
9908 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
9909 _resultobj = Py_BuildValue("s",_ptemp);
9910 return _resultobj;
9911 }
9912
9913 #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
9914 static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9915 PyObject * _resultobj;
9916 wxStaticBitmap * _arg0;
9917 wxBitmap * _arg1;
9918 PyObject * _argo0 = 0;
9919 PyObject * _argo1 = 0;
9920 char *_kwnames[] = { "self","bitmap", NULL };
9921
9922 self = self;
9923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1))
9924 return NULL;
9925 if (_argo0) {
9926 if (_argo0 == Py_None) { _arg0 = NULL; }
9927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
9928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p.");
9929 return NULL;
9930 }
9931 }
9932 if (_argo1) {
9933 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9934 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p.");
9935 return NULL;
9936 }
9937 }
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 wxStaticBitmap_SetBitmap(_arg0,*_arg1);
9941
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) return NULL;
9944 } Py_INCREF(Py_None);
9945 _resultobj = Py_None;
9946 return _resultobj;
9947 }
9948
9949 #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
9950 static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9951 PyObject * _resultobj;
9952 wxStaticBitmap * _arg0;
9953 wxIcon * _arg1;
9954 PyObject * _argo0 = 0;
9955 PyObject * _argo1 = 0;
9956 char *_kwnames[] = { "self","icon", NULL };
9957
9958 self = self;
9959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1))
9960 return NULL;
9961 if (_argo0) {
9962 if (_argo0 == Py_None) { _arg0 = NULL; }
9963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) {
9964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p.");
9965 return NULL;
9966 }
9967 }
9968 if (_argo1) {
9969 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
9970 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p.");
9971 return NULL;
9972 }
9973 }
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 wxStaticBitmap_SetIcon(_arg0,*_arg1);
9977
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) return NULL;
9980 } Py_INCREF(Py_None);
9981 _resultobj = Py_None;
9982 return _resultobj;
9983 }
9984
9985 static void *SwigwxRadioBoxTowxControl(void *ptr) {
9986 wxRadioBox *src;
9987 wxControl *dest;
9988 src = (wxRadioBox *) ptr;
9989 dest = (wxControl *) src;
9990 return (void *) dest;
9991 }
9992
9993 static void *SwigwxRadioBoxTowxWindow(void *ptr) {
9994 wxRadioBox *src;
9995 wxWindow *dest;
9996 src = (wxRadioBox *) ptr;
9997 dest = (wxWindow *) src;
9998 return (void *) dest;
9999 }
10000
10001 static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) {
10002 wxRadioBox *src;
10003 wxEvtHandler *dest;
10004 src = (wxRadioBox *) ptr;
10005 dest = (wxEvtHandler *) src;
10006 return (void *) dest;
10007 }
10008
10009 static void *SwigwxRadioBoxTowxObject(void *ptr) {
10010 wxRadioBox *src;
10011 wxObject *dest;
10012 src = (wxRadioBox *) ptr;
10013 dest = (wxObject *) src;
10014 return (void *) dest;
10015 }
10016
10017 #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))
10018 static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10019 PyObject * _resultobj;
10020 wxRadioBox * _result;
10021 wxWindow * _arg0;
10022 wxWindowID _arg1;
10023 wxString * _arg2;
10024 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10025 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10026 int _arg5 = (int ) 0;
10027 wxString * _arg6 = (wxString *) NULL;
10028 int _arg7 = (int ) 0;
10029 long _arg8 = (long ) wxRA_HORIZONTAL;
10030 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
10031 wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr;
10032 PyObject * _argo0 = 0;
10033 PyObject * _obj2 = 0;
10034 wxPoint temp;
10035 PyObject * _obj3 = 0;
10036 wxSize temp0;
10037 PyObject * _obj4 = 0;
10038 PyObject * _obj6 = 0;
10039 PyObject * _argo9 = 0;
10040 PyObject * _obj10 = 0;
10041 char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
10042 char _ptemp[128];
10043
10044 self = self;
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10))
10046 return NULL;
10047 if (_argo0) {
10048 if (_argo0 == Py_None) { _arg0 = NULL; }
10049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p.");
10051 return NULL;
10052 }
10053 }
10054 {
10055 _arg2 = wxString_in_helper(_obj2);
10056 if (_arg2 == NULL)
10057 return NULL;
10058 }
10059 if (_obj3)
10060 {
10061 _arg3 = &temp;
10062 if (! wxPoint_helper(_obj3, &_arg3))
10063 return NULL;
10064 }
10065 if (_obj4)
10066 {
10067 _arg4 = &temp0;
10068 if (! wxSize_helper(_obj4, &_arg4))
10069 return NULL;
10070 }
10071 if (_obj6)
10072 {
10073 _arg6 = wxString_LIST_helper(_obj6);
10074 if (_arg6 == NULL) {
10075 return NULL;
10076 }
10077 }
10078 if (_argo9) {
10079 if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
10080 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p.");
10081 return NULL;
10082 }
10083 }
10084 if (_obj10)
10085 {
10086 _arg10 = wxString_in_helper(_obj10);
10087 if (_arg10 == NULL)
10088 return NULL;
10089 }
10090 {
10091 if (_obj6) {
10092 _arg5 = PyList_Size(_obj6);
10093 }
10094 else {
10095 _arg5 = 0;
10096 }
10097 }
10098 {
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
10100 _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10);
10101
10102 wxPyEndAllowThreads(__tstate);
10103 if (PyErr_Occurred()) return NULL;
10104 } if (_result) {
10105 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
10106 _resultobj = Py_BuildValue("s",_ptemp);
10107 } else {
10108 Py_INCREF(Py_None);
10109 _resultobj = Py_None;
10110 }
10111 {
10112 if (_obj2)
10113 delete _arg2;
10114 }
10115 {
10116 delete [] _arg6;
10117 }
10118 {
10119 if (_obj10)
10120 delete _arg10;
10121 }
10122 return _resultobj;
10123 }
10124
10125 #define new_wxPreRadioBox() (new wxRadioBox())
10126 static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10127 PyObject * _resultobj;
10128 wxRadioBox * _result;
10129 char *_kwnames[] = { NULL };
10130 char _ptemp[128];
10131
10132 self = self;
10133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames))
10134 return NULL;
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 _result = (wxRadioBox *)new_wxPreRadioBox();
10138
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) return NULL;
10141 } if (_result) {
10142 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p");
10143 _resultobj = Py_BuildValue("s",_ptemp);
10144 } else {
10145 Py_INCREF(Py_None);
10146 _resultobj = Py_None;
10147 }
10148 return _resultobj;
10149 }
10150
10151 #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))
10152 static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10153 PyObject * _resultobj;
10154 bool _result;
10155 wxRadioBox * _arg0;
10156 wxWindow * _arg1;
10157 wxWindowID _arg2;
10158 wxString * _arg3;
10159 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10160 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10161 int _arg6 = (int ) 0;
10162 wxString * _arg7 = (wxString *) NULL;
10163 int _arg8 = (int ) 0;
10164 long _arg9 = (long ) wxRA_HORIZONTAL;
10165 wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator;
10166 wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr;
10167 PyObject * _argo0 = 0;
10168 PyObject * _argo1 = 0;
10169 PyObject * _obj3 = 0;
10170 wxPoint temp;
10171 PyObject * _obj4 = 0;
10172 wxSize temp0;
10173 PyObject * _obj5 = 0;
10174 PyObject * _obj7 = 0;
10175 PyObject * _argo10 = 0;
10176 PyObject * _obj11 = 0;
10177 char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL };
10178
10179 self = self;
10180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11))
10181 return NULL;
10182 if (_argo0) {
10183 if (_argo0 == Py_None) { _arg0 = NULL; }
10184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p.");
10186 return NULL;
10187 }
10188 }
10189 if (_argo1) {
10190 if (_argo1 == Py_None) { _arg1 = NULL; }
10191 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10192 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p.");
10193 return NULL;
10194 }
10195 }
10196 {
10197 _arg3 = wxString_in_helper(_obj3);
10198 if (_arg3 == NULL)
10199 return NULL;
10200 }
10201 if (_obj4)
10202 {
10203 _arg4 = &temp;
10204 if (! wxPoint_helper(_obj4, &_arg4))
10205 return NULL;
10206 }
10207 if (_obj5)
10208 {
10209 _arg5 = &temp0;
10210 if (! wxSize_helper(_obj5, &_arg5))
10211 return NULL;
10212 }
10213 if (_obj7)
10214 {
10215 _arg7 = wxString_LIST_helper(_obj7);
10216 if (_arg7 == NULL) {
10217 return NULL;
10218 }
10219 }
10220 if (_argo10) {
10221 if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) {
10222 PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p.");
10223 return NULL;
10224 }
10225 }
10226 if (_obj11)
10227 {
10228 _arg11 = wxString_in_helper(_obj11);
10229 if (_arg11 == NULL)
10230 return NULL;
10231 }
10232 {
10233 if (_obj7) {
10234 _arg6 = PyList_Size(_obj7);
10235 }
10236 else {
10237 _arg6 = 0;
10238 }
10239 }
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) return NULL;
10246 } _resultobj = Py_BuildValue("i",_result);
10247 {
10248 if (_obj3)
10249 delete _arg3;
10250 }
10251 {
10252 delete [] _arg7;
10253 }
10254 {
10255 if (_obj11)
10256 delete _arg11;
10257 }
10258 return _resultobj;
10259 }
10260
10261 #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
10262 static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject * _resultobj;
10264 wxRadioBox * _arg0;
10265 bool _arg1;
10266 PyObject * _argo0 = 0;
10267 int tempbool1;
10268 char *_kwnames[] = { "self","enable", NULL };
10269
10270 self = self;
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1))
10272 return NULL;
10273 if (_argo0) {
10274 if (_argo0 == Py_None) { _arg0 = NULL; }
10275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p.");
10277 return NULL;
10278 }
10279 }
10280 _arg1 = (bool ) tempbool1;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 wxRadioBox_Enable(_arg0,_arg1);
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) return NULL;
10287 } Py_INCREF(Py_None);
10288 _resultobj = Py_None;
10289 return _resultobj;
10290 }
10291
10292 #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
10293 static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) {
10294 PyObject * _resultobj;
10295 wxRadioBox * _arg0;
10296 int _arg1;
10297 bool _arg2;
10298 PyObject * _argo0 = 0;
10299 int tempbool2;
10300 char *_kwnames[] = { "self","n","enable", NULL };
10301
10302 self = self;
10303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2))
10304 return NULL;
10305 if (_argo0) {
10306 if (_argo0 == Py_None) { _arg0 = NULL; }
10307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p.");
10309 return NULL;
10310 }
10311 }
10312 _arg2 = (bool ) tempbool2;
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 wxRadioBox_EnableItem(_arg0,_arg1,_arg2);
10316
10317 wxPyEndAllowThreads(__tstate);
10318 if (PyErr_Occurred()) return NULL;
10319 } Py_INCREF(Py_None);
10320 _resultobj = Py_None;
10321 return _resultobj;
10322 }
10323
10324 #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0))
10325 static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
10326 PyObject * _resultobj;
10327 int _result;
10328 wxRadioBox * _arg0;
10329 wxString * _arg1;
10330 PyObject * _argo0 = 0;
10331 PyObject * _obj1 = 0;
10332 char *_kwnames[] = { "self","string", NULL };
10333
10334 self = self;
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1))
10336 return NULL;
10337 if (_argo0) {
10338 if (_argo0 == Py_None) { _arg0 = NULL; }
10339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p.");
10341 return NULL;
10342 }
10343 }
10344 {
10345 _arg1 = wxString_in_helper(_obj1);
10346 if (_arg1 == NULL)
10347 return NULL;
10348 }
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 _result = (int )wxRadioBox_FindString(_arg0,*_arg1);
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) return NULL;
10355 } _resultobj = Py_BuildValue("i",_result);
10356 {
10357 if (_obj1)
10358 delete _arg1;
10359 }
10360 return _resultobj;
10361 }
10362
10363 #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0))
10364 static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10365 PyObject * _resultobj;
10366 wxString * _result;
10367 wxRadioBox * _arg0;
10368 int _arg1;
10369 PyObject * _argo0 = 0;
10370 char *_kwnames[] = { "self","n", NULL };
10371
10372 self = self;
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1))
10374 return NULL;
10375 if (_argo0) {
10376 if (_argo0 == Py_None) { _arg0 = NULL; }
10377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p.");
10379 return NULL;
10380 }
10381 }
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 _result = new wxString (wxRadioBox_GetString(_arg0,_arg1));
10385
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) return NULL;
10388 }{
10389 #if wxUSE_UNICODE
10390 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10391 #else
10392 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10393 #endif
10394 }
10395 {
10396 delete _result;
10397 }
10398 return _resultobj;
10399 }
10400
10401 #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1))
10402 static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10403 PyObject * _resultobj;
10404 wxRadioBox * _arg0;
10405 int _arg1;
10406 wxString * _arg2;
10407 PyObject * _argo0 = 0;
10408 PyObject * _obj2 = 0;
10409 char *_kwnames[] = { "self","n","label", NULL };
10410
10411 self = self;
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2))
10413 return NULL;
10414 if (_argo0) {
10415 if (_argo0 == Py_None) { _arg0 = NULL; }
10416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p.");
10418 return NULL;
10419 }
10420 }
10421 {
10422 _arg2 = wxString_in_helper(_obj2);
10423 if (_arg2 == NULL)
10424 return NULL;
10425 }
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 wxRadioBox_SetString(_arg0,_arg1,*_arg2);
10429
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) return NULL;
10432 } Py_INCREF(Py_None);
10433 _resultobj = Py_None;
10434 {
10435 if (_obj2)
10436 delete _arg2;
10437 }
10438 return _resultobj;
10439 }
10440
10441 #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection())
10442 static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject * _resultobj;
10444 int _result;
10445 wxRadioBox * _arg0;
10446 PyObject * _argo0 = 0;
10447 char *_kwnames[] = { "self", NULL };
10448
10449 self = self;
10450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0))
10451 return NULL;
10452 if (_argo0) {
10453 if (_argo0 == Py_None) { _arg0 = NULL; }
10454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p.");
10456 return NULL;
10457 }
10458 }
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 _result = (int )wxRadioBox_GetSelection(_arg0);
10462
10463 wxPyEndAllowThreads(__tstate);
10464 if (PyErr_Occurred()) return NULL;
10465 } _resultobj = Py_BuildValue("i",_result);
10466 return _resultobj;
10467 }
10468
10469 #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
10470 static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject * _resultobj;
10472 wxString * _result;
10473 wxRadioBox * _arg0;
10474 PyObject * _argo0 = 0;
10475 char *_kwnames[] = { "self", NULL };
10476
10477 self = self;
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0))
10479 return NULL;
10480 if (_argo0) {
10481 if (_argo0 == Py_None) { _arg0 = NULL; }
10482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p.");
10484 return NULL;
10485 }
10486 }
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 _result = new wxString (wxRadioBox_GetStringSelection(_arg0));
10490
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) return NULL;
10493 }{
10494 #if wxUSE_UNICODE
10495 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10496 #else
10497 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10498 #endif
10499 }
10500 {
10501 delete _result;
10502 }
10503 return _resultobj;
10504 }
10505
10506 #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount())
10507 static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10508 PyObject * _resultobj;
10509 int _result;
10510 wxRadioBox * _arg0;
10511 PyObject * _argo0 = 0;
10512 char *_kwnames[] = { "self", NULL };
10513
10514 self = self;
10515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0))
10516 return NULL;
10517 if (_argo0) {
10518 if (_argo0 == Py_None) { _arg0 = NULL; }
10519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p.");
10521 return NULL;
10522 }
10523 }
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 _result = (int )wxRadioBox_GetCount(_arg0);
10527
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) return NULL;
10530 } _resultobj = Py_BuildValue("i",_result);
10531 return _resultobj;
10532 }
10533
10534 #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
10535 static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10536 PyObject * _resultobj;
10537 wxRadioBox * _arg0;
10538 int _arg1;
10539 PyObject * _argo0 = 0;
10540 char *_kwnames[] = { "self","n", NULL };
10541
10542 self = self;
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1))
10544 return NULL;
10545 if (_argo0) {
10546 if (_argo0 == Py_None) { _arg0 = NULL; }
10547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p.");
10549 return NULL;
10550 }
10551 }
10552 {
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 wxRadioBox_SetSelection(_arg0,_arg1);
10555
10556 wxPyEndAllowThreads(__tstate);
10557 if (PyErr_Occurred()) return NULL;
10558 } Py_INCREF(Py_None);
10559 _resultobj = Py_None;
10560 return _resultobj;
10561 }
10562
10563 #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0))
10564 static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
10565 PyObject * _resultobj;
10566 wxRadioBox * _arg0;
10567 wxString * _arg1;
10568 PyObject * _argo0 = 0;
10569 PyObject * _obj1 = 0;
10570 char *_kwnames[] = { "self","string", NULL };
10571
10572 self = self;
10573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1))
10574 return NULL;
10575 if (_argo0) {
10576 if (_argo0 == Py_None) { _arg0 = NULL; }
10577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p.");
10579 return NULL;
10580 }
10581 }
10582 {
10583 _arg1 = wxString_in_helper(_obj1);
10584 if (_arg1 == NULL)
10585 return NULL;
10586 }
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 wxRadioBox_SetStringSelection(_arg0,*_arg1);
10590
10591 wxPyEndAllowThreads(__tstate);
10592 if (PyErr_Occurred()) return NULL;
10593 } Py_INCREF(Py_None);
10594 _resultobj = Py_None;
10595 {
10596 if (_obj1)
10597 delete _arg1;
10598 }
10599 return _resultobj;
10600 }
10601
10602 #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
10603 static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
10604 PyObject * _resultobj;
10605 wxRadioBox * _arg0;
10606 bool _arg1;
10607 PyObject * _argo0 = 0;
10608 int tempbool1;
10609 char *_kwnames[] = { "self","show", NULL };
10610
10611 self = self;
10612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1))
10613 return NULL;
10614 if (_argo0) {
10615 if (_argo0 == Py_None) { _arg0 = NULL; }
10616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p.");
10618 return NULL;
10619 }
10620 }
10621 _arg1 = (bool ) tempbool1;
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 wxRadioBox_Show(_arg0,_arg1);
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) return NULL;
10628 } Py_INCREF(Py_None);
10629 _resultobj = Py_None;
10630 return _resultobj;
10631 }
10632
10633 #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1))
10634 static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject * _resultobj;
10636 wxRadioBox * _arg0;
10637 int _arg1;
10638 bool _arg2;
10639 PyObject * _argo0 = 0;
10640 int tempbool2;
10641 char *_kwnames[] = { "self","item","show", NULL };
10642
10643 self = self;
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2))
10645 return NULL;
10646 if (_argo0) {
10647 if (_argo0 == Py_None) { _arg0 = NULL; }
10648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) {
10649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p.");
10650 return NULL;
10651 }
10652 }
10653 _arg2 = (bool ) tempbool2;
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 wxRadioBox_ShowItem(_arg0,_arg1,_arg2);
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) return NULL;
10660 } Py_INCREF(Py_None);
10661 _resultobj = Py_None;
10662 return _resultobj;
10663 }
10664
10665 static void *SwigwxRadioButtonTowxControl(void *ptr) {
10666 wxRadioButton *src;
10667 wxControl *dest;
10668 src = (wxRadioButton *) ptr;
10669 dest = (wxControl *) src;
10670 return (void *) dest;
10671 }
10672
10673 static void *SwigwxRadioButtonTowxWindow(void *ptr) {
10674 wxRadioButton *src;
10675 wxWindow *dest;
10676 src = (wxRadioButton *) ptr;
10677 dest = (wxWindow *) src;
10678 return (void *) dest;
10679 }
10680
10681 static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) {
10682 wxRadioButton *src;
10683 wxEvtHandler *dest;
10684 src = (wxRadioButton *) ptr;
10685 dest = (wxEvtHandler *) src;
10686 return (void *) dest;
10687 }
10688
10689 static void *SwigwxRadioButtonTowxObject(void *ptr) {
10690 wxRadioButton *src;
10691 wxObject *dest;
10692 src = (wxRadioButton *) ptr;
10693 dest = (wxObject *) src;
10694 return (void *) dest;
10695 }
10696
10697 #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
10698 static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10699 PyObject * _resultobj;
10700 wxRadioButton * _result;
10701 wxWindow * _arg0;
10702 wxWindowID _arg1;
10703 wxString * _arg2;
10704 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10705 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10706 long _arg5 = (long ) 0;
10707 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
10708 wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr;
10709 PyObject * _argo0 = 0;
10710 PyObject * _obj2 = 0;
10711 wxPoint temp;
10712 PyObject * _obj3 = 0;
10713 wxSize temp0;
10714 PyObject * _obj4 = 0;
10715 PyObject * _argo6 = 0;
10716 PyObject * _obj7 = 0;
10717 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
10718 char _ptemp[128];
10719
10720 self = self;
10721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
10722 return NULL;
10723 if (_argo0) {
10724 if (_argo0 == Py_None) { _arg0 = NULL; }
10725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p.");
10727 return NULL;
10728 }
10729 }
10730 {
10731 _arg2 = wxString_in_helper(_obj2);
10732 if (_arg2 == NULL)
10733 return NULL;
10734 }
10735 if (_obj3)
10736 {
10737 _arg3 = &temp;
10738 if (! wxPoint_helper(_obj3, &_arg3))
10739 return NULL;
10740 }
10741 if (_obj4)
10742 {
10743 _arg4 = &temp0;
10744 if (! wxSize_helper(_obj4, &_arg4))
10745 return NULL;
10746 }
10747 if (_argo6) {
10748 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
10749 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p.");
10750 return NULL;
10751 }
10752 }
10753 if (_obj7)
10754 {
10755 _arg7 = wxString_in_helper(_obj7);
10756 if (_arg7 == NULL)
10757 return NULL;
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
10762
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) return NULL;
10765 } if (_result) {
10766 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
10767 _resultobj = Py_BuildValue("s",_ptemp);
10768 } else {
10769 Py_INCREF(Py_None);
10770 _resultobj = Py_None;
10771 }
10772 {
10773 if (_obj2)
10774 delete _arg2;
10775 }
10776 {
10777 if (_obj7)
10778 delete _arg7;
10779 }
10780 return _resultobj;
10781 }
10782
10783 #define new_wxPreRadioButton() (new wxRadioButton())
10784 static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10785 PyObject * _resultobj;
10786 wxRadioButton * _result;
10787 char *_kwnames[] = { NULL };
10788 char _ptemp[128];
10789
10790 self = self;
10791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames))
10792 return NULL;
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 _result = (wxRadioButton *)new_wxPreRadioButton();
10796
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) return NULL;
10799 } if (_result) {
10800 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p");
10801 _resultobj = Py_BuildValue("s",_ptemp);
10802 } else {
10803 Py_INCREF(Py_None);
10804 _resultobj = Py_None;
10805 }
10806 return _resultobj;
10807 }
10808
10809 #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
10810 static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10811 PyObject * _resultobj;
10812 bool _result;
10813 wxRadioButton * _arg0;
10814 wxWindow * _arg1;
10815 wxWindowID _arg2;
10816 wxString * _arg3;
10817 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10818 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10819 long _arg6 = (long ) 0;
10820 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
10821 wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr;
10822 PyObject * _argo0 = 0;
10823 PyObject * _argo1 = 0;
10824 PyObject * _obj3 = 0;
10825 wxPoint temp;
10826 PyObject * _obj4 = 0;
10827 wxSize temp0;
10828 PyObject * _obj5 = 0;
10829 PyObject * _argo7 = 0;
10830 PyObject * _obj8 = 0;
10831 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
10832
10833 self = self;
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
10835 return NULL;
10836 if (_argo0) {
10837 if (_argo0 == Py_None) { _arg0 = NULL; }
10838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
10839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p.");
10840 return NULL;
10841 }
10842 }
10843 if (_argo1) {
10844 if (_argo1 == Py_None) { _arg1 = NULL; }
10845 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10846 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p.");
10847 return NULL;
10848 }
10849 }
10850 {
10851 _arg3 = wxString_in_helper(_obj3);
10852 if (_arg3 == NULL)
10853 return NULL;
10854 }
10855 if (_obj4)
10856 {
10857 _arg4 = &temp;
10858 if (! wxPoint_helper(_obj4, &_arg4))
10859 return NULL;
10860 }
10861 if (_obj5)
10862 {
10863 _arg5 = &temp0;
10864 if (! wxSize_helper(_obj5, &_arg5))
10865 return NULL;
10866 }
10867 if (_argo7) {
10868 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
10869 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p.");
10870 return NULL;
10871 }
10872 }
10873 if (_obj8)
10874 {
10875 _arg8 = wxString_in_helper(_obj8);
10876 if (_arg8 == NULL)
10877 return NULL;
10878 }
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) return NULL;
10885 } _resultobj = Py_BuildValue("i",_result);
10886 {
10887 if (_obj3)
10888 delete _arg3;
10889 }
10890 {
10891 if (_obj8)
10892 delete _arg8;
10893 }
10894 return _resultobj;
10895 }
10896
10897 #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue())
10898 static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10899 PyObject * _resultobj;
10900 bool _result;
10901 wxRadioButton * _arg0;
10902 PyObject * _argo0 = 0;
10903 char *_kwnames[] = { "self", NULL };
10904
10905 self = self;
10906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0))
10907 return NULL;
10908 if (_argo0) {
10909 if (_argo0 == Py_None) { _arg0 = NULL; }
10910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
10911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p.");
10912 return NULL;
10913 }
10914 }
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 _result = (bool )wxRadioButton_GetValue(_arg0);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) return NULL;
10921 } _resultobj = Py_BuildValue("i",_result);
10922 return _resultobj;
10923 }
10924
10925 #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
10926 static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject * _resultobj;
10928 wxRadioButton * _arg0;
10929 bool _arg1;
10930 PyObject * _argo0 = 0;
10931 int tempbool1;
10932 char *_kwnames[] = { "self","value", NULL };
10933
10934 self = self;
10935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1))
10936 return NULL;
10937 if (_argo0) {
10938 if (_argo0 == Py_None) { _arg0 = NULL; }
10939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) {
10940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p.");
10941 return NULL;
10942 }
10943 }
10944 _arg1 = (bool ) tempbool1;
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 wxRadioButton_SetValue(_arg0,_arg1);
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) return NULL;
10951 } Py_INCREF(Py_None);
10952 _resultobj = Py_None;
10953 return _resultobj;
10954 }
10955
10956 static void *SwigwxSliderTowxControl(void *ptr) {
10957 wxSlider *src;
10958 wxControl *dest;
10959 src = (wxSlider *) ptr;
10960 dest = (wxControl *) src;
10961 return (void *) dest;
10962 }
10963
10964 static void *SwigwxSliderTowxWindow(void *ptr) {
10965 wxSlider *src;
10966 wxWindow *dest;
10967 src = (wxSlider *) ptr;
10968 dest = (wxWindow *) src;
10969 return (void *) dest;
10970 }
10971
10972 static void *SwigwxSliderTowxEvtHandler(void *ptr) {
10973 wxSlider *src;
10974 wxEvtHandler *dest;
10975 src = (wxSlider *) ptr;
10976 dest = (wxEvtHandler *) src;
10977 return (void *) dest;
10978 }
10979
10980 static void *SwigwxSliderTowxObject(void *ptr) {
10981 wxSlider *src;
10982 wxObject *dest;
10983 src = (wxSlider *) ptr;
10984 dest = (wxObject *) src;
10985 return (void *) dest;
10986 }
10987
10988 #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))
10989 static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
10990 PyObject * _resultobj;
10991 wxSlider * _result;
10992 wxWindow * _arg0;
10993 wxWindowID _arg1;
10994 int _arg2;
10995 int _arg3;
10996 int _arg4;
10997 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
10998 wxSize * _arg6 = (wxSize *) &wxDefaultSize;
10999 long _arg7 = (long ) wxSL_HORIZONTAL;
11000 wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator;
11001 wxString * _arg9 = (wxString *) &wxPySliderNameStr;
11002 PyObject * _argo0 = 0;
11003 wxPoint temp;
11004 PyObject * _obj5 = 0;
11005 wxSize temp0;
11006 PyObject * _obj6 = 0;
11007 PyObject * _argo8 = 0;
11008 PyObject * _obj9 = 0;
11009 char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
11010 char _ptemp[128];
11011
11012 self = self;
11013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9))
11014 return NULL;
11015 if (_argo0) {
11016 if (_argo0 == Py_None) { _arg0 = NULL; }
11017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p.");
11019 return NULL;
11020 }
11021 }
11022 if (_obj5)
11023 {
11024 _arg5 = &temp;
11025 if (! wxPoint_helper(_obj5, &_arg5))
11026 return NULL;
11027 }
11028 if (_obj6)
11029 {
11030 _arg6 = &temp0;
11031 if (! wxSize_helper(_obj6, &_arg6))
11032 return NULL;
11033 }
11034 if (_argo8) {
11035 if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) {
11036 PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p.");
11037 return NULL;
11038 }
11039 }
11040 if (_obj9)
11041 {
11042 _arg9 = wxString_in_helper(_obj9);
11043 if (_arg9 == NULL)
11044 return NULL;
11045 }
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9);
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) return NULL;
11052 } if (_result) {
11053 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
11054 _resultobj = Py_BuildValue("s",_ptemp);
11055 } else {
11056 Py_INCREF(Py_None);
11057 _resultobj = Py_None;
11058 }
11059 {
11060 if (_obj9)
11061 delete _arg9;
11062 }
11063 return _resultobj;
11064 }
11065
11066 #define new_wxPreSlider() (new wxSlider())
11067 static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
11068 PyObject * _resultobj;
11069 wxSlider * _result;
11070 char *_kwnames[] = { NULL };
11071 char _ptemp[128];
11072
11073 self = self;
11074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames))
11075 return NULL;
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 _result = (wxSlider *)new_wxPreSlider();
11079
11080 wxPyEndAllowThreads(__tstate);
11081 if (PyErr_Occurred()) return NULL;
11082 } if (_result) {
11083 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p");
11084 _resultobj = Py_BuildValue("s",_ptemp);
11085 } else {
11086 Py_INCREF(Py_None);
11087 _resultobj = Py_None;
11088 }
11089 return _resultobj;
11090 }
11091
11092 #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))
11093 static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11094 PyObject * _resultobj;
11095 bool _result;
11096 wxSlider * _arg0;
11097 wxWindow * _arg1;
11098 wxWindowID _arg2;
11099 int _arg3;
11100 int _arg4;
11101 int _arg5;
11102 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
11103 wxSize * _arg7 = (wxSize *) &wxDefaultSize;
11104 long _arg8 = (long ) wxSL_HORIZONTAL;
11105 wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator;
11106 wxString * _arg10 = (wxString *) &wxPySliderNameStr;
11107 PyObject * _argo0 = 0;
11108 PyObject * _argo1 = 0;
11109 wxPoint temp;
11110 PyObject * _obj6 = 0;
11111 wxSize temp0;
11112 PyObject * _obj7 = 0;
11113 PyObject * _argo9 = 0;
11114 PyObject * _obj10 = 0;
11115 char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL };
11116
11117 self = self;
11118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10))
11119 return NULL;
11120 if (_argo0) {
11121 if (_argo0 == Py_None) { _arg0 = NULL; }
11122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p.");
11124 return NULL;
11125 }
11126 }
11127 if (_argo1) {
11128 if (_argo1 == Py_None) { _arg1 = NULL; }
11129 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
11130 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p.");
11131 return NULL;
11132 }
11133 }
11134 if (_obj6)
11135 {
11136 _arg6 = &temp;
11137 if (! wxPoint_helper(_obj6, &_arg6))
11138 return NULL;
11139 }
11140 if (_obj7)
11141 {
11142 _arg7 = &temp0;
11143 if (! wxSize_helper(_obj7, &_arg7))
11144 return NULL;
11145 }
11146 if (_argo9) {
11147 if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) {
11148 PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p.");
11149 return NULL;
11150 }
11151 }
11152 if (_obj10)
11153 {
11154 _arg10 = wxString_in_helper(_obj10);
11155 if (_arg10 == NULL)
11156 return NULL;
11157 }
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10);
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) return NULL;
11164 } _resultobj = Py_BuildValue("i",_result);
11165 {
11166 if (_obj10)
11167 delete _arg10;
11168 }
11169 return _resultobj;
11170 }
11171
11172 #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel())
11173 static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) {
11174 PyObject * _resultobj;
11175 wxSlider * _arg0;
11176 PyObject * _argo0 = 0;
11177 char *_kwnames[] = { "self", NULL };
11178
11179 self = self;
11180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0))
11181 return NULL;
11182 if (_argo0) {
11183 if (_argo0 == Py_None) { _arg0 = NULL; }
11184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p.");
11186 return NULL;
11187 }
11188 }
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 wxSlider_ClearSel(_arg0);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) return NULL;
11195 } Py_INCREF(Py_None);
11196 _resultobj = Py_None;
11197 return _resultobj;
11198 }
11199
11200 #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks())
11201 static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
11202 PyObject * _resultobj;
11203 wxSlider * _arg0;
11204 PyObject * _argo0 = 0;
11205 char *_kwnames[] = { "self", NULL };
11206
11207 self = self;
11208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0))
11209 return NULL;
11210 if (_argo0) {
11211 if (_argo0 == Py_None) { _arg0 = NULL; }
11212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p.");
11214 return NULL;
11215 }
11216 }
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 wxSlider_ClearTicks(_arg0);
11220
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) return NULL;
11223 } Py_INCREF(Py_None);
11224 _resultobj = Py_None;
11225 return _resultobj;
11226 }
11227
11228 #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize())
11229 static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject * _resultobj;
11231 int _result;
11232 wxSlider * _arg0;
11233 PyObject * _argo0 = 0;
11234 char *_kwnames[] = { "self", NULL };
11235
11236 self = self;
11237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0))
11238 return NULL;
11239 if (_argo0) {
11240 if (_argo0 == Py_None) { _arg0 = NULL; }
11241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p.");
11243 return NULL;
11244 }
11245 }
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 _result = (int )wxSlider_GetLineSize(_arg0);
11249
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) return NULL;
11252 } _resultobj = Py_BuildValue("i",_result);
11253 return _resultobj;
11254 }
11255
11256 #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax())
11257 static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11258 PyObject * _resultobj;
11259 int _result;
11260 wxSlider * _arg0;
11261 PyObject * _argo0 = 0;
11262 char *_kwnames[] = { "self", NULL };
11263
11264 self = self;
11265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0))
11266 return NULL;
11267 if (_argo0) {
11268 if (_argo0 == Py_None) { _arg0 = NULL; }
11269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p.");
11271 return NULL;
11272 }
11273 }
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 _result = (int )wxSlider_GetMax(_arg0);
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) return NULL;
11280 } _resultobj = Py_BuildValue("i",_result);
11281 return _resultobj;
11282 }
11283
11284 #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin())
11285 static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11286 PyObject * _resultobj;
11287 int _result;
11288 wxSlider * _arg0;
11289 PyObject * _argo0 = 0;
11290 char *_kwnames[] = { "self", NULL };
11291
11292 self = self;
11293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0))
11294 return NULL;
11295 if (_argo0) {
11296 if (_argo0 == Py_None) { _arg0 = NULL; }
11297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p.");
11299 return NULL;
11300 }
11301 }
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 _result = (int )wxSlider_GetMin(_arg0);
11305
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) return NULL;
11308 } _resultobj = Py_BuildValue("i",_result);
11309 return _resultobj;
11310 }
11311
11312 #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize())
11313 static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11314 PyObject * _resultobj;
11315 int _result;
11316 wxSlider * _arg0;
11317 PyObject * _argo0 = 0;
11318 char *_kwnames[] = { "self", NULL };
11319
11320 self = self;
11321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0))
11322 return NULL;
11323 if (_argo0) {
11324 if (_argo0 == Py_None) { _arg0 = NULL; }
11325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p.");
11327 return NULL;
11328 }
11329 }
11330 {
11331 PyThreadState* __tstate = wxPyBeginAllowThreads();
11332 _result = (int )wxSlider_GetPageSize(_arg0);
11333
11334 wxPyEndAllowThreads(__tstate);
11335 if (PyErr_Occurred()) return NULL;
11336 } _resultobj = Py_BuildValue("i",_result);
11337 return _resultobj;
11338 }
11339
11340 #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd())
11341 static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) {
11342 PyObject * _resultobj;
11343 int _result;
11344 wxSlider * _arg0;
11345 PyObject * _argo0 = 0;
11346 char *_kwnames[] = { "self", NULL };
11347
11348 self = self;
11349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0))
11350 return NULL;
11351 if (_argo0) {
11352 if (_argo0 == Py_None) { _arg0 = NULL; }
11353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p.");
11355 return NULL;
11356 }
11357 }
11358 {
11359 PyThreadState* __tstate = wxPyBeginAllowThreads();
11360 _result = (int )wxSlider_GetSelEnd(_arg0);
11361
11362 wxPyEndAllowThreads(__tstate);
11363 if (PyErr_Occurred()) return NULL;
11364 } _resultobj = Py_BuildValue("i",_result);
11365 return _resultobj;
11366 }
11367
11368 #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart())
11369 static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) {
11370 PyObject * _resultobj;
11371 int _result;
11372 wxSlider * _arg0;
11373 PyObject * _argo0 = 0;
11374 char *_kwnames[] = { "self", NULL };
11375
11376 self = self;
11377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0))
11378 return NULL;
11379 if (_argo0) {
11380 if (_argo0 == Py_None) { _arg0 = NULL; }
11381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p.");
11383 return NULL;
11384 }
11385 }
11386 {
11387 PyThreadState* __tstate = wxPyBeginAllowThreads();
11388 _result = (int )wxSlider_GetSelStart(_arg0);
11389
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) return NULL;
11392 } _resultobj = Py_BuildValue("i",_result);
11393 return _resultobj;
11394 }
11395
11396 #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength())
11397 static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
11398 PyObject * _resultobj;
11399 int _result;
11400 wxSlider * _arg0;
11401 PyObject * _argo0 = 0;
11402 char *_kwnames[] = { "self", NULL };
11403
11404 self = self;
11405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0))
11406 return NULL;
11407 if (_argo0) {
11408 if (_argo0 == Py_None) { _arg0 = NULL; }
11409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p.");
11411 return NULL;
11412 }
11413 }
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 _result = (int )wxSlider_GetThumbLength(_arg0);
11417
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) return NULL;
11420 } _resultobj = Py_BuildValue("i",_result);
11421 return _resultobj;
11422 }
11423
11424 #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq())
11425 static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
11426 PyObject * _resultobj;
11427 int _result;
11428 wxSlider * _arg0;
11429 PyObject * _argo0 = 0;
11430 char *_kwnames[] = { "self", NULL };
11431
11432 self = self;
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0))
11434 return NULL;
11435 if (_argo0) {
11436 if (_argo0 == Py_None) { _arg0 = NULL; }
11437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p.");
11439 return NULL;
11440 }
11441 }
11442 {
11443 PyThreadState* __tstate = wxPyBeginAllowThreads();
11444 _result = (int )wxSlider_GetTickFreq(_arg0);
11445
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) return NULL;
11448 } _resultobj = Py_BuildValue("i",_result);
11449 return _resultobj;
11450 }
11451
11452 #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue())
11453 static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11454 PyObject * _resultobj;
11455 int _result;
11456 wxSlider * _arg0;
11457 PyObject * _argo0 = 0;
11458 char *_kwnames[] = { "self", NULL };
11459
11460 self = self;
11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0))
11462 return NULL;
11463 if (_argo0) {
11464 if (_argo0 == Py_None) { _arg0 = NULL; }
11465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p.");
11467 return NULL;
11468 }
11469 }
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 _result = (int )wxSlider_GetValue(_arg0);
11473
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) return NULL;
11476 } _resultobj = Py_BuildValue("i",_result);
11477 return _resultobj;
11478 }
11479
11480 #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
11481 static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
11482 PyObject * _resultobj;
11483 wxSlider * _arg0;
11484 int _arg1;
11485 int _arg2;
11486 PyObject * _argo0 = 0;
11487 char *_kwnames[] = { "self","minValue","maxValue", NULL };
11488
11489 self = self;
11490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
11491 return NULL;
11492 if (_argo0) {
11493 if (_argo0 == Py_None) { _arg0 = NULL; }
11494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p.");
11496 return NULL;
11497 }
11498 }
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 wxSlider_SetRange(_arg0,_arg1,_arg2);
11502
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) return NULL;
11505 } Py_INCREF(Py_None);
11506 _resultobj = Py_None;
11507 return _resultobj;
11508 }
11509
11510 #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1))
11511 static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) {
11512 PyObject * _resultobj;
11513 wxSlider * _arg0;
11514 int _arg1;
11515 int _arg2;
11516 PyObject * _argo0 = 0;
11517 char *_kwnames[] = { "self","n","pos", NULL };
11518
11519 self = self;
11520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2))
11521 return NULL;
11522 if (_argo0) {
11523 if (_argo0 == Py_None) { _arg0 = NULL; }
11524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p.");
11526 return NULL;
11527 }
11528 }
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 wxSlider_SetTickFreq(_arg0,_arg1,_arg2);
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) return NULL;
11535 } Py_INCREF(Py_None);
11536 _resultobj = Py_None;
11537 return _resultobj;
11538 }
11539
11540 #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0))
11541 static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11542 PyObject * _resultobj;
11543 wxSlider * _arg0;
11544 int _arg1;
11545 PyObject * _argo0 = 0;
11546 char *_kwnames[] = { "self","lineSize", NULL };
11547
11548 self = self;
11549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1))
11550 return NULL;
11551 if (_argo0) {
11552 if (_argo0 == Py_None) { _arg0 = NULL; }
11553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p.");
11555 return NULL;
11556 }
11557 }
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 wxSlider_SetLineSize(_arg0,_arg1);
11561
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) return NULL;
11564 } Py_INCREF(Py_None);
11565 _resultobj = Py_None;
11566 return _resultobj;
11567 }
11568
11569 #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0))
11570 static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11571 PyObject * _resultobj;
11572 wxSlider * _arg0;
11573 int _arg1;
11574 PyObject * _argo0 = 0;
11575 char *_kwnames[] = { "self","pageSize", NULL };
11576
11577 self = self;
11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1))
11579 return NULL;
11580 if (_argo0) {
11581 if (_argo0 == Py_None) { _arg0 = NULL; }
11582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p.");
11584 return NULL;
11585 }
11586 }
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 wxSlider_SetPageSize(_arg0,_arg1);
11590
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) return NULL;
11593 } Py_INCREF(Py_None);
11594 _resultobj = Py_None;
11595 return _resultobj;
11596 }
11597
11598 #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1))
11599 static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11600 PyObject * _resultobj;
11601 wxSlider * _arg0;
11602 int _arg1;
11603 int _arg2;
11604 PyObject * _argo0 = 0;
11605 char *_kwnames[] = { "self","startPos","endPos", NULL };
11606
11607 self = self;
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
11609 return NULL;
11610 if (_argo0) {
11611 if (_argo0 == Py_None) { _arg0 = NULL; }
11612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p.");
11614 return NULL;
11615 }
11616 }
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 wxSlider_SetSelection(_arg0,_arg1,_arg2);
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) return NULL;
11623 } Py_INCREF(Py_None);
11624 _resultobj = Py_None;
11625 return _resultobj;
11626 }
11627
11628 #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0))
11629 static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) {
11630 PyObject * _resultobj;
11631 wxSlider * _arg0;
11632 int _arg1;
11633 PyObject * _argo0 = 0;
11634 char *_kwnames[] = { "self","len", NULL };
11635
11636 self = self;
11637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1))
11638 return NULL;
11639 if (_argo0) {
11640 if (_argo0 == Py_None) { _arg0 = NULL; }
11641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p.");
11643 return NULL;
11644 }
11645 }
11646 {
11647 PyThreadState* __tstate = wxPyBeginAllowThreads();
11648 wxSlider_SetThumbLength(_arg0,_arg1);
11649
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) return NULL;
11652 } Py_INCREF(Py_None);
11653 _resultobj = Py_None;
11654 return _resultobj;
11655 }
11656
11657 #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0))
11658 static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) {
11659 PyObject * _resultobj;
11660 wxSlider * _arg0;
11661 int _arg1;
11662 PyObject * _argo0 = 0;
11663 char *_kwnames[] = { "self","tickPos", NULL };
11664
11665 self = self;
11666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1))
11667 return NULL;
11668 if (_argo0) {
11669 if (_argo0 == Py_None) { _arg0 = NULL; }
11670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p.");
11672 return NULL;
11673 }
11674 }
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 wxSlider_SetTick(_arg0,_arg1);
11678
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) return NULL;
11681 } Py_INCREF(Py_None);
11682 _resultobj = Py_None;
11683 return _resultobj;
11684 }
11685
11686 #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
11687 static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11688 PyObject * _resultobj;
11689 wxSlider * _arg0;
11690 int _arg1;
11691 PyObject * _argo0 = 0;
11692 char *_kwnames[] = { "self","value", NULL };
11693
11694 self = self;
11695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1))
11696 return NULL;
11697 if (_argo0) {
11698 if (_argo0 == Py_None) { _arg0 = NULL; }
11699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) {
11700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p.");
11701 return NULL;
11702 }
11703 }
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 wxSlider_SetValue(_arg0,_arg1);
11707
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) return NULL;
11710 } Py_INCREF(Py_None);
11711 _resultobj = Py_None;
11712 return _resultobj;
11713 }
11714
11715 static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) {
11716 wxSpinCtrl *src;
11717 wxSpinButton *dest;
11718 src = (wxSpinCtrl *) ptr;
11719 dest = (wxSpinButton *) src;
11720 return (void *) dest;
11721 }
11722
11723 static void *SwigwxSpinCtrlTowxControl(void *ptr) {
11724 wxSpinCtrl *src;
11725 wxControl *dest;
11726 src = (wxSpinCtrl *) ptr;
11727 dest = (wxControl *) src;
11728 return (void *) dest;
11729 }
11730
11731 static void *SwigwxSpinCtrlTowxWindow(void *ptr) {
11732 wxSpinCtrl *src;
11733 wxWindow *dest;
11734 src = (wxSpinCtrl *) ptr;
11735 dest = (wxWindow *) src;
11736 return (void *) dest;
11737 }
11738
11739 static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) {
11740 wxSpinCtrl *src;
11741 wxEvtHandler *dest;
11742 src = (wxSpinCtrl *) ptr;
11743 dest = (wxEvtHandler *) src;
11744 return (void *) dest;
11745 }
11746
11747 static void *SwigwxSpinCtrlTowxObject(void *ptr) {
11748 wxSpinCtrl *src;
11749 wxObject *dest;
11750 src = (wxSpinCtrl *) ptr;
11751 dest = (wxObject *) src;
11752 return (void *) dest;
11753 }
11754
11755 #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))
11756 static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject * _resultobj;
11758 wxSpinCtrl * _result;
11759 wxWindow * _arg0;
11760 wxWindowID _arg1 = (wxWindowID ) -1;
11761 wxString * _arg2 = (wxString *) &wxPyEmptyString;
11762 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
11763 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
11764 long _arg5 = (long ) wxSP_ARROW_KEYS;
11765 int _arg6 = (int ) 0;
11766 int _arg7 = (int ) 100;
11767 int _arg8 = (int ) 0;
11768 wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr;
11769 PyObject * _argo0 = 0;
11770 PyObject * _obj2 = 0;
11771 wxPoint temp;
11772 PyObject * _obj3 = 0;
11773 wxSize temp0;
11774 PyObject * _obj4 = 0;
11775 PyObject * _obj9 = 0;
11776 char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL };
11777 char _ptemp[128];
11778
11779 self = self;
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9))
11781 return NULL;
11782 if (_argo0) {
11783 if (_argo0 == Py_None) { _arg0 = NULL; }
11784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
11785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p.");
11786 return NULL;
11787 }
11788 }
11789 if (_obj2)
11790 {
11791 _arg2 = wxString_in_helper(_obj2);
11792 if (_arg2 == NULL)
11793 return NULL;
11794 }
11795 if (_obj3)
11796 {
11797 _arg3 = &temp;
11798 if (! wxPoint_helper(_obj3, &_arg3))
11799 return NULL;
11800 }
11801 if (_obj4)
11802 {
11803 _arg4 = &temp0;
11804 if (! wxSize_helper(_obj4, &_arg4))
11805 return NULL;
11806 }
11807 if (_obj9)
11808 {
11809 _arg9 = wxString_in_helper(_obj9);
11810 if (_arg9 == NULL)
11811 return NULL;
11812 }
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9);
11816
11817 wxPyEndAllowThreads(__tstate);
11818 if (PyErr_Occurred()) return NULL;
11819 } if (_result) {
11820 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
11821 _resultobj = Py_BuildValue("s",_ptemp);
11822 } else {
11823 Py_INCREF(Py_None);
11824 _resultobj = Py_None;
11825 }
11826 {
11827 if (_obj2)
11828 delete _arg2;
11829 }
11830 {
11831 if (_obj9)
11832 delete _arg9;
11833 }
11834 return _resultobj;
11835 }
11836
11837 #define new_wxPreSpinCtrl() (new wxSpinCtrl())
11838 static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
11839 PyObject * _resultobj;
11840 wxSpinCtrl * _result;
11841 char *_kwnames[] = { NULL };
11842 char _ptemp[128];
11843
11844 self = self;
11845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames))
11846 return NULL;
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 _result = (wxSpinCtrl *)new_wxPreSpinCtrl();
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) return NULL;
11853 } if (_result) {
11854 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p");
11855 _resultobj = Py_BuildValue("s",_ptemp);
11856 } else {
11857 Py_INCREF(Py_None);
11858 _resultobj = Py_None;
11859 }
11860 return _resultobj;
11861 }
11862
11863 #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))
11864 static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11865 PyObject * _resultobj;
11866 bool _result;
11867 wxSpinCtrl * _arg0;
11868 wxWindow * _arg1;
11869 wxWindowID _arg2 = (wxWindowID ) -1;
11870 wxString * _arg3 = (wxString *) &wxPyEmptyString;
11871 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
11872 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
11873 long _arg6 = (long ) wxSP_ARROW_KEYS;
11874 int _arg7 = (int ) 0;
11875 int _arg8 = (int ) 100;
11876 int _arg9 = (int ) 0;
11877 wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr;
11878 PyObject * _argo0 = 0;
11879 PyObject * _argo1 = 0;
11880 PyObject * _obj3 = 0;
11881 wxPoint temp;
11882 PyObject * _obj4 = 0;
11883 wxSize temp0;
11884 PyObject * _obj5 = 0;
11885 PyObject * _obj10 = 0;
11886 char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL };
11887
11888 self = self;
11889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10))
11890 return NULL;
11891 if (_argo0) {
11892 if (_argo0 == Py_None) { _arg0 = NULL; }
11893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p.");
11895 return NULL;
11896 }
11897 }
11898 if (_argo1) {
11899 if (_argo1 == Py_None) { _arg1 = NULL; }
11900 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
11901 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p.");
11902 return NULL;
11903 }
11904 }
11905 if (_obj3)
11906 {
11907 _arg3 = wxString_in_helper(_obj3);
11908 if (_arg3 == NULL)
11909 return NULL;
11910 }
11911 if (_obj4)
11912 {
11913 _arg4 = &temp;
11914 if (! wxPoint_helper(_obj4, &_arg4))
11915 return NULL;
11916 }
11917 if (_obj5)
11918 {
11919 _arg5 = &temp0;
11920 if (! wxSize_helper(_obj5, &_arg5))
11921 return NULL;
11922 }
11923 if (_obj10)
11924 {
11925 _arg10 = wxString_in_helper(_obj10);
11926 if (_arg10 == NULL)
11927 return NULL;
11928 }
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10);
11932
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) return NULL;
11935 } _resultobj = Py_BuildValue("i",_result);
11936 {
11937 if (_obj3)
11938 delete _arg3;
11939 }
11940 {
11941 if (_obj10)
11942 delete _arg10;
11943 }
11944 return _resultobj;
11945 }
11946
11947 #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax())
11948 static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) {
11949 PyObject * _resultobj;
11950 int _result;
11951 wxSpinCtrl * _arg0;
11952 PyObject * _argo0 = 0;
11953 char *_kwnames[] = { "self", NULL };
11954
11955 self = self;
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0))
11957 return NULL;
11958 if (_argo0) {
11959 if (_argo0 == Py_None) { _arg0 = NULL; }
11960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p.");
11962 return NULL;
11963 }
11964 }
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 _result = (int )wxSpinCtrl_GetMax(_arg0);
11968
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) return NULL;
11971 } _resultobj = Py_BuildValue("i",_result);
11972 return _resultobj;
11973 }
11974
11975 #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin())
11976 static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) {
11977 PyObject * _resultobj;
11978 int _result;
11979 wxSpinCtrl * _arg0;
11980 PyObject * _argo0 = 0;
11981 char *_kwnames[] = { "self", NULL };
11982
11983 self = self;
11984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0))
11985 return NULL;
11986 if (_argo0) {
11987 if (_argo0 == Py_None) { _arg0 = NULL; }
11988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
11989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p.");
11990 return NULL;
11991 }
11992 }
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 _result = (int )wxSpinCtrl_GetMin(_arg0);
11996
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) return NULL;
11999 } _resultobj = Py_BuildValue("i",_result);
12000 return _resultobj;
12001 }
12002
12003 #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue())
12004 static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12005 PyObject * _resultobj;
12006 int _result;
12007 wxSpinCtrl * _arg0;
12008 PyObject * _argo0 = 0;
12009 char *_kwnames[] = { "self", NULL };
12010
12011 self = self;
12012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0))
12013 return NULL;
12014 if (_argo0) {
12015 if (_argo0 == Py_None) { _arg0 = NULL; }
12016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
12017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p.");
12018 return NULL;
12019 }
12020 }
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 _result = (int )wxSpinCtrl_GetValue(_arg0);
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) return NULL;
12027 } _resultobj = Py_BuildValue("i",_result);
12028 return _resultobj;
12029 }
12030
12031 #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
12032 static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
12033 PyObject * _resultobj;
12034 wxSpinCtrl * _arg0;
12035 int _arg1;
12036 int _arg2;
12037 PyObject * _argo0 = 0;
12038 char *_kwnames[] = { "self","min","max", NULL };
12039
12040 self = self;
12041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
12042 return NULL;
12043 if (_argo0) {
12044 if (_argo0 == Py_None) { _arg0 = NULL; }
12045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
12046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p.");
12047 return NULL;
12048 }
12049 }
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 wxSpinCtrl_SetRange(_arg0,_arg1,_arg2);
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) return NULL;
12056 } Py_INCREF(Py_None);
12057 _resultobj = Py_None;
12058 return _resultobj;
12059 }
12060
12061 #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
12062 static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12063 PyObject * _resultobj;
12064 wxSpinCtrl * _arg0;
12065 int _arg1;
12066 PyObject * _argo0 = 0;
12067 char *_kwnames[] = { "self","value", NULL };
12068
12069 self = self;
12070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1))
12071 return NULL;
12072 if (_argo0) {
12073 if (_argo0 == Py_None) { _arg0 = NULL; }
12074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
12075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p.");
12076 return NULL;
12077 }
12078 }
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 wxSpinCtrl_SetValue(_arg0,_arg1);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) return NULL;
12085 } Py_INCREF(Py_None);
12086 _resultobj = Py_None;
12087 return _resultobj;
12088 }
12089
12090 static void wxSpinCtrl_SetSelection(wxSpinCtrl *self,long from,long to) {
12091 }
12092 static PyObject *_wrap_wxSpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12093 PyObject * _resultobj;
12094 wxSpinCtrl * _arg0;
12095 long _arg1;
12096 long _arg2;
12097 PyObject * _argo0 = 0;
12098 char *_kwnames[] = { "self","from","to", NULL };
12099
12100 self = self;
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSpinCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
12102 return NULL;
12103 if (_argo0) {
12104 if (_argo0 == Py_None) { _arg0 = NULL; }
12105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
12106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetSelection. Expected _wxSpinCtrl_p.");
12107 return NULL;
12108 }
12109 }
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 wxSpinCtrl_SetSelection(_arg0,_arg1,_arg2);
12113
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) return NULL;
12116 } Py_INCREF(Py_None);
12117 _resultobj = Py_None;
12118 return _resultobj;
12119 }
12120
12121 static void *SwigwxToggleButtonTowxControl(void *ptr) {
12122 wxToggleButton *src;
12123 wxControl *dest;
12124 src = (wxToggleButton *) ptr;
12125 dest = (wxControl *) src;
12126 return (void *) dest;
12127 }
12128
12129 static void *SwigwxToggleButtonTowxWindow(void *ptr) {
12130 wxToggleButton *src;
12131 wxWindow *dest;
12132 src = (wxToggleButton *) ptr;
12133 dest = (wxWindow *) src;
12134 return (void *) dest;
12135 }
12136
12137 static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) {
12138 wxToggleButton *src;
12139 wxEvtHandler *dest;
12140 src = (wxToggleButton *) ptr;
12141 dest = (wxEvtHandler *) src;
12142 return (void *) dest;
12143 }
12144
12145 static void *SwigwxToggleButtonTowxObject(void *ptr) {
12146 wxToggleButton *src;
12147 wxObject *dest;
12148 src = (wxToggleButton *) ptr;
12149 dest = (wxObject *) src;
12150 return (void *) dest;
12151 }
12152
12153 #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
12154 static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12155 PyObject * _resultobj;
12156 wxToggleButton * _result;
12157 wxWindow * _arg0;
12158 wxWindowID _arg1;
12159 wxString * _arg2;
12160 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
12161 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
12162 long _arg5 = (long ) 0;
12163 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
12164 wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr;
12165 PyObject * _argo0 = 0;
12166 PyObject * _obj2 = 0;
12167 wxPoint temp;
12168 PyObject * _obj3 = 0;
12169 wxSize temp0;
12170 PyObject * _obj4 = 0;
12171 PyObject * _argo6 = 0;
12172 PyObject * _obj7 = 0;
12173 char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
12174 char _ptemp[128];
12175
12176 self = self;
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
12178 return NULL;
12179 if (_argo0) {
12180 if (_argo0 == Py_None) { _arg0 = NULL; }
12181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
12182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p.");
12183 return NULL;
12184 }
12185 }
12186 {
12187 _arg2 = wxString_in_helper(_obj2);
12188 if (_arg2 == NULL)
12189 return NULL;
12190 }
12191 if (_obj3)
12192 {
12193 _arg3 = &temp;
12194 if (! wxPoint_helper(_obj3, &_arg3))
12195 return NULL;
12196 }
12197 if (_obj4)
12198 {
12199 _arg4 = &temp0;
12200 if (! wxSize_helper(_obj4, &_arg4))
12201 return NULL;
12202 }
12203 if (_argo6) {
12204 if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
12205 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p.");
12206 return NULL;
12207 }
12208 }
12209 if (_obj7)
12210 {
12211 _arg7 = wxString_in_helper(_obj7);
12212 if (_arg7 == NULL)
12213 return NULL;
12214 }
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
12218
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) return NULL;
12221 } if (_result) {
12222 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
12223 _resultobj = Py_BuildValue("s",_ptemp);
12224 } else {
12225 Py_INCREF(Py_None);
12226 _resultobj = Py_None;
12227 }
12228 {
12229 if (_obj2)
12230 delete _arg2;
12231 }
12232 {
12233 if (_obj7)
12234 delete _arg7;
12235 }
12236 return _resultobj;
12237 }
12238
12239 #define new_wxPreToggleButton() (new wxToggleButton())
12240 static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
12241 PyObject * _resultobj;
12242 wxToggleButton * _result;
12243 char *_kwnames[] = { NULL };
12244 char _ptemp[128];
12245
12246 self = self;
12247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames))
12248 return NULL;
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 _result = (wxToggleButton *)new_wxPreToggleButton();
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) return NULL;
12255 } if (_result) {
12256 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p");
12257 _resultobj = Py_BuildValue("s",_ptemp);
12258 } else {
12259 Py_INCREF(Py_None);
12260 _resultobj = Py_None;
12261 }
12262 return _resultobj;
12263 }
12264
12265 #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
12266 static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
12267 PyObject * _resultobj;
12268 bool _result;
12269 wxToggleButton * _arg0;
12270 wxWindow * _arg1;
12271 wxWindowID _arg2;
12272 wxString * _arg3;
12273 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
12274 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
12275 long _arg6 = (long ) 0;
12276 wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator;
12277 wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr;
12278 PyObject * _argo0 = 0;
12279 PyObject * _argo1 = 0;
12280 PyObject * _obj3 = 0;
12281 wxPoint temp;
12282 PyObject * _obj4 = 0;
12283 wxSize temp0;
12284 PyObject * _obj5 = 0;
12285 PyObject * _argo7 = 0;
12286 PyObject * _obj8 = 0;
12287 char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
12288
12289 self = self;
12290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
12291 return NULL;
12292 if (_argo0) {
12293 if (_argo0 == Py_None) { _arg0 = NULL; }
12294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
12295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p.");
12296 return NULL;
12297 }
12298 }
12299 if (_argo1) {
12300 if (_argo1 == Py_None) { _arg1 = NULL; }
12301 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
12302 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p.");
12303 return NULL;
12304 }
12305 }
12306 {
12307 _arg3 = wxString_in_helper(_obj3);
12308 if (_arg3 == NULL)
12309 return NULL;
12310 }
12311 if (_obj4)
12312 {
12313 _arg4 = &temp;
12314 if (! wxPoint_helper(_obj4, &_arg4))
12315 return NULL;
12316 }
12317 if (_obj5)
12318 {
12319 _arg5 = &temp0;
12320 if (! wxSize_helper(_obj5, &_arg5))
12321 return NULL;
12322 }
12323 if (_argo7) {
12324 if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) {
12325 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p.");
12326 return NULL;
12327 }
12328 }
12329 if (_obj8)
12330 {
12331 _arg8 = wxString_in_helper(_obj8);
12332 if (_arg8 == NULL)
12333 return NULL;
12334 }
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8);
12338
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) return NULL;
12341 } _resultobj = Py_BuildValue("i",_result);
12342 {
12343 if (_obj3)
12344 delete _arg3;
12345 }
12346 {
12347 if (_obj8)
12348 delete _arg8;
12349 }
12350 return _resultobj;
12351 }
12352
12353 #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
12354 static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12355 PyObject * _resultobj;
12356 wxToggleButton * _arg0;
12357 bool _arg1;
12358 PyObject * _argo0 = 0;
12359 int tempbool1;
12360 char *_kwnames[] = { "self","value", NULL };
12361
12362 self = self;
12363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1))
12364 return NULL;
12365 if (_argo0) {
12366 if (_argo0 == Py_None) { _arg0 = NULL; }
12367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
12368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p.");
12369 return NULL;
12370 }
12371 }
12372 _arg1 = (bool ) tempbool1;
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 wxToggleButton_SetValue(_arg0,_arg1);
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) return NULL;
12379 } Py_INCREF(Py_None);
12380 _resultobj = Py_None;
12381 return _resultobj;
12382 }
12383
12384 #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue())
12385 static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12386 PyObject * _resultobj;
12387 bool _result;
12388 wxToggleButton * _arg0;
12389 PyObject * _argo0 = 0;
12390 char *_kwnames[] = { "self", NULL };
12391
12392 self = self;
12393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0))
12394 return NULL;
12395 if (_argo0) {
12396 if (_argo0 == Py_None) { _arg0 = NULL; }
12397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
12398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p.");
12399 return NULL;
12400 }
12401 }
12402 {
12403 PyThreadState* __tstate = wxPyBeginAllowThreads();
12404 _result = (bool )wxToggleButton_GetValue(_arg0);
12405
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) return NULL;
12408 } _resultobj = Py_BuildValue("i",_result);
12409 return _resultobj;
12410 }
12411
12412 #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
12413 static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12414 PyObject * _resultobj;
12415 wxToggleButton * _arg0;
12416 wxString * _arg1;
12417 PyObject * _argo0 = 0;
12418 PyObject * _obj1 = 0;
12419 char *_kwnames[] = { "self","label", NULL };
12420
12421 self = self;
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1))
12423 return NULL;
12424 if (_argo0) {
12425 if (_argo0 == Py_None) { _arg0 = NULL; }
12426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) {
12427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p.");
12428 return NULL;
12429 }
12430 }
12431 {
12432 _arg1 = wxString_in_helper(_obj1);
12433 if (_arg1 == NULL)
12434 return NULL;
12435 }
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 wxToggleButton_SetLabel(_arg0,*_arg1);
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) return NULL;
12442 } Py_INCREF(Py_None);
12443 _resultobj = Py_None;
12444 {
12445 if (_obj1)
12446 delete _arg1;
12447 }
12448 return _resultobj;
12449 }
12450
12451 static PyMethodDef controlscMethods[] = {
12452 { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS },
12453 { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS },
12454 { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS },
12455 { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
12456 { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS },
12457 { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS },
12458 { "wxSpinCtrl_SetSelection", (PyCFunction) _wrap_wxSpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
12459 { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
12460 { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
12461 { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
12462 { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS },
12463 { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS },
12464 { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS },
12465 { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS },
12466 { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS },
12467 { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS },
12468 { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS },
12469 { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS },
12470 { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS },
12471 { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS },
12472 { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS },
12473 { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS },
12474 { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS },
12475 { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS },
12476 { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS },
12477 { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS },
12478 { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS },
12479 { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS },
12480 { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS },
12481 { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS },
12482 { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS },
12483 { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS },
12484 { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS },
12485 { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS },
12486 { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS },
12487 { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS },
12488 { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS },
12489 { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS },
12490 { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS },
12491 { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS },
12492 { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS },
12493 { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS },
12494 { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS },
12495 { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS },
12496 { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
12497 { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
12498 { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS },
12499 { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
12500 { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
12501 { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS },
12502 { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS },
12503 { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS },
12504 { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS },
12505 { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS },
12506 { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS },
12507 { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS },
12508 { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS },
12509 { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS },
12510 { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS },
12511 { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS },
12512 { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS },
12513 { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS },
12514 { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS },
12515 { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS },
12516 { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS },
12517 { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS },
12518 { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS },
12519 { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS },
12520 { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS },
12521 { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS },
12522 { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
12523 { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
12524 { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
12525 { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS },
12526 { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
12527 { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
12528 { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
12529 { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
12530 { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS },
12531 { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS },
12532 { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS },
12533 { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS },
12534 { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS },
12535 { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS },
12536 { "wxTextCtrl_IsMultiLine", (PyCFunction) _wrap_wxTextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS },
12537 { "wxTextCtrl_IsSingleLine", (PyCFunction) _wrap_wxTextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS },
12538 { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS },
12539 { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS },
12540 { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
12541 { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
12542 { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
12543 { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
12544 { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
12545 { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS },
12546 { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS },
12547 { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS },
12548 { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS },
12549 { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS },
12550 { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS },
12551 { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS },
12552 { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS },
12553 { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS },
12554 { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS },
12555 { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS },
12556 { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS },
12557 { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS },
12558 { "wxTextCtrl_GetStyle", (PyCFunction) _wrap_wxTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS },
12559 { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
12560 { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS },
12561 { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS },
12562 { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS },
12563 { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
12564 { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS },
12565 { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS },
12566 { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS },
12567 { "wxTextCtrl_MarkDirty", (PyCFunction) _wrap_wxTextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS },
12568 { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
12569 { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
12570 { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS },
12571 { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS },
12572 { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS },
12573 { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
12574 { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
12575 { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS },
12576 { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS },
12577 { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS },
12578 { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS },
12579 { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS },
12580 { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS },
12581 { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
12582 { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
12583 { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS },
12584 { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS },
12585 { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS },
12586 { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS },
12587 { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS },
12588 { "wxTextAttr_GetFlags", (PyCFunction) _wrap_wxTextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS },
12589 { "wxTextAttr_GetRightIndent", (PyCFunction) _wrap_wxTextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS },
12590 { "wxTextAttr_GetLeftIndent", (PyCFunction) _wrap_wxTextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS },
12591 { "wxTextAttr_GetTabs", (PyCFunction) _wrap_wxTextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS },
12592 { "wxTextAttr_GetAlignment", (PyCFunction) _wrap_wxTextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
12593 { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
12594 { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12595 { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
12596 { "wxTextAttr_HasFlag", (PyCFunction) _wrap_wxTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS },
12597 { "wxTextAttr_HasRightIndent", (PyCFunction) _wrap_wxTextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS },
12598 { "wxTextAttr_HasLeftIndent", (PyCFunction) _wrap_wxTextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS },
12599 { "wxTextAttr_HasTabs", (PyCFunction) _wrap_wxTextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS },
12600 { "wxTextAttr_HasAlignment", (PyCFunction) _wrap_wxTextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
12601 { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
12602 { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12603 { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
12604 { "wxTextAttr_SetFlags", (PyCFunction) _wrap_wxTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS },
12605 { "wxTextAttr_SetRightIndent", (PyCFunction) _wrap_wxTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS },
12606 { "wxTextAttr_SetLeftIndent", (PyCFunction) _wrap_wxTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS },
12607 { "wxTextAttr_SetTabs", (PyCFunction) _wrap_wxTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS },
12608 { "wxTextAttr_SetAlignment", (PyCFunction) _wrap_wxTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
12609 { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
12610 { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12611 { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
12612 { "wxTextAttr_Init", (PyCFunction) _wrap_wxTextAttr_Init, METH_VARARGS | METH_KEYWORDS },
12613 { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
12614 { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS },
12615 { "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS },
12616 { "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS },
12617 { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS },
12618 { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
12619 { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS },
12620 { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
12621 { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS },
12622 { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS },
12623 { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS },
12624 { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
12625 { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS },
12626 { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
12627 { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS },
12628 { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS },
12629 { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS },
12630 { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS },
12631 { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS },
12632 { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS },
12633 { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS },
12634 { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS },
12635 { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS },
12636 { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS },
12637 { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS },
12638 { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS },
12639 { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS },
12640 { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS },
12641 { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS },
12642 { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS },
12643 { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS },
12644 { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS },
12645 { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS },
12646 { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS },
12647 { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS },
12648 { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS },
12649 { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS },
12650 { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS },
12651 { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS },
12652 { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS },
12653 { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS },
12654 { "wxGauge_IsVertical", (PyCFunction) _wrap_wxGauge_IsVertical, METH_VARARGS | METH_KEYWORDS },
12655 { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS },
12656 { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS },
12657 { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS },
12658 { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS },
12659 { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS },
12660 { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS },
12661 { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS },
12662 { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS },
12663 { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS },
12664 { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS },
12665 { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
12666 { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS },
12667 { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS },
12668 { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS },
12669 { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS },
12670 { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS },
12671 { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS },
12672 { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS },
12673 { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS },
12674 { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS },
12675 { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS },
12676 { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS },
12677 { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
12678 { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS },
12679 { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS },
12680 { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS },
12681 { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS },
12682 { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS },
12683 { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS },
12684 { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS },
12685 { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS },
12686 { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS },
12687 { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS },
12688 { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS },
12689 { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS },
12690 { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS },
12691 { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS },
12692 { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS },
12693 { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS },
12694 { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS },
12695 { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS },
12696 { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS },
12697 { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS },
12698 { "wxCheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_wxCheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS },
12699 { "wxCheckBox_Is3State", (PyCFunction) _wrap_wxCheckBox_Is3State, METH_VARARGS | METH_KEYWORDS },
12700 { "wxCheckBox_Set3StateValue", (PyCFunction) _wrap_wxCheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS },
12701 { "wxCheckBox_Get3StateValue", (PyCFunction) _wrap_wxCheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS },
12702 { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS },
12703 { "wxCheckBox_IsChecked", (PyCFunction) _wrap_wxCheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS },
12704 { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS },
12705 { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS },
12706 { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS },
12707 { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS },
12708 { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS },
12709 { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS },
12710 { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS },
12711 { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
12712 { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
12713 { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
12714 { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
12715 { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS },
12716 { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS },
12717 { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS },
12718 { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS },
12719 { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS },
12720 { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS },
12721 { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS },
12722 { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS },
12723 { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
12724 { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12725 { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS },
12726 { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS },
12727 { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS },
12728 { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS },
12729 { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS },
12730 { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS },
12731 { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS },
12732 { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS },
12733 { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
12734 { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS },
12735 { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS },
12736 { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS },
12737 { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS },
12738 { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS },
12739 { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS },
12740 { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS },
12741 { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS },
12742 { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS },
12743 { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS },
12744 { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS },
12745 { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS },
12746 { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS },
12747 { NULL, NULL }
12748 };
12749 #ifdef __cplusplus
12750 }
12751 #endif
12752 /*
12753 * This table is used by the pointer type-checker
12754 */
12755 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12756 { "_signed_long","_long",0},
12757 { "_wxPrintQuality","_wxCoord",0},
12758 { "_wxPrintQuality","_int",0},
12759 { "_wxPrintQuality","_signed_int",0},
12760 { "_wxPrintQuality","_unsigned_int",0},
12761 { "_wxPrintQuality","_wxWindowID",0},
12762 { "_wxPrintQuality","_uint",0},
12763 { "_wxPrintQuality","_EBool",0},
12764 { "_wxPrintQuality","_size_t",0},
12765 { "_wxPrintQuality","_time_t",0},
12766 { "_byte","_unsigned_char",0},
12767 { "_long","_unsigned_long",0},
12768 { "_long","_signed_long",0},
12769 { "_size_t","_wxCoord",0},
12770 { "_size_t","_wxPrintQuality",0},
12771 { "_size_t","_time_t",0},
12772 { "_size_t","_unsigned_int",0},
12773 { "_size_t","_int",0},
12774 { "_size_t","_wxWindowID",0},
12775 { "_size_t","_uint",0},
12776 { "_uint","_wxCoord",0},
12777 { "_uint","_wxPrintQuality",0},
12778 { "_uint","_time_t",0},
12779 { "_uint","_size_t",0},
12780 { "_uint","_unsigned_int",0},
12781 { "_uint","_int",0},
12782 { "_uint","_wxWindowID",0},
12783 { "_wxChar","_char",0},
12784 { "_char","_wxChar",0},
12785 { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton},
12786 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12787 { "_EBool","_wxCoord",0},
12788 { "_EBool","_wxPrintQuality",0},
12789 { "_EBool","_signed_int",0},
12790 { "_EBool","_int",0},
12791 { "_EBool","_wxWindowID",0},
12792 { "_unsigned_long","_long",0},
12793 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12794 { "_signed_int","_wxCoord",0},
12795 { "_signed_int","_wxPrintQuality",0},
12796 { "_signed_int","_EBool",0},
12797 { "_signed_int","_wxWindowID",0},
12798 { "_signed_int","_int",0},
12799 { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox},
12800 { "_WXTYPE","_short",0},
12801 { "_WXTYPE","_signed_short",0},
12802 { "_WXTYPE","_unsigned_short",0},
12803 { "_unsigned_short","_WXTYPE",0},
12804 { "_unsigned_short","_short",0},
12805 { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
12806 { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
12807 { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
12808 { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
12809 { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
12810 { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
12811 { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
12812 { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
12813 { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
12814 { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
12815 { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
12816 { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
12817 { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
12818 { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
12819 { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
12820 { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
12821 { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
12822 { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
12823 { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
12824 { "_wxObject","_wxButton",SwigwxButtonTowxObject},
12825 { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject},
12826 { "_wxObject","_wxControl",SwigwxControlTowxObject},
12827 { "_signed_short","_WXTYPE",0},
12828 { "_signed_short","_short",0},
12829 { "_unsigned_char","_byte",0},
12830 { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl},
12831 { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl},
12832 { "_wxControl","_wxSlider",SwigwxSliderTowxControl},
12833 { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl},
12834 { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl},
12835 { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl},
12836 { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl},
12837 { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl},
12838 { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl},
12839 { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl},
12840 { "_wxControl","_wxListBox",SwigwxListBoxTowxControl},
12841 { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl},
12842 { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl},
12843 { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl},
12844 { "_wxControl","_wxGauge",SwigwxGaugeTowxControl},
12845 { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl},
12846 { "_wxControl","_wxChoice",SwigwxChoiceTowxControl},
12847 { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl},
12848 { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl},
12849 { "_wxControl","_wxButton",SwigwxButtonTowxControl},
12850 { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl},
12851 { "_unsigned_int","_wxCoord",0},
12852 { "_unsigned_int","_wxPrintQuality",0},
12853 { "_unsigned_int","_time_t",0},
12854 { "_unsigned_int","_size_t",0},
12855 { "_unsigned_int","_uint",0},
12856 { "_unsigned_int","_wxWindowID",0},
12857 { "_unsigned_int","_int",0},
12858 { "_short","_WXTYPE",0},
12859 { "_short","_unsigned_short",0},
12860 { "_short","_signed_short",0},
12861 { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems},
12862 { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems},
12863 { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems},
12864 { "_wxWindowID","_wxCoord",0},
12865 { "_wxWindowID","_wxPrintQuality",0},
12866 { "_wxWindowID","_time_t",0},
12867 { "_wxWindowID","_size_t",0},
12868 { "_wxWindowID","_EBool",0},
12869 { "_wxWindowID","_uint",0},
12870 { "_wxWindowID","_int",0},
12871 { "_wxWindowID","_signed_int",0},
12872 { "_wxWindowID","_unsigned_int",0},
12873 { "_int","_wxCoord",0},
12874 { "_int","_wxPrintQuality",0},
12875 { "_int","_time_t",0},
12876 { "_int","_size_t",0},
12877 { "_int","_EBool",0},
12878 { "_int","_uint",0},
12879 { "_int","_wxWindowID",0},
12880 { "_int","_unsigned_int",0},
12881 { "_int","_signed_int",0},
12882 { "_time_t","_wxCoord",0},
12883 { "_time_t","_wxPrintQuality",0},
12884 { "_time_t","_unsigned_int",0},
12885 { "_time_t","_int",0},
12886 { "_time_t","_wxWindowID",0},
12887 { "_time_t","_uint",0},
12888 { "_time_t","_size_t",0},
12889 { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton},
12890 { "_wxCoord","_int",0},
12891 { "_wxCoord","_signed_int",0},
12892 { "_wxCoord","_unsigned_int",0},
12893 { "_wxCoord","_wxWindowID",0},
12894 { "_wxCoord","_uint",0},
12895 { "_wxCoord","_EBool",0},
12896 { "_wxCoord","_size_t",0},
12897 { "_wxCoord","_time_t",0},
12898 { "_wxCoord","_wxPrintQuality",0},
12899 { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler},
12900 { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler},
12901 { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler},
12902 { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler},
12903 { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler},
12904 { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler},
12905 { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler},
12906 { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler},
12907 { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler},
12908 { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler},
12909 { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler},
12910 { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler},
12911 { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler},
12912 { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler},
12913 { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler},
12914 { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler},
12915 { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler},
12916 { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler},
12917 { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler},
12918 { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler},
12919 { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler},
12920 { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler},
12921 { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow},
12922 { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow},
12923 { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow},
12924 { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow},
12925 { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow},
12926 { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow},
12927 { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow},
12928 { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow},
12929 { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow},
12930 { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow},
12931 { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow},
12932 { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow},
12933 { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow},
12934 { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow},
12935 { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow},
12936 { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow},
12937 { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow},
12938 { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow},
12939 { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow},
12940 { "_wxWindow","_wxButton",SwigwxButtonTowxWindow},
12941 { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow},
12942 { "_wxWindow","_wxControl",SwigwxControlTowxWindow},
12943 {0,0,0}};
12944
12945 static PyObject *SWIG_globals;
12946 #ifdef __cplusplus
12947 extern "C"
12948 #endif
12949 SWIGEXPORT(void) initcontrolsc() {
12950 PyObject *m, *d;
12951 SWIG_globals = SWIG_newvarlink();
12952 m = Py_InitModule("controlsc", controlscMethods);
12953 d = PyModule_GetDict(m);
12954 PyDict_SetItemString(d,"cvar", SWIG_globals);
12955 SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set);
12956 PyDict_SetItemString(d,"wxCHK_2STATE", PyInt_FromLong((long) wxCHK_2STATE));
12957 PyDict_SetItemString(d,"wxCHK_3STATE", PyInt_FromLong((long) wxCHK_3STATE));
12958 PyDict_SetItemString(d,"wxCHK_ALLOW_3RD_STATE_FOR_USER", PyInt_FromLong((long) wxCHK_ALLOW_3RD_STATE_FOR_USER));
12959 PyDict_SetItemString(d,"wxCHK_UNCHECKED", PyInt_FromLong((long) wxCHK_UNCHECKED));
12960 PyDict_SetItemString(d,"wxCHK_CHECKED", PyInt_FromLong((long) wxCHK_CHECKED));
12961 PyDict_SetItemString(d,"wxCHK_UNDETERMINED", PyInt_FromLong((long) wxCHK_UNDETERMINED));
12962 PyDict_SetItemString(d,"wxTE_NO_VSCROLL", PyInt_FromLong((long) wxTE_NO_VSCROLL));
12963 PyDict_SetItemString(d,"wxTE_AUTO_SCROLL", PyInt_FromLong((long) wxTE_AUTO_SCROLL));
12964 PyDict_SetItemString(d,"wxTE_READONLY", PyInt_FromLong((long) wxTE_READONLY));
12965 PyDict_SetItemString(d,"wxTE_MULTILINE", PyInt_FromLong((long) wxTE_MULTILINE));
12966 PyDict_SetItemString(d,"wxTE_PROCESS_TAB", PyInt_FromLong((long) wxTE_PROCESS_TAB));
12967 PyDict_SetItemString(d,"wxTE_LEFT", PyInt_FromLong((long) wxTE_LEFT));
12968 PyDict_SetItemString(d,"wxTE_CENTER", PyInt_FromLong((long) wxTE_CENTER));
12969 PyDict_SetItemString(d,"wxTE_RIGHT", PyInt_FromLong((long) wxTE_RIGHT));
12970 PyDict_SetItemString(d,"wxTE_CENTRE", PyInt_FromLong((long) wxTE_CENTRE));
12971 PyDict_SetItemString(d,"wxTE_RICH", PyInt_FromLong((long) wxTE_RICH));
12972 PyDict_SetItemString(d,"wxTE_PROCESS_ENTER", PyInt_FromLong((long) wxTE_PROCESS_ENTER));
12973 PyDict_SetItemString(d,"wxTE_PASSWORD", PyInt_FromLong((long) wxTE_PASSWORD));
12974 PyDict_SetItemString(d,"wxTE_AUTO_URL", PyInt_FromLong((long) wxTE_AUTO_URL));
12975 PyDict_SetItemString(d,"wxTE_NOHIDESEL", PyInt_FromLong((long) wxTE_NOHIDESEL));
12976 PyDict_SetItemString(d,"wxTE_DONTWRAP", PyInt_FromLong((long) wxTE_DONTWRAP));
12977 PyDict_SetItemString(d,"wxTE_LINEWRAP", PyInt_FromLong((long) wxTE_LINEWRAP));
12978 PyDict_SetItemString(d,"wxTE_WORDWRAP", PyInt_FromLong((long) wxTE_WORDWRAP));
12979 PyDict_SetItemString(d,"wxTE_RICH2", PyInt_FromLong((long) wxTE_RICH2));
12980 PyDict_SetItemString(d,"wxTEXT_ATTR_TEXT_COLOUR", PyInt_FromLong((long) wxTEXT_ATTR_TEXT_COLOUR));
12981 PyDict_SetItemString(d,"wxTEXT_ATTR_BACKGROUND_COLOUR", PyInt_FromLong((long) wxTEXT_ATTR_BACKGROUND_COLOUR));
12982 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_FACE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_FACE));
12983 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_SIZE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_SIZE));
12984 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_WEIGHT", PyInt_FromLong((long) wxTEXT_ATTR_FONT_WEIGHT));
12985 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_ITALIC", PyInt_FromLong((long) wxTEXT_ATTR_FONT_ITALIC));
12986 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_UNDERLINE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_UNDERLINE));
12987 PyDict_SetItemString(d,"wxTEXT_ATTR_FONT", PyInt_FromLong((long) wxTEXT_ATTR_FONT));
12988 PyDict_SetItemString(d,"wxTEXT_ATTR_ALIGNMENT", PyInt_FromLong((long) wxTEXT_ATTR_ALIGNMENT));
12989 PyDict_SetItemString(d,"wxTEXT_ATTR_LEFT_INDENT", PyInt_FromLong((long) wxTEXT_ATTR_LEFT_INDENT));
12990 PyDict_SetItemString(d,"wxTEXT_ATTR_RIGHT_INDENT", PyInt_FromLong((long) wxTEXT_ATTR_RIGHT_INDENT));
12991 PyDict_SetItemString(d,"wxTEXT_ATTR_TABS", PyInt_FromLong((long) wxTEXT_ATTR_TABS));
12992 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_DEFAULT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_DEFAULT));
12993 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_LEFT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_LEFT));
12994 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_CENTRE", PyInt_FromLong((long) wxTEXT_ALIGNMENT_CENTRE));
12995 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_CENTER", PyInt_FromLong((long) wxTEXT_ALIGNMENT_CENTER));
12996 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_RIGHT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_RIGHT));
12997 PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_JUSTIFIED", PyInt_FromLong((long) wxTEXT_ALIGNMENT_JUSTIFIED));
12998 PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
12999 {
13000 int i;
13001 for (i = 0; _swig_mapping[i].n1; i++)
13002 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
13003 }
13004 }