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