]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
b639c3c5 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
cf694132 | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
d1679124 | 64 | #include <wx/tglbtn.h> |
8ab979d7 RD |
65 | |
66 | #ifdef __WXMSW__ | |
9c039d08 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
8ab979d7 RD |
70 | #endif |
71 | ||
be4d9c1f RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
bb0054cd | 76 | |
8ab979d7 RD |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
e0672e2f | 81 | if (!target) { |
8ab979d7 | 82 | target = o; |
e0672e2f | 83 | } else if (target == Py_None) { |
8ab979d7 RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
e0672e2f | 86 | } else { |
8ab979d7 RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
e0672e2f RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
94 | |
95 | o2 = target; | |
e0672e2f RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
8ab979d7 RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
137b5242 RD |
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("")); | |
1d99702e RD |
127 | #ifdef __cplusplus |
128 | extern "C" { | |
129 | #endif | |
2f90df85 RD |
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 | ||
8ab979d7 RD |
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 | ||
9416aa89 RD |
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 | ||
9b3d3bc4 | 169 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6999b0d8 RD |
170 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
171 | PyObject * _resultobj; | |
172 | wxControl * _result; | |
9b3d3bc4 RD |
173 | wxWindow * _arg0; |
174 | wxWindowID _arg1; | |
e508a2b6 RD |
175 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
176 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
9b3d3bc4 | 177 | long _arg4 = (long ) 0; |
e508a2b6 | 178 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 179 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; |
9b3d3bc4 RD |
180 | PyObject * _argo0 = 0; |
181 | wxPoint temp; | |
182 | PyObject * _obj2 = 0; | |
183 | wxSize temp0; | |
184 | PyObject * _obj3 = 0; | |
185 | PyObject * _argo5 = 0; | |
137b5242 | 186 | PyObject * _obj6 = 0; |
9b3d3bc4 | 187 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
6999b0d8 RD |
188 | char _ptemp[128]; |
189 | ||
190 | self = self; | |
137b5242 | 191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
9b3d3bc4 RD |
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)) | |
6999b0d8 | 204 | return NULL; |
9b3d3bc4 RD |
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 | } | |
137b5242 RD |
219 | if (_obj6) |
220 | { | |
221 | _arg6 = wxString_in_helper(_obj6); | |
222 | if (_arg6 == NULL) | |
223 | return NULL; | |
224 | } | |
6999b0d8 | 225 | { |
4268f798 | 226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 227 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6999b0d8 | 228 | |
4268f798 | 229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 230 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
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 | } | |
137b5242 RD |
238 | { |
239 | if (_obj6) | |
240 | delete _arg6; | |
241 | } | |
6999b0d8 RD |
242 | return _resultobj; |
243 | } | |
244 | ||
09f3d4e6 RD |
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 | { | |
4268f798 | 256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 257 | _result = (wxControl *)new_wxPreControl(); |
09f3d4e6 | 258 | |
4268f798 | 259 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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; | |
137b5242 | 282 | wxString * _arg7 = (wxString *) &wxPyControlNameStr; |
09f3d4e6 RD |
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; | |
137b5242 | 290 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
291 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
292 | ||
293 | self = self; | |
137b5242 | 294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
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 | } | |
137b5242 RD |
329 | if (_obj7) |
330 | { | |
331 | _arg7 = wxString_in_helper(_obj7); | |
332 | if (_arg7 == NULL) | |
333 | return NULL; | |
334 | } | |
09f3d4e6 | 335 | { |
4268f798 | 336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 337 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 338 | |
4268f798 | 339 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
340 | if (PyErr_Occurred()) return NULL; |
341 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
342 | { |
343 | if (_obj7) | |
344 | delete _arg7; | |
345 | } | |
09f3d4e6 RD |
346 | return _resultobj; |
347 | } | |
348 | ||
8ab979d7 | 349 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
efc5f224 | 350 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
351 | PyObject * _resultobj; |
352 | wxControl * _arg0; | |
353 | wxCommandEvent * _arg1; | |
1d99702e RD |
354 | PyObject * _argo0 = 0; |
355 | PyObject * _argo1 = 0; | |
efc5f224 | 356 | char *_kwnames[] = { "self","event", NULL }; |
8ab979d7 RD |
357 | |
358 | self = self; | |
efc5f224 | 359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 360 | return NULL; |
1d99702e RD |
361 | if (_argo0) { |
362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); |
365 | return NULL; | |
366 | } | |
367 | } | |
1d99702e RD |
368 | if (_argo1) { |
369 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
370 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
8ab979d7 RD |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
372 | return NULL; | |
373 | } | |
374 | } | |
cf694132 | 375 | { |
4268f798 | 376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 377 | wxControl_Command(_arg0,*_arg1); |
cf694132 | 378 | |
4268f798 | 379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 381 | } Py_INCREF(Py_None); |
8ab979d7 RD |
382 | _resultobj = Py_None; |
383 | return _resultobj; | |
384 | } | |
385 | ||
386 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
efc5f224 | 387 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
388 | PyObject * _resultobj; |
389 | wxString * _result; | |
390 | wxControl * _arg0; | |
1d99702e | 391 | PyObject * _argo0 = 0; |
efc5f224 | 392 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
393 | |
394 | self = self; | |
efc5f224 | 395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 396 | return NULL; |
1d99702e RD |
397 | if (_argo0) { |
398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
401 | return NULL; | |
402 | } | |
403 | } | |
8ab979d7 | 404 | { |
4268f798 | 405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 406 | _result = new wxString (wxControl_GetLabel(_arg0)); |
cf694132 | 407 | |
4268f798 | 408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 410 | }{ |
c8bc7bb8 RD |
411 | #if wxUSE_UNICODE |
412 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
413 | #else | |
eec92d76 | 414 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 415 | #endif |
8ab979d7 RD |
416 | } |
417 | { | |
418 | delete _result; | |
419 | } | |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 424 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
425 | PyObject * _resultobj; |
426 | wxControl * _arg0; | |
427 | wxString * _arg1; | |
1d99702e | 428 | PyObject * _argo0 = 0; |
8ab979d7 | 429 | PyObject * _obj1 = 0; |
efc5f224 | 430 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
431 | |
432 | self = self; | |
efc5f224 | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 434 | return NULL; |
1d99702e RD |
435 | if (_argo0) { |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
8ab979d7 RD |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
c8bc7bb8 RD |
443 | _arg1 = wxString_in_helper(_obj1); |
444 | if (_arg1 == NULL) | |
8ab979d7 | 445 | return NULL; |
8ab979d7 | 446 | } |
cf694132 | 447 | { |
4268f798 | 448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 449 | wxControl_SetLabel(_arg0,*_arg1); |
cf694132 | 450 | |
4268f798 | 451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 453 | } Py_INCREF(Py_None); |
8ab979d7 RD |
454 | _resultobj = Py_None; |
455 | { | |
456 | if (_obj1) | |
457 | delete _arg1; | |
458 | } | |
459 | return _resultobj; | |
460 | } | |
461 | ||
900d9886 RD |
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 | { | |
4268f798 | 513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 514 | wxControlWithItems_Delete(_arg0,_arg1); |
900d9886 | 515 | |
4268f798 | 516 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 543 | _result = (int )wxControlWithItems_GetCount(_arg0); |
900d9886 | 544 | |
4268f798 | 545 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 572 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
900d9886 | 573 | |
4268f798 | 574 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
575 | if (PyErr_Occurred()) return NULL; |
576 | }{ | |
c8bc7bb8 RD |
577 | #if wxUSE_UNICODE |
578 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
579 | #else | |
900d9886 | 580 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 581 | #endif |
900d9886 RD |
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 | { | |
c8bc7bb8 RD |
610 | _arg2 = wxString_in_helper(_obj2); |
611 | if (_arg2 == NULL) | |
900d9886 | 612 | return NULL; |
900d9886 RD |
613 | } |
614 | { | |
4268f798 | 615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 616 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
900d9886 | 617 | |
4268f798 | 618 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
c8bc7bb8 RD |
650 | _arg1 = wxString_in_helper(_obj1); |
651 | if (_arg1 == NULL) | |
900d9886 | 652 | return NULL; |
900d9886 RD |
653 | } |
654 | { | |
4268f798 | 655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 656 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
900d9886 | 657 | |
4268f798 | 658 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 688 | wxControlWithItems_Select(_arg0,_arg1); |
900d9886 | 689 | |
4268f798 | 690 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 717 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
900d9886 | 718 | |
4268f798 | 719 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 745 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
900d9886 | 746 | |
4268f798 | 747 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
748 | if (PyErr_Occurred()) return NULL; |
749 | }{ | |
c8bc7bb8 RD |
750 | #if wxUSE_UNICODE |
751 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
752 | #else | |
900d9886 | 753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 754 | #endif |
900d9886 RD |
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 | { | |
c8bc7bb8 RD |
790 | _arg1 = wxString_in_helper(_obj1); |
791 | if (_arg1 == NULL) | |
900d9886 | 792 | return NULL; |
900d9886 RD |
793 | } |
794 | if (_obj2) | |
795 | { | |
796 | _arg2 = _obj2; | |
797 | } | |
798 | { | |
4268f798 | 799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 800 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
900d9886 | 801 | |
4268f798 | 802 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 843 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
900d9886 | 844 | |
4268f798 | 845 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
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 | { | |
4268f798 | 880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 881 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
900d9886 | 882 | |
4268f798 | 883 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
884 | if (PyErr_Occurred()) return NULL; |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
ce914f73 RD |
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); | |
c8bc7bb8 RD |
918 | #if wxUSE_UNICODE |
919 | PyObject* str = PyObject_Unicode(item); | |
920 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
921 | #else | |
ce914f73 RD |
922 | PyObject* str = PyObject_Str(item); |
923 | _arg1->Add(PyString_AsString(str)); | |
c8bc7bb8 | 924 | #endif |
ce914f73 RD |
925 | Py_DECREF(item); |
926 | Py_DECREF(str); | |
927 | } | |
928 | } | |
929 | { | |
930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 931 | wxControlWithItems_AppendItems(_arg0,*_arg1); |
ce914f73 RD |
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 | ||
8ab979d7 RD |
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 | ||
9416aa89 RD |
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 | ||
8ab979d7 | 976 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 977 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
978 | PyObject * _resultobj; |
979 | wxButton * _result; | |
980 | wxWindow * _arg0; | |
981 | wxWindowID _arg1; | |
982 | wxString * _arg2; | |
e508a2b6 RD |
983 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
984 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 985 | long _arg5 = (long ) 0; |
e508a2b6 | 986 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 987 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
1d99702e | 988 | PyObject * _argo0 = 0; |
8ab979d7 | 989 | PyObject * _obj2 = 0; |
2f90df85 RD |
990 | wxPoint temp; |
991 | PyObject * _obj3 = 0; | |
992 | wxSize temp0; | |
993 | PyObject * _obj4 = 0; | |
1d99702e | 994 | PyObject * _argo6 = 0; |
137b5242 | 995 | PyObject * _obj7 = 0; |
efc5f224 | 996 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
997 | char _ptemp[128]; |
998 | ||
999 | self = self; | |
137b5242 | 1000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
8ab979d7 | 1001 | return NULL; |
1d99702e RD |
1002 | if (_argo0) { |
1003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
1006 | return NULL; | |
1007 | } | |
1008 | } | |
1009 | { | |
c8bc7bb8 RD |
1010 | _arg2 = wxString_in_helper(_obj2); |
1011 | if (_arg2 == NULL) | |
8ab979d7 | 1012 | return NULL; |
8ab979d7 | 1013 | } |
2f90df85 RD |
1014 | if (_obj3) |
1015 | { | |
1016 | _arg3 = &temp; | |
1017 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1018 | return NULL; |
2f90df85 RD |
1019 | } |
1020 | if (_obj4) | |
1021 | { | |
1022 | _arg4 = &temp0; | |
1023 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1024 | return NULL; |
2f90df85 | 1025 | } |
1d99702e RD |
1026 | if (_argo6) { |
1027 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1028 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
137b5242 RD |
1033 | if (_obj7) |
1034 | { | |
1035 | _arg7 = wxString_in_helper(_obj7); | |
1036 | if (_arg7 == NULL) | |
1037 | return NULL; | |
1038 | } | |
cf694132 | 1039 | { |
4268f798 | 1040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1041 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
cf694132 | 1042 | |
4268f798 | 1043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1044 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
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 | } | |
8ab979d7 RD |
1052 | { |
1053 | if (_obj2) | |
1054 | delete _arg2; | |
137b5242 RD |
1055 | } |
1056 | { | |
1057 | if (_obj7) | |
1058 | delete _arg7; | |
8ab979d7 RD |
1059 | } |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
09f3d4e6 RD |
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 | { | |
4268f798 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | _result = (wxButton *)new_wxPreButton(); |
09f3d4e6 | 1076 | |
4268f798 | 1077 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
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; | |
137b5242 | 1101 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
09f3d4e6 RD |
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; | |
137b5242 | 1110 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
1111 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
1112 | ||
1113 | self = self; | |
137b5242 | 1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
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 | { | |
c8bc7bb8 RD |
1131 | _arg3 = wxString_in_helper(_obj3); |
1132 | if (_arg3 == NULL) | |
09f3d4e6 | 1133 | return NULL; |
09f3d4e6 RD |
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 | } | |
137b5242 RD |
1154 | if (_obj8) |
1155 | { | |
1156 | _arg8 = wxString_in_helper(_obj8); | |
1157 | if (_arg8 == NULL) | |
1158 | return NULL; | |
1159 | } | |
09f3d4e6 | 1160 | { |
4268f798 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1162 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 1163 | |
4268f798 | 1164 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1165 | if (PyErr_Occurred()) return NULL; |
1166 | } _resultobj = Py_BuildValue("i",_result); | |
1167 | { | |
1168 | if (_obj3) | |
1169 | delete _arg3; | |
137b5242 RD |
1170 | } |
1171 | { | |
1172 | if (_obj8) | |
1173 | delete _arg8; | |
09f3d4e6 RD |
1174 | } |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
8ab979d7 | 1178 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
efc5f224 | 1179 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1180 | PyObject * _resultobj; |
1181 | wxButton * _arg0; | |
1d99702e | 1182 | PyObject * _argo0 = 0; |
efc5f224 | 1183 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1184 | |
1185 | self = self; | |
efc5f224 | 1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
8ab979d7 | 1187 | return NULL; |
1d99702e RD |
1188 | if (_argo0) { |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
8ab979d7 RD |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
cf694132 | 1195 | { |
4268f798 | 1196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1197 | wxButton_SetDefault(_arg0); |
cf694132 | 1198 | |
4268f798 | 1199 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1200 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1201 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1202 | _resultobj = Py_None; |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
9b3d3bc4 RD |
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; | |
f6bcfd97 BP |
1212 | wxColour temp; |
1213 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1214 | char *_kwnames[] = { "self","colour", NULL }; |
1215 | ||
1216 | self = self; | |
f6bcfd97 | 1217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
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 | } | |
f6bcfd97 BP |
1226 | { |
1227 | _arg1 = &temp; | |
1228 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1229 | return NULL; |
f6bcfd97 | 1230 | } |
9b3d3bc4 | 1231 | { |
4268f798 | 1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1233 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
9b3d3bc4 | 1234 | |
4268f798 | 1235 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1236 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
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; | |
f6bcfd97 BP |
1248 | wxColour temp; |
1249 | PyObject * _obj1 = 0; | |
9b3d3bc4 RD |
1250 | char *_kwnames[] = { "self","colour", NULL }; |
1251 | ||
1252 | self = self; | |
f6bcfd97 | 1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9b3d3bc4 RD |
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 | } | |
f6bcfd97 BP |
1262 | { |
1263 | _arg1 = &temp; | |
1264 | if (! wxColour_helper(_obj1, &_arg1)) | |
9b3d3bc4 | 1265 | return NULL; |
f6bcfd97 | 1266 | } |
9b3d3bc4 | 1267 | { |
4268f798 | 1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1269 | wxButton_SetForegroundColour(_arg0,*_arg1); |
9b3d3bc4 | 1270 | |
4268f798 | 1271 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1272 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1273 | } Py_INCREF(Py_None); |
1274 | _resultobj = Py_None; | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
09f3d4e6 RD |
1278 | #define wxButton_SetImageLabel(_swigobj,_swigarg0) (_swigobj->SetImageLabel(_swigarg0)) |
1279 | static PyObject *_wrap_wxButton_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1280 | PyObject * _resultobj; | |
1281 | wxButton * _arg0; | |
1282 | wxBitmap * _arg1; | |
1283 | PyObject * _argo0 = 0; | |
1284 | PyObject * _argo1 = 0; | |
1285 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8ab979d7 | 1286 | |
09f3d4e6 RD |
1287 | self = self; |
1288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetImageLabel",_kwnames,&_argo0,&_argo1)) | |
1289 | return NULL; | |
1290 | if (_argo0) { | |
1291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageLabel. Expected _wxButton_p."); | |
1294 | return NULL; | |
1295 | } | |
1296 | } | |
1297 | if (_argo1) { | |
1298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetImageLabel. Expected _wxBitmap_p."); | |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
1304 | { | |
4268f798 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1306 | wxButton_SetImageLabel(_arg0,*_arg1); |
8ab979d7 | 1307 | |
4268f798 | 1308 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1309 | if (PyErr_Occurred()) return NULL; |
1310 | } Py_INCREF(Py_None); | |
1311 | _resultobj = Py_None; | |
1312 | return _resultobj; | |
8ab979d7 RD |
1313 | } |
1314 | ||
09f3d4e6 RD |
1315 | #define wxButton_SetImageMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageMargins(_swigarg0,_swigarg1)) |
1316 | static PyObject *_wrap_wxButton_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1317 | PyObject * _resultobj; | |
1318 | wxButton * _arg0; | |
1319 | wxCoord _arg1; | |
1320 | wxCoord _arg2; | |
1321 | PyObject * _argo0 = 0; | |
1322 | char *_kwnames[] = { "self","x","y", NULL }; | |
8ab979d7 | 1323 | |
09f3d4e6 RD |
1324 | self = self; |
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxButton_SetImageMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1326 | return NULL; | |
1327 | if (_argo0) { | |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageMargins. Expected _wxButton_p."); | |
1331 | return NULL; | |
1332 | } | |
1333 | } | |
1334 | { | |
4268f798 | 1335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1336 | wxButton_SetImageMargins(_arg0,_arg1,_arg2); |
09f3d4e6 | 1337 | |
4268f798 | 1338 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1339 | if (PyErr_Occurred()) return NULL; |
1340 | } Py_INCREF(Py_None); | |
1341 | _resultobj = Py_None; | |
1342 | return _resultobj; | |
1343 | } | |
1344 | ||
1345 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | wxSize * _result; | |
1348 | char *_kwnames[] = { NULL }; | |
1349 | char _ptemp[128]; | |
1350 | ||
1351 | self = self; | |
1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1353 | return NULL; | |
1354 | { | |
4268f798 | 1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1356 | _result = new wxSize (wxButton::GetDefaultSize()); |
09f3d4e6 | 1357 | |
4268f798 | 1358 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1359 | if (PyErr_Occurred()) return NULL; |
1360 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1361 | _resultobj = Py_BuildValue("s",_ptemp); | |
1362 | return _resultobj; | |
1363 | } | |
1364 | ||
1365 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1366 | wxBitmapButton *src; | |
1367 | wxButton *dest; | |
1368 | src = (wxBitmapButton *) ptr; | |
1369 | dest = (wxButton *) src; | |
1370 | return (void *) dest; | |
1371 | } | |
1372 | ||
1373 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1374 | wxBitmapButton *src; | |
1375 | wxControl *dest; | |
1376 | src = (wxBitmapButton *) ptr; | |
1377 | dest = (wxControl *) src; | |
1378 | return (void *) dest; | |
1379 | } | |
1380 | ||
1381 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1382 | wxBitmapButton *src; | |
1383 | wxWindow *dest; | |
1384 | src = (wxBitmapButton *) ptr; | |
1385 | dest = (wxWindow *) src; | |
1386 | return (void *) dest; | |
1387 | } | |
1388 | ||
1389 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1390 | wxBitmapButton *src; | |
1391 | wxEvtHandler *dest; | |
1392 | src = (wxBitmapButton *) ptr; | |
1393 | dest = (wxEvtHandler *) src; | |
1394 | return (void *) dest; | |
1395 | } | |
1396 | ||
1397 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1398 | wxBitmapButton *src; | |
1399 | wxObject *dest; | |
1400 | src = (wxBitmapButton *) ptr; | |
1401 | dest = (wxObject *) src; | |
9416aa89 RD |
1402 | return (void *) dest; |
1403 | } | |
1404 | ||
8ab979d7 | 1405 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1406 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1407 | PyObject * _resultobj; |
1408 | wxBitmapButton * _result; | |
1409 | wxWindow * _arg0; | |
1410 | wxWindowID _arg1; | |
1411 | wxBitmap * _arg2; | |
e508a2b6 RD |
1412 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1413 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1414 | long _arg5 = (long ) wxBU_AUTODRAW; |
e508a2b6 | 1415 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 1416 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
1d99702e RD |
1417 | PyObject * _argo0 = 0; |
1418 | PyObject * _argo2 = 0; | |
2f90df85 RD |
1419 | wxPoint temp; |
1420 | PyObject * _obj3 = 0; | |
1421 | wxSize temp0; | |
1422 | PyObject * _obj4 = 0; | |
1d99702e | 1423 | PyObject * _argo6 = 0; |
137b5242 | 1424 | PyObject * _obj7 = 0; |
efc5f224 | 1425 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
1426 | char _ptemp[128]; |
1427 | ||
1428 | self = self; | |
137b5242 | 1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
8ab979d7 | 1430 | return NULL; |
1d99702e RD |
1431 | if (_argo0) { |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1d99702e RD |
1438 | if (_argo2) { |
1439 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1440 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8ab979d7 RD |
1441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1442 | return NULL; | |
1443 | } | |
1444 | } | |
2f90df85 RD |
1445 | if (_obj3) |
1446 | { | |
1447 | _arg3 = &temp; | |
1448 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 1449 | return NULL; |
2f90df85 RD |
1450 | } |
1451 | if (_obj4) | |
1452 | { | |
1453 | _arg4 = &temp0; | |
1454 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 1455 | return NULL; |
2f90df85 | 1456 | } |
1d99702e RD |
1457 | if (_argo6) { |
1458 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1459 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
1460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1461 | return NULL; | |
1462 | } | |
1463 | } | |
137b5242 RD |
1464 | if (_obj7) |
1465 | { | |
1466 | _arg7 = wxString_in_helper(_obj7); | |
1467 | if (_arg7 == NULL) | |
1468 | return NULL; | |
1469 | } | |
cf694132 | 1470 | { |
4268f798 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1472 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
cf694132 | 1473 | |
4268f798 | 1474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1475 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1476 | } if (_result) { |
1477 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1478 | _resultobj = Py_BuildValue("s",_ptemp); | |
1479 | } else { | |
1480 | Py_INCREF(Py_None); | |
1481 | _resultobj = Py_None; | |
1482 | } | |
137b5242 RD |
1483 | { |
1484 | if (_obj7) | |
1485 | delete _arg7; | |
1486 | } | |
8ab979d7 RD |
1487 | return _resultobj; |
1488 | } | |
1489 | ||
09f3d4e6 RD |
1490 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1491 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1492 | PyObject * _resultobj; | |
1493 | wxBitmapButton * _result; | |
1494 | char *_kwnames[] = { NULL }; | |
1495 | char _ptemp[128]; | |
1496 | ||
1497 | self = self; | |
1498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1499 | return NULL; | |
1500 | { | |
4268f798 | 1501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1502 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
09f3d4e6 | 1503 | |
4268f798 | 1504 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1505 | if (PyErr_Occurred()) return NULL; |
1506 | } if (_result) { | |
1507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | } | |
1513 | return _resultobj; | |
1514 | } | |
1515 | ||
1516 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1517 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1518 | PyObject * _resultobj; | |
1519 | bool _result; | |
1520 | wxBitmapButton * _arg0; | |
1521 | wxWindow * _arg1; | |
1522 | wxWindowID _arg2; | |
1523 | wxBitmap * _arg3; | |
1524 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1525 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1526 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1527 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 1528 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
09f3d4e6 RD |
1529 | PyObject * _argo0 = 0; |
1530 | PyObject * _argo1 = 0; | |
1531 | PyObject * _argo3 = 0; | |
1532 | wxPoint temp; | |
1533 | PyObject * _obj4 = 0; | |
1534 | wxSize temp0; | |
1535 | PyObject * _obj5 = 0; | |
1536 | PyObject * _argo7 = 0; | |
137b5242 | 1537 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
1538 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; |
1539 | ||
1540 | self = self; | |
137b5242 | 1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
1542 | return NULL; |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | if (_argo1) { | |
1551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1554 | return NULL; | |
1555 | } | |
1556 | } | |
1557 | if (_argo3) { | |
1558 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1559 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1561 | return NULL; | |
1562 | } | |
1563 | } | |
1564 | if (_obj4) | |
1565 | { | |
1566 | _arg4 = &temp; | |
1567 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1568 | return NULL; | |
1569 | } | |
1570 | if (_obj5) | |
1571 | { | |
1572 | _arg5 = &temp0; | |
1573 | if (! wxSize_helper(_obj5, &_arg5)) | |
1574 | return NULL; | |
1575 | } | |
1576 | if (_argo7) { | |
1577 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1580 | return NULL; | |
1581 | } | |
1582 | } | |
137b5242 RD |
1583 | if (_obj8) |
1584 | { | |
1585 | _arg8 = wxString_in_helper(_obj8); | |
1586 | if (_arg8 == NULL) | |
1587 | return NULL; | |
1588 | } | |
09f3d4e6 | 1589 | { |
4268f798 | 1590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 1591 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 1592 | |
4268f798 | 1593 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
1594 | if (PyErr_Occurred()) return NULL; |
1595 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
1596 | { |
1597 | if (_obj8) | |
1598 | delete _arg8; | |
1599 | } | |
09f3d4e6 RD |
1600 | return _resultobj; |
1601 | } | |
1602 | ||
8ab979d7 | 1603 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
efc5f224 | 1604 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1605 | PyObject * _resultobj; |
1606 | wxBitmap * _result; | |
1607 | wxBitmapButton * _arg0; | |
1d99702e | 1608 | PyObject * _argo0 = 0; |
efc5f224 | 1609 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1610 | char _ptemp[128]; |
1611 | ||
1612 | self = self; | |
efc5f224 | 1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
8ab979d7 | 1614 | return NULL; |
1d99702e RD |
1615 | if (_argo0) { |
1616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1619 | return NULL; | |
1620 | } | |
1621 | } | |
cf694132 | 1622 | { |
4268f798 | 1623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1624 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
cf694132 | 1625 | |
4268f798 | 1626 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1627 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1628 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1629 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1630 | return _resultobj; |
1631 | } | |
1632 | ||
1633 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
efc5f224 | 1634 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1635 | PyObject * _resultobj; |
1636 | wxBitmap * _result; | |
1637 | wxBitmapButton * _arg0; | |
1d99702e | 1638 | PyObject * _argo0 = 0; |
efc5f224 | 1639 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1640 | char _ptemp[128]; |
1641 | ||
1642 | self = self; | |
efc5f224 | 1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
8ab979d7 | 1644 | return NULL; |
1d99702e RD |
1645 | if (_argo0) { |
1646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
cf694132 | 1652 | { |
4268f798 | 1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1654 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
cf694132 | 1655 | |
4268f798 | 1656 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1657 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1659 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1660 | return _resultobj; |
1661 | } | |
1662 | ||
1663 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
efc5f224 | 1664 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1665 | PyObject * _resultobj; |
1666 | wxBitmap * _result; | |
1667 | wxBitmapButton * _arg0; | |
1d99702e | 1668 | PyObject * _argo0 = 0; |
efc5f224 | 1669 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1670 | char _ptemp[128]; |
1671 | ||
1672 | self = self; | |
efc5f224 | 1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
8ab979d7 | 1674 | return NULL; |
1d99702e RD |
1675 | if (_argo0) { |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1679 | return NULL; | |
1680 | } | |
1681 | } | |
cf694132 | 1682 | { |
4268f798 | 1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1684 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
cf694132 | 1685 | |
4268f798 | 1686 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1687 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1688 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1689 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1690 | return _resultobj; |
1691 | } | |
1692 | ||
1693 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
efc5f224 | 1694 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1695 | PyObject * _resultobj; |
1696 | wxBitmap * _result; | |
1697 | wxBitmapButton * _arg0; | |
1d99702e | 1698 | PyObject * _argo0 = 0; |
efc5f224 | 1699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1700 | char _ptemp[128]; |
1701 | ||
1702 | self = self; | |
efc5f224 | 1703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
8ab979d7 | 1704 | return NULL; |
1d99702e RD |
1705 | if (_argo0) { |
1706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1709 | return NULL; | |
1710 | } | |
1711 | } | |
cf694132 | 1712 | { |
4268f798 | 1713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1714 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
cf694132 | 1715 | |
4268f798 | 1716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1717 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1718 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1719 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1720 | return _resultobj; |
1721 | } | |
1722 | ||
1723 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
efc5f224 | 1724 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1725 | PyObject * _resultobj; |
1726 | wxBitmapButton * _arg0; | |
1727 | wxBitmap * _arg1; | |
1d99702e RD |
1728 | PyObject * _argo0 = 0; |
1729 | PyObject * _argo1 = 0; | |
efc5f224 | 1730 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1731 | |
1732 | self = self; | |
efc5f224 | 1733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1734 | return NULL; |
1d99702e RD |
1735 | if (_argo0) { |
1736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1739 | return NULL; | |
1740 | } | |
1741 | } | |
1d99702e RD |
1742 | if (_argo1) { |
1743 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
cf694132 | 1749 | { |
4268f798 | 1750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1751 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
cf694132 | 1752 | |
4268f798 | 1753 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1754 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1755 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1756 | _resultobj = Py_None; |
1757 | return _resultobj; | |
1758 | } | |
1759 | ||
1760 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
efc5f224 | 1761 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1762 | PyObject * _resultobj; |
1763 | wxBitmapButton * _arg0; | |
1764 | wxBitmap * _arg1; | |
1d99702e RD |
1765 | PyObject * _argo0 = 0; |
1766 | PyObject * _argo1 = 0; | |
efc5f224 | 1767 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1768 | |
1769 | self = self; | |
efc5f224 | 1770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1771 | return NULL; |
1d99702e RD |
1772 | if (_argo0) { |
1773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1776 | return NULL; | |
1777 | } | |
1778 | } | |
1d99702e RD |
1779 | if (_argo1) { |
1780 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
cf694132 | 1786 | { |
4268f798 | 1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1788 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
cf694132 | 1789 | |
4268f798 | 1790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1792 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1793 | _resultobj = Py_None; |
1794 | return _resultobj; | |
1795 | } | |
1796 | ||
1797 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
efc5f224 | 1798 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1799 | PyObject * _resultobj; |
1800 | wxBitmapButton * _arg0; | |
1801 | wxBitmap * _arg1; | |
1d99702e RD |
1802 | PyObject * _argo0 = 0; |
1803 | PyObject * _argo1 = 0; | |
efc5f224 | 1804 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1805 | |
1806 | self = self; | |
efc5f224 | 1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1808 | return NULL; |
1d99702e RD |
1809 | if (_argo0) { |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1d99702e RD |
1816 | if (_argo1) { |
1817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1820 | return NULL; | |
1821 | } | |
1822 | } | |
cf694132 | 1823 | { |
4268f798 | 1824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1825 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
cf694132 | 1826 | |
4268f798 | 1827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1829 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1830 | _resultobj = Py_None; |
1831 | return _resultobj; | |
1832 | } | |
1833 | ||
1834 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
efc5f224 | 1835 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1836 | PyObject * _resultobj; |
1837 | wxBitmapButton * _arg0; | |
1838 | wxBitmap * _arg1; | |
1d99702e RD |
1839 | PyObject * _argo0 = 0; |
1840 | PyObject * _argo1 = 0; | |
efc5f224 | 1841 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
1842 | |
1843 | self = self; | |
efc5f224 | 1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1845 | return NULL; |
1d99702e RD |
1846 | if (_argo0) { |
1847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
8ab979d7 RD |
1849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1850 | return NULL; | |
1851 | } | |
1852 | } | |
1d99702e RD |
1853 | if (_argo1) { |
1854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
cf694132 | 1860 | { |
4268f798 | 1861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1862 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
cf694132 | 1863 | |
4268f798 | 1864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1866 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1867 | _resultobj = Py_None; |
1868 | return _resultobj; | |
1869 | } | |
1870 | ||
f6bcfd97 BP |
1871 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1872 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | wxBitmapButton * _arg0; | |
1875 | int _arg1; | |
1876 | int _arg2; | |
1877 | PyObject * _argo0 = 0; | |
1878 | char *_kwnames[] = { "self","x","y", NULL }; | |
1879 | ||
1880 | self = self; | |
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1882 | return NULL; | |
1883 | if (_argo0) { | |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | { | |
4268f798 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
f6bcfd97 | 1893 | |
4268f798 | 1894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1895 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1896 | } Py_INCREF(Py_None); |
1897 | _resultobj = Py_None; | |
1898 | return _resultobj; | |
1899 | } | |
1900 | ||
1901 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1902 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1903 | PyObject * _resultobj; | |
1904 | int _result; | |
1905 | wxBitmapButton * _arg0; | |
1906 | PyObject * _argo0 = 0; | |
1907 | char *_kwnames[] = { "self", NULL }; | |
1908 | ||
1909 | self = self; | |
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1911 | return NULL; | |
1912 | if (_argo0) { | |
1913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1916 | return NULL; | |
1917 | } | |
1918 | } | |
1919 | { | |
4268f798 | 1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1921 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
f6bcfd97 | 1922 | |
4268f798 | 1923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1924 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1925 | } _resultobj = Py_BuildValue("i",_result); |
1926 | return _resultobj; | |
1927 | } | |
1928 | ||
1929 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1930 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject * _resultobj; | |
1932 | int _result; | |
1933 | wxBitmapButton * _arg0; | |
1934 | PyObject * _argo0 = 0; | |
1935 | char *_kwnames[] = { "self", NULL }; | |
1936 | ||
1937 | self = self; | |
1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1939 | return NULL; | |
1940 | if (_argo0) { | |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1944 | return NULL; | |
1945 | } | |
1946 | } | |
1947 | { | |
4268f798 | 1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1949 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
f6bcfd97 | 1950 | |
4268f798 | 1951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1953 | } _resultobj = Py_BuildValue("i",_result); |
1954 | return _resultobj; | |
1955 | } | |
1956 | ||
8ab979d7 RD |
1957 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1958 | wxCheckBox *src; | |
1959 | wxControl *dest; | |
1960 | src = (wxCheckBox *) ptr; | |
1961 | dest = (wxControl *) src; | |
1962 | return (void *) dest; | |
1963 | } | |
1964 | ||
1965 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1966 | wxCheckBox *src; | |
1967 | wxWindow *dest; | |
1968 | src = (wxCheckBox *) ptr; | |
1969 | dest = (wxWindow *) src; | |
1970 | return (void *) dest; | |
1971 | } | |
1972 | ||
1973 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1974 | wxCheckBox *src; | |
1975 | wxEvtHandler *dest; | |
1976 | src = (wxCheckBox *) ptr; | |
1977 | dest = (wxEvtHandler *) src; | |
1978 | return (void *) dest; | |
1979 | } | |
1980 | ||
9416aa89 RD |
1981 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1982 | wxCheckBox *src; | |
1983 | wxObject *dest; | |
1984 | src = (wxCheckBox *) ptr; | |
1985 | dest = (wxObject *) src; | |
1986 | return (void *) dest; | |
1987 | } | |
1988 | ||
8ab979d7 | 1989 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 1990 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1991 | PyObject * _resultobj; |
1992 | wxCheckBox * _result; | |
1993 | wxWindow * _arg0; | |
1994 | wxWindowID _arg1; | |
1995 | wxString * _arg2; | |
e508a2b6 RD |
1996 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1997 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 1998 | long _arg5 = (long ) 0; |
e508a2b6 | 1999 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2000 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
1d99702e | 2001 | PyObject * _argo0 = 0; |
8ab979d7 | 2002 | PyObject * _obj2 = 0; |
2f90df85 RD |
2003 | wxPoint temp; |
2004 | PyObject * _obj3 = 0; | |
2005 | wxSize temp0; | |
2006 | PyObject * _obj4 = 0; | |
1d99702e | 2007 | PyObject * _argo6 = 0; |
137b5242 | 2008 | PyObject * _obj7 = 0; |
efc5f224 | 2009 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
8ab979d7 RD |
2010 | char _ptemp[128]; |
2011 | ||
2012 | self = self; | |
137b5242 | 2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
8ab979d7 | 2014 | return NULL; |
1d99702e RD |
2015 | if (_argo0) { |
2016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
2019 | return NULL; | |
2020 | } | |
2021 | } | |
2022 | { | |
c8bc7bb8 RD |
2023 | _arg2 = wxString_in_helper(_obj2); |
2024 | if (_arg2 == NULL) | |
185d7c3e | 2025 | return NULL; |
8ab979d7 | 2026 | } |
2f90df85 RD |
2027 | if (_obj3) |
2028 | { | |
2029 | _arg3 = &temp; | |
2030 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2031 | return NULL; |
2f90df85 RD |
2032 | } |
2033 | if (_obj4) | |
2034 | { | |
2035 | _arg4 = &temp0; | |
2036 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2037 | return NULL; |
2f90df85 | 2038 | } |
1d99702e RD |
2039 | if (_argo6) { |
2040 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2041 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
2042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
2043 | return NULL; | |
2044 | } | |
2045 | } | |
137b5242 RD |
2046 | if (_obj7) |
2047 | { | |
2048 | _arg7 = wxString_in_helper(_obj7); | |
2049 | if (_arg7 == NULL) | |
2050 | return NULL; | |
2051 | } | |
cf694132 | 2052 | { |
4268f798 | 2053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2054 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
cf694132 | 2055 | |
4268f798 | 2056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2057 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2058 | } if (_result) { |
2059 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2060 | _resultobj = Py_BuildValue("s",_ptemp); | |
2061 | } else { | |
2062 | Py_INCREF(Py_None); | |
2063 | _resultobj = Py_None; | |
2064 | } | |
8ab979d7 RD |
2065 | { |
2066 | if (_obj2) | |
2067 | delete _arg2; | |
137b5242 RD |
2068 | } |
2069 | { | |
2070 | if (_obj7) | |
2071 | delete _arg7; | |
8ab979d7 RD |
2072 | } |
2073 | return _resultobj; | |
2074 | } | |
2075 | ||
09f3d4e6 RD |
2076 | #define new_wxPreCheckBox() (new wxCheckBox()) |
2077 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2078 | PyObject * _resultobj; | |
2079 | wxCheckBox * _result; | |
2080 | char *_kwnames[] = { NULL }; | |
2081 | char _ptemp[128]; | |
2082 | ||
2083 | self = self; | |
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2085 | return NULL; | |
2086 | { | |
4268f798 | 2087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2088 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
09f3d4e6 | 2089 | |
4268f798 | 2090 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2091 | if (PyErr_Occurred()) return NULL; |
2092 | } if (_result) { | |
2093 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2094 | _resultobj = Py_BuildValue("s",_ptemp); | |
2095 | } else { | |
2096 | Py_INCREF(Py_None); | |
2097 | _resultobj = Py_None; | |
2098 | } | |
2099 | return _resultobj; | |
2100 | } | |
2101 | ||
2102 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2103 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2104 | PyObject * _resultobj; | |
2105 | bool _result; | |
2106 | wxCheckBox * _arg0; | |
2107 | wxWindow * _arg1; | |
2108 | wxWindowID _arg2; | |
2109 | wxString * _arg3; | |
2110 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2111 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2112 | long _arg6 = (long ) 0; | |
2113 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2114 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
09f3d4e6 RD |
2115 | PyObject * _argo0 = 0; |
2116 | PyObject * _argo1 = 0; | |
2117 | PyObject * _obj3 = 0; | |
2118 | wxPoint temp; | |
2119 | PyObject * _obj4 = 0; | |
2120 | wxSize temp0; | |
2121 | PyObject * _obj5 = 0; | |
2122 | PyObject * _argo7 = 0; | |
137b5242 | 2123 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
2124 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; |
2125 | ||
2126 | self = self; | |
137b5242 | 2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
2128 | return NULL; |
2129 | if (_argo0) { | |
2130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2133 | return NULL; | |
2134 | } | |
2135 | } | |
2136 | if (_argo1) { | |
2137 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2138 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2140 | return NULL; | |
2141 | } | |
2142 | } | |
2143 | { | |
c8bc7bb8 RD |
2144 | _arg3 = wxString_in_helper(_obj3); |
2145 | if (_arg3 == NULL) | |
09f3d4e6 | 2146 | return NULL; |
09f3d4e6 RD |
2147 | } |
2148 | if (_obj4) | |
2149 | { | |
2150 | _arg4 = &temp; | |
2151 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2152 | return NULL; | |
2153 | } | |
2154 | if (_obj5) | |
2155 | { | |
2156 | _arg5 = &temp0; | |
2157 | if (! wxSize_helper(_obj5, &_arg5)) | |
2158 | return NULL; | |
2159 | } | |
2160 | if (_argo7) { | |
2161 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2162 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2164 | return NULL; | |
2165 | } | |
2166 | } | |
137b5242 RD |
2167 | if (_obj8) |
2168 | { | |
2169 | _arg8 = wxString_in_helper(_obj8); | |
2170 | if (_arg8 == NULL) | |
2171 | return NULL; | |
2172 | } | |
09f3d4e6 | 2173 | { |
4268f798 | 2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2175 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 2176 | |
4268f798 | 2177 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2178 | if (PyErr_Occurred()) return NULL; |
2179 | } _resultobj = Py_BuildValue("i",_result); | |
2180 | { | |
2181 | if (_obj3) | |
2182 | delete _arg3; | |
137b5242 RD |
2183 | } |
2184 | { | |
2185 | if (_obj8) | |
2186 | delete _arg8; | |
09f3d4e6 RD |
2187 | } |
2188 | return _resultobj; | |
2189 | } | |
2190 | ||
8ab979d7 | 2191 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
efc5f224 | 2192 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2193 | PyObject * _resultobj; |
2194 | bool _result; | |
2195 | wxCheckBox * _arg0; | |
1d99702e | 2196 | PyObject * _argo0 = 0; |
efc5f224 | 2197 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2198 | |
2199 | self = self; | |
efc5f224 | 2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2201 | return NULL; |
1d99702e RD |
2202 | if (_argo0) { |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2206 | return NULL; | |
2207 | } | |
2208 | } | |
cf694132 | 2209 | { |
4268f798 | 2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2211 | _result = (bool )wxCheckBox_GetValue(_arg0); |
cf694132 | 2212 | |
4268f798 | 2213 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2214 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2215 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2216 | return _resultobj; |
2217 | } | |
2218 | ||
2219 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2220 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2221 | PyObject * _resultobj; |
2222 | wxCheckBox * _arg0; | |
2223 | bool _arg1; | |
1d99702e | 2224 | PyObject * _argo0 = 0; |
8ab979d7 | 2225 | int tempbool1; |
efc5f224 | 2226 | char *_kwnames[] = { "self","state", NULL }; |
8ab979d7 RD |
2227 | |
2228 | self = self; | |
efc5f224 | 2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2230 | return NULL; |
1d99702e RD |
2231 | if (_argo0) { |
2232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
8ab979d7 RD |
2234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2235 | return NULL; | |
2236 | } | |
2237 | } | |
2238 | _arg1 = (bool ) tempbool1; | |
cf694132 | 2239 | { |
4268f798 | 2240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2241 | wxCheckBox_SetValue(_arg0,_arg1); |
cf694132 | 2242 | |
4268f798 | 2243 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2244 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2245 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2246 | _resultobj = Py_None; |
2247 | return _resultobj; | |
2248 | } | |
2249 | ||
900d9886 RD |
2250 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2251 | wxChoice *src; | |
2252 | wxControlWithItems *dest; | |
2253 | src = (wxChoice *) ptr; | |
2254 | dest = (wxControlWithItems *) src; | |
2255 | return (void *) dest; | |
2256 | } | |
2257 | ||
8ab979d7 RD |
2258 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2259 | wxChoice *src; | |
2260 | wxControl *dest; | |
2261 | src = (wxChoice *) ptr; | |
2262 | dest = (wxControl *) src; | |
2263 | return (void *) dest; | |
2264 | } | |
2265 | ||
2266 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2267 | wxChoice *src; | |
2268 | wxWindow *dest; | |
2269 | src = (wxChoice *) ptr; | |
2270 | dest = (wxWindow *) src; | |
2271 | return (void *) dest; | |
2272 | } | |
2273 | ||
2274 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2275 | wxChoice *src; | |
2276 | wxEvtHandler *dest; | |
2277 | src = (wxChoice *) ptr; | |
2278 | dest = (wxEvtHandler *) src; | |
2279 | return (void *) dest; | |
2280 | } | |
2281 | ||
9416aa89 RD |
2282 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2283 | wxChoice *src; | |
2284 | wxObject *dest; | |
2285 | src = (wxChoice *) ptr; | |
2286 | dest = (wxObject *) src; | |
2287 | return (void *) dest; | |
2288 | } | |
2289 | ||
8ab979d7 | 2290 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 2291 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2292 | PyObject * _resultobj; |
2293 | wxChoice * _result; | |
2294 | wxWindow * _arg0; | |
2295 | wxWindowID _arg1; | |
e508a2b6 RD |
2296 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2297 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2298 | int _arg4 = (int ) 0; |
2299 | wxString * _arg5 = (wxString *) NULL; | |
2300 | long _arg6 = (long ) 0; | |
e508a2b6 | 2301 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2302 | wxString * _arg8 = (wxString *) &wxPyChoiceNameStr; |
1d99702e | 2303 | PyObject * _argo0 = 0; |
2f90df85 RD |
2304 | wxPoint temp; |
2305 | PyObject * _obj2 = 0; | |
2306 | wxSize temp0; | |
2307 | PyObject * _obj3 = 0; | |
8ab979d7 | 2308 | PyObject * _obj5 = 0; |
1d99702e | 2309 | PyObject * _argo7 = 0; |
137b5242 | 2310 | PyObject * _obj8 = 0; |
eec92d76 | 2311 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2312 | char _ptemp[128]; |
2313 | ||
2314 | self = self; | |
137b5242 | 2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
8ab979d7 | 2316 | return NULL; |
1d99702e RD |
2317 | if (_argo0) { |
2318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2321 | return NULL; | |
2322 | } | |
2323 | } | |
2f90df85 RD |
2324 | if (_obj2) |
2325 | { | |
2326 | _arg2 = &temp; | |
2327 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2328 | return NULL; |
2f90df85 RD |
2329 | } |
2330 | if (_obj3) | |
2331 | { | |
2332 | _arg3 = &temp0; | |
2333 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2334 | return NULL; |
2f90df85 | 2335 | } |
8ab979d7 RD |
2336 | if (_obj5) |
2337 | { | |
2338 | _arg5 = wxString_LIST_helper(_obj5); | |
2339 | if (_arg5 == NULL) { | |
2340 | return NULL; | |
2341 | } | |
2342 | } | |
1d99702e RD |
2343 | if (_argo7) { |
2344 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2345 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
8ab979d7 RD |
2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2347 | return NULL; | |
2348 | } | |
2349 | } | |
137b5242 RD |
2350 | if (_obj8) |
2351 | { | |
2352 | _arg8 = wxString_in_helper(_obj8); | |
2353 | if (_arg8 == NULL) | |
2354 | return NULL; | |
2355 | } | |
8ab979d7 | 2356 | { |
cf694132 RD |
2357 | if (_obj5) { |
2358 | _arg4 = PyList_Size(_obj5); | |
2359 | } | |
2360 | else { | |
2361 | _arg4 = 0; | |
2362 | } | |
8ab979d7 | 2363 | } |
cf694132 | 2364 | { |
4268f798 | 2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2366 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
cf694132 | 2367 | |
4268f798 | 2368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2369 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2370 | } if (_result) { |
2371 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2372 | _resultobj = Py_BuildValue("s",_ptemp); | |
2373 | } else { | |
2374 | Py_INCREF(Py_None); | |
2375 | _resultobj = Py_None; | |
2376 | } | |
8ab979d7 RD |
2377 | { |
2378 | delete [] _arg5; | |
137b5242 RD |
2379 | } |
2380 | { | |
2381 | if (_obj8) | |
2382 | delete _arg8; | |
8ab979d7 RD |
2383 | } |
2384 | return _resultobj; | |
2385 | } | |
2386 | ||
09f3d4e6 RD |
2387 | #define new_wxPreChoice() (new wxChoice()) |
2388 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2389 | PyObject * _resultobj; |
09f3d4e6 RD |
2390 | wxChoice * _result; |
2391 | char *_kwnames[] = { NULL }; | |
2392 | char _ptemp[128]; | |
8ab979d7 RD |
2393 | |
2394 | self = self; | |
09f3d4e6 RD |
2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2396 | return NULL; | |
2397 | { | |
4268f798 | 2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2399 | _result = (wxChoice *)new_wxPreChoice(); |
09f3d4e6 | 2400 | |
4268f798 | 2401 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2402 | if (PyErr_Occurred()) return NULL; |
2403 | } if (_result) { | |
2404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2405 | _resultobj = Py_BuildValue("s",_ptemp); | |
2406 | } else { | |
2407 | Py_INCREF(Py_None); | |
2408 | _resultobj = Py_None; | |
2409 | } | |
2410 | return _resultobj; | |
2411 | } | |
2412 | ||
2413 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2414 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2415 | PyObject * _resultobj; | |
2416 | bool _result; | |
2417 | wxChoice * _arg0; | |
2418 | wxWindow * _arg1; | |
2419 | wxWindowID _arg2; | |
2420 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2421 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2422 | int _arg5 = (int ) 0; | |
2423 | wxString * _arg6 = (wxString *) NULL; | |
2424 | long _arg7 = (long ) 0; | |
2425 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2426 | wxString * _arg9 = (wxString *) &wxPyChoiceNameStr; |
09f3d4e6 RD |
2427 | PyObject * _argo0 = 0; |
2428 | PyObject * _argo1 = 0; | |
2429 | wxPoint temp; | |
2430 | PyObject * _obj3 = 0; | |
2431 | wxSize temp0; | |
2432 | PyObject * _obj4 = 0; | |
2433 | PyObject * _obj6 = 0; | |
2434 | PyObject * _argo8 = 0; | |
137b5242 | 2435 | PyObject * _obj9 = 0; |
09f3d4e6 RD |
2436 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
2437 | ||
2438 | self = self; | |
137b5242 | 2439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
09f3d4e6 RD |
2440 | return NULL; |
2441 | if (_argo0) { | |
2442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2445 | return NULL; | |
2446 | } | |
2447 | } | |
2448 | if (_argo1) { | |
2449 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2450 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2452 | return NULL; | |
2453 | } | |
2454 | } | |
2455 | if (_obj3) | |
2456 | { | |
2457 | _arg3 = &temp; | |
2458 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2459 | return NULL; | |
2460 | } | |
2461 | if (_obj4) | |
2462 | { | |
2463 | _arg4 = &temp0; | |
2464 | if (! wxSize_helper(_obj4, &_arg4)) | |
2465 | return NULL; | |
2466 | } | |
2467 | if (_obj6) | |
2468 | { | |
2469 | _arg6 = wxString_LIST_helper(_obj6); | |
2470 | if (_arg6 == NULL) { | |
2471 | return NULL; | |
2472 | } | |
2473 | } | |
2474 | if (_argo8) { | |
2475 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2476 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2478 | return NULL; | |
2479 | } | |
2480 | } | |
137b5242 RD |
2481 | if (_obj9) |
2482 | { | |
2483 | _arg9 = wxString_in_helper(_obj9); | |
2484 | if (_arg9 == NULL) | |
2485 | return NULL; | |
2486 | } | |
900d9886 RD |
2487 | { |
2488 | if (_obj6) { | |
2489 | _arg5 = PyList_Size(_obj6); | |
2490 | } | |
2491 | else { | |
2492 | _arg5 = 0; | |
8ab979d7 | 2493 | } |
900d9886 | 2494 | } |
8ab979d7 | 2495 | { |
4268f798 | 2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2497 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
cf694132 | 2498 | |
4268f798 | 2499 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2500 | if (PyErr_Occurred()) return NULL; |
900d9886 | 2501 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 2502 | { |
900d9886 | 2503 | delete [] _arg6; |
137b5242 RD |
2504 | } |
2505 | { | |
2506 | if (_obj9) | |
2507 | delete _arg9; | |
8ab979d7 RD |
2508 | } |
2509 | return _resultobj; | |
2510 | } | |
2511 | ||
900d9886 RD |
2512 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2513 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2514 | PyObject * _resultobj; |
8ab979d7 | 2515 | wxChoice * _arg0; |
1d99702e | 2516 | PyObject * _argo0 = 0; |
efc5f224 | 2517 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2518 | |
2519 | self = self; | |
900d9886 | 2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
8ab979d7 | 2521 | return NULL; |
1d99702e RD |
2522 | if (_argo0) { |
2523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
8ab979d7 RD |
2526 | return NULL; |
2527 | } | |
2528 | } | |
8ab979d7 | 2529 | { |
4268f798 | 2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2531 | wxChoice_Clear(_arg0); |
cf694132 | 2532 | |
4268f798 | 2533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2534 | if (PyErr_Occurred()) return NULL; |
900d9886 RD |
2535 | } Py_INCREF(Py_None); |
2536 | _resultobj = Py_None; | |
8ab979d7 RD |
2537 | return _resultobj; |
2538 | } | |
2539 | ||
900d9886 RD |
2540 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2541 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2542 | PyObject * _resultobj; |
2543 | int _result; | |
2544 | wxChoice * _arg0; | |
1d99702e | 2545 | PyObject * _argo0 = 0; |
efc5f224 | 2546 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2547 | |
2548 | self = self; | |
900d9886 | 2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
8ab979d7 | 2550 | return NULL; |
1d99702e RD |
2551 | if (_argo0) { |
2552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
900d9886 | 2554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
8ab979d7 RD |
2555 | return NULL; |
2556 | } | |
2557 | } | |
cf694132 | 2558 | { |
4268f798 | 2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2560 | _result = (int )wxChoice_GetColumns(_arg0); |
cf694132 | 2561 | |
4268f798 | 2562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2563 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2564 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2565 | return _resultobj; |
2566 | } | |
2567 | ||
2568 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
efc5f224 | 2569 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2570 | PyObject * _resultobj; |
2571 | wxChoice * _arg0; | |
1d99702e RD |
2572 | int _arg1 = (int ) 1; |
2573 | PyObject * _argo0 = 0; | |
efc5f224 | 2574 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2575 | |
2576 | self = self; | |
efc5f224 | 2577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2578 | return NULL; |
1d99702e RD |
2579 | if (_argo0) { |
2580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2583 | return NULL; | |
2584 | } | |
2585 | } | |
cf694132 | 2586 | { |
4268f798 | 2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2588 | wxChoice_SetColumns(_arg0,_arg1); |
cf694132 | 2589 | |
4268f798 | 2590 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2592 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2593 | _resultobj = Py_None; |
2594 | return _resultobj; | |
2595 | } | |
2596 | ||
2597 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 2598 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2599 | PyObject * _resultobj; |
2600 | wxChoice * _arg0; | |
2601 | int _arg1; | |
1d99702e | 2602 | PyObject * _argo0 = 0; |
efc5f224 | 2603 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
2604 | |
2605 | self = self; | |
efc5f224 | 2606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2607 | return NULL; |
1d99702e RD |
2608 | if (_argo0) { |
2609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2612 | return NULL; | |
2613 | } | |
2614 | } | |
cf694132 | 2615 | { |
4268f798 | 2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2617 | wxChoice_SetSelection(_arg0,_arg1); |
cf694132 | 2618 | |
4268f798 | 2619 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2620 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2621 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2622 | _resultobj = Py_None; |
2623 | return _resultobj; | |
2624 | } | |
2625 | ||
2626 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 2627 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2628 | PyObject * _resultobj; |
2629 | wxChoice * _arg0; | |
2630 | wxString * _arg1; | |
1d99702e | 2631 | PyObject * _argo0 = 0; |
8ab979d7 | 2632 | PyObject * _obj1 = 0; |
efc5f224 | 2633 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2634 | |
2635 | self = self; | |
efc5f224 | 2636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2637 | return NULL; |
1d99702e RD |
2638 | if (_argo0) { |
2639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
8ab979d7 RD |
2641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2642 | return NULL; | |
2643 | } | |
2644 | } | |
2645 | { | |
c8bc7bb8 RD |
2646 | _arg1 = wxString_in_helper(_obj1); |
2647 | if (_arg1 == NULL) | |
8ab979d7 | 2648 | return NULL; |
8ab979d7 | 2649 | } |
cf694132 | 2650 | { |
4268f798 | 2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2652 | wxChoice_SetStringSelection(_arg0,*_arg1); |
cf694132 | 2653 | |
4268f798 | 2654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2655 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2656 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2657 | _resultobj = Py_None; |
2658 | { | |
2659 | if (_obj1) | |
2660 | delete _arg1; | |
2661 | } | |
2662 | return _resultobj; | |
2663 | } | |
2664 | ||
0adbc166 RD |
2665 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2666 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2667 | PyObject * _resultobj; | |
2668 | wxChoice * _arg0; | |
2669 | int _arg1; | |
2670 | wxString * _arg2; | |
2671 | PyObject * _argo0 = 0; | |
2672 | PyObject * _obj2 = 0; | |
2673 | char *_kwnames[] = { "self","n","s", NULL }; | |
2674 | ||
2675 | self = self; | |
2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2677 | return NULL; | |
2678 | if (_argo0) { | |
2679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2682 | return NULL; | |
2683 | } | |
2684 | } | |
2685 | { | |
c8bc7bb8 RD |
2686 | _arg2 = wxString_in_helper(_obj2); |
2687 | if (_arg2 == NULL) | |
0adbc166 | 2688 | return NULL; |
0adbc166 RD |
2689 | } |
2690 | { | |
4268f798 | 2691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2692 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
0adbc166 | 2693 | |
4268f798 | 2694 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
2695 | if (PyErr_Occurred()) return NULL; |
2696 | } Py_INCREF(Py_None); | |
2697 | _resultobj = Py_None; | |
2698 | { | |
2699 | if (_obj2) | |
2700 | delete _arg2; | |
2701 | } | |
2702 | return _resultobj; | |
2703 | } | |
2704 | ||
bb0054cd RD |
2705 | static void *SwigwxComboBoxTowxChoice(void *ptr) { |
2706 | wxComboBox *src; | |
2707 | wxChoice *dest; | |
2708 | src = (wxComboBox *) ptr; | |
2709 | dest = (wxChoice *) src; | |
2710 | return (void *) dest; | |
2711 | } | |
2712 | ||
900d9886 RD |
2713 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { |
2714 | wxComboBox *src; | |
2715 | wxControlWithItems *dest; | |
2716 | src = (wxComboBox *) ptr; | |
2717 | dest = (wxControlWithItems *) src; | |
2718 | return (void *) dest; | |
2719 | } | |
2720 | ||
8ab979d7 RD |
2721 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2722 | wxComboBox *src; | |
2723 | wxControl *dest; | |
2724 | src = (wxComboBox *) ptr; | |
2725 | dest = (wxControl *) src; | |
2726 | return (void *) dest; | |
2727 | } | |
2728 | ||
2729 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2730 | wxComboBox *src; | |
2731 | wxWindow *dest; | |
2732 | src = (wxComboBox *) ptr; | |
2733 | dest = (wxWindow *) src; | |
2734 | return (void *) dest; | |
2735 | } | |
2736 | ||
2737 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2738 | wxComboBox *src; | |
2739 | wxEvtHandler *dest; | |
2740 | src = (wxComboBox *) ptr; | |
2741 | dest = (wxEvtHandler *) src; | |
2742 | return (void *) dest; | |
2743 | } | |
2744 | ||
9416aa89 RD |
2745 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2746 | wxComboBox *src; | |
2747 | wxObject *dest; | |
2748 | src = (wxComboBox *) ptr; | |
2749 | dest = (wxObject *) src; | |
2750 | return (void *) dest; | |
2751 | } | |
2752 | ||
8ab979d7 | 2753 | #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)) |
efc5f224 | 2754 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2755 | PyObject * _resultobj; |
2756 | wxComboBox * _result; | |
2757 | wxWindow * _arg0; | |
2758 | wxWindowID _arg1; | |
137b5242 | 2759 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
e508a2b6 RD |
2760 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2761 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
2762 | int _arg5 = (int ) 0; |
2763 | wxString * _arg6 = (wxString *) NULL; | |
2764 | long _arg7 = (long ) 0; | |
e508a2b6 | 2765 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2766 | wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr; |
1d99702e | 2767 | PyObject * _argo0 = 0; |
137b5242 | 2768 | PyObject * _obj2 = 0; |
2f90df85 RD |
2769 | wxPoint temp; |
2770 | PyObject * _obj3 = 0; | |
2771 | wxSize temp0; | |
2772 | PyObject * _obj4 = 0; | |
8ab979d7 | 2773 | PyObject * _obj6 = 0; |
1d99702e | 2774 | PyObject * _argo8 = 0; |
137b5242 | 2775 | PyObject * _obj9 = 0; |
eec92d76 | 2776 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
2777 | char _ptemp[128]; |
2778 | ||
2779 | self = self; | |
137b5242 | 2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
8ab979d7 | 2781 | return NULL; |
1d99702e RD |
2782 | if (_argo0) { |
2783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2786 | return NULL; | |
2787 | } | |
2788 | } | |
137b5242 RD |
2789 | if (_obj2) |
2790 | { | |
2791 | _arg2 = wxString_in_helper(_obj2); | |
2792 | if (_arg2 == NULL) | |
2793 | return NULL; | |
2794 | } | |
2f90df85 RD |
2795 | if (_obj3) |
2796 | { | |
2797 | _arg3 = &temp; | |
2798 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 2799 | return NULL; |
2f90df85 RD |
2800 | } |
2801 | if (_obj4) | |
2802 | { | |
2803 | _arg4 = &temp0; | |
2804 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 2805 | return NULL; |
2f90df85 | 2806 | } |
8ab979d7 RD |
2807 | if (_obj6) |
2808 | { | |
2809 | _arg6 = wxString_LIST_helper(_obj6); | |
2810 | if (_arg6 == NULL) { | |
2811 | return NULL; | |
2812 | } | |
2813 | } | |
1d99702e RD |
2814 | if (_argo8) { |
2815 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2816 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
2817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2818 | return NULL; | |
2819 | } | |
2820 | } | |
137b5242 RD |
2821 | if (_obj9) |
2822 | { | |
2823 | _arg9 = wxString_in_helper(_obj9); | |
2824 | if (_arg9 == NULL) | |
2825 | return NULL; | |
2826 | } | |
8ab979d7 | 2827 | { |
cf694132 RD |
2828 | if (_obj6) { |
2829 | _arg5 = PyList_Size(_obj6); | |
2830 | } | |
2831 | else { | |
2832 | _arg5 = 0; | |
2833 | } | |
8ab979d7 | 2834 | } |
cf694132 | 2835 | { |
4268f798 | 2836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2837 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
cf694132 | 2838 | |
4268f798 | 2839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2840 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2841 | } if (_result) { |
2842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2843 | _resultobj = Py_BuildValue("s",_ptemp); | |
2844 | } else { | |
2845 | Py_INCREF(Py_None); | |
2846 | _resultobj = Py_None; | |
2847 | } | |
137b5242 RD |
2848 | { |
2849 | if (_obj2) | |
2850 | delete _arg2; | |
2851 | } | |
8ab979d7 RD |
2852 | { |
2853 | delete [] _arg6; | |
137b5242 RD |
2854 | } |
2855 | { | |
2856 | if (_obj9) | |
2857 | delete _arg9; | |
8ab979d7 RD |
2858 | } |
2859 | return _resultobj; | |
2860 | } | |
2861 | ||
09f3d4e6 RD |
2862 | #define new_wxPreComboBox() (new wxComboBox()) |
2863 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject * _resultobj; | |
2865 | wxComboBox * _result; | |
2866 | char *_kwnames[] = { NULL }; | |
2867 | char _ptemp[128]; | |
2868 | ||
2869 | self = self; | |
2870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2871 | return NULL; | |
2872 | { | |
4268f798 | 2873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2874 | _result = (wxComboBox *)new_wxPreComboBox(); |
09f3d4e6 | 2875 | |
4268f798 | 2876 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2877 | if (PyErr_Occurred()) return NULL; |
2878 | } if (_result) { | |
2879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2880 | _resultobj = Py_BuildValue("s",_ptemp); | |
2881 | } else { | |
2882 | Py_INCREF(Py_None); | |
2883 | _resultobj = Py_None; | |
2884 | } | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
2888 | #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)) | |
2889 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2890 | PyObject * _resultobj; | |
2891 | bool _result; | |
2892 | wxComboBox * _arg0; | |
2893 | wxWindow * _arg1; | |
2894 | wxWindowID _arg2; | |
137b5242 | 2895 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
09f3d4e6 RD |
2896 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
2897 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2898 | int _arg6 = (int ) 0; | |
2899 | wxString * _arg7 = (wxString *) NULL; | |
2900 | long _arg8 = (long ) 0; | |
2901 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2902 | wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr; |
09f3d4e6 RD |
2903 | PyObject * _argo0 = 0; |
2904 | PyObject * _argo1 = 0; | |
137b5242 | 2905 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
2906 | wxPoint temp; |
2907 | PyObject * _obj4 = 0; | |
2908 | wxSize temp0; | |
2909 | PyObject * _obj5 = 0; | |
2910 | PyObject * _obj7 = 0; | |
2911 | PyObject * _argo9 = 0; | |
137b5242 | 2912 | PyObject * _obj10 = 0; |
09f3d4e6 RD |
2913 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; |
2914 | ||
2915 | self = self; | |
137b5242 | 2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10)) |
09f3d4e6 RD |
2917 | return NULL; |
2918 | if (_argo0) { | |
2919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2922 | return NULL; | |
2923 | } | |
2924 | } | |
2925 | if (_argo1) { | |
2926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2929 | return NULL; | |
2930 | } | |
2931 | } | |
137b5242 RD |
2932 | if (_obj3) |
2933 | { | |
2934 | _arg3 = wxString_in_helper(_obj3); | |
2935 | if (_arg3 == NULL) | |
2936 | return NULL; | |
2937 | } | |
09f3d4e6 RD |
2938 | if (_obj4) |
2939 | { | |
2940 | _arg4 = &temp; | |
2941 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2942 | return NULL; | |
2943 | } | |
2944 | if (_obj5) | |
2945 | { | |
2946 | _arg5 = &temp0; | |
2947 | if (! wxSize_helper(_obj5, &_arg5)) | |
2948 | return NULL; | |
2949 | } | |
2950 | if (_obj7) | |
2951 | { | |
2952 | _arg7 = wxString_LIST_helper(_obj7); | |
2953 | if (_arg7 == NULL) { | |
2954 | return NULL; | |
2955 | } | |
2956 | } | |
2957 | if (_argo9) { | |
2958 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2959 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2961 | return NULL; | |
2962 | } | |
2963 | } | |
137b5242 RD |
2964 | if (_obj10) |
2965 | { | |
2966 | _arg10 = wxString_in_helper(_obj10); | |
2967 | if (_arg10 == NULL) | |
2968 | return NULL; | |
2969 | } | |
09f3d4e6 RD |
2970 | { |
2971 | if (_obj7) { | |
2972 | _arg6 = PyList_Size(_obj7); | |
2973 | } | |
2974 | else { | |
2975 | _arg6 = 0; | |
2976 | } | |
2977 | } | |
2978 | { | |
4268f798 | 2979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2980 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
09f3d4e6 | 2981 | |
4268f798 | 2982 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2983 | if (PyErr_Occurred()) return NULL; |
2984 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2985 | { |
2986 | if (_obj3) | |
2987 | delete _arg3; | |
2988 | } | |
09f3d4e6 RD |
2989 | { |
2990 | delete [] _arg7; | |
137b5242 RD |
2991 | } |
2992 | { | |
2993 | if (_obj10) | |
2994 | delete _arg10; | |
09f3d4e6 RD |
2995 | } |
2996 | return _resultobj; | |
2997 | } | |
2998 | ||
8ab979d7 | 2999 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
efc5f224 | 3000 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3001 | PyObject * _resultobj; |
3002 | wxComboBox * _arg0; | |
1d99702e | 3003 | PyObject * _argo0 = 0; |
efc5f224 | 3004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3005 | |
3006 | self = self; | |
efc5f224 | 3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
8ab979d7 | 3008 | return NULL; |
1d99702e RD |
3009 | if (_argo0) { |
3010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
3013 | return NULL; | |
3014 | } | |
3015 | } | |
cf694132 | 3016 | { |
4268f798 | 3017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3018 | wxComboBox_Copy(_arg0); |
cf694132 | 3019 | |
4268f798 | 3020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3022 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3023 | _resultobj = Py_None; |
3024 | return _resultobj; | |
3025 | } | |
3026 | ||
3027 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
efc5f224 | 3028 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3029 | PyObject * _resultobj; |
3030 | wxComboBox * _arg0; | |
1d99702e | 3031 | PyObject * _argo0 = 0; |
efc5f224 | 3032 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3033 | |
3034 | self = self; | |
efc5f224 | 3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
8ab979d7 | 3036 | return NULL; |
1d99702e RD |
3037 | if (_argo0) { |
3038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
3041 | return NULL; | |
3042 | } | |
3043 | } | |
cf694132 | 3044 | { |
4268f798 | 3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3046 | wxComboBox_Cut(_arg0); |
cf694132 | 3047 | |
4268f798 | 3048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3050 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3051 | _resultobj = Py_None; |
3052 | return _resultobj; | |
3053 | } | |
3054 | ||
8ab979d7 | 3055 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
efc5f224 | 3056 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3057 | PyObject * _resultobj; |
3058 | long _result; | |
3059 | wxComboBox * _arg0; | |
1d99702e | 3060 | PyObject * _argo0 = 0; |
900d9886 | 3061 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3062 | |
3063 | self = self; | |
900d9886 | 3064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
8ab979d7 | 3065 | return NULL; |
1d99702e RD |
3066 | if (_argo0) { |
3067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 3069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
8ab979d7 RD |
3070 | return NULL; |
3071 | } | |
3072 | } | |
8ab979d7 | 3073 | { |
4268f798 | 3074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3075 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
cf694132 | 3076 | |
4268f798 | 3077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3078 | if (PyErr_Occurred()) return NULL; |
900d9886 | 3079 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3080 | return _resultobj; |
3081 | } | |
3082 | ||
900d9886 RD |
3083 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
3084 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3085 | PyObject * _resultobj; |
900d9886 | 3086 | long _result; |
8ab979d7 | 3087 | wxComboBox * _arg0; |
1d99702e | 3088 | PyObject * _argo0 = 0; |
efc5f224 | 3089 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3090 | |
3091 | self = self; | |
900d9886 | 3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
8ab979d7 | 3093 | return NULL; |
1d99702e RD |
3094 | if (_argo0) { |
3095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
900d9886 | 3097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
8ab979d7 RD |
3098 | return NULL; |
3099 | } | |
3100 | } | |
8ab979d7 | 3101 | { |
4268f798 | 3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3103 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
cf694132 | 3104 | |
4268f798 | 3105 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3106 | if (PyErr_Occurred()) return NULL; |
900d9886 | 3107 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3108 | return _resultobj; |
3109 | } | |
3110 | ||
3111 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 3112 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3113 | PyObject * _resultobj; |
3114 | wxString * _result; | |
3115 | wxComboBox * _arg0; | |
1d99702e | 3116 | PyObject * _argo0 = 0; |
efc5f224 | 3117 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3118 | |
3119 | self = self; | |
efc5f224 | 3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 3121 | return NULL; |
1d99702e RD |
3122 | if (_argo0) { |
3123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
3126 | return NULL; | |
3127 | } | |
3128 | } | |
8ab979d7 | 3129 | { |
4268f798 | 3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3131 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
cf694132 | 3132 | |
4268f798 | 3133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3134 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3135 | }{ |
c8bc7bb8 RD |
3136 | #if wxUSE_UNICODE |
3137 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3138 | #else | |
eec92d76 | 3139 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3140 | #endif |
8ab979d7 RD |
3141 | } |
3142 | { | |
3143 | delete _result; | |
3144 | } | |
3145 | return _resultobj; | |
3146 | } | |
3147 | ||
8ab979d7 | 3148 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
efc5f224 | 3149 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3150 | PyObject * _resultobj; |
3151 | wxComboBox * _arg0; | |
1d99702e | 3152 | PyObject * _argo0 = 0; |
efc5f224 | 3153 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3154 | |
3155 | self = self; | |
efc5f224 | 3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
8ab979d7 | 3157 | return NULL; |
1d99702e RD |
3158 | if (_argo0) { |
3159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
3162 | return NULL; | |
3163 | } | |
3164 | } | |
cf694132 | 3165 | { |
4268f798 | 3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3167 | wxComboBox_Paste(_arg0); |
cf694132 | 3168 | |
4268f798 | 3169 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3170 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3171 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3172 | _resultobj = Py_None; |
3173 | return _resultobj; | |
3174 | } | |
3175 | ||
3176 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3177 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3178 | PyObject * _resultobj; |
3179 | wxComboBox * _arg0; | |
3180 | long _arg1; | |
3181 | long _arg2; | |
3182 | wxString * _arg3; | |
1d99702e | 3183 | PyObject * _argo0 = 0; |
8ab979d7 | 3184 | PyObject * _obj3 = 0; |
efc5f224 | 3185 | char *_kwnames[] = { "self","from","to","text", NULL }; |
8ab979d7 RD |
3186 | |
3187 | self = self; | |
efc5f224 | 3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3189 | return NULL; |
1d99702e RD |
3190 | if (_argo0) { |
3191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3194 | return NULL; | |
3195 | } | |
3196 | } | |
3197 | { | |
c8bc7bb8 RD |
3198 | _arg3 = wxString_in_helper(_obj3); |
3199 | if (_arg3 == NULL) | |
185d7c3e | 3200 | return NULL; |
8ab979d7 | 3201 | } |
cf694132 | 3202 | { |
4268f798 | 3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3204 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 3205 | |
4268f798 | 3206 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3207 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3208 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3209 | _resultobj = Py_None; |
3210 | { | |
3211 | if (_obj3) | |
3212 | delete _arg3; | |
3213 | } | |
3214 | return _resultobj; | |
3215 | } | |
3216 | ||
3217 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
efc5f224 | 3218 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3219 | PyObject * _resultobj; |
3220 | wxComboBox * _arg0; | |
3221 | long _arg1; | |
3222 | long _arg2; | |
1d99702e | 3223 | PyObject * _argo0 = 0; |
efc5f224 | 3224 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3225 | |
3226 | self = self; | |
efc5f224 | 3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3228 | return NULL; |
1d99702e RD |
3229 | if (_argo0) { |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
cf694132 | 3236 | { |
4268f798 | 3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3238 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
cf694132 | 3239 | |
4268f798 | 3240 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3242 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3243 | _resultobj = Py_None; |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
3247 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
efc5f224 | 3248 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3249 | PyObject * _resultobj; |
3250 | wxComboBox * _arg0; | |
3251 | long _arg1; | |
1d99702e | 3252 | PyObject * _argo0 = 0; |
efc5f224 | 3253 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3254 | |
3255 | self = self; | |
efc5f224 | 3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3257 | return NULL; |
1d99702e RD |
3258 | if (_argo0) { |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
cf694132 | 3265 | { |
4268f798 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
cf694132 | 3268 | |
4268f798 | 3269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3271 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3272 | _resultobj = Py_None; |
3273 | return _resultobj; | |
3274 | } | |
3275 | ||
3276 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
efc5f224 | 3277 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3278 | PyObject * _resultobj; |
3279 | wxComboBox * _arg0; | |
1d99702e | 3280 | PyObject * _argo0 = 0; |
efc5f224 | 3281 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3282 | |
3283 | self = self; | |
efc5f224 | 3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
8ab979d7 | 3285 | return NULL; |
1d99702e RD |
3286 | if (_argo0) { |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
cf694132 | 3293 | { |
4268f798 | 3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3295 | wxComboBox_SetInsertionPointEnd(_arg0); |
cf694132 | 3296 | |
4268f798 | 3297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3299 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3300 | _resultobj = Py_None; |
3301 | return _resultobj; | |
3302 | } | |
3303 | ||
1d99702e | 3304 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
efc5f224 | 3305 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
1d99702e RD |
3306 | PyObject * _resultobj; |
3307 | wxComboBox * _arg0; | |
3308 | int _arg1; | |
3309 | PyObject * _argo0 = 0; | |
efc5f224 | 3310 | char *_kwnames[] = { "self","n", NULL }; |
1d99702e RD |
3311 | |
3312 | self = self; | |
efc5f224 | 3313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
1d99702e RD |
3314 | return NULL; |
3315 | if (_argo0) { | |
3316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3319 | return NULL; | |
3320 | } | |
3321 | } | |
3322 | { | |
4268f798 | 3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3324 | wxComboBox_SetSelection(_arg0,_arg1); |
1d99702e | 3325 | |
4268f798 | 3326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3327 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3328 | } Py_INCREF(Py_None); |
3329 | _resultobj = Py_None; | |
3330 | return _resultobj; | |
3331 | } | |
3332 | ||
8ab979d7 | 3333 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
efc5f224 | 3334 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3335 | PyObject * _resultobj; |
3336 | wxComboBox * _arg0; | |
3337 | long _arg1; | |
3338 | long _arg2; | |
1d99702e | 3339 | PyObject * _argo0 = 0; |
efc5f224 | 3340 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
3341 | |
3342 | self = self; | |
efc5f224 | 3343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3344 | return NULL; |
1d99702e RD |
3345 | if (_argo0) { |
3346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3349 | return NULL; | |
3350 | } | |
3351 | } | |
cf694132 | 3352 | { |
4268f798 | 3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3354 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
cf694132 | 3355 | |
4268f798 | 3356 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3358 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3359 | _resultobj = Py_None; |
3360 | return _resultobj; | |
3361 | } | |
3362 | ||
3363 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3364 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3365 | PyObject * _resultobj; |
3366 | wxComboBox * _arg0; | |
3367 | wxString * _arg1; | |
1d99702e | 3368 | PyObject * _argo0 = 0; |
8ab979d7 | 3369 | PyObject * _obj1 = 0; |
efc5f224 | 3370 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
3371 | |
3372 | self = self; | |
efc5f224 | 3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3374 | return NULL; |
1d99702e RD |
3375 | if (_argo0) { |
3376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
8ab979d7 RD |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
3382 | { | |
c8bc7bb8 RD |
3383 | _arg1 = wxString_in_helper(_obj1); |
3384 | if (_arg1 == NULL) | |
185d7c3e | 3385 | return NULL; |
8ab979d7 | 3386 | } |
cf694132 | 3387 | { |
4268f798 | 3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3389 | wxComboBox_SetValue(_arg0,*_arg1); |
cf694132 | 3390 | |
4268f798 | 3391 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3393 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3394 | _resultobj = Py_None; |
3395 | { | |
3396 | if (_obj1) | |
3397 | delete _arg1; | |
3398 | } | |
3399 | return _resultobj; | |
3400 | } | |
3401 | ||
0adbc166 RD |
3402 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3403 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject * _resultobj; | |
3405 | wxComboBox * _arg0; | |
3406 | bool _arg1; | |
3407 | PyObject * _argo0 = 0; | |
3408 | int tempbool1; | |
3409 | char *_kwnames[] = { "self","editable", NULL }; | |
3410 | ||
3411 | self = self; | |
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3413 | return NULL; | |
3414 | if (_argo0) { | |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
3421 | _arg1 = (bool ) tempbool1; | |
3422 | { | |
4268f798 | 3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3424 | wxComboBox_SetEditable(_arg0,_arg1); |
0adbc166 | 3425 | |
4268f798 | 3426 | wxPyEndAllowThreads(__tstate); |
0adbc166 RD |
3427 | if (PyErr_Occurred()) return NULL; |
3428 | } Py_INCREF(Py_None); | |
3429 | _resultobj = Py_None; | |
3430 | return _resultobj; | |
3431 | } | |
3432 | ||
8ab979d7 RD |
3433 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3434 | wxGauge *src; | |
3435 | wxControl *dest; | |
3436 | src = (wxGauge *) ptr; | |
3437 | dest = (wxControl *) src; | |
3438 | return (void *) dest; | |
3439 | } | |
3440 | ||
3441 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3442 | wxGauge *src; | |
3443 | wxWindow *dest; | |
3444 | src = (wxGauge *) ptr; | |
3445 | dest = (wxWindow *) src; | |
3446 | return (void *) dest; | |
3447 | } | |
3448 | ||
3449 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3450 | wxGauge *src; | |
3451 | wxEvtHandler *dest; | |
3452 | src = (wxGauge *) ptr; | |
3453 | dest = (wxEvtHandler *) src; | |
3454 | return (void *) dest; | |
3455 | } | |
3456 | ||
9416aa89 RD |
3457 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3458 | wxGauge *src; | |
3459 | wxObject *dest; | |
3460 | src = (wxGauge *) ptr; | |
3461 | dest = (wxObject *) src; | |
3462 | return (void *) dest; | |
3463 | } | |
3464 | ||
8ab979d7 | 3465 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 3466 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3467 | PyObject * _resultobj; |
3468 | wxGauge * _result; | |
3469 | wxWindow * _arg0; | |
3470 | wxWindowID _arg1; | |
3471 | int _arg2; | |
e508a2b6 RD |
3472 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3473 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 3474 | long _arg5 = (long ) wxGA_HORIZONTAL; |
e508a2b6 | 3475 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 3476 | wxString * _arg7 = (wxString *) &wxPyGaugeNameStr; |
1d99702e | 3477 | PyObject * _argo0 = 0; |
2f90df85 RD |
3478 | wxPoint temp; |
3479 | PyObject * _obj3 = 0; | |
3480 | wxSize temp0; | |
3481 | PyObject * _obj4 = 0; | |
1d99702e | 3482 | PyObject * _argo6 = 0; |
137b5242 | 3483 | PyObject * _obj7 = 0; |
efc5f224 | 3484 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3485 | char _ptemp[128]; |
3486 | ||
3487 | self = self; | |
137b5242 | 3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
8ab979d7 | 3489 | return NULL; |
1d99702e RD |
3490 | if (_argo0) { |
3491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3494 | return NULL; | |
3495 | } | |
3496 | } | |
2f90df85 RD |
3497 | if (_obj3) |
3498 | { | |
3499 | _arg3 = &temp; | |
3500 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3501 | return NULL; |
2f90df85 RD |
3502 | } |
3503 | if (_obj4) | |
3504 | { | |
3505 | _arg4 = &temp0; | |
3506 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3507 | return NULL; |
2f90df85 | 3508 | } |
1d99702e RD |
3509 | if (_argo6) { |
3510 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3511 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8ab979d7 RD |
3512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3513 | return NULL; | |
3514 | } | |
3515 | } | |
137b5242 RD |
3516 | if (_obj7) |
3517 | { | |
3518 | _arg7 = wxString_in_helper(_obj7); | |
3519 | if (_arg7 == NULL) | |
3520 | return NULL; | |
3521 | } | |
cf694132 | 3522 | { |
4268f798 | 3523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 3524 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
cf694132 | 3525 | |
4268f798 | 3526 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3527 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3528 | } if (_result) { |
3529 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3530 | _resultobj = Py_BuildValue("s",_ptemp); | |
3531 | } else { | |
3532 | Py_INCREF(Py_None); | |
3533 | _resultobj = Py_None; | |
3534 | } | |
137b5242 RD |
3535 | { |
3536 | if (_obj7) | |
3537 | delete _arg7; | |
3538 | } | |
8ab979d7 RD |
3539 | return _resultobj; |
3540 | } | |
3541 | ||
09f3d4e6 RD |
3542 | #define new_wxPreGauge() (new wxGauge()) |
3543 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject * _resultobj; | |
3545 | wxGauge * _result; | |
3546 | char *_kwnames[] = { NULL }; | |
3547 | char _ptemp[128]; | |
3548 | ||
3549 | self = self; | |
3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3551 | return NULL; | |
3552 | { | |
4268f798 | 3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3554 | _result = (wxGauge *)new_wxPreGauge(); |
09f3d4e6 | 3555 | |
4268f798 | 3556 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3557 | if (PyErr_Occurred()) return NULL; |
3558 | } if (_result) { | |
3559 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3560 | _resultobj = Py_BuildValue("s",_ptemp); | |
3561 | } else { | |
3562 | Py_INCREF(Py_None); | |
3563 | _resultobj = Py_None; | |
3564 | } | |
3565 | return _resultobj; | |
3566 | } | |
3567 | ||
3568 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3569 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject * _resultobj; | |
3571 | bool _result; | |
3572 | wxGauge * _arg0; | |
3573 | wxWindow * _arg1; | |
3574 | wxWindowID _arg2; | |
3575 | int _arg3; | |
3576 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3577 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3578 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3579 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 3580 | wxString * _arg8 = (wxString *) &wxPyGaugeNameStr; |
09f3d4e6 RD |
3581 | PyObject * _argo0 = 0; |
3582 | PyObject * _argo1 = 0; | |
3583 | wxPoint temp; | |
3584 | PyObject * _obj4 = 0; | |
3585 | wxSize temp0; | |
3586 | PyObject * _obj5 = 0; | |
3587 | PyObject * _argo7 = 0; | |
137b5242 | 3588 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
3589 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; |
3590 | ||
3591 | self = self; | |
137b5242 | 3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
3593 | return NULL; |
3594 | if (_argo0) { | |
3595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3598 | return NULL; | |
3599 | } | |
3600 | } | |
3601 | if (_argo1) { | |
3602 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3603 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3605 | return NULL; | |
3606 | } | |
3607 | } | |
3608 | if (_obj4) | |
3609 | { | |
3610 | _arg4 = &temp; | |
3611 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3612 | return NULL; | |
3613 | } | |
3614 | if (_obj5) | |
3615 | { | |
3616 | _arg5 = &temp0; | |
3617 | if (! wxSize_helper(_obj5, &_arg5)) | |
3618 | return NULL; | |
3619 | } | |
3620 | if (_argo7) { | |
3621 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3622 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3624 | return NULL; | |
3625 | } | |
3626 | } | |
137b5242 RD |
3627 | if (_obj8) |
3628 | { | |
3629 | _arg8 = wxString_in_helper(_obj8); | |
3630 | if (_arg8 == NULL) | |
3631 | return NULL; | |
3632 | } | |
09f3d4e6 | 3633 | { |
4268f798 | 3634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 3635 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 3636 | |
4268f798 | 3637 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3638 | if (PyErr_Occurred()) return NULL; |
3639 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
3640 | { |
3641 | if (_obj8) | |
3642 | delete _arg8; | |
3643 | } | |
09f3d4e6 RD |
3644 | return _resultobj; |
3645 | } | |
3646 | ||
8ab979d7 | 3647 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
efc5f224 | 3648 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3649 | PyObject * _resultobj; |
3650 | int _result; | |
3651 | wxGauge * _arg0; | |
1d99702e | 3652 | PyObject * _argo0 = 0; |
efc5f224 | 3653 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3654 | |
3655 | self = self; | |
efc5f224 | 3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
8ab979d7 | 3657 | return NULL; |
1d99702e RD |
3658 | if (_argo0) { |
3659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3662 | return NULL; | |
3663 | } | |
3664 | } | |
cf694132 | 3665 | { |
4268f798 | 3666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3667 | _result = (int )wxGauge_GetBezelFace(_arg0); |
cf694132 | 3668 | |
4268f798 | 3669 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3671 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3672 | return _resultobj; |
3673 | } | |
3674 | ||
3675 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
efc5f224 | 3676 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3677 | PyObject * _resultobj; |
3678 | int _result; | |
3679 | wxGauge * _arg0; | |
1d99702e | 3680 | PyObject * _argo0 = 0; |
efc5f224 | 3681 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3682 | |
3683 | self = self; | |
efc5f224 | 3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 3685 | return NULL; |
1d99702e RD |
3686 | if (_argo0) { |
3687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3690 | return NULL; | |
3691 | } | |
3692 | } | |
cf694132 | 3693 | { |
4268f798 | 3694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3695 | _result = (int )wxGauge_GetRange(_arg0); |
cf694132 | 3696 | |
4268f798 | 3697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3699 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3700 | return _resultobj; |
3701 | } | |
3702 | ||
3703 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
efc5f224 | 3704 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3705 | PyObject * _resultobj; |
3706 | int _result; | |
3707 | wxGauge * _arg0; | |
1d99702e | 3708 | PyObject * _argo0 = 0; |
efc5f224 | 3709 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3710 | |
3711 | self = self; | |
efc5f224 | 3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
8ab979d7 | 3713 | return NULL; |
1d99702e RD |
3714 | if (_argo0) { |
3715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3718 | return NULL; | |
3719 | } | |
3720 | } | |
cf694132 | 3721 | { |
4268f798 | 3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3723 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
cf694132 | 3724 | |
4268f798 | 3725 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3727 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3728 | return _resultobj; |
3729 | } | |
3730 | ||
3731 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 3732 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3733 | PyObject * _resultobj; |
3734 | int _result; | |
3735 | wxGauge * _arg0; | |
1d99702e | 3736 | PyObject * _argo0 = 0; |
efc5f224 | 3737 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3738 | |
3739 | self = self; | |
efc5f224 | 3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 3741 | return NULL; |
1d99702e RD |
3742 | if (_argo0) { |
3743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
3746 | return NULL; | |
3747 | } | |
3748 | } | |
cf694132 | 3749 | { |
4268f798 | 3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3751 | _result = (int )wxGauge_GetValue(_arg0); |
cf694132 | 3752 | |
4268f798 | 3753 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3754 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3755 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3756 | return _resultobj; |
3757 | } | |
3758 | ||
3759 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
efc5f224 | 3760 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3761 | PyObject * _resultobj; |
3762 | wxGauge * _arg0; | |
3763 | int _arg1; | |
1d99702e | 3764 | PyObject * _argo0 = 0; |
efc5f224 | 3765 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3766 | |
3767 | self = self; | |
efc5f224 | 3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3769 | return NULL; |
1d99702e RD |
3770 | if (_argo0) { |
3771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
cf694132 | 3777 | { |
4268f798 | 3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3779 | wxGauge_SetBezelFace(_arg0,_arg1); |
cf694132 | 3780 | |
4268f798 | 3781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3783 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3784 | _resultobj = Py_None; |
3785 | return _resultobj; | |
3786 | } | |
3787 | ||
3788 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
efc5f224 | 3789 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3790 | PyObject * _resultobj; |
3791 | wxGauge * _arg0; | |
3792 | int _arg1; | |
1d99702e | 3793 | PyObject * _argo0 = 0; |
efc5f224 | 3794 | char *_kwnames[] = { "self","range", NULL }; |
8ab979d7 RD |
3795 | |
3796 | self = self; | |
efc5f224 | 3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3798 | return NULL; |
1d99702e RD |
3799 | if (_argo0) { |
3800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
3803 | return NULL; | |
3804 | } | |
3805 | } | |
cf694132 | 3806 | { |
4268f798 | 3807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3808 | wxGauge_SetRange(_arg0,_arg1); |
cf694132 | 3809 | |
4268f798 | 3810 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3811 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3812 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3813 | _resultobj = Py_None; |
3814 | return _resultobj; | |
3815 | } | |
3816 | ||
3817 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
efc5f224 | 3818 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3819 | PyObject * _resultobj; |
3820 | wxGauge * _arg0; | |
3821 | int _arg1; | |
1d99702e | 3822 | PyObject * _argo0 = 0; |
efc5f224 | 3823 | char *_kwnames[] = { "self","width", NULL }; |
8ab979d7 RD |
3824 | |
3825 | self = self; | |
efc5f224 | 3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3827 | return NULL; |
1d99702e RD |
3828 | if (_argo0) { |
3829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
3832 | return NULL; | |
3833 | } | |
3834 | } | |
cf694132 | 3835 | { |
4268f798 | 3836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3837 | wxGauge_SetShadowWidth(_arg0,_arg1); |
cf694132 | 3838 | |
4268f798 | 3839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3841 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3842 | _resultobj = Py_None; |
3843 | return _resultobj; | |
3844 | } | |
3845 | ||
3846 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 3847 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3848 | PyObject * _resultobj; |
3849 | wxGauge * _arg0; | |
3850 | int _arg1; | |
1d99702e | 3851 | PyObject * _argo0 = 0; |
efc5f224 | 3852 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
3853 | |
3854 | self = self; | |
efc5f224 | 3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3856 | return NULL; |
1d99702e RD |
3857 | if (_argo0) { |
3858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
8ab979d7 RD |
3860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
3861 | return NULL; | |
3862 | } | |
3863 | } | |
cf694132 | 3864 | { |
4268f798 | 3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3866 | wxGauge_SetValue(_arg0,_arg1); |
cf694132 | 3867 | |
4268f798 | 3868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3870 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3871 | _resultobj = Py_None; |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
3875 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3876 | wxStaticBox *src; | |
3877 | wxControl *dest; | |
3878 | src = (wxStaticBox *) ptr; | |
3879 | dest = (wxControl *) src; | |
3880 | return (void *) dest; | |
3881 | } | |
3882 | ||
3883 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3884 | wxStaticBox *src; | |
3885 | wxWindow *dest; | |
3886 | src = (wxStaticBox *) ptr; | |
3887 | dest = (wxWindow *) src; | |
3888 | return (void *) dest; | |
3889 | } | |
3890 | ||
3891 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3892 | wxStaticBox *src; | |
3893 | wxEvtHandler *dest; | |
3894 | src = (wxStaticBox *) ptr; | |
3895 | dest = (wxEvtHandler *) src; | |
3896 | return (void *) dest; | |
3897 | } | |
3898 | ||
9416aa89 RD |
3899 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
3900 | wxStaticBox *src; | |
3901 | wxObject *dest; | |
3902 | src = (wxStaticBox *) ptr; | |
3903 | dest = (wxObject *) src; | |
3904 | return (void *) dest; | |
3905 | } | |
3906 | ||
8ab979d7 | 3907 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3908 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3909 | PyObject * _resultobj; |
3910 | wxStaticBox * _result; | |
3911 | wxWindow * _arg0; | |
3912 | wxWindowID _arg1; | |
3913 | wxString * _arg2; | |
e508a2b6 RD |
3914 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3915 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 3916 | long _arg5 = (long ) 0; |
137b5242 | 3917 | wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr; |
1d99702e | 3918 | PyObject * _argo0 = 0; |
8ab979d7 | 3919 | PyObject * _obj2 = 0; |
2f90df85 RD |
3920 | wxPoint temp; |
3921 | PyObject * _obj3 = 0; | |
3922 | wxSize temp0; | |
3923 | PyObject * _obj4 = 0; | |
137b5242 | 3924 | PyObject * _obj6 = 0; |
efc5f224 | 3925 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
3926 | char _ptemp[128]; |
3927 | ||
3928 | self = self; | |
137b5242 | 3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
8ab979d7 | 3930 | return NULL; |
1d99702e RD |
3931 | if (_argo0) { |
3932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
3935 | return NULL; | |
3936 | } | |
3937 | } | |
3938 | { | |
c8bc7bb8 RD |
3939 | _arg2 = wxString_in_helper(_obj2); |
3940 | if (_arg2 == NULL) | |
185d7c3e | 3941 | return NULL; |
8ab979d7 | 3942 | } |
2f90df85 RD |
3943 | if (_obj3) |
3944 | { | |
3945 | _arg3 = &temp; | |
3946 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 3947 | return NULL; |
2f90df85 RD |
3948 | } |
3949 | if (_obj4) | |
3950 | { | |
3951 | _arg4 = &temp0; | |
3952 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 3953 | return NULL; |
137b5242 RD |
3954 | } |
3955 | if (_obj6) | |
3956 | { | |
3957 | _arg6 = wxString_in_helper(_obj6); | |
3958 | if (_arg6 == NULL) | |
3959 | return NULL; | |
2f90df85 | 3960 | } |
cf694132 | 3961 | { |
4268f798 | 3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 3963 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
cf694132 | 3964 | |
4268f798 | 3965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3966 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3967 | } if (_result) { |
3968 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3969 | _resultobj = Py_BuildValue("s",_ptemp); | |
3970 | } else { | |
3971 | Py_INCREF(Py_None); | |
3972 | _resultobj = Py_None; | |
3973 | } | |
8ab979d7 RD |
3974 | { |
3975 | if (_obj2) | |
3976 | delete _arg2; | |
137b5242 RD |
3977 | } |
3978 | { | |
3979 | if (_obj6) | |
3980 | delete _arg6; | |
8ab979d7 RD |
3981 | } |
3982 | return _resultobj; | |
3983 | } | |
3984 | ||
09f3d4e6 RD |
3985 | #define new_wxPreStaticBox() (new wxStaticBox()) |
3986 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject * _resultobj; | |
3988 | wxStaticBox * _result; | |
3989 | char *_kwnames[] = { NULL }; | |
3990 | char _ptemp[128]; | |
3991 | ||
3992 | self = self; | |
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3994 | return NULL; | |
3995 | { | |
4268f798 | 3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3997 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
09f3d4e6 | 3998 | |
4268f798 | 3999 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4000 | if (PyErr_Occurred()) return NULL; |
4001 | } if (_result) { | |
4002 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4003 | _resultobj = Py_BuildValue("s",_ptemp); | |
4004 | } else { | |
4005 | Py_INCREF(Py_None); | |
4006 | _resultobj = Py_None; | |
4007 | } | |
4008 | return _resultobj; | |
4009 | } | |
4010 | ||
4011 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4012 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject * _resultobj; | |
4014 | bool _result; | |
4015 | wxStaticBox * _arg0; | |
4016 | wxWindow * _arg1; | |
4017 | wxWindowID _arg2; | |
4018 | wxString * _arg3; | |
4019 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4020 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4021 | long _arg6 = (long ) 0; | |
137b5242 | 4022 | wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr; |
09f3d4e6 RD |
4023 | PyObject * _argo0 = 0; |
4024 | PyObject * _argo1 = 0; | |
4025 | PyObject * _obj3 = 0; | |
4026 | wxPoint temp; | |
4027 | PyObject * _obj4 = 0; | |
4028 | wxSize temp0; | |
4029 | PyObject * _obj5 = 0; | |
137b5242 | 4030 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
4031 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4032 | ||
4033 | self = self; | |
137b5242 | 4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
09f3d4e6 RD |
4035 | return NULL; |
4036 | if (_argo0) { | |
4037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4040 | return NULL; | |
4041 | } | |
4042 | } | |
4043 | if (_argo1) { | |
4044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4047 | return NULL; | |
4048 | } | |
4049 | } | |
4050 | { | |
c8bc7bb8 RD |
4051 | _arg3 = wxString_in_helper(_obj3); |
4052 | if (_arg3 == NULL) | |
09f3d4e6 | 4053 | return NULL; |
09f3d4e6 RD |
4054 | } |
4055 | if (_obj4) | |
4056 | { | |
4057 | _arg4 = &temp; | |
4058 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4059 | return NULL; | |
4060 | } | |
4061 | if (_obj5) | |
4062 | { | |
4063 | _arg5 = &temp0; | |
4064 | if (! wxSize_helper(_obj5, &_arg5)) | |
4065 | return NULL; | |
137b5242 RD |
4066 | } |
4067 | if (_obj7) | |
4068 | { | |
4069 | _arg7 = wxString_in_helper(_obj7); | |
4070 | if (_arg7 == NULL) | |
4071 | return NULL; | |
09f3d4e6 RD |
4072 | } |
4073 | { | |
4268f798 | 4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4075 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
09f3d4e6 | 4076 | |
4268f798 | 4077 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4078 | if (PyErr_Occurred()) return NULL; |
4079 | } _resultobj = Py_BuildValue("i",_result); | |
4080 | { | |
4081 | if (_obj3) | |
4082 | delete _arg3; | |
137b5242 RD |
4083 | } |
4084 | { | |
4085 | if (_obj7) | |
4086 | delete _arg7; | |
09f3d4e6 RD |
4087 | } |
4088 | return _resultobj; | |
4089 | } | |
4090 | ||
8bf5d46e RD |
4091 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
4092 | wxStaticLine *src; | |
4093 | wxControl *dest; | |
4094 | src = (wxStaticLine *) ptr; | |
4095 | dest = (wxControl *) src; | |
4096 | return (void *) dest; | |
4097 | } | |
4098 | ||
4099 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4100 | wxStaticLine *src; | |
4101 | wxWindow *dest; | |
4102 | src = (wxStaticLine *) ptr; | |
4103 | dest = (wxWindow *) src; | |
4104 | return (void *) dest; | |
4105 | } | |
4106 | ||
4107 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4108 | wxStaticLine *src; | |
4109 | wxEvtHandler *dest; | |
4110 | src = (wxStaticLine *) ptr; | |
4111 | dest = (wxEvtHandler *) src; | |
4112 | return (void *) dest; | |
4113 | } | |
4114 | ||
9416aa89 RD |
4115 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
4116 | wxStaticLine *src; | |
4117 | wxObject *dest; | |
4118 | src = (wxStaticLine *) ptr; | |
4119 | dest = (wxObject *) src; | |
4120 | return (void *) dest; | |
4121 | } | |
4122 | ||
8bf5d46e | 4123 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4124 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
4125 | PyObject * _resultobj; |
4126 | wxStaticLine * _result; | |
4127 | wxWindow * _arg0; | |
4128 | wxWindowID _arg1; | |
e508a2b6 RD |
4129 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4130 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 4131 | long _arg4 = (long ) wxLI_HORIZONTAL; |
137b5242 | 4132 | wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr; |
1d99702e | 4133 | PyObject * _argo0 = 0; |
2f90df85 RD |
4134 | wxPoint temp; |
4135 | PyObject * _obj2 = 0; | |
4136 | wxSize temp0; | |
4137 | PyObject * _obj3 = 0; | |
137b5242 | 4138 | PyObject * _obj5 = 0; |
efc5f224 | 4139 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8bf5d46e RD |
4140 | char _ptemp[128]; |
4141 | ||
4142 | self = self; | |
137b5242 | 4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8bf5d46e | 4144 | return NULL; |
1d99702e RD |
4145 | if (_argo0) { |
4146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4149 | return NULL; | |
4150 | } | |
4151 | } | |
2f90df85 RD |
4152 | if (_obj2) |
4153 | { | |
4154 | _arg2 = &temp; | |
4155 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 4156 | return NULL; |
2f90df85 RD |
4157 | } |
4158 | if (_obj3) | |
4159 | { | |
4160 | _arg3 = &temp0; | |
4161 | if (! wxSize_helper(_obj3, &_arg3)) | |
8bf5d46e | 4162 | return NULL; |
137b5242 RD |
4163 | } |
4164 | if (_obj5) | |
4165 | { | |
4166 | _arg5 = wxString_in_helper(_obj5); | |
4167 | if (_arg5 == NULL) | |
4168 | return NULL; | |
2f90df85 | 4169 | } |
8bf5d46e | 4170 | { |
4268f798 | 4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4172 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
8bf5d46e | 4173 | |
4268f798 | 4174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4175 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4176 | } if (_result) { |
4177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4178 | _resultobj = Py_BuildValue("s",_ptemp); | |
4179 | } else { | |
4180 | Py_INCREF(Py_None); | |
4181 | _resultobj = Py_None; | |
4182 | } | |
137b5242 RD |
4183 | { |
4184 | if (_obj5) | |
4185 | delete _arg5; | |
4186 | } | |
8bf5d46e RD |
4187 | return _resultobj; |
4188 | } | |
4189 | ||
09f3d4e6 RD |
4190 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4191 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4192 | PyObject * _resultobj; | |
4193 | wxStaticLine * _result; | |
4194 | char *_kwnames[] = { NULL }; | |
4195 | char _ptemp[128]; | |
4196 | ||
4197 | self = self; | |
4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4199 | return NULL; | |
4200 | { | |
4268f798 | 4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4202 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
09f3d4e6 | 4203 | |
4268f798 | 4204 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4205 | if (PyErr_Occurred()) return NULL; |
4206 | } if (_result) { | |
4207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4208 | _resultobj = Py_BuildValue("s",_ptemp); | |
4209 | } else { | |
4210 | Py_INCREF(Py_None); | |
4211 | _resultobj = Py_None; | |
4212 | } | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4217 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | bool _result; | |
4220 | wxStaticLine * _arg0; | |
4221 | wxWindow * _arg1; | |
4222 | wxWindowID _arg2; | |
4223 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4224 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4225 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
137b5242 | 4226 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
09f3d4e6 RD |
4227 | PyObject * _argo0 = 0; |
4228 | PyObject * _argo1 = 0; | |
4229 | wxPoint temp; | |
4230 | PyObject * _obj3 = 0; | |
4231 | wxSize temp0; | |
4232 | PyObject * _obj4 = 0; | |
137b5242 | 4233 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
4234 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
4235 | ||
4236 | self = self; | |
137b5242 | 4237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
4238 | return NULL; |
4239 | if (_argo0) { | |
4240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4243 | return NULL; | |
4244 | } | |
4245 | } | |
4246 | if (_argo1) { | |
4247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4250 | return NULL; | |
4251 | } | |
4252 | } | |
4253 | if (_obj3) | |
4254 | { | |
4255 | _arg3 = &temp; | |
4256 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4257 | return NULL; | |
4258 | } | |
4259 | if (_obj4) | |
4260 | { | |
4261 | _arg4 = &temp0; | |
4262 | if (! wxSize_helper(_obj4, &_arg4)) | |
4263 | return NULL; | |
137b5242 RD |
4264 | } |
4265 | if (_obj6) | |
4266 | { | |
4267 | _arg6 = wxString_in_helper(_obj6); | |
4268 | if (_arg6 == NULL) | |
4269 | return NULL; | |
09f3d4e6 RD |
4270 | } |
4271 | { | |
4268f798 | 4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4273 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 4274 | |
4268f798 | 4275 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4276 | if (PyErr_Occurred()) return NULL; |
4277 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
4278 | { |
4279 | if (_obj6) | |
4280 | delete _arg6; | |
4281 | } | |
09f3d4e6 RD |
4282 | return _resultobj; |
4283 | } | |
4284 | ||
8ab979d7 RD |
4285 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4286 | wxStaticText *src; | |
4287 | wxControl *dest; | |
4288 | src = (wxStaticText *) ptr; | |
4289 | dest = (wxControl *) src; | |
4290 | return (void *) dest; | |
4291 | } | |
4292 | ||
4293 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4294 | wxStaticText *src; | |
4295 | wxWindow *dest; | |
4296 | src = (wxStaticText *) ptr; | |
4297 | dest = (wxWindow *) src; | |
4298 | return (void *) dest; | |
4299 | } | |
4300 | ||
4301 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4302 | wxStaticText *src; | |
4303 | wxEvtHandler *dest; | |
4304 | src = (wxStaticText *) ptr; | |
4305 | dest = (wxEvtHandler *) src; | |
4306 | return (void *) dest; | |
4307 | } | |
4308 | ||
9416aa89 RD |
4309 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4310 | wxStaticText *src; | |
4311 | wxObject *dest; | |
4312 | src = (wxStaticText *) ptr; | |
4313 | dest = (wxObject *) src; | |
4314 | return (void *) dest; | |
4315 | } | |
4316 | ||
8ab979d7 | 4317 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 4318 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4319 | PyObject * _resultobj; |
4320 | wxStaticText * _result; | |
4321 | wxWindow * _arg0; | |
4322 | wxWindowID _arg1; | |
4323 | wxString * _arg2; | |
e508a2b6 RD |
4324 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4325 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 4326 | long _arg5 = (long ) 0; |
137b5242 | 4327 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
1d99702e | 4328 | PyObject * _argo0 = 0; |
8ab979d7 | 4329 | PyObject * _obj2 = 0; |
2f90df85 RD |
4330 | wxPoint temp; |
4331 | PyObject * _obj3 = 0; | |
4332 | wxSize temp0; | |
4333 | PyObject * _obj4 = 0; | |
137b5242 | 4334 | PyObject * _obj6 = 0; |
efc5f224 | 4335 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
8ab979d7 RD |
4336 | char _ptemp[128]; |
4337 | ||
4338 | self = self; | |
137b5242 | 4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
8ab979d7 | 4340 | return NULL; |
1d99702e RD |
4341 | if (_argo0) { |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
c8bc7bb8 RD |
4349 | _arg2 = wxString_in_helper(_obj2); |
4350 | if (_arg2 == NULL) | |
185d7c3e | 4351 | return NULL; |
8ab979d7 | 4352 | } |
2f90df85 RD |
4353 | if (_obj3) |
4354 | { | |
4355 | _arg3 = &temp; | |
4356 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4357 | return NULL; |
2f90df85 RD |
4358 | } |
4359 | if (_obj4) | |
4360 | { | |
4361 | _arg4 = &temp0; | |
4362 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4363 | return NULL; |
137b5242 RD |
4364 | } |
4365 | if (_obj6) | |
4366 | { | |
4367 | _arg6 = wxString_in_helper(_obj6); | |
4368 | if (_arg6 == NULL) | |
4369 | return NULL; | |
2f90df85 | 4370 | } |
cf694132 | 4371 | { |
4268f798 | 4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4373 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
cf694132 | 4374 | |
4268f798 | 4375 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4376 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4377 | } if (_result) { |
4378 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4379 | _resultobj = Py_BuildValue("s",_ptemp); | |
4380 | } else { | |
4381 | Py_INCREF(Py_None); | |
4382 | _resultobj = Py_None; | |
4383 | } | |
8ab979d7 RD |
4384 | { |
4385 | if (_obj2) | |
4386 | delete _arg2; | |
137b5242 RD |
4387 | } |
4388 | { | |
4389 | if (_obj6) | |
4390 | delete _arg6; | |
8ab979d7 RD |
4391 | } |
4392 | return _resultobj; | |
4393 | } | |
4394 | ||
09f3d4e6 RD |
4395 | #define new_wxPreStaticText() (new wxStaticText()) |
4396 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject * _resultobj; | |
4398 | wxStaticText * _result; | |
4399 | char *_kwnames[] = { NULL }; | |
4400 | char _ptemp[128]; | |
4401 | ||
4402 | self = self; | |
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4404 | return NULL; | |
4405 | { | |
4268f798 | 4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4407 | _result = (wxStaticText *)new_wxPreStaticText(); |
09f3d4e6 | 4408 | |
4268f798 | 4409 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4410 | if (PyErr_Occurred()) return NULL; |
4411 | } if (_result) { | |
4412 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4413 | _resultobj = Py_BuildValue("s",_ptemp); | |
4414 | } else { | |
4415 | Py_INCREF(Py_None); | |
4416 | _resultobj = Py_None; | |
4417 | } | |
4418 | return _resultobj; | |
4419 | } | |
4420 | ||
4421 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4422 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject * _resultobj; | |
4424 | bool _result; | |
4425 | wxStaticText * _arg0; | |
4426 | wxWindow * _arg1; | |
4427 | wxWindowID _arg2; | |
4428 | wxString * _arg3; | |
4429 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4430 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4431 | long _arg6 = (long ) 0; | |
137b5242 | 4432 | wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr; |
09f3d4e6 RD |
4433 | PyObject * _argo0 = 0; |
4434 | PyObject * _argo1 = 0; | |
4435 | PyObject * _obj3 = 0; | |
4436 | wxPoint temp; | |
4437 | PyObject * _obj4 = 0; | |
4438 | wxSize temp0; | |
4439 | PyObject * _obj5 = 0; | |
137b5242 | 4440 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
4441 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4442 | ||
4443 | self = self; | |
137b5242 | 4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
09f3d4e6 RD |
4445 | return NULL; |
4446 | if (_argo0) { | |
4447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4450 | return NULL; | |
4451 | } | |
4452 | } | |
4453 | if (_argo1) { | |
4454 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4455 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4457 | return NULL; | |
4458 | } | |
4459 | } | |
4460 | { | |
c8bc7bb8 RD |
4461 | _arg3 = wxString_in_helper(_obj3); |
4462 | if (_arg3 == NULL) | |
09f3d4e6 | 4463 | return NULL; |
09f3d4e6 RD |
4464 | } |
4465 | if (_obj4) | |
4466 | { | |
4467 | _arg4 = &temp; | |
4468 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4469 | return NULL; | |
4470 | } | |
4471 | if (_obj5) | |
4472 | { | |
4473 | _arg5 = &temp0; | |
4474 | if (! wxSize_helper(_obj5, &_arg5)) | |
4475 | return NULL; | |
137b5242 RD |
4476 | } |
4477 | if (_obj7) | |
4478 | { | |
4479 | _arg7 = wxString_in_helper(_obj7); | |
4480 | if (_arg7 == NULL) | |
4481 | return NULL; | |
09f3d4e6 RD |
4482 | } |
4483 | { | |
4268f798 | 4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4485 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
09f3d4e6 | 4486 | |
4268f798 | 4487 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4488 | if (PyErr_Occurred()) return NULL; |
4489 | } _resultobj = Py_BuildValue("i",_result); | |
4490 | { | |
4491 | if (_obj3) | |
4492 | delete _arg3; | |
137b5242 RD |
4493 | } |
4494 | { | |
4495 | if (_obj7) | |
4496 | delete _arg7; | |
09f3d4e6 RD |
4497 | } |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
8ab979d7 | 4501 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 4502 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4503 | PyObject * _resultobj; |
4504 | wxString * _result; | |
4505 | wxStaticText * _arg0; | |
1d99702e | 4506 | PyObject * _argo0 = 0; |
efc5f224 | 4507 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4508 | |
4509 | self = self; | |
efc5f224 | 4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 4511 | return NULL; |
1d99702e RD |
4512 | if (_argo0) { |
4513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4516 | return NULL; | |
4517 | } | |
4518 | } | |
8ab979d7 | 4519 | { |
4268f798 | 4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4521 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
cf694132 | 4522 | |
4268f798 | 4523 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4525 | }{ |
c8bc7bb8 RD |
4526 | #if wxUSE_UNICODE |
4527 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4528 | #else | |
eec92d76 | 4529 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4530 | #endif |
8ab979d7 RD |
4531 | } |
4532 | { | |
4533 | delete _result; | |
4534 | } | |
4535 | return _resultobj; | |
4536 | } | |
4537 | ||
4538 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
efc5f224 | 4539 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4540 | PyObject * _resultobj; |
4541 | wxStaticText * _arg0; | |
4542 | wxString * _arg1; | |
1d99702e | 4543 | PyObject * _argo0 = 0; |
8ab979d7 | 4544 | PyObject * _obj1 = 0; |
efc5f224 | 4545 | char *_kwnames[] = { "self","label", NULL }; |
8ab979d7 RD |
4546 | |
4547 | self = self; | |
efc5f224 | 4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4549 | return NULL; |
1d99702e RD |
4550 | if (_argo0) { |
4551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
8ab979d7 RD |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
4557 | { | |
c8bc7bb8 RD |
4558 | _arg1 = wxString_in_helper(_obj1); |
4559 | if (_arg1 == NULL) | |
185d7c3e | 4560 | return NULL; |
8ab979d7 | 4561 | } |
cf694132 | 4562 | { |
4268f798 | 4563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4564 | wxStaticText_SetLabel(_arg0,*_arg1); |
cf694132 | 4565 | |
4268f798 | 4566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4567 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4568 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4569 | _resultobj = Py_None; |
4570 | { | |
4571 | if (_obj1) | |
4572 | delete _arg1; | |
4573 | } | |
4574 | return _resultobj; | |
4575 | } | |
4576 | ||
900d9886 RD |
4577 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4578 | wxListBox *src; | |
4579 | wxControlWithItems *dest; | |
4580 | src = (wxListBox *) ptr; | |
4581 | dest = (wxControlWithItems *) src; | |
4582 | return (void *) dest; | |
4583 | } | |
4584 | ||
8ab979d7 RD |
4585 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4586 | wxListBox *src; | |
4587 | wxControl *dest; | |
4588 | src = (wxListBox *) ptr; | |
4589 | dest = (wxControl *) src; | |
4590 | return (void *) dest; | |
4591 | } | |
4592 | ||
4593 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4594 | wxListBox *src; | |
4595 | wxWindow *dest; | |
4596 | src = (wxListBox *) ptr; | |
4597 | dest = (wxWindow *) src; | |
4598 | return (void *) dest; | |
4599 | } | |
4600 | ||
4601 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4602 | wxListBox *src; | |
4603 | wxEvtHandler *dest; | |
4604 | src = (wxListBox *) ptr; | |
4605 | dest = (wxEvtHandler *) src; | |
4606 | return (void *) dest; | |
4607 | } | |
4608 | ||
9416aa89 RD |
4609 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4610 | wxListBox *src; | |
4611 | wxObject *dest; | |
4612 | src = (wxListBox *) ptr; | |
4613 | dest = (wxObject *) src; | |
4614 | return (void *) dest; | |
4615 | } | |
4616 | ||
09f3d4e6 RD |
4617 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4618 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4619 | PyObject * _resultobj; | |
4620 | wxListBox * _result; | |
4621 | wxWindow * _arg0; | |
4622 | wxWindowID _arg1; | |
4623 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4624 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4625 | int _arg4; | |
4626 | wxString * _arg5 = (wxString *) NULL; | |
4627 | long _arg6 = (long ) 0; | |
4628 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 4629 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
09f3d4e6 RD |
4630 | PyObject * _argo0 = 0; |
4631 | wxPoint temp; | |
4632 | PyObject * _obj2 = 0; | |
4633 | wxSize temp0; | |
4634 | PyObject * _obj3 = 0; | |
4635 | PyObject * _obj5 = 0; | |
4636 | PyObject * _argo7 = 0; | |
137b5242 | 4637 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
4638 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
4639 | char _ptemp[128]; | |
4640 | ||
4641 | self = self; | |
137b5242 | 4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
4643 | return NULL; |
4644 | if (_argo0) { | |
4645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4648 | return NULL; | |
4649 | } | |
4650 | } | |
4651 | if (_obj2) | |
4652 | { | |
4653 | _arg2 = &temp; | |
4654 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4655 | return NULL; | |
4656 | } | |
4657 | if (_obj3) | |
4658 | { | |
4659 | _arg3 = &temp0; | |
4660 | if (! wxSize_helper(_obj3, &_arg3)) | |
4661 | return NULL; | |
4662 | } | |
4663 | if (_obj5) | |
4664 | { | |
4665 | _arg5 = wxString_LIST_helper(_obj5); | |
4666 | if (_arg5 == NULL) { | |
4667 | return NULL; | |
4668 | } | |
4669 | } | |
4670 | if (_argo7) { | |
4671 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4672 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4674 | return NULL; | |
4675 | } | |
4676 | } | |
137b5242 RD |
4677 | if (_obj8) |
4678 | { | |
4679 | _arg8 = wxString_in_helper(_obj8); | |
4680 | if (_arg8 == NULL) | |
4681 | return NULL; | |
4682 | } | |
09f3d4e6 RD |
4683 | { |
4684 | if (_obj5) { | |
4685 | _arg4 = PyList_Size(_obj5); | |
4686 | } | |
4687 | else { | |
4688 | _arg4 = 0; | |
4689 | } | |
4690 | } | |
4691 | { | |
4268f798 | 4692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4693 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 4694 | |
4268f798 | 4695 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4696 | if (PyErr_Occurred()) return NULL; |
4697 | } if (_result) { | |
4698 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4699 | _resultobj = Py_BuildValue("s",_ptemp); | |
4700 | } else { | |
4701 | Py_INCREF(Py_None); | |
4702 | _resultobj = Py_None; | |
4703 | } | |
4704 | { | |
4705 | delete [] _arg5; | |
137b5242 RD |
4706 | } |
4707 | { | |
4708 | if (_obj8) | |
4709 | delete _arg8; | |
09f3d4e6 RD |
4710 | } |
4711 | return _resultobj; | |
4712 | } | |
4713 | ||
4714 | #define new_wxPreListBox() (new wxListBox()) | |
4715 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4716 | PyObject * _resultobj; | |
4717 | wxListBox * _result; | |
4718 | char *_kwnames[] = { NULL }; | |
4719 | char _ptemp[128]; | |
4720 | ||
4721 | self = self; | |
4722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4723 | return NULL; | |
4724 | { | |
4268f798 | 4725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4726 | _result = (wxListBox *)new_wxPreListBox(); |
09f3d4e6 | 4727 | |
4268f798 | 4728 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
4729 | if (PyErr_Occurred()) return NULL; |
4730 | } if (_result) { | |
4731 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4732 | _resultobj = Py_BuildValue("s",_ptemp); | |
4733 | } else { | |
4734 | Py_INCREF(Py_None); | |
4735 | _resultobj = Py_None; | |
4736 | } | |
4737 | return _resultobj; | |
4738 | } | |
4739 | ||
4740 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4741 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4742 | PyObject * _resultobj; |
09f3d4e6 RD |
4743 | bool _result; |
4744 | wxListBox * _arg0; | |
4745 | wxWindow * _arg1; | |
4746 | wxWindowID _arg2; | |
4747 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4748 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4749 | int _arg5; | |
4750 | wxString * _arg6 = (wxString *) NULL; | |
4751 | long _arg7 = (long ) 0; | |
4752 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 4753 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
1d99702e | 4754 | PyObject * _argo0 = 0; |
09f3d4e6 | 4755 | PyObject * _argo1 = 0; |
2f90df85 | 4756 | wxPoint temp; |
2f90df85 | 4757 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
4758 | wxSize temp0; |
4759 | PyObject * _obj4 = 0; | |
4760 | PyObject * _obj6 = 0; | |
4761 | PyObject * _argo8 = 0; | |
137b5242 | 4762 | PyObject * _obj9 = 0; |
09f3d4e6 | 4763 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
8ab979d7 RD |
4764 | |
4765 | self = self; | |
137b5242 | 4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
8ab979d7 | 4767 | return NULL; |
1d99702e RD |
4768 | if (_argo0) { |
4769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
4770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
4771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
8ab979d7 RD |
4772 | return NULL; |
4773 | } | |
4774 | } | |
09f3d4e6 RD |
4775 | if (_argo1) { |
4776 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4777 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4779 | return NULL; | |
4780 | } | |
4781 | } | |
4782 | if (_obj3) | |
2f90df85 | 4783 | { |
09f3d4e6 RD |
4784 | _arg3 = &temp; |
4785 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 4786 | return NULL; |
2f90df85 | 4787 | } |
09f3d4e6 | 4788 | if (_obj4) |
2f90df85 | 4789 | { |
09f3d4e6 RD |
4790 | _arg4 = &temp0; |
4791 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 4792 | return NULL; |
2f90df85 | 4793 | } |
09f3d4e6 | 4794 | if (_obj6) |
8ab979d7 | 4795 | { |
09f3d4e6 RD |
4796 | _arg6 = wxString_LIST_helper(_obj6); |
4797 | if (_arg6 == NULL) { | |
8ab979d7 RD |
4798 | return NULL; |
4799 | } | |
4800 | } | |
09f3d4e6 RD |
4801 | if (_argo8) { |
4802 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4803 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
4805 | return NULL; |
4806 | } | |
4807 | } | |
137b5242 RD |
4808 | if (_obj9) |
4809 | { | |
4810 | _arg9 = wxString_in_helper(_obj9); | |
4811 | if (_arg9 == NULL) | |
4812 | return NULL; | |
4813 | } | |
8ab979d7 | 4814 | { |
09f3d4e6 RD |
4815 | if (_obj6) { |
4816 | _arg5 = PyList_Size(_obj6); | |
cf694132 RD |
4817 | } |
4818 | else { | |
09f3d4e6 | 4819 | _arg5 = 0; |
cf694132 | 4820 | } |
8ab979d7 | 4821 | } |
cf694132 | 4822 | { |
4268f798 | 4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4824 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
cf694132 | 4825 | |
4268f798 | 4826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4827 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 4828 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 4829 | { |
09f3d4e6 | 4830 | delete [] _arg6; |
137b5242 RD |
4831 | } |
4832 | { | |
4833 | if (_obj9) | |
4834 | delete _arg9; | |
8ab979d7 RD |
4835 | } |
4836 | return _resultobj; | |
4837 | } | |
4838 | ||
8ab979d7 | 4839 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
efc5f224 | 4840 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4841 | PyObject * _resultobj; |
4842 | wxListBox * _arg0; | |
1d99702e | 4843 | PyObject * _argo0 = 0; |
efc5f224 | 4844 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4845 | |
4846 | self = self; | |
efc5f224 | 4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
8ab979d7 | 4848 | return NULL; |
1d99702e RD |
4849 | if (_argo0) { |
4850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
4853 | return NULL; | |
4854 | } | |
4855 | } | |
cf694132 | 4856 | { |
4268f798 | 4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4858 | wxListBox_Clear(_arg0); |
cf694132 | 4859 | |
4268f798 | 4860 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4861 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4862 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4863 | _resultobj = Py_None; |
4864 | return _resultobj; | |
4865 | } | |
4866 | ||
8ab979d7 | 4867 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
efc5f224 | 4868 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4869 | PyObject * _resultobj; |
4870 | wxListBox * _arg0; | |
4871 | int _arg1; | |
1d99702e | 4872 | PyObject * _argo0 = 0; |
efc5f224 | 4873 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
4874 | |
4875 | self = self; | |
efc5f224 | 4876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4877 | return NULL; |
1d99702e RD |
4878 | if (_argo0) { |
4879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
4881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
4882 | return NULL; | |
4883 | } | |
4884 | } | |
cf694132 | 4885 | { |
4268f798 | 4886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4887 | wxListBox_Deselect(_arg0,_arg1); |
cf694132 | 4888 | |
4268f798 | 4889 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4890 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4891 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4892 | _resultobj = Py_None; |
4893 | return _resultobj; | |
4894 | } | |
4895 | ||
cf694132 RD |
4896 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
4897 | wxArrayInt lst; | |
4898 | self->GetSelections(lst); | |
4899 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 4900 | for(size_t i=0; i<lst.GetCount(); i++) { |
cf694132 RD |
4901 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
4902 | } | |
4903 | return tup; | |
4904 | } | |
efc5f224 | 4905 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4906 | PyObject * _resultobj; |
4907 | PyObject * _result; | |
4908 | wxListBox * _arg0; | |
1d99702e | 4909 | PyObject * _argo0 = 0; |
efc5f224 | 4910 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4911 | |
4912 | self = self; | |
efc5f224 | 4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
cf694132 | 4914 | return NULL; |
1d99702e RD |
4915 | if (_argo0) { |
4916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
cf694132 RD |
4918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
4919 | return NULL; | |
4920 | } | |
4921 | } | |
4922 | { | |
4268f798 | 4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4924 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
cf694132 | 4925 | |
4268f798 | 4926 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4927 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
4928 | }{ |
4929 | _resultobj = _result; | |
4930 | } | |
8ab979d7 RD |
4931 | return _resultobj; |
4932 | } | |
4933 | ||
2f90df85 RD |
4934 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
4935 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject * _resultobj; | |
4937 | wxListBox * _arg0; | |
4938 | int _arg1; | |
4939 | wxString * _arg2; | |
4940 | int _arg3; | |
4941 | PyObject * _argo0 = 0; | |
4942 | PyObject * _obj2 = 0; | |
eec92d76 | 4943 | char *_kwnames[] = { "self","choices","pos", NULL }; |
2f90df85 RD |
4944 | |
4945 | self = self; | |
4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4947 | return NULL; | |
4948 | if (_argo0) { | |
4949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4952 | return NULL; | |
4953 | } | |
4954 | } | |
4955 | { | |
4956 | _arg2 = wxString_LIST_helper(_obj2); | |
4957 | if (_arg2 == NULL) { | |
4958 | return NULL; | |
4959 | } | |
4960 | } | |
4961 | { | |
4962 | if (_obj2) { | |
4963 | _arg1 = PyList_Size(_obj2); | |
4964 | } | |
4965 | else { | |
4966 | _arg1 = 0; | |
4967 | } | |
4968 | } | |
4969 | { | |
4268f798 | 4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4971 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
2f90df85 | 4972 | |
4268f798 | 4973 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4974 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4975 | } Py_INCREF(Py_None); |
4976 | _resultobj = Py_None; | |
4977 | { | |
4978 | delete [] _arg2; | |
4979 | } | |
4980 | return _resultobj; | |
4981 | } | |
4982 | ||
0adbc166 RD |
4983 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
4984 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject * _resultobj; | |
4986 | bool _result; | |
4987 | wxListBox * _arg0; | |
4988 | int _arg1; | |
4989 | PyObject * _argo0 = 0; | |
4990 | char *_kwnames[] = { "self","n", NULL }; | |
4991 | ||
4992 | self = self; | |
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4994 | return NULL; | |
4995 | if (_argo0) { | |
4996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4999 | return NULL; | |
5000 | } | |
5001 | } | |
5002 | { | |
4268f798 | 5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5004 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
cf694132 | 5005 | |
4268f798 | 5006 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5007 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5008 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5009 | return _resultobj; |
5010 | } | |
5011 | ||
5012 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
efc5f224 | 5013 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5014 | PyObject * _resultobj; |
5015 | bool _result; | |
5016 | wxListBox * _arg0; | |
5017 | int _arg1; | |
1d99702e | 5018 | PyObject * _argo0 = 0; |
efc5f224 | 5019 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
5020 | |
5021 | self = self; | |
efc5f224 | 5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5023 | return NULL; |
1d99702e RD |
5024 | if (_argo0) { |
5025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
5028 | return NULL; | |
5029 | } | |
5030 | } | |
cf694132 | 5031 | { |
4268f798 | 5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5033 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
cf694132 | 5034 | |
4268f798 | 5035 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5037 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5038 | return _resultobj; |
5039 | } | |
5040 | ||
5041 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
efc5f224 | 5042 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5043 | PyObject * _resultobj; |
5044 | wxListBox * _arg0; | |
5045 | int _arg1; | |
5046 | wxString * _arg2; | |
1d99702e | 5047 | PyObject * _argo0 = 0; |
8ab979d7 | 5048 | PyObject * _obj2 = 0; |
eec92d76 | 5049 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
5050 | |
5051 | self = self; | |
efc5f224 | 5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 5053 | return NULL; |
1d99702e RD |
5054 | if (_argo0) { |
5055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
5058 | return NULL; | |
5059 | } | |
5060 | } | |
5061 | if (_obj2) | |
5062 | { | |
5063 | _arg2 = wxString_LIST_helper(_obj2); | |
5064 | if (_arg2 == NULL) { | |
5065 | return NULL; | |
5066 | } | |
5067 | } | |
5068 | { | |
cf694132 RD |
5069 | if (_obj2) { |
5070 | _arg1 = PyList_Size(_obj2); | |
5071 | } | |
5072 | else { | |
5073 | _arg1 = 0; | |
5074 | } | |
8ab979d7 | 5075 | } |
cf694132 | 5076 | { |
4268f798 | 5077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5078 | wxListBox_Set(_arg0,_arg1,_arg2); |
cf694132 | 5079 | |
4268f798 | 5080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5082 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5083 | _resultobj = Py_None; |
5084 | { | |
5085 | delete [] _arg2; | |
5086 | } | |
5087 | return _resultobj; | |
5088 | } | |
5089 | ||
5090 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 5091 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5092 | PyObject * _resultobj; |
5093 | wxListBox * _arg0; | |
5094 | int _arg1; | |
1d99702e | 5095 | PyObject * _argo0 = 0; |
efc5f224 | 5096 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
5097 | |
5098 | self = self; | |
efc5f224 | 5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5100 | return NULL; |
1d99702e RD |
5101 | if (_argo0) { |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
5105 | return NULL; | |
5106 | } | |
5107 | } | |
cf694132 | 5108 | { |
4268f798 | 5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5110 | wxListBox_SetFirstItem(_arg0,_arg1); |
cf694132 | 5111 | |
4268f798 | 5112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5114 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5115 | _resultobj = Py_None; |
5116 | return _resultobj; | |
5117 | } | |
5118 | ||
5119 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
efc5f224 | 5120 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5121 | PyObject * _resultobj; |
5122 | wxListBox * _arg0; | |
5123 | wxString * _arg1; | |
1d99702e | 5124 | PyObject * _argo0 = 0; |
8ab979d7 | 5125 | PyObject * _obj1 = 0; |
efc5f224 | 5126 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
5127 | |
5128 | self = self; | |
efc5f224 | 5129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5130 | return NULL; |
1d99702e RD |
5131 | if (_argo0) { |
5132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
5135 | return NULL; | |
5136 | } | |
5137 | } | |
5138 | { | |
c8bc7bb8 RD |
5139 | _arg1 = wxString_in_helper(_obj1); |
5140 | if (_arg1 == NULL) | |
185d7c3e | 5141 | return NULL; |
8ab979d7 | 5142 | } |
cf694132 | 5143 | { |
4268f798 | 5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5145 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
cf694132 | 5146 | |
4268f798 | 5147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5148 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5149 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5150 | _resultobj = Py_None; |
5151 | { | |
5152 | if (_obj1) | |
5153 | delete _arg1; | |
5154 | } | |
5155 | return _resultobj; | |
5156 | } | |
5157 | ||
5158 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5159 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5160 | PyObject * _resultobj; |
5161 | wxListBox * _arg0; | |
5162 | int _arg1; | |
1d99702e RD |
5163 | bool _arg2 = (bool ) TRUE; |
5164 | PyObject * _argo0 = 0; | |
5165 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5166 | char *_kwnames[] = { "self","n","select", NULL }; |
8ab979d7 RD |
5167 | |
5168 | self = self; | |
efc5f224 | 5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 5170 | return NULL; |
1d99702e RD |
5171 | if (_argo0) { |
5172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5175 | return NULL; | |
5176 | } | |
5177 | } | |
5178 | _arg2 = (bool ) tempbool2; | |
cf694132 | 5179 | { |
4268f798 | 5180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5181 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
cf694132 | 5182 | |
4268f798 | 5183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5185 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5186 | _resultobj = Py_None; |
5187 | return _resultobj; | |
5188 | } | |
5189 | ||
5190 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
efc5f224 | 5191 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5192 | PyObject * _resultobj; |
5193 | wxListBox * _arg0; | |
5194 | int _arg1; | |
5195 | wxString * _arg2; | |
1d99702e | 5196 | PyObject * _argo0 = 0; |
8ab979d7 | 5197 | PyObject * _obj2 = 0; |
efc5f224 | 5198 | char *_kwnames[] = { "self","n","string", NULL }; |
8ab979d7 RD |
5199 | |
5200 | self = self; | |
efc5f224 | 5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 5202 | return NULL; |
1d99702e RD |
5203 | if (_argo0) { |
5204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5207 | return NULL; | |
5208 | } | |
5209 | } | |
5210 | { | |
c8bc7bb8 RD |
5211 | _arg2 = wxString_in_helper(_obj2); |
5212 | if (_arg2 == NULL) | |
185d7c3e | 5213 | return NULL; |
8ab979d7 | 5214 | } |
cf694132 | 5215 | { |
4268f798 | 5216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5217 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
cf694132 | 5218 | |
4268f798 | 5219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5221 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5222 | _resultobj = Py_None; |
5223 | { | |
5224 | if (_obj2) | |
5225 | delete _arg2; | |
5226 | } | |
5227 | return _resultobj; | |
5228 | } | |
5229 | ||
5230 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 5231 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5232 | PyObject * _resultobj; |
5233 | wxListBox * _arg0; | |
5234 | wxString * _arg1; | |
1d99702e RD |
5235 | bool _arg2 = (bool ) TRUE; |
5236 | PyObject * _argo0 = 0; | |
8ab979d7 | 5237 | PyObject * _obj1 = 0; |
1d99702e | 5238 | int tempbool2 = (int) TRUE; |
efc5f224 | 5239 | char *_kwnames[] = { "self","string","select", NULL }; |
8ab979d7 RD |
5240 | |
5241 | self = self; | |
efc5f224 | 5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 5243 | return NULL; |
1d99702e RD |
5244 | if (_argo0) { |
5245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
8ab979d7 RD |
5247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5248 | return NULL; | |
5249 | } | |
5250 | } | |
5251 | { | |
c8bc7bb8 RD |
5252 | _arg1 = wxString_in_helper(_obj1); |
5253 | if (_arg1 == NULL) | |
8ab979d7 | 5254 | return NULL; |
8ab979d7 RD |
5255 | } |
5256 | _arg2 = (bool ) tempbool2; | |
cf694132 | 5257 | { |
4268f798 | 5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5259 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
cf694132 | 5260 | |
4268f798 | 5261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5264 | _resultobj = Py_None; |
5265 | { | |
5266 | if (_obj1) | |
5267 | delete _arg1; | |
5268 | } | |
5269 | return _resultobj; | |
5270 | } | |
5271 | ||
9c039d08 RD |
5272 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5273 | wxCheckListBox *src; | |
5274 | wxListBox *dest; | |
5275 | src = (wxCheckListBox *) ptr; | |
5276 | dest = (wxListBox *) src; | |
5277 | return (void *) dest; | |
5278 | } | |
5279 | ||
900d9886 RD |
5280 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5281 | wxCheckListBox *src; | |
5282 | wxControlWithItems *dest; | |
5283 | src = (wxCheckListBox *) ptr; | |
5284 | dest = (wxControlWithItems *) src; | |
5285 | return (void *) dest; | |
5286 | } | |
5287 | ||
9c039d08 RD |
5288 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5289 | wxCheckListBox *src; | |
5290 | wxControl *dest; | |
5291 | src = (wxCheckListBox *) ptr; | |
5292 | dest = (wxControl *) src; | |
5293 | return (void *) dest; | |
5294 | } | |
5295 | ||
5296 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5297 | wxCheckListBox *src; | |
5298 | wxWindow *dest; | |
5299 | src = (wxCheckListBox *) ptr; | |
5300 | dest = (wxWindow *) src; | |
5301 | return (void *) dest; | |
5302 | } | |
5303 | ||
5304 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5305 | wxCheckListBox *src; | |
5306 | wxEvtHandler *dest; | |
5307 | src = (wxCheckListBox *) ptr; | |
5308 | dest = (wxEvtHandler *) src; | |
5309 | return (void *) dest; | |
5310 | } | |
5311 | ||
9416aa89 RD |
5312 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5313 | wxCheckListBox *src; | |
5314 | wxObject *dest; | |
5315 | src = (wxCheckListBox *) ptr; | |
5316 | dest = (wxObject *) src; | |
5317 | return (void *) dest; | |
5318 | } | |
5319 | ||
9c039d08 | 5320 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
efc5f224 | 5321 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5322 | PyObject * _resultobj; |
5323 | wxCheckListBox * _result; | |
5324 | wxWindow * _arg0; | |
5325 | wxWindowID _arg1; | |
e508a2b6 RD |
5326 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5327 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
5328 | int _arg4 = (int ) 0; |
5329 | wxString * _arg5 = (wxString *) NULL; | |
5330 | long _arg6 = (long ) 0; | |
e508a2b6 | 5331 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 5332 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
1d99702e | 5333 | PyObject * _argo0 = 0; |
2f90df85 RD |
5334 | wxPoint temp; |
5335 | PyObject * _obj2 = 0; | |
5336 | wxSize temp0; | |
5337 | PyObject * _obj3 = 0; | |
9c039d08 | 5338 | PyObject * _obj5 = 0; |
1d99702e | 5339 | PyObject * _argo7 = 0; |
137b5242 | 5340 | PyObject * _obj8 = 0; |
eec92d76 | 5341 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
9c039d08 RD |
5342 | char _ptemp[128]; |
5343 | ||
5344 | self = self; | |
137b5242 | 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
9c039d08 | 5346 | return NULL; |
1d99702e RD |
5347 | if (_argo0) { |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5351 | return NULL; | |
5352 | } | |
5353 | } | |
2f90df85 RD |
5354 | if (_obj2) |
5355 | { | |
5356 | _arg2 = &temp; | |
5357 | if (! wxPoint_helper(_obj2, &_arg2)) | |
9c039d08 | 5358 | return NULL; |
2f90df85 RD |
5359 | } |
5360 | if (_obj3) | |
5361 | { | |
5362 | _arg3 = &temp0; | |
5363 | if (! wxSize_helper(_obj3, &_arg3)) | |
9c039d08 | 5364 | return NULL; |
2f90df85 | 5365 | } |
9c039d08 RD |
5366 | if (_obj5) |
5367 | { | |
5368 | _arg5 = wxString_LIST_helper(_obj5); | |
5369 | if (_arg5 == NULL) { | |
5370 | return NULL; | |
5371 | } | |
5372 | } | |
1d99702e RD |
5373 | if (_argo7) { |
5374 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5375 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9c039d08 RD |
5376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5377 | return NULL; | |
5378 | } | |
5379 | } | |
137b5242 RD |
5380 | if (_obj8) |
5381 | { | |
5382 | _arg8 = wxString_in_helper(_obj8); | |
5383 | if (_arg8 == NULL) | |
5384 | return NULL; | |
5385 | } | |
9c039d08 | 5386 | { |
cf694132 RD |
5387 | if (_obj5) { |
5388 | _arg4 = PyList_Size(_obj5); | |
5389 | } | |
5390 | else { | |
5391 | _arg4 = 0; | |
5392 | } | |
9c039d08 | 5393 | } |
cf694132 | 5394 | { |
4268f798 | 5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5396 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
cf694132 | 5397 | |
4268f798 | 5398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5399 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5400 | } if (_result) { |
5401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5402 | _resultobj = Py_BuildValue("s",_ptemp); | |
5403 | } else { | |
5404 | Py_INCREF(Py_None); | |
5405 | _resultobj = Py_None; | |
5406 | } | |
9c039d08 RD |
5407 | { |
5408 | delete [] _arg5; | |
137b5242 RD |
5409 | } |
5410 | { | |
5411 | if (_obj8) | |
5412 | delete _arg8; | |
9c039d08 RD |
5413 | } |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
09f3d4e6 RD |
5417 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5418 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject * _resultobj; | |
5420 | wxCheckListBox * _result; | |
5421 | char *_kwnames[] = { NULL }; | |
5422 | char _ptemp[128]; | |
5423 | ||
5424 | self = self; | |
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5426 | return NULL; | |
5427 | { | |
4268f798 | 5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5429 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
09f3d4e6 | 5430 | |
4268f798 | 5431 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5432 | if (PyErr_Occurred()) return NULL; |
5433 | } if (_result) { | |
5434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5435 | _resultobj = Py_BuildValue("s",_ptemp); | |
5436 | } else { | |
5437 | Py_INCREF(Py_None); | |
5438 | _resultobj = Py_None; | |
5439 | } | |
5440 | return _resultobj; | |
5441 | } | |
5442 | ||
5443 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5444 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject * _resultobj; | |
5446 | bool _result; | |
5447 | wxCheckListBox * _arg0; | |
5448 | wxWindow * _arg1; | |
5449 | wxWindowID _arg2; | |
5450 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5451 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5452 | int _arg5 = (int ) 0; | |
5453 | wxString * _arg6 = (wxString *) NULL; | |
5454 | long _arg7 = (long ) 0; | |
5455 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5456 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
09f3d4e6 RD |
5457 | PyObject * _argo0 = 0; |
5458 | PyObject * _argo1 = 0; | |
5459 | wxPoint temp; | |
5460 | PyObject * _obj3 = 0; | |
5461 | wxSize temp0; | |
5462 | PyObject * _obj4 = 0; | |
5463 | PyObject * _obj6 = 0; | |
5464 | PyObject * _argo8 = 0; | |
137b5242 | 5465 | PyObject * _obj9 = 0; |
09f3d4e6 RD |
5466 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
5467 | ||
5468 | self = self; | |
137b5242 | 5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
09f3d4e6 RD |
5470 | return NULL; |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | if (_argo1) { | |
5479 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
5485 | if (_obj3) | |
5486 | { | |
5487 | _arg3 = &temp; | |
5488 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5489 | return NULL; | |
5490 | } | |
5491 | if (_obj4) | |
5492 | { | |
5493 | _arg4 = &temp0; | |
5494 | if (! wxSize_helper(_obj4, &_arg4)) | |
5495 | return NULL; | |
5496 | } | |
5497 | if (_obj6) | |
5498 | { | |
5499 | _arg6 = wxString_LIST_helper(_obj6); | |
5500 | if (_arg6 == NULL) { | |
5501 | return NULL; | |
5502 | } | |
5503 | } | |
5504 | if (_argo8) { | |
5505 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5506 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5508 | return NULL; | |
5509 | } | |
5510 | } | |
137b5242 RD |
5511 | if (_obj9) |
5512 | { | |
5513 | _arg9 = wxString_in_helper(_obj9); | |
5514 | if (_arg9 == NULL) | |
5515 | return NULL; | |
5516 | } | |
09f3d4e6 RD |
5517 | { |
5518 | if (_obj6) { | |
5519 | _arg5 = PyList_Size(_obj6); | |
5520 | } | |
5521 | else { | |
5522 | _arg5 = 0; | |
5523 | } | |
5524 | } | |
5525 | { | |
4268f798 | 5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5527 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
09f3d4e6 | 5528 | |
4268f798 | 5529 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5530 | if (PyErr_Occurred()) return NULL; |
5531 | } _resultobj = Py_BuildValue("i",_result); | |
5532 | { | |
5533 | delete [] _arg6; | |
137b5242 RD |
5534 | } |
5535 | { | |
5536 | if (_obj9) | |
5537 | delete _arg9; | |
09f3d4e6 RD |
5538 | } |
5539 | return _resultobj; | |
5540 | } | |
5541 | ||
9c039d08 | 5542 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
efc5f224 | 5543 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5544 | PyObject * _resultobj; |
5545 | bool _result; | |
5546 | wxCheckListBox * _arg0; | |
5547 | int _arg1; | |
1d99702e | 5548 | PyObject * _argo0 = 0; |
efc5f224 | 5549 | char *_kwnames[] = { "self","uiIndex", NULL }; |
9c039d08 RD |
5550 | |
5551 | self = self; | |
efc5f224 | 5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 5553 | return NULL; |
1d99702e RD |
5554 | if (_argo0) { |
5555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5558 | return NULL; | |
5559 | } | |
5560 | } | |
cf694132 | 5561 | { |
4268f798 | 5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5563 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
cf694132 | 5564 | |
4268f798 | 5565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5567 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5568 | return _resultobj; |
5569 | } | |
5570 | ||
5571 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 5572 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5573 | PyObject * _resultobj; |
5574 | wxCheckListBox * _arg0; | |
5575 | int _arg1; | |
694759cf | 5576 | int _arg2 = (int ) TRUE; |
1d99702e | 5577 | PyObject * _argo0 = 0; |
efc5f224 | 5578 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
9c039d08 RD |
5579 | |
5580 | self = self; | |
694759cf | 5581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 5582 | return NULL; |
1d99702e RD |
5583 | if (_argo0) { |
5584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5587 | return NULL; | |
5588 | } | |
5589 | } | |
cf694132 | 5590 | { |
4268f798 | 5591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5592 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
cf694132 | 5593 | |
4268f798 | 5594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5596 | } Py_INCREF(Py_None); |
9c039d08 RD |
5597 | _resultobj = Py_None; |
5598 | return _resultobj; | |
5599 | } | |
5600 | ||
694759cf RD |
5601 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5602 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject * _resultobj; | |
5604 | wxCheckListBox * _arg0; | |
5605 | int _arg1; | |
5606 | wxString * _arg2; | |
5607 | int _arg3; | |
5608 | PyObject * _argo0 = 0; | |
5609 | PyObject * _obj2 = 0; | |
eec92d76 | 5610 | char *_kwnames[] = { "self","choices","pos", NULL }; |
694759cf RD |
5611 | |
5612 | self = self; | |
5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5614 | return NULL; | |
5615 | if (_argo0) { | |
5616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5619 | return NULL; | |
5620 | } | |
5621 | } | |
5622 | { | |
5623 | _arg2 = wxString_LIST_helper(_obj2); | |
5624 | if (_arg2 == NULL) { | |
5625 | return NULL; | |
5626 | } | |
5627 | } | |
5628 | { | |
5629 | if (_obj2) { | |
5630 | _arg1 = PyList_Size(_obj2); | |
5631 | } | |
5632 | else { | |
5633 | _arg1 = 0; | |
5634 | } | |
5635 | } | |
5636 | { | |
4268f798 | 5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5638 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
694759cf | 5639 | |
4268f798 | 5640 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5641 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5642 | } Py_INCREF(Py_None); |
5643 | _resultobj = Py_None; | |
5644 | { | |
5645 | delete [] _arg2; | |
5646 | } | |
5647 | return _resultobj; | |
5648 | } | |
5649 | ||
9c039d08 | 5650 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
efc5f224 | 5651 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
5652 | PyObject * _resultobj; |
5653 | int _result; | |
5654 | wxCheckListBox * _arg0; | |
1d99702e | 5655 | PyObject * _argo0 = 0; |
efc5f224 | 5656 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
5657 | |
5658 | self = self; | |
efc5f224 | 5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
9c039d08 | 5660 | return NULL; |
1d99702e RD |
5661 | if (_argo0) { |
5662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
9c039d08 RD |
5664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5665 | return NULL; | |
5666 | } | |
5667 | } | |
cf694132 | 5668 | { |
4268f798 | 5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5670 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
cf694132 | 5671 | |
4268f798 | 5672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5674 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
5675 | return _resultobj; |
5676 | } | |
5677 | ||
5d5d57f3 RD |
5678 | #define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
5679 | static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5680 | PyObject * _resultobj; | |
5681 | int _result; | |
5682 | wxCheckListBox * _arg0; | |
5683 | wxPoint * _arg1; | |
5684 | PyObject * _argo0 = 0; | |
5685 | wxPoint temp; | |
5686 | PyObject * _obj1 = 0; | |
5687 | char *_kwnames[] = { "self","pt", NULL }; | |
5688 | ||
5689 | self = self; | |
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1)) | |
5691 | return NULL; | |
5692 | if (_argo0) { | |
5693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p."); | |
5696 | return NULL; | |
5697 | } | |
5698 | } | |
5699 | { | |
5700 | _arg1 = &temp; | |
5701 | if (! wxPoint_helper(_obj1, &_arg1)) | |
5702 | return NULL; | |
5703 | } | |
5704 | { | |
5705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5706 | _result = (int )wxCheckListBox_HitTest(_arg0,*_arg1); | |
5707 | ||
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) return NULL; | |
5710 | } _resultobj = Py_BuildValue("i",_result); | |
5711 | return _resultobj; | |
5712 | } | |
5713 | ||
5714 | #define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
5715 | static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5716 | PyObject * _resultobj; | |
5717 | int _result; | |
5718 | wxCheckListBox * _arg0; | |
5719 | wxCoord _arg1; | |
5720 | wxCoord _arg2; | |
5721 | PyObject * _argo0 = 0; | |
5722 | char *_kwnames[] = { "self","x","y", NULL }; | |
5723 | ||
5724 | self = self; | |
5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5726 | return NULL; | |
5727 | if (_argo0) { | |
5728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p."); | |
5731 | return NULL; | |
5732 | } | |
5733 | } | |
5734 | { | |
5735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5736 | _result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2); | |
5737 | ||
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) return NULL; | |
5740 | } _resultobj = Py_BuildValue("i",_result); | |
5741 | return _resultobj; | |
5742 | } | |
5743 | ||
d56cebe7 RD |
5744 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5745 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject * _resultobj; | |
5747 | wxTextAttr * _result; | |
5748 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5749 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5750 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5751 | wxColour temp; | |
5752 | PyObject * _obj0 = 0; | |
5753 | wxColour temp0; | |
5754 | PyObject * _obj1 = 0; | |
5755 | PyObject * _argo2 = 0; | |
5756 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5757 | char _ptemp[128]; | |
5758 | ||
5759 | self = self; | |
5760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5761 | return NULL; | |
5762 | if (_obj0) | |
5763 | { | |
5764 | _arg0 = &temp; | |
5765 | if (! wxColour_helper(_obj0, &_arg0)) | |
5766 | return NULL; | |
5767 | } | |
5768 | if (_obj1) | |
5769 | { | |
5770 | _arg1 = &temp0; | |
5771 | if (! wxColour_helper(_obj1, &_arg1)) | |
5772 | return NULL; | |
5773 | } | |
5774 | if (_argo2) { | |
5775 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
4268f798 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
d56cebe7 | 5784 | |
4268f798 | 5785 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } if (_result) { | |
5788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5789 | _resultobj = Py_BuildValue("s",_ptemp); | |
5790 | } else { | |
5791 | Py_INCREF(Py_None); | |
5792 | _resultobj = Py_None; | |
5793 | } | |
5794 | return _resultobj; | |
5795 | } | |
5796 | ||
5797 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5798 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5799 | PyObject * _resultobj; | |
5800 | wxTextAttr * _arg0; | |
5801 | PyObject * _argo0 = 0; | |
5802 | char *_kwnames[] = { "self", NULL }; | |
5803 | ||
5804 | self = self; | |
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5806 | return NULL; | |
5807 | if (_argo0) { | |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5811 | return NULL; | |
5812 | } | |
5813 | } | |
5814 | { | |
4268f798 | 5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5816 | delete_wxTextAttr(_arg0); |
d56cebe7 | 5817 | |
4268f798 | 5818 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5819 | if (PyErr_Occurred()) return NULL; |
5820 | } Py_INCREF(Py_None); | |
5821 | _resultobj = Py_None; | |
5822 | return _resultobj; | |
5823 | } | |
5824 | ||
5825 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5826 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject * _resultobj; | |
5828 | wxTextAttr * _arg0; | |
5829 | wxColour * _arg1; | |
5830 | PyObject * _argo0 = 0; | |
5831 | wxColour temp; | |
5832 | PyObject * _obj1 = 0; | |
5833 | char *_kwnames[] = { "self","colText", NULL }; | |
5834 | ||
5835 | self = self; | |
5836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5837 | return NULL; | |
5838 | if (_argo0) { | |
5839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5842 | return NULL; | |
5843 | } | |
5844 | } | |
5845 | { | |
5846 | _arg1 = &temp; | |
5847 | if (! wxColour_helper(_obj1, &_arg1)) | |
5848 | return NULL; | |
5849 | } | |
5850 | { | |
4268f798 | 5851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5852 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
d56cebe7 | 5853 | |
4268f798 | 5854 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5855 | if (PyErr_Occurred()) return NULL; |
5856 | } Py_INCREF(Py_None); | |
5857 | _resultobj = Py_None; | |
5858 | return _resultobj; | |
5859 | } | |
5860 | ||
5861 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5862 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5863 | PyObject * _resultobj; | |
5864 | wxTextAttr * _arg0; | |
5865 | wxColour * _arg1; | |
5866 | PyObject * _argo0 = 0; | |
5867 | wxColour temp; | |
5868 | PyObject * _obj1 = 0; | |
5869 | char *_kwnames[] = { "self","colBack", NULL }; | |
5870 | ||
5871 | self = self; | |
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5873 | return NULL; | |
5874 | if (_argo0) { | |
5875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
5881 | { | |
5882 | _arg1 = &temp; | |
5883 | if (! wxColour_helper(_obj1, &_arg1)) | |
5884 | return NULL; | |
5885 | } | |
5886 | { | |
4268f798 | 5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5888 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
d56cebe7 | 5889 | |
4268f798 | 5890 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5891 | if (PyErr_Occurred()) return NULL; |
5892 | } Py_INCREF(Py_None); | |
5893 | _resultobj = Py_None; | |
5894 | return _resultobj; | |
5895 | } | |
5896 | ||
5897 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5898 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5899 | PyObject * _resultobj; | |
5900 | wxTextAttr * _arg0; | |
5901 | wxFont * _arg1; | |
5902 | PyObject * _argo0 = 0; | |
5903 | PyObject * _argo1 = 0; | |
5904 | char *_kwnames[] = { "self","font", NULL }; | |
5905 | ||
5906 | self = self; | |
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5908 | return NULL; | |
5909 | if (_argo0) { | |
5910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5913 | return NULL; | |
5914 | } | |
5915 | } | |
5916 | if (_argo1) { | |
5917 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5918 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | { | |
4268f798 | 5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5925 | wxTextAttr_SetFont(_arg0,*_arg1); |
d56cebe7 | 5926 | |
4268f798 | 5927 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5928 | if (PyErr_Occurred()) return NULL; |
5929 | } Py_INCREF(Py_None); | |
5930 | _resultobj = Py_None; | |
5931 | return _resultobj; | |
5932 | } | |
5933 | ||
5934 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5935 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject * _resultobj; | |
5937 | bool _result; | |
5938 | wxTextAttr * _arg0; | |
5939 | PyObject * _argo0 = 0; | |
5940 | char *_kwnames[] = { "self", NULL }; | |
5941 | ||
5942 | self = self; | |
5943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5944 | return NULL; | |
5945 | if (_argo0) { | |
5946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5949 | return NULL; | |
5950 | } | |
5951 | } | |
5952 | { | |
4268f798 | 5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5954 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
d56cebe7 | 5955 | |
4268f798 | 5956 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5957 | if (PyErr_Occurred()) return NULL; |
5958 | } _resultobj = Py_BuildValue("i",_result); | |
5959 | return _resultobj; | |
5960 | } | |
5961 | ||
5962 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5963 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5964 | PyObject * _resultobj; | |
5965 | bool _result; | |
5966 | wxTextAttr * _arg0; | |
5967 | PyObject * _argo0 = 0; | |
5968 | char *_kwnames[] = { "self", NULL }; | |
5969 | ||
5970 | self = self; | |
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5972 | return NULL; | |
5973 | if (_argo0) { | |
5974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | { | |
4268f798 | 5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5982 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
d56cebe7 | 5983 | |
4268f798 | 5984 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
5985 | if (PyErr_Occurred()) return NULL; |
5986 | } _resultobj = Py_BuildValue("i",_result); | |
5987 | return _resultobj; | |
5988 | } | |
5989 | ||
5990 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5991 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5992 | PyObject * _resultobj; | |
5993 | bool _result; | |
5994 | wxTextAttr * _arg0; | |
5995 | PyObject * _argo0 = 0; | |
5996 | char *_kwnames[] = { "self", NULL }; | |
5997 | ||
5998 | self = self; | |
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
6000 | return NULL; | |
6001 | if (_argo0) { | |
6002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
6005 | return NULL; | |
6006 | } | |
6007 | } | |
6008 | { | |
4268f798 | 6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6010 | _result = (bool )wxTextAttr_HasFont(_arg0); |
d56cebe7 | 6011 | |
4268f798 | 6012 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
6013 | if (PyErr_Occurred()) return NULL; |
6014 | } _resultobj = Py_BuildValue("i",_result); | |
6015 | return _resultobj; | |
6016 | } | |
6017 | ||
6018 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
6019 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject * _resultobj; | |
6021 | wxColour * _result; | |
6022 | wxTextAttr * _arg0; | |
6023 | PyObject * _argo0 = 0; | |
6024 | char *_kwnames[] = { "self", NULL }; | |
6025 | char _ptemp[128]; | |
6026 | ||
6027 | self = self; | |
6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
6029 | return NULL; | |
6030 | if (_argo0) { | |
6031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
6034 | return NULL; | |
6035 | } | |
6036 | } | |
6037 | { | |
4268f798 | 6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6039 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
d56cebe7 | 6040 | |
4268f798 | 6041 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 6042 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6043 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6044 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
6045 | return _resultobj; |
6046 | } | |
6047 | ||
6048 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6049 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject * _resultobj; | |
6051 | wxColour * _result; | |
6052 | wxTextAttr * _arg0; | |
6053 | PyObject * _argo0 = 0; | |
6054 | char *_kwnames[] = { "self", NULL }; | |
6055 | char _ptemp[128]; | |
6056 | ||
6057 | self = self; | |
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6059 | return NULL; | |
6060 | if (_argo0) { | |
6061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
6064 | return NULL; | |
6065 | } | |
6066 | } | |
6067 | { | |
4268f798 | 6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6069 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
d56cebe7 | 6070 | |
4268f798 | 6071 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 6072 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6073 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6074 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
6075 | return _resultobj; |
6076 | } | |
6077 | ||
6078 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6079 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6080 | PyObject * _resultobj; | |
6081 | wxFont * _result; | |
6082 | wxTextAttr * _arg0; | |
6083 | PyObject * _argo0 = 0; | |
6084 | char *_kwnames[] = { "self", NULL }; | |
6085 | char _ptemp[128]; | |
6086 | ||
6087 | self = self; | |
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
6089 | return NULL; | |
6090 | if (_argo0) { | |
6091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
6094 | return NULL; | |
6095 | } | |
6096 | } | |
6097 | { | |
4268f798 | 6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6099 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
d56cebe7 | 6100 | |
4268f798 | 6101 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 6102 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6103 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
6104 | _resultobj = Py_BuildValue("s",_ptemp); | |
d56cebe7 RD |
6105 | return _resultobj; |
6106 | } | |
6107 | ||
98624b49 RD |
6108 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
6109 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6110 | PyObject * _resultobj; | |
6111 | bool _result; | |
6112 | wxTextAttr * _arg0; | |
6113 | PyObject * _argo0 = 0; | |
6114 | char *_kwnames[] = { "self", NULL }; | |
6115 | ||
6116 | self = self; | |
6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6118 | return NULL; | |
6119 | if (_argo0) { | |
6120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6123 | return NULL; | |
6124 | } | |
6125 | } | |
6126 | { | |
4268f798 | 6127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6128 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
98624b49 | 6129 | |
4268f798 | 6130 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
6131 | if (PyErr_Occurred()) return NULL; |
6132 | } _resultobj = Py_BuildValue("i",_result); | |
6133 | return _resultobj; | |
6134 | } | |
6135 | ||
2f4e9287 RD |
6136 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
6137 | PyObject * _resultobj; | |
6138 | wxTextAttr * _result; | |
6139 | wxTextAttr * _arg0; | |
6140 | wxTextAttr * _arg1; | |
6141 | wxTextCtrl * _arg2; | |
6142 | PyObject * _argo0 = 0; | |
6143 | PyObject * _argo1 = 0; | |
6144 | PyObject * _argo2 = 0; | |
6145 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6146 | char _ptemp[128]; | |
6147 | ||
6148 | self = self; | |
6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6150 | return NULL; | |
6151 | if (_argo0) { | |
6152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6155 | return NULL; | |
6156 | } | |
6157 | } | |
6158 | if (_argo1) { | |
6159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6162 | return NULL; | |
6163 | } | |
6164 | } | |
6165 | if (_argo2) { | |
6166 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6167 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6169 | return NULL; | |
6170 | } | |
6171 | } | |
6172 | { | |
4268f798 | 6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6174 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
2f4e9287 | 6175 | |
4268f798 | 6176 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6177 | if (PyErr_Occurred()) return NULL; |
6178 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6179 | _resultobj = Py_BuildValue("s",_ptemp); | |
6180 | return _resultobj; | |
6181 | } | |
6182 | ||
8ab979d7 RD |
6183 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
6184 | wxTextCtrl *src; | |
6185 | wxControl *dest; | |
6186 | src = (wxTextCtrl *) ptr; | |
6187 | dest = (wxControl *) src; | |
6188 | return (void *) dest; | |
6189 | } | |
6190 | ||
6191 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6192 | wxTextCtrl *src; | |
6193 | wxWindow *dest; | |
6194 | src = (wxTextCtrl *) ptr; | |
6195 | dest = (wxWindow *) src; | |
6196 | return (void *) dest; | |
6197 | } | |
6198 | ||
6199 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6200 | wxTextCtrl *src; | |
6201 | wxEvtHandler *dest; | |
6202 | src = (wxTextCtrl *) ptr; | |
6203 | dest = (wxEvtHandler *) src; | |
6204 | return (void *) dest; | |
6205 | } | |
6206 | ||
9416aa89 RD |
6207 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
6208 | wxTextCtrl *src; | |
6209 | wxObject *dest; | |
6210 | src = (wxTextCtrl *) ptr; | |
6211 | dest = (wxObject *) src; | |
6212 | return (void *) dest; | |
6213 | } | |
6214 | ||
8ab979d7 | 6215 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 6216 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6217 | PyObject * _resultobj; |
6218 | wxTextCtrl * _result; | |
6219 | wxWindow * _arg0; | |
6220 | wxWindowID _arg1; | |
137b5242 | 6221 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
e508a2b6 RD |
6222 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6223 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6224 | long _arg5 = (long ) 0; |
e508a2b6 | 6225 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6226 | wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr; |
1d99702e | 6227 | PyObject * _argo0 = 0; |
137b5242 | 6228 | PyObject * _obj2 = 0; |
2f90df85 RD |
6229 | wxPoint temp; |
6230 | PyObject * _obj3 = 0; | |
6231 | wxSize temp0; | |
6232 | PyObject * _obj4 = 0; | |
1d99702e | 6233 | PyObject * _argo6 = 0; |
137b5242 | 6234 | PyObject * _obj7 = 0; |
efc5f224 | 6235 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6236 | char _ptemp[128]; |
6237 | ||
6238 | self = self; | |
137b5242 | 6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6240 | return NULL; |
6241 | if (_argo0) { | |
6242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
6245 | return NULL; | |
6246 | } | |
6247 | } | |
137b5242 RD |
6248 | if (_obj2) |
6249 | { | |
6250 | _arg2 = wxString_in_helper(_obj2); | |
6251 | if (_arg2 == NULL) | |
6252 | return NULL; | |
6253 | } | |
09f3d4e6 RD |
6254 | if (_obj3) |
6255 | { | |
6256 | _arg3 = &temp; | |
6257 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6258 | return NULL; | |
6259 | } | |
6260 | if (_obj4) | |
6261 | { | |
6262 | _arg4 = &temp0; | |
6263 | if (! wxSize_helper(_obj4, &_arg4)) | |
6264 | return NULL; | |
6265 | } | |
6266 | if (_argo6) { | |
6267 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6268 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
6270 | return NULL; | |
6271 | } | |
6272 | } | |
137b5242 RD |
6273 | if (_obj7) |
6274 | { | |
6275 | _arg7 = wxString_in_helper(_obj7); | |
6276 | if (_arg7 == NULL) | |
6277 | return NULL; | |
6278 | } | |
09f3d4e6 | 6279 | { |
4268f798 | 6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6281 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6282 | |
4268f798 | 6283 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6284 | if (PyErr_Occurred()) return NULL; |
6285 | } if (_result) { | |
6286 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6287 | _resultobj = Py_BuildValue("s",_ptemp); | |
6288 | } else { | |
6289 | Py_INCREF(Py_None); | |
6290 | _resultobj = Py_None; | |
6291 | } | |
137b5242 RD |
6292 | { |
6293 | if (_obj2) | |
6294 | delete _arg2; | |
6295 | } | |
6296 | { | |
6297 | if (_obj7) | |
6298 | delete _arg7; | |
6299 | } | |
09f3d4e6 RD |
6300 | return _resultobj; |
6301 | } | |
6302 | ||
6303 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6304 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6305 | PyObject * _resultobj; | |
6306 | wxTextCtrl * _result; | |
6307 | char *_kwnames[] = { NULL }; | |
6308 | char _ptemp[128]; | |
6309 | ||
6310 | self = self; | |
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6312 | return NULL; | |
6313 | { | |
4268f798 | 6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6315 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
09f3d4e6 | 6316 | |
4268f798 | 6317 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6318 | if (PyErr_Occurred()) return NULL; |
6319 | } if (_result) { | |
6320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6321 | _resultobj = Py_BuildValue("s",_ptemp); | |
6322 | } else { | |
6323 | Py_INCREF(Py_None); | |
6324 | _resultobj = Py_None; | |
6325 | } | |
6326 | return _resultobj; | |
6327 | } | |
6328 | ||
6329 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6330 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6331 | PyObject * _resultobj; | |
6332 | bool _result; | |
6333 | wxTextCtrl * _arg0; | |
6334 | wxWindow * _arg1; | |
6335 | wxWindowID _arg2; | |
137b5242 | 6336 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
09f3d4e6 RD |
6337 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
6338 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6339 | long _arg6 = (long ) 0; | |
6340 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 6341 | wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr; |
09f3d4e6 RD |
6342 | PyObject * _argo0 = 0; |
6343 | PyObject * _argo1 = 0; | |
137b5242 | 6344 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
6345 | wxPoint temp; |
6346 | PyObject * _obj4 = 0; | |
6347 | wxSize temp0; | |
6348 | PyObject * _obj5 = 0; | |
6349 | PyObject * _argo7 = 0; | |
137b5242 | 6350 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
6351 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; |
6352 | ||
6353 | self = self; | |
137b5242 | 6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
8ab979d7 | 6355 | return NULL; |
1d99702e RD |
6356 | if (_argo0) { |
6357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
6358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
6359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
8ab979d7 RD |
6360 | return NULL; |
6361 | } | |
6362 | } | |
09f3d4e6 RD |
6363 | if (_argo1) { |
6364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6367 | return NULL; | |
6368 | } | |
6369 | } | |
137b5242 RD |
6370 | if (_obj3) |
6371 | { | |
6372 | _arg3 = wxString_in_helper(_obj3); | |
6373 | if (_arg3 == NULL) | |
6374 | return NULL; | |
6375 | } | |
09f3d4e6 | 6376 | if (_obj4) |
2f90df85 | 6377 | { |
09f3d4e6 RD |
6378 | _arg4 = &temp; |
6379 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 6380 | return NULL; |
2f90df85 | 6381 | } |
09f3d4e6 | 6382 | if (_obj5) |
2f90df85 | 6383 | { |
09f3d4e6 RD |
6384 | _arg5 = &temp0; |
6385 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 6386 | return NULL; |
2f90df85 | 6387 | } |
09f3d4e6 RD |
6388 | if (_argo7) { |
6389 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6390 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
6392 | return NULL; |
6393 | } | |
6394 | } | |
137b5242 RD |
6395 | if (_obj8) |
6396 | { | |
6397 | _arg8 = wxString_in_helper(_obj8); | |
6398 | if (_arg8 == NULL) | |
6399 | return NULL; | |
6400 | } | |
cf694132 | 6401 | { |
4268f798 | 6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6403 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
cf694132 | 6404 | |
4268f798 | 6405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6406 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 6407 | } _resultobj = Py_BuildValue("i",_result); |
137b5242 RD |
6408 | { |
6409 | if (_obj3) | |
6410 | delete _arg3; | |
6411 | } | |
6412 | { | |
6413 | if (_obj8) | |
6414 | delete _arg8; | |
6415 | } | |
8ab979d7 RD |
6416 | return _resultobj; |
6417 | } | |
6418 | ||
98624b49 RD |
6419 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
6420 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6421 | PyObject * _resultobj; |
98624b49 | 6422 | wxString * _result; |
8ab979d7 | 6423 | wxTextCtrl * _arg0; |
1d99702e | 6424 | PyObject * _argo0 = 0; |
efc5f224 | 6425 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6426 | |
6427 | self = self; | |
98624b49 | 6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 6429 | return NULL; |
1d99702e RD |
6430 | if (_argo0) { |
6431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6434 | return NULL; |
6435 | } | |
6436 | } | |
cf694132 | 6437 | { |
4268f798 | 6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6439 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
cf694132 | 6440 | |
4268f798 | 6441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6442 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6443 | }{ |
c8bc7bb8 RD |
6444 | #if wxUSE_UNICODE |
6445 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6446 | #else | |
98624b49 | 6447 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6448 | #endif |
98624b49 RD |
6449 | } |
6450 | { | |
6451 | delete _result; | |
6452 | } | |
8ab979d7 RD |
6453 | return _resultobj; |
6454 | } | |
6455 | ||
98624b49 RD |
6456 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6457 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6458 | PyObject * _resultobj; |
6459 | wxTextCtrl * _arg0; | |
98624b49 | 6460 | wxString * _arg1; |
1d99702e | 6461 | PyObject * _argo0 = 0; |
98624b49 RD |
6462 | PyObject * _obj1 = 0; |
6463 | char *_kwnames[] = { "self","value", NULL }; | |
8ab979d7 RD |
6464 | |
6465 | self = self; | |
98624b49 | 6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6467 | return NULL; |
1d99702e RD |
6468 | if (_argo0) { |
6469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6472 | return NULL; |
6473 | } | |
6474 | } | |
98624b49 | 6475 | { |
c8bc7bb8 RD |
6476 | _arg1 = wxString_in_helper(_obj1); |
6477 | if (_arg1 == NULL) | |
98624b49 | 6478 | return NULL; |
98624b49 | 6479 | } |
cf694132 | 6480 | { |
4268f798 | 6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6482 | wxTextCtrl_SetValue(_arg0,*_arg1); |
cf694132 | 6483 | |
4268f798 | 6484 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6486 | } Py_INCREF(Py_None); |
8ab979d7 | 6487 | _resultobj = Py_None; |
98624b49 RD |
6488 | { |
6489 | if (_obj1) | |
6490 | delete _arg1; | |
6491 | } | |
8ab979d7 RD |
6492 | return _resultobj; |
6493 | } | |
6494 | ||
68320e40 RD |
6495 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6496 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject * _resultobj; | |
6498 | wxString * _result; | |
6499 | wxTextCtrl * _arg0; | |
6500 | long _arg1; | |
6501 | long _arg2; | |
6502 | PyObject * _argo0 = 0; | |
6503 | char *_kwnames[] = { "self","from","to", NULL }; | |
6504 | ||
6505 | self = self; | |
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6507 | return NULL; | |
6508 | if (_argo0) { | |
6509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6512 | return NULL; | |
6513 | } | |
6514 | } | |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6517 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); |
68320e40 RD |
6518 | |
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) return NULL; | |
6521 | }{ | |
c8bc7bb8 RD |
6522 | #if wxUSE_UNICODE |
6523 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6524 | #else | |
68320e40 | 6525 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6526 | #endif |
68320e40 RD |
6527 | } |
6528 | { | |
6529 | delete _result; | |
6530 | } | |
6531 | return _resultobj; | |
6532 | } | |
6533 | ||
98624b49 RD |
6534 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6535 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6536 | PyObject * _resultobj; |
98624b49 | 6537 | int _result; |
8ab979d7 | 6538 | wxTextCtrl * _arg0; |
98624b49 | 6539 | long _arg1; |
1d99702e | 6540 | PyObject * _argo0 = 0; |
98624b49 | 6541 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6542 | |
6543 | self = self; | |
98624b49 | 6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6545 | return NULL; |
1d99702e RD |
6546 | if (_argo0) { |
6547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6550 | return NULL; |
6551 | } | |
6552 | } | |
cf694132 | 6553 | { |
4268f798 | 6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6555 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
cf694132 | 6556 | |
4268f798 | 6557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6558 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6559 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6560 | return _resultobj; |
6561 | } | |
6562 | ||
98624b49 RD |
6563 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6564 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6565 | PyObject * _resultobj; |
98624b49 | 6566 | wxString * _result; |
8ab979d7 | 6567 | wxTextCtrl * _arg0; |
98624b49 | 6568 | long _arg1; |
1d99702e | 6569 | PyObject * _argo0 = 0; |
98624b49 | 6570 | char *_kwnames[] = { "self","lineNo", NULL }; |
8ab979d7 RD |
6571 | |
6572 | self = self; | |
98624b49 | 6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6574 | return NULL; |
1d99702e RD |
6575 | if (_argo0) { |
6576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6579 | return NULL; |
6580 | } | |
6581 | } | |
cf694132 | 6582 | { |
4268f798 | 6583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6584 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
cf694132 | 6585 | |
4268f798 | 6586 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6587 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6588 | }{ |
c8bc7bb8 RD |
6589 | #if wxUSE_UNICODE |
6590 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6591 | #else | |
98624b49 | 6592 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6593 | #endif |
98624b49 RD |
6594 | } |
6595 | { | |
6596 | delete _result; | |
6597 | } | |
8ab979d7 RD |
6598 | return _resultobj; |
6599 | } | |
6600 | ||
98624b49 RD |
6601 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6602 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6603 | PyObject * _resultobj; |
98624b49 | 6604 | int _result; |
8ab979d7 | 6605 | wxTextCtrl * _arg0; |
1d99702e | 6606 | PyObject * _argo0 = 0; |
efc5f224 | 6607 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6608 | |
6609 | self = self; | |
98624b49 | 6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
8ab979d7 | 6611 | return NULL; |
1d99702e RD |
6612 | if (_argo0) { |
6613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6616 | return NULL; |
6617 | } | |
6618 | } | |
cf694132 | 6619 | { |
4268f798 | 6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6621 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
cf694132 | 6622 | |
4268f798 | 6623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6624 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6625 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6626 | return _resultobj; |
6627 | } | |
6628 | ||
98624b49 RD |
6629 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6630 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6631 | PyObject * _resultobj; |
98624b49 | 6632 | bool _result; |
8ab979d7 | 6633 | wxTextCtrl * _arg0; |
1d99702e | 6634 | PyObject * _argo0 = 0; |
efc5f224 | 6635 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6636 | |
6637 | self = self; | |
98624b49 | 6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
8ab979d7 | 6639 | return NULL; |
1d99702e RD |
6640 | if (_argo0) { |
6641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6644 | return NULL; |
6645 | } | |
6646 | } | |
cf694132 | 6647 | { |
4268f798 | 6648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6649 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
cf694132 | 6650 | |
4268f798 | 6651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6652 | if (PyErr_Occurred()) return NULL; |
98624b49 | 6653 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6654 | return _resultobj; |
6655 | } | |
6656 | ||
98624b49 RD |
6657 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6658 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6659 | PyObject * _resultobj; |
98624b49 | 6660 | bool _result; |
8ab979d7 | 6661 | wxTextCtrl * _arg0; |
1d99702e | 6662 | PyObject * _argo0 = 0; |
98624b49 | 6663 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6664 | |
6665 | self = self; | |
98624b49 | 6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
8ab979d7 | 6667 | return NULL; |
1d99702e RD |
6668 | if (_argo0) { |
6669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6672 | return NULL; |
6673 | } | |
6674 | } | |
cf694132 | 6675 | { |
4268f798 | 6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6677 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
cf694132 | 6678 | |
4268f798 | 6679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6680 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6681 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6682 | return _resultobj; |
6683 | } | |
6684 | ||
98624b49 RD |
6685 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6686 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6687 | PyObject * _resultobj; |
8ab979d7 | 6688 | wxTextCtrl * _arg0; |
98624b49 RD |
6689 | long * _arg1; |
6690 | long temp; | |
6691 | long * _arg2; | |
6692 | long temp0; | |
1d99702e | 6693 | PyObject * _argo0 = 0; |
98624b49 | 6694 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6695 | |
6696 | self = self; | |
98624b49 RD |
6697 | { |
6698 | _arg1 = &temp; | |
6699 | } | |
6700 | { | |
6701 | _arg2 = &temp0; | |
6702 | } | |
6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
8ab979d7 | 6704 | return NULL; |
1d99702e RD |
6705 | if (_argo0) { |
6706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6709 | return NULL; |
6710 | } | |
6711 | } | |
8ab979d7 | 6712 | { |
4268f798 | 6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6714 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
cf694132 | 6715 | |
4268f798 | 6716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6717 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6718 | } Py_INCREF(Py_None); |
6719 | _resultobj = Py_None; | |
6720 | { | |
6721 | PyObject *o; | |
6722 | o = PyInt_FromLong((long) (*_arg1)); | |
6723 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6724 | } |
6725 | { | |
98624b49 RD |
6726 | PyObject *o; |
6727 | o = PyInt_FromLong((long) (*_arg2)); | |
6728 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6729 | } |
6730 | return _resultobj; | |
6731 | } | |
6732 | ||
b78b83ec RD |
6733 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6734 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject * _resultobj; | |
6736 | wxString * _result; | |
6737 | wxTextCtrl * _arg0; | |
6738 | PyObject * _argo0 = 0; | |
6739 | char *_kwnames[] = { "self", NULL }; | |
6740 | ||
6741 | self = self; | |
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6743 | return NULL; | |
6744 | if (_argo0) { | |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
6751 | { | |
4268f798 | 6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6753 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
b78b83ec | 6754 | |
4268f798 | 6755 | wxPyEndAllowThreads(__tstate); |
b78b83ec RD |
6756 | if (PyErr_Occurred()) return NULL; |
6757 | }{ | |
c8bc7bb8 RD |
6758 | #if wxUSE_UNICODE |
6759 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6760 | #else | |
b78b83ec | 6761 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6762 | #endif |
b78b83ec RD |
6763 | } |
6764 | { | |
6765 | delete _result; | |
6766 | } | |
6767 | return _resultobj; | |
6768 | } | |
6769 | ||
98624b49 RD |
6770 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6771 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6772 | PyObject * _resultobj; |
8ab979d7 | 6773 | wxTextCtrl * _arg0; |
1d99702e | 6774 | PyObject * _argo0 = 0; |
efc5f224 | 6775 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6776 | |
6777 | self = self; | |
98624b49 | 6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
8ab979d7 | 6779 | return NULL; |
1d99702e RD |
6780 | if (_argo0) { |
6781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6784 | return NULL; |
6785 | } | |
6786 | } | |
cf694132 | 6787 | { |
4268f798 | 6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6789 | wxTextCtrl_Clear(_arg0); |
cf694132 | 6790 | |
4268f798 | 6791 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6792 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6793 | } Py_INCREF(Py_None); |
6794 | _resultobj = Py_None; | |
8ab979d7 RD |
6795 | return _resultobj; |
6796 | } | |
6797 | ||
98624b49 RD |
6798 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
6799 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6800 | PyObject * _resultobj; |
8ab979d7 | 6801 | wxTextCtrl * _arg0; |
98624b49 RD |
6802 | long _arg1; |
6803 | long _arg2; | |
6804 | wxString * _arg3; | |
1d99702e | 6805 | PyObject * _argo0 = 0; |
98624b49 RD |
6806 | PyObject * _obj3 = 0; |
6807 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
8ab979d7 RD |
6808 | |
6809 | self = self; | |
98624b49 | 6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 6811 | return NULL; |
1d99702e RD |
6812 | if (_argo0) { |
6813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6816 | return NULL; |
6817 | } | |
6818 | } | |
98624b49 | 6819 | { |
c8bc7bb8 RD |
6820 | _arg3 = wxString_in_helper(_obj3); |
6821 | if (_arg3 == NULL) | |
98624b49 | 6822 | return NULL; |
98624b49 | 6823 | } |
8ab979d7 | 6824 | { |
4268f798 | 6825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6826 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 6827 | |
4268f798 | 6828 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6829 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6830 | } Py_INCREF(Py_None); |
6831 | _resultobj = Py_None; | |
8ab979d7 | 6832 | { |
98624b49 RD |
6833 | if (_obj3) |
6834 | delete _arg3; | |
8ab979d7 RD |
6835 | } |
6836 | return _resultobj; | |
6837 | } | |
6838 | ||
98624b49 RD |
6839 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
6840 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject * _resultobj; | |
8ab979d7 | 6842 | wxTextCtrl * _arg0; |
98624b49 RD |
6843 | long _arg1; |
6844 | long _arg2; | |
1d99702e | 6845 | PyObject * _argo0 = 0; |
98624b49 | 6846 | char *_kwnames[] = { "self","from","to", NULL }; |
8ab979d7 RD |
6847 | |
6848 | self = self; | |
98624b49 | 6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6850 | return NULL; |
1d99702e RD |
6851 | if (_argo0) { |
6852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6855 | return NULL; |
6856 | } | |
6857 | } | |
cf694132 | 6858 | { |
4268f798 | 6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6860 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
cf694132 | 6861 | |
4268f798 | 6862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6863 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6864 | } Py_INCREF(Py_None); |
6865 | _resultobj = Py_None; | |
8ab979d7 RD |
6866 | return _resultobj; |
6867 | } | |
6868 | ||
6869 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
efc5f224 | 6870 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6871 | PyObject * _resultobj; |
6872 | bool _result; | |
6873 | wxTextCtrl * _arg0; | |
6874 | wxString * _arg1; | |
1d99702e | 6875 | PyObject * _argo0 = 0; |
8ab979d7 | 6876 | PyObject * _obj1 = 0; |
98624b49 | 6877 | char *_kwnames[] = { "self","file", NULL }; |
8ab979d7 RD |
6878 | |
6879 | self = self; | |
efc5f224 | 6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6881 | return NULL; |
1d99702e RD |
6882 | if (_argo0) { |
6883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
6885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
6886 | return NULL; | |
6887 | } | |
6888 | } | |
6889 | { | |
c8bc7bb8 RD |
6890 | _arg1 = wxString_in_helper(_obj1); |
6891 | if (_arg1 == NULL) | |
185d7c3e | 6892 | return NULL; |
8ab979d7 | 6893 | } |
cf694132 | 6894 | { |
4268f798 | 6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6896 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
cf694132 | 6897 | |
4268f798 | 6898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6899 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6900 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6901 | { |
6902 | if (_obj1) | |
6903 | delete _arg1; | |
6904 | } | |
6905 | return _resultobj; | |
6906 | } | |
6907 | ||
98624b49 RD |
6908 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
6909 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6910 | PyObject * _resultobj; |
98624b49 | 6911 | bool _result; |
8ab979d7 | 6912 | wxTextCtrl * _arg0; |
137b5242 | 6913 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
1d99702e | 6914 | PyObject * _argo0 = 0; |
98624b49 RD |
6915 | PyObject * _obj1 = 0; |
6916 | char *_kwnames[] = { "self","file", NULL }; | |
8ab979d7 RD |
6917 | |
6918 | self = self; | |
98624b49 | 6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6920 | return NULL; |
1d99702e RD |
6921 | if (_argo0) { |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6925 | return NULL; |
6926 | } | |
6927 | } | |
98624b49 RD |
6928 | if (_obj1) |
6929 | { | |
c8bc7bb8 RD |
6930 | _arg1 = wxString_in_helper(_obj1); |
6931 | if (_arg1 == NULL) | |
98624b49 | 6932 | return NULL; |
98624b49 | 6933 | } |
cf694132 | 6934 | { |
4268f798 | 6935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6936 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
cf694132 | 6937 | |
4268f798 | 6938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6939 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
6940 | } _resultobj = Py_BuildValue("i",_result); |
6941 | { | |
6942 | if (_obj1) | |
6943 | delete _arg1; | |
6944 | } | |
8ab979d7 RD |
6945 | return _resultobj; |
6946 | } | |
6947 | ||
98624b49 RD |
6948 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
6949 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6950 | PyObject * _resultobj; |
6951 | wxTextCtrl * _arg0; | |
1d99702e | 6952 | PyObject * _argo0 = 0; |
98624b49 | 6953 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6954 | |
6955 | self = self; | |
98624b49 | 6956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
8ab979d7 | 6957 | return NULL; |
1d99702e RD |
6958 | if (_argo0) { |
6959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6962 | return NULL; |
6963 | } | |
6964 | } | |
cf694132 | 6965 | { |
4268f798 | 6966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6967 | wxTextCtrl_DiscardEdits(_arg0); |
cf694132 | 6968 | |
4268f798 | 6969 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6970 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6971 | } Py_INCREF(Py_None); |
8ab979d7 | 6972 | _resultobj = Py_None; |
8ab979d7 RD |
6973 | return _resultobj; |
6974 | } | |
6975 | ||
98624b49 RD |
6976 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
6977 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
6978 | PyObject * _resultobj; |
6979 | wxTextCtrl * _arg0; | |
98624b49 | 6980 | unsigned long _arg1; |
1d99702e | 6981 | PyObject * _argo0 = 0; |
98624b49 | 6982 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
6983 | |
6984 | self = self; | |
98624b49 | 6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6986 | return NULL; |
1d99702e RD |
6987 | if (_argo0) { |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
6991 | return NULL; |
6992 | } | |
6993 | } | |
cf694132 | 6994 | { |
4268f798 | 6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6996 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
cf694132 | 6997 | |
4268f798 | 6998 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6999 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7000 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7001 | _resultobj = Py_None; |
7002 | return _resultobj; | |
7003 | } | |
7004 | ||
98624b49 RD |
7005 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
7006 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7007 | PyObject * _resultobj; |
7008 | wxTextCtrl * _arg0; | |
98624b49 | 7009 | wxString * _arg1; |
1d99702e | 7010 | PyObject * _argo0 = 0; |
98624b49 RD |
7011 | PyObject * _obj1 = 0; |
7012 | char *_kwnames[] = { "self","text", NULL }; | |
8ab979d7 RD |
7013 | |
7014 | self = self; | |
98624b49 | 7015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7016 | return NULL; |
1d99702e RD |
7017 | if (_argo0) { |
7018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7021 | return NULL; |
7022 | } | |
7023 | } | |
7024 | { | |
c8bc7bb8 RD |
7025 | _arg1 = wxString_in_helper(_obj1); |
7026 | if (_arg1 == NULL) | |
8ab979d7 | 7027 | return NULL; |
8ab979d7 | 7028 | } |
cf694132 | 7029 | { |
4268f798 | 7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7031 | wxTextCtrl_WriteText(_arg0,*_arg1); |
cf694132 | 7032 | |
4268f798 | 7033 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7034 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7035 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7036 | _resultobj = Py_None; |
7037 | { | |
98624b49 RD |
7038 | if (_obj1) |
7039 | delete _arg1; | |
8ab979d7 RD |
7040 | } |
7041 | return _resultobj; | |
7042 | } | |
7043 | ||
98624b49 RD |
7044 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
7045 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7046 | PyObject * _resultobj; |
8ab979d7 RD |
7047 | wxTextCtrl * _arg0; |
7048 | wxString * _arg1; | |
1d99702e | 7049 | PyObject * _argo0 = 0; |
8ab979d7 | 7050 | PyObject * _obj1 = 0; |
98624b49 | 7051 | char *_kwnames[] = { "self","text", NULL }; |
8ab979d7 RD |
7052 | |
7053 | self = self; | |
98624b49 | 7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7055 | return NULL; |
1d99702e RD |
7056 | if (_argo0) { |
7057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7060 | return NULL; |
7061 | } | |
7062 | } | |
7063 | { | |
c8bc7bb8 RD |
7064 | _arg1 = wxString_in_helper(_obj1); |
7065 | if (_arg1 == NULL) | |
185d7c3e | 7066 | return NULL; |
8ab979d7 | 7067 | } |
cf694132 | 7068 | { |
4268f798 | 7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7070 | wxTextCtrl_AppendText(_arg0,*_arg1); |
cf694132 | 7071 | |
4268f798 | 7072 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7073 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7074 | } Py_INCREF(Py_None); |
7075 | _resultobj = Py_None; | |
8ab979d7 RD |
7076 | { |
7077 | if (_obj1) | |
7078 | delete _arg1; | |
7079 | } | |
7080 | return _resultobj; | |
7081 | } | |
7082 | ||
db0ff83e RD |
7083 | #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0)) |
7084 | static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7085 | PyObject * _resultobj; | |
7086 | bool _result; | |
7087 | wxTextCtrl * _arg0; | |
7088 | wxKeyEvent * _arg1; | |
7089 | PyObject * _argo0 = 0; | |
7090 | PyObject * _argo1 = 0; | |
7091 | char *_kwnames[] = { "self","event", NULL }; | |
7092 | ||
7093 | self = self; | |
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1)) | |
7095 | return NULL; | |
7096 | if (_argo0) { | |
7097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p."); | |
7100 | return NULL; | |
7101 | } | |
7102 | } | |
7103 | if (_argo1) { | |
7104 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { | |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p."); | |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) return NULL; | |
7116 | } _resultobj = Py_BuildValue("i",_result); | |
7117 | return _resultobj; | |
7118 | } | |
7119 | ||
98624b49 RD |
7120 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
7121 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7122 | PyObject * _resultobj; |
98624b49 | 7123 | bool _result; |
8ab979d7 | 7124 | wxTextCtrl * _arg0; |
98624b49 RD |
7125 | long _arg1; |
7126 | long _arg2; | |
7127 | wxTextAttr * _arg3; | |
1d99702e | 7128 | PyObject * _argo0 = 0; |
98624b49 RD |
7129 | PyObject * _argo3 = 0; |
7130 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
8ab979d7 RD |
7131 | |
7132 | self = self; | |
98624b49 | 7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
8ab979d7 | 7134 | return NULL; |
1d99702e RD |
7135 | if (_argo0) { |
7136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
7138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
7139 | return NULL; | |
7140 | } | |
7141 | } | |
7142 | if (_argo3) { | |
7143 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7144 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
7145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
7146 | return NULL; |
7147 | } | |
7148 | } | |
cf694132 | 7149 | { |
4268f798 | 7150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7151 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 7152 | |
4268f798 | 7153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7154 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7155 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7156 | return _resultobj; |
7157 | } | |
7158 | ||
98624b49 RD |
7159 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
7160 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7161 | PyObject * _resultobj; |
98624b49 | 7162 | bool _result; |
8ab979d7 | 7163 | wxTextCtrl * _arg0; |
98624b49 | 7164 | wxTextAttr * _arg1; |
1d99702e | 7165 | PyObject * _argo0 = 0; |
98624b49 RD |
7166 | PyObject * _argo1 = 0; |
7167 | char *_kwnames[] = { "self","style", NULL }; | |
8ab979d7 RD |
7168 | |
7169 | self = self; | |
98624b49 | 7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7171 | return NULL; |
1d99702e RD |
7172 | if (_argo0) { |
7173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 RD |
7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
7176 | return NULL; | |
7177 | } | |
7178 | } | |
7179 | if (_argo1) { | |
7180 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7181 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
7182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
8ab979d7 RD |
7183 | return NULL; |
7184 | } | |
7185 | } | |
cf694132 | 7186 | { |
4268f798 | 7187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7188 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
cf694132 | 7189 | |
4268f798 | 7190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7191 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7192 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7193 | return _resultobj; |
7194 | } | |
7195 | ||
98624b49 RD |
7196 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
7197 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7198 | PyObject * _resultobj; |
98624b49 | 7199 | wxTextAttr * _result; |
8ab979d7 | 7200 | wxTextCtrl * _arg0; |
1d99702e | 7201 | PyObject * _argo0 = 0; |
efc5f224 | 7202 | char *_kwnames[] = { "self", NULL }; |
98624b49 | 7203 | char _ptemp[128]; |
8ab979d7 RD |
7204 | |
7205 | self = self; | |
98624b49 | 7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
8ab979d7 | 7207 | return NULL; |
1d99702e RD |
7208 | if (_argo0) { |
7209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7212 | return NULL; |
7213 | } | |
7214 | } | |
cf694132 | 7215 | { |
4268f798 | 7216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7217 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
98624b49 | 7218 | _result = (wxTextAttr *) &_result_ref; |
cf694132 | 7219 | |
4268f798 | 7220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7221 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7222 | } if (_result) { |
7223 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7224 | _resultobj = Py_BuildValue("s",_ptemp); | |
7225 | } else { | |
7226 | Py_INCREF(Py_None); | |
7227 | _resultobj = Py_None; | |
7228 | } | |
8ab979d7 RD |
7229 | return _resultobj; |
7230 | } | |
7231 | ||
98624b49 RD |
7232 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
7233 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7234 | PyObject * _resultobj; |
98624b49 | 7235 | long _result; |
8ab979d7 RD |
7236 | wxTextCtrl * _arg0; |
7237 | long _arg1; | |
7238 | long _arg2; | |
1d99702e | 7239 | PyObject * _argo0 = 0; |
98624b49 | 7240 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7241 | |
7242 | self = self; | |
98624b49 | 7243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7244 | return NULL; |
1d99702e RD |
7245 | if (_argo0) { |
7246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7249 | return NULL; |
7250 | } | |
7251 | } | |
cf694132 | 7252 | { |
4268f798 | 7253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7254 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
cf694132 | 7255 | |
4268f798 | 7256 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7257 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7258 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7259 | return _resultobj; |
7260 | } | |
7261 | ||
98624b49 RD |
7262 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
7263 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7264 | PyObject * _resultobj; |
7265 | wxTextCtrl * _arg0; | |
98624b49 RD |
7266 | long _arg1; |
7267 | long * _arg2; | |
7268 | long temp; | |
7269 | long * _arg3; | |
7270 | long temp0; | |
1d99702e | 7271 | PyObject * _argo0 = 0; |
98624b49 | 7272 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
7273 | |
7274 | self = self; | |
98624b49 RD |
7275 | { |
7276 | _arg2 = &temp; | |
7277 | } | |
7278 | { | |
7279 | _arg3 = &temp0; | |
7280 | } | |
7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 7282 | return NULL; |
1d99702e RD |
7283 | if (_argo0) { |
7284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7287 | return NULL; |
7288 | } | |
7289 | } | |
cf694132 | 7290 | { |
4268f798 | 7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7292 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 7293 | |
4268f798 | 7294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7295 | if (PyErr_Occurred()) return NULL; |
68320e40 RD |
7296 | } Py_INCREF(Py_None); |
7297 | _resultobj = Py_None; | |
8ab979d7 | 7298 | { |
98624b49 RD |
7299 | PyObject *o; |
7300 | o = PyInt_FromLong((long) (*_arg2)); | |
7301 | _resultobj = t_output_helper(_resultobj, o); | |
7302 | } | |
7303 | { | |
7304 | PyObject *o; | |
7305 | o = PyInt_FromLong((long) (*_arg3)); | |
7306 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7307 | } |
7308 | return _resultobj; | |
7309 | } | |
7310 | ||
7311 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
efc5f224 | 7312 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7313 | PyObject * _resultobj; |
7314 | wxTextCtrl * _arg0; | |
7315 | long _arg1; | |
1d99702e | 7316 | PyObject * _argo0 = 0; |
efc5f224 | 7317 | char *_kwnames[] = { "self","pos", NULL }; |
8ab979d7 RD |
7318 | |
7319 | self = self; | |
efc5f224 | 7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7321 | return NULL; |
1d99702e RD |
7322 | if (_argo0) { |
7323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8ab979d7 RD |
7325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
7326 | return NULL; | |
7327 | } | |
7328 | } | |
cf694132 | 7329 | { |
4268f798 | 7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7331 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
cf694132 | 7332 | |
4268f798 | 7333 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7334 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7335 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7336 | _resultobj = Py_None; |
7337 | return _resultobj; | |
7338 | } | |
7339 | ||
98624b49 RD |
7340 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
7341 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7342 | PyObject * _resultobj; |
7343 | wxTextCtrl * _arg0; | |
1d99702e | 7344 | PyObject * _argo0 = 0; |
98624b49 | 7345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7346 | |
7347 | self = self; | |
98624b49 | 7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
8ab979d7 | 7349 | return NULL; |
1d99702e RD |
7350 | if (_argo0) { |
7351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7354 | return NULL; |
7355 | } | |
7356 | } | |
cf694132 | 7357 | { |
4268f798 | 7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7359 | wxTextCtrl_Copy(_arg0); |
cf694132 | 7360 | |
4268f798 | 7361 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7362 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7363 | } Py_INCREF(Py_None); |
7364 | _resultobj = Py_None; | |
cf694132 RD |
7365 | return _resultobj; |
7366 | } | |
7367 | ||
98624b49 RD |
7368 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
7369 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
7370 | PyObject * _resultobj; |
7371 | wxTextCtrl * _arg0; | |
1d99702e | 7372 | PyObject * _argo0 = 0; |
98624b49 | 7373 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
7374 | |
7375 | self = self; | |
98624b49 | 7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
cf694132 | 7377 | return NULL; |
1d99702e RD |
7378 | if (_argo0) { |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
cf694132 RD |
7382 | return NULL; |
7383 | } | |
7384 | } | |
cf694132 | 7385 | { |
4268f798 | 7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7387 | wxTextCtrl_Cut(_arg0); |
cf694132 | 7388 | |
4268f798 | 7389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7391 | } Py_INCREF(Py_None); |
8ab979d7 | 7392 | _resultobj = Py_None; |
8ab979d7 RD |
7393 | return _resultobj; |
7394 | } | |
7395 | ||
98624b49 RD |
7396 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
7397 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7398 | PyObject * _resultobj; |
8ab979d7 | 7399 | wxTextCtrl * _arg0; |
1d99702e | 7400 | PyObject * _argo0 = 0; |
98624b49 | 7401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7402 | |
7403 | self = self; | |
98624b49 | 7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
8ab979d7 | 7405 | return NULL; |
1d99702e RD |
7406 | if (_argo0) { |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
8ab979d7 RD |
7410 | return NULL; |
7411 | } | |
7412 | } | |
cf694132 | 7413 | { |
4268f798 | 7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7415 | wxTextCtrl_Paste(_arg0); |
cf694132 | 7416 | |
4268f798 | 7417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7418 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7419 | } Py_INCREF(Py_None); |
7420 | _resultobj = Py_None; | |
8ab979d7 RD |
7421 | return _resultobj; |
7422 | } | |
7423 | ||
c127177f | 7424 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
efc5f224 | 7425 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7426 | PyObject * _resultobj; |
7427 | bool _result; | |
7428 | wxTextCtrl * _arg0; | |
1d99702e | 7429 | PyObject * _argo0 = 0; |
efc5f224 | 7430 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7431 | |
7432 | self = self; | |
efc5f224 | 7433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
c127177f | 7434 | return NULL; |
1d99702e RD |
7435 | if (_argo0) { |
7436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
7442 | { | |
4268f798 | 7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7444 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
c127177f | 7445 | |
4268f798 | 7446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7447 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7448 | } _resultobj = Py_BuildValue("i",_result); |
7449 | return _resultobj; | |
7450 | } | |
7451 | ||
7452 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
efc5f224 | 7453 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7454 | PyObject * _resultobj; |
7455 | bool _result; | |
7456 | wxTextCtrl * _arg0; | |
1d99702e | 7457 | PyObject * _argo0 = 0; |
efc5f224 | 7458 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7459 | |
7460 | self = self; | |
efc5f224 | 7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
c127177f | 7462 | return NULL; |
1d99702e RD |
7463 | if (_argo0) { |
7464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7467 | return NULL; | |
7468 | } | |
7469 | } | |
7470 | { | |
4268f798 | 7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7472 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
c127177f | 7473 | |
4268f798 | 7474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7475 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7476 | } _resultobj = Py_BuildValue("i",_result); |
7477 | return _resultobj; | |
7478 | } | |
7479 | ||
7480 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
efc5f224 | 7481 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
c127177f RD |
7482 | PyObject * _resultobj; |
7483 | bool _result; | |
7484 | wxTextCtrl * _arg0; | |
1d99702e | 7485 | PyObject * _argo0 = 0; |
efc5f224 | 7486 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7487 | |
7488 | self = self; | |
efc5f224 | 7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
c127177f | 7490 | return NULL; |
1d99702e RD |
7491 | if (_argo0) { |
7492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
c127177f RD |
7494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7495 | return NULL; | |
7496 | } | |
7497 | } | |
7498 | { | |
4268f798 | 7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7500 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
c127177f | 7501 | |
4268f798 | 7502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7503 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7504 | } _resultobj = Py_BuildValue("i",_result); |
7505 | return _resultobj; | |
7506 | } | |
7507 | ||
98624b49 RD |
7508 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7509 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7510 | PyObject * _resultobj; |
c127177f | 7511 | wxTextCtrl * _arg0; |
1d99702e | 7512 | PyObject * _argo0 = 0; |
efc5f224 | 7513 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7514 | |
7515 | self = self; | |
98624b49 | 7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
c127177f | 7517 | return NULL; |
1d99702e RD |
7518 | if (_argo0) { |
7519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
c127177f RD |
7522 | return NULL; |
7523 | } | |
7524 | } | |
7525 | { | |
4268f798 | 7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7527 | wxTextCtrl_Undo(_arg0); |
c127177f | 7528 | |
4268f798 | 7529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7530 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7531 | } Py_INCREF(Py_None); |
7532 | _resultobj = Py_None; | |
c127177f RD |
7533 | return _resultobj; |
7534 | } | |
7535 | ||
98624b49 RD |
7536 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7537 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7538 | PyObject * _resultobj; |
c127177f | 7539 | wxTextCtrl * _arg0; |
1d99702e | 7540 | PyObject * _argo0 = 0; |
efc5f224 | 7541 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7542 | |
7543 | self = self; | |
98624b49 | 7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
c127177f | 7545 | return NULL; |
1d99702e RD |
7546 | if (_argo0) { |
7547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
c127177f RD |
7550 | return NULL; |
7551 | } | |
7552 | } | |
7553 | { | |
4268f798 | 7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7555 | wxTextCtrl_Redo(_arg0); |
c127177f | 7556 | |
4268f798 | 7557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7558 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7559 | } Py_INCREF(Py_None); |
7560 | _resultobj = Py_None; | |
c127177f RD |
7561 | return _resultobj; |
7562 | } | |
7563 | ||
98624b49 RD |
7564 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7565 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f | 7566 | PyObject * _resultobj; |
98624b49 | 7567 | bool _result; |
c127177f | 7568 | wxTextCtrl * _arg0; |
1d99702e | 7569 | PyObject * _argo0 = 0; |
efc5f224 | 7570 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7571 | |
7572 | self = self; | |
98624b49 | 7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
c127177f | 7574 | return NULL; |
1d99702e RD |
7575 | if (_argo0) { |
7576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
c127177f RD |
7579 | return NULL; |
7580 | } | |
7581 | } | |
7582 | { | |
4268f798 | 7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7584 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
c127177f | 7585 | |
4268f798 | 7586 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7587 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7588 | } _resultobj = Py_BuildValue("i",_result); |
c127177f RD |
7589 | return _resultobj; |
7590 | } | |
7591 | ||
98624b49 RD |
7592 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7593 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c127177f RD |
7594 | PyObject * _resultobj; |
7595 | bool _result; | |
7596 | wxTextCtrl * _arg0; | |
1d99702e | 7597 | PyObject * _argo0 = 0; |
efc5f224 | 7598 | char *_kwnames[] = { "self", NULL }; |
c127177f RD |
7599 | |
7600 | self = self; | |
98624b49 | 7601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
c127177f | 7602 | return NULL; |
1d99702e RD |
7603 | if (_argo0) { |
7604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
c127177f RD |
7607 | return NULL; |
7608 | } | |
7609 | } | |
7610 | { | |
4268f798 | 7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7612 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
c127177f | 7613 | |
4268f798 | 7614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7615 | if (PyErr_Occurred()) return NULL; |
c127177f RD |
7616 | } _resultobj = Py_BuildValue("i",_result); |
7617 | return _resultobj; | |
7618 | } | |
7619 | ||
98624b49 RD |
7620 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7621 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7622 | PyObject * _resultobj; |
7623 | wxTextCtrl * _arg0; | |
98624b49 | 7624 | long _arg1; |
b1462dfa | 7625 | PyObject * _argo0 = 0; |
98624b49 | 7626 | char *_kwnames[] = { "self","pos", NULL }; |
b1462dfa RD |
7627 | |
7628 | self = self; | |
98624b49 | 7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
7630 | return NULL; |
7631 | if (_argo0) { | |
7632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7635 | return NULL; |
7636 | } | |
7637 | } | |
7638 | { | |
4268f798 | 7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7640 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
b1462dfa | 7641 | |
4268f798 | 7642 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7643 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7644 | } Py_INCREF(Py_None); |
7645 | _resultobj = Py_None; | |
7646 | return _resultobj; | |
7647 | } | |
7648 | ||
98624b49 RD |
7649 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7650 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa RD |
7651 | PyObject * _resultobj; |
7652 | wxTextCtrl * _arg0; | |
7653 | PyObject * _argo0 = 0; | |
7654 | char *_kwnames[] = { "self", NULL }; | |
7655 | ||
7656 | self = self; | |
98624b49 | 7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
b1462dfa RD |
7658 | return NULL; |
7659 | if (_argo0) { | |
7660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
b1462dfa RD |
7663 | return NULL; |
7664 | } | |
7665 | } | |
7666 | { | |
4268f798 | 7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7668 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
b1462dfa | 7669 | |
4268f798 | 7670 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7671 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7672 | } Py_INCREF(Py_None); |
7673 | _resultobj = Py_None; | |
7674 | return _resultobj; | |
7675 | } | |
7676 | ||
98624b49 RD |
7677 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7678 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7679 | PyObject * _resultobj; |
98624b49 | 7680 | long _result; |
d56cebe7 | 7681 | wxTextCtrl * _arg0; |
d56cebe7 | 7682 | PyObject * _argo0 = 0; |
98624b49 | 7683 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7684 | |
7685 | self = self; | |
98624b49 | 7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
d56cebe7 RD |
7687 | return NULL; |
7688 | if (_argo0) { | |
7689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7692 | return NULL; |
7693 | } | |
7694 | } | |
7695 | { | |
4268f798 | 7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7697 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
d56cebe7 | 7698 | |
4268f798 | 7699 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7700 | if (PyErr_Occurred()) return NULL; |
98624b49 | 7701 | } _resultobj = Py_BuildValue("l",_result); |
d56cebe7 RD |
7702 | return _resultobj; |
7703 | } | |
7704 | ||
98624b49 RD |
7705 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7706 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7707 | PyObject * _resultobj; |
98624b49 | 7708 | long _result; |
d56cebe7 | 7709 | wxTextCtrl * _arg0; |
d56cebe7 | 7710 | PyObject * _argo0 = 0; |
98624b49 | 7711 | char *_kwnames[] = { "self", NULL }; |
d56cebe7 RD |
7712 | |
7713 | self = self; | |
98624b49 | 7714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
d56cebe7 RD |
7715 | return NULL; |
7716 | if (_argo0) { | |
7717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7720 | return NULL; |
7721 | } | |
7722 | } | |
98624b49 | 7723 | { |
4268f798 | 7724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7725 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
98624b49 | 7726 | |
4268f798 | 7727 | wxPyEndAllowThreads(__tstate); |
98624b49 RD |
7728 | if (PyErr_Occurred()) return NULL; |
7729 | } _resultobj = Py_BuildValue("l",_result); | |
7730 | return _resultobj; | |
7731 | } | |
7732 | ||
7733 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7734 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7735 | PyObject * _resultobj; | |
7736 | wxTextCtrl * _arg0; | |
7737 | long _arg1; | |
7738 | long _arg2; | |
7739 | PyObject * _argo0 = 0; | |
7740 | char *_kwnames[] = { "self","from","to", NULL }; | |
7741 | ||
7742 | self = self; | |
7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7744 | return NULL; | |
7745 | if (_argo0) { | |
7746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
d56cebe7 RD |
7749 | return NULL; |
7750 | } | |
7751 | } | |
7752 | { | |
4268f798 | 7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7754 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
d56cebe7 | 7755 | |
4268f798 | 7756 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7757 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7758 | } Py_INCREF(Py_None); |
7759 | _resultobj = Py_None; | |
d56cebe7 RD |
7760 | return _resultobj; |
7761 | } | |
7762 | ||
98624b49 RD |
7763 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7764 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d56cebe7 | 7765 | PyObject * _resultobj; |
d56cebe7 RD |
7766 | wxTextCtrl * _arg0; |
7767 | PyObject * _argo0 = 0; | |
7768 | char *_kwnames[] = { "self", NULL }; | |
d56cebe7 RD |
7769 | |
7770 | self = self; | |
98624b49 | 7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
d56cebe7 RD |
7772 | return NULL; |
7773 | if (_argo0) { | |
7774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
d56cebe7 RD |
7777 | return NULL; |
7778 | } | |
7779 | } | |
7780 | { | |
4268f798 | 7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7782 | wxTextCtrl_SelectAll(_arg0); |
d56cebe7 | 7783 | |
4268f798 | 7784 | wxPyEndAllowThreads(__tstate); |
d56cebe7 | 7785 | if (PyErr_Occurred()) return NULL; |
98624b49 RD |
7786 | } Py_INCREF(Py_None); |
7787 | _resultobj = Py_None; | |
d56cebe7 RD |
7788 | return _resultobj; |
7789 | } | |
7790 | ||
98624b49 RD |
7791 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7792 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
00b6c4e3 RD |
7793 | PyObject * _resultobj; |
7794 | wxTextCtrl * _arg0; | |
98624b49 | 7795 | bool _arg1; |
00b6c4e3 | 7796 | PyObject * _argo0 = 0; |
98624b49 RD |
7797 | int tempbool1; |
7798 | char *_kwnames[] = { "self","editable", NULL }; | |
00b6c4e3 RD |
7799 | |
7800 | self = self; | |
98624b49 | 7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
00b6c4e3 RD |
7802 | return NULL; |
7803 | if (_argo0) { | |
7804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
98624b49 | 7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
00b6c4e3 RD |
7807 | return NULL; |
7808 | } | |
7809 | } | |
98624b49 | 7810 | _arg1 = (bool ) tempbool1; |
00b6c4e3 | 7811 | { |
4268f798 | 7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7813 | wxTextCtrl_SetEditable(_arg0,_arg1); |
00b6c4e3 | 7814 | |
4268f798 | 7815 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
7816 | if (PyErr_Occurred()) return NULL; |
7817 | } Py_INCREF(Py_None); | |
7818 | _resultobj = Py_None; | |
7819 | return _resultobj; | |
7820 | } | |
7821 | ||
64c06a50 RD |
7822 | #define wxTextCtrl_IsSingleLine(_swigobj) (_swigobj->IsSingleLine()) |
7823 | static PyObject *_wrap_wxTextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7824 | PyObject * _resultobj; | |
7825 | bool _result; | |
7826 | wxTextCtrl * _arg0; | |
7827 | PyObject * _argo0 = 0; | |
7828 | char *_kwnames[] = { "self", NULL }; | |
7829 | ||
7830 | self = self; | |
7831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsSingleLine",_kwnames,&_argo0)) | |
7832 | return NULL; | |
7833 | if (_argo0) { | |
7834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsSingleLine. Expected _wxTextCtrl_p."); | |
7837 | return NULL; | |
7838 | } | |
7839 | } | |
7840 | { | |
7841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7842 | _result = (bool )wxTextCtrl_IsSingleLine(_arg0); | |
7843 | ||
7844 | wxPyEndAllowThreads(__tstate); | |
7845 | if (PyErr_Occurred()) return NULL; | |
7846 | } _resultobj = Py_BuildValue("i",_result); | |
7847 | return _resultobj; | |
7848 | } | |
7849 | ||
7850 | #define wxTextCtrl_IsMultiLine(_swigobj) (_swigobj->IsMultiLine()) | |
7851 | static PyObject *_wrap_wxTextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7852 | PyObject * _resultobj; | |
7853 | bool _result; | |
7854 | wxTextCtrl * _arg0; | |
7855 | PyObject * _argo0 = 0; | |
7856 | char *_kwnames[] = { "self", NULL }; | |
7857 | ||
7858 | self = self; | |
7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsMultiLine",_kwnames,&_argo0)) | |
7860 | return NULL; | |
7861 | if (_argo0) { | |
7862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsMultiLine. Expected _wxTextCtrl_p."); | |
7865 | return NULL; | |
7866 | } | |
7867 | } | |
7868 | { | |
7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7870 | _result = (bool )wxTextCtrl_IsMultiLine(_arg0); | |
7871 | ||
7872 | wxPyEndAllowThreads(__tstate); | |
7873 | if (PyErr_Occurred()) return NULL; | |
7874 | } _resultobj = Py_BuildValue("i",_result); | |
7875 | return _resultobj; | |
7876 | } | |
7877 | ||
b1462dfa | 7878 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
d56cebe7 | 7879 | self->AppendText(text); |
b1462dfa RD |
7880 | } |
7881 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject * _resultobj; | |
7883 | wxTextCtrl * _arg0; | |
7884 | wxString * _arg1; | |
7885 | PyObject * _argo0 = 0; | |
7886 | PyObject * _obj1 = 0; | |
7887 | char *_kwnames[] = { "self","text", NULL }; | |
7888 | ||
7889 | self = self; | |
7890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7891 | return NULL; | |
7892 | if (_argo0) { | |
7893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7896 | return NULL; | |
7897 | } | |
7898 | } | |
7899 | { | |
c8bc7bb8 RD |
7900 | _arg1 = wxString_in_helper(_obj1); |
7901 | if (_arg1 == NULL) | |
185d7c3e | 7902 | return NULL; |
b1462dfa RD |
7903 | } |
7904 | { | |
4268f798 | 7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7906 | wxTextCtrl_write(_arg0,*_arg1); |
b1462dfa | 7907 | |
4268f798 | 7908 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7909 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7910 | } Py_INCREF(Py_None); |
7911 | _resultobj = Py_None; | |
7912 | { | |
7913 | if (_obj1) | |
7914 | delete _arg1; | |
7915 | } | |
7916 | return _resultobj; | |
7917 | } | |
7918 | ||
2f4e9287 | 7919 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
64c06a50 | 7920 | return self->GetValue().Mid(from, to - from); |
2f4e9287 RD |
7921 | } |
7922 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7923 | PyObject * _resultobj; | |
7924 | wxString * _result; | |
7925 | wxTextCtrl * _arg0; | |
7926 | long _arg1; | |
7927 | long _arg2; | |
7928 | PyObject * _argo0 = 0; | |
7929 | char *_kwnames[] = { "self","from","to", NULL }; | |
7930 | ||
7931 | self = self; | |
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7933 | return NULL; | |
7934 | if (_argo0) { | |
7935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7938 | return NULL; | |
7939 | } | |
7940 | } | |
7941 | { | |
4268f798 | 7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7943 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
2f4e9287 | 7944 | |
4268f798 | 7945 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
7946 | if (PyErr_Occurred()) return NULL; |
7947 | }{ | |
c8bc7bb8 RD |
7948 | #if wxUSE_UNICODE |
7949 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7950 | #else | |
2f4e9287 | 7951 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7952 | #endif |
2f4e9287 RD |
7953 | } |
7954 | { | |
7955 | delete _result; | |
7956 | } | |
7957 | return _resultobj; | |
7958 | } | |
7959 | ||
8ab979d7 RD |
7960 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7961 | wxScrollBar *src; | |
7962 | wxControl *dest; | |
7963 | src = (wxScrollBar *) ptr; | |
7964 | dest = (wxControl *) src; | |
7965 | return (void *) dest; | |
7966 | } | |
7967 | ||
7968 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7969 | wxScrollBar *src; | |
7970 | wxWindow *dest; | |
7971 | src = (wxScrollBar *) ptr; | |
7972 | dest = (wxWindow *) src; | |
7973 | return (void *) dest; | |
7974 | } | |
7975 | ||
7976 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7977 | wxScrollBar *src; | |
7978 | wxEvtHandler *dest; | |
7979 | src = (wxScrollBar *) ptr; | |
7980 | dest = (wxEvtHandler *) src; | |
7981 | return (void *) dest; | |
7982 | } | |
7983 | ||
9416aa89 RD |
7984 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
7985 | wxScrollBar *src; | |
7986 | wxObject *dest; | |
7987 | src = (wxScrollBar *) ptr; | |
7988 | dest = (wxObject *) src; | |
7989 | return (void *) dest; | |
7990 | } | |
7991 | ||
8ab979d7 | 7992 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7993 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7994 | PyObject * _resultobj; |
7995 | wxScrollBar * _result; | |
7996 | wxWindow * _arg0; | |
1d99702e | 7997 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
7998 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7999 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 8000 | long _arg4 = (long ) wxSB_HORIZONTAL; |
e508a2b6 | 8001 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 8002 | wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr; |
1d99702e | 8003 | PyObject * _argo0 = 0; |
2f90df85 RD |
8004 | wxPoint temp; |
8005 | PyObject * _obj2 = 0; | |
8006 | wxSize temp0; | |
8007 | PyObject * _obj3 = 0; | |
1d99702e | 8008 | PyObject * _argo5 = 0; |
137b5242 | 8009 | PyObject * _obj6 = 0; |
efc5f224 | 8010 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
8011 | char _ptemp[128]; |
8012 | ||
8013 | self = self; | |
137b5242 | 8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 8015 | return NULL; |
1d99702e RD |
8016 | if (_argo0) { |
8017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
8020 | return NULL; | |
8021 | } | |
8022 | } | |
2f90df85 RD |
8023 | if (_obj2) |
8024 | { | |
8025 | _arg2 = &temp; | |
8026 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 8027 | return NULL; |
2f90df85 RD |
8028 | } |
8029 | if (_obj3) | |
8030 | { | |
8031 | _arg3 = &temp0; | |
8032 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 8033 | return NULL; |
2f90df85 | 8034 | } |
1d99702e RD |
8035 | if (_argo5) { |
8036 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8037 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
8038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
8039 | return NULL; | |
8040 | } | |
8041 | } | |
137b5242 RD |
8042 | if (_obj6) |
8043 | { | |
8044 | _arg6 = wxString_in_helper(_obj6); | |
8045 | if (_arg6 == NULL) | |
8046 | return NULL; | |
8047 | } | |
cf694132 | 8048 | { |
4268f798 | 8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8050 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 8051 | |
4268f798 | 8052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8053 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8054 | } if (_result) { |
8055 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8056 | _resultobj = Py_BuildValue("s",_ptemp); | |
8057 | } else { | |
8058 | Py_INCREF(Py_None); | |
8059 | _resultobj = Py_None; | |
8060 | } | |
137b5242 RD |
8061 | { |
8062 | if (_obj6) | |
8063 | delete _arg6; | |
8064 | } | |
8ab979d7 RD |
8065 | return _resultobj; |
8066 | } | |
8067 | ||
09f3d4e6 RD |
8068 | #define new_wxPreScrollBar() (new wxScrollBar()) |
8069 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject * _resultobj; | |
8071 | wxScrollBar * _result; | |
8072 | char *_kwnames[] = { NULL }; | |
8073 | char _ptemp[128]; | |
8074 | ||
8075 | self = self; | |
8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
8077 | return NULL; | |
8078 | { | |
4268f798 | 8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8080 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
09f3d4e6 | 8081 | |
4268f798 | 8082 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8083 | if (PyErr_Occurred()) return NULL; |
8084 | } if (_result) { | |
8085 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8086 | _resultobj = Py_BuildValue("s",_ptemp); | |
8087 | } else { | |
8088 | Py_INCREF(Py_None); | |
8089 | _resultobj = Py_None; | |
8090 | } | |
8091 | return _resultobj; | |
8092 | } | |
8093 | ||
8094 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8095 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject * _resultobj; | |
8097 | bool _result; | |
8098 | wxScrollBar * _arg0; | |
8099 | wxWindow * _arg1; | |
8100 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8101 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8102 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8103 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
8104 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 8105 | wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr; |
09f3d4e6 RD |
8106 | PyObject * _argo0 = 0; |
8107 | PyObject * _argo1 = 0; | |
8108 | wxPoint temp; | |
8109 | PyObject * _obj3 = 0; | |
8110 | wxSize temp0; | |
8111 | PyObject * _obj4 = 0; | |
8112 | PyObject * _argo6 = 0; | |
137b5242 | 8113 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
8114 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
8115 | ||
8116 | self = self; | |
137b5242 | 8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
8118 | return NULL; |
8119 | if (_argo0) { | |
8120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
8123 | return NULL; | |
8124 | } | |
8125 | } | |
8126 | if (_argo1) { | |
8127 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8128 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
8130 | return NULL; | |
8131 | } | |
8132 | } | |
8133 | if (_obj3) | |
8134 | { | |
8135 | _arg3 = &temp; | |
8136 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8137 | return NULL; | |
8138 | } | |
8139 | if (_obj4) | |
8140 | { | |
8141 | _arg4 = &temp0; | |
8142 | if (! wxSize_helper(_obj4, &_arg4)) | |
8143 | return NULL; | |
8144 | } | |
8145 | if (_argo6) { | |
8146 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8147 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
8149 | return NULL; | |
8150 | } | |
8151 | } | |
137b5242 RD |
8152 | if (_obj7) |
8153 | { | |
8154 | _arg7 = wxString_in_helper(_obj7); | |
8155 | if (_arg7 == NULL) | |
8156 | return NULL; | |
8157 | } | |
09f3d4e6 | 8158 | { |
4268f798 | 8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8160 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 8161 | |
4268f798 | 8162 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8163 | if (PyErr_Occurred()) return NULL; |
8164 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
8165 | { |
8166 | if (_obj7) | |
8167 | delete _arg7; | |
8168 | } | |
09f3d4e6 RD |
8169 | return _resultobj; |
8170 | } | |
8171 | ||
8ab979d7 | 8172 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
efc5f224 | 8173 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8174 | PyObject * _resultobj; |
8175 | int _result; | |
8176 | wxScrollBar * _arg0; | |
1d99702e | 8177 | PyObject * _argo0 = 0; |
efc5f224 | 8178 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8179 | |
8180 | self = self; | |
efc5f224 | 8181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
8ab979d7 | 8182 | return NULL; |
1d99702e RD |
8183 | if (_argo0) { |
8184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
8186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
8187 | return NULL; | |
8188 | } | |
8189 | } | |
cf694132 | 8190 | { |
4268f798 | 8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8192 | _result = (int )wxScrollBar_GetRange(_arg0); |
cf694132 | 8193 | |
4268f798 | 8194 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8195 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8196 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8197 | return _resultobj; |
8198 | } | |
8199 | ||
8200 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 8201 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8202 | PyObject * _resultobj; |
8203 | int _result; | |
8204 | wxScrollBar * _arg0; | |
1d99702e | 8205 | PyObject * _argo0 = 0; |
efc5f224 | 8206 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8207 | |
8208 | self = self; | |
efc5f224 | 8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 8210 | return NULL; |
1d99702e RD |
8211 | if (_argo0) { |
8212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
8214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
8215 | return NULL; | |
8216 | } | |
8217 | } | |
cf694132 | 8218 | { |
4268f798 | 8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8220 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
cf694132 | 8221 | |
4268f798 | 8222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8224 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8225 | return _resultobj; |
8226 | } | |
8227 | ||
b8b8dda7 | 8228 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
efc5f224 | 8229 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8230 | PyObject * _resultobj; |
8231 | int _result; | |
8232 | wxScrollBar * _arg0; | |
1d99702e | 8233 | PyObject * _argo0 = 0; |
efc5f224 | 8234 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8235 | |
8236 | self = self; | |
efc5f224 | 8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
8ab979d7 | 8238 | return NULL; |
1d99702e RD |
8239 | if (_argo0) { |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
8243 | return NULL; |
8244 | } | |
8245 | } | |
cf694132 | 8246 | { |
4268f798 | 8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8248 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
cf694132 | 8249 | |
4268f798 | 8250 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8251 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8252 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8253 | return _resultobj; |
8254 | } | |
8255 | ||
8256 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
efc5f224 | 8257 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8258 | PyObject * _resultobj; |
8259 | int _result; | |
8260 | wxScrollBar * _arg0; | |
1d99702e | 8261 | PyObject * _argo0 = 0; |
efc5f224 | 8262 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8263 | |
8264 | self = self; | |
efc5f224 | 8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
8ab979d7 | 8266 | return NULL; |
1d99702e RD |
8267 | if (_argo0) { |
8268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
8270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
8271 | return NULL; | |
8272 | } | |
8273 | } | |
cf694132 | 8274 | { |
4268f798 | 8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8276 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
cf694132 | 8277 | |
4268f798 | 8278 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8279 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8280 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8281 | return _resultobj; |
8282 | } | |
8283 | ||
ebf4302c RD |
8284 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
8285 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8286 | PyObject * _resultobj; | |
8287 | bool _result; | |
8288 | wxScrollBar * _arg0; | |
8289 | PyObject * _argo0 = 0; | |
8290 | char *_kwnames[] = { "self", NULL }; | |
8291 | ||
8292 | self = self; | |
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
8294 | return NULL; | |
8295 | if (_argo0) { | |
8296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
8299 | return NULL; | |
8300 | } | |
8301 | } | |
8302 | { | |
4268f798 | 8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8304 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
ebf4302c | 8305 | |
4268f798 | 8306 | wxPyEndAllowThreads(__tstate); |
ebf4302c RD |
8307 | if (PyErr_Occurred()) return NULL; |
8308 | } _resultobj = Py_BuildValue("i",_result); | |
8309 | return _resultobj; | |
8310 | } | |
8311 | ||
b8b8dda7 | 8312 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
efc5f224 | 8313 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8314 | PyObject * _resultobj; |
8315 | wxScrollBar * _arg0; | |
8316 | int _arg1; | |
1d99702e | 8317 | PyObject * _argo0 = 0; |
efc5f224 | 8318 | char *_kwnames[] = { "self","viewStart", NULL }; |
8ab979d7 RD |
8319 | |
8320 | self = self; | |
efc5f224 | 8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8322 | return NULL; |
1d99702e RD |
8323 | if (_argo0) { |
8324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
b8b8dda7 | 8326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
8ab979d7 RD |
8327 | return NULL; |
8328 | } | |
8329 | } | |
cf694132 | 8330 | { |
4268f798 | 8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8332 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
cf694132 | 8333 | |
4268f798 | 8334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8336 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8337 | _resultobj = Py_None; |
8338 | return _resultobj; | |
8339 | } | |
8340 | ||
8341 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 8342 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8343 | PyObject * _resultobj; |
8344 | wxScrollBar * _arg0; | |
8345 | int _arg1; | |
8346 | int _arg2; | |
8347 | int _arg3; | |
8348 | int _arg4; | |
1d99702e RD |
8349 | bool _arg5 = (bool ) TRUE; |
8350 | PyObject * _argo0 = 0; | |
8351 | int tempbool5 = (int) TRUE; | |
efc5f224 | 8352 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
8ab979d7 RD |
8353 | |
8354 | self = self; | |
efc5f224 | 8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
8ab979d7 | 8356 | return NULL; |
1d99702e RD |
8357 | if (_argo0) { |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8ab979d7 RD |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
8364 | _arg5 = (bool ) tempbool5; | |
cf694132 | 8365 | { |
4268f798 | 8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8367 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 8368 | |
4268f798 | 8369 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8370 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8371 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8372 | _resultobj = Py_None; |
8373 | return _resultobj; | |
8374 | } | |
8375 | ||
8376 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8377 | wxSpinButton *src; | |
8378 | wxControl *dest; | |
8379 | src = (wxSpinButton *) ptr; | |
8380 | dest = (wxControl *) src; | |
8381 | return (void *) dest; | |
8382 | } | |
8383 | ||
8384 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8385 | wxSpinButton *src; | |
8386 | wxWindow *dest; | |
8387 | src = (wxSpinButton *) ptr; | |
8388 | dest = (wxWindow *) src; | |
8389 | return (void *) dest; | |
8390 | } | |
8391 | ||
8392 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8393 | wxSpinButton *src; | |
8394 | wxEvtHandler *dest; | |
8395 | src = (wxSpinButton *) ptr; | |
8396 | dest = (wxEvtHandler *) src; | |
8397 | return (void *) dest; | |
8398 | } | |
8399 | ||
9416aa89 RD |
8400 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
8401 | wxSpinButton *src; | |
8402 | wxObject *dest; | |
8403 | src = (wxSpinButton *) ptr; | |
8404 | dest = (wxObject *) src; | |
8405 | return (void *) dest; | |
8406 | } | |
8407 | ||
8ab979d7 | 8408 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8409 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8410 | PyObject * _resultobj; |
8411 | wxSpinButton * _result; | |
8412 | wxWindow * _arg0; | |
1d99702e | 8413 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
8414 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8415 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 8416 | long _arg4 = (long ) wxSP_HORIZONTAL; |
137b5242 | 8417 | wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME; |
1d99702e | 8418 | PyObject * _argo0 = 0; |
2f90df85 RD |
8419 | wxPoint temp; |
8420 | PyObject * _obj2 = 0; | |
8421 | wxSize temp0; | |
8422 | PyObject * _obj3 = 0; | |
137b5242 | 8423 | PyObject * _obj5 = 0; |
efc5f224 | 8424 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
8425 | char _ptemp[128]; |
8426 | ||
8427 | self = self; | |
137b5242 | 8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 8429 | return NULL; |
1d99702e RD |
8430 | if (_argo0) { |
8431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
8434 | return NULL; | |
8435 | } | |
8436 | } | |
2f90df85 RD |
8437 | if (_obj2) |
8438 | { | |
8439 | _arg2 = &temp; | |
8440 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 8441 | return NULL; |
2f90df85 RD |
8442 | } |
8443 | if (_obj3) | |
8444 | { | |
8445 | _arg3 = &temp0; | |
8446 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 8447 | return NULL; |
137b5242 RD |
8448 | } |
8449 | if (_obj5) | |
8450 | { | |
8451 | _arg5 = wxString_in_helper(_obj5); | |
8452 | if (_arg5 == NULL) | |
8453 | return NULL; | |
2f90df85 | 8454 | } |
cf694132 | 8455 | { |
4268f798 | 8456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8457 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 8458 | |
4268f798 | 8459 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8460 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8461 | } if (_result) { |
8462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8463 | _resultobj = Py_BuildValue("s",_ptemp); | |
8464 | } else { | |
8465 | Py_INCREF(Py_None); | |
8466 | _resultobj = Py_None; | |
8467 | } | |
137b5242 RD |
8468 | { |
8469 | if (_obj5) | |
8470 | delete _arg5; | |
8471 | } | |
8ab979d7 RD |
8472 | return _resultobj; |
8473 | } | |
8474 | ||
09f3d4e6 RD |
8475 | #define new_wxPreSpinButton() (new wxSpinButton()) |
8476 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8477 | PyObject * _resultobj; | |
8478 | wxSpinButton * _result; | |
8479 | char *_kwnames[] = { NULL }; | |
8480 | char _ptemp[128]; | |
8481 | ||
8482 | self = self; | |
8483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8484 | return NULL; | |
8485 | { | |
4268f798 | 8486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8487 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
09f3d4e6 | 8488 | |
4268f798 | 8489 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8490 | if (PyErr_Occurred()) return NULL; |
8491 | } if (_result) { | |
8492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8493 | _resultobj = Py_BuildValue("s",_ptemp); | |
8494 | } else { | |
8495 | Py_INCREF(Py_None); | |
8496 | _resultobj = Py_None; | |
8497 | } | |
8498 | return _resultobj; | |
8499 | } | |
8500 | ||
8501 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8502 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8503 | PyObject * _resultobj; | |
8504 | bool _result; | |
8505 | wxSpinButton * _arg0; | |
8506 | wxWindow * _arg1; | |
8507 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8508 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8509 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8510 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
137b5242 | 8511 | wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME; |
09f3d4e6 RD |
8512 | PyObject * _argo0 = 0; |
8513 | PyObject * _argo1 = 0; | |
8514 | wxPoint temp; | |
8515 | PyObject * _obj3 = 0; | |
8516 | wxSize temp0; | |
8517 | PyObject * _obj4 = 0; | |
137b5242 | 8518 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
8519 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
8520 | ||
8521 | self = self; | |
137b5242 | 8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
8523 | return NULL; |
8524 | if (_argo0) { | |
8525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8528 | return NULL; | |
8529 | } | |
8530 | } | |
8531 | if (_argo1) { | |
8532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8535 | return NULL; | |
8536 | } | |
8537 | } | |
8538 | if (_obj3) | |
8539 | { | |
8540 | _arg3 = &temp; | |
8541 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8542 | return NULL; | |
8543 | } | |
8544 | if (_obj4) | |
8545 | { | |
8546 | _arg4 = &temp0; | |
8547 | if (! wxSize_helper(_obj4, &_arg4)) | |
8548 | return NULL; | |
137b5242 RD |
8549 | } |
8550 | if (_obj6) | |
8551 | { | |
8552 | _arg6 = wxString_in_helper(_obj6); | |
8553 | if (_arg6 == NULL) | |
8554 | return NULL; | |
09f3d4e6 RD |
8555 | } |
8556 | { | |
4268f798 | 8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8558 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 8559 | |
4268f798 | 8560 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8561 | if (PyErr_Occurred()) return NULL; |
8562 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
8563 | { |
8564 | if (_obj6) | |
8565 | delete _arg6; | |
8566 | } | |
09f3d4e6 RD |
8567 | return _resultobj; |
8568 | } | |
8569 | ||
8ab979d7 | 8570 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
efc5f224 | 8571 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8572 | PyObject * _resultobj; |
8573 | int _result; | |
8574 | wxSpinButton * _arg0; | |
1d99702e | 8575 | PyObject * _argo0 = 0; |
efc5f224 | 8576 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8577 | |
8578 | self = self; | |
efc5f224 | 8579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 8580 | return NULL; |
1d99702e RD |
8581 | if (_argo0) { |
8582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8585 | return NULL; | |
8586 | } | |
8587 | } | |
cf694132 | 8588 | { |
4268f798 | 8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8590 | _result = (int )wxSpinButton_GetMax(_arg0); |
cf694132 | 8591 | |
4268f798 | 8592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8593 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8594 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8595 | return _resultobj; |
8596 | } | |
8597 | ||
8598 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 8599 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8600 | PyObject * _resultobj; |
8601 | int _result; | |
8602 | wxSpinButton * _arg0; | |
1d99702e | 8603 | PyObject * _argo0 = 0; |
efc5f224 | 8604 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8605 | |
8606 | self = self; | |
efc5f224 | 8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 8608 | return NULL; |
1d99702e RD |
8609 | if (_argo0) { |
8610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8613 | return NULL; | |
8614 | } | |
8615 | } | |
cf694132 | 8616 | { |
4268f798 | 8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8618 | _result = (int )wxSpinButton_GetMin(_arg0); |
cf694132 | 8619 | |
4268f798 | 8620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8622 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8623 | return _resultobj; |
8624 | } | |
8625 | ||
8626 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 8627 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8628 | PyObject * _resultobj; |
8629 | int _result; | |
8630 | wxSpinButton * _arg0; | |
1d99702e | 8631 | PyObject * _argo0 = 0; |
efc5f224 | 8632 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8633 | |
8634 | self = self; | |
efc5f224 | 8635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 8636 | return NULL; |
1d99702e RD |
8637 | if (_argo0) { |
8638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8641 | return NULL; | |
8642 | } | |
8643 | } | |
cf694132 | 8644 | { |
4268f798 | 8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8646 | _result = (int )wxSpinButton_GetValue(_arg0); |
cf694132 | 8647 | |
4268f798 | 8648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8649 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8650 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8651 | return _resultobj; |
8652 | } | |
8653 | ||
8654 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 8655 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8656 | PyObject * _resultobj; |
8657 | wxSpinButton * _arg0; | |
8658 | int _arg1; | |
8659 | int _arg2; | |
1d99702e | 8660 | PyObject * _argo0 = 0; |
efc5f224 | 8661 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
8662 | |
8663 | self = self; | |
efc5f224 | 8664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8665 | return NULL; |
1d99702e RD |
8666 | if (_argo0) { |
8667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8670 | return NULL; | |
8671 | } | |
8672 | } | |
cf694132 | 8673 | { |
4268f798 | 8674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8675 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
cf694132 | 8676 | |
4268f798 | 8677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8678 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8679 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8680 | _resultobj = Py_None; |
8681 | return _resultobj; | |
8682 | } | |
8683 | ||
8684 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 8685 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8686 | PyObject * _resultobj; |
8687 | wxSpinButton * _arg0; | |
8688 | int _arg1; | |
1d99702e | 8689 | PyObject * _argo0 = 0; |
efc5f224 | 8690 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
8691 | |
8692 | self = self; | |
efc5f224 | 8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8694 | return NULL; |
1d99702e RD |
8695 | if (_argo0) { |
8696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8ab979d7 RD |
8698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8699 | return NULL; | |
8700 | } | |
8701 | } | |
cf694132 | 8702 | { |
4268f798 | 8703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8704 | wxSpinButton_SetValue(_arg0,_arg1); |
cf694132 | 8705 | |
4268f798 | 8706 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8707 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8708 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8709 | _resultobj = Py_None; |
8710 | return _resultobj; | |
8711 | } | |
8712 | ||
8713 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8714 | wxStaticBitmap *src; | |
8715 | wxControl *dest; | |
8716 | src = (wxStaticBitmap *) ptr; | |
8717 | dest = (wxControl *) src; | |
8718 | return (void *) dest; | |
8719 | } | |
8720 | ||
8721 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8722 | wxStaticBitmap *src; | |
8723 | wxWindow *dest; | |
8724 | src = (wxStaticBitmap *) ptr; | |
8725 | dest = (wxWindow *) src; | |
8726 | return (void *) dest; | |
8727 | } | |
8728 | ||
8729 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8730 | wxStaticBitmap *src; | |
8731 | wxEvtHandler *dest; | |
8732 | src = (wxStaticBitmap *) ptr; | |
8733 | dest = (wxEvtHandler *) src; | |
8734 | return (void *) dest; | |
8735 | } | |
8736 | ||
9416aa89 RD |
8737 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8738 | wxStaticBitmap *src; | |
8739 | wxObject *dest; | |
8740 | src = (wxStaticBitmap *) ptr; | |
8741 | dest = (wxObject *) src; | |
8742 | return (void *) dest; | |
8743 | } | |
8744 | ||
8ab979d7 | 8745 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 8746 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8747 | PyObject * _resultobj; |
8748 | wxStaticBitmap * _result; | |
8749 | wxWindow * _arg0; | |
8750 | wxWindowID _arg1; | |
8751 | wxBitmap * _arg2; | |
e508a2b6 RD |
8752 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8753 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 8754 | long _arg5 = (long ) 0; |
137b5242 | 8755 | wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr; |
1d99702e | 8756 | PyObject * _argo0 = 0; |
09f3d4e6 RD |
8757 | PyObject * _argo2 = 0; |
8758 | wxPoint temp; | |
8759 | PyObject * _obj3 = 0; | |
8760 | wxSize temp0; | |
8761 | PyObject * _obj4 = 0; | |
137b5242 | 8762 | PyObject * _obj6 = 0; |
09f3d4e6 RD |
8763 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
8764 | char _ptemp[128]; | |
8765 | ||
8766 | self = self; | |
137b5242 | 8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) |
09f3d4e6 RD |
8768 | return NULL; |
8769 | if (_argo0) { | |
8770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8773 | return NULL; | |
8774 | } | |
8775 | } | |
8776 | if (_argo2) { | |
8777 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8778 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8780 | return NULL; | |
8781 | } | |
8782 | } | |
8783 | if (_obj3) | |
8784 | { | |
8785 | _arg3 = &temp; | |
8786 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8787 | return NULL; | |
8788 | } | |
8789 | if (_obj4) | |
8790 | { | |
8791 | _arg4 = &temp0; | |
8792 | if (! wxSize_helper(_obj4, &_arg4)) | |
8793 | return NULL; | |
137b5242 RD |
8794 | } |
8795 | if (_obj6) | |
8796 | { | |
8797 | _arg6 = wxString_in_helper(_obj6); | |
8798 | if (_arg6 == NULL) | |
8799 | return NULL; | |
09f3d4e6 RD |
8800 | } |
8801 | { | |
4268f798 | 8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8803 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
09f3d4e6 | 8804 | |
4268f798 | 8805 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8806 | if (PyErr_Occurred()) return NULL; |
8807 | } if (_result) { | |
8808 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8809 | _resultobj = Py_BuildValue("s",_ptemp); | |
8810 | } else { | |
8811 | Py_INCREF(Py_None); | |
8812 | _resultobj = Py_None; | |
8813 | } | |
137b5242 RD |
8814 | { |
8815 | if (_obj6) | |
8816 | delete _arg6; | |
8817 | } | |
09f3d4e6 RD |
8818 | return _resultobj; |
8819 | } | |
8820 | ||
8821 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8822 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8823 | PyObject * _resultobj; | |
8824 | wxStaticBitmap * _result; | |
8825 | char *_kwnames[] = { NULL }; | |
8826 | char _ptemp[128]; | |
8827 | ||
8828 | self = self; | |
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8830 | return NULL; | |
8831 | { | |
4268f798 | 8832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8833 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
09f3d4e6 | 8834 | |
4268f798 | 8835 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
8836 | if (PyErr_Occurred()) return NULL; |
8837 | } if (_result) { | |
8838 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8839 | _resultobj = Py_BuildValue("s",_ptemp); | |
8840 | } else { | |
8841 | Py_INCREF(Py_None); | |
8842 | _resultobj = Py_None; | |
8843 | } | |
8844 | return _resultobj; | |
8845 | } | |
8846 | ||
8847 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8848 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject * _resultobj; | |
8850 | bool _result; | |
8851 | wxStaticBitmap * _arg0; | |
8852 | wxWindow * _arg1; | |
8853 | wxWindowID _arg2; | |
8854 | wxBitmap * _arg3; | |
8855 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8856 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8857 | long _arg6 = (long ) 0; | |
137b5242 | 8858 | wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr; |
09f3d4e6 RD |
8859 | PyObject * _argo0 = 0; |
8860 | PyObject * _argo1 = 0; | |
8861 | PyObject * _argo3 = 0; | |
2f90df85 | 8862 | wxPoint temp; |
2f90df85 | 8863 | PyObject * _obj4 = 0; |
09f3d4e6 RD |
8864 | wxSize temp0; |
8865 | PyObject * _obj5 = 0; | |
137b5242 | 8866 | PyObject * _obj7 = 0; |
09f3d4e6 | 8867 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; |
8ab979d7 RD |
8868 | |
8869 | self = self; | |
137b5242 | 8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7)) |
8ab979d7 | 8871 | return NULL; |
1d99702e RD |
8872 | if (_argo0) { |
8873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
09f3d4e6 RD |
8874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
8875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8ab979d7 RD |
8876 | return NULL; |
8877 | } | |
8878 | } | |
09f3d4e6 RD |
8879 | if (_argo1) { |
8880 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8881 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8ab979d7 RD |
8883 | return NULL; |
8884 | } | |
8885 | } | |
09f3d4e6 RD |
8886 | if (_argo3) { |
8887 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8888 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8890 | return NULL; | |
8891 | } | |
8892 | } | |
8893 | if (_obj4) | |
2f90df85 | 8894 | { |
09f3d4e6 RD |
8895 | _arg4 = &temp; |
8896 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 8897 | return NULL; |
2f90df85 | 8898 | } |
09f3d4e6 | 8899 | if (_obj5) |
2f90df85 | 8900 | { |
09f3d4e6 RD |
8901 | _arg5 = &temp0; |
8902 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 8903 | return NULL; |
137b5242 RD |
8904 | } |
8905 | if (_obj7) | |
8906 | { | |
8907 | _arg7 = wxString_in_helper(_obj7); | |
8908 | if (_arg7 == NULL) | |
8909 | return NULL; | |
2f90df85 | 8910 | } |
cf694132 | 8911 | { |
4268f798 | 8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 8913 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
cf694132 | 8914 | |
4268f798 | 8915 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8916 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 8917 | } _resultobj = Py_BuildValue("i",_result); |
137b5242 RD |
8918 | { |
8919 | if (_obj7) | |
8920 | delete _arg7; | |
8921 | } | |
8ab979d7 RD |
8922 | return _resultobj; |
8923 | } | |
8924 | ||
8925 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
efc5f224 | 8926 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8927 | PyObject * _resultobj; |
8928 | wxBitmap * _result; | |
8929 | wxStaticBitmap * _arg0; | |
1d99702e | 8930 | PyObject * _argo0 = 0; |
efc5f224 | 8931 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8932 | char _ptemp[128]; |
8933 | ||
8934 | self = self; | |
efc5f224 | 8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
8ab979d7 | 8936 | return NULL; |
1d99702e RD |
8937 | if (_argo0) { |
8938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
8941 | return NULL; | |
8942 | } | |
8943 | } | |
cf694132 | 8944 | { |
4268f798 | 8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8946 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
cf694132 | 8947 | |
4268f798 | 8948 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8949 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8950 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
8951 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8952 | return _resultobj; |
8953 | } | |
8954 | ||
8955 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
efc5f224 | 8956 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8957 | PyObject * _resultobj; |
8958 | wxStaticBitmap * _arg0; | |
8959 | wxBitmap * _arg1; | |
1d99702e RD |
8960 | PyObject * _argo0 = 0; |
8961 | PyObject * _argo1 = 0; | |
efc5f224 | 8962 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
8963 | |
8964 | self = self; | |
efc5f224 | 8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8966 | return NULL; |
1d99702e RD |
8967 | if (_argo0) { |
8968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8ab979d7 RD |
8970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
1d99702e RD |
8974 | if (_argo1) { |
8975 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8976 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
8978 | return NULL; | |
8979 | } | |
8980 | } | |
cf694132 | 8981 | { |
4268f798 | 8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8983 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
cf694132 | 8984 | |
4268f798 | 8985 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8986 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8987 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8988 | _resultobj = Py_None; |
8989 | return _resultobj; | |
8990 | } | |
8991 | ||
8bf5d46e | 8992 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
efc5f224 | 8993 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
8994 | PyObject * _resultobj; |
8995 | wxStaticBitmap * _arg0; | |
8996 | wxIcon * _arg1; | |
1d99702e RD |
8997 | PyObject * _argo0 = 0; |
8998 | PyObject * _argo1 = 0; | |
efc5f224 | 8999 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
9000 | |
9001 | self = self; | |
efc5f224 | 9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 9003 | return NULL; |
1d99702e RD |
9004 | if (_argo0) { |
9005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
9007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
9008 | return NULL; | |
9009 | } | |
9010 | } | |
1d99702e RD |
9011 | if (_argo1) { |
9012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
9014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
9015 | return NULL; | |
9016 | } | |
9017 | } | |
9018 | { | |
4268f798 | 9019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9020 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8bf5d46e | 9021 | |
4268f798 | 9022 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9023 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9024 | } Py_INCREF(Py_None); |
9025 | _resultobj = Py_None; | |
9026 | return _resultobj; | |
9027 | } | |
9028 | ||
8ab979d7 RD |
9029 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
9030 | wxRadioBox *src; | |
9031 | wxControl *dest; | |
9032 | src = (wxRadioBox *) ptr; | |
9033 | dest = (wxControl *) src; | |
9034 | return (void *) dest; | |
9035 | } | |
9036 | ||
9037 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
9038 | wxRadioBox *src; | |
9039 | wxWindow *dest; | |
9040 | src = (wxRadioBox *) ptr; | |
9041 | dest = (wxWindow *) src; | |
9042 | return (void *) dest; | |
9043 | } | |
9044 | ||
9045 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
9046 | wxRadioBox *src; | |
9047 | wxEvtHandler *dest; | |
9048 | src = (wxRadioBox *) ptr; | |
9049 | dest = (wxEvtHandler *) src; | |
9050 | return (void *) dest; | |
9051 | } | |
9052 | ||
9416aa89 RD |
9053 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
9054 | wxRadioBox *src; | |
9055 | wxObject *dest; | |
9056 | src = (wxRadioBox *) ptr; | |
9057 | dest = (wxObject *) src; | |
9058 | return (void *) dest; | |
9059 | } | |
9060 | ||
8ab979d7 | 9061 | #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)) |
efc5f224 | 9062 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9063 | PyObject * _resultobj; |
9064 | wxRadioBox * _result; | |
9065 | wxWindow * _arg0; | |
9066 | wxWindowID _arg1; | |
9067 | wxString * _arg2; | |
e508a2b6 RD |
9068 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9069 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
9070 | int _arg5 = (int ) 0; |
9071 | wxString * _arg6 = (wxString *) NULL; | |
9072 | int _arg7 = (int ) 0; | |
9073 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
e508a2b6 | 9074 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 9075 | wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr; |
1d99702e | 9076 | PyObject * _argo0 = 0; |
8ab979d7 | 9077 | PyObject * _obj2 = 0; |
2f90df85 RD |
9078 | wxPoint temp; |
9079 | PyObject * _obj3 = 0; | |
9080 | wxSize temp0; | |
9081 | PyObject * _obj4 = 0; | |
8ab979d7 | 9082 | PyObject * _obj6 = 0; |
1d99702e | 9083 | PyObject * _argo9 = 0; |
137b5242 | 9084 | PyObject * _obj10 = 0; |
eec92d76 | 9085 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
8ab979d7 RD |
9086 | char _ptemp[128]; |
9087 | ||
9088 | self = self; | |
137b5242 | 9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10)) |
8ab979d7 | 9090 | return NULL; |
1d99702e RD |
9091 | if (_argo0) { |
9092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
9095 | return NULL; | |
9096 | } | |
9097 | } | |
9098 | { | |
c8bc7bb8 RD |
9099 | _arg2 = wxString_in_helper(_obj2); |
9100 | if (_arg2 == NULL) | |
185d7c3e | 9101 | return NULL; |
8ab979d7 | 9102 | } |
2f90df85 RD |
9103 | if (_obj3) |
9104 | { | |
9105 | _arg3 = &temp; | |
9106 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8ab979d7 | 9107 | return NULL; |
2f90df85 RD |
9108 | } |
9109 | if (_obj4) | |
9110 | { | |
9111 | _arg4 = &temp0; | |
9112 | if (! wxSize_helper(_obj4, &_arg4)) | |
8ab979d7 | 9113 | return NULL; |
2f90df85 | 9114 | } |
8ab979d7 RD |
9115 | if (_obj6) |
9116 | { | |
9117 | _arg6 = wxString_LIST_helper(_obj6); | |
9118 | if (_arg6 == NULL) { | |
9119 | return NULL; | |
9120 | } | |
9121 | } | |
1d99702e RD |
9122 | if (_argo9) { |
9123 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9124 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8ab979d7 RD |
9125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
9126 | return NULL; | |
9127 | } | |
9128 | } | |
137b5242 RD |
9129 | if (_obj10) |
9130 | { | |
9131 | _arg10 = wxString_in_helper(_obj10); | |
9132 | if (_arg10 == NULL) | |
9133 | return NULL; | |
9134 | } | |
8ab979d7 | 9135 | { |
cf694132 RD |
9136 | if (_obj6) { |
9137 | _arg5 = PyList_Size(_obj6); | |
9138 | } | |
9139 | else { | |
9140 | _arg5 = 0; | |
9141 | } | |
8ab979d7 | 9142 | } |
cf694132 | 9143 | { |
4268f798 | 9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 9145 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
cf694132 | 9146 | |
4268f798 | 9147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9148 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9149 | } if (_result) { |
9150 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9151 | _resultobj = Py_BuildValue("s",_ptemp); | |
9152 | } else { | |
9153 | Py_INCREF(Py_None); | |
9154 | _resultobj = Py_None; | |
9155 | } | |
8ab979d7 RD |
9156 | { |
9157 | if (_obj2) | |
9158 | delete _arg2; | |
9159 | } | |
9160 | { | |
9161 | delete [] _arg6; | |
137b5242 RD |
9162 | } |
9163 | { | |
9164 | if (_obj10) | |
9165 | delete _arg10; | |
8ab979d7 RD |
9166 | } |
9167 | return _resultobj; | |
9168 | } | |
9169 | ||
09f3d4e6 RD |
9170 | #define new_wxPreRadioBox() (new wxRadioBox()) |
9171 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9172 | PyObject * _resultobj; | |
9173 | wxRadioBox * _result; | |
9174 | char *_kwnames[] = { NULL }; | |
9175 | char _ptemp[128]; | |
9176 | ||
9177 | self = self; | |
9178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
9179 | return NULL; | |
9180 | { | |
4268f798 | 9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9182 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
09f3d4e6 | 9183 | |
4268f798 | 9184 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9185 | if (PyErr_Occurred()) return NULL; |
9186 | } if (_result) { | |
9187 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9188 | _resultobj = Py_BuildValue("s",_ptemp); | |
9189 | } else { | |
9190 | Py_INCREF(Py_None); | |
9191 | _resultobj = Py_None; | |
9192 | } | |
9193 | return _resultobj; | |
9194 | } | |
9195 | ||
9196 | #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)) | |
9197 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9198 | PyObject * _resultobj; | |
9199 | bool _result; | |
9200 | wxRadioBox * _arg0; | |
9201 | wxWindow * _arg1; | |
9202 | wxWindowID _arg2; | |
9203 | wxString * _arg3; | |
9204 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9205 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9206 | int _arg6 = (int ) 0; | |
9207 | wxString * _arg7 = (wxString *) NULL; | |
9208 | int _arg8 = (int ) 0; | |
9209 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
9210 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 9211 | wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr; |
09f3d4e6 RD |
9212 | PyObject * _argo0 = 0; |
9213 | PyObject * _argo1 = 0; | |
9214 | PyObject * _obj3 = 0; | |
9215 | wxPoint temp; | |
9216 | PyObject * _obj4 = 0; | |
9217 | wxSize temp0; | |
9218 | PyObject * _obj5 = 0; | |
9219 | PyObject * _obj7 = 0; | |
9220 | PyObject * _argo10 = 0; | |
137b5242 | 9221 | PyObject * _obj11 = 0; |
09f3d4e6 RD |
9222 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
9223 | ||
9224 | self = self; | |
137b5242 | 9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11)) |
09f3d4e6 RD |
9226 | return NULL; |
9227 | if (_argo0) { | |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
9231 | return NULL; | |
9232 | } | |
9233 | } | |
9234 | if (_argo1) { | |
9235 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9236 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
9238 | return NULL; | |
9239 | } | |
9240 | } | |
9241 | { | |
c8bc7bb8 RD |
9242 | _arg3 = wxString_in_helper(_obj3); |
9243 | if (_arg3 == NULL) | |
09f3d4e6 | 9244 | return NULL; |
09f3d4e6 RD |
9245 | } |
9246 | if (_obj4) | |
9247 | { | |
9248 | _arg4 = &temp; | |
9249 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9250 | return NULL; | |
9251 | } | |
9252 | if (_obj5) | |
9253 | { | |
9254 | _arg5 = &temp0; | |
9255 | if (! wxSize_helper(_obj5, &_arg5)) | |
9256 | return NULL; | |
9257 | } | |
9258 | if (_obj7) | |
9259 | { | |
9260 | _arg7 = wxString_LIST_helper(_obj7); | |
9261 | if (_arg7 == NULL) { | |
9262 | return NULL; | |
9263 | } | |
9264 | } | |
9265 | if (_argo10) { | |
9266 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
9267 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
9268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
9269 | return NULL; | |
9270 | } | |
9271 | } | |
137b5242 RD |
9272 | if (_obj11) |
9273 | { | |
9274 | _arg11 = wxString_in_helper(_obj11); | |
9275 | if (_arg11 == NULL) | |
9276 | return NULL; | |
9277 | } | |
09f3d4e6 RD |
9278 | { |
9279 | if (_obj7) { | |
9280 | _arg6 = PyList_Size(_obj7); | |
9281 | } | |
9282 | else { | |
9283 | _arg6 = 0; | |
9284 | } | |
9285 | } | |
9286 | { | |
4268f798 | 9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 9288 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11); |
09f3d4e6 | 9289 | |
4268f798 | 9290 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9291 | if (PyErr_Occurred()) return NULL; |
9292 | } _resultobj = Py_BuildValue("i",_result); | |
9293 | { | |
9294 | if (_obj3) | |
9295 | delete _arg3; | |
9296 | } | |
9297 | { | |
9298 | delete [] _arg7; | |
137b5242 RD |
9299 | } |
9300 | { | |
9301 | if (_obj11) | |
9302 | delete _arg11; | |
09f3d4e6 RD |
9303 | } |
9304 | return _resultobj; | |
9305 | } | |
9306 | ||
0699c864 | 9307 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 9308 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9309 | PyObject * _resultobj; |
9310 | wxRadioBox * _arg0; | |
9311 | bool _arg1; | |
1d99702e | 9312 | PyObject * _argo0 = 0; |
8ab979d7 | 9313 | int tempbool1; |
efc5f224 | 9314 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
9315 | |
9316 | self = self; | |
efc5f224 | 9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9318 | return NULL; |
1d99702e RD |
9319 | if (_argo0) { |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9323 | return NULL; |
9324 | } | |
9325 | } | |
9326 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9327 | { |
4268f798 | 9328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9329 | wxRadioBox_Enable(_arg0,_arg1); |
cf694132 | 9330 | |
4268f798 | 9331 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9333 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9334 | _resultobj = Py_None; |
9335 | return _resultobj; | |
9336 | } | |
9337 | ||
0699c864 | 9338 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 9339 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9340 | PyObject * _resultobj; |
9341 | wxRadioBox * _arg0; | |
9342 | int _arg1; | |
9343 | bool _arg2; | |
1d99702e | 9344 | PyObject * _argo0 = 0; |
8ab979d7 | 9345 | int tempbool2; |
efc5f224 | 9346 | char *_kwnames[] = { "self","n","enable", NULL }; |
8ab979d7 RD |
9347 | |
9348 | self = self; | |
efc5f224 | 9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 9350 | return NULL; |
1d99702e RD |
9351 | if (_argo0) { |
9352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0699c864 | 9354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9355 | return NULL; |
9356 | } | |
9357 | } | |
9358 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9359 | { |
4268f798 | 9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9361 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
cf694132 | 9362 | |
4268f798 | 9363 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9365 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9366 | _resultobj = Py_None; |
9367 | return _resultobj; | |
9368 | } | |
9369 | ||
9370 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
efc5f224 | 9371 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9372 | PyObject * _resultobj; |
9373 | int _result; | |
9374 | wxRadioBox * _arg0; | |
9375 | wxString * _arg1; | |
1d99702e | 9376 | PyObject * _argo0 = 0; |
8ab979d7 | 9377 | PyObject * _obj1 = 0; |
efc5f224 | 9378 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
9379 | |
9380 | self = self; | |
efc5f224 | 9381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9382 | return NULL; |
1d99702e RD |
9383 | if (_argo0) { |
9384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
9387 | return NULL; | |
9388 | } | |
9389 | } | |
9390 | { | |
c8bc7bb8 RD |
9391 | _arg1 = wxString_in_helper(_obj1); |
9392 | if (_arg1 == NULL) | |
185d7c3e | 9393 | return NULL; |
8ab979d7 | 9394 | } |
cf694132 | 9395 | { |
4268f798 | 9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9397 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
cf694132 | 9398 | |
4268f798 | 9399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9401 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9402 | { |
9403 | if (_obj1) | |
9404 | delete _arg1; | |
9405 | } | |
9406 | return _resultobj; | |
9407 | } | |
9408 | ||
0adbc166 RD |
9409 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
9410 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9411 | PyObject * _resultobj; |
9412 | wxString * _result; | |
9413 | wxRadioBox * _arg0; | |
9414 | int _arg1; | |
1d99702e | 9415 | PyObject * _argo0 = 0; |
efc5f224 | 9416 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
9417 | |
9418 | self = self; | |
0adbc166 | 9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9420 | return NULL; |
1d99702e RD |
9421 | if (_argo0) { |
9422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 9424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9425 | return NULL; |
9426 | } | |
9427 | } | |
8ab979d7 | 9428 | { |
4268f798 | 9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9430 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
cf694132 | 9431 | |
4268f798 | 9432 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9434 | }{ |
c8bc7bb8 RD |
9435 | #if wxUSE_UNICODE |
9436 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9437 | #else | |
eec92d76 | 9438 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9439 | #endif |
8ab979d7 RD |
9440 | } |
9441 | { | |
9442 | delete _result; | |
9443 | } | |
9444 | return _resultobj; | |
9445 | } | |
9446 | ||
0adbc166 RD |
9447 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
9448 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9449 | PyObject * _resultobj; |
8ab979d7 | 9450 | wxRadioBox * _arg0; |
0adbc166 RD |
9451 | int _arg1; |
9452 | wxString * _arg2; | |
1d99702e | 9453 | PyObject * _argo0 = 0; |
0adbc166 RD |
9454 | PyObject * _obj2 = 0; |
9455 | char *_kwnames[] = { "self","n","label", NULL }; | |
8ab979d7 RD |
9456 | |
9457 | self = self; | |
0adbc166 | 9458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9459 | return NULL; |
1d99702e RD |
9460 | if (_argo0) { |
9461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
0adbc166 | 9463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9464 | return NULL; |
9465 | } | |
9466 | } | |
0adbc166 | 9467 | { |
c8bc7bb8 RD |
9468 | _arg2 = wxString_in_helper(_obj2); |
9469 | if (_arg2 == NULL) | |
0adbc166 | 9470 | return NULL; |
0adbc166 | 9471 | } |
cf694132 | 9472 | { |
4268f798 | 9473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9474 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); |
cf694132 | 9475 | |
4268f798 | 9476 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9477 | if (PyErr_Occurred()) return NULL; |
0adbc166 RD |
9478 | } Py_INCREF(Py_None); |
9479 | _resultobj = Py_None; | |
9480 | { | |
9481 | if (_obj2) | |
9482 | delete _arg2; | |
9483 | } | |
8ab979d7 RD |
9484 | return _resultobj; |
9485 | } | |
9486 | ||
3a0958b1 RD |
9487 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
9488 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9489 | PyObject * _resultobj; |
0adbc166 | 9490 | int _result; |
8ab979d7 | 9491 | wxRadioBox * _arg0; |
1d99702e | 9492 | PyObject * _argo0 = 0; |
0adbc166 | 9493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9494 | |
9495 | self = self; | |
3a0958b1 | 9496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 9497 | return NULL; |
1d99702e RD |
9498 | if (_argo0) { |
9499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9502 | return NULL; |
9503 | } | |
9504 | } | |
8ab979d7 | 9505 | { |
4268f798 | 9506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9507 | _result = (int )wxRadioBox_GetColumnCount(_arg0); |
cf694132 | 9508 | |
4268f798 | 9509 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9510 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 9511 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9512 | return _resultobj; |
9513 | } | |
9514 | ||
3a0958b1 RD |
9515 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) |
9516 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9517 | PyObject * _resultobj; |
3a0958b1 | 9518 | int _result; |
8ab979d7 | 9519 | wxRadioBox * _arg0; |
1d99702e | 9520 | PyObject * _argo0 = 0; |
efc5f224 | 9521 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9522 | |
9523 | self = self; | |
3a0958b1 | 9524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) |
8ab979d7 | 9525 | return NULL; |
1d99702e RD |
9526 | if (_argo0) { |
9527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9530 | return NULL; |
9531 | } | |
9532 | } | |
8ab979d7 | 9533 | { |
4268f798 | 9534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9535 | _result = (int )wxRadioBox_GetRowCount(_arg0); |
cf694132 | 9536 | |
4268f798 | 9537 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9538 | if (PyErr_Occurred()) return NULL; |
3a0958b1 | 9539 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9540 | return _resultobj; |
9541 | } | |
9542 | ||
3a0958b1 RD |
9543 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
9544 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9545 | PyObject * _resultobj; |
9546 | int _result; | |
9547 | wxRadioBox * _arg0; | |
1d99702e | 9548 | PyObject * _argo0 = 0; |
efc5f224 | 9549 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9550 | |
9551 | self = self; | |
3a0958b1 | 9552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 9553 | return NULL; |
1d99702e RD |
9554 | if (_argo0) { |
9555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9558 | return NULL; |
9559 | } | |
9560 | } | |
cf694132 | 9561 | { |
4268f798 | 9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9563 | _result = (int )wxRadioBox_GetSelection(_arg0); |
cf694132 | 9564 | |
4268f798 | 9565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9567 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9568 | return _resultobj; |
9569 | } | |
9570 | ||
3a0958b1 RD |
9571 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
9572 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9573 | PyObject * _resultobj; |
3a0958b1 | 9574 | wxString * _result; |
8ab979d7 | 9575 | wxRadioBox * _arg0; |
1d99702e | 9576 | PyObject * _argo0 = 0; |
0adbc166 | 9577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9578 | |
9579 | self = self; | |
3a0958b1 | 9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 9581 | return NULL; |
1d99702e RD |
9582 | if (_argo0) { |
9583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
8ab979d7 RD |
9586 | return NULL; |
9587 | } | |
9588 | } | |
9589 | { | |
4268f798 | 9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9591 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
0adbc166 | 9592 | |
4268f798 | 9593 | wxPyEndAllowThreads(__tstate); |
0adbc166 | 9594 | if (PyErr_Occurred()) return NULL; |
3a0958b1 | 9595 | }{ |
c8bc7bb8 RD |
9596 | #if wxUSE_UNICODE |
9597 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9598 | #else | |
3a0958b1 | 9599 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9600 | #endif |
3a0958b1 RD |
9601 | } |
9602 | { | |
9603 | delete _result; | |
9604 | } | |
0adbc166 RD |
9605 | return _resultobj; |
9606 | } | |
9607 | ||
3a0958b1 RD |
9608 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9609 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0adbc166 RD |
9610 | PyObject * _resultobj; |
9611 | int _result; | |
9612 | wxRadioBox * _arg0; | |
9613 | PyObject * _argo0 = 0; | |
9614 | char *_kwnames[] = { "self", NULL }; | |
9615 | ||
9616 | self = self; | |
3a0958b1 | 9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
185d7c3e | 9618 | return NULL; |
0adbc166 RD |
9619 | if (_argo0) { |
9620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
3a0958b1 | 9622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
8ab979d7 | 9623 | return NULL; |
0adbc166 | 9624 | } |
8ab979d7 | 9625 | } |
cf694132 | 9626 | { |
4268f798 | 9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9628 | _result = (int )wxRadioBox_GetCount(_arg0); |
cf694132 | 9629 | |
4268f798 | 9630 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9631 | if (PyErr_Occurred()) return NULL; |
0adbc166 | 9632 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9633 | return _resultobj; |
9634 | } | |
9635 | ||
9636 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 9637 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9638 | PyObject * _resultobj; |
9639 | wxRadioBox * _arg0; | |
9640 | int _arg1; | |
1d99702e | 9641 | PyObject * _argo0 = 0; |
efc5f224 | 9642 | char *_kwnames[] = { "self","n", NULL }; |
8ab979d7 RD |
9643 | |
9644 | self = self; | |
efc5f224 | 9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9646 | return NULL; |
1d99702e RD |
9647 | if (_argo0) { |
9648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9651 | return NULL; | |
9652 | } | |
9653 | } | |
cf694132 | 9654 | { |
4268f798 | 9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9656 | wxRadioBox_SetSelection(_arg0,_arg1); |
cf694132 | 9657 | |
4268f798 | 9658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9659 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9660 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9661 | _resultobj = Py_None; |
9662 | return _resultobj; | |
9663 | } | |
9664 | ||
9665 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
efc5f224 | 9666 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9667 | PyObject * _resultobj; |
9668 | wxRadioBox * _arg0; | |
9669 | wxString * _arg1; | |
1d99702e | 9670 | PyObject * _argo0 = 0; |
8ab979d7 | 9671 | PyObject * _obj1 = 0; |
efc5f224 | 9672 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
9673 | |
9674 | self = self; | |
efc5f224 | 9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9676 | return NULL; |
1d99702e RD |
9677 | if (_argo0) { |
9678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9681 | return NULL; | |
9682 | } | |
9683 | } | |
9684 | { | |
c8bc7bb8 RD |
9685 | _arg1 = wxString_in_helper(_obj1); |
9686 | if (_arg1 == NULL) | |
185d7c3e | 9687 | return NULL; |
8ab979d7 | 9688 | } |
cf694132 | 9689 | { |
4268f798 | 9690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9691 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
cf694132 | 9692 | |
4268f798 | 9693 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9695 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9696 | _resultobj = Py_None; |
9697 | { | |
9698 | if (_obj1) | |
9699 | delete _arg1; | |
9700 | } | |
9701 | return _resultobj; | |
9702 | } | |
9703 | ||
9704 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 9705 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9706 | PyObject * _resultobj; |
9707 | wxRadioBox * _arg0; | |
9708 | bool _arg1; | |
1d99702e | 9709 | PyObject * _argo0 = 0; |
8ab979d7 | 9710 | int tempbool1; |
efc5f224 | 9711 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
9712 | |
9713 | self = self; | |
efc5f224 | 9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9715 | return NULL; |
1d99702e RD |
9716 | if (_argo0) { |
9717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9720 | return NULL; | |
9721 | } | |
9722 | } | |
9723 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9724 | { |
4268f798 | 9725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9726 | wxRadioBox_Show(_arg0,_arg1); |
cf694132 | 9727 | |
4268f798 | 9728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9730 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9731 | _resultobj = Py_None; |
9732 | return _resultobj; | |
9733 | } | |
9734 | ||
9735 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
efc5f224 | 9736 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9737 | PyObject * _resultobj; |
9738 | wxRadioBox * _arg0; | |
9739 | int _arg1; | |
9740 | bool _arg2; | |
1d99702e | 9741 | PyObject * _argo0 = 0; |
8ab979d7 | 9742 | int tempbool2; |
efc5f224 | 9743 | char *_kwnames[] = { "self","item","show", NULL }; |
8ab979d7 RD |
9744 | |
9745 | self = self; | |
efc5f224 | 9746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 9747 | return NULL; |
1d99702e RD |
9748 | if (_argo0) { |
9749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8ab979d7 RD |
9751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9752 | return NULL; | |
9753 | } | |
9754 | } | |
9755 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9756 | { |
4268f798 | 9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9758 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
cf694132 | 9759 | |
4268f798 | 9760 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9761 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9762 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9763 | _resultobj = Py_None; |
9764 | return _resultobj; | |
9765 | } | |
9766 | ||
9767 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9768 | wxRadioButton *src; | |
9769 | wxControl *dest; | |
9770 | src = (wxRadioButton *) ptr; | |
9771 | dest = (wxControl *) src; | |
9772 | return (void *) dest; | |
9773 | } | |
9774 | ||
9775 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9776 | wxRadioButton *src; | |
9777 | wxWindow *dest; | |
9778 | src = (wxRadioButton *) ptr; | |
9779 | dest = (wxWindow *) src; | |
9780 | return (void *) dest; | |
9781 | } | |
9782 | ||
9783 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9784 | wxRadioButton *src; | |
9785 | wxEvtHandler *dest; | |
9786 | src = (wxRadioButton *) ptr; | |
9787 | dest = (wxEvtHandler *) src; | |
9788 | return (void *) dest; | |
9789 | } | |
9790 | ||
9416aa89 RD |
9791 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9792 | wxRadioButton *src; | |
9793 | wxObject *dest; | |
9794 | src = (wxRadioButton *) ptr; | |
9795 | dest = (wxObject *) src; | |
9796 | return (void *) dest; | |
9797 | } | |
9798 | ||
8ab979d7 | 9799 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 9800 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9801 | PyObject * _resultobj; |
9802 | wxRadioButton * _result; | |
9803 | wxWindow * _arg0; | |
9804 | wxWindowID _arg1; | |
9805 | wxString * _arg2; | |
e508a2b6 RD |
9806 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9807 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e | 9808 | long _arg5 = (long ) 0; |
e508a2b6 | 9809 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 9810 | wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr; |
1d99702e | 9811 | PyObject * _argo0 = 0; |
8ab979d7 | 9812 | PyObject * _obj2 = 0; |
2f90df85 RD |
9813 | wxPoint temp; |
9814 | PyObject * _obj3 = 0; | |
9815 | wxSize temp0; | |
9816 | PyObject * _obj4 = 0; | |
1d99702e | 9817 | PyObject * _argo6 = 0; |
137b5242 | 9818 | PyObject * _obj7 = 0; |
efc5f224 | 9819 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
9820 | char _ptemp[128]; |
9821 | ||
9822 | self = self; | |
137b5242 | 9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
8ab979d7 | 9824 | return NULL; |
1d99702e RD |
9825 | if (_argo0) { |
9826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9829 | return NULL; | |
9830 | } | |
9831 | } | |
9832 | { | |
c8bc7bb8 RD |
9833 | _arg2 = wxString_in_helper(_obj2); |
9834 | if (_arg2 == NULL) | |
8ab979d7 | 9835 | return NULL; |
8ab979d7 | 9836 | } |
2f90df85 RD |
9837 | if (_obj3) |
9838 | { | |
09f3d4e6 RD |
9839 | _arg3 = &temp; |
9840 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9841 | return NULL; | |
9842 | } | |
9843 | if (_obj4) | |
9844 | { | |
9845 | _arg4 = &temp0; | |
9846 | if (! wxSize_helper(_obj4, &_arg4)) | |
9847 | return NULL; | |
9848 | } | |
9849 | if (_argo6) { | |
9850 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9851 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9853 | return NULL; | |
9854 | } | |
9855 | } | |
137b5242 RD |
9856 | if (_obj7) |
9857 | { | |
9858 | _arg7 = wxString_in_helper(_obj7); | |
9859 | if (_arg7 == NULL) | |
9860 | return NULL; | |
9861 | } | |
09f3d4e6 | 9862 | { |
4268f798 | 9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 9864 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 9865 | |
4268f798 | 9866 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9867 | if (PyErr_Occurred()) return NULL; |
9868 | } if (_result) { | |
9869 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9870 | _resultobj = Py_BuildValue("s",_ptemp); | |
9871 | } else { | |
9872 | Py_INCREF(Py_None); | |
9873 | _resultobj = Py_None; | |
9874 | } | |
9875 | { | |
9876 | if (_obj2) | |
9877 | delete _arg2; | |
137b5242 RD |
9878 | } |
9879 | { | |
9880 | if (_obj7) | |
9881 | delete _arg7; | |
09f3d4e6 RD |
9882 | } |
9883 | return _resultobj; | |
9884 | } | |
9885 | ||
9886 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9887 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject * _resultobj; | |
9889 | wxRadioButton * _result; | |
9890 | char *_kwnames[] = { NULL }; | |
9891 | char _ptemp[128]; | |
9892 | ||
9893 | self = self; | |
9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9895 | return NULL; | |
9896 | { | |
4268f798 | 9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9898 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
09f3d4e6 | 9899 | |
4268f798 | 9900 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
9901 | if (PyErr_Occurred()) return NULL; |
9902 | } if (_result) { | |
9903 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9904 | _resultobj = Py_BuildValue("s",_ptemp); | |
9905 | } else { | |
9906 | Py_INCREF(Py_None); | |
9907 | _resultobj = Py_None; | |
9908 | } | |
9909 | return _resultobj; | |
9910 | } | |
9911 | ||
9912 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9913 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject * _resultobj; | |
9915 | bool _result; | |
9916 | wxRadioButton * _arg0; | |
9917 | wxWindow * _arg1; | |
9918 | wxWindowID _arg2; | |
9919 | wxString * _arg3; | |
9920 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9921 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9922 | long _arg6 = (long ) 0; | |
9923 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 9924 | wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr; |
09f3d4e6 RD |
9925 | PyObject * _argo0 = 0; |
9926 | PyObject * _argo1 = 0; | |
9927 | PyObject * _obj3 = 0; | |
9928 | wxPoint temp; | |
9929 | PyObject * _obj4 = 0; | |
9930 | wxSize temp0; | |
9931 | PyObject * _obj5 = 0; | |
9932 | PyObject * _argo7 = 0; | |
137b5242 | 9933 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
9934 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
9935 | ||
9936 | self = self; | |
137b5242 | 9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
9938 | return NULL; |
9939 | if (_argo0) { | |
9940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9943 | return NULL; | |
9944 | } | |
9945 | } | |
9946 | if (_argo1) { | |
9947 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9948 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9950 | return NULL; | |
9951 | } | |
9952 | } | |
9953 | { | |
c8bc7bb8 RD |
9954 | _arg3 = wxString_in_helper(_obj3); |
9955 | if (_arg3 == NULL) | |
09f3d4e6 | 9956 | return NULL; |
09f3d4e6 RD |
9957 | } |
9958 | if (_obj4) | |
9959 | { | |
9960 | _arg4 = &temp; | |
9961 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 9962 | return NULL; |
2f90df85 | 9963 | } |
09f3d4e6 | 9964 | if (_obj5) |
2f90df85 | 9965 | { |
09f3d4e6 RD |
9966 | _arg5 = &temp0; |
9967 | if (! wxSize_helper(_obj5, &_arg5)) | |
8ab979d7 | 9968 | return NULL; |
2f90df85 | 9969 | } |
09f3d4e6 RD |
9970 | if (_argo7) { |
9971 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9972 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
8ab979d7 RD |
9974 | return NULL; |
9975 | } | |
9976 | } | |
137b5242 RD |
9977 | if (_obj8) |
9978 | { | |
9979 | _arg8 = wxString_in_helper(_obj8); | |
9980 | if (_arg8 == NULL) | |
9981 | return NULL; | |
9982 | } | |
cf694132 | 9983 | { |
4268f798 | 9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 9985 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
cf694132 | 9986 | |
4268f798 | 9987 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9988 | if (PyErr_Occurred()) return NULL; |
09f3d4e6 | 9989 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 9990 | { |
09f3d4e6 RD |
9991 | if (_obj3) |
9992 | delete _arg3; | |
137b5242 RD |
9993 | } |
9994 | { | |
9995 | if (_obj8) | |
9996 | delete _arg8; | |
8ab979d7 RD |
9997 | } |
9998 | return _resultobj; | |
9999 | } | |
10000 | ||
10001 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 10002 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10003 | PyObject * _resultobj; |
10004 | bool _result; | |
10005 | wxRadioButton * _arg0; | |
1d99702e | 10006 | PyObject * _argo0 = 0; |
efc5f224 | 10007 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10008 | |
10009 | self = self; | |
efc5f224 | 10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 10011 | return NULL; |
1d99702e RD |
10012 | if (_argo0) { |
10013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
10015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
10016 | return NULL; | |
10017 | } | |
10018 | } | |
cf694132 | 10019 | { |
4268f798 | 10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10021 | _result = (bool )wxRadioButton_GetValue(_arg0); |
cf694132 | 10022 | |
4268f798 | 10023 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10024 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10025 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10026 | return _resultobj; |
10027 | } | |
10028 | ||
10029 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 10030 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10031 | PyObject * _resultobj; |
10032 | wxRadioButton * _arg0; | |
10033 | bool _arg1; | |
1d99702e | 10034 | PyObject * _argo0 = 0; |
8ab979d7 | 10035 | int tempbool1; |
efc5f224 | 10036 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
10037 | |
10038 | self = self; | |
efc5f224 | 10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 10040 | return NULL; |
1d99702e RD |
10041 | if (_argo0) { |
10042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
8ab979d7 RD |
10044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
10045 | return NULL; | |
10046 | } | |
10047 | } | |
10048 | _arg1 = (bool ) tempbool1; | |
cf694132 | 10049 | { |
4268f798 | 10050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10051 | wxRadioButton_SetValue(_arg0,_arg1); |
cf694132 | 10052 | |
4268f798 | 10053 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10054 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10055 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10056 | _resultobj = Py_None; |
10057 | return _resultobj; | |
10058 | } | |
10059 | ||
10060 | static void *SwigwxSliderTowxControl(void *ptr) { | |
10061 | wxSlider *src; | |
10062 | wxControl *dest; | |
10063 | src = (wxSlider *) ptr; | |
10064 | dest = (wxControl *) src; | |
10065 | return (void *) dest; | |
10066 | } | |
10067 | ||
10068 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
10069 | wxSlider *src; | |
10070 | wxWindow *dest; | |
10071 | src = (wxSlider *) ptr; | |
10072 | dest = (wxWindow *) src; | |
10073 | return (void *) dest; | |
10074 | } | |
10075 | ||
10076 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
10077 | wxSlider *src; | |
10078 | wxEvtHandler *dest; | |
10079 | src = (wxSlider *) ptr; | |
10080 | dest = (wxEvtHandler *) src; | |
10081 | return (void *) dest; | |
10082 | } | |
10083 | ||
9416aa89 RD |
10084 | static void *SwigwxSliderTowxObject(void *ptr) { |
10085 | wxSlider *src; | |
10086 | wxObject *dest; | |
10087 | src = (wxSlider *) ptr; | |
10088 | dest = (wxObject *) src; | |
10089 | return (void *) dest; | |
10090 | } | |
10091 | ||
8ab979d7 | 10092 | #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)) |
efc5f224 | 10093 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10094 | PyObject * _resultobj; |
10095 | wxSlider * _result; | |
10096 | wxWindow * _arg0; | |
10097 | wxWindowID _arg1; | |
10098 | int _arg2; | |
10099 | int _arg3; | |
10100 | int _arg4; | |
e508a2b6 RD |
10101 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
10102 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
1d99702e | 10103 | long _arg7 = (long ) wxSL_HORIZONTAL; |
e508a2b6 | 10104 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 10105 | wxString * _arg9 = (wxString *) &wxPySliderNameStr; |
1d99702e | 10106 | PyObject * _argo0 = 0; |
2f90df85 RD |
10107 | wxPoint temp; |
10108 | PyObject * _obj5 = 0; | |
10109 | wxSize temp0; | |
10110 | PyObject * _obj6 = 0; | |
1d99702e | 10111 | PyObject * _argo8 = 0; |
137b5242 | 10112 | PyObject * _obj9 = 0; |
efc5f224 | 10113 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
8ab979d7 RD |
10114 | char _ptemp[128]; |
10115 | ||
10116 | self = self; | |
137b5242 | 10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9)) |
8ab979d7 | 10118 | return NULL; |
1d99702e RD |
10119 | if (_argo0) { |
10120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
10123 | return NULL; | |
10124 | } | |
10125 | } | |
2f90df85 RD |
10126 | if (_obj5) |
10127 | { | |
10128 | _arg5 = &temp; | |
10129 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 10130 | return NULL; |
2f90df85 RD |
10131 | } |
10132 | if (_obj6) | |
10133 | { | |
10134 | _arg6 = &temp0; | |
10135 | if (! wxSize_helper(_obj6, &_arg6)) | |
8ab979d7 | 10136 | return NULL; |
2f90df85 | 10137 | } |
1d99702e RD |
10138 | if (_argo8) { |
10139 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
10140 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
8ab979d7 RD |
10141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
10142 | return NULL; | |
10143 | } | |
10144 | } | |
137b5242 RD |
10145 | if (_obj9) |
10146 | { | |
10147 | _arg9 = wxString_in_helper(_obj9); | |
10148 | if (_arg9 == NULL) | |
10149 | return NULL; | |
10150 | } | |
cf694132 | 10151 | { |
4268f798 | 10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 10153 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9); |
cf694132 | 10154 | |
4268f798 | 10155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10156 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10157 | } if (_result) { |
10158 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10159 | _resultobj = Py_BuildValue("s",_ptemp); | |
10160 | } else { | |
10161 | Py_INCREF(Py_None); | |
10162 | _resultobj = Py_None; | |
10163 | } | |
137b5242 RD |
10164 | { |
10165 | if (_obj9) | |
10166 | delete _arg9; | |
10167 | } | |
8ab979d7 RD |
10168 | return _resultobj; |
10169 | } | |
10170 | ||
09f3d4e6 RD |
10171 | #define new_wxPreSlider() (new wxSlider()) |
10172 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject * _resultobj; | |
10174 | wxSlider * _result; | |
10175 | char *_kwnames[] = { NULL }; | |
10176 | char _ptemp[128]; | |
10177 | ||
10178 | self = self; | |
10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
10180 | return NULL; | |
10181 | { | |
4268f798 | 10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10183 | _result = (wxSlider *)new_wxPreSlider(); |
09f3d4e6 | 10184 | |
4268f798 | 10185 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10186 | if (PyErr_Occurred()) return NULL; |
10187 | } if (_result) { | |
10188 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10189 | _resultobj = Py_BuildValue("s",_ptemp); | |
10190 | } else { | |
10191 | Py_INCREF(Py_None); | |
10192 | _resultobj = Py_None; | |
10193 | } | |
10194 | return _resultobj; | |
10195 | } | |
10196 | ||
10197 | #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)) | |
10198 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject * _resultobj; | |
10200 | bool _result; | |
10201 | wxSlider * _arg0; | |
10202 | wxWindow * _arg1; | |
10203 | wxWindowID _arg2; | |
10204 | int _arg3; | |
10205 | int _arg4; | |
10206 | int _arg5; | |
10207 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
10208 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
10209 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
10210 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 10211 | wxString * _arg10 = (wxString *) &wxPySliderNameStr; |
09f3d4e6 RD |
10212 | PyObject * _argo0 = 0; |
10213 | PyObject * _argo1 = 0; | |
10214 | wxPoint temp; | |
10215 | PyObject * _obj6 = 0; | |
10216 | wxSize temp0; | |
10217 | PyObject * _obj7 = 0; | |
10218 | PyObject * _argo9 = 0; | |
137b5242 | 10219 | PyObject * _obj10 = 0; |
09f3d4e6 RD |
10220 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
10221 | ||
10222 | self = self; | |
137b5242 | 10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10)) |
09f3d4e6 RD |
10224 | return NULL; |
10225 | if (_argo0) { | |
10226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
10229 | return NULL; | |
10230 | } | |
10231 | } | |
10232 | if (_argo1) { | |
10233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
10236 | return NULL; | |
10237 | } | |
10238 | } | |
10239 | if (_obj6) | |
10240 | { | |
10241 | _arg6 = &temp; | |
10242 | if (! wxPoint_helper(_obj6, &_arg6)) | |
10243 | return NULL; | |
10244 | } | |
10245 | if (_obj7) | |
10246 | { | |
10247 | _arg7 = &temp0; | |
10248 | if (! wxSize_helper(_obj7, &_arg7)) | |
10249 | return NULL; | |
10250 | } | |
10251 | if (_argo9) { | |
10252 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
10253 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
10254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
10255 | return NULL; | |
10256 | } | |
10257 | } | |
137b5242 RD |
10258 | if (_obj10) |
10259 | { | |
10260 | _arg10 = wxString_in_helper(_obj10); | |
10261 | if (_arg10 == NULL) | |
10262 | return NULL; | |
10263 | } | |
09f3d4e6 | 10264 | { |
4268f798 | 10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 10266 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10); |
09f3d4e6 | 10267 | |
4268f798 | 10268 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10269 | if (PyErr_Occurred()) return NULL; |
10270 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
10271 | { |
10272 | if (_obj10) | |
10273 | delete _arg10; | |
10274 | } | |
09f3d4e6 RD |
10275 | return _resultobj; |
10276 | } | |
10277 | ||
8ab979d7 | 10278 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
efc5f224 | 10279 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10280 | PyObject * _resultobj; |
10281 | wxSlider * _arg0; | |
1d99702e | 10282 | PyObject * _argo0 = 0; |
efc5f224 | 10283 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10284 | |
10285 | self = self; | |
efc5f224 | 10286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
8ab979d7 | 10287 | return NULL; |
1d99702e RD |
10288 | if (_argo0) { |
10289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
10292 | return NULL; | |
10293 | } | |
10294 | } | |
cf694132 | 10295 | { |
4268f798 | 10296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10297 | wxSlider_ClearSel(_arg0); |
cf694132 | 10298 | |
4268f798 | 10299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10302 | _resultobj = Py_None; |
10303 | return _resultobj; | |
10304 | } | |
10305 | ||
10306 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
efc5f224 | 10307 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10308 | PyObject * _resultobj; |
10309 | wxSlider * _arg0; | |
1d99702e | 10310 | PyObject * _argo0 = 0; |
efc5f224 | 10311 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10312 | |
10313 | self = self; | |
efc5f224 | 10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
8ab979d7 | 10315 | return NULL; |
1d99702e RD |
10316 | if (_argo0) { |
10317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
10320 | return NULL; | |
10321 | } | |
10322 | } | |
cf694132 | 10323 | { |
4268f798 | 10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10325 | wxSlider_ClearTicks(_arg0); |
cf694132 | 10326 | |
4268f798 | 10327 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10330 | _resultobj = Py_None; |
10331 | return _resultobj; | |
10332 | } | |
10333 | ||
10334 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
efc5f224 | 10335 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10336 | PyObject * _resultobj; |
10337 | int _result; | |
10338 | wxSlider * _arg0; | |
1d99702e | 10339 | PyObject * _argo0 = 0; |
efc5f224 | 10340 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10341 | |
10342 | self = self; | |
efc5f224 | 10343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
8ab979d7 | 10344 | return NULL; |
1d99702e RD |
10345 | if (_argo0) { |
10346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
10349 | return NULL; | |
10350 | } | |
10351 | } | |
cf694132 | 10352 | { |
4268f798 | 10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10354 | _result = (int )wxSlider_GetLineSize(_arg0); |
cf694132 | 10355 | |
4268f798 | 10356 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10358 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10359 | return _resultobj; |
10360 | } | |
10361 | ||
10362 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
efc5f224 | 10363 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10364 | PyObject * _resultobj; |
10365 | int _result; | |
10366 | wxSlider * _arg0; | |
1d99702e | 10367 | PyObject * _argo0 = 0; |
efc5f224 | 10368 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10369 | |
10370 | self = self; | |
efc5f224 | 10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
8ab979d7 | 10372 | return NULL; |
1d99702e RD |
10373 | if (_argo0) { |
10374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
10377 | return NULL; | |
10378 | } | |
10379 | } | |
cf694132 | 10380 | { |
4268f798 | 10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10382 | _result = (int )wxSlider_GetMax(_arg0); |
cf694132 | 10383 | |
4268f798 | 10384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10386 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10387 | return _resultobj; |
10388 | } | |
10389 | ||
10390 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
efc5f224 | 10391 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10392 | PyObject * _resultobj; |
10393 | int _result; | |
10394 | wxSlider * _arg0; | |
1d99702e | 10395 | PyObject * _argo0 = 0; |
efc5f224 | 10396 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10397 | |
10398 | self = self; | |
efc5f224 | 10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
8ab979d7 | 10400 | return NULL; |
1d99702e RD |
10401 | if (_argo0) { |
10402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
10405 | return NULL; | |
10406 | } | |
10407 | } | |
cf694132 | 10408 | { |
4268f798 | 10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10410 | _result = (int )wxSlider_GetMin(_arg0); |
cf694132 | 10411 | |
4268f798 | 10412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10413 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10414 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10415 | return _resultobj; |
10416 | } | |
10417 | ||
10418 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
efc5f224 | 10419 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10420 | PyObject * _resultobj; |
10421 | int _result; | |
10422 | wxSlider * _arg0; | |
1d99702e | 10423 | PyObject * _argo0 = 0; |
efc5f224 | 10424 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10425 | |
10426 | self = self; | |
efc5f224 | 10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
8ab979d7 | 10428 | return NULL; |
1d99702e RD |
10429 | if (_argo0) { |
10430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
10433 | return NULL; | |
10434 | } | |
10435 | } | |
cf694132 | 10436 | { |
4268f798 | 10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10438 | _result = (int )wxSlider_GetPageSize(_arg0); |
cf694132 | 10439 | |
4268f798 | 10440 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10441 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10442 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10443 | return _resultobj; |
10444 | } | |
10445 | ||
10446 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
efc5f224 | 10447 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10448 | PyObject * _resultobj; |
10449 | int _result; | |
10450 | wxSlider * _arg0; | |
1d99702e | 10451 | PyObject * _argo0 = 0; |
efc5f224 | 10452 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10453 | |
10454 | self = self; | |
efc5f224 | 10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
8ab979d7 | 10456 | return NULL; |
1d99702e RD |
10457 | if (_argo0) { |
10458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
10461 | return NULL; | |
10462 | } | |
10463 | } | |
cf694132 | 10464 | { |
4268f798 | 10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10466 | _result = (int )wxSlider_GetSelEnd(_arg0); |
cf694132 | 10467 | |
4268f798 | 10468 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10469 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10470 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10471 | return _resultobj; |
10472 | } | |
10473 | ||
10474 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
efc5f224 | 10475 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10476 | PyObject * _resultobj; |
10477 | int _result; | |
10478 | wxSlider * _arg0; | |
1d99702e | 10479 | PyObject * _argo0 = 0; |
efc5f224 | 10480 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10481 | |
10482 | self = self; | |
efc5f224 | 10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
8ab979d7 | 10484 | return NULL; |
1d99702e RD |
10485 | if (_argo0) { |
10486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
10489 | return NULL; | |
10490 | } | |
10491 | } | |
cf694132 | 10492 | { |
4268f798 | 10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10494 | _result = (int )wxSlider_GetSelStart(_arg0); |
cf694132 | 10495 | |
4268f798 | 10496 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10498 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10499 | return _resultobj; |
10500 | } | |
10501 | ||
10502 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
efc5f224 | 10503 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10504 | PyObject * _resultobj; |
10505 | int _result; | |
10506 | wxSlider * _arg0; | |
1d99702e | 10507 | PyObject * _argo0 = 0; |
efc5f224 | 10508 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10509 | |
10510 | self = self; | |
efc5f224 | 10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
8ab979d7 | 10512 | return NULL; |
1d99702e RD |
10513 | if (_argo0) { |
10514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
10517 | return NULL; | |
10518 | } | |
10519 | } | |
cf694132 | 10520 | { |
4268f798 | 10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10522 | _result = (int )wxSlider_GetThumbLength(_arg0); |
cf694132 | 10523 | |
4268f798 | 10524 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10527 | return _resultobj; |
10528 | } | |
10529 | ||
10530 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
efc5f224 | 10531 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10532 | PyObject * _resultobj; |
10533 | int _result; | |
10534 | wxSlider * _arg0; | |
1d99702e | 10535 | PyObject * _argo0 = 0; |
efc5f224 | 10536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10537 | |
10538 | self = self; | |
efc5f224 | 10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
8ab979d7 | 10540 | return NULL; |
1d99702e RD |
10541 | if (_argo0) { |
10542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
10545 | return NULL; | |
10546 | } | |
10547 | } | |
cf694132 | 10548 | { |
4268f798 | 10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10550 | _result = (int )wxSlider_GetTickFreq(_arg0); |
cf694132 | 10551 | |
4268f798 | 10552 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10555 | return _resultobj; |
10556 | } | |
10557 | ||
10558 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 10559 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10560 | PyObject * _resultobj; |
10561 | int _result; | |
10562 | wxSlider * _arg0; | |
1d99702e | 10563 | PyObject * _argo0 = 0; |
efc5f224 | 10564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10565 | |
10566 | self = self; | |
efc5f224 | 10567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 10568 | return NULL; |
1d99702e RD |
10569 | if (_argo0) { |
10570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
10573 | return NULL; | |
10574 | } | |
10575 | } | |
cf694132 | 10576 | { |
4268f798 | 10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10578 | _result = (int )wxSlider_GetValue(_arg0); |
cf694132 | 10579 | |
4268f798 | 10580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10582 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10583 | return _resultobj; |
10584 | } | |
10585 | ||
10586 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 10587 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10588 | PyObject * _resultobj; |
10589 | wxSlider * _arg0; | |
10590 | int _arg1; | |
10591 | int _arg2; | |
1d99702e | 10592 | PyObject * _argo0 = 0; |
efc5f224 | 10593 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
8ab979d7 RD |
10594 | |
10595 | self = self; | |
efc5f224 | 10596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10597 | return NULL; |
1d99702e RD |
10598 | if (_argo0) { |
10599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
10602 | return NULL; | |
10603 | } | |
10604 | } | |
cf694132 | 10605 | { |
4268f798 | 10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10607 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
cf694132 | 10608 | |
4268f798 | 10609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10611 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10612 | _resultobj = Py_None; |
10613 | return _resultobj; | |
10614 | } | |
10615 | ||
10616 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
efc5f224 | 10617 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10618 | PyObject * _resultobj; |
10619 | wxSlider * _arg0; | |
10620 | int _arg1; | |
10621 | int _arg2; | |
1d99702e | 10622 | PyObject * _argo0 = 0; |
efc5f224 | 10623 | char *_kwnames[] = { "self","n","pos", NULL }; |
8ab979d7 RD |
10624 | |
10625 | self = self; | |
efc5f224 | 10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10627 | return NULL; |
1d99702e RD |
10628 | if (_argo0) { |
10629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
10632 | return NULL; | |
10633 | } | |
10634 | } | |
cf694132 | 10635 | { |
4268f798 | 10636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10637 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
cf694132 | 10638 | |
4268f798 | 10639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10640 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10641 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10642 | _resultobj = Py_None; |
10643 | return _resultobj; | |
10644 | } | |
10645 | ||
10646 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
efc5f224 | 10647 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10648 | PyObject * _resultobj; |
10649 | wxSlider * _arg0; | |
10650 | int _arg1; | |
1d99702e | 10651 | PyObject * _argo0 = 0; |
efc5f224 | 10652 | char *_kwnames[] = { "self","lineSize", NULL }; |
8ab979d7 RD |
10653 | |
10654 | self = self; | |
efc5f224 | 10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10656 | return NULL; |
1d99702e RD |
10657 | if (_argo0) { |
10658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10661 | return NULL; | |
10662 | } | |
10663 | } | |
cf694132 | 10664 | { |
4268f798 | 10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10666 | wxSlider_SetLineSize(_arg0,_arg1); |
cf694132 | 10667 | |
4268f798 | 10668 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10670 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10671 | _resultobj = Py_None; |
10672 | return _resultobj; | |
10673 | } | |
10674 | ||
10675 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
efc5f224 | 10676 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10677 | PyObject * _resultobj; |
10678 | wxSlider * _arg0; | |
10679 | int _arg1; | |
1d99702e | 10680 | PyObject * _argo0 = 0; |
efc5f224 | 10681 | char *_kwnames[] = { "self","pageSize", NULL }; |
8ab979d7 RD |
10682 | |
10683 | self = self; | |
efc5f224 | 10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10685 | return NULL; |
1d99702e RD |
10686 | if (_argo0) { |
10687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10690 | return NULL; | |
10691 | } | |
10692 | } | |
cf694132 | 10693 | { |
4268f798 | 10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10695 | wxSlider_SetPageSize(_arg0,_arg1); |
cf694132 | 10696 | |
4268f798 | 10697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10699 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10700 | _resultobj = Py_None; |
10701 | return _resultobj; | |
10702 | } | |
10703 | ||
10704 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
efc5f224 | 10705 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10706 | PyObject * _resultobj; |
10707 | wxSlider * _arg0; | |
10708 | int _arg1; | |
10709 | int _arg2; | |
1d99702e | 10710 | PyObject * _argo0 = 0; |
efc5f224 | 10711 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
8ab979d7 RD |
10712 | |
10713 | self = self; | |
efc5f224 | 10714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 10715 | return NULL; |
1d99702e RD |
10716 | if (_argo0) { |
10717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10720 | return NULL; | |
10721 | } | |
10722 | } | |
cf694132 | 10723 | { |
4268f798 | 10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10725 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
cf694132 | 10726 | |
4268f798 | 10727 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10728 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10729 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10730 | _resultobj = Py_None; |
10731 | return _resultobj; | |
10732 | } | |
10733 | ||
10734 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
efc5f224 | 10735 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10736 | PyObject * _resultobj; |
10737 | wxSlider * _arg0; | |
10738 | int _arg1; | |
1d99702e | 10739 | PyObject * _argo0 = 0; |
efc5f224 | 10740 | char *_kwnames[] = { "self","len", NULL }; |
8ab979d7 RD |
10741 | |
10742 | self = self; | |
efc5f224 | 10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10744 | return NULL; |
1d99702e RD |
10745 | if (_argo0) { |
10746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10749 | return NULL; | |
10750 | } | |
10751 | } | |
cf694132 | 10752 | { |
4268f798 | 10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10754 | wxSlider_SetThumbLength(_arg0,_arg1); |
cf694132 | 10755 | |
4268f798 | 10756 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10757 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10758 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10759 | _resultobj = Py_None; |
10760 | return _resultobj; | |
10761 | } | |
10762 | ||
10763 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
efc5f224 | 10764 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10765 | PyObject * _resultobj; |
10766 | wxSlider * _arg0; | |
10767 | int _arg1; | |
1d99702e | 10768 | PyObject * _argo0 = 0; |
efc5f224 | 10769 | char *_kwnames[] = { "self","tickPos", NULL }; |
8ab979d7 RD |
10770 | |
10771 | self = self; | |
efc5f224 | 10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10773 | return NULL; |
1d99702e RD |
10774 | if (_argo0) { |
10775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10778 | return NULL; | |
10779 | } | |
10780 | } | |
cf694132 | 10781 | { |
4268f798 | 10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10783 | wxSlider_SetTick(_arg0,_arg1); |
cf694132 | 10784 | |
4268f798 | 10785 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10786 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10787 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10788 | _resultobj = Py_None; |
10789 | return _resultobj; | |
10790 | } | |
10791 | ||
10792 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 10793 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10794 | PyObject * _resultobj; |
10795 | wxSlider * _arg0; | |
10796 | int _arg1; | |
1d99702e | 10797 | PyObject * _argo0 = 0; |
efc5f224 | 10798 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
10799 | |
10800 | self = self; | |
efc5f224 | 10801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10802 | return NULL; |
1d99702e RD |
10803 | if (_argo0) { |
10804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
8ab979d7 RD |
10806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
10807 | return NULL; | |
10808 | } | |
10809 | } | |
cf694132 | 10810 | { |
4268f798 | 10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10812 | wxSlider_SetValue(_arg0,_arg1); |
cf694132 | 10813 | |
4268f798 | 10814 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10816 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10817 | _resultobj = Py_None; |
10818 | return _resultobj; | |
10819 | } | |
10820 | ||
f6bcfd97 BP |
10821 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10822 | wxSpinCtrl *src; | |
10823 | wxSpinButton *dest; | |
10824 | src = (wxSpinCtrl *) ptr; | |
10825 | dest = (wxSpinButton *) src; | |
10826 | return (void *) dest; | |
10827 | } | |
10828 | ||
10829 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10830 | wxSpinCtrl *src; | |
10831 | wxControl *dest; | |
10832 | src = (wxSpinCtrl *) ptr; | |
10833 | dest = (wxControl *) src; | |
10834 | return (void *) dest; | |
10835 | } | |
10836 | ||
10837 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10838 | wxSpinCtrl *src; | |
10839 | wxWindow *dest; | |
10840 | src = (wxSpinCtrl *) ptr; | |
10841 | dest = (wxWindow *) src; | |
10842 | return (void *) dest; | |
10843 | } | |
10844 | ||
10845 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10846 | wxSpinCtrl *src; | |
10847 | wxEvtHandler *dest; | |
10848 | src = (wxSpinCtrl *) ptr; | |
10849 | dest = (wxEvtHandler *) src; | |
10850 | return (void *) dest; | |
10851 | } | |
10852 | ||
9416aa89 RD |
10853 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10854 | wxSpinCtrl *src; | |
10855 | wxObject *dest; | |
10856 | src = (wxSpinCtrl *) ptr; | |
10857 | dest = (wxObject *) src; | |
10858 | return (void *) dest; | |
10859 | } | |
10860 | ||
f6bcfd97 BP |
10861 | #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)) |
10862 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject * _resultobj; | |
10864 | wxSpinCtrl * _result; | |
10865 | wxWindow * _arg0; | |
10866 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 10867 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
e508a2b6 RD |
10868 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10869 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
10870 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
10871 | int _arg6 = (int ) 0; | |
10872 | int _arg7 = (int ) 100; | |
10873 | int _arg8 = (int ) 0; | |
137b5242 | 10874 | wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr; |
f6bcfd97 | 10875 | PyObject * _argo0 = 0; |
137b5242 | 10876 | PyObject * _obj2 = 0; |
f6bcfd97 BP |
10877 | wxPoint temp; |
10878 | PyObject * _obj3 = 0; | |
10879 | wxSize temp0; | |
10880 | PyObject * _obj4 = 0; | |
137b5242 | 10881 | PyObject * _obj9 = 0; |
f6bcfd97 BP |
10882 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
10883 | char _ptemp[128]; | |
10884 | ||
10885 | self = self; | |
137b5242 | 10886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9)) |
f6bcfd97 BP |
10887 | return NULL; |
10888 | if (_argo0) { | |
10889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10892 | return NULL; | |
10893 | } | |
10894 | } | |
137b5242 RD |
10895 | if (_obj2) |
10896 | { | |
10897 | _arg2 = wxString_in_helper(_obj2); | |
10898 | if (_arg2 == NULL) | |
10899 | return NULL; | |
10900 | } | |
f6bcfd97 BP |
10901 | if (_obj3) |
10902 | { | |
10903 | _arg3 = &temp; | |
10904 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10905 | return NULL; | |
10906 | } | |
10907 | if (_obj4) | |
10908 | { | |
10909 | _arg4 = &temp0; | |
10910 | if (! wxSize_helper(_obj4, &_arg4)) | |
10911 | return NULL; | |
137b5242 RD |
10912 | } |
10913 | if (_obj9) | |
10914 | { | |
10915 | _arg9 = wxString_in_helper(_obj9); | |
10916 | if (_arg9 == NULL) | |
10917 | return NULL; | |
f6bcfd97 BP |
10918 | } |
10919 | { | |
4268f798 | 10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 10921 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9); |
f6bcfd97 | 10922 | |
4268f798 | 10923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10924 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10925 | } if (_result) { |
10926 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10927 | _resultobj = Py_BuildValue("s",_ptemp); | |
10928 | } else { | |
10929 | Py_INCREF(Py_None); | |
10930 | _resultobj = Py_None; | |
10931 | } | |
137b5242 RD |
10932 | { |
10933 | if (_obj2) | |
10934 | delete _arg2; | |
10935 | } | |
10936 | { | |
10937 | if (_obj9) | |
10938 | delete _arg9; | |
10939 | } | |
f6bcfd97 BP |
10940 | return _resultobj; |
10941 | } | |
10942 | ||
09f3d4e6 RD |
10943 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
10944 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10945 | PyObject * _resultobj; | |
10946 | wxSpinCtrl * _result; | |
10947 | char *_kwnames[] = { NULL }; | |
10948 | char _ptemp[128]; | |
10949 | ||
10950 | self = self; | |
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10952 | return NULL; | |
10953 | { | |
4268f798 | 10954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10955 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
09f3d4e6 | 10956 | |
4268f798 | 10957 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
10958 | if (PyErr_Occurred()) return NULL; |
10959 | } if (_result) { | |
10960 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10961 | _resultobj = Py_BuildValue("s",_ptemp); | |
10962 | } else { | |
10963 | Py_INCREF(Py_None); | |
10964 | _resultobj = Py_None; | |
10965 | } | |
10966 | return _resultobj; | |
10967 | } | |
10968 | ||
10969 | #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)) | |
10970 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject * _resultobj; | |
10972 | bool _result; | |
10973 | wxSpinCtrl * _arg0; | |
10974 | wxWindow * _arg1; | |
10975 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 10976 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
09f3d4e6 RD |
10977 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
10978 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10979 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10980 | int _arg7 = (int ) 0; | |
10981 | int _arg8 = (int ) 100; | |
10982 | int _arg9 = (int ) 0; | |
137b5242 | 10983 | wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr; |
09f3d4e6 RD |
10984 | PyObject * _argo0 = 0; |
10985 | PyObject * _argo1 = 0; | |
137b5242 | 10986 | PyObject * _obj3 = 0; |
09f3d4e6 RD |
10987 | wxPoint temp; |
10988 | PyObject * _obj4 = 0; | |
10989 | wxSize temp0; | |
10990 | PyObject * _obj5 = 0; | |
137b5242 | 10991 | PyObject * _obj10 = 0; |
09f3d4e6 RD |
10992 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
10993 | ||
10994 | self = self; | |
137b5242 | 10995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10)) |
09f3d4e6 RD |
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_Create. Expected _wxSpinCtrl_p."); | |
11001 | return NULL; | |
11002 | } | |
11003 | } | |
11004 | if (_argo1) { | |
11005 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11006 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
11008 | return NULL; | |
11009 | } | |
11010 | } | |
137b5242 RD |
11011 | if (_obj3) |
11012 | { | |
11013 | _arg3 = wxString_in_helper(_obj3); | |
11014 | if (_arg3 == NULL) | |
11015 | return NULL; | |
11016 | } | |
09f3d4e6 RD |
11017 | if (_obj4) |
11018 | { | |
11019 | _arg4 = &temp; | |
11020 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11021 | return NULL; | |
11022 | } | |
11023 | if (_obj5) | |
11024 | { | |
11025 | _arg5 = &temp0; | |
11026 | if (! wxSize_helper(_obj5, &_arg5)) | |
11027 | return NULL; | |
137b5242 RD |
11028 | } |
11029 | if (_obj10) | |
11030 | { | |
11031 | _arg10 = wxString_in_helper(_obj10); | |
11032 | if (_arg10 == NULL) | |
11033 | return NULL; | |
09f3d4e6 RD |
11034 | } |
11035 | { | |
4268f798 | 11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 11037 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10); |
09f3d4e6 | 11038 | |
4268f798 | 11039 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
11040 | if (PyErr_Occurred()) return NULL; |
11041 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
11042 | { |
11043 | if (_obj3) | |
11044 | delete _arg3; | |
11045 | } | |
11046 | { | |
11047 | if (_obj10) | |
11048 | delete _arg10; | |
11049 | } | |
09f3d4e6 RD |
11050 | return _resultobj; |
11051 | } | |
11052 | ||
c368d904 RD |
11053 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
11054 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject * _resultobj; | |
11056 | int _result; | |
11057 | wxSpinCtrl * _arg0; | |
11058 | PyObject * _argo0 = 0; | |
11059 | char *_kwnames[] = { "self", NULL }; | |
11060 | ||
11061 | self = self; | |
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
11063 | return NULL; | |
11064 | if (_argo0) { | |
11065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
11068 | return NULL; | |
11069 | } | |
11070 | } | |
11071 | { | |
4268f798 | 11072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11073 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
c368d904 | 11074 | |
4268f798 | 11075 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11076 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11077 | } _resultobj = Py_BuildValue("i",_result); |
11078 | return _resultobj; | |
11079 | } | |
11080 | ||
11081 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
11082 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11083 | PyObject * _resultobj; | |
11084 | int _result; | |
11085 | wxSpinCtrl * _arg0; | |
11086 | PyObject * _argo0 = 0; | |
11087 | char *_kwnames[] = { "self", NULL }; | |
11088 | ||
11089 | self = self; | |
11090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
11091 | return NULL; | |
11092 | if (_argo0) { | |
11093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
11096 | return NULL; | |
11097 | } | |
11098 | } | |
11099 | { | |
4268f798 | 11100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11101 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
c368d904 | 11102 | |
4268f798 | 11103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11104 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11105 | } _resultobj = Py_BuildValue("i",_result); |
11106 | return _resultobj; | |
11107 | } | |
11108 | ||
11109 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
11110 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject * _resultobj; | |
11112 | int _result; | |
11113 | wxSpinCtrl * _arg0; | |
11114 | PyObject * _argo0 = 0; | |
11115 | char *_kwnames[] = { "self", NULL }; | |
11116 | ||
11117 | self = self; | |
11118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
11119 | return NULL; | |
11120 | if (_argo0) { | |
11121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
11124 | return NULL; | |
11125 | } | |
11126 | } | |
11127 | { | |
4268f798 | 11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11129 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
c368d904 | 11130 | |
4268f798 | 11131 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11132 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11133 | } _resultobj = Py_BuildValue("i",_result); |
11134 | return _resultobj; | |
11135 | } | |
11136 | ||
11137 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
11138 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11139 | PyObject * _resultobj; | |
11140 | wxSpinCtrl * _arg0; | |
11141 | int _arg1; | |
11142 | int _arg2; | |
11143 | PyObject * _argo0 = 0; | |
11144 | char *_kwnames[] = { "self","min","max", NULL }; | |
11145 | ||
11146 | self = self; | |
11147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11148 | return NULL; | |
11149 | if (_argo0) { | |
11150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
11153 | return NULL; | |
11154 | } | |
11155 | } | |
11156 | { | |
4268f798 | 11157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11158 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
c368d904 | 11159 | |
4268f798 | 11160 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11161 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11162 | } Py_INCREF(Py_None); |
11163 | _resultobj = Py_None; | |
11164 | return _resultobj; | |
11165 | } | |
11166 | ||
11167 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11168 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11169 | PyObject * _resultobj; | |
11170 | wxSpinCtrl * _arg0; | |
11171 | int _arg1; | |
11172 | PyObject * _argo0 = 0; | |
11173 | char *_kwnames[] = { "self","value", NULL }; | |
11174 | ||
11175 | self = self; | |
11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
11177 | return NULL; | |
11178 | if (_argo0) { | |
11179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
11182 | return NULL; | |
11183 | } | |
11184 | } | |
11185 | { | |
4268f798 | 11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11187 | wxSpinCtrl_SetValue(_arg0,_arg1); |
c368d904 | 11188 | |
4268f798 | 11189 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11190 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11191 | } Py_INCREF(Py_None); |
11192 | _resultobj = Py_None; | |
11193 | return _resultobj; | |
11194 | } | |
11195 | ||
d1679124 RD |
11196 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
11197 | wxToggleButton *src; | |
11198 | wxControl *dest; | |
11199 | src = (wxToggleButton *) ptr; | |
11200 | dest = (wxControl *) src; | |
11201 | return (void *) dest; | |
11202 | } | |
11203 | ||
11204 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
11205 | wxToggleButton *src; | |
11206 | wxWindow *dest; | |
11207 | src = (wxToggleButton *) ptr; | |
11208 | dest = (wxWindow *) src; | |
11209 | return (void *) dest; | |
11210 | } | |
11211 | ||
11212 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
11213 | wxToggleButton *src; | |
11214 | wxEvtHandler *dest; | |
11215 | src = (wxToggleButton *) ptr; | |
11216 | dest = (wxEvtHandler *) src; | |
11217 | return (void *) dest; | |
11218 | } | |
11219 | ||
9416aa89 RD |
11220 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
11221 | wxToggleButton *src; | |
11222 | wxObject *dest; | |
11223 | src = (wxToggleButton *) ptr; | |
11224 | dest = (wxObject *) src; | |
11225 | return (void *) dest; | |
11226 | } | |
11227 | ||
d1679124 RD |
11228 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
11229 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11230 | PyObject * _resultobj; | |
11231 | wxToggleButton * _result; | |
11232 | wxWindow * _arg0; | |
11233 | wxWindowID _arg1; | |
11234 | wxString * _arg2; | |
11235 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11236 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11237 | long _arg5 = (long ) 0; | |
11238 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 11239 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
d1679124 RD |
11240 | PyObject * _argo0 = 0; |
11241 | PyObject * _obj2 = 0; | |
11242 | wxPoint temp; | |
11243 | PyObject * _obj3 = 0; | |
11244 | wxSize temp0; | |
11245 | PyObject * _obj4 = 0; | |
11246 | PyObject * _argo6 = 0; | |
137b5242 | 11247 | PyObject * _obj7 = 0; |
d1679124 RD |
11248 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
11249 | char _ptemp[128]; | |
11250 | ||
11251 | self = self; | |
137b5242 | 11252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
d1679124 RD |
11253 | return NULL; |
11254 | if (_argo0) { | |
11255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
11258 | return NULL; | |
11259 | } | |
11260 | } | |
11261 | { | |
c8bc7bb8 RD |
11262 | _arg2 = wxString_in_helper(_obj2); |
11263 | if (_arg2 == NULL) | |
d1679124 | 11264 | return NULL; |
d1679124 RD |
11265 | } |
11266 | if (_obj3) | |
11267 | { | |
11268 | _arg3 = &temp; | |
11269 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11270 | return NULL; | |
11271 | } | |
11272 | if (_obj4) | |
11273 | { | |
11274 | _arg4 = &temp0; | |
11275 | if (! wxSize_helper(_obj4, &_arg4)) | |
11276 | return NULL; | |
11277 | } | |
11278 | if (_argo6) { | |
11279 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
11280 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
11281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
11282 | return NULL; | |
11283 | } | |
11284 | } | |
137b5242 RD |
11285 | if (_obj7) |
11286 | { | |
11287 | _arg7 = wxString_in_helper(_obj7); | |
11288 | if (_arg7 == NULL) | |
11289 | return NULL; | |
11290 | } | |
d1679124 | 11291 | { |
4268f798 | 11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 11293 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
d1679124 | 11294 | |
4268f798 | 11295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11296 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11297 | } if (_result) { |
11298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11299 | _resultobj = Py_BuildValue("s",_ptemp); | |
11300 | } else { | |
11301 | Py_INCREF(Py_None); | |
11302 | _resultobj = Py_None; | |
11303 | } | |
11304 | { | |
11305 | if (_obj2) | |
11306 | delete _arg2; | |
137b5242 RD |
11307 | } |
11308 | { | |
11309 | if (_obj7) | |
11310 | delete _arg7; | |
d1679124 RD |
11311 | } |
11312 | return _resultobj; | |
11313 | } | |
11314 | ||
09f3d4e6 RD |
11315 | #define new_wxPreToggleButton() (new wxToggleButton()) |
11316 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11317 | PyObject * _resultobj; | |
11318 | wxToggleButton * _result; | |
11319 | char *_kwnames[] = { NULL }; | |
11320 | char _ptemp[128]; | |
11321 | ||
11322 | self = self; | |
11323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
11324 | return NULL; | |
11325 | { | |
4268f798 | 11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11327 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
09f3d4e6 | 11328 | |
4268f798 | 11329 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
11330 | if (PyErr_Occurred()) return NULL; |
11331 | } if (_result) { | |
11332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11333 | _resultobj = Py_BuildValue("s",_ptemp); | |
11334 | } else { | |
11335 | Py_INCREF(Py_None); | |
11336 | _resultobj = Py_None; | |
11337 | } | |
11338 | return _resultobj; | |
11339 | } | |
11340 | ||
11341 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11342 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11343 | PyObject * _resultobj; | |
11344 | bool _result; | |
11345 | wxToggleButton * _arg0; | |
11346 | wxWindow * _arg1; | |
11347 | wxWindowID _arg2; | |
11348 | wxString * _arg3; | |
11349 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11350 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11351 | long _arg6 = (long ) 0; | |
11352 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 11353 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
09f3d4e6 RD |
11354 | PyObject * _argo0 = 0; |
11355 | PyObject * _argo1 = 0; | |
11356 | PyObject * _obj3 = 0; | |
11357 | wxPoint temp; | |
11358 | PyObject * _obj4 = 0; | |
11359 | wxSize temp0; | |
11360 | PyObject * _obj5 = 0; | |
11361 | PyObject * _argo7 = 0; | |
137b5242 | 11362 | PyObject * _obj8 = 0; |
09f3d4e6 RD |
11363 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
11364 | ||
11365 | self = self; | |
137b5242 | 11366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
09f3d4e6 RD |
11367 | return NULL; |
11368 | if (_argo0) { | |
11369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
11372 | return NULL; | |
11373 | } | |
11374 | } | |
11375 | if (_argo1) { | |
11376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11379 | return NULL; | |
11380 | } | |
11381 | } | |
11382 | { | |
c8bc7bb8 RD |
11383 | _arg3 = wxString_in_helper(_obj3); |
11384 | if (_arg3 == NULL) | |
09f3d4e6 | 11385 | return NULL; |
09f3d4e6 RD |
11386 | } |
11387 | if (_obj4) | |
11388 | { | |
11389 | _arg4 = &temp; | |
11390 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11391 | return NULL; | |
11392 | } | |
11393 | if (_obj5) | |
11394 | { | |
11395 | _arg5 = &temp0; | |
11396 | if (! wxSize_helper(_obj5, &_arg5)) | |
11397 | return NULL; | |
11398 | } | |
11399 | if (_argo7) { | |
11400 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
11401 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11403 | return NULL; | |
11404 | } | |
11405 | } | |
137b5242 RD |
11406 | if (_obj8) |
11407 | { | |
11408 | _arg8 = wxString_in_helper(_obj8); | |
11409 | if (_arg8 == NULL) | |
11410 | return NULL; | |
11411 | } | |
09f3d4e6 | 11412 | { |
4268f798 | 11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 11414 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
09f3d4e6 | 11415 | |
4268f798 | 11416 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
11417 | if (PyErr_Occurred()) return NULL; |
11418 | } _resultobj = Py_BuildValue("i",_result); | |
11419 | { | |
11420 | if (_obj3) | |
11421 | delete _arg3; | |
137b5242 RD |
11422 | } |
11423 | { | |
11424 | if (_obj8) | |
11425 | delete _arg8; | |
09f3d4e6 RD |
11426 | } |
11427 | return _resultobj; | |
11428 | } | |
11429 | ||
d1679124 RD |
11430 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
11431 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11432 | PyObject * _resultobj; | |
11433 | wxToggleButton * _arg0; | |
11434 | bool _arg1; | |
11435 | PyObject * _argo0 = 0; | |
11436 | int tempbool1; | |
11437 | char *_kwnames[] = { "self","value", NULL }; | |
11438 | ||
11439 | self = self; | |
11440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11441 | return NULL; | |
11442 | if (_argo0) { | |
11443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11446 | return NULL; | |
11447 | } | |
11448 | } | |
11449 | _arg1 = (bool ) tempbool1; | |
11450 | { | |
4268f798 | 11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11452 | wxToggleButton_SetValue(_arg0,_arg1); |
d1679124 | 11453 | |
4268f798 | 11454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11455 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11456 | } Py_INCREF(Py_None); |
11457 | _resultobj = Py_None; | |
11458 | return _resultobj; | |
11459 | } | |
11460 | ||
11461 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11462 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject * _resultobj; | |
11464 | bool _result; | |
11465 | wxToggleButton * _arg0; | |
11466 | PyObject * _argo0 = 0; | |
11467 | char *_kwnames[] = { "self", NULL }; | |
11468 | ||
11469 | self = self; | |
11470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11471 | return NULL; | |
11472 | if (_argo0) { | |
11473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11476 | return NULL; | |
11477 | } | |
11478 | } | |
11479 | { | |
4268f798 | 11480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11481 | _result = (bool )wxToggleButton_GetValue(_arg0); |
d1679124 | 11482 | |
4268f798 | 11483 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11484 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11485 | } _resultobj = Py_BuildValue("i",_result); |
11486 | return _resultobj; | |
11487 | } | |
11488 | ||
11489 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11490 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject * _resultobj; | |
11492 | wxToggleButton * _arg0; | |
11493 | wxString * _arg1; | |
11494 | PyObject * _argo0 = 0; | |
11495 | PyObject * _obj1 = 0; | |
11496 | char *_kwnames[] = { "self","label", NULL }; | |
11497 | ||
11498 | self = self; | |
11499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11500 | return NULL; | |
11501 | if (_argo0) { | |
11502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11505 | return NULL; | |
11506 | } | |
11507 | } | |
11508 | { | |
c8bc7bb8 RD |
11509 | _arg1 = wxString_in_helper(_obj1); |
11510 | if (_arg1 == NULL) | |
d1679124 | 11511 | return NULL; |
d1679124 RD |
11512 | } |
11513 | { | |
4268f798 | 11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11515 | wxToggleButton_SetLabel(_arg0,*_arg1); |
d1679124 | 11516 | |
4268f798 | 11517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11518 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
11519 | } Py_INCREF(Py_None); |
11520 | _resultobj = Py_None; | |
11521 | { | |
11522 | if (_obj1) | |
11523 | delete _arg1; | |
11524 | } | |
11525 | return _resultobj; | |
11526 | } | |
11527 | ||
8ab979d7 | 11528 | static PyMethodDef controlscMethods[] = { |
d1679124 RD |
11529 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11530 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11532 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11533 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
d1679124 | 11534 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11535 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11536 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11540 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11541 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11542 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11543 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11544 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11562 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
11563 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11564 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
11565 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11567 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11568 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11569 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
11570 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 11574 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11575 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11576 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
11577 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, |
11578 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 RD |
11579 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, |
11580 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11581 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
11582 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11584 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11585 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11586 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
11587 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11588 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11589 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11590 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
11591 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11592 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
11593 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11594 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11595 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11596 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11597 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11598 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11599 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11600 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
11601 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11602 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
ebf4302c | 11603 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 11604 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11605 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
11606 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11608 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11609 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
11610 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11611 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 11612 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11613 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
64c06a50 RD |
11614 | { "wxTextCtrl_IsMultiLine", (PyCFunction) _wrap_wxTextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, |
11615 | { "wxTextCtrl_IsSingleLine", (PyCFunction) _wrap_wxTextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
11616 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
11617 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11618 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11621 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11622 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11625 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
11626 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11627 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
11628 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11629 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
11630 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
11631 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11632 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11633 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11635 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11636 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
11637 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11638 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
db0ff83e | 11639 | { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11640 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
11641 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
98624b49 RD |
11642 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
11643 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11644 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11645 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11646 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
11647 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
b78b83ec | 11649 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11650 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11651 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11652 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11653 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
11654 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11655 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 11656 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
98624b49 RD |
11657 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11658 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11659 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11660 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11661 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 11662 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
98624b49 | 11663 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 RD |
11664 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11665 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11666 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11667 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11668 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11669 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11671 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
5d5d57f3 RD |
11675 | { "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, |
11676 | { "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11677 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11678 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11679 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
11680 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11681 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11682 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11683 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
11684 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11685 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11686 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11689 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
0adbc166 | 11691 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11692 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11693 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11694 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11695 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11696 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11697 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11698 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
11699 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11700 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11701 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
11702 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11703 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11704 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
11705 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11706 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11707 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11708 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11709 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
11710 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11711 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11712 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11713 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11715 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11716 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11717 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11718 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11719 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11720 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11721 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11722 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11723 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11730 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11731 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11732 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11733 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11734 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11735 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11736 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11737 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
0adbc166 | 11738 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11739 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11740 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11742 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11743 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11744 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11745 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11746 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11747 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11749 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11750 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11751 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11752 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11753 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11754 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11755 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11756 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11759 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11760 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11763 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11764 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11765 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11766 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
11767 | { "wxButton_SetImageMargins", (PyCFunction) _wrap_wxButton_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "wxButton_SetImageLabel", (PyCFunction) _wrap_wxButton_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11769 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11770 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11771 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11772 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11773 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11774 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
ce914f73 | 11775 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, |
900d9886 RD |
11776 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11777 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11778 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11779 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11781 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11782 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11783 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11786 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11787 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11788 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11790 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11791 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 11792 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11793 | { NULL, NULL } |
11794 | }; | |
1d99702e RD |
11795 | #ifdef __cplusplus |
11796 | } | |
11797 | #endif | |
11798 | /* | |
11799 | * This table is used by the pointer type-checker | |
11800 | */ | |
11801 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11802 | { "_signed_long","_long",0}, |
b1462dfa | 11803 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11804 | { "_wxPrintQuality","_int",0}, |
11805 | { "_wxPrintQuality","_signed_int",0}, | |
11806 | { "_wxPrintQuality","_unsigned_int",0}, | |
11807 | { "_wxPrintQuality","_wxWindowID",0}, | |
11808 | { "_wxPrintQuality","_uint",0}, | |
11809 | { "_wxPrintQuality","_EBool",0}, | |
11810 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11811 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11812 | { "_byte","_unsigned_char",0}, |
1d99702e | 11813 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, |
1d99702e RD |
11814 | { "_long","_unsigned_long",0}, |
11815 | { "_long","_signed_long",0}, | |
b1462dfa | 11816 | { "_size_t","_wxCoord",0}, |
1d99702e | 11817 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11818 | { "_size_t","_time_t",0}, |
1d99702e RD |
11819 | { "_size_t","_unsigned_int",0}, |
11820 | { "_size_t","_int",0}, | |
11821 | { "_size_t","_wxWindowID",0}, | |
11822 | { "_size_t","_uint",0}, | |
b1462dfa | 11823 | { "_uint","_wxCoord",0}, |
1d99702e | 11824 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11825 | { "_uint","_time_t",0}, |
1d99702e RD |
11826 | { "_uint","_size_t",0}, |
11827 | { "_uint","_unsigned_int",0}, | |
11828 | { "_uint","_int",0}, | |
11829 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11830 | { "_wxChar","_char",0}, |
f6bcfd97 | 11831 | { "_char","_wxChar",0}, |
f6bcfd97 | 11832 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
cdf14688 | 11833 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11834 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11835 | { "_EBool","_wxPrintQuality",0}, |
11836 | { "_EBool","_signed_int",0}, | |
11837 | { "_EBool","_int",0}, | |
11838 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11839 | { "_unsigned_long","_long",0}, |
cdf14688 | 11840 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11841 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11842 | { "_signed_int","_wxPrintQuality",0}, |
11843 | { "_signed_int","_EBool",0}, | |
11844 | { "_signed_int","_wxWindowID",0}, | |
11845 | { "_signed_int","_int",0}, | |
1d99702e | 11846 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
1d99702e RD |
11847 | { "_WXTYPE","_short",0}, |
11848 | { "_WXTYPE","_signed_short",0}, | |
11849 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11850 | { "_unsigned_short","_WXTYPE",0}, |
11851 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11852 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9416aa89 | 11853 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9416aa89 | 11854 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9416aa89 | 11855 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9416aa89 | 11856 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9416aa89 | 11857 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9416aa89 | 11858 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9416aa89 | 11859 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9416aa89 | 11860 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9416aa89 | 11861 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9416aa89 | 11862 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9416aa89 | 11863 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9416aa89 | 11864 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9416aa89 | 11865 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9416aa89 | 11866 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9416aa89 | 11867 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9416aa89 | 11868 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9416aa89 | 11869 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9416aa89 | 11870 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9416aa89 | 11871 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
900d9886 | 11872 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9416aa89 | 11873 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
1d99702e RD |
11874 | { "_signed_short","_WXTYPE",0}, |
11875 | { "_signed_short","_short",0}, | |
1d99702e | 11876 | { "_unsigned_char","_byte",0}, |
d1679124 | 11877 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 11878 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
1d99702e | 11879 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
1d99702e | 11880 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
1d99702e | 11881 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
1d99702e | 11882 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
1d99702e | 11883 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
1d99702e | 11884 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
1d99702e | 11885 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
1d99702e | 11886 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
1d99702e | 11887 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
1d99702e | 11888 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
1d99702e | 11889 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
1d99702e | 11890 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
1d99702e | 11891 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
1d99702e | 11892 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
1d99702e | 11893 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
1d99702e | 11894 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
1d99702e | 11895 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
1d99702e | 11896 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
900d9886 | 11897 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
b1462dfa | 11898 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11899 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11900 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11901 | { "_unsigned_int","_size_t",0}, |
11902 | { "_unsigned_int","_uint",0}, | |
11903 | { "_unsigned_int","_wxWindowID",0}, | |
11904 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11905 | { "_short","_WXTYPE",0}, |
11906 | { "_short","_unsigned_short",0}, | |
11907 | { "_short","_signed_short",0}, | |
900d9886 RD |
11908 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
11909 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11910 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11911 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
b1462dfa | 11912 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11913 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11914 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11915 | { "_wxWindowID","_size_t",0}, |
11916 | { "_wxWindowID","_EBool",0}, | |
11917 | { "_wxWindowID","_uint",0}, | |
11918 | { "_wxWindowID","_int",0}, | |
11919 | { "_wxWindowID","_signed_int",0}, | |
11920 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11921 | { "_int","_wxCoord",0}, |
1d99702e | 11922 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11923 | { "_int","_time_t",0}, |
1d99702e RD |
11924 | { "_int","_size_t",0}, |
11925 | { "_int","_EBool",0}, | |
11926 | { "_int","_uint",0}, | |
11927 | { "_int","_wxWindowID",0}, | |
11928 | { "_int","_unsigned_int",0}, | |
11929 | { "_int","_signed_int",0}, | |
c368d904 RD |
11930 | { "_time_t","_wxCoord",0}, |
11931 | { "_time_t","_wxPrintQuality",0}, | |
11932 | { "_time_t","_unsigned_int",0}, | |
11933 | { "_time_t","_int",0}, | |
11934 | { "_time_t","_wxWindowID",0}, | |
11935 | { "_time_t","_uint",0}, | |
11936 | { "_time_t","_size_t",0}, | |
1d99702e | 11937 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
b1462dfa RD |
11938 | { "_wxCoord","_int",0}, |
11939 | { "_wxCoord","_signed_int",0}, | |
11940 | { "_wxCoord","_unsigned_int",0}, | |
11941 | { "_wxCoord","_wxWindowID",0}, | |
11942 | { "_wxCoord","_uint",0}, | |
11943 | { "_wxCoord","_EBool",0}, | |
11944 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11945 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11946 | { "_wxCoord","_wxPrintQuality",0}, |
d1679124 | 11947 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 11948 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
1d99702e | 11949 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
1d99702e | 11950 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
1d99702e | 11951 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
1d99702e | 11952 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
1d99702e | 11953 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
1d99702e | 11954 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
1d99702e | 11955 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
1d99702e | 11956 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
1d99702e | 11957 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
1d99702e | 11958 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
1d99702e | 11959 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
1d99702e | 11960 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
1d99702e | 11961 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
1d99702e | 11962 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
1d99702e | 11963 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
1d99702e | 11964 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
1d99702e | 11965 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
1d99702e | 11966 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
900d9886 | 11967 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
1d99702e | 11968 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
d1679124 | 11969 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 11970 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
1d99702e | 11971 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
1d99702e | 11972 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
1d99702e | 11973 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
1d99702e | 11974 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
1d99702e | 11975 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
1d99702e | 11976 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
1d99702e | 11977 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
1d99702e | 11978 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
1d99702e | 11979 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
1d99702e | 11980 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
1d99702e | 11981 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
1d99702e | 11982 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
1d99702e | 11983 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
1d99702e | 11984 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
1d99702e | 11985 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
1d99702e | 11986 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
1d99702e | 11987 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
1d99702e | 11988 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
900d9886 | 11989 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
1d99702e | 11990 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
1d99702e RD |
11991 | {0,0,0}}; |
11992 | ||
8ab979d7 RD |
11993 | static PyObject *SWIG_globals; |
11994 | #ifdef __cplusplus | |
11995 | extern "C" | |
11996 | #endif | |
1d99702e | 11997 | SWIGEXPORT(void) initcontrolsc() { |
8ab979d7 RD |
11998 | PyObject *m, *d; |
11999 | SWIG_globals = SWIG_newvarlink(); | |
12000 | m = Py_InitModule("controlsc", controlscMethods); | |
12001 | d = PyModule_GetDict(m); | |
2f90df85 RD |
12002 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12003 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
d1679124 | 12004 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
1d99702e RD |
12005 | { |
12006 | int i; | |
12007 | for (i = 0; _swig_mapping[i].n1; i++) | |
12008 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12009 | } | |
8ab979d7 | 12010 | } |