]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/controls.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrolsc | |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
60 | #include <wx/spinbutt.h> | |
61 | #include <wx/spinctrl.h> | |
62 | #include <wx/dynarray.h> | |
63 | #include <wx/statline.h> | |
64 | #include <wx/tglbtn.h> | |
65 | ||
66 | #ifdef __WXMSW__ | |
67 | #if wxUSE_OWNER_DRAWN | |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70 | #endif | |
71 | ||
72 | #ifdef __WXGTK__ | |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
76 | ||
e6056257 RD |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
81 | if (!target) { | |
82 | target = o; | |
83 | } else if (target == Py_None) { | |
84 | Py_DECREF(Py_None); | |
85 | target = o; | |
86 | } else { | |
87 | if (!PyTuple_Check(target)) { | |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
92 | o3 = PyTuple_New(1); | |
93 | PyTuple_SetItem(o3, 0, o); | |
94 | ||
95 | o2 = target; | |
96 | target = PySequence_Concat(o2, o3); | |
97 | Py_DECREF(o2); | |
98 | Py_DECREF(o3); | |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
103 | #if PYTHON_API_VERSION >= 1009 | |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
106 | static char* wxStringErrorMsg = "String type required"; | |
107 | #endif | |
108 | #ifdef __cplusplus | |
109 | extern "C" { | |
110 | #endif | |
111 | static int _wrap_wxDefaultValidator_set(PyObject *val) { | |
112 | ||
113 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
114 | return 1; | |
115 | } | |
116 | ||
117 | static PyObject *_wrap_wxDefaultValidator_get() { | |
118 | PyObject * pyobj; | |
119 | char ptemp[128]; | |
120 | ||
121 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
122 | pyobj = PyString_FromString(ptemp); | |
123 | return pyobj; | |
124 | } | |
125 | ||
126 | static void *SwigwxControlTowxWindow(void *ptr) { | |
127 | wxControl *src; | |
128 | wxWindow *dest; | |
129 | src = (wxControl *) ptr; | |
130 | dest = (wxWindow *) src; | |
131 | return (void *) dest; | |
132 | } | |
133 | ||
134 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
135 | wxControl *src; | |
136 | wxEvtHandler *dest; | |
137 | src = (wxControl *) ptr; | |
138 | dest = (wxEvtHandler *) src; | |
139 | return (void *) dest; | |
140 | } | |
141 | ||
142 | static void *SwigwxControlTowxObject(void *ptr) { | |
143 | wxControl *src; | |
144 | wxObject *dest; | |
145 | src = (wxControl *) ptr; | |
146 | dest = (wxObject *) src; | |
147 | return (void *) dest; | |
148 | } | |
149 | ||
150 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
151 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
152 | PyObject * _resultobj; | |
153 | wxControl * _result; | |
154 | wxWindow * _arg0; | |
155 | wxWindowID _arg1; | |
156 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
157 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
158 | long _arg4 = (long ) 0; | |
159 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
160 | char * _arg6 = (char *) "control"; | |
161 | PyObject * _argo0 = 0; | |
162 | wxPoint temp; | |
163 | PyObject * _obj2 = 0; | |
164 | wxSize temp0; | |
165 | PyObject * _obj3 = 0; | |
166 | PyObject * _argo5 = 0; | |
167 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
168 | char _ptemp[128]; | |
169 | ||
170 | self = self; | |
171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
172 | return NULL; | |
173 | if (_argo0) { | |
174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
177 | return NULL; | |
178 | } | |
179 | } | |
180 | if (_obj2) | |
181 | { | |
182 | _arg2 = &temp; | |
183 | if (! wxPoint_helper(_obj2, &_arg2)) | |
184 | return NULL; | |
185 | } | |
186 | if (_obj3) | |
187 | { | |
188 | _arg3 = &temp0; | |
189 | if (! wxSize_helper(_obj3, &_arg3)) | |
190 | return NULL; | |
191 | } | |
192 | if (_argo5) { | |
193 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | { | |
0e2ff151 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
201 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
202 | ||
0e2ff151 | 203 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
204 | if (PyErr_Occurred()) return NULL; |
205 | } if (_result) { | |
206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
207 | _resultobj = Py_BuildValue("s",_ptemp); | |
208 | } else { | |
209 | Py_INCREF(Py_None); | |
210 | _resultobj = Py_None; | |
211 | } | |
212 | return _resultobj; | |
213 | } | |
214 | ||
215 | #define new_wxPreControl() (new wxControl()) | |
216 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
217 | PyObject * _resultobj; | |
218 | wxControl * _result; | |
219 | char *_kwnames[] = { NULL }; | |
220 | char _ptemp[128]; | |
221 | ||
222 | self = self; | |
223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
224 | return NULL; | |
225 | { | |
0e2ff151 | 226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
227 | _result = (wxControl *)new_wxPreControl(); |
228 | ||
0e2ff151 | 229 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
230 | if (PyErr_Occurred()) return NULL; |
231 | } if (_result) { | |
232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
233 | _resultobj = Py_BuildValue("s",_ptemp); | |
234 | } else { | |
235 | Py_INCREF(Py_None); | |
236 | _resultobj = Py_None; | |
237 | } | |
238 | return _resultobj; | |
239 | } | |
240 | ||
241 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
242 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
243 | PyObject * _resultobj; | |
244 | bool _result; | |
245 | wxControl * _arg0; | |
246 | wxWindow * _arg1; | |
247 | wxWindowID _arg2; | |
248 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
249 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
250 | long _arg5 = (long ) 0; | |
251 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
252 | char * _arg7 = (char *) "control"; | |
253 | PyObject * _argo0 = 0; | |
254 | PyObject * _argo1 = 0; | |
255 | wxPoint temp; | |
256 | PyObject * _obj3 = 0; | |
257 | wxSize temp0; | |
258 | PyObject * _obj4 = 0; | |
259 | PyObject * _argo6 = 0; | |
260 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
261 | ||
262 | self = self; | |
263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
264 | return NULL; | |
265 | if (_argo0) { | |
266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
269 | return NULL; | |
270 | } | |
271 | } | |
272 | if (_argo1) { | |
273 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
274 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
276 | return NULL; | |
277 | } | |
278 | } | |
279 | if (_obj3) | |
280 | { | |
281 | _arg3 = &temp; | |
282 | if (! wxPoint_helper(_obj3, &_arg3)) | |
283 | return NULL; | |
284 | } | |
285 | if (_obj4) | |
286 | { | |
287 | _arg4 = &temp0; | |
288 | if (! wxSize_helper(_obj4, &_arg4)) | |
289 | return NULL; | |
290 | } | |
291 | if (_argo6) { | |
292 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
293 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
295 | return NULL; | |
296 | } | |
297 | } | |
298 | { | |
0e2ff151 | 299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
300 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
301 | ||
0e2ff151 | 302 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
303 | if (PyErr_Occurred()) return NULL; |
304 | } _resultobj = Py_BuildValue("i",_result); | |
305 | return _resultobj; | |
306 | } | |
307 | ||
308 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
309 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
310 | PyObject * _resultobj; | |
311 | wxControl * _arg0; | |
312 | wxCommandEvent * _arg1; | |
313 | PyObject * _argo0 = 0; | |
314 | PyObject * _argo1 = 0; | |
315 | char *_kwnames[] = { "self","event", NULL }; | |
316 | ||
317 | self = self; | |
318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
319 | return NULL; | |
320 | if (_argo0) { | |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
324 | return NULL; | |
325 | } | |
326 | } | |
327 | if (_argo1) { | |
328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
331 | return NULL; | |
332 | } | |
333 | } | |
334 | { | |
0e2ff151 | 335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
336 | wxControl_Command(_arg0,*_arg1); |
337 | ||
0e2ff151 | 338 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
339 | if (PyErr_Occurred()) return NULL; |
340 | } Py_INCREF(Py_None); | |
341 | _resultobj = Py_None; | |
342 | return _resultobj; | |
343 | } | |
344 | ||
345 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
346 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
347 | PyObject * _resultobj; | |
348 | wxString * _result; | |
349 | wxControl * _arg0; | |
350 | PyObject * _argo0 = 0; | |
351 | char *_kwnames[] = { "self", NULL }; | |
352 | ||
353 | self = self; | |
354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) | |
355 | return NULL; | |
356 | if (_argo0) { | |
357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); | |
360 | return NULL; | |
361 | } | |
362 | } | |
363 | { | |
0e2ff151 | 364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
365 | _result = new wxString (wxControl_GetLabel(_arg0)); |
366 | ||
0e2ff151 | 367 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
368 | if (PyErr_Occurred()) return NULL; |
369 | }{ | |
370 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
371 | } | |
372 | { | |
373 | delete _result; | |
374 | } | |
375 | return _resultobj; | |
376 | } | |
377 | ||
378 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
379 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
380 | PyObject * _resultobj; | |
381 | wxControl * _arg0; | |
382 | wxString * _arg1; | |
383 | PyObject * _argo0 = 0; | |
384 | PyObject * _obj1 = 0; | |
385 | char *_kwnames[] = { "self","label", NULL }; | |
386 | ||
387 | self = self; | |
388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) | |
389 | return NULL; | |
390 | if (_argo0) { | |
391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); | |
394 | return NULL; | |
395 | } | |
396 | } | |
397 | { | |
398 | #if PYTHON_API_VERSION >= 1009 | |
399 | char* tmpPtr; int tmpSize; | |
400 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
402 | return NULL; | |
403 | } | |
404 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
405 | return NULL; | |
406 | _arg1 = new wxString(tmpPtr, tmpSize); | |
407 | #else | |
408 | if (!PyString_Check(_obj1)) { | |
409 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
410 | return NULL; | |
411 | } | |
412 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
413 | #endif | |
414 | } | |
415 | { | |
0e2ff151 | 416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
417 | wxControl_SetLabel(_arg0,*_arg1); |
418 | ||
0e2ff151 | 419 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
420 | if (PyErr_Occurred()) return NULL; |
421 | } Py_INCREF(Py_None); | |
422 | _resultobj = Py_None; | |
423 | { | |
424 | if (_obj1) | |
425 | delete _arg1; | |
426 | } | |
427 | return _resultobj; | |
428 | } | |
429 | ||
430 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { | |
431 | wxControlWithItems *src; | |
432 | wxControl *dest; | |
433 | src = (wxControlWithItems *) ptr; | |
434 | dest = (wxControl *) src; | |
435 | return (void *) dest; | |
436 | } | |
437 | ||
438 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
439 | wxControlWithItems *src; | |
440 | wxWindow *dest; | |
441 | src = (wxControlWithItems *) ptr; | |
442 | dest = (wxWindow *) src; | |
443 | return (void *) dest; | |
444 | } | |
445 | ||
446 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
447 | wxControlWithItems *src; | |
448 | wxEvtHandler *dest; | |
449 | src = (wxControlWithItems *) ptr; | |
450 | dest = (wxEvtHandler *) src; | |
451 | return (void *) dest; | |
452 | } | |
453 | ||
454 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
455 | wxControlWithItems *src; | |
456 | wxObject *dest; | |
457 | src = (wxControlWithItems *) ptr; | |
458 | dest = (wxObject *) src; | |
459 | return (void *) dest; | |
460 | } | |
461 | ||
462 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
463 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxControlWithItems * _arg0; | |
466 | int _arg1; | |
467 | PyObject * _argo0 = 0; | |
468 | char *_kwnames[] = { "self","n", NULL }; | |
469 | ||
470 | self = self; | |
471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
472 | return NULL; | |
473 | if (_argo0) { | |
474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
477 | return NULL; | |
478 | } | |
479 | } | |
480 | { | |
0e2ff151 | 481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
482 | wxControlWithItems_Delete(_arg0,_arg1); |
483 | ||
0e2ff151 | 484 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
485 | if (PyErr_Occurred()) return NULL; |
486 | } Py_INCREF(Py_None); | |
487 | _resultobj = Py_None; | |
488 | return _resultobj; | |
489 | } | |
490 | ||
491 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
492 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | int _result; | |
495 | wxControlWithItems * _arg0; | |
496 | PyObject * _argo0 = 0; | |
497 | char *_kwnames[] = { "self", NULL }; | |
498 | ||
499 | self = self; | |
500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
501 | return NULL; | |
502 | if (_argo0) { | |
503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
0e2ff151 | 510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
511 | _result = (int )wxControlWithItems_GetCount(_arg0); |
512 | ||
0e2ff151 | 513 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
514 | if (PyErr_Occurred()) return NULL; |
515 | } _resultobj = Py_BuildValue("i",_result); | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
520 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | wxString * _result; | |
523 | wxControlWithItems * _arg0; | |
524 | int _arg1; | |
525 | PyObject * _argo0 = 0; | |
526 | char *_kwnames[] = { "self","n", NULL }; | |
527 | ||
528 | self = self; | |
529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
530 | return NULL; | |
531 | if (_argo0) { | |
532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
0e2ff151 | 539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
540 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
541 | ||
0e2ff151 | 542 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
543 | if (PyErr_Occurred()) return NULL; |
544 | }{ | |
545 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
546 | } | |
547 | { | |
548 | delete _result; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
554 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
555 | PyObject * _resultobj; | |
556 | wxControlWithItems * _arg0; | |
557 | int _arg1; | |
558 | wxString * _arg2; | |
559 | PyObject * _argo0 = 0; | |
560 | PyObject * _obj2 = 0; | |
561 | char *_kwnames[] = { "self","n","s", NULL }; | |
562 | ||
563 | self = self; | |
564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
565 | return NULL; | |
566 | if (_argo0) { | |
567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
570 | return NULL; | |
571 | } | |
572 | } | |
573 | { | |
574 | #if PYTHON_API_VERSION >= 1009 | |
575 | char* tmpPtr; int tmpSize; | |
576 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
578 | return NULL; | |
579 | } | |
580 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
581 | return NULL; | |
582 | _arg2 = new wxString(tmpPtr, tmpSize); | |
583 | #else | |
584 | if (!PyString_Check(_obj2)) { | |
585 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
586 | return NULL; | |
587 | } | |
588 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
589 | #endif | |
590 | } | |
591 | { | |
0e2ff151 | 592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
593 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
594 | ||
0e2ff151 | 595 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
596 | if (PyErr_Occurred()) return NULL; |
597 | } Py_INCREF(Py_None); | |
598 | _resultobj = Py_None; | |
599 | { | |
600 | if (_obj2) | |
601 | delete _arg2; | |
602 | } | |
603 | return _resultobj; | |
604 | } | |
605 | ||
606 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
607 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
608 | PyObject * _resultobj; | |
609 | int _result; | |
610 | wxControlWithItems * _arg0; | |
611 | wxString * _arg1; | |
612 | PyObject * _argo0 = 0; | |
613 | PyObject * _obj1 = 0; | |
614 | char *_kwnames[] = { "self","s", NULL }; | |
615 | ||
616 | self = self; | |
617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
618 | return NULL; | |
619 | if (_argo0) { | |
620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
623 | return NULL; | |
624 | } | |
625 | } | |
626 | { | |
627 | #if PYTHON_API_VERSION >= 1009 | |
628 | char* tmpPtr; int tmpSize; | |
629 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
630 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
631 | return NULL; | |
632 | } | |
633 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
634 | return NULL; | |
635 | _arg1 = new wxString(tmpPtr, tmpSize); | |
636 | #else | |
637 | if (!PyString_Check(_obj1)) { | |
638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
639 | return NULL; | |
640 | } | |
641 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
642 | #endif | |
643 | } | |
644 | { | |
0e2ff151 | 645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
646 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
647 | ||
0e2ff151 | 648 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
649 | if (PyErr_Occurred()) return NULL; |
650 | } _resultobj = Py_BuildValue("i",_result); | |
651 | { | |
652 | if (_obj1) | |
653 | delete _arg1; | |
654 | } | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
659 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxControlWithItems * _arg0; | |
662 | int _arg1; | |
663 | PyObject * _argo0 = 0; | |
664 | char *_kwnames[] = { "self","n", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | { | |
0e2ff151 | 677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
678 | wxControlWithItems_Select(_arg0,_arg1); |
679 | ||
0e2ff151 | 680 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
681 | if (PyErr_Occurred()) return NULL; |
682 | } Py_INCREF(Py_None); | |
683 | _resultobj = Py_None; | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
688 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | int _result; | |
691 | wxControlWithItems * _arg0; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
697 | return NULL; | |
698 | if (_argo0) { | |
699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
0e2ff151 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
707 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
708 | ||
0e2ff151 | 709 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
710 | if (PyErr_Occurred()) return NULL; |
711 | } _resultobj = Py_BuildValue("i",_result); | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
716 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxString * _result; | |
719 | wxControlWithItems * _arg0; | |
720 | PyObject * _argo0 = 0; | |
721 | char *_kwnames[] = { "self", NULL }; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
725 | return NULL; | |
726 | if (_argo0) { | |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
0e2ff151 | 734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
735 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
736 | ||
0e2ff151 | 737 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
738 | if (PyErr_Occurred()) return NULL; |
739 | }{ | |
740 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
741 | } | |
742 | { | |
743 | delete _result; | |
744 | } | |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
749 | if (clientData) { | |
750 | wxPyClientData* data = new wxPyClientData(clientData); | |
751 | self->Append(item, data); | |
752 | } else | |
753 | self->Append(item); | |
754 | } | |
755 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
756 | PyObject * _resultobj; | |
757 | wxControlWithItems * _arg0; | |
758 | wxString * _arg1; | |
759 | PyObject * _arg2 = (PyObject *) NULL; | |
760 | PyObject * _argo0 = 0; | |
761 | PyObject * _obj1 = 0; | |
762 | PyObject * _obj2 = 0; | |
763 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | #if PYTHON_API_VERSION >= 1009 | |
777 | char* tmpPtr; int tmpSize; | |
778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
779 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
780 | return NULL; | |
781 | } | |
782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
783 | return NULL; | |
784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
785 | #else | |
786 | if (!PyString_Check(_obj1)) { | |
787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
788 | return NULL; | |
789 | } | |
790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
791 | #endif | |
792 | } | |
793 | if (_obj2) | |
794 | { | |
795 | _arg2 = _obj2; | |
796 | } | |
797 | { | |
0e2ff151 | 798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
799 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
800 | ||
0e2ff151 | 801 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
802 | if (PyErr_Occurred()) return NULL; |
803 | } Py_INCREF(Py_None); | |
804 | _resultobj = Py_None; | |
805 | { | |
806 | if (_obj1) | |
807 | delete _arg1; | |
808 | } | |
809 | return _resultobj; | |
810 | } | |
811 | ||
812 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
813 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
814 | if (data) { | |
815 | Py_INCREF(data->m_obj); | |
816 | return data->m_obj; | |
817 | } else { | |
818 | Py_INCREF(Py_None); | |
819 | return Py_None; | |
820 | } | |
821 | } | |
822 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | PyObject * _result; | |
825 | wxControlWithItems * _arg0; | |
826 | int _arg1; | |
827 | PyObject * _argo0 = 0; | |
828 | char *_kwnames[] = { "self","n", NULL }; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
832 | return NULL; | |
833 | if (_argo0) { | |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
837 | return NULL; | |
838 | } | |
839 | } | |
840 | { | |
0e2ff151 | 841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
842 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
843 | ||
0e2ff151 | 844 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
845 | if (PyErr_Occurred()) return NULL; |
846 | }{ | |
847 | _resultobj = _result; | |
848 | } | |
849 | return _resultobj; | |
850 | } | |
851 | ||
852 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
853 | wxPyClientData* data = new wxPyClientData(clientData); | |
854 | self->SetClientObject(n, data); | |
855 | } | |
856 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
857 | PyObject * _resultobj; | |
858 | wxControlWithItems * _arg0; | |
859 | int _arg1; | |
860 | PyObject * _arg2; | |
861 | PyObject * _argo0 = 0; | |
862 | PyObject * _obj2 = 0; | |
863 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
864 | ||
865 | self = self; | |
866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
867 | return NULL; | |
868 | if (_argo0) { | |
869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
872 | return NULL; | |
873 | } | |
874 | } | |
875 | { | |
876 | _arg2 = _obj2; | |
877 | } | |
878 | { | |
0e2ff151 | 879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
880 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
881 | ||
0e2ff151 | 882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
883 | if (PyErr_Occurred()) return NULL; |
884 | } Py_INCREF(Py_None); | |
885 | _resultobj = Py_None; | |
886 | return _resultobj; | |
887 | } | |
888 | ||
889 | static void *SwigwxButtonTowxControl(void *ptr) { | |
890 | wxButton *src; | |
891 | wxControl *dest; | |
892 | src = (wxButton *) ptr; | |
893 | dest = (wxControl *) src; | |
894 | return (void *) dest; | |
895 | } | |
896 | ||
897 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
898 | wxButton *src; | |
899 | wxWindow *dest; | |
900 | src = (wxButton *) ptr; | |
901 | dest = (wxWindow *) src; | |
902 | return (void *) dest; | |
903 | } | |
904 | ||
905 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
906 | wxButton *src; | |
907 | wxEvtHandler *dest; | |
908 | src = (wxButton *) ptr; | |
909 | dest = (wxEvtHandler *) src; | |
910 | return (void *) dest; | |
911 | } | |
912 | ||
913 | static void *SwigwxButtonTowxObject(void *ptr) { | |
914 | wxButton *src; | |
915 | wxObject *dest; | |
916 | src = (wxButton *) ptr; | |
917 | dest = (wxObject *) src; | |
918 | return (void *) dest; | |
919 | } | |
920 | ||
921 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
922 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
923 | PyObject * _resultobj; | |
924 | wxButton * _result; | |
925 | wxWindow * _arg0; | |
926 | wxWindowID _arg1; | |
927 | wxString * _arg2; | |
928 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
929 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
930 | long _arg5 = (long ) 0; | |
931 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
932 | char * _arg7 = (char *) "button"; | |
933 | PyObject * _argo0 = 0; | |
934 | PyObject * _obj2 = 0; | |
935 | wxPoint temp; | |
936 | PyObject * _obj3 = 0; | |
937 | wxSize temp0; | |
938 | PyObject * _obj4 = 0; | |
939 | PyObject * _argo6 = 0; | |
940 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
941 | char _ptemp[128]; | |
942 | ||
943 | self = self; | |
944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
945 | return NULL; | |
946 | if (_argo0) { | |
947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); | |
950 | return NULL; | |
951 | } | |
952 | } | |
953 | { | |
954 | #if PYTHON_API_VERSION >= 1009 | |
955 | char* tmpPtr; int tmpSize; | |
956 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
957 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
958 | return NULL; | |
959 | } | |
960 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
961 | return NULL; | |
962 | _arg2 = new wxString(tmpPtr, tmpSize); | |
963 | #else | |
964 | if (!PyString_Check(_obj2)) { | |
965 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
966 | return NULL; | |
967 | } | |
968 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
969 | #endif | |
970 | } | |
971 | if (_obj3) | |
972 | { | |
973 | _arg3 = &temp; | |
974 | if (! wxPoint_helper(_obj3, &_arg3)) | |
975 | return NULL; | |
976 | } | |
977 | if (_obj4) | |
978 | { | |
979 | _arg4 = &temp0; | |
980 | if (! wxSize_helper(_obj4, &_arg4)) | |
981 | return NULL; | |
982 | } | |
983 | if (_argo6) { | |
984 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
985 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); | |
987 | return NULL; | |
988 | } | |
989 | } | |
990 | { | |
0e2ff151 | 991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
992 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
993 | ||
0e2ff151 | 994 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
995 | if (PyErr_Occurred()) return NULL; |
996 | } if (_result) { | |
997 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
998 | _resultobj = Py_BuildValue("s",_ptemp); | |
999 | } else { | |
1000 | Py_INCREF(Py_None); | |
1001 | _resultobj = Py_None; | |
1002 | } | |
1003 | { | |
1004 | if (_obj2) | |
1005 | delete _arg2; | |
1006 | } | |
1007 | return _resultobj; | |
1008 | } | |
1009 | ||
1010 | #define new_wxPreButton() (new wxButton()) | |
1011 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1012 | PyObject * _resultobj; | |
1013 | wxButton * _result; | |
1014 | char *_kwnames[] = { NULL }; | |
1015 | char _ptemp[128]; | |
1016 | ||
1017 | self = self; | |
1018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1019 | return NULL; | |
1020 | { | |
0e2ff151 | 1021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1022 | _result = (wxButton *)new_wxPreButton(); |
1023 | ||
0e2ff151 | 1024 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1025 | if (PyErr_Occurred()) return NULL; |
1026 | } if (_result) { | |
1027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1028 | _resultobj = Py_BuildValue("s",_ptemp); | |
1029 | } else { | |
1030 | Py_INCREF(Py_None); | |
1031 | _resultobj = Py_None; | |
1032 | } | |
1033 | return _resultobj; | |
1034 | } | |
1035 | ||
1036 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1037 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1038 | PyObject * _resultobj; | |
1039 | bool _result; | |
1040 | wxButton * _arg0; | |
1041 | wxWindow * _arg1; | |
1042 | wxWindowID _arg2; | |
1043 | wxString * _arg3; | |
1044 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1045 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1046 | long _arg6 = (long ) 0; | |
1047 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1048 | char * _arg8 = (char *) "button"; | |
1049 | PyObject * _argo0 = 0; | |
1050 | PyObject * _argo1 = 0; | |
1051 | PyObject * _obj3 = 0; | |
1052 | wxPoint temp; | |
1053 | PyObject * _obj4 = 0; | |
1054 | wxSize temp0; | |
1055 | PyObject * _obj5 = 0; | |
1056 | PyObject * _argo7 = 0; | |
1057 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1058 | ||
1059 | self = self; | |
1060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1061 | return NULL; | |
1062 | if (_argo0) { | |
1063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1066 | return NULL; | |
1067 | } | |
1068 | } | |
1069 | if (_argo1) { | |
1070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1073 | return NULL; | |
1074 | } | |
1075 | } | |
1076 | { | |
1077 | #if PYTHON_API_VERSION >= 1009 | |
1078 | char* tmpPtr; int tmpSize; | |
1079 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
1080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1081 | return NULL; | |
1082 | } | |
1083 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1084 | return NULL; | |
1085 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1086 | #else | |
1087 | if (!PyString_Check(_obj3)) { | |
1088 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1089 | return NULL; | |
1090 | } | |
1091 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
1092 | #endif | |
1093 | } | |
1094 | if (_obj4) | |
1095 | { | |
1096 | _arg4 = &temp; | |
1097 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1098 | return NULL; | |
1099 | } | |
1100 | if (_obj5) | |
1101 | { | |
1102 | _arg5 = &temp0; | |
1103 | if (! wxSize_helper(_obj5, &_arg5)) | |
1104 | return NULL; | |
1105 | } | |
1106 | if (_argo7) { | |
1107 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
1113 | { | |
0e2ff151 | 1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1115 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
1116 | ||
0e2ff151 | 1117 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1118 | if (PyErr_Occurred()) return NULL; |
1119 | } _resultobj = Py_BuildValue("i",_result); | |
1120 | { | |
1121 | if (_obj3) | |
1122 | delete _arg3; | |
1123 | } | |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
1128 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | wxButton * _arg0; | |
1131 | PyObject * _argo0 = 0; | |
1132 | char *_kwnames[] = { "self", NULL }; | |
1133 | ||
1134 | self = self; | |
1135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) | |
1136 | return NULL; | |
1137 | if (_argo0) { | |
1138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); | |
1141 | return NULL; | |
1142 | } | |
1143 | } | |
1144 | { | |
0e2ff151 | 1145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1146 | wxButton_SetDefault(_arg0); |
1147 | ||
0e2ff151 | 1148 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1149 | if (PyErr_Occurred()) return NULL; |
1150 | } Py_INCREF(Py_None); | |
1151 | _resultobj = Py_None; | |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1156 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | wxButton * _arg0; | |
1159 | wxColour * _arg1; | |
1160 | PyObject * _argo0 = 0; | |
1161 | wxColour temp; | |
1162 | PyObject * _obj1 = 0; | |
1163 | char *_kwnames[] = { "self","colour", NULL }; | |
1164 | ||
1165 | self = self; | |
1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1167 | return NULL; | |
1168 | if (_argo0) { | |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
1175 | { | |
1176 | _arg1 = &temp; | |
1177 | if (! wxColour_helper(_obj1, &_arg1)) | |
1178 | return NULL; | |
1179 | } | |
1180 | { | |
0e2ff151 | 1181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1182 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
1183 | ||
0e2ff151 | 1184 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1185 | if (PyErr_Occurred()) return NULL; |
1186 | } Py_INCREF(Py_None); | |
1187 | _resultobj = Py_None; | |
1188 | return _resultobj; | |
1189 | } | |
1190 | ||
1191 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1192 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1193 | PyObject * _resultobj; | |
1194 | wxButton * _arg0; | |
1195 | wxColour * _arg1; | |
1196 | PyObject * _argo0 = 0; | |
1197 | wxColour temp; | |
1198 | PyObject * _obj1 = 0; | |
1199 | char *_kwnames[] = { "self","colour", NULL }; | |
1200 | ||
1201 | self = self; | |
1202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
1203 | return NULL; | |
1204 | if (_argo0) { | |
1205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1208 | return NULL; | |
1209 | } | |
1210 | } | |
1211 | { | |
1212 | _arg1 = &temp; | |
1213 | if (! wxColour_helper(_obj1, &_arg1)) | |
1214 | return NULL; | |
1215 | } | |
1216 | { | |
0e2ff151 | 1217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1218 | wxButton_SetForegroundColour(_arg0,*_arg1); |
1219 | ||
0e2ff151 | 1220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1221 | if (PyErr_Occurred()) return NULL; |
1222 | } Py_INCREF(Py_None); | |
1223 | _resultobj = Py_None; | |
1224 | return _resultobj; | |
1225 | } | |
1226 | ||
1227 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1228 | PyObject * _resultobj; | |
1229 | wxSize * _result; | |
1230 | char *_kwnames[] = { NULL }; | |
1231 | char _ptemp[128]; | |
1232 | ||
1233 | self = self; | |
1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1235 | return NULL; | |
1236 | { | |
0e2ff151 | 1237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1238 | _result = new wxSize (wxButton::GetDefaultSize()); |
1239 | ||
0e2ff151 | 1240 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1241 | if (PyErr_Occurred()) return NULL; |
1242 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1243 | _resultobj = Py_BuildValue("s",_ptemp); | |
1244 | return _resultobj; | |
1245 | } | |
1246 | ||
1247 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1248 | wxBitmapButton *src; | |
1249 | wxButton *dest; | |
1250 | src = (wxBitmapButton *) ptr; | |
1251 | dest = (wxButton *) src; | |
1252 | return (void *) dest; | |
1253 | } | |
1254 | ||
1255 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1256 | wxBitmapButton *src; | |
1257 | wxControl *dest; | |
1258 | src = (wxBitmapButton *) ptr; | |
1259 | dest = (wxControl *) src; | |
1260 | return (void *) dest; | |
1261 | } | |
1262 | ||
1263 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1264 | wxBitmapButton *src; | |
1265 | wxWindow *dest; | |
1266 | src = (wxBitmapButton *) ptr; | |
1267 | dest = (wxWindow *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1272 | wxBitmapButton *src; | |
1273 | wxEvtHandler *dest; | |
1274 | src = (wxBitmapButton *) ptr; | |
1275 | dest = (wxEvtHandler *) src; | |
1276 | return (void *) dest; | |
1277 | } | |
1278 | ||
1279 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1280 | wxBitmapButton *src; | |
1281 | wxObject *dest; | |
1282 | src = (wxBitmapButton *) ptr; | |
1283 | dest = (wxObject *) src; | |
1284 | return (void *) dest; | |
1285 | } | |
1286 | ||
1287 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1288 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1289 | PyObject * _resultobj; | |
1290 | wxBitmapButton * _result; | |
1291 | wxWindow * _arg0; | |
1292 | wxWindowID _arg1; | |
1293 | wxBitmap * _arg2; | |
1294 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1295 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1296 | long _arg5 = (long ) wxBU_AUTODRAW; | |
1297 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1298 | char * _arg7 = (char *) "button"; | |
1299 | PyObject * _argo0 = 0; | |
1300 | PyObject * _argo2 = 0; | |
1301 | wxPoint temp; | |
1302 | PyObject * _obj3 = 0; | |
1303 | wxSize temp0; | |
1304 | PyObject * _obj4 = 0; | |
1305 | PyObject * _argo6 = 0; | |
1306 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1307 | char _ptemp[128]; | |
1308 | ||
1309 | self = self; | |
1310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1311 | return NULL; | |
1312 | if (_argo0) { | |
1313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); | |
1316 | return NULL; | |
1317 | } | |
1318 | } | |
1319 | if (_argo2) { | |
1320 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1321 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
1322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); | |
1323 | return NULL; | |
1324 | } | |
1325 | } | |
1326 | if (_obj3) | |
1327 | { | |
1328 | _arg3 = &temp; | |
1329 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1330 | return NULL; | |
1331 | } | |
1332 | if (_obj4) | |
1333 | { | |
1334 | _arg4 = &temp0; | |
1335 | if (! wxSize_helper(_obj4, &_arg4)) | |
1336 | return NULL; | |
1337 | } | |
1338 | if (_argo6) { | |
1339 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); | |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
1345 | { | |
0e2ff151 | 1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1347 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
1348 | ||
0e2ff151 | 1349 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1350 | if (PyErr_Occurred()) return NULL; |
1351 | } if (_result) { | |
1352 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1353 | _resultobj = Py_BuildValue("s",_ptemp); | |
1354 | } else { | |
1355 | Py_INCREF(Py_None); | |
1356 | _resultobj = Py_None; | |
1357 | } | |
1358 | return _resultobj; | |
1359 | } | |
1360 | ||
1361 | #define new_wxPreBitmapButton() (new wxBitmapButton()) | |
1362 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject * _resultobj; | |
1364 | wxBitmapButton * _result; | |
1365 | char *_kwnames[] = { NULL }; | |
1366 | char _ptemp[128]; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1370 | return NULL; | |
1371 | { | |
0e2ff151 | 1372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1373 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
1374 | ||
0e2ff151 | 1375 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1376 | if (PyErr_Occurred()) return NULL; |
1377 | } if (_result) { | |
1378 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1379 | _resultobj = Py_BuildValue("s",_ptemp); | |
1380 | } else { | |
1381 | Py_INCREF(Py_None); | |
1382 | _resultobj = Py_None; | |
1383 | } | |
1384 | return _resultobj; | |
1385 | } | |
1386 | ||
1387 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1388 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1389 | PyObject * _resultobj; | |
1390 | bool _result; | |
1391 | wxBitmapButton * _arg0; | |
1392 | wxWindow * _arg1; | |
1393 | wxWindowID _arg2; | |
1394 | wxBitmap * _arg3; | |
1395 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1396 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1397 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1398 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1399 | char * _arg8 = (char *) "button"; | |
1400 | PyObject * _argo0 = 0; | |
1401 | PyObject * _argo1 = 0; | |
1402 | PyObject * _argo3 = 0; | |
1403 | wxPoint temp; | |
1404 | PyObject * _obj4 = 0; | |
1405 | wxSize temp0; | |
1406 | PyObject * _obj5 = 0; | |
1407 | PyObject * _argo7 = 0; | |
1408 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1409 | ||
1410 | self = self; | |
1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1412 | return NULL; | |
1413 | if (_argo0) { | |
1414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1417 | return NULL; | |
1418 | } | |
1419 | } | |
1420 | if (_argo1) { | |
1421 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1424 | return NULL; | |
1425 | } | |
1426 | } | |
1427 | if (_argo3) { | |
1428 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1429 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1431 | return NULL; | |
1432 | } | |
1433 | } | |
1434 | if (_obj4) | |
1435 | { | |
1436 | _arg4 = &temp; | |
1437 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1438 | return NULL; | |
1439 | } | |
1440 | if (_obj5) | |
1441 | { | |
1442 | _arg5 = &temp0; | |
1443 | if (! wxSize_helper(_obj5, &_arg5)) | |
1444 | return NULL; | |
1445 | } | |
1446 | if (_argo7) { | |
1447 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
0e2ff151 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1455 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
1456 | ||
0e2ff151 | 1457 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1458 | if (PyErr_Occurred()) return NULL; |
1459 | } _resultobj = Py_BuildValue("i",_result); | |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
1463 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
1464 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1465 | PyObject * _resultobj; | |
1466 | wxBitmap * _result; | |
1467 | wxBitmapButton * _arg0; | |
1468 | PyObject * _argo0 = 0; | |
1469 | char *_kwnames[] = { "self", NULL }; | |
1470 | char _ptemp[128]; | |
1471 | ||
1472 | self = self; | |
1473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) | |
1474 | return NULL; | |
1475 | if (_argo0) { | |
1476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); | |
1479 | return NULL; | |
1480 | } | |
1481 | } | |
1482 | { | |
0e2ff151 | 1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 1484 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
e6056257 | 1485 | |
0e2ff151 | 1486 | wxPyEndAllowThreads(__tstate); |
e6056257 | 1487 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
1488 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1489 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
1490 | return _resultobj; |
1491 | } | |
1492 | ||
1493 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
1494 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1495 | PyObject * _resultobj; | |
1496 | wxBitmap * _result; | |
1497 | wxBitmapButton * _arg0; | |
1498 | PyObject * _argo0 = 0; | |
1499 | char *_kwnames[] = { "self", NULL }; | |
1500 | char _ptemp[128]; | |
1501 | ||
1502 | self = self; | |
1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) | |
1504 | return NULL; | |
1505 | if (_argo0) { | |
1506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1509 | return NULL; | |
1510 | } | |
1511 | } | |
1512 | { | |
0e2ff151 | 1513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 1514 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
e6056257 | 1515 | |
0e2ff151 | 1516 | wxPyEndAllowThreads(__tstate); |
e6056257 | 1517 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
1518 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1519 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
1520 | return _resultobj; |
1521 | } | |
1522 | ||
1523 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
1524 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1525 | PyObject * _resultobj; | |
1526 | wxBitmap * _result; | |
1527 | wxBitmapButton * _arg0; | |
1528 | PyObject * _argo0 = 0; | |
1529 | char *_kwnames[] = { "self", NULL }; | |
1530 | char _ptemp[128]; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) | |
1534 | return NULL; | |
1535 | if (_argo0) { | |
1536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); | |
1539 | return NULL; | |
1540 | } | |
1541 | } | |
1542 | { | |
0e2ff151 | 1543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 1544 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
e6056257 | 1545 | |
0e2ff151 | 1546 | wxPyEndAllowThreads(__tstate); |
e6056257 | 1547 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
1548 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1549 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
1550 | return _resultobj; |
1551 | } | |
1552 | ||
1553 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
1554 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1555 | PyObject * _resultobj; | |
1556 | wxBitmap * _result; | |
1557 | wxBitmapButton * _arg0; | |
1558 | PyObject * _argo0 = 0; | |
1559 | char *_kwnames[] = { "self", NULL }; | |
1560 | char _ptemp[128]; | |
1561 | ||
1562 | self = self; | |
1563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) | |
1564 | return NULL; | |
1565 | if (_argo0) { | |
1566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); | |
1569 | return NULL; | |
1570 | } | |
1571 | } | |
1572 | { | |
0e2ff151 | 1573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 1574 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
e6056257 | 1575 | |
0e2ff151 | 1576 | wxPyEndAllowThreads(__tstate); |
e6056257 | 1577 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
1578 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1579 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
1580 | return _resultobj; |
1581 | } | |
1582 | ||
1583 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
1584 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1585 | PyObject * _resultobj; | |
1586 | wxBitmapButton * _arg0; | |
1587 | wxBitmap * _arg1; | |
1588 | PyObject * _argo0 = 0; | |
1589 | PyObject * _argo1 = 0; | |
1590 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1591 | ||
1592 | self = self; | |
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) | |
1594 | return NULL; | |
1595 | if (_argo0) { | |
1596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1599 | return NULL; | |
1600 | } | |
1601 | } | |
1602 | if (_argo1) { | |
1603 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1604 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); | |
1606 | return NULL; | |
1607 | } | |
1608 | } | |
1609 | { | |
0e2ff151 | 1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1611 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
1612 | ||
0e2ff151 | 1613 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1614 | if (PyErr_Occurred()) return NULL; |
1615 | } Py_INCREF(Py_None); | |
1616 | _resultobj = Py_None; | |
1617 | return _resultobj; | |
1618 | } | |
1619 | ||
1620 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
1621 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1622 | PyObject * _resultobj; | |
1623 | wxBitmapButton * _arg0; | |
1624 | wxBitmap * _arg1; | |
1625 | PyObject * _argo0 = 0; | |
1626 | PyObject * _argo1 = 0; | |
1627 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1628 | ||
1629 | self = self; | |
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) | |
1631 | return NULL; | |
1632 | if (_argo0) { | |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); | |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
1639 | if (_argo1) { | |
1640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); | |
1643 | return NULL; | |
1644 | } | |
1645 | } | |
1646 | { | |
0e2ff151 | 1647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1648 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
1649 | ||
0e2ff151 | 1650 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1651 | if (PyErr_Occurred()) return NULL; |
1652 | } Py_INCREF(Py_None); | |
1653 | _resultobj = Py_None; | |
1654 | return _resultobj; | |
1655 | } | |
1656 | ||
1657 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
1658 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1659 | PyObject * _resultobj; | |
1660 | wxBitmapButton * _arg0; | |
1661 | wxBitmap * _arg1; | |
1662 | PyObject * _argo0 = 0; | |
1663 | PyObject * _argo1 = 0; | |
1664 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1665 | ||
1666 | self = self; | |
1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) | |
1668 | return NULL; | |
1669 | if (_argo0) { | |
1670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); | |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
1676 | if (_argo1) { | |
1677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); | |
1680 | return NULL; | |
1681 | } | |
1682 | } | |
1683 | { | |
0e2ff151 | 1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1685 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
1686 | ||
0e2ff151 | 1687 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1688 | if (PyErr_Occurred()) return NULL; |
1689 | } Py_INCREF(Py_None); | |
1690 | _resultobj = Py_None; | |
1691 | return _resultobj; | |
1692 | } | |
1693 | ||
1694 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
1695 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject * _resultobj; | |
1697 | wxBitmapButton * _arg0; | |
1698 | wxBitmap * _arg1; | |
1699 | PyObject * _argo0 = 0; | |
1700 | PyObject * _argo1 = 0; | |
1701 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1702 | ||
1703 | self = self; | |
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) | |
1705 | return NULL; | |
1706 | if (_argo0) { | |
1707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); | |
1710 | return NULL; | |
1711 | } | |
1712 | } | |
1713 | if (_argo1) { | |
1714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); | |
1717 | return NULL; | |
1718 | } | |
1719 | } | |
1720 | { | |
0e2ff151 | 1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1722 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
1723 | ||
0e2ff151 | 1724 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1725 | if (PyErr_Occurred()) return NULL; |
1726 | } Py_INCREF(Py_None); | |
1727 | _resultobj = Py_None; | |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
1731 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
1732 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject * _resultobj; | |
1734 | wxBitmapButton * _arg0; | |
1735 | int _arg1; | |
1736 | int _arg2; | |
1737 | PyObject * _argo0 = 0; | |
1738 | char *_kwnames[] = { "self","x","y", NULL }; | |
1739 | ||
1740 | self = self; | |
1741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1742 | return NULL; | |
1743 | if (_argo0) { | |
1744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1747 | return NULL; | |
1748 | } | |
1749 | } | |
1750 | { | |
0e2ff151 | 1751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1752 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
1753 | ||
0e2ff151 | 1754 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1755 | if (PyErr_Occurred()) return NULL; |
1756 | } Py_INCREF(Py_None); | |
1757 | _resultobj = Py_None; | |
1758 | return _resultobj; | |
1759 | } | |
1760 | ||
1761 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1762 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1763 | PyObject * _resultobj; | |
1764 | int _result; | |
1765 | wxBitmapButton * _arg0; | |
1766 | PyObject * _argo0 = 0; | |
1767 | char *_kwnames[] = { "self", NULL }; | |
1768 | ||
1769 | self = self; | |
1770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1771 | return NULL; | |
1772 | if (_argo0) { | |
1773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1776 | return NULL; | |
1777 | } | |
1778 | } | |
1779 | { | |
0e2ff151 | 1780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1781 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
1782 | ||
0e2ff151 | 1783 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1784 | if (PyErr_Occurred()) return NULL; |
1785 | } _resultobj = Py_BuildValue("i",_result); | |
1786 | return _resultobj; | |
1787 | } | |
1788 | ||
1789 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1790 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject * _resultobj; | |
1792 | int _result; | |
1793 | wxBitmapButton * _arg0; | |
1794 | PyObject * _argo0 = 0; | |
1795 | char *_kwnames[] = { "self", NULL }; | |
1796 | ||
1797 | self = self; | |
1798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1799 | return NULL; | |
1800 | if (_argo0) { | |
1801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1804 | return NULL; | |
1805 | } | |
1806 | } | |
1807 | { | |
0e2ff151 | 1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1809 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
1810 | ||
0e2ff151 | 1811 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1812 | if (PyErr_Occurred()) return NULL; |
1813 | } _resultobj = Py_BuildValue("i",_result); | |
1814 | return _resultobj; | |
1815 | } | |
1816 | ||
1817 | static void *SwigwxCheckBoxTowxControl(void *ptr) { | |
1818 | wxCheckBox *src; | |
1819 | wxControl *dest; | |
1820 | src = (wxCheckBox *) ptr; | |
1821 | dest = (wxControl *) src; | |
1822 | return (void *) dest; | |
1823 | } | |
1824 | ||
1825 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1826 | wxCheckBox *src; | |
1827 | wxWindow *dest; | |
1828 | src = (wxCheckBox *) ptr; | |
1829 | dest = (wxWindow *) src; | |
1830 | return (void *) dest; | |
1831 | } | |
1832 | ||
1833 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1834 | wxCheckBox *src; | |
1835 | wxEvtHandler *dest; | |
1836 | src = (wxCheckBox *) ptr; | |
1837 | dest = (wxEvtHandler *) src; | |
1838 | return (void *) dest; | |
1839 | } | |
1840 | ||
1841 | static void *SwigwxCheckBoxTowxObject(void *ptr) { | |
1842 | wxCheckBox *src; | |
1843 | wxObject *dest; | |
1844 | src = (wxCheckBox *) ptr; | |
1845 | dest = (wxObject *) src; | |
1846 | return (void *) dest; | |
1847 | } | |
1848 | ||
1849 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1850 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1851 | PyObject * _resultobj; | |
1852 | wxCheckBox * _result; | |
1853 | wxWindow * _arg0; | |
1854 | wxWindowID _arg1; | |
1855 | wxString * _arg2; | |
1856 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1857 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1858 | long _arg5 = (long ) 0; | |
1859 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1860 | char * _arg7 = (char *) "checkBox"; | |
1861 | PyObject * _argo0 = 0; | |
1862 | PyObject * _obj2 = 0; | |
1863 | wxPoint temp; | |
1864 | PyObject * _obj3 = 0; | |
1865 | wxSize temp0; | |
1866 | PyObject * _obj4 = 0; | |
1867 | PyObject * _argo6 = 0; | |
1868 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; | |
1869 | char _ptemp[128]; | |
1870 | ||
1871 | self = self; | |
1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1873 | return NULL; | |
1874 | if (_argo0) { | |
1875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); | |
1878 | return NULL; | |
1879 | } | |
1880 | } | |
1881 | { | |
1882 | #if PYTHON_API_VERSION >= 1009 | |
1883 | char* tmpPtr; int tmpSize; | |
1884 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1886 | return NULL; | |
1887 | } | |
1888 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1889 | return NULL; | |
1890 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1891 | #else | |
1892 | if (!PyString_Check(_obj2)) { | |
1893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1894 | return NULL; | |
1895 | } | |
1896 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1897 | #endif | |
1898 | } | |
1899 | if (_obj3) | |
1900 | { | |
1901 | _arg3 = &temp; | |
1902 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1903 | return NULL; | |
1904 | } | |
1905 | if (_obj4) | |
1906 | { | |
1907 | _arg4 = &temp0; | |
1908 | if (! wxSize_helper(_obj4, &_arg4)) | |
1909 | return NULL; | |
1910 | } | |
1911 | if (_argo6) { | |
1912 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); | |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
1918 | { | |
0e2ff151 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1920 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
1921 | ||
0e2ff151 | 1922 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1923 | if (PyErr_Occurred()) return NULL; |
1924 | } if (_result) { | |
1925 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1926 | _resultobj = Py_BuildValue("s",_ptemp); | |
1927 | } else { | |
1928 | Py_INCREF(Py_None); | |
1929 | _resultobj = Py_None; | |
1930 | } | |
1931 | { | |
1932 | if (_obj2) | |
1933 | delete _arg2; | |
1934 | } | |
1935 | return _resultobj; | |
1936 | } | |
1937 | ||
1938 | #define new_wxPreCheckBox() (new wxCheckBox()) | |
1939 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxCheckBox * _result; | |
1942 | char *_kwnames[] = { NULL }; | |
1943 | char _ptemp[128]; | |
1944 | ||
1945 | self = self; | |
1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
1947 | return NULL; | |
1948 | { | |
0e2ff151 | 1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1950 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
1951 | ||
0e2ff151 | 1952 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1953 | if (PyErr_Occurred()) return NULL; |
1954 | } if (_result) { | |
1955 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1956 | _resultobj = Py_BuildValue("s",_ptemp); | |
1957 | } else { | |
1958 | Py_INCREF(Py_None); | |
1959 | _resultobj = Py_None; | |
1960 | } | |
1961 | return _resultobj; | |
1962 | } | |
1963 | ||
1964 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1965 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1966 | PyObject * _resultobj; | |
1967 | bool _result; | |
1968 | wxCheckBox * _arg0; | |
1969 | wxWindow * _arg1; | |
1970 | wxWindowID _arg2; | |
1971 | wxString * _arg3; | |
1972 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1973 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1974 | long _arg6 = (long ) 0; | |
1975 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1976 | char * _arg8 = (char *) "checkBox"; | |
1977 | PyObject * _argo0 = 0; | |
1978 | PyObject * _argo1 = 0; | |
1979 | PyObject * _obj3 = 0; | |
1980 | wxPoint temp; | |
1981 | PyObject * _obj4 = 0; | |
1982 | wxSize temp0; | |
1983 | PyObject * _obj5 = 0; | |
1984 | PyObject * _argo7 = 0; | |
1985 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
1986 | ||
1987 | self = self; | |
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1989 | return NULL; | |
1990 | if (_argo0) { | |
1991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
1993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
1994 | return NULL; | |
1995 | } | |
1996 | } | |
1997 | if (_argo1) { | |
1998 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1999 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2001 | return NULL; | |
2002 | } | |
2003 | } | |
2004 | { | |
2005 | #if PYTHON_API_VERSION >= 1009 | |
2006 | char* tmpPtr; int tmpSize; | |
2007 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2009 | return NULL; | |
2010 | } | |
2011 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2012 | return NULL; | |
2013 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2014 | #else | |
2015 | if (!PyString_Check(_obj3)) { | |
2016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2017 | return NULL; | |
2018 | } | |
2019 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2020 | #endif | |
2021 | } | |
2022 | if (_obj4) | |
2023 | { | |
2024 | _arg4 = &temp; | |
2025 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2026 | return NULL; | |
2027 | } | |
2028 | if (_obj5) | |
2029 | { | |
2030 | _arg5 = &temp0; | |
2031 | if (! wxSize_helper(_obj5, &_arg5)) | |
2032 | return NULL; | |
2033 | } | |
2034 | if (_argo7) { | |
2035 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2038 | return NULL; | |
2039 | } | |
2040 | } | |
2041 | { | |
0e2ff151 | 2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2043 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
2044 | ||
0e2ff151 | 2045 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2046 | if (PyErr_Occurred()) return NULL; |
2047 | } _resultobj = Py_BuildValue("i",_result); | |
2048 | { | |
2049 | if (_obj3) | |
2050 | delete _arg3; | |
2051 | } | |
2052 | return _resultobj; | |
2053 | } | |
2054 | ||
2055 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2056 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2057 | PyObject * _resultobj; | |
2058 | bool _result; | |
2059 | wxCheckBox * _arg0; | |
2060 | PyObject * _argo0 = 0; | |
2061 | char *_kwnames[] = { "self", NULL }; | |
2062 | ||
2063 | self = self; | |
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) | |
2065 | return NULL; | |
2066 | if (_argo0) { | |
2067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); | |
2070 | return NULL; | |
2071 | } | |
2072 | } | |
2073 | { | |
0e2ff151 | 2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2075 | _result = (bool )wxCheckBox_GetValue(_arg0); |
2076 | ||
0e2ff151 | 2077 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2078 | if (PyErr_Occurred()) return NULL; |
2079 | } _resultobj = Py_BuildValue("i",_result); | |
2080 | return _resultobj; | |
2081 | } | |
2082 | ||
2083 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2084 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2085 | PyObject * _resultobj; | |
2086 | wxCheckBox * _arg0; | |
2087 | bool _arg1; | |
2088 | PyObject * _argo0 = 0; | |
2089 | int tempbool1; | |
2090 | char *_kwnames[] = { "self","state", NULL }; | |
2091 | ||
2092 | self = self; | |
2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) | |
2094 | return NULL; | |
2095 | if (_argo0) { | |
2096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); | |
2099 | return NULL; | |
2100 | } | |
2101 | } | |
2102 | _arg1 = (bool ) tempbool1; | |
2103 | { | |
0e2ff151 | 2104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2105 | wxCheckBox_SetValue(_arg0,_arg1); |
2106 | ||
0e2ff151 | 2107 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2108 | if (PyErr_Occurred()) return NULL; |
2109 | } Py_INCREF(Py_None); | |
2110 | _resultobj = Py_None; | |
2111 | return _resultobj; | |
2112 | } | |
2113 | ||
2114 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { | |
2115 | wxChoice *src; | |
2116 | wxControlWithItems *dest; | |
2117 | src = (wxChoice *) ptr; | |
2118 | dest = (wxControlWithItems *) src; | |
2119 | return (void *) dest; | |
2120 | } | |
2121 | ||
2122 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
2123 | wxChoice *src; | |
2124 | wxControl *dest; | |
2125 | src = (wxChoice *) ptr; | |
2126 | dest = (wxControl *) src; | |
2127 | return (void *) dest; | |
2128 | } | |
2129 | ||
2130 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2131 | wxChoice *src; | |
2132 | wxWindow *dest; | |
2133 | src = (wxChoice *) ptr; | |
2134 | dest = (wxWindow *) src; | |
2135 | return (void *) dest; | |
2136 | } | |
2137 | ||
2138 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2139 | wxChoice *src; | |
2140 | wxEvtHandler *dest; | |
2141 | src = (wxChoice *) ptr; | |
2142 | dest = (wxEvtHandler *) src; | |
2143 | return (void *) dest; | |
2144 | } | |
2145 | ||
2146 | static void *SwigwxChoiceTowxObject(void *ptr) { | |
2147 | wxChoice *src; | |
2148 | wxObject *dest; | |
2149 | src = (wxChoice *) ptr; | |
2150 | dest = (wxObject *) src; | |
2151 | return (void *) dest; | |
2152 | } | |
2153 | ||
2154 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2155 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2156 | PyObject * _resultobj; | |
2157 | wxChoice * _result; | |
2158 | wxWindow * _arg0; | |
2159 | wxWindowID _arg1; | |
2160 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2161 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2162 | int _arg4 = (int ) 0; | |
2163 | wxString * _arg5 = (wxString *) NULL; | |
2164 | long _arg6 = (long ) 0; | |
2165 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2166 | char * _arg8 = (char *) "choice"; | |
2167 | PyObject * _argo0 = 0; | |
2168 | wxPoint temp; | |
2169 | PyObject * _obj2 = 0; | |
2170 | wxSize temp0; | |
2171 | PyObject * _obj3 = 0; | |
2172 | PyObject * _obj5 = 0; | |
2173 | PyObject * _argo7 = 0; | |
2174 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
2175 | char _ptemp[128]; | |
2176 | ||
2177 | self = self; | |
2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2179 | return NULL; | |
2180 | if (_argo0) { | |
2181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); | |
2184 | return NULL; | |
2185 | } | |
2186 | } | |
2187 | if (_obj2) | |
2188 | { | |
2189 | _arg2 = &temp; | |
2190 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2191 | return NULL; | |
2192 | } | |
2193 | if (_obj3) | |
2194 | { | |
2195 | _arg3 = &temp0; | |
2196 | if (! wxSize_helper(_obj3, &_arg3)) | |
2197 | return NULL; | |
2198 | } | |
2199 | if (_obj5) | |
2200 | { | |
2201 | _arg5 = wxString_LIST_helper(_obj5); | |
2202 | if (_arg5 == NULL) { | |
2203 | return NULL; | |
2204 | } | |
2205 | } | |
2206 | if (_argo7) { | |
2207 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2208 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); | |
2210 | return NULL; | |
2211 | } | |
2212 | } | |
2213 | { | |
2214 | if (_obj5) { | |
2215 | _arg4 = PyList_Size(_obj5); | |
2216 | } | |
2217 | else { | |
2218 | _arg4 = 0; | |
2219 | } | |
2220 | } | |
2221 | { | |
0e2ff151 | 2222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2223 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
2224 | ||
0e2ff151 | 2225 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2226 | if (PyErr_Occurred()) return NULL; |
2227 | } if (_result) { | |
2228 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2229 | _resultobj = Py_BuildValue("s",_ptemp); | |
2230 | } else { | |
2231 | Py_INCREF(Py_None); | |
2232 | _resultobj = Py_None; | |
2233 | } | |
2234 | { | |
2235 | delete [] _arg5; | |
2236 | } | |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
2240 | #define new_wxPreChoice() (new wxChoice()) | |
2241 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject * _resultobj; | |
2243 | wxChoice * _result; | |
2244 | char *_kwnames[] = { NULL }; | |
2245 | char _ptemp[128]; | |
2246 | ||
2247 | self = self; | |
2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) | |
2249 | return NULL; | |
2250 | { | |
0e2ff151 | 2251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2252 | _result = (wxChoice *)new_wxPreChoice(); |
2253 | ||
0e2ff151 | 2254 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2255 | if (PyErr_Occurred()) return NULL; |
2256 | } if (_result) { | |
2257 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2258 | _resultobj = Py_BuildValue("s",_ptemp); | |
2259 | } else { | |
2260 | Py_INCREF(Py_None); | |
2261 | _resultobj = Py_None; | |
2262 | } | |
2263 | return _resultobj; | |
2264 | } | |
2265 | ||
2266 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2267 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2268 | PyObject * _resultobj; | |
2269 | bool _result; | |
2270 | wxChoice * _arg0; | |
2271 | wxWindow * _arg1; | |
2272 | wxWindowID _arg2; | |
2273 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2274 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2275 | int _arg5 = (int ) 0; | |
2276 | wxString * _arg6 = (wxString *) NULL; | |
2277 | long _arg7 = (long ) 0; | |
2278 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2279 | char * _arg9 = (char *) "choice"; | |
2280 | PyObject * _argo0 = 0; | |
2281 | PyObject * _argo1 = 0; | |
2282 | wxPoint temp; | |
2283 | PyObject * _obj3 = 0; | |
2284 | wxSize temp0; | |
2285 | PyObject * _obj4 = 0; | |
2286 | PyObject * _obj6 = 0; | |
2287 | PyObject * _argo8 = 0; | |
2288 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2289 | ||
2290 | self = self; | |
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2292 | return NULL; | |
2293 | if (_argo0) { | |
2294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2297 | return NULL; | |
2298 | } | |
2299 | } | |
2300 | if (_argo1) { | |
2301 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2302 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2304 | return NULL; | |
2305 | } | |
2306 | } | |
2307 | if (_obj3) | |
2308 | { | |
2309 | _arg3 = &temp; | |
2310 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2311 | return NULL; | |
2312 | } | |
2313 | if (_obj4) | |
2314 | { | |
2315 | _arg4 = &temp0; | |
2316 | if (! wxSize_helper(_obj4, &_arg4)) | |
2317 | return NULL; | |
2318 | } | |
2319 | if (_obj6) | |
2320 | { | |
2321 | _arg6 = wxString_LIST_helper(_obj6); | |
2322 | if (_arg6 == NULL) { | |
2323 | return NULL; | |
2324 | } | |
2325 | } | |
2326 | if (_argo8) { | |
2327 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2328 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2330 | return NULL; | |
2331 | } | |
2332 | } | |
2333 | { | |
2334 | if (_obj6) { | |
2335 | _arg5 = PyList_Size(_obj6); | |
2336 | } | |
2337 | else { | |
2338 | _arg5 = 0; | |
2339 | } | |
2340 | } | |
2341 | { | |
0e2ff151 | 2342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2343 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
2344 | ||
0e2ff151 | 2345 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2346 | if (PyErr_Occurred()) return NULL; |
2347 | } _resultobj = Py_BuildValue("i",_result); | |
2348 | { | |
2349 | delete [] _arg6; | |
2350 | } | |
2351 | return _resultobj; | |
2352 | } | |
2353 | ||
2354 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
2355 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2356 | PyObject * _resultobj; | |
2357 | wxChoice * _arg0; | |
2358 | PyObject * _argo0 = 0; | |
2359 | char *_kwnames[] = { "self", NULL }; | |
2360 | ||
2361 | self = self; | |
2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) | |
2363 | return NULL; | |
2364 | if (_argo0) { | |
2365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); | |
2368 | return NULL; | |
2369 | } | |
2370 | } | |
2371 | { | |
0e2ff151 | 2372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2373 | wxChoice_Clear(_arg0); |
2374 | ||
0e2ff151 | 2375 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2376 | if (PyErr_Occurred()) return NULL; |
2377 | } Py_INCREF(Py_None); | |
2378 | _resultobj = Py_None; | |
2379 | return _resultobj; | |
2380 | } | |
2381 | ||
2382 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
2383 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2384 | PyObject * _resultobj; | |
2385 | int _result; | |
2386 | wxChoice * _arg0; | |
2387 | PyObject * _argo0 = 0; | |
2388 | char *_kwnames[] = { "self", NULL }; | |
2389 | ||
2390 | self = self; | |
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) | |
2392 | return NULL; | |
2393 | if (_argo0) { | |
2394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); | |
2397 | return NULL; | |
2398 | } | |
2399 | } | |
2400 | { | |
0e2ff151 | 2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2402 | _result = (int )wxChoice_GetColumns(_arg0); |
2403 | ||
0e2ff151 | 2404 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2405 | if (PyErr_Occurred()) return NULL; |
2406 | } _resultobj = Py_BuildValue("i",_result); | |
2407 | return _resultobj; | |
2408 | } | |
2409 | ||
2410 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
2411 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject * _resultobj; | |
2413 | wxChoice * _arg0; | |
2414 | int _arg1 = (int ) 1; | |
2415 | PyObject * _argo0 = 0; | |
2416 | char *_kwnames[] = { "self","n", NULL }; | |
2417 | ||
2418 | self = self; | |
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) | |
2420 | return NULL; | |
2421 | if (_argo0) { | |
2422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); | |
2425 | return NULL; | |
2426 | } | |
2427 | } | |
2428 | { | |
0e2ff151 | 2429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2430 | wxChoice_SetColumns(_arg0,_arg1); |
2431 | ||
0e2ff151 | 2432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2433 | if (PyErr_Occurred()) return NULL; |
2434 | } Py_INCREF(Py_None); | |
2435 | _resultobj = Py_None; | |
2436 | return _resultobj; | |
2437 | } | |
2438 | ||
2439 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
2440 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject * _resultobj; | |
2442 | wxChoice * _arg0; | |
2443 | int _arg1; | |
2444 | PyObject * _argo0 = 0; | |
2445 | char *_kwnames[] = { "self","n", NULL }; | |
2446 | ||
2447 | self = self; | |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2449 | return NULL; | |
2450 | if (_argo0) { | |
2451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); | |
2454 | return NULL; | |
2455 | } | |
2456 | } | |
2457 | { | |
0e2ff151 | 2458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2459 | wxChoice_SetSelection(_arg0,_arg1); |
2460 | ||
0e2ff151 | 2461 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2462 | if (PyErr_Occurred()) return NULL; |
2463 | } Py_INCREF(Py_None); | |
2464 | _resultobj = Py_None; | |
2465 | return _resultobj; | |
2466 | } | |
2467 | ||
2468 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
2469 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject * _resultobj; | |
2471 | wxChoice * _arg0; | |
2472 | wxString * _arg1; | |
2473 | PyObject * _argo0 = 0; | |
2474 | PyObject * _obj1 = 0; | |
2475 | char *_kwnames[] = { "self","string", NULL }; | |
2476 | ||
2477 | self = self; | |
2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
2479 | return NULL; | |
2480 | if (_argo0) { | |
2481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); | |
2484 | return NULL; | |
2485 | } | |
2486 | } | |
2487 | { | |
2488 | #if PYTHON_API_VERSION >= 1009 | |
2489 | char* tmpPtr; int tmpSize; | |
2490 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2492 | return NULL; | |
2493 | } | |
2494 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2495 | return NULL; | |
2496 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2497 | #else | |
2498 | if (!PyString_Check(_obj1)) { | |
2499 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2500 | return NULL; | |
2501 | } | |
2502 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2503 | #endif | |
2504 | } | |
2505 | { | |
0e2ff151 | 2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2507 | wxChoice_SetStringSelection(_arg0,*_arg1); |
2508 | ||
0e2ff151 | 2509 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2510 | if (PyErr_Occurred()) return NULL; |
2511 | } Py_INCREF(Py_None); | |
2512 | _resultobj = Py_None; | |
2513 | { | |
2514 | if (_obj1) | |
2515 | delete _arg1; | |
2516 | } | |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
2520 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
2521 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2522 | PyObject * _resultobj; | |
2523 | wxChoice * _arg0; | |
2524 | int _arg1; | |
2525 | wxString * _arg2; | |
2526 | PyObject * _argo0 = 0; | |
2527 | PyObject * _obj2 = 0; | |
2528 | char *_kwnames[] = { "self","n","s", NULL }; | |
2529 | ||
2530 | self = self; | |
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2532 | return NULL; | |
2533 | if (_argo0) { | |
2534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2537 | return NULL; | |
2538 | } | |
2539 | } | |
2540 | { | |
2541 | #if PYTHON_API_VERSION >= 1009 | |
2542 | char* tmpPtr; int tmpSize; | |
2543 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2544 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2545 | return NULL; | |
2546 | } | |
2547 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2548 | return NULL; | |
2549 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2550 | #else | |
2551 | if (!PyString_Check(_obj2)) { | |
2552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2553 | return NULL; | |
2554 | } | |
2555 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2556 | #endif | |
2557 | } | |
2558 | { | |
0e2ff151 | 2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2560 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
2561 | ||
0e2ff151 | 2562 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2563 | if (PyErr_Occurred()) return NULL; |
2564 | } Py_INCREF(Py_None); | |
2565 | _resultobj = Py_None; | |
2566 | { | |
2567 | if (_obj2) | |
2568 | delete _arg2; | |
2569 | } | |
2570 | return _resultobj; | |
2571 | } | |
2572 | ||
2573 | static void *SwigwxComboBoxTowxChoice(void *ptr) { | |
2574 | wxComboBox *src; | |
2575 | wxChoice *dest; | |
2576 | src = (wxComboBox *) ptr; | |
2577 | dest = (wxChoice *) src; | |
2578 | return (void *) dest; | |
2579 | } | |
2580 | ||
2581 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { | |
2582 | wxComboBox *src; | |
2583 | wxControlWithItems *dest; | |
2584 | src = (wxComboBox *) ptr; | |
2585 | dest = (wxControlWithItems *) src; | |
2586 | return (void *) dest; | |
2587 | } | |
2588 | ||
2589 | static void *SwigwxComboBoxTowxControl(void *ptr) { | |
2590 | wxComboBox *src; | |
2591 | wxControl *dest; | |
2592 | src = (wxComboBox *) ptr; | |
2593 | dest = (wxControl *) src; | |
2594 | return (void *) dest; | |
2595 | } | |
2596 | ||
2597 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2598 | wxComboBox *src; | |
2599 | wxWindow *dest; | |
2600 | src = (wxComboBox *) ptr; | |
2601 | dest = (wxWindow *) src; | |
2602 | return (void *) dest; | |
2603 | } | |
2604 | ||
2605 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2606 | wxComboBox *src; | |
2607 | wxEvtHandler *dest; | |
2608 | src = (wxComboBox *) ptr; | |
2609 | dest = (wxEvtHandler *) src; | |
2610 | return (void *) dest; | |
2611 | } | |
2612 | ||
2613 | static void *SwigwxComboBoxTowxObject(void *ptr) { | |
2614 | wxComboBox *src; | |
2615 | wxObject *dest; | |
2616 | src = (wxComboBox *) ptr; | |
2617 | dest = (wxObject *) src; | |
2618 | return (void *) dest; | |
2619 | } | |
2620 | ||
2621 | #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)) | |
2622 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2623 | PyObject * _resultobj; | |
2624 | wxComboBox * _result; | |
2625 | wxWindow * _arg0; | |
2626 | wxWindowID _arg1; | |
2627 | char * _arg2 = (char *) ""; | |
2628 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2629 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2630 | int _arg5 = (int ) 0; | |
2631 | wxString * _arg6 = (wxString *) NULL; | |
2632 | long _arg7 = (long ) 0; | |
2633 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2634 | char * _arg9 = (char *) "comboBox"; | |
2635 | PyObject * _argo0 = 0; | |
2636 | wxPoint temp; | |
2637 | PyObject * _obj3 = 0; | |
2638 | wxSize temp0; | |
2639 | PyObject * _obj4 = 0; | |
2640 | PyObject * _obj6 = 0; | |
2641 | PyObject * _argo8 = 0; | |
2642 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2643 | char _ptemp[128]; | |
2644 | ||
2645 | self = self; | |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2647 | return NULL; | |
2648 | if (_argo0) { | |
2649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); | |
2652 | return NULL; | |
2653 | } | |
2654 | } | |
2655 | if (_obj3) | |
2656 | { | |
2657 | _arg3 = &temp; | |
2658 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2659 | return NULL; | |
2660 | } | |
2661 | if (_obj4) | |
2662 | { | |
2663 | _arg4 = &temp0; | |
2664 | if (! wxSize_helper(_obj4, &_arg4)) | |
2665 | return NULL; | |
2666 | } | |
2667 | if (_obj6) | |
2668 | { | |
2669 | _arg6 = wxString_LIST_helper(_obj6); | |
2670 | if (_arg6 == NULL) { | |
2671 | return NULL; | |
2672 | } | |
2673 | } | |
2674 | if (_argo8) { | |
2675 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
2682 | if (_obj6) { | |
2683 | _arg5 = PyList_Size(_obj6); | |
2684 | } | |
2685 | else { | |
2686 | _arg5 = 0; | |
2687 | } | |
2688 | } | |
2689 | { | |
0e2ff151 | 2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2691 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
2692 | ||
0e2ff151 | 2693 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2694 | if (PyErr_Occurred()) return NULL; |
2695 | } if (_result) { | |
2696 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2697 | _resultobj = Py_BuildValue("s",_ptemp); | |
2698 | } else { | |
2699 | Py_INCREF(Py_None); | |
2700 | _resultobj = Py_None; | |
2701 | } | |
2702 | { | |
2703 | delete [] _arg6; | |
2704 | } | |
2705 | return _resultobj; | |
2706 | } | |
2707 | ||
2708 | #define new_wxPreComboBox() (new wxComboBox()) | |
2709 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | wxComboBox * _result; | |
2712 | char *_kwnames[] = { NULL }; | |
2713 | char _ptemp[128]; | |
2714 | ||
2715 | self = self; | |
2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2717 | return NULL; | |
2718 | { | |
0e2ff151 | 2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2720 | _result = (wxComboBox *)new_wxPreComboBox(); |
2721 | ||
0e2ff151 | 2722 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2723 | if (PyErr_Occurred()) return NULL; |
2724 | } if (_result) { | |
2725 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2726 | _resultobj = Py_BuildValue("s",_ptemp); | |
2727 | } else { | |
2728 | Py_INCREF(Py_None); | |
2729 | _resultobj = Py_None; | |
2730 | } | |
2731 | return _resultobj; | |
2732 | } | |
2733 | ||
2734 | #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)) | |
2735 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2736 | PyObject * _resultobj; | |
2737 | bool _result; | |
2738 | wxComboBox * _arg0; | |
2739 | wxWindow * _arg1; | |
2740 | wxWindowID _arg2; | |
2741 | char * _arg3 = (char *) ""; | |
2742 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2743 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2744 | int _arg6 = (int ) 0; | |
2745 | wxString * _arg7 = (wxString *) NULL; | |
2746 | long _arg8 = (long ) 0; | |
2747 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2748 | char * _arg10 = (char *) "comboBox"; | |
2749 | PyObject * _argo0 = 0; | |
2750 | PyObject * _argo1 = 0; | |
2751 | wxPoint temp; | |
2752 | PyObject * _obj4 = 0; | |
2753 | wxSize temp0; | |
2754 | PyObject * _obj5 = 0; | |
2755 | PyObject * _obj7 = 0; | |
2756 | PyObject * _argo9 = 0; | |
2757 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2758 | ||
2759 | self = self; | |
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2761 | return NULL; | |
2762 | if (_argo0) { | |
2763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
2769 | if (_argo1) { | |
2770 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2771 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2773 | return NULL; | |
2774 | } | |
2775 | } | |
2776 | if (_obj4) | |
2777 | { | |
2778 | _arg4 = &temp; | |
2779 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2780 | return NULL; | |
2781 | } | |
2782 | if (_obj5) | |
2783 | { | |
2784 | _arg5 = &temp0; | |
2785 | if (! wxSize_helper(_obj5, &_arg5)) | |
2786 | return NULL; | |
2787 | } | |
2788 | if (_obj7) | |
2789 | { | |
2790 | _arg7 = wxString_LIST_helper(_obj7); | |
2791 | if (_arg7 == NULL) { | |
2792 | return NULL; | |
2793 | } | |
2794 | } | |
2795 | if (_argo9) { | |
2796 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
2802 | { | |
2803 | if (_obj7) { | |
2804 | _arg6 = PyList_Size(_obj7); | |
2805 | } | |
2806 | else { | |
2807 | _arg6 = 0; | |
2808 | } | |
2809 | } | |
2810 | { | |
0e2ff151 | 2811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2812 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
2813 | ||
0e2ff151 | 2814 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2815 | if (PyErr_Occurred()) return NULL; |
2816 | } _resultobj = Py_BuildValue("i",_result); | |
2817 | { | |
2818 | delete [] _arg7; | |
2819 | } | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
2824 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxComboBox * _arg0; | |
2827 | PyObject * _argo0 = 0; | |
2828 | char *_kwnames[] = { "self", NULL }; | |
2829 | ||
2830 | self = self; | |
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) | |
2832 | return NULL; | |
2833 | if (_argo0) { | |
2834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); | |
2837 | return NULL; | |
2838 | } | |
2839 | } | |
2840 | { | |
0e2ff151 | 2841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2842 | wxComboBox_Copy(_arg0); |
2843 | ||
0e2ff151 | 2844 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2845 | if (PyErr_Occurred()) return NULL; |
2846 | } Py_INCREF(Py_None); | |
2847 | _resultobj = Py_None; | |
2848 | return _resultobj; | |
2849 | } | |
2850 | ||
2851 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
2852 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject * _resultobj; | |
2854 | wxComboBox * _arg0; | |
2855 | PyObject * _argo0 = 0; | |
2856 | char *_kwnames[] = { "self", NULL }; | |
2857 | ||
2858 | self = self; | |
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) | |
2860 | return NULL; | |
2861 | if (_argo0) { | |
2862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); | |
2865 | return NULL; | |
2866 | } | |
2867 | } | |
2868 | { | |
0e2ff151 | 2869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2870 | wxComboBox_Cut(_arg0); |
2871 | ||
0e2ff151 | 2872 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2873 | if (PyErr_Occurred()) return NULL; |
2874 | } Py_INCREF(Py_None); | |
2875 | _resultobj = Py_None; | |
2876 | return _resultobj; | |
2877 | } | |
2878 | ||
2879 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
2880 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2881 | PyObject * _resultobj; | |
2882 | long _result; | |
2883 | wxComboBox * _arg0; | |
2884 | PyObject * _argo0 = 0; | |
2885 | char *_kwnames[] = { "self", NULL }; | |
2886 | ||
2887 | self = self; | |
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) | |
2889 | return NULL; | |
2890 | if (_argo0) { | |
2891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); | |
2894 | return NULL; | |
2895 | } | |
2896 | } | |
2897 | { | |
0e2ff151 | 2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2899 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
2900 | ||
0e2ff151 | 2901 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2902 | if (PyErr_Occurred()) return NULL; |
2903 | } _resultobj = Py_BuildValue("l",_result); | |
2904 | return _resultobj; | |
2905 | } | |
2906 | ||
2907 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
2908 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject * _resultobj; | |
2910 | long _result; | |
2911 | wxComboBox * _arg0; | |
2912 | PyObject * _argo0 = 0; | |
2913 | char *_kwnames[] = { "self", NULL }; | |
2914 | ||
2915 | self = self; | |
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) | |
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_GetLastPosition. Expected _wxComboBox_p."); | |
2922 | return NULL; | |
2923 | } | |
2924 | } | |
2925 | { | |
0e2ff151 | 2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2927 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
2928 | ||
0e2ff151 | 2929 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2930 | if (PyErr_Occurred()) return NULL; |
2931 | } _resultobj = Py_BuildValue("l",_result); | |
2932 | return _resultobj; | |
2933 | } | |
2934 | ||
2935 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2936 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject * _resultobj; | |
2938 | wxString * _result; | |
2939 | wxComboBox * _arg0; | |
2940 | PyObject * _argo0 = 0; | |
2941 | char *_kwnames[] = { "self", NULL }; | |
2942 | ||
2943 | self = self; | |
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) | |
2945 | return NULL; | |
2946 | if (_argo0) { | |
2947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); | |
2950 | return NULL; | |
2951 | } | |
2952 | } | |
2953 | { | |
0e2ff151 | 2954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2955 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
2956 | ||
0e2ff151 | 2957 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2958 | if (PyErr_Occurred()) return NULL; |
2959 | }{ | |
2960 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2961 | } | |
2962 | { | |
2963 | delete _result; | |
2964 | } | |
2965 | return _resultobj; | |
2966 | } | |
2967 | ||
2968 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
2969 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2970 | PyObject * _resultobj; | |
2971 | wxComboBox * _arg0; | |
2972 | PyObject * _argo0 = 0; | |
2973 | char *_kwnames[] = { "self", NULL }; | |
2974 | ||
2975 | self = self; | |
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) | |
2977 | return NULL; | |
2978 | if (_argo0) { | |
2979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); | |
2982 | return NULL; | |
2983 | } | |
2984 | } | |
2985 | { | |
0e2ff151 | 2986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2987 | wxComboBox_Paste(_arg0); |
2988 | ||
0e2ff151 | 2989 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2990 | if (PyErr_Occurred()) return NULL; |
2991 | } Py_INCREF(Py_None); | |
2992 | _resultobj = Py_None; | |
2993 | return _resultobj; | |
2994 | } | |
2995 | ||
2996 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
2997 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject * _resultobj; | |
2999 | wxComboBox * _arg0; | |
3000 | long _arg1; | |
3001 | long _arg2; | |
3002 | wxString * _arg3; | |
3003 | PyObject * _argo0 = 0; | |
3004 | PyObject * _obj3 = 0; | |
3005 | char *_kwnames[] = { "self","from","to","text", NULL }; | |
3006 | ||
3007 | self = self; | |
3008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3009 | return NULL; | |
3010 | if (_argo0) { | |
3011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); | |
3014 | return NULL; | |
3015 | } | |
3016 | } | |
3017 | { | |
3018 | #if PYTHON_API_VERSION >= 1009 | |
3019 | char* tmpPtr; int tmpSize; | |
3020 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3021 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3022 | return NULL; | |
3023 | } | |
3024 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3025 | return NULL; | |
3026 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3027 | #else | |
3028 | if (!PyString_Check(_obj3)) { | |
3029 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3030 | return NULL; | |
3031 | } | |
3032 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3033 | #endif | |
3034 | } | |
3035 | { | |
0e2ff151 | 3036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3037 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
3038 | ||
0e2ff151 | 3039 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3040 | if (PyErr_Occurred()) return NULL; |
3041 | } Py_INCREF(Py_None); | |
3042 | _resultobj = Py_None; | |
3043 | { | |
3044 | if (_obj3) | |
3045 | delete _arg3; | |
3046 | } | |
3047 | return _resultobj; | |
3048 | } | |
3049 | ||
3050 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
3051 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject * _resultobj; | |
3053 | wxComboBox * _arg0; | |
3054 | long _arg1; | |
3055 | long _arg2; | |
3056 | PyObject * _argo0 = 0; | |
3057 | char *_kwnames[] = { "self","from","to", NULL }; | |
3058 | ||
3059 | self = self; | |
3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3061 | return NULL; | |
3062 | if (_argo0) { | |
3063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); | |
3066 | return NULL; | |
3067 | } | |
3068 | } | |
3069 | { | |
0e2ff151 | 3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3071 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
3072 | ||
0e2ff151 | 3073 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3074 | if (PyErr_Occurred()) return NULL; |
3075 | } Py_INCREF(Py_None); | |
3076 | _resultobj = Py_None; | |
3077 | return _resultobj; | |
3078 | } | |
3079 | ||
3080 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
3081 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject * _resultobj; | |
3083 | wxComboBox * _arg0; | |
3084 | long _arg1; | |
3085 | PyObject * _argo0 = 0; | |
3086 | char *_kwnames[] = { "self","pos", NULL }; | |
3087 | ||
3088 | self = self; | |
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
3090 | return NULL; | |
3091 | if (_argo0) { | |
3092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); | |
3095 | return NULL; | |
3096 | } | |
3097 | } | |
3098 | { | |
0e2ff151 | 3099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3100 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
3101 | ||
0e2ff151 | 3102 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3103 | if (PyErr_Occurred()) return NULL; |
3104 | } Py_INCREF(Py_None); | |
3105 | _resultobj = Py_None; | |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
3109 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
3110 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject * _resultobj; | |
3112 | wxComboBox * _arg0; | |
3113 | PyObject * _argo0 = 0; | |
3114 | char *_kwnames[] = { "self", NULL }; | |
3115 | ||
3116 | self = self; | |
3117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) | |
3118 | return NULL; | |
3119 | if (_argo0) { | |
3120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); | |
3123 | return NULL; | |
3124 | } | |
3125 | } | |
3126 | { | |
0e2ff151 | 3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3128 | wxComboBox_SetInsertionPointEnd(_arg0); |
3129 | ||
0e2ff151 | 3130 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3131 | if (PyErr_Occurred()) return NULL; |
3132 | } Py_INCREF(Py_None); | |
3133 | _resultobj = Py_None; | |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3138 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject * _resultobj; | |
3140 | wxComboBox * _arg0; | |
3141 | int _arg1; | |
3142 | PyObject * _argo0 = 0; | |
3143 | char *_kwnames[] = { "self","n", NULL }; | |
3144 | ||
3145 | self = self; | |
3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3147 | return NULL; | |
3148 | if (_argo0) { | |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
3155 | { | |
0e2ff151 | 3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3157 | wxComboBox_SetSelection(_arg0,_arg1); |
3158 | ||
0e2ff151 | 3159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3160 | if (PyErr_Occurred()) return NULL; |
3161 | } Py_INCREF(Py_None); | |
3162 | _resultobj = Py_None; | |
3163 | return _resultobj; | |
3164 | } | |
3165 | ||
3166 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
3167 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject * _resultobj; | |
3169 | wxComboBox * _arg0; | |
3170 | long _arg1; | |
3171 | long _arg2; | |
3172 | PyObject * _argo0 = 0; | |
3173 | char *_kwnames[] = { "self","from","to", NULL }; | |
3174 | ||
3175 | self = self; | |
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3177 | return NULL; | |
3178 | if (_argo0) { | |
3179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); | |
3182 | return NULL; | |
3183 | } | |
3184 | } | |
3185 | { | |
0e2ff151 | 3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3187 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
3188 | ||
0e2ff151 | 3189 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3190 | if (PyErr_Occurred()) return NULL; |
3191 | } Py_INCREF(Py_None); | |
3192 | _resultobj = Py_None; | |
3193 | return _resultobj; | |
3194 | } | |
3195 | ||
3196 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3197 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject * _resultobj; | |
3199 | wxComboBox * _arg0; | |
3200 | wxString * _arg1; | |
3201 | PyObject * _argo0 = 0; | |
3202 | PyObject * _obj1 = 0; | |
3203 | char *_kwnames[] = { "self","text", NULL }; | |
3204 | ||
3205 | self = self; | |
3206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) | |
3207 | return NULL; | |
3208 | if (_argo0) { | |
3209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); | |
3212 | return NULL; | |
3213 | } | |
3214 | } | |
3215 | { | |
3216 | #if PYTHON_API_VERSION >= 1009 | |
3217 | char* tmpPtr; int tmpSize; | |
3218 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3219 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3220 | return NULL; | |
3221 | } | |
3222 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3223 | return NULL; | |
3224 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3225 | #else | |
3226 | if (!PyString_Check(_obj1)) { | |
3227 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3228 | return NULL; | |
3229 | } | |
3230 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3231 | #endif | |
3232 | } | |
3233 | { | |
0e2ff151 | 3234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3235 | wxComboBox_SetValue(_arg0,*_arg1); |
3236 | ||
0e2ff151 | 3237 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3238 | if (PyErr_Occurred()) return NULL; |
3239 | } Py_INCREF(Py_None); | |
3240 | _resultobj = Py_None; | |
3241 | { | |
3242 | if (_obj1) | |
3243 | delete _arg1; | |
3244 | } | |
3245 | return _resultobj; | |
3246 | } | |
3247 | ||
3248 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
3249 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3250 | PyObject * _resultobj; | |
3251 | wxComboBox * _arg0; | |
3252 | bool _arg1; | |
3253 | PyObject * _argo0 = 0; | |
3254 | int tempbool1; | |
3255 | char *_kwnames[] = { "self","editable", NULL }; | |
3256 | ||
3257 | self = self; | |
3258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3259 | return NULL; | |
3260 | if (_argo0) { | |
3261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3264 | return NULL; | |
3265 | } | |
3266 | } | |
3267 | _arg1 = (bool ) tempbool1; | |
3268 | { | |
0e2ff151 | 3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3270 | wxComboBox_SetEditable(_arg0,_arg1); |
3271 | ||
0e2ff151 | 3272 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3273 | if (PyErr_Occurred()) return NULL; |
3274 | } Py_INCREF(Py_None); | |
3275 | _resultobj = Py_None; | |
3276 | return _resultobj; | |
3277 | } | |
3278 | ||
3279 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
3280 | wxGauge *src; | |
3281 | wxControl *dest; | |
3282 | src = (wxGauge *) ptr; | |
3283 | dest = (wxControl *) src; | |
3284 | return (void *) dest; | |
3285 | } | |
3286 | ||
3287 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3288 | wxGauge *src; | |
3289 | wxWindow *dest; | |
3290 | src = (wxGauge *) ptr; | |
3291 | dest = (wxWindow *) src; | |
3292 | return (void *) dest; | |
3293 | } | |
3294 | ||
3295 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3296 | wxGauge *src; | |
3297 | wxEvtHandler *dest; | |
3298 | src = (wxGauge *) ptr; | |
3299 | dest = (wxEvtHandler *) src; | |
3300 | return (void *) dest; | |
3301 | } | |
3302 | ||
3303 | static void *SwigwxGaugeTowxObject(void *ptr) { | |
3304 | wxGauge *src; | |
3305 | wxObject *dest; | |
3306 | src = (wxGauge *) ptr; | |
3307 | dest = (wxObject *) src; | |
3308 | return (void *) dest; | |
3309 | } | |
3310 | ||
3311 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3312 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject * _resultobj; | |
3314 | wxGauge * _result; | |
3315 | wxWindow * _arg0; | |
3316 | wxWindowID _arg1; | |
3317 | int _arg2; | |
3318 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3319 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3320 | long _arg5 = (long ) wxGA_HORIZONTAL; | |
3321 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3322 | char * _arg7 = (char *) "gauge"; | |
3323 | PyObject * _argo0 = 0; | |
3324 | wxPoint temp; | |
3325 | PyObject * _obj3 = 0; | |
3326 | wxSize temp0; | |
3327 | PyObject * _obj4 = 0; | |
3328 | PyObject * _argo6 = 0; | |
3329 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; | |
3330 | char _ptemp[128]; | |
3331 | ||
3332 | self = self; | |
3333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3334 | return NULL; | |
3335 | if (_argo0) { | |
3336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); | |
3339 | return NULL; | |
3340 | } | |
3341 | } | |
3342 | if (_obj3) | |
3343 | { | |
3344 | _arg3 = &temp; | |
3345 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3346 | return NULL; | |
3347 | } | |
3348 | if (_obj4) | |
3349 | { | |
3350 | _arg4 = &temp0; | |
3351 | if (! wxSize_helper(_obj4, &_arg4)) | |
3352 | return NULL; | |
3353 | } | |
3354 | if (_argo6) { | |
3355 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3356 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); | |
3358 | return NULL; | |
3359 | } | |
3360 | } | |
3361 | { | |
0e2ff151 | 3362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3363 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
3364 | ||
0e2ff151 | 3365 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3366 | if (PyErr_Occurred()) return NULL; |
3367 | } if (_result) { | |
3368 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3369 | _resultobj = Py_BuildValue("s",_ptemp); | |
3370 | } else { | |
3371 | Py_INCREF(Py_None); | |
3372 | _resultobj = Py_None; | |
3373 | } | |
3374 | return _resultobj; | |
3375 | } | |
3376 | ||
3377 | #define new_wxPreGauge() (new wxGauge()) | |
3378 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject * _resultobj; | |
3380 | wxGauge * _result; | |
3381 | char *_kwnames[] = { NULL }; | |
3382 | char _ptemp[128]; | |
3383 | ||
3384 | self = self; | |
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3386 | return NULL; | |
3387 | { | |
0e2ff151 | 3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3389 | _result = (wxGauge *)new_wxPreGauge(); |
3390 | ||
0e2ff151 | 3391 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3392 | if (PyErr_Occurred()) return NULL; |
3393 | } if (_result) { | |
3394 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3395 | _resultobj = Py_BuildValue("s",_ptemp); | |
3396 | } else { | |
3397 | Py_INCREF(Py_None); | |
3398 | _resultobj = Py_None; | |
3399 | } | |
3400 | return _resultobj; | |
3401 | } | |
3402 | ||
3403 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3404 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3405 | PyObject * _resultobj; | |
3406 | bool _result; | |
3407 | wxGauge * _arg0; | |
3408 | wxWindow * _arg1; | |
3409 | wxWindowID _arg2; | |
3410 | int _arg3; | |
3411 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3412 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3413 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3414 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3415 | char * _arg8 = (char *) "gauge"; | |
3416 | PyObject * _argo0 = 0; | |
3417 | PyObject * _argo1 = 0; | |
3418 | wxPoint temp; | |
3419 | PyObject * _obj4 = 0; | |
3420 | wxSize temp0; | |
3421 | PyObject * _obj5 = 0; | |
3422 | PyObject * _argo7 = 0; | |
3423 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3424 | ||
3425 | self = self; | |
3426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3427 | return NULL; | |
3428 | if (_argo0) { | |
3429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3432 | return NULL; | |
3433 | } | |
3434 | } | |
3435 | if (_argo1) { | |
3436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | if (_obj4) | |
3443 | { | |
3444 | _arg4 = &temp; | |
3445 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3446 | return NULL; | |
3447 | } | |
3448 | if (_obj5) | |
3449 | { | |
3450 | _arg5 = &temp0; | |
3451 | if (! wxSize_helper(_obj5, &_arg5)) | |
3452 | return NULL; | |
3453 | } | |
3454 | if (_argo7) { | |
3455 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | { | |
0e2ff151 | 3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3463 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
3464 | ||
0e2ff151 | 3465 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3466 | if (PyErr_Occurred()) return NULL; |
3467 | } _resultobj = Py_BuildValue("i",_result); | |
3468 | return _resultobj; | |
3469 | } | |
3470 | ||
3471 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
3472 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject * _resultobj; | |
3474 | int _result; | |
3475 | wxGauge * _arg0; | |
3476 | PyObject * _argo0 = 0; | |
3477 | char *_kwnames[] = { "self", NULL }; | |
3478 | ||
3479 | self = self; | |
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) | |
3481 | return NULL; | |
3482 | if (_argo0) { | |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); | |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
3489 | { | |
0e2ff151 | 3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3491 | _result = (int )wxGauge_GetBezelFace(_arg0); |
3492 | ||
0e2ff151 | 3493 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3494 | if (PyErr_Occurred()) return NULL; |
3495 | } _resultobj = Py_BuildValue("i",_result); | |
3496 | return _resultobj; | |
3497 | } | |
3498 | ||
3499 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
3500 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3501 | PyObject * _resultobj; | |
3502 | int _result; | |
3503 | wxGauge * _arg0; | |
3504 | PyObject * _argo0 = 0; | |
3505 | char *_kwnames[] = { "self", NULL }; | |
3506 | ||
3507 | self = self; | |
3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) | |
3509 | return NULL; | |
3510 | if (_argo0) { | |
3511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); | |
3514 | return NULL; | |
3515 | } | |
3516 | } | |
3517 | { | |
0e2ff151 | 3518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3519 | _result = (int )wxGauge_GetRange(_arg0); |
3520 | ||
0e2ff151 | 3521 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3522 | if (PyErr_Occurred()) return NULL; |
3523 | } _resultobj = Py_BuildValue("i",_result); | |
3524 | return _resultobj; | |
3525 | } | |
3526 | ||
3527 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
3528 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3529 | PyObject * _resultobj; | |
3530 | int _result; | |
3531 | wxGauge * _arg0; | |
3532 | PyObject * _argo0 = 0; | |
3533 | char *_kwnames[] = { "self", NULL }; | |
3534 | ||
3535 | self = self; | |
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) | |
3537 | return NULL; | |
3538 | if (_argo0) { | |
3539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); | |
3542 | return NULL; | |
3543 | } | |
3544 | } | |
3545 | { | |
0e2ff151 | 3546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3547 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
3548 | ||
0e2ff151 | 3549 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3550 | if (PyErr_Occurred()) return NULL; |
3551 | } _resultobj = Py_BuildValue("i",_result); | |
3552 | return _resultobj; | |
3553 | } | |
3554 | ||
3555 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
3556 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3557 | PyObject * _resultobj; | |
3558 | int _result; | |
3559 | wxGauge * _arg0; | |
3560 | PyObject * _argo0 = 0; | |
3561 | char *_kwnames[] = { "self", NULL }; | |
3562 | ||
3563 | self = self; | |
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) | |
3565 | return NULL; | |
3566 | if (_argo0) { | |
3567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); | |
3570 | return NULL; | |
3571 | } | |
3572 | } | |
3573 | { | |
0e2ff151 | 3574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3575 | _result = (int )wxGauge_GetValue(_arg0); |
3576 | ||
0e2ff151 | 3577 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3578 | if (PyErr_Occurred()) return NULL; |
3579 | } _resultobj = Py_BuildValue("i",_result); | |
3580 | return _resultobj; | |
3581 | } | |
3582 | ||
3583 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
3584 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject * _resultobj; | |
3586 | wxGauge * _arg0; | |
3587 | int _arg1; | |
3588 | PyObject * _argo0 = 0; | |
3589 | char *_kwnames[] = { "self","width", NULL }; | |
3590 | ||
3591 | self = self; | |
3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) | |
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_SetBezelFace. Expected _wxGauge_p."); | |
3598 | return NULL; | |
3599 | } | |
3600 | } | |
3601 | { | |
0e2ff151 | 3602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3603 | wxGauge_SetBezelFace(_arg0,_arg1); |
3604 | ||
0e2ff151 | 3605 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3606 | if (PyErr_Occurred()) return NULL; |
3607 | } Py_INCREF(Py_None); | |
3608 | _resultobj = Py_None; | |
3609 | return _resultobj; | |
3610 | } | |
3611 | ||
3612 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
3613 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3614 | PyObject * _resultobj; | |
3615 | wxGauge * _arg0; | |
3616 | int _arg1; | |
3617 | PyObject * _argo0 = 0; | |
3618 | char *_kwnames[] = { "self","range", NULL }; | |
3619 | ||
3620 | self = self; | |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) | |
3622 | return NULL; | |
3623 | if (_argo0) { | |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | { | |
0e2ff151 | 3631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3632 | wxGauge_SetRange(_arg0,_arg1); |
3633 | ||
0e2ff151 | 3634 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3635 | if (PyErr_Occurred()) return NULL; |
3636 | } Py_INCREF(Py_None); | |
3637 | _resultobj = Py_None; | |
3638 | return _resultobj; | |
3639 | } | |
3640 | ||
3641 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
3642 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3643 | PyObject * _resultobj; | |
3644 | wxGauge * _arg0; | |
3645 | int _arg1; | |
3646 | PyObject * _argo0 = 0; | |
3647 | char *_kwnames[] = { "self","width", NULL }; | |
3648 | ||
3649 | self = self; | |
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) | |
3651 | return NULL; | |
3652 | if (_argo0) { | |
3653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); | |
3656 | return NULL; | |
3657 | } | |
3658 | } | |
3659 | { | |
0e2ff151 | 3660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3661 | wxGauge_SetShadowWidth(_arg0,_arg1); |
3662 | ||
0e2ff151 | 3663 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3664 | if (PyErr_Occurred()) return NULL; |
3665 | } Py_INCREF(Py_None); | |
3666 | _resultobj = Py_None; | |
3667 | return _resultobj; | |
3668 | } | |
3669 | ||
3670 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3671 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3672 | PyObject * _resultobj; | |
3673 | wxGauge * _arg0; | |
3674 | int _arg1; | |
3675 | PyObject * _argo0 = 0; | |
3676 | char *_kwnames[] = { "self","pos", NULL }; | |
3677 | ||
3678 | self = self; | |
3679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) | |
3680 | return NULL; | |
3681 | if (_argo0) { | |
3682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); | |
3685 | return NULL; | |
3686 | } | |
3687 | } | |
3688 | { | |
0e2ff151 | 3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3690 | wxGauge_SetValue(_arg0,_arg1); |
3691 | ||
0e2ff151 | 3692 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3693 | if (PyErr_Occurred()) return NULL; |
3694 | } Py_INCREF(Py_None); | |
3695 | _resultobj = Py_None; | |
3696 | return _resultobj; | |
3697 | } | |
3698 | ||
3699 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3700 | wxStaticBox *src; | |
3701 | wxControl *dest; | |
3702 | src = (wxStaticBox *) ptr; | |
3703 | dest = (wxControl *) src; | |
3704 | return (void *) dest; | |
3705 | } | |
3706 | ||
3707 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3708 | wxStaticBox *src; | |
3709 | wxWindow *dest; | |
3710 | src = (wxStaticBox *) ptr; | |
3711 | dest = (wxWindow *) src; | |
3712 | return (void *) dest; | |
3713 | } | |
3714 | ||
3715 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3716 | wxStaticBox *src; | |
3717 | wxEvtHandler *dest; | |
3718 | src = (wxStaticBox *) ptr; | |
3719 | dest = (wxEvtHandler *) src; | |
3720 | return (void *) dest; | |
3721 | } | |
3722 | ||
3723 | static void *SwigwxStaticBoxTowxObject(void *ptr) { | |
3724 | wxStaticBox *src; | |
3725 | wxObject *dest; | |
3726 | src = (wxStaticBox *) ptr; | |
3727 | dest = (wxObject *) src; | |
3728 | return (void *) dest; | |
3729 | } | |
3730 | ||
3731 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3732 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3733 | PyObject * _resultobj; | |
3734 | wxStaticBox * _result; | |
3735 | wxWindow * _arg0; | |
3736 | wxWindowID _arg1; | |
3737 | wxString * _arg2; | |
3738 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3739 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3740 | long _arg5 = (long ) 0; | |
3741 | char * _arg6 = (char *) "staticBox"; | |
3742 | PyObject * _argo0 = 0; | |
3743 | PyObject * _obj2 = 0; | |
3744 | wxPoint temp; | |
3745 | PyObject * _obj3 = 0; | |
3746 | wxSize temp0; | |
3747 | PyObject * _obj4 = 0; | |
3748 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
3749 | char _ptemp[128]; | |
3750 | ||
3751 | self = self; | |
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
3753 | return NULL; | |
3754 | if (_argo0) { | |
3755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); | |
3758 | return NULL; | |
3759 | } | |
3760 | } | |
3761 | { | |
3762 | #if PYTHON_API_VERSION >= 1009 | |
3763 | char* tmpPtr; int tmpSize; | |
3764 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3766 | return NULL; | |
3767 | } | |
3768 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3769 | return NULL; | |
3770 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3771 | #else | |
3772 | if (!PyString_Check(_obj2)) { | |
3773 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3774 | return NULL; | |
3775 | } | |
3776 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3777 | #endif | |
3778 | } | |
3779 | if (_obj3) | |
3780 | { | |
3781 | _arg3 = &temp; | |
3782 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3783 | return NULL; | |
3784 | } | |
3785 | if (_obj4) | |
3786 | { | |
3787 | _arg4 = &temp0; | |
3788 | if (! wxSize_helper(_obj4, &_arg4)) | |
3789 | return NULL; | |
3790 | } | |
3791 | { | |
0e2ff151 | 3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3793 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
3794 | ||
0e2ff151 | 3795 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3796 | if (PyErr_Occurred()) return NULL; |
3797 | } if (_result) { | |
3798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3799 | _resultobj = Py_BuildValue("s",_ptemp); | |
3800 | } else { | |
3801 | Py_INCREF(Py_None); | |
3802 | _resultobj = Py_None; | |
3803 | } | |
3804 | { | |
3805 | if (_obj2) | |
3806 | delete _arg2; | |
3807 | } | |
3808 | return _resultobj; | |
3809 | } | |
3810 | ||
3811 | #define new_wxPreStaticBox() (new wxStaticBox()) | |
3812 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3813 | PyObject * _resultobj; | |
3814 | wxStaticBox * _result; | |
3815 | char *_kwnames[] = { NULL }; | |
3816 | char _ptemp[128]; | |
3817 | ||
3818 | self = self; | |
3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3820 | return NULL; | |
3821 | { | |
0e2ff151 | 3822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3823 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
3824 | ||
0e2ff151 | 3825 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3826 | if (PyErr_Occurred()) return NULL; |
3827 | } if (_result) { | |
3828 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3829 | _resultobj = Py_BuildValue("s",_ptemp); | |
3830 | } else { | |
3831 | Py_INCREF(Py_None); | |
3832 | _resultobj = Py_None; | |
3833 | } | |
3834 | return _resultobj; | |
3835 | } | |
3836 | ||
3837 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3838 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject * _resultobj; | |
3840 | bool _result; | |
3841 | wxStaticBox * _arg0; | |
3842 | wxWindow * _arg1; | |
3843 | wxWindowID _arg2; | |
3844 | wxString * _arg3; | |
3845 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3846 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3847 | long _arg6 = (long ) 0; | |
3848 | char * _arg7 = (char *) "staticBox"; | |
3849 | PyObject * _argo0 = 0; | |
3850 | PyObject * _argo1 = 0; | |
3851 | PyObject * _obj3 = 0; | |
3852 | wxPoint temp; | |
3853 | PyObject * _obj4 = 0; | |
3854 | wxSize temp0; | |
3855 | PyObject * _obj5 = 0; | |
3856 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3857 | ||
3858 | self = self; | |
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3860 | return NULL; | |
3861 | if (_argo0) { | |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3865 | return NULL; | |
3866 | } | |
3867 | } | |
3868 | if (_argo1) { | |
3869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
3875 | { | |
3876 | #if PYTHON_API_VERSION >= 1009 | |
3877 | char* tmpPtr; int tmpSize; | |
3878 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3879 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3880 | return NULL; | |
3881 | } | |
3882 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3883 | return NULL; | |
3884 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3885 | #else | |
3886 | if (!PyString_Check(_obj3)) { | |
3887 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3888 | return NULL; | |
3889 | } | |
3890 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3891 | #endif | |
3892 | } | |
3893 | if (_obj4) | |
3894 | { | |
3895 | _arg4 = &temp; | |
3896 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3897 | return NULL; | |
3898 | } | |
3899 | if (_obj5) | |
3900 | { | |
3901 | _arg5 = &temp0; | |
3902 | if (! wxSize_helper(_obj5, &_arg5)) | |
3903 | return NULL; | |
3904 | } | |
3905 | { | |
0e2ff151 | 3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3907 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
3908 | ||
0e2ff151 | 3909 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3910 | if (PyErr_Occurred()) return NULL; |
3911 | } _resultobj = Py_BuildValue("i",_result); | |
3912 | { | |
3913 | if (_obj3) | |
3914 | delete _arg3; | |
3915 | } | |
3916 | return _resultobj; | |
3917 | } | |
3918 | ||
3919 | static void *SwigwxStaticLineTowxControl(void *ptr) { | |
3920 | wxStaticLine *src; | |
3921 | wxControl *dest; | |
3922 | src = (wxStaticLine *) ptr; | |
3923 | dest = (wxControl *) src; | |
3924 | return (void *) dest; | |
3925 | } | |
3926 | ||
3927 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3928 | wxStaticLine *src; | |
3929 | wxWindow *dest; | |
3930 | src = (wxStaticLine *) ptr; | |
3931 | dest = (wxWindow *) src; | |
3932 | return (void *) dest; | |
3933 | } | |
3934 | ||
3935 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3936 | wxStaticLine *src; | |
3937 | wxEvtHandler *dest; | |
3938 | src = (wxStaticLine *) ptr; | |
3939 | dest = (wxEvtHandler *) src; | |
3940 | return (void *) dest; | |
3941 | } | |
3942 | ||
3943 | static void *SwigwxStaticLineTowxObject(void *ptr) { | |
3944 | wxStaticLine *src; | |
3945 | wxObject *dest; | |
3946 | src = (wxStaticLine *) ptr; | |
3947 | dest = (wxObject *) src; | |
3948 | return (void *) dest; | |
3949 | } | |
3950 | ||
3951 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3952 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3953 | PyObject * _resultobj; | |
3954 | wxStaticLine * _result; | |
3955 | wxWindow * _arg0; | |
3956 | wxWindowID _arg1; | |
3957 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
3958 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
3959 | long _arg4 = (long ) wxLI_HORIZONTAL; | |
3960 | char * _arg5 = (char *) "staticLine"; | |
3961 | PyObject * _argo0 = 0; | |
3962 | wxPoint temp; | |
3963 | PyObject * _obj2 = 0; | |
3964 | wxSize temp0; | |
3965 | PyObject * _obj3 = 0; | |
3966 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
3967 | char _ptemp[128]; | |
3968 | ||
3969 | self = self; | |
3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
3971 | return NULL; | |
3972 | if (_argo0) { | |
3973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); | |
3976 | return NULL; | |
3977 | } | |
3978 | } | |
3979 | if (_obj2) | |
3980 | { | |
3981 | _arg2 = &temp; | |
3982 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3983 | return NULL; | |
3984 | } | |
3985 | if (_obj3) | |
3986 | { | |
3987 | _arg3 = &temp0; | |
3988 | if (! wxSize_helper(_obj3, &_arg3)) | |
3989 | return NULL; | |
3990 | } | |
3991 | { | |
0e2ff151 | 3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3993 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
3994 | ||
0e2ff151 | 3995 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3996 | if (PyErr_Occurred()) return NULL; |
3997 | } if (_result) { | |
3998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3999 | _resultobj = Py_BuildValue("s",_ptemp); | |
4000 | } else { | |
4001 | Py_INCREF(Py_None); | |
4002 | _resultobj = Py_None; | |
4003 | } | |
4004 | return _resultobj; | |
4005 | } | |
4006 | ||
4007 | #define new_wxPreStaticLine() (new wxStaticLine()) | |
4008 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4009 | PyObject * _resultobj; | |
4010 | wxStaticLine * _result; | |
4011 | char *_kwnames[] = { NULL }; | |
4012 | char _ptemp[128]; | |
4013 | ||
4014 | self = self; | |
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4016 | return NULL; | |
4017 | { | |
0e2ff151 | 4018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4019 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
4020 | ||
0e2ff151 | 4021 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4022 | if (PyErr_Occurred()) return NULL; |
4023 | } if (_result) { | |
4024 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4025 | _resultobj = Py_BuildValue("s",_ptemp); | |
4026 | } else { | |
4027 | Py_INCREF(Py_None); | |
4028 | _resultobj = Py_None; | |
4029 | } | |
4030 | return _resultobj; | |
4031 | } | |
4032 | ||
4033 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4034 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject * _resultobj; | |
4036 | bool _result; | |
4037 | wxStaticLine * _arg0; | |
4038 | wxWindow * _arg1; | |
4039 | wxWindowID _arg2; | |
4040 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4041 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4042 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4043 | char * _arg6 = (char *) "staticLine"; | |
4044 | PyObject * _argo0 = 0; | |
4045 | PyObject * _argo1 = 0; | |
4046 | wxPoint temp; | |
4047 | PyObject * _obj3 = 0; | |
4048 | wxSize temp0; | |
4049 | PyObject * _obj4 = 0; | |
4050 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4051 | ||
4052 | self = self; | |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4054 | return NULL; | |
4055 | if (_argo0) { | |
4056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
4062 | if (_argo1) { | |
4063 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4064 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4066 | return NULL; | |
4067 | } | |
4068 | } | |
4069 | if (_obj3) | |
4070 | { | |
4071 | _arg3 = &temp; | |
4072 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4073 | return NULL; | |
4074 | } | |
4075 | if (_obj4) | |
4076 | { | |
4077 | _arg4 = &temp0; | |
4078 | if (! wxSize_helper(_obj4, &_arg4)) | |
4079 | return NULL; | |
4080 | } | |
4081 | { | |
0e2ff151 | 4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4083 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
4084 | ||
0e2ff151 | 4085 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4086 | if (PyErr_Occurred()) return NULL; |
4087 | } _resultobj = Py_BuildValue("i",_result); | |
4088 | return _resultobj; | |
4089 | } | |
4090 | ||
4091 | static void *SwigwxStaticTextTowxControl(void *ptr) { | |
4092 | wxStaticText *src; | |
4093 | wxControl *dest; | |
4094 | src = (wxStaticText *) ptr; | |
4095 | dest = (wxControl *) src; | |
4096 | return (void *) dest; | |
4097 | } | |
4098 | ||
4099 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4100 | wxStaticText *src; | |
4101 | wxWindow *dest; | |
4102 | src = (wxStaticText *) ptr; | |
4103 | dest = (wxWindow *) src; | |
4104 | return (void *) dest; | |
4105 | } | |
4106 | ||
4107 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4108 | wxStaticText *src; | |
4109 | wxEvtHandler *dest; | |
4110 | src = (wxStaticText *) ptr; | |
4111 | dest = (wxEvtHandler *) src; | |
4112 | return (void *) dest; | |
4113 | } | |
4114 | ||
4115 | static void *SwigwxStaticTextTowxObject(void *ptr) { | |
4116 | wxStaticText *src; | |
4117 | wxObject *dest; | |
4118 | src = (wxStaticText *) ptr; | |
4119 | dest = (wxObject *) src; | |
4120 | return (void *) dest; | |
4121 | } | |
4122 | ||
4123 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4124 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject * _resultobj; | |
4126 | wxStaticText * _result; | |
4127 | wxWindow * _arg0; | |
4128 | wxWindowID _arg1; | |
4129 | wxString * _arg2; | |
4130 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4131 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4132 | long _arg5 = (long ) 0; | |
4133 | char * _arg6 = (char *) "staticText"; | |
4134 | PyObject * _argo0 = 0; | |
4135 | PyObject * _obj2 = 0; | |
4136 | wxPoint temp; | |
4137 | PyObject * _obj3 = 0; | |
4138 | wxSize temp0; | |
4139 | PyObject * _obj4 = 0; | |
4140 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4141 | char _ptemp[128]; | |
4142 | ||
4143 | self = self; | |
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4145 | return NULL; | |
4146 | if (_argo0) { | |
4147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); | |
4150 | return NULL; | |
4151 | } | |
4152 | } | |
4153 | { | |
4154 | #if PYTHON_API_VERSION >= 1009 | |
4155 | char* tmpPtr; int tmpSize; | |
4156 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4157 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4158 | return NULL; | |
4159 | } | |
4160 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4161 | return NULL; | |
4162 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4163 | #else | |
4164 | if (!PyString_Check(_obj2)) { | |
4165 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4166 | return NULL; | |
4167 | } | |
4168 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4169 | #endif | |
4170 | } | |
4171 | if (_obj3) | |
4172 | { | |
4173 | _arg3 = &temp; | |
4174 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4175 | return NULL; | |
4176 | } | |
4177 | if (_obj4) | |
4178 | { | |
4179 | _arg4 = &temp0; | |
4180 | if (! wxSize_helper(_obj4, &_arg4)) | |
4181 | return NULL; | |
4182 | } | |
4183 | { | |
0e2ff151 | 4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4185 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
4186 | ||
0e2ff151 | 4187 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4188 | if (PyErr_Occurred()) return NULL; |
4189 | } if (_result) { | |
4190 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4191 | _resultobj = Py_BuildValue("s",_ptemp); | |
4192 | } else { | |
4193 | Py_INCREF(Py_None); | |
4194 | _resultobj = Py_None; | |
4195 | } | |
4196 | { | |
4197 | if (_obj2) | |
4198 | delete _arg2; | |
4199 | } | |
4200 | return _resultobj; | |
4201 | } | |
4202 | ||
4203 | #define new_wxPreStaticText() (new wxStaticText()) | |
4204 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4205 | PyObject * _resultobj; | |
4206 | wxStaticText * _result; | |
4207 | char *_kwnames[] = { NULL }; | |
4208 | char _ptemp[128]; | |
4209 | ||
4210 | self = self; | |
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4212 | return NULL; | |
4213 | { | |
0e2ff151 | 4214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4215 | _result = (wxStaticText *)new_wxPreStaticText(); |
4216 | ||
0e2ff151 | 4217 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4218 | if (PyErr_Occurred()) return NULL; |
4219 | } if (_result) { | |
4220 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4221 | _resultobj = Py_BuildValue("s",_ptemp); | |
4222 | } else { | |
4223 | Py_INCREF(Py_None); | |
4224 | _resultobj = Py_None; | |
4225 | } | |
4226 | return _resultobj; | |
4227 | } | |
4228 | ||
4229 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4230 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4231 | PyObject * _resultobj; | |
4232 | bool _result; | |
4233 | wxStaticText * _arg0; | |
4234 | wxWindow * _arg1; | |
4235 | wxWindowID _arg2; | |
4236 | wxString * _arg3; | |
4237 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4238 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4239 | long _arg6 = (long ) 0; | |
4240 | char * _arg7 = (char *) "staticText"; | |
4241 | PyObject * _argo0 = 0; | |
4242 | PyObject * _argo1 = 0; | |
4243 | PyObject * _obj3 = 0; | |
4244 | wxPoint temp; | |
4245 | PyObject * _obj4 = 0; | |
4246 | wxSize temp0; | |
4247 | PyObject * _obj5 = 0; | |
4248 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4249 | ||
4250 | self = self; | |
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4252 | return NULL; | |
4253 | if (_argo0) { | |
4254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4257 | return NULL; | |
4258 | } | |
4259 | } | |
4260 | if (_argo1) { | |
4261 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
4267 | { | |
4268 | #if PYTHON_API_VERSION >= 1009 | |
4269 | char* tmpPtr; int tmpSize; | |
4270 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4271 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4272 | return NULL; | |
4273 | } | |
4274 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4275 | return NULL; | |
4276 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4277 | #else | |
4278 | if (!PyString_Check(_obj3)) { | |
4279 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4280 | return NULL; | |
4281 | } | |
4282 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
4283 | #endif | |
4284 | } | |
4285 | if (_obj4) | |
4286 | { | |
4287 | _arg4 = &temp; | |
4288 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4289 | return NULL; | |
4290 | } | |
4291 | if (_obj5) | |
4292 | { | |
4293 | _arg5 = &temp0; | |
4294 | if (! wxSize_helper(_obj5, &_arg5)) | |
4295 | return NULL; | |
4296 | } | |
4297 | { | |
0e2ff151 | 4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4299 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
4300 | ||
0e2ff151 | 4301 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4302 | if (PyErr_Occurred()) return NULL; |
4303 | } _resultobj = Py_BuildValue("i",_result); | |
4304 | { | |
4305 | if (_obj3) | |
4306 | delete _arg3; | |
4307 | } | |
4308 | return _resultobj; | |
4309 | } | |
4310 | ||
4311 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
4312 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4313 | PyObject * _resultobj; | |
4314 | wxString * _result; | |
4315 | wxStaticText * _arg0; | |
4316 | PyObject * _argo0 = 0; | |
4317 | char *_kwnames[] = { "self", NULL }; | |
4318 | ||
4319 | self = self; | |
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) | |
4321 | return NULL; | |
4322 | if (_argo0) { | |
4323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); | |
4326 | return NULL; | |
4327 | } | |
4328 | } | |
4329 | { | |
0e2ff151 | 4330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4331 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
4332 | ||
0e2ff151 | 4333 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4334 | if (PyErr_Occurred()) return NULL; |
4335 | }{ | |
4336 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4337 | } | |
4338 | { | |
4339 | delete _result; | |
4340 | } | |
4341 | return _resultobj; | |
4342 | } | |
4343 | ||
4344 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
4345 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4346 | PyObject * _resultobj; | |
4347 | wxStaticText * _arg0; | |
4348 | wxString * _arg1; | |
4349 | PyObject * _argo0 = 0; | |
4350 | PyObject * _obj1 = 0; | |
4351 | char *_kwnames[] = { "self","label", NULL }; | |
4352 | ||
4353 | self = self; | |
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) | |
4355 | return NULL; | |
4356 | if (_argo0) { | |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); | |
4360 | return NULL; | |
4361 | } | |
4362 | } | |
4363 | { | |
4364 | #if PYTHON_API_VERSION >= 1009 | |
4365 | char* tmpPtr; int tmpSize; | |
4366 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4367 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4368 | return NULL; | |
4369 | } | |
4370 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4371 | return NULL; | |
4372 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4373 | #else | |
4374 | if (!PyString_Check(_obj1)) { | |
4375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4376 | return NULL; | |
4377 | } | |
4378 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4379 | #endif | |
4380 | } | |
4381 | { | |
0e2ff151 | 4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4383 | wxStaticText_SetLabel(_arg0,*_arg1); |
4384 | ||
0e2ff151 | 4385 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4386 | if (PyErr_Occurred()) return NULL; |
4387 | } Py_INCREF(Py_None); | |
4388 | _resultobj = Py_None; | |
4389 | { | |
4390 | if (_obj1) | |
4391 | delete _arg1; | |
4392 | } | |
4393 | return _resultobj; | |
4394 | } | |
4395 | ||
4396 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { | |
4397 | wxListBox *src; | |
4398 | wxControlWithItems *dest; | |
4399 | src = (wxListBox *) ptr; | |
4400 | dest = (wxControlWithItems *) src; | |
4401 | return (void *) dest; | |
4402 | } | |
4403 | ||
4404 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
4405 | wxListBox *src; | |
4406 | wxControl *dest; | |
4407 | src = (wxListBox *) ptr; | |
4408 | dest = (wxControl *) src; | |
4409 | return (void *) dest; | |
4410 | } | |
4411 | ||
4412 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4413 | wxListBox *src; | |
4414 | wxWindow *dest; | |
4415 | src = (wxListBox *) ptr; | |
4416 | dest = (wxWindow *) src; | |
4417 | return (void *) dest; | |
4418 | } | |
4419 | ||
4420 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4421 | wxListBox *src; | |
4422 | wxEvtHandler *dest; | |
4423 | src = (wxListBox *) ptr; | |
4424 | dest = (wxEvtHandler *) src; | |
4425 | return (void *) dest; | |
4426 | } | |
4427 | ||
4428 | static void *SwigwxListBoxTowxObject(void *ptr) { | |
4429 | wxListBox *src; | |
4430 | wxObject *dest; | |
4431 | src = (wxListBox *) ptr; | |
4432 | dest = (wxObject *) src; | |
4433 | return (void *) dest; | |
4434 | } | |
4435 | ||
4436 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4437 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject * _resultobj; | |
4439 | wxListBox * _result; | |
4440 | wxWindow * _arg0; | |
4441 | wxWindowID _arg1; | |
4442 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4443 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4444 | int _arg4; | |
4445 | wxString * _arg5 = (wxString *) NULL; | |
4446 | long _arg6 = (long ) 0; | |
4447 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4448 | char * _arg8 = (char *) "listBox"; | |
4449 | PyObject * _argo0 = 0; | |
4450 | wxPoint temp; | |
4451 | PyObject * _obj2 = 0; | |
4452 | wxSize temp0; | |
4453 | PyObject * _obj3 = 0; | |
4454 | PyObject * _obj5 = 0; | |
4455 | PyObject * _argo7 = 0; | |
4456 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4457 | char _ptemp[128]; | |
4458 | ||
4459 | self = self; | |
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4461 | return NULL; | |
4462 | if (_argo0) { | |
4463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4466 | return NULL; | |
4467 | } | |
4468 | } | |
4469 | if (_obj2) | |
4470 | { | |
4471 | _arg2 = &temp; | |
4472 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4473 | return NULL; | |
4474 | } | |
4475 | if (_obj3) | |
4476 | { | |
4477 | _arg3 = &temp0; | |
4478 | if (! wxSize_helper(_obj3, &_arg3)) | |
4479 | return NULL; | |
4480 | } | |
4481 | if (_obj5) | |
4482 | { | |
4483 | _arg5 = wxString_LIST_helper(_obj5); | |
4484 | if (_arg5 == NULL) { | |
4485 | return NULL; | |
4486 | } | |
4487 | } | |
4488 | if (_argo7) { | |
4489 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
4495 | { | |
4496 | if (_obj5) { | |
4497 | _arg4 = PyList_Size(_obj5); | |
4498 | } | |
4499 | else { | |
4500 | _arg4 = 0; | |
4501 | } | |
4502 | } | |
4503 | { | |
0e2ff151 | 4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4505 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
4506 | ||
0e2ff151 | 4507 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4508 | if (PyErr_Occurred()) return NULL; |
4509 | } if (_result) { | |
4510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4511 | _resultobj = Py_BuildValue("s",_ptemp); | |
4512 | } else { | |
4513 | Py_INCREF(Py_None); | |
4514 | _resultobj = Py_None; | |
4515 | } | |
4516 | { | |
4517 | delete [] _arg5; | |
4518 | } | |
4519 | return _resultobj; | |
4520 | } | |
4521 | ||
4522 | #define new_wxPreListBox() (new wxListBox()) | |
4523 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4524 | PyObject * _resultobj; | |
4525 | wxListBox * _result; | |
4526 | char *_kwnames[] = { NULL }; | |
4527 | char _ptemp[128]; | |
4528 | ||
4529 | self = self; | |
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4531 | return NULL; | |
4532 | { | |
0e2ff151 | 4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4534 | _result = (wxListBox *)new_wxPreListBox(); |
4535 | ||
0e2ff151 | 4536 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4537 | if (PyErr_Occurred()) return NULL; |
4538 | } if (_result) { | |
4539 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4540 | _resultobj = Py_BuildValue("s",_ptemp); | |
4541 | } else { | |
4542 | Py_INCREF(Py_None); | |
4543 | _resultobj = Py_None; | |
4544 | } | |
4545 | return _resultobj; | |
4546 | } | |
4547 | ||
4548 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4549 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4550 | PyObject * _resultobj; | |
4551 | bool _result; | |
4552 | wxListBox * _arg0; | |
4553 | wxWindow * _arg1; | |
4554 | wxWindowID _arg2; | |
4555 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4556 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4557 | int _arg5; | |
4558 | wxString * _arg6 = (wxString *) NULL; | |
4559 | long _arg7 = (long ) 0; | |
4560 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4561 | char * _arg9 = (char *) "listBox"; | |
4562 | PyObject * _argo0 = 0; | |
4563 | PyObject * _argo1 = 0; | |
4564 | wxPoint temp; | |
4565 | PyObject * _obj3 = 0; | |
4566 | wxSize temp0; | |
4567 | PyObject * _obj4 = 0; | |
4568 | PyObject * _obj6 = 0; | |
4569 | PyObject * _argo8 = 0; | |
4570 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
4571 | ||
4572 | self = self; | |
4573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
4574 | return NULL; | |
4575 | if (_argo0) { | |
4576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
4579 | return NULL; | |
4580 | } | |
4581 | } | |
4582 | if (_argo1) { | |
4583 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4584 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4586 | return NULL; | |
4587 | } | |
4588 | } | |
4589 | if (_obj3) | |
4590 | { | |
4591 | _arg3 = &temp; | |
4592 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4593 | return NULL; | |
4594 | } | |
4595 | if (_obj4) | |
4596 | { | |
4597 | _arg4 = &temp0; | |
4598 | if (! wxSize_helper(_obj4, &_arg4)) | |
4599 | return NULL; | |
4600 | } | |
4601 | if (_obj6) | |
4602 | { | |
4603 | _arg6 = wxString_LIST_helper(_obj6); | |
4604 | if (_arg6 == NULL) { | |
4605 | return NULL; | |
4606 | } | |
4607 | } | |
4608 | if (_argo8) { | |
4609 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4610 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
4612 | return NULL; | |
4613 | } | |
4614 | } | |
4615 | { | |
4616 | if (_obj6) { | |
4617 | _arg5 = PyList_Size(_obj6); | |
4618 | } | |
4619 | else { | |
4620 | _arg5 = 0; | |
4621 | } | |
4622 | } | |
4623 | { | |
0e2ff151 | 4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4625 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
4626 | ||
0e2ff151 | 4627 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4628 | if (PyErr_Occurred()) return NULL; |
4629 | } _resultobj = Py_BuildValue("i",_result); | |
4630 | { | |
4631 | delete [] _arg6; | |
4632 | } | |
4633 | return _resultobj; | |
4634 | } | |
4635 | ||
4636 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
4637 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4638 | PyObject * _resultobj; | |
4639 | wxListBox * _arg0; | |
4640 | PyObject * _argo0 = 0; | |
4641 | char *_kwnames[] = { "self", NULL }; | |
4642 | ||
4643 | self = self; | |
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) | |
4645 | return NULL; | |
4646 | if (_argo0) { | |
4647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); | |
4650 | return NULL; | |
4651 | } | |
4652 | } | |
4653 | { | |
0e2ff151 | 4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4655 | wxListBox_Clear(_arg0); |
4656 | ||
0e2ff151 | 4657 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4658 | if (PyErr_Occurred()) return NULL; |
4659 | } Py_INCREF(Py_None); | |
4660 | _resultobj = Py_None; | |
4661 | return _resultobj; | |
4662 | } | |
4663 | ||
4664 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
4665 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject * _resultobj; | |
4667 | wxListBox * _arg0; | |
4668 | int _arg1; | |
4669 | PyObject * _argo0 = 0; | |
4670 | char *_kwnames[] = { "self","n", NULL }; | |
4671 | ||
4672 | self = self; | |
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) | |
4674 | return NULL; | |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); | |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | { | |
0e2ff151 | 4683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4684 | wxListBox_Deselect(_arg0,_arg1); |
4685 | ||
0e2ff151 | 4686 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4687 | if (PyErr_Occurred()) return NULL; |
4688 | } Py_INCREF(Py_None); | |
4689 | _resultobj = Py_None; | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
4694 | wxArrayInt lst; | |
4695 | self->GetSelections(lst); | |
4696 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
4697 | for(size_t i=0; i<lst.GetCount(); i++) { | |
4698 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
4699 | } | |
4700 | return tup; | |
4701 | } | |
4702 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject * _resultobj; | |
4704 | PyObject * _result; | |
4705 | wxListBox * _arg0; | |
4706 | PyObject * _argo0 = 0; | |
4707 | char *_kwnames[] = { "self", NULL }; | |
4708 | ||
4709 | self = self; | |
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) | |
4711 | return NULL; | |
4712 | if (_argo0) { | |
4713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); | |
4716 | return NULL; | |
4717 | } | |
4718 | } | |
4719 | { | |
0e2ff151 | 4720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4721 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
4722 | ||
0e2ff151 | 4723 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4724 | if (PyErr_Occurred()) return NULL; |
4725 | }{ | |
4726 | _resultobj = _result; | |
4727 | } | |
4728 | return _resultobj; | |
4729 | } | |
4730 | ||
4731 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
4732 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4733 | PyObject * _resultobj; | |
4734 | wxListBox * _arg0; | |
4735 | int _arg1; | |
4736 | wxString * _arg2; | |
4737 | int _arg3; | |
4738 | PyObject * _argo0 = 0; | |
4739 | PyObject * _obj2 = 0; | |
4740 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
4741 | ||
4742 | self = self; | |
4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4744 | return NULL; | |
4745 | if (_argo0) { | |
4746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4749 | return NULL; | |
4750 | } | |
4751 | } | |
4752 | { | |
4753 | _arg2 = wxString_LIST_helper(_obj2); | |
4754 | if (_arg2 == NULL) { | |
4755 | return NULL; | |
4756 | } | |
4757 | } | |
4758 | { | |
4759 | if (_obj2) { | |
4760 | _arg1 = PyList_Size(_obj2); | |
4761 | } | |
4762 | else { | |
4763 | _arg1 = 0; | |
4764 | } | |
4765 | } | |
4766 | { | |
0e2ff151 | 4767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4768 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
4769 | ||
0e2ff151 | 4770 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4771 | if (PyErr_Occurred()) return NULL; |
4772 | } Py_INCREF(Py_None); | |
4773 | _resultobj = Py_None; | |
4774 | { | |
4775 | delete [] _arg2; | |
4776 | } | |
4777 | return _resultobj; | |
4778 | } | |
4779 | ||
4780 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
4781 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject * _resultobj; | |
4783 | bool _result; | |
4784 | wxListBox * _arg0; | |
4785 | int _arg1; | |
4786 | PyObject * _argo0 = 0; | |
4787 | char *_kwnames[] = { "self","n", NULL }; | |
4788 | ||
4789 | self = self; | |
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4791 | return NULL; | |
4792 | if (_argo0) { | |
4793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4796 | return NULL; | |
4797 | } | |
4798 | } | |
4799 | { | |
0e2ff151 | 4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4801 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
4802 | ||
0e2ff151 | 4803 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4804 | if (PyErr_Occurred()) return NULL; |
4805 | } _resultobj = Py_BuildValue("i",_result); | |
4806 | return _resultobj; | |
4807 | } | |
4808 | ||
4809 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
4810 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject * _resultobj; | |
4812 | bool _result; | |
4813 | wxListBox * _arg0; | |
4814 | int _arg1; | |
4815 | PyObject * _argo0 = 0; | |
4816 | char *_kwnames[] = { "self","n", NULL }; | |
4817 | ||
4818 | self = self; | |
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) | |
4820 | return NULL; | |
4821 | if (_argo0) { | |
4822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); | |
4825 | return NULL; | |
4826 | } | |
4827 | } | |
4828 | { | |
0e2ff151 | 4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4830 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
4831 | ||
0e2ff151 | 4832 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4833 | if (PyErr_Occurred()) return NULL; |
4834 | } _resultobj = Py_BuildValue("i",_result); | |
4835 | return _resultobj; | |
4836 | } | |
4837 | ||
4838 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
4839 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject * _resultobj; | |
4841 | wxListBox * _arg0; | |
4842 | int _arg1; | |
4843 | wxString * _arg2; | |
4844 | PyObject * _argo0 = 0; | |
4845 | PyObject * _obj2 = 0; | |
4846 | char *_kwnames[] = { "self","choices", NULL }; | |
4847 | ||
4848 | self = self; | |
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) | |
4850 | return NULL; | |
4851 | if (_argo0) { | |
4852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); | |
4855 | return NULL; | |
4856 | } | |
4857 | } | |
4858 | if (_obj2) | |
4859 | { | |
4860 | _arg2 = wxString_LIST_helper(_obj2); | |
4861 | if (_arg2 == NULL) { | |
4862 | return NULL; | |
4863 | } | |
4864 | } | |
4865 | { | |
4866 | if (_obj2) { | |
4867 | _arg1 = PyList_Size(_obj2); | |
4868 | } | |
4869 | else { | |
4870 | _arg1 = 0; | |
4871 | } | |
4872 | } | |
4873 | { | |
0e2ff151 | 4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4875 | wxListBox_Set(_arg0,_arg1,_arg2); |
4876 | ||
0e2ff151 | 4877 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4878 | if (PyErr_Occurred()) return NULL; |
4879 | } Py_INCREF(Py_None); | |
4880 | _resultobj = Py_None; | |
4881 | { | |
4882 | delete [] _arg2; | |
4883 | } | |
4884 | return _resultobj; | |
4885 | } | |
4886 | ||
4887 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4888 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4889 | PyObject * _resultobj; | |
4890 | wxListBox * _arg0; | |
4891 | int _arg1; | |
4892 | PyObject * _argo0 = 0; | |
4893 | char *_kwnames[] = { "self","n", NULL }; | |
4894 | ||
4895 | self = self; | |
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) | |
4897 | return NULL; | |
4898 | if (_argo0) { | |
4899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); | |
4902 | return NULL; | |
4903 | } | |
4904 | } | |
4905 | { | |
0e2ff151 | 4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4907 | wxListBox_SetFirstItem(_arg0,_arg1); |
4908 | ||
0e2ff151 | 4909 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4910 | if (PyErr_Occurred()) return NULL; |
4911 | } Py_INCREF(Py_None); | |
4912 | _resultobj = Py_None; | |
4913 | return _resultobj; | |
4914 | } | |
4915 | ||
4916 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4917 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4918 | PyObject * _resultobj; | |
4919 | wxListBox * _arg0; | |
4920 | wxString * _arg1; | |
4921 | PyObject * _argo0 = 0; | |
4922 | PyObject * _obj1 = 0; | |
4923 | char *_kwnames[] = { "self","string", NULL }; | |
4924 | ||
4925 | self = self; | |
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) | |
4927 | return NULL; | |
4928 | if (_argo0) { | |
4929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); | |
4932 | return NULL; | |
4933 | } | |
4934 | } | |
4935 | { | |
4936 | #if PYTHON_API_VERSION >= 1009 | |
4937 | char* tmpPtr; int tmpSize; | |
4938 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4940 | return NULL; | |
4941 | } | |
4942 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4943 | return NULL; | |
4944 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4945 | #else | |
4946 | if (!PyString_Check(_obj1)) { | |
4947 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4948 | return NULL; | |
4949 | } | |
4950 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4951 | #endif | |
4952 | } | |
4953 | { | |
0e2ff151 | 4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4955 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
4956 | ||
0e2ff151 | 4957 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4958 | if (PyErr_Occurred()) return NULL; |
4959 | } Py_INCREF(Py_None); | |
4960 | _resultobj = Py_None; | |
4961 | { | |
4962 | if (_obj1) | |
4963 | delete _arg1; | |
4964 | } | |
4965 | return _resultobj; | |
4966 | } | |
4967 | ||
4968 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
4969 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject * _resultobj; | |
4971 | wxListBox * _arg0; | |
4972 | int _arg1; | |
4973 | bool _arg2 = (bool ) TRUE; | |
4974 | PyObject * _argo0 = 0; | |
4975 | int tempbool2 = (int) TRUE; | |
4976 | char *_kwnames[] = { "self","n","select", NULL }; | |
4977 | ||
4978 | self = self; | |
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
4980 | return NULL; | |
4981 | if (_argo0) { | |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); | |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
4988 | _arg2 = (bool ) tempbool2; | |
4989 | { | |
0e2ff151 | 4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4991 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
4992 | ||
0e2ff151 | 4993 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4994 | if (PyErr_Occurred()) return NULL; |
4995 | } Py_INCREF(Py_None); | |
4996 | _resultobj = Py_None; | |
4997 | return _resultobj; | |
4998 | } | |
4999 | ||
5000 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
5001 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5002 | PyObject * _resultobj; | |
5003 | wxListBox * _arg0; | |
5004 | int _arg1; | |
5005 | wxString * _arg2; | |
5006 | PyObject * _argo0 = 0; | |
5007 | PyObject * _obj2 = 0; | |
5008 | char *_kwnames[] = { "self","n","string", NULL }; | |
5009 | ||
5010 | self = self; | |
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5012 | return NULL; | |
5013 | if (_argo0) { | |
5014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); | |
5017 | return NULL; | |
5018 | } | |
5019 | } | |
5020 | { | |
5021 | #if PYTHON_API_VERSION >= 1009 | |
5022 | char* tmpPtr; int tmpSize; | |
5023 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5024 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5025 | return NULL; | |
5026 | } | |
5027 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5028 | return NULL; | |
5029 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5030 | #else | |
5031 | if (!PyString_Check(_obj2)) { | |
5032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5033 | return NULL; | |
5034 | } | |
5035 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5036 | #endif | |
5037 | } | |
5038 | { | |
0e2ff151 | 5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5040 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
5041 | ||
0e2ff151 | 5042 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5043 | if (PyErr_Occurred()) return NULL; |
5044 | } Py_INCREF(Py_None); | |
5045 | _resultobj = Py_None; | |
5046 | { | |
5047 | if (_obj2) | |
5048 | delete _arg2; | |
5049 | } | |
5050 | return _resultobj; | |
5051 | } | |
5052 | ||
5053 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
5054 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject * _resultobj; | |
5056 | wxListBox * _arg0; | |
5057 | wxString * _arg1; | |
5058 | bool _arg2 = (bool ) TRUE; | |
5059 | PyObject * _argo0 = 0; | |
5060 | PyObject * _obj1 = 0; | |
5061 | int tempbool2 = (int) TRUE; | |
5062 | char *_kwnames[] = { "self","string","select", NULL }; | |
5063 | ||
5064 | self = self; | |
5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
5066 | return NULL; | |
5067 | if (_argo0) { | |
5068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); | |
5071 | return NULL; | |
5072 | } | |
5073 | } | |
5074 | { | |
5075 | #if PYTHON_API_VERSION >= 1009 | |
5076 | char* tmpPtr; int tmpSize; | |
5077 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5078 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5079 | return NULL; | |
5080 | } | |
5081 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5082 | return NULL; | |
5083 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5084 | #else | |
5085 | if (!PyString_Check(_obj1)) { | |
5086 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5087 | return NULL; | |
5088 | } | |
5089 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5090 | #endif | |
5091 | } | |
5092 | _arg2 = (bool ) tempbool2; | |
5093 | { | |
0e2ff151 | 5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5095 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
5096 | ||
0e2ff151 | 5097 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5098 | if (PyErr_Occurred()) return NULL; |
5099 | } Py_INCREF(Py_None); | |
5100 | _resultobj = Py_None; | |
5101 | { | |
5102 | if (_obj1) | |
5103 | delete _arg1; | |
5104 | } | |
5105 | return _resultobj; | |
5106 | } | |
5107 | ||
5108 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { | |
5109 | wxCheckListBox *src; | |
5110 | wxListBox *dest; | |
5111 | src = (wxCheckListBox *) ptr; | |
5112 | dest = (wxListBox *) src; | |
5113 | return (void *) dest; | |
5114 | } | |
5115 | ||
5116 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { | |
5117 | wxCheckListBox *src; | |
5118 | wxControlWithItems *dest; | |
5119 | src = (wxCheckListBox *) ptr; | |
5120 | dest = (wxControlWithItems *) src; | |
5121 | return (void *) dest; | |
5122 | } | |
5123 | ||
5124 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
5125 | wxCheckListBox *src; | |
5126 | wxControl *dest; | |
5127 | src = (wxCheckListBox *) ptr; | |
5128 | dest = (wxControl *) src; | |
5129 | return (void *) dest; | |
5130 | } | |
5131 | ||
5132 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5133 | wxCheckListBox *src; | |
5134 | wxWindow *dest; | |
5135 | src = (wxCheckListBox *) ptr; | |
5136 | dest = (wxWindow *) src; | |
5137 | return (void *) dest; | |
5138 | } | |
5139 | ||
5140 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5141 | wxCheckListBox *src; | |
5142 | wxEvtHandler *dest; | |
5143 | src = (wxCheckListBox *) ptr; | |
5144 | dest = (wxEvtHandler *) src; | |
5145 | return (void *) dest; | |
5146 | } | |
5147 | ||
5148 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { | |
5149 | wxCheckListBox *src; | |
5150 | wxObject *dest; | |
5151 | src = (wxCheckListBox *) ptr; | |
5152 | dest = (wxObject *) src; | |
5153 | return (void *) dest; | |
5154 | } | |
5155 | ||
5156 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5157 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5158 | PyObject * _resultobj; | |
5159 | wxCheckListBox * _result; | |
5160 | wxWindow * _arg0; | |
5161 | wxWindowID _arg1; | |
5162 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5163 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5164 | int _arg4 = (int ) 0; | |
5165 | wxString * _arg5 = (wxString *) NULL; | |
5166 | long _arg6 = (long ) 0; | |
5167 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5168 | char * _arg8 = (char *) "listBox"; | |
5169 | PyObject * _argo0 = 0; | |
5170 | wxPoint temp; | |
5171 | PyObject * _obj2 = 0; | |
5172 | wxSize temp0; | |
5173 | PyObject * _obj3 = 0; | |
5174 | PyObject * _obj5 = 0; | |
5175 | PyObject * _argo7 = 0; | |
5176 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
5177 | char _ptemp[128]; | |
5178 | ||
5179 | self = self; | |
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
5181 | return NULL; | |
5182 | if (_argo0) { | |
5183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); | |
5186 | return NULL; | |
5187 | } | |
5188 | } | |
5189 | if (_obj2) | |
5190 | { | |
5191 | _arg2 = &temp; | |
5192 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5193 | return NULL; | |
5194 | } | |
5195 | if (_obj3) | |
5196 | { | |
5197 | _arg3 = &temp0; | |
5198 | if (! wxSize_helper(_obj3, &_arg3)) | |
5199 | return NULL; | |
5200 | } | |
5201 | if (_obj5) | |
5202 | { | |
5203 | _arg5 = wxString_LIST_helper(_obj5); | |
5204 | if (_arg5 == NULL) { | |
5205 | return NULL; | |
5206 | } | |
5207 | } | |
5208 | if (_argo7) { | |
5209 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5210 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); | |
5212 | return NULL; | |
5213 | } | |
5214 | } | |
5215 | { | |
5216 | if (_obj5) { | |
5217 | _arg4 = PyList_Size(_obj5); | |
5218 | } | |
5219 | else { | |
5220 | _arg4 = 0; | |
5221 | } | |
5222 | } | |
5223 | { | |
0e2ff151 | 5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5225 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); |
5226 | ||
0e2ff151 | 5227 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5228 | if (PyErr_Occurred()) return NULL; |
5229 | } if (_result) { | |
5230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5231 | _resultobj = Py_BuildValue("s",_ptemp); | |
5232 | } else { | |
5233 | Py_INCREF(Py_None); | |
5234 | _resultobj = Py_None; | |
5235 | } | |
5236 | { | |
5237 | delete [] _arg5; | |
5238 | } | |
5239 | return _resultobj; | |
5240 | } | |
5241 | ||
5242 | #define new_wxPreCheckListBox() (new wxCheckListBox()) | |
5243 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5244 | PyObject * _resultobj; | |
5245 | wxCheckListBox * _result; | |
5246 | char *_kwnames[] = { NULL }; | |
5247 | char _ptemp[128]; | |
5248 | ||
5249 | self = self; | |
5250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5251 | return NULL; | |
5252 | { | |
0e2ff151 | 5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5254 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
5255 | ||
0e2ff151 | 5256 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5257 | if (PyErr_Occurred()) return NULL; |
5258 | } if (_result) { | |
5259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5260 | _resultobj = Py_BuildValue("s",_ptemp); | |
5261 | } else { | |
5262 | Py_INCREF(Py_None); | |
5263 | _resultobj = Py_None; | |
5264 | } | |
5265 | return _resultobj; | |
5266 | } | |
5267 | ||
5268 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5269 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject * _resultobj; | |
5271 | bool _result; | |
5272 | wxCheckListBox * _arg0; | |
5273 | wxWindow * _arg1; | |
5274 | wxWindowID _arg2; | |
5275 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5276 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5277 | int _arg5 = (int ) 0; | |
5278 | wxString * _arg6 = (wxString *) NULL; | |
5279 | long _arg7 = (long ) 0; | |
5280 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5281 | char * _arg9 = (char *) "listBox"; | |
5282 | PyObject * _argo0 = 0; | |
5283 | PyObject * _argo1 = 0; | |
5284 | wxPoint temp; | |
5285 | PyObject * _obj3 = 0; | |
5286 | wxSize temp0; | |
5287 | PyObject * _obj4 = 0; | |
5288 | PyObject * _obj6 = 0; | |
5289 | PyObject * _argo8 = 0; | |
5290 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5291 | ||
5292 | self = self; | |
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5294 | return NULL; | |
5295 | if (_argo0) { | |
5296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5299 | return NULL; | |
5300 | } | |
5301 | } | |
5302 | if (_argo1) { | |
5303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5306 | return NULL; | |
5307 | } | |
5308 | } | |
5309 | if (_obj3) | |
5310 | { | |
5311 | _arg3 = &temp; | |
5312 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5313 | return NULL; | |
5314 | } | |
5315 | if (_obj4) | |
5316 | { | |
5317 | _arg4 = &temp0; | |
5318 | if (! wxSize_helper(_obj4, &_arg4)) | |
5319 | return NULL; | |
5320 | } | |
5321 | if (_obj6) | |
5322 | { | |
5323 | _arg6 = wxString_LIST_helper(_obj6); | |
5324 | if (_arg6 == NULL) { | |
5325 | return NULL; | |
5326 | } | |
5327 | } | |
5328 | if (_argo8) { | |
5329 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5330 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5332 | return NULL; | |
5333 | } | |
5334 | } | |
5335 | { | |
5336 | if (_obj6) { | |
5337 | _arg5 = PyList_Size(_obj6); | |
5338 | } | |
5339 | else { | |
5340 | _arg5 = 0; | |
5341 | } | |
5342 | } | |
5343 | { | |
0e2ff151 | 5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5345 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); |
5346 | ||
0e2ff151 | 5347 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5348 | if (PyErr_Occurred()) return NULL; |
5349 | } _resultobj = Py_BuildValue("i",_result); | |
5350 | { | |
5351 | delete [] _arg6; | |
5352 | } | |
5353 | return _resultobj; | |
5354 | } | |
5355 | ||
5356 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5357 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5358 | PyObject * _resultobj; | |
5359 | bool _result; | |
5360 | wxCheckListBox * _arg0; | |
5361 | int _arg1; | |
5362 | PyObject * _argo0 = 0; | |
5363 | char *_kwnames[] = { "self","uiIndex", NULL }; | |
5364 | ||
5365 | self = self; | |
5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5367 | return NULL; | |
5368 | if (_argo0) { | |
5369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); | |
5372 | return NULL; | |
5373 | } | |
5374 | } | |
5375 | { | |
0e2ff151 | 5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5377 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
5378 | ||
0e2ff151 | 5379 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5380 | if (PyErr_Occurred()) return NULL; |
5381 | } _resultobj = Py_BuildValue("i",_result); | |
5382 | return _resultobj; | |
5383 | } | |
5384 | ||
5385 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5386 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5387 | PyObject * _resultobj; | |
5388 | wxCheckListBox * _arg0; | |
5389 | int _arg1; | |
5390 | int _arg2 = (int ) TRUE; | |
5391 | PyObject * _argo0 = 0; | |
5392 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; | |
5393 | ||
5394 | self = self; | |
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5396 | return NULL; | |
5397 | if (_argo0) { | |
5398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); | |
5401 | return NULL; | |
5402 | } | |
5403 | } | |
5404 | { | |
0e2ff151 | 5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5406 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
5407 | ||
0e2ff151 | 5408 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5409 | if (PyErr_Occurred()) return NULL; |
5410 | } Py_INCREF(Py_None); | |
5411 | _resultobj = Py_None; | |
5412 | return _resultobj; | |
5413 | } | |
5414 | ||
5415 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5416 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5417 | PyObject * _resultobj; | |
5418 | wxCheckListBox * _arg0; | |
5419 | int _arg1; | |
5420 | wxString * _arg2; | |
5421 | int _arg3; | |
5422 | PyObject * _argo0 = 0; | |
5423 | PyObject * _obj2 = 0; | |
5424 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5425 | ||
5426 | self = self; | |
5427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5428 | return NULL; | |
5429 | if (_argo0) { | |
5430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5433 | return NULL; | |
5434 | } | |
5435 | } | |
5436 | { | |
5437 | _arg2 = wxString_LIST_helper(_obj2); | |
5438 | if (_arg2 == NULL) { | |
5439 | return NULL; | |
5440 | } | |
5441 | } | |
5442 | { | |
5443 | if (_obj2) { | |
5444 | _arg1 = PyList_Size(_obj2); | |
5445 | } | |
5446 | else { | |
5447 | _arg1 = 0; | |
5448 | } | |
5449 | } | |
5450 | { | |
0e2ff151 | 5451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5452 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
5453 | ||
0e2ff151 | 5454 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5455 | if (PyErr_Occurred()) return NULL; |
5456 | } Py_INCREF(Py_None); | |
5457 | _resultobj = Py_None; | |
5458 | { | |
5459 | delete [] _arg2; | |
5460 | } | |
5461 | return _resultobj; | |
5462 | } | |
5463 | ||
5464 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5465 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject * _resultobj; | |
5467 | wxTextAttr * _result; | |
5468 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5469 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5470 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5471 | wxColour temp; | |
5472 | PyObject * _obj0 = 0; | |
5473 | wxColour temp0; | |
5474 | PyObject * _obj1 = 0; | |
5475 | PyObject * _argo2 = 0; | |
5476 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5477 | char _ptemp[128]; | |
5478 | ||
5479 | self = self; | |
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5481 | return NULL; | |
5482 | if (_obj0) | |
5483 | { | |
5484 | _arg0 = &temp; | |
5485 | if (! wxColour_helper(_obj0, &_arg0)) | |
5486 | return NULL; | |
5487 | } | |
5488 | if (_obj1) | |
5489 | { | |
5490 | _arg1 = &temp0; | |
5491 | if (! wxColour_helper(_obj1, &_arg1)) | |
5492 | return NULL; | |
5493 | } | |
5494 | if (_argo2) { | |
5495 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5496 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5498 | return NULL; | |
5499 | } | |
5500 | } | |
5501 | { | |
0e2ff151 | 5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5503 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
5504 | ||
0e2ff151 | 5505 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5506 | if (PyErr_Occurred()) return NULL; |
5507 | } if (_result) { | |
5508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5509 | _resultobj = Py_BuildValue("s",_ptemp); | |
5510 | } else { | |
5511 | Py_INCREF(Py_None); | |
5512 | _resultobj = Py_None; | |
5513 | } | |
5514 | return _resultobj; | |
5515 | } | |
5516 | ||
5517 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5518 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject * _resultobj; | |
5520 | wxTextAttr * _arg0; | |
5521 | PyObject * _argo0 = 0; | |
5522 | char *_kwnames[] = { "self", NULL }; | |
5523 | ||
5524 | self = self; | |
5525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5526 | return NULL; | |
5527 | if (_argo0) { | |
5528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5531 | return NULL; | |
5532 | } | |
5533 | } | |
5534 | { | |
0e2ff151 | 5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5536 | delete_wxTextAttr(_arg0); |
5537 | ||
0e2ff151 | 5538 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5539 | if (PyErr_Occurred()) return NULL; |
5540 | } Py_INCREF(Py_None); | |
5541 | _resultobj = Py_None; | |
5542 | return _resultobj; | |
5543 | } | |
5544 | ||
5545 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5546 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject * _resultobj; | |
5548 | wxTextAttr * _arg0; | |
5549 | wxColour * _arg1; | |
5550 | PyObject * _argo0 = 0; | |
5551 | wxColour temp; | |
5552 | PyObject * _obj1 = 0; | |
5553 | char *_kwnames[] = { "self","colText", NULL }; | |
5554 | ||
5555 | self = self; | |
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5557 | return NULL; | |
5558 | if (_argo0) { | |
5559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5562 | return NULL; | |
5563 | } | |
5564 | } | |
5565 | { | |
5566 | _arg1 = &temp; | |
5567 | if (! wxColour_helper(_obj1, &_arg1)) | |
5568 | return NULL; | |
5569 | } | |
5570 | { | |
0e2ff151 | 5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5572 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
5573 | ||
0e2ff151 | 5574 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5575 | if (PyErr_Occurred()) return NULL; |
5576 | } Py_INCREF(Py_None); | |
5577 | _resultobj = Py_None; | |
5578 | return _resultobj; | |
5579 | } | |
5580 | ||
5581 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5582 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5583 | PyObject * _resultobj; | |
5584 | wxTextAttr * _arg0; | |
5585 | wxColour * _arg1; | |
5586 | PyObject * _argo0 = 0; | |
5587 | wxColour temp; | |
5588 | PyObject * _obj1 = 0; | |
5589 | char *_kwnames[] = { "self","colBack", NULL }; | |
5590 | ||
5591 | self = self; | |
5592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5593 | return NULL; | |
5594 | if (_argo0) { | |
5595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5598 | return NULL; | |
5599 | } | |
5600 | } | |
5601 | { | |
5602 | _arg1 = &temp; | |
5603 | if (! wxColour_helper(_obj1, &_arg1)) | |
5604 | return NULL; | |
5605 | } | |
5606 | { | |
0e2ff151 | 5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5608 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
5609 | ||
0e2ff151 | 5610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5611 | if (PyErr_Occurred()) return NULL; |
5612 | } Py_INCREF(Py_None); | |
5613 | _resultobj = Py_None; | |
5614 | return _resultobj; | |
5615 | } | |
5616 | ||
5617 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5618 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5619 | PyObject * _resultobj; | |
5620 | wxTextAttr * _arg0; | |
5621 | wxFont * _arg1; | |
5622 | PyObject * _argo0 = 0; | |
5623 | PyObject * _argo1 = 0; | |
5624 | char *_kwnames[] = { "self","font", NULL }; | |
5625 | ||
5626 | self = self; | |
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5628 | return NULL; | |
5629 | if (_argo0) { | |
5630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5633 | return NULL; | |
5634 | } | |
5635 | } | |
5636 | if (_argo1) { | |
5637 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5638 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5640 | return NULL; | |
5641 | } | |
5642 | } | |
5643 | { | |
0e2ff151 | 5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5645 | wxTextAttr_SetFont(_arg0,*_arg1); |
5646 | ||
0e2ff151 | 5647 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5648 | if (PyErr_Occurred()) return NULL; |
5649 | } Py_INCREF(Py_None); | |
5650 | _resultobj = Py_None; | |
5651 | return _resultobj; | |
5652 | } | |
5653 | ||
5654 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5655 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5656 | PyObject * _resultobj; | |
5657 | bool _result; | |
5658 | wxTextAttr * _arg0; | |
5659 | PyObject * _argo0 = 0; | |
5660 | char *_kwnames[] = { "self", NULL }; | |
5661 | ||
5662 | self = self; | |
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5664 | return NULL; | |
5665 | if (_argo0) { | |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
5672 | { | |
0e2ff151 | 5673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5674 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
5675 | ||
0e2ff151 | 5676 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5677 | if (PyErr_Occurred()) return NULL; |
5678 | } _resultobj = Py_BuildValue("i",_result); | |
5679 | return _resultobj; | |
5680 | } | |
5681 | ||
5682 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5683 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5684 | PyObject * _resultobj; | |
5685 | bool _result; | |
5686 | wxTextAttr * _arg0; | |
5687 | PyObject * _argo0 = 0; | |
5688 | char *_kwnames[] = { "self", NULL }; | |
5689 | ||
5690 | self = self; | |
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5692 | return NULL; | |
5693 | if (_argo0) { | |
5694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5697 | return NULL; | |
5698 | } | |
5699 | } | |
5700 | { | |
0e2ff151 | 5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5702 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
5703 | ||
0e2ff151 | 5704 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5705 | if (PyErr_Occurred()) return NULL; |
5706 | } _resultobj = Py_BuildValue("i",_result); | |
5707 | return _resultobj; | |
5708 | } | |
5709 | ||
5710 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5711 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5712 | PyObject * _resultobj; | |
5713 | bool _result; | |
5714 | wxTextAttr * _arg0; | |
5715 | PyObject * _argo0 = 0; | |
5716 | char *_kwnames[] = { "self", NULL }; | |
5717 | ||
5718 | self = self; | |
5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5720 | return NULL; | |
5721 | if (_argo0) { | |
5722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5725 | return NULL; | |
5726 | } | |
5727 | } | |
5728 | { | |
0e2ff151 | 5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5730 | _result = (bool )wxTextAttr_HasFont(_arg0); |
5731 | ||
0e2ff151 | 5732 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5733 | if (PyErr_Occurred()) return NULL; |
5734 | } _resultobj = Py_BuildValue("i",_result); | |
5735 | return _resultobj; | |
5736 | } | |
5737 | ||
5738 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5739 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5740 | PyObject * _resultobj; | |
5741 | wxColour * _result; | |
5742 | wxTextAttr * _arg0; | |
5743 | PyObject * _argo0 = 0; | |
5744 | char *_kwnames[] = { "self", NULL }; | |
5745 | char _ptemp[128]; | |
5746 | ||
5747 | self = self; | |
5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5749 | return NULL; | |
5750 | if (_argo0) { | |
5751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5754 | return NULL; | |
5755 | } | |
5756 | } | |
5757 | { | |
0e2ff151 | 5758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5759 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
e6056257 | 5760 | |
0e2ff151 | 5761 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5762 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5763 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5764 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5765 | return _resultobj; |
5766 | } | |
5767 | ||
5768 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5769 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5770 | PyObject * _resultobj; | |
5771 | wxColour * _result; | |
5772 | wxTextAttr * _arg0; | |
5773 | PyObject * _argo0 = 0; | |
5774 | char *_kwnames[] = { "self", NULL }; | |
5775 | char _ptemp[128]; | |
5776 | ||
5777 | self = self; | |
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5779 | return NULL; | |
5780 | if (_argo0) { | |
5781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5784 | return NULL; | |
5785 | } | |
5786 | } | |
5787 | { | |
0e2ff151 | 5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5789 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
e6056257 | 5790 | |
0e2ff151 | 5791 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5792 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5793 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5794 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5795 | return _resultobj; |
5796 | } | |
5797 | ||
5798 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5799 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5800 | PyObject * _resultobj; | |
5801 | wxFont * _result; | |
5802 | wxTextAttr * _arg0; | |
5803 | PyObject * _argo0 = 0; | |
5804 | char *_kwnames[] = { "self", NULL }; | |
5805 | char _ptemp[128]; | |
5806 | ||
5807 | self = self; | |
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5809 | return NULL; | |
5810 | if (_argo0) { | |
5811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5814 | return NULL; | |
5815 | } | |
5816 | } | |
5817 | { | |
0e2ff151 | 5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5819 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
e6056257 | 5820 | |
0e2ff151 | 5821 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5822 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5823 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5824 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5825 | return _resultobj; |
5826 | } | |
5827 | ||
742fc581 RD |
5828 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
5829 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5830 | PyObject * _resultobj; | |
5831 | bool _result; | |
5832 | wxTextAttr * _arg0; | |
5833 | PyObject * _argo0 = 0; | |
5834 | char *_kwnames[] = { "self", NULL }; | |
5835 | ||
5836 | self = self; | |
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
5838 | return NULL; | |
5839 | if (_argo0) { | |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
5843 | return NULL; | |
5844 | } | |
5845 | } | |
5846 | { | |
0e2ff151 | 5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 RD |
5848 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
5849 | ||
0e2ff151 | 5850 | wxPyEndAllowThreads(__tstate); |
742fc581 RD |
5851 | if (PyErr_Occurred()) return NULL; |
5852 | } _resultobj = Py_BuildValue("i",_result); | |
5853 | return _resultobj; | |
5854 | } | |
5855 | ||
dbd3685c RD |
5856 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
5857 | PyObject * _resultobj; | |
5858 | wxTextAttr * _result; | |
5859 | wxTextAttr * _arg0; | |
5860 | wxTextAttr * _arg1; | |
5861 | wxTextCtrl * _arg2; | |
5862 | PyObject * _argo0 = 0; | |
5863 | PyObject * _argo1 = 0; | |
5864 | PyObject * _argo2 = 0; | |
5865 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
5866 | char _ptemp[128]; | |
5867 | ||
5868 | self = self; | |
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5870 | return NULL; | |
5871 | if (_argo0) { | |
5872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5875 | return NULL; | |
5876 | } | |
5877 | } | |
5878 | if (_argo1) { | |
5879 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5880 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
5881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5882 | return NULL; | |
5883 | } | |
5884 | } | |
5885 | if (_argo2) { | |
5886 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5887 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
5888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
5889 | return NULL; | |
5890 | } | |
5891 | } | |
5892 | { | |
0e2ff151 | 5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c RD |
5894 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
5895 | ||
0e2ff151 | 5896 | wxPyEndAllowThreads(__tstate); |
dbd3685c RD |
5897 | if (PyErr_Occurred()) return NULL; |
5898 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
5899 | _resultobj = Py_BuildValue("s",_ptemp); | |
5900 | return _resultobj; | |
5901 | } | |
5902 | ||
e6056257 RD |
5903 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
5904 | wxTextCtrl *src; | |
5905 | wxControl *dest; | |
5906 | src = (wxTextCtrl *) ptr; | |
5907 | dest = (wxControl *) src; | |
5908 | return (void *) dest; | |
5909 | } | |
5910 | ||
5911 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
5912 | wxTextCtrl *src; | |
5913 | wxWindow *dest; | |
5914 | src = (wxTextCtrl *) ptr; | |
5915 | dest = (wxWindow *) src; | |
5916 | return (void *) dest; | |
5917 | } | |
5918 | ||
5919 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
5920 | wxTextCtrl *src; | |
5921 | wxEvtHandler *dest; | |
5922 | src = (wxTextCtrl *) ptr; | |
5923 | dest = (wxEvtHandler *) src; | |
5924 | return (void *) dest; | |
5925 | } | |
5926 | ||
5927 | static void *SwigwxTextCtrlTowxObject(void *ptr) { | |
5928 | wxTextCtrl *src; | |
5929 | wxObject *dest; | |
5930 | src = (wxTextCtrl *) ptr; | |
5931 | dest = (wxObject *) src; | |
5932 | return (void *) dest; | |
5933 | } | |
5934 | ||
5935 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
5936 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject * _resultobj; | |
5938 | wxTextCtrl * _result; | |
5939 | wxWindow * _arg0; | |
5940 | wxWindowID _arg1; | |
5941 | char * _arg2 = (char *) ""; | |
5942 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5943 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5944 | long _arg5 = (long ) 0; | |
5945 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5946 | char * _arg7 = (char *) "text"; | |
5947 | PyObject * _argo0 = 0; | |
5948 | wxPoint temp; | |
5949 | PyObject * _obj3 = 0; | |
5950 | wxSize temp0; | |
5951 | PyObject * _obj4 = 0; | |
5952 | PyObject * _argo6 = 0; | |
5953 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; | |
5954 | char _ptemp[128]; | |
5955 | ||
5956 | self = self; | |
5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
5958 | return NULL; | |
5959 | if (_argo0) { | |
5960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
5963 | return NULL; | |
5964 | } | |
5965 | } | |
5966 | if (_obj3) | |
5967 | { | |
5968 | _arg3 = &temp; | |
5969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5970 | return NULL; | |
5971 | } | |
5972 | if (_obj4) | |
5973 | { | |
5974 | _arg4 = &temp0; | |
5975 | if (! wxSize_helper(_obj4, &_arg4)) | |
5976 | return NULL; | |
5977 | } | |
5978 | if (_argo6) { | |
5979 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5980 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
5982 | return NULL; | |
5983 | } | |
5984 | } | |
5985 | { | |
0e2ff151 | 5986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5987 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
5988 | ||
0e2ff151 | 5989 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5990 | if (PyErr_Occurred()) return NULL; |
5991 | } if (_result) { | |
5992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5993 | _resultobj = Py_BuildValue("s",_ptemp); | |
5994 | } else { | |
5995 | Py_INCREF(Py_None); | |
5996 | _resultobj = Py_None; | |
5997 | } | |
5998 | return _resultobj; | |
5999 | } | |
6000 | ||
6001 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6002 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6003 | PyObject * _resultobj; | |
6004 | wxTextCtrl * _result; | |
6005 | char *_kwnames[] = { NULL }; | |
6006 | char _ptemp[128]; | |
6007 | ||
6008 | self = self; | |
6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6010 | return NULL; | |
6011 | { | |
0e2ff151 | 6012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6013 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
6014 | ||
0e2ff151 | 6015 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6016 | if (PyErr_Occurred()) return NULL; |
6017 | } if (_result) { | |
6018 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6019 | _resultobj = Py_BuildValue("s",_ptemp); | |
6020 | } else { | |
6021 | Py_INCREF(Py_None); | |
6022 | _resultobj = Py_None; | |
6023 | } | |
6024 | return _resultobj; | |
6025 | } | |
6026 | ||
6027 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6028 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject * _resultobj; | |
6030 | bool _result; | |
6031 | wxTextCtrl * _arg0; | |
6032 | wxWindow * _arg1; | |
6033 | wxWindowID _arg2; | |
6034 | char * _arg3 = (char *) ""; | |
6035 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6036 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6037 | long _arg6 = (long ) 0; | |
6038 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6039 | char * _arg8 = (char *) "text"; | |
6040 | PyObject * _argo0 = 0; | |
6041 | PyObject * _argo1 = 0; | |
6042 | wxPoint temp; | |
6043 | PyObject * _obj4 = 0; | |
6044 | wxSize temp0; | |
6045 | PyObject * _obj5 = 0; | |
6046 | PyObject * _argo7 = 0; | |
6047 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6048 | ||
6049 | self = self; | |
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
6051 | return NULL; | |
6052 | if (_argo0) { | |
6053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6056 | return NULL; | |
6057 | } | |
6058 | } | |
6059 | if (_argo1) { | |
6060 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6061 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6063 | return NULL; | |
6064 | } | |
6065 | } | |
6066 | if (_obj4) | |
6067 | { | |
6068 | _arg4 = &temp; | |
6069 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6070 | return NULL; | |
6071 | } | |
6072 | if (_obj5) | |
6073 | { | |
6074 | _arg5 = &temp0; | |
6075 | if (! wxSize_helper(_obj5, &_arg5)) | |
6076 | return NULL; | |
6077 | } | |
6078 | if (_argo7) { | |
6079 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6080 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6082 | return NULL; | |
6083 | } | |
6084 | } | |
6085 | { | |
0e2ff151 | 6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6087 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
6088 | ||
0e2ff151 | 6089 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6090 | if (PyErr_Occurred()) return NULL; |
6091 | } _resultobj = Py_BuildValue("i",_result); | |
6092 | return _resultobj; | |
6093 | } | |
6094 | ||
742fc581 RD |
6095 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
6096 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6097 | PyObject * _resultobj; |
742fc581 | 6098 | wxString * _result; |
e6056257 RD |
6099 | wxTextCtrl * _arg0; |
6100 | PyObject * _argo0 = 0; | |
6101 | char *_kwnames[] = { "self", NULL }; | |
6102 | ||
6103 | self = self; | |
742fc581 | 6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
e6056257 RD |
6105 | return NULL; |
6106 | if (_argo0) { | |
6107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
e6056257 RD |
6110 | return NULL; |
6111 | } | |
6112 | } | |
6113 | { | |
0e2ff151 | 6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6115 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
e6056257 | 6116 | |
0e2ff151 | 6117 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6118 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6119 | }{ |
6120 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6121 | } | |
6122 | { | |
6123 | delete _result; | |
6124 | } | |
e6056257 RD |
6125 | return _resultobj; |
6126 | } | |
6127 | ||
742fc581 RD |
6128 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6129 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6130 | PyObject * _resultobj; |
6131 | wxTextCtrl * _arg0; | |
742fc581 | 6132 | wxString * _arg1; |
e6056257 | 6133 | PyObject * _argo0 = 0; |
742fc581 RD |
6134 | PyObject * _obj1 = 0; |
6135 | char *_kwnames[] = { "self","value", NULL }; | |
e6056257 RD |
6136 | |
6137 | self = self; | |
742fc581 | 6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
6139 | return NULL; |
6140 | if (_argo0) { | |
6141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
e6056257 RD |
6144 | return NULL; |
6145 | } | |
6146 | } | |
6147 | { | |
742fc581 RD |
6148 | #if PYTHON_API_VERSION >= 1009 |
6149 | char* tmpPtr; int tmpSize; | |
6150 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6151 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
e6056257 | 6152 | return NULL; |
742fc581 RD |
6153 | } |
6154 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6155 | return NULL; | |
6156 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6157 | #else | |
6158 | if (!PyString_Check(_obj1)) { | |
6159 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
e6056257 | 6160 | return NULL; |
e6056257 | 6161 | } |
742fc581 RD |
6162 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6163 | #endif | |
6164 | } | |
e6056257 | 6165 | { |
0e2ff151 | 6166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6167 | wxTextCtrl_SetValue(_arg0,*_arg1); |
e6056257 | 6168 | |
0e2ff151 | 6169 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6170 | if (PyErr_Occurred()) return NULL; |
6171 | } Py_INCREF(Py_None); | |
6172 | _resultobj = Py_None; | |
742fc581 RD |
6173 | { |
6174 | if (_obj1) | |
6175 | delete _arg1; | |
6176 | } | |
e6056257 RD |
6177 | return _resultobj; |
6178 | } | |
6179 | ||
d1e76a37 RD |
6180 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6181 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject * _resultobj; | |
6183 | wxString * _result; | |
6184 | wxTextCtrl * _arg0; | |
6185 | long _arg1; | |
6186 | long _arg2; | |
6187 | PyObject * _argo0 = 0; | |
6188 | char *_kwnames[] = { "self","from","to", NULL }; | |
6189 | ||
6190 | self = self; | |
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6192 | return NULL; | |
6193 | if (_argo0) { | |
6194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6197 | return NULL; | |
6198 | } | |
6199 | } | |
6200 | { | |
6201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6202 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); | |
6203 | ||
6204 | wxPyEndAllowThreads(__tstate); | |
6205 | if (PyErr_Occurred()) return NULL; | |
6206 | }{ | |
6207 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6208 | } | |
6209 | { | |
6210 | delete _result; | |
6211 | } | |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
742fc581 RD |
6215 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6216 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6217 | PyObject * _resultobj; |
742fc581 | 6218 | int _result; |
e6056257 | 6219 | wxTextCtrl * _arg0; |
742fc581 | 6220 | long _arg1; |
e6056257 | 6221 | PyObject * _argo0 = 0; |
742fc581 | 6222 | char *_kwnames[] = { "self","lineNo", NULL }; |
e6056257 RD |
6223 | |
6224 | self = self; | |
742fc581 | 6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
6226 | return NULL; |
6227 | if (_argo0) { | |
6228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
e6056257 RD |
6231 | return NULL; |
6232 | } | |
6233 | } | |
6234 | { | |
0e2ff151 | 6235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6236 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
e6056257 | 6237 | |
0e2ff151 | 6238 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6239 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6240 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
6241 | return _resultobj; |
6242 | } | |
6243 | ||
742fc581 RD |
6244 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6245 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6246 | PyObject * _resultobj; |
742fc581 | 6247 | wxString * _result; |
e6056257 | 6248 | wxTextCtrl * _arg0; |
742fc581 | 6249 | long _arg1; |
e6056257 | 6250 | PyObject * _argo0 = 0; |
742fc581 | 6251 | char *_kwnames[] = { "self","lineNo", NULL }; |
e6056257 RD |
6252 | |
6253 | self = self; | |
742fc581 | 6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
6255 | return NULL; |
6256 | if (_argo0) { | |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
e6056257 RD |
6260 | return NULL; |
6261 | } | |
6262 | } | |
6263 | { | |
0e2ff151 | 6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6265 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
e6056257 | 6266 | |
0e2ff151 | 6267 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6268 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6269 | }{ |
6270 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6271 | } | |
6272 | { | |
6273 | delete _result; | |
6274 | } | |
e6056257 RD |
6275 | return _resultobj; |
6276 | } | |
6277 | ||
742fc581 RD |
6278 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6279 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6280 | PyObject * _resultobj; |
742fc581 | 6281 | int _result; |
e6056257 RD |
6282 | wxTextCtrl * _arg0; |
6283 | PyObject * _argo0 = 0; | |
6284 | char *_kwnames[] = { "self", NULL }; | |
6285 | ||
6286 | self = self; | |
742fc581 | 6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
e6056257 RD |
6288 | return NULL; |
6289 | if (_argo0) { | |
6290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
e6056257 RD |
6293 | return NULL; |
6294 | } | |
6295 | } | |
6296 | { | |
0e2ff151 | 6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6298 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
e6056257 | 6299 | |
0e2ff151 | 6300 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6301 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6302 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
6303 | return _resultobj; |
6304 | } | |
6305 | ||
742fc581 RD |
6306 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6307 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6308 | PyObject * _resultobj; |
742fc581 | 6309 | bool _result; |
e6056257 | 6310 | wxTextCtrl * _arg0; |
e6056257 | 6311 | PyObject * _argo0 = 0; |
742fc581 | 6312 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
6313 | |
6314 | self = self; | |
742fc581 | 6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
e6056257 RD |
6316 | return NULL; |
6317 | if (_argo0) { | |
6318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
e6056257 RD |
6321 | return NULL; |
6322 | } | |
6323 | } | |
6324 | { | |
0e2ff151 | 6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6326 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
e6056257 | 6327 | |
0e2ff151 | 6328 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6329 | if (PyErr_Occurred()) return NULL; |
6330 | } _resultobj = Py_BuildValue("i",_result); | |
6331 | return _resultobj; | |
6332 | } | |
6333 | ||
742fc581 RD |
6334 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6335 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6336 | PyObject * _resultobj; |
742fc581 | 6337 | bool _result; |
e6056257 | 6338 | wxTextCtrl * _arg0; |
e6056257 | 6339 | PyObject * _argo0 = 0; |
742fc581 | 6340 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
6341 | |
6342 | self = self; | |
742fc581 | 6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
e6056257 RD |
6344 | return NULL; |
6345 | if (_argo0) { | |
6346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
e6056257 RD |
6349 | return NULL; |
6350 | } | |
6351 | } | |
6352 | { | |
0e2ff151 | 6353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6354 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
e6056257 | 6355 | |
0e2ff151 | 6356 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6357 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6358 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
6359 | return _resultobj; |
6360 | } | |
6361 | ||
742fc581 RD |
6362 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6363 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6364 | PyObject * _resultobj; |
e6056257 | 6365 | wxTextCtrl * _arg0; |
742fc581 RD |
6366 | long * _arg1; |
6367 | long temp; | |
6368 | long * _arg2; | |
6369 | long temp0; | |
e6056257 RD |
6370 | PyObject * _argo0 = 0; |
6371 | char *_kwnames[] = { "self", NULL }; | |
6372 | ||
6373 | self = self; | |
742fc581 RD |
6374 | { |
6375 | _arg1 = &temp; | |
6376 | } | |
6377 | { | |
6378 | _arg2 = &temp0; | |
6379 | } | |
6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
e6056257 RD |
6381 | return NULL; |
6382 | if (_argo0) { | |
6383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
e6056257 RD |
6386 | return NULL; |
6387 | } | |
6388 | } | |
6389 | { | |
0e2ff151 | 6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6391 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
e6056257 | 6392 | |
0e2ff151 | 6393 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6394 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6395 | } Py_INCREF(Py_None); |
6396 | _resultobj = Py_None; | |
6397 | { | |
6398 | PyObject *o; | |
6399 | o = PyInt_FromLong((long) (*_arg1)); | |
6400 | _resultobj = t_output_helper(_resultobj, o); | |
6401 | } | |
6402 | { | |
6403 | PyObject *o; | |
6404 | o = PyInt_FromLong((long) (*_arg2)); | |
6405 | _resultobj = t_output_helper(_resultobj, o); | |
6406 | } | |
e6056257 RD |
6407 | return _resultobj; |
6408 | } | |
6409 | ||
742fc581 RD |
6410 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6411 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6412 | PyObject * _resultobj; |
6413 | wxString * _result; | |
6414 | wxTextCtrl * _arg0; | |
6415 | PyObject * _argo0 = 0; | |
6416 | char *_kwnames[] = { "self", NULL }; | |
6417 | ||
6418 | self = self; | |
742fc581 | 6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) |
e6056257 RD |
6420 | return NULL; |
6421 | if (_argo0) { | |
6422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); |
e6056257 RD |
6425 | return NULL; |
6426 | } | |
6427 | } | |
6428 | { | |
0e2ff151 | 6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6430 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
e6056257 | 6431 | |
0e2ff151 | 6432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6433 | if (PyErr_Occurred()) return NULL; |
6434 | }{ | |
6435 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6436 | } | |
6437 | { | |
6438 | delete _result; | |
6439 | } | |
6440 | return _resultobj; | |
6441 | } | |
6442 | ||
742fc581 RD |
6443 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6444 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6445 | PyObject * _resultobj; |
e6056257 RD |
6446 | wxTextCtrl * _arg0; |
6447 | PyObject * _argo0 = 0; | |
6448 | char *_kwnames[] = { "self", NULL }; | |
6449 | ||
6450 | self = self; | |
742fc581 | 6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
e6056257 RD |
6452 | return NULL; |
6453 | if (_argo0) { | |
6454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
e6056257 RD |
6457 | return NULL; |
6458 | } | |
6459 | } | |
6460 | { | |
0e2ff151 | 6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6462 | wxTextCtrl_Clear(_arg0); |
e6056257 | 6463 | |
0e2ff151 | 6464 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6465 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6466 | } Py_INCREF(Py_None); |
6467 | _resultobj = Py_None; | |
e6056257 RD |
6468 | return _resultobj; |
6469 | } | |
6470 | ||
742fc581 RD |
6471 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
6472 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6473 | PyObject * _resultobj; |
e6056257 | 6474 | wxTextCtrl * _arg0; |
742fc581 RD |
6475 | long _arg1; |
6476 | long _arg2; | |
6477 | wxString * _arg3; | |
e6056257 | 6478 | PyObject * _argo0 = 0; |
742fc581 RD |
6479 | PyObject * _obj3 = 0; |
6480 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
e6056257 RD |
6481 | |
6482 | self = self; | |
742fc581 | 6483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
e6056257 RD |
6484 | return NULL; |
6485 | if (_argo0) { | |
6486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 RD |
6488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
6489 | return NULL; | |
6490 | } | |
6491 | } | |
6492 | { | |
6493 | #if PYTHON_API_VERSION >= 1009 | |
6494 | char* tmpPtr; int tmpSize; | |
6495 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6497 | return NULL; | |
6498 | } | |
6499 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6500 | return NULL; | |
6501 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6502 | #else | |
6503 | if (!PyString_Check(_obj3)) { | |
6504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6505 | return NULL; | |
6506 | } | |
6507 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
6508 | #endif | |
6509 | } | |
6510 | { | |
0e2ff151 | 6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 RD |
6512 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
6513 | ||
0e2ff151 | 6514 | wxPyEndAllowThreads(__tstate); |
742fc581 RD |
6515 | if (PyErr_Occurred()) return NULL; |
6516 | } Py_INCREF(Py_None); | |
6517 | _resultobj = Py_None; | |
6518 | { | |
6519 | if (_obj3) | |
6520 | delete _arg3; | |
6521 | } | |
6522 | return _resultobj; | |
6523 | } | |
6524 | ||
6525 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
6526 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6527 | PyObject * _resultobj; | |
6528 | wxTextCtrl * _arg0; | |
6529 | long _arg1; | |
6530 | long _arg2; | |
6531 | PyObject * _argo0 = 0; | |
6532 | char *_kwnames[] = { "self","from","to", NULL }; | |
6533 | ||
6534 | self = self; | |
6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6536 | return NULL; | |
6537 | if (_argo0) { | |
6538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); | |
6541 | return NULL; | |
6542 | } | |
6543 | } | |
6544 | { | |
0e2ff151 | 6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 RD |
6546 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
6547 | ||
0e2ff151 | 6548 | wxPyEndAllowThreads(__tstate); |
742fc581 RD |
6549 | if (PyErr_Occurred()) return NULL; |
6550 | } Py_INCREF(Py_None); | |
6551 | _resultobj = Py_None; | |
6552 | return _resultobj; | |
6553 | } | |
6554 | ||
6555 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
6556 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6557 | PyObject * _resultobj; | |
6558 | bool _result; | |
6559 | wxTextCtrl * _arg0; | |
6560 | wxString * _arg1; | |
6561 | PyObject * _argo0 = 0; | |
6562 | PyObject * _obj1 = 0; | |
6563 | char *_kwnames[] = { "self","file", NULL }; | |
6564 | ||
6565 | self = self; | |
6566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) | |
6567 | return NULL; | |
6568 | if (_argo0) { | |
6569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); | |
e6056257 RD |
6572 | return NULL; |
6573 | } | |
6574 | } | |
6575 | { | |
6576 | #if PYTHON_API_VERSION >= 1009 | |
6577 | char* tmpPtr; int tmpSize; | |
6578 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6579 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6580 | return NULL; | |
6581 | } | |
6582 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6583 | return NULL; | |
6584 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6585 | #else | |
6586 | if (!PyString_Check(_obj1)) { | |
6587 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6588 | return NULL; | |
6589 | } | |
6590 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6591 | #endif | |
6592 | } | |
6593 | { | |
0e2ff151 | 6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6595 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
6596 | ||
0e2ff151 | 6597 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6598 | if (PyErr_Occurred()) return NULL; |
6599 | } _resultobj = Py_BuildValue("i",_result); | |
6600 | { | |
6601 | if (_obj1) | |
6602 | delete _arg1; | |
6603 | } | |
6604 | return _resultobj; | |
6605 | } | |
6606 | ||
742fc581 RD |
6607 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
6608 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6609 | PyObject * _resultobj; |
742fc581 | 6610 | bool _result; |
e6056257 | 6611 | wxTextCtrl * _arg0; |
742fc581 | 6612 | wxString * _arg1 = (wxString *) &wxEmptyString; |
e6056257 | 6613 | PyObject * _argo0 = 0; |
742fc581 RD |
6614 | PyObject * _obj1 = 0; |
6615 | char *_kwnames[] = { "self","file", NULL }; | |
e6056257 RD |
6616 | |
6617 | self = self; | |
742fc581 | 6618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
6619 | return NULL; |
6620 | if (_argo0) { | |
6621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
e6056257 RD |
6624 | return NULL; |
6625 | } | |
6626 | } | |
742fc581 RD |
6627 | if (_obj1) |
6628 | { | |
6629 | #if PYTHON_API_VERSION >= 1009 | |
6630 | char* tmpPtr; int tmpSize; | |
6631 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6633 | return NULL; | |
6634 | } | |
6635 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6636 | return NULL; | |
6637 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6638 | #else | |
6639 | if (!PyString_Check(_obj1)) { | |
6640 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6641 | return NULL; | |
6642 | } | |
6643 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6644 | #endif | |
6645 | } | |
e6056257 | 6646 | { |
0e2ff151 | 6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6648 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
e6056257 | 6649 | |
0e2ff151 | 6650 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6651 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6652 | } _resultobj = Py_BuildValue("i",_result); |
6653 | { | |
6654 | if (_obj1) | |
6655 | delete _arg1; | |
6656 | } | |
e6056257 RD |
6657 | return _resultobj; |
6658 | } | |
6659 | ||
742fc581 RD |
6660 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
6661 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6662 | PyObject * _resultobj; |
6663 | wxTextCtrl * _arg0; | |
e6056257 | 6664 | PyObject * _argo0 = 0; |
742fc581 | 6665 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
6666 | |
6667 | self = self; | |
742fc581 | 6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
e6056257 RD |
6669 | return NULL; |
6670 | if (_argo0) { | |
6671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
e6056257 RD |
6674 | return NULL; |
6675 | } | |
6676 | } | |
6677 | { | |
0e2ff151 | 6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6679 | wxTextCtrl_DiscardEdits(_arg0); |
e6056257 | 6680 | |
0e2ff151 | 6681 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6682 | if (PyErr_Occurred()) return NULL; |
6683 | } Py_INCREF(Py_None); | |
6684 | _resultobj = Py_None; | |
e6056257 RD |
6685 | return _resultobj; |
6686 | } | |
6687 | ||
742fc581 RD |
6688 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
6689 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6690 | PyObject * _resultobj; |
6691 | wxTextCtrl * _arg0; | |
742fc581 | 6692 | unsigned long _arg1; |
e6056257 | 6693 | PyObject * _argo0 = 0; |
742fc581 | 6694 | char *_kwnames[] = { "self","len", NULL }; |
e6056257 RD |
6695 | |
6696 | self = self; | |
742fc581 | 6697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
6698 | return NULL; |
6699 | if (_argo0) { | |
6700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
e6056257 RD |
6703 | return NULL; |
6704 | } | |
6705 | } | |
6706 | { | |
0e2ff151 | 6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6708 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
e6056257 | 6709 | |
0e2ff151 | 6710 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6711 | if (PyErr_Occurred()) return NULL; |
6712 | } Py_INCREF(Py_None); | |
6713 | _resultobj = Py_None; | |
6714 | return _resultobj; | |
6715 | } | |
6716 | ||
742fc581 RD |
6717 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
6718 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6719 | PyObject * _resultobj; |
6720 | wxTextCtrl * _arg0; | |
742fc581 | 6721 | wxString * _arg1; |
e6056257 | 6722 | PyObject * _argo0 = 0; |
742fc581 RD |
6723 | PyObject * _obj1 = 0; |
6724 | char *_kwnames[] = { "self","text", NULL }; | |
e6056257 RD |
6725 | |
6726 | self = self; | |
742fc581 | 6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
6728 | return NULL; |
6729 | if (_argo0) { | |
6730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
e6056257 RD |
6733 | return NULL; |
6734 | } | |
6735 | } | |
6736 | { | |
6737 | #if PYTHON_API_VERSION >= 1009 | |
6738 | char* tmpPtr; int tmpSize; | |
742fc581 | 6739 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { |
e6056257 RD |
6740 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
6741 | return NULL; | |
6742 | } | |
742fc581 | 6743 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) |
e6056257 | 6744 | return NULL; |
742fc581 | 6745 | _arg1 = new wxString(tmpPtr, tmpSize); |
e6056257 | 6746 | #else |
742fc581 | 6747 | if (!PyString_Check(_obj1)) { |
e6056257 RD |
6748 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
6749 | return NULL; | |
6750 | } | |
742fc581 | 6751 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
e6056257 RD |
6752 | #endif |
6753 | } | |
6754 | { | |
0e2ff151 | 6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6756 | wxTextCtrl_WriteText(_arg0,*_arg1); |
e6056257 | 6757 | |
0e2ff151 | 6758 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6759 | if (PyErr_Occurred()) return NULL; |
6760 | } Py_INCREF(Py_None); | |
6761 | _resultobj = Py_None; | |
6762 | { | |
742fc581 RD |
6763 | if (_obj1) |
6764 | delete _arg1; | |
e6056257 RD |
6765 | } |
6766 | return _resultobj; | |
6767 | } | |
6768 | ||
742fc581 RD |
6769 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
6770 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6771 | PyObject * _resultobj; |
e6056257 RD |
6772 | wxTextCtrl * _arg0; |
6773 | wxString * _arg1; | |
6774 | PyObject * _argo0 = 0; | |
6775 | PyObject * _obj1 = 0; | |
742fc581 | 6776 | char *_kwnames[] = { "self","text", NULL }; |
e6056257 RD |
6777 | |
6778 | self = self; | |
742fc581 | 6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
6780 | return NULL; |
6781 | if (_argo0) { | |
6782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
e6056257 RD |
6785 | return NULL; |
6786 | } | |
6787 | } | |
6788 | { | |
6789 | #if PYTHON_API_VERSION >= 1009 | |
6790 | char* tmpPtr; int tmpSize; | |
6791 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6792 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6793 | return NULL; | |
6794 | } | |
6795 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6796 | return NULL; | |
6797 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6798 | #else | |
6799 | if (!PyString_Check(_obj1)) { | |
6800 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6801 | return NULL; | |
6802 | } | |
6803 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6804 | #endif | |
6805 | } | |
6806 | { | |
0e2ff151 | 6807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6808 | wxTextCtrl_AppendText(_arg0,*_arg1); |
e6056257 | 6809 | |
0e2ff151 | 6810 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6811 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6812 | } Py_INCREF(Py_None); |
6813 | _resultobj = Py_None; | |
e6056257 RD |
6814 | { |
6815 | if (_obj1) | |
6816 | delete _arg1; | |
6817 | } | |
6818 | return _resultobj; | |
6819 | } | |
6820 | ||
742fc581 RD |
6821 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
6822 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6823 | PyObject * _resultobj; |
742fc581 | 6824 | bool _result; |
e6056257 | 6825 | wxTextCtrl * _arg0; |
742fc581 RD |
6826 | long _arg1; |
6827 | long _arg2; | |
6828 | wxTextAttr * _arg3; | |
e6056257 | 6829 | PyObject * _argo0 = 0; |
742fc581 RD |
6830 | PyObject * _argo3 = 0; |
6831 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
e6056257 RD |
6832 | |
6833 | self = self; | |
742fc581 | 6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
e6056257 RD |
6835 | return NULL; |
6836 | if (_argo0) { | |
6837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 RD |
6839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
6840 | return NULL; | |
6841 | } | |
6842 | } | |
6843 | if (_argo3) { | |
6844 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6845 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
e6056257 RD |
6847 | return NULL; |
6848 | } | |
6849 | } | |
e6056257 | 6850 | { |
0e2ff151 | 6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6852 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
e6056257 | 6853 | |
0e2ff151 | 6854 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6855 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6856 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
6857 | return _resultobj; |
6858 | } | |
6859 | ||
742fc581 RD |
6860 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
6861 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6862 | PyObject * _resultobj; |
742fc581 | 6863 | bool _result; |
e6056257 | 6864 | wxTextCtrl * _arg0; |
742fc581 | 6865 | wxTextAttr * _arg1; |
e6056257 | 6866 | PyObject * _argo0 = 0; |
742fc581 RD |
6867 | PyObject * _argo1 = 0; |
6868 | char *_kwnames[] = { "self","style", NULL }; | |
e6056257 RD |
6869 | |
6870 | self = self; | |
742fc581 | 6871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
e6056257 RD |
6872 | return NULL; |
6873 | if (_argo0) { | |
6874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 RD |
6876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
6877 | return NULL; | |
6878 | } | |
6879 | } | |
6880 | if (_argo1) { | |
6881 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6882 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
e6056257 RD |
6884 | return NULL; |
6885 | } | |
6886 | } | |
6887 | { | |
0e2ff151 | 6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6889 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
e6056257 | 6890 | |
0e2ff151 | 6891 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6892 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6893 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
6894 | return _resultobj; |
6895 | } | |
6896 | ||
742fc581 RD |
6897 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
6898 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6899 | PyObject * _resultobj; |
742fc581 | 6900 | wxTextAttr * _result; |
e6056257 RD |
6901 | wxTextCtrl * _arg0; |
6902 | PyObject * _argo0 = 0; | |
6903 | char *_kwnames[] = { "self", NULL }; | |
742fc581 | 6904 | char _ptemp[128]; |
e6056257 RD |
6905 | |
6906 | self = self; | |
742fc581 | 6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
e6056257 RD |
6908 | return NULL; |
6909 | if (_argo0) { | |
6910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
e6056257 RD |
6913 | return NULL; |
6914 | } | |
6915 | } | |
6916 | { | |
0e2ff151 | 6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 RD |
6918 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
6919 | _result = (wxTextAttr *) &_result_ref; | |
e6056257 | 6920 | |
0e2ff151 | 6921 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6922 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
6923 | } if (_result) { |
6924 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6925 | _resultobj = Py_BuildValue("s",_ptemp); | |
6926 | } else { | |
6927 | Py_INCREF(Py_None); | |
6928 | _resultobj = Py_None; | |
6929 | } | |
e6056257 RD |
6930 | return _resultobj; |
6931 | } | |
6932 | ||
742fc581 RD |
6933 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
6934 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 6935 | PyObject * _resultobj; |
742fc581 | 6936 | long _result; |
e6056257 RD |
6937 | wxTextCtrl * _arg0; |
6938 | long _arg1; | |
6939 | long _arg2; | |
6940 | PyObject * _argo0 = 0; | |
742fc581 | 6941 | char *_kwnames[] = { "self","x","y", NULL }; |
e6056257 RD |
6942 | |
6943 | self = self; | |
742fc581 | 6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
e6056257 RD |
6945 | return NULL; |
6946 | if (_argo0) { | |
6947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
e6056257 RD |
6950 | return NULL; |
6951 | } | |
6952 | } | |
6953 | { | |
0e2ff151 | 6954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 6955 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
e6056257 | 6956 | |
0e2ff151 | 6957 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6958 | if (PyErr_Occurred()) return NULL; |
742fc581 | 6959 | } _resultobj = Py_BuildValue("l",_result); |
e6056257 RD |
6960 | return _resultobj; |
6961 | } | |
6962 | ||
742fc581 RD |
6963 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
6964 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6965 | PyObject * _resultobj; |
6966 | wxTextCtrl * _arg0; | |
742fc581 RD |
6967 | long _arg1; |
6968 | long * _arg2; | |
6969 | long temp; | |
6970 | long * _arg3; | |
6971 | long temp0; | |
e6056257 | 6972 | PyObject * _argo0 = 0; |
742fc581 | 6973 | char *_kwnames[] = { "self","pos", NULL }; |
e6056257 RD |
6974 | |
6975 | self = self; | |
742fc581 RD |
6976 | { |
6977 | _arg2 = &temp; | |
6978 | } | |
6979 | { | |
6980 | _arg3 = &temp0; | |
6981 | } | |
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
e6056257 RD |
6983 | return NULL; |
6984 | if (_argo0) { | |
6985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
e6056257 RD |
6988 | return NULL; |
6989 | } | |
6990 | } | |
e6056257 | 6991 | { |
0e2ff151 | 6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d1e76a37 | 6993 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 6994 | |
0e2ff151 | 6995 | wxPyEndAllowThreads(__tstate); |
e6056257 | 6996 | if (PyErr_Occurred()) return NULL; |
d1e76a37 RD |
6997 | } Py_INCREF(Py_None); |
6998 | _resultobj = Py_None; | |
e6056257 | 6999 | { |
742fc581 RD |
7000 | PyObject *o; |
7001 | o = PyInt_FromLong((long) (*_arg2)); | |
7002 | _resultobj = t_output_helper(_resultobj, o); | |
7003 | } | |
7004 | { | |
7005 | PyObject *o; | |
7006 | o = PyInt_FromLong((long) (*_arg3)); | |
7007 | _resultobj = t_output_helper(_resultobj, o); | |
e6056257 RD |
7008 | } |
7009 | return _resultobj; | |
7010 | } | |
7011 | ||
7012 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
7013 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7014 | PyObject * _resultobj; | |
7015 | wxTextCtrl * _arg0; | |
7016 | long _arg1; | |
7017 | PyObject * _argo0 = 0; | |
7018 | char *_kwnames[] = { "self","pos", NULL }; | |
7019 | ||
7020 | self = self; | |
7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) | |
7022 | return NULL; | |
7023 | if (_argo0) { | |
7024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); | |
7027 | return NULL; | |
7028 | } | |
7029 | } | |
7030 | { | |
0e2ff151 | 7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7032 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
7033 | ||
0e2ff151 | 7034 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7035 | if (PyErr_Occurred()) return NULL; |
7036 | } Py_INCREF(Py_None); | |
7037 | _resultobj = Py_None; | |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
742fc581 RD |
7041 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
7042 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7043 | PyObject * _resultobj; |
7044 | wxTextCtrl * _arg0; | |
e6056257 | 7045 | PyObject * _argo0 = 0; |
742fc581 | 7046 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7047 | |
7048 | self = self; | |
742fc581 | 7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
e6056257 RD |
7050 | return NULL; |
7051 | if (_argo0) { | |
7052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
e6056257 RD |
7055 | return NULL; |
7056 | } | |
7057 | } | |
e6056257 | 7058 | { |
0e2ff151 | 7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7060 | wxTextCtrl_Copy(_arg0); |
e6056257 | 7061 | |
0e2ff151 | 7062 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7063 | if (PyErr_Occurred()) return NULL; |
7064 | } Py_INCREF(Py_None); | |
7065 | _resultobj = Py_None; | |
e6056257 RD |
7066 | return _resultobj; |
7067 | } | |
7068 | ||
742fc581 RD |
7069 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
7070 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7071 | PyObject * _resultobj; |
7072 | wxTextCtrl * _arg0; | |
e6056257 | 7073 | PyObject * _argo0 = 0; |
742fc581 | 7074 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7075 | |
7076 | self = self; | |
742fc581 | 7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
e6056257 RD |
7078 | return NULL; |
7079 | if (_argo0) { | |
7080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
e6056257 RD |
7083 | return NULL; |
7084 | } | |
7085 | } | |
e6056257 | 7086 | { |
0e2ff151 | 7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7088 | wxTextCtrl_Cut(_arg0); |
e6056257 | 7089 | |
0e2ff151 | 7090 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7091 | if (PyErr_Occurred()) return NULL; |
7092 | } Py_INCREF(Py_None); | |
7093 | _resultobj = Py_None; | |
e6056257 RD |
7094 | return _resultobj; |
7095 | } | |
7096 | ||
742fc581 RD |
7097 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
7098 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7099 | PyObject * _resultobj; |
e6056257 | 7100 | wxTextCtrl * _arg0; |
e6056257 | 7101 | PyObject * _argo0 = 0; |
742fc581 | 7102 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7103 | |
7104 | self = self; | |
742fc581 | 7105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
e6056257 RD |
7106 | return NULL; |
7107 | if (_argo0) { | |
7108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
e6056257 RD |
7111 | return NULL; |
7112 | } | |
7113 | } | |
7114 | { | |
0e2ff151 | 7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7116 | wxTextCtrl_Paste(_arg0); |
e6056257 | 7117 | |
0e2ff151 | 7118 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7119 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
7120 | } Py_INCREF(Py_None); |
7121 | _resultobj = Py_None; | |
e6056257 RD |
7122 | return _resultobj; |
7123 | } | |
7124 | ||
7125 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) | |
7126 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject * _resultobj; | |
7128 | bool _result; | |
7129 | wxTextCtrl * _arg0; | |
7130 | PyObject * _argo0 = 0; | |
7131 | char *_kwnames[] = { "self", NULL }; | |
7132 | ||
7133 | self = self; | |
7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) | |
7135 | return NULL; | |
7136 | if (_argo0) { | |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); | |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
7143 | { | |
0e2ff151 | 7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7145 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
7146 | ||
0e2ff151 | 7147 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7148 | if (PyErr_Occurred()) return NULL; |
7149 | } _resultobj = Py_BuildValue("i",_result); | |
7150 | return _resultobj; | |
7151 | } | |
7152 | ||
7153 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
7154 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject * _resultobj; | |
7156 | bool _result; | |
7157 | wxTextCtrl * _arg0; | |
7158 | PyObject * _argo0 = 0; | |
7159 | char *_kwnames[] = { "self", NULL }; | |
7160 | ||
7161 | self = self; | |
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) | |
7163 | return NULL; | |
7164 | if (_argo0) { | |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); | |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
7171 | { | |
0e2ff151 | 7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7173 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
7174 | ||
0e2ff151 | 7175 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7176 | if (PyErr_Occurred()) return NULL; |
7177 | } _resultobj = Py_BuildValue("i",_result); | |
7178 | return _resultobj; | |
7179 | } | |
7180 | ||
7181 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
7182 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7183 | PyObject * _resultobj; | |
7184 | bool _result; | |
7185 | wxTextCtrl * _arg0; | |
7186 | PyObject * _argo0 = 0; | |
7187 | char *_kwnames[] = { "self", NULL }; | |
7188 | ||
7189 | self = self; | |
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) | |
7191 | return NULL; | |
7192 | if (_argo0) { | |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); | |
7196 | return NULL; | |
7197 | } | |
7198 | } | |
7199 | { | |
0e2ff151 | 7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7201 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
7202 | ||
0e2ff151 | 7203 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7204 | if (PyErr_Occurred()) return NULL; |
7205 | } _resultobj = Py_BuildValue("i",_result); | |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
742fc581 RD |
7209 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7210 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7211 | PyObject * _resultobj; |
e6056257 RD |
7212 | wxTextCtrl * _arg0; |
7213 | PyObject * _argo0 = 0; | |
7214 | char *_kwnames[] = { "self", NULL }; | |
7215 | ||
7216 | self = self; | |
742fc581 | 7217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
e6056257 RD |
7218 | return NULL; |
7219 | if (_argo0) { | |
7220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
e6056257 RD |
7223 | return NULL; |
7224 | } | |
7225 | } | |
7226 | { | |
0e2ff151 | 7227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7228 | wxTextCtrl_Undo(_arg0); |
e6056257 | 7229 | |
0e2ff151 | 7230 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7231 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
7232 | } Py_INCREF(Py_None); |
7233 | _resultobj = Py_None; | |
e6056257 RD |
7234 | return _resultobj; |
7235 | } | |
7236 | ||
742fc581 RD |
7237 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7238 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7239 | PyObject * _resultobj; |
e6056257 RD |
7240 | wxTextCtrl * _arg0; |
7241 | PyObject * _argo0 = 0; | |
7242 | char *_kwnames[] = { "self", NULL }; | |
7243 | ||
7244 | self = self; | |
742fc581 | 7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
e6056257 RD |
7246 | return NULL; |
7247 | if (_argo0) { | |
7248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
e6056257 RD |
7251 | return NULL; |
7252 | } | |
7253 | } | |
7254 | { | |
0e2ff151 | 7255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7256 | wxTextCtrl_Redo(_arg0); |
e6056257 | 7257 | |
0e2ff151 | 7258 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7259 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
7260 | } Py_INCREF(Py_None); |
7261 | _resultobj = Py_None; | |
e6056257 RD |
7262 | return _resultobj; |
7263 | } | |
7264 | ||
742fc581 RD |
7265 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7266 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7267 | PyObject * _resultobj; |
742fc581 | 7268 | bool _result; |
e6056257 | 7269 | wxTextCtrl * _arg0; |
e6056257 RD |
7270 | PyObject * _argo0 = 0; |
7271 | char *_kwnames[] = { "self", NULL }; | |
7272 | ||
7273 | self = self; | |
742fc581 | 7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
e6056257 RD |
7275 | return NULL; |
7276 | if (_argo0) { | |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
e6056257 RD |
7280 | return NULL; |
7281 | } | |
7282 | } | |
7283 | { | |
0e2ff151 | 7284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7285 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
e6056257 | 7286 | |
0e2ff151 | 7287 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7288 | if (PyErr_Occurred()) return NULL; |
742fc581 | 7289 | } _resultobj = Py_BuildValue("i",_result); |
e6056257 RD |
7290 | return _resultobj; |
7291 | } | |
7292 | ||
742fc581 RD |
7293 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7294 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7295 | PyObject * _resultobj; |
7296 | bool _result; | |
7297 | wxTextCtrl * _arg0; | |
7298 | PyObject * _argo0 = 0; | |
7299 | char *_kwnames[] = { "self", NULL }; | |
7300 | ||
7301 | self = self; | |
742fc581 | 7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
e6056257 RD |
7303 | return NULL; |
7304 | if (_argo0) { | |
7305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
e6056257 RD |
7308 | return NULL; |
7309 | } | |
7310 | } | |
7311 | { | |
0e2ff151 | 7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7313 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
e6056257 | 7314 | |
0e2ff151 | 7315 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7316 | if (PyErr_Occurred()) return NULL; |
7317 | } _resultobj = Py_BuildValue("i",_result); | |
7318 | return _resultobj; | |
7319 | } | |
7320 | ||
742fc581 RD |
7321 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7322 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7323 | PyObject * _resultobj; |
7324 | wxTextCtrl * _arg0; | |
742fc581 | 7325 | long _arg1; |
e6056257 | 7326 | PyObject * _argo0 = 0; |
742fc581 | 7327 | char *_kwnames[] = { "self","pos", NULL }; |
e6056257 RD |
7328 | |
7329 | self = self; | |
742fc581 | 7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
7331 | return NULL; |
7332 | if (_argo0) { | |
7333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
e6056257 RD |
7336 | return NULL; |
7337 | } | |
7338 | } | |
7339 | { | |
0e2ff151 | 7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7341 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
e6056257 | 7342 | |
0e2ff151 | 7343 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7344 | if (PyErr_Occurred()) return NULL; |
7345 | } Py_INCREF(Py_None); | |
7346 | _resultobj = Py_None; | |
7347 | return _resultobj; | |
7348 | } | |
7349 | ||
742fc581 RD |
7350 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7351 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7352 | PyObject * _resultobj; |
7353 | wxTextCtrl * _arg0; | |
7354 | PyObject * _argo0 = 0; | |
7355 | char *_kwnames[] = { "self", NULL }; | |
7356 | ||
7357 | self = self; | |
742fc581 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
e6056257 RD |
7359 | return NULL; |
7360 | if (_argo0) { | |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
e6056257 RD |
7364 | return NULL; |
7365 | } | |
7366 | } | |
7367 | { | |
0e2ff151 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7369 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
e6056257 | 7370 | |
0e2ff151 | 7371 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7372 | if (PyErr_Occurred()) return NULL; |
7373 | } Py_INCREF(Py_None); | |
7374 | _resultobj = Py_None; | |
7375 | return _resultobj; | |
7376 | } | |
7377 | ||
742fc581 RD |
7378 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7379 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7380 | PyObject * _resultobj; |
742fc581 | 7381 | long _result; |
e6056257 | 7382 | wxTextCtrl * _arg0; |
e6056257 | 7383 | PyObject * _argo0 = 0; |
742fc581 | 7384 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7385 | |
7386 | self = self; | |
742fc581 | 7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
e6056257 RD |
7388 | return NULL; |
7389 | if (_argo0) { | |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
e6056257 RD |
7393 | return NULL; |
7394 | } | |
7395 | } | |
7396 | { | |
0e2ff151 | 7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7398 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
e6056257 | 7399 | |
0e2ff151 | 7400 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7401 | if (PyErr_Occurred()) return NULL; |
742fc581 | 7402 | } _resultobj = Py_BuildValue("l",_result); |
e6056257 RD |
7403 | return _resultobj; |
7404 | } | |
7405 | ||
742fc581 RD |
7406 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7407 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7408 | PyObject * _resultobj; |
742fc581 | 7409 | long _result; |
e6056257 | 7410 | wxTextCtrl * _arg0; |
e6056257 | 7411 | PyObject * _argo0 = 0; |
742fc581 | 7412 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7413 | |
7414 | self = self; | |
742fc581 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
e6056257 RD |
7416 | return NULL; |
7417 | if (_argo0) { | |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
e6056257 RD |
7421 | return NULL; |
7422 | } | |
7423 | } | |
742fc581 | 7424 | { |
0e2ff151 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 RD |
7426 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
7427 | ||
0e2ff151 | 7428 | wxPyEndAllowThreads(__tstate); |
742fc581 RD |
7429 | if (PyErr_Occurred()) return NULL; |
7430 | } _resultobj = Py_BuildValue("l",_result); | |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
7434 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7435 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7436 | PyObject * _resultobj; | |
7437 | wxTextCtrl * _arg0; | |
7438 | long _arg1; | |
7439 | long _arg2; | |
7440 | PyObject * _argo0 = 0; | |
7441 | char *_kwnames[] = { "self","from","to", NULL }; | |
7442 | ||
7443 | self = self; | |
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7445 | return NULL; | |
7446 | if (_argo0) { | |
7447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
e6056257 RD |
7450 | return NULL; |
7451 | } | |
7452 | } | |
7453 | { | |
0e2ff151 | 7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7455 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
e6056257 | 7456 | |
0e2ff151 | 7457 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7458 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
7459 | } Py_INCREF(Py_None); |
7460 | _resultobj = Py_None; | |
e6056257 RD |
7461 | return _resultobj; |
7462 | } | |
7463 | ||
742fc581 RD |
7464 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7465 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7466 | PyObject * _resultobj; |
e6056257 RD |
7467 | wxTextCtrl * _arg0; |
7468 | PyObject * _argo0 = 0; | |
7469 | char *_kwnames[] = { "self", NULL }; | |
e6056257 RD |
7470 | |
7471 | self = self; | |
742fc581 | 7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
e6056257 RD |
7473 | return NULL; |
7474 | if (_argo0) { | |
7475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
e6056257 RD |
7478 | return NULL; |
7479 | } | |
7480 | } | |
7481 | { | |
0e2ff151 | 7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7483 | wxTextCtrl_SelectAll(_arg0); |
e6056257 | 7484 | |
0e2ff151 | 7485 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7486 | if (PyErr_Occurred()) return NULL; |
742fc581 RD |
7487 | } Py_INCREF(Py_None); |
7488 | _resultobj = Py_None; | |
e6056257 RD |
7489 | return _resultobj; |
7490 | } | |
7491 | ||
742fc581 RD |
7492 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7493 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7494 | PyObject * _resultobj; |
7495 | wxTextCtrl * _arg0; | |
742fc581 | 7496 | bool _arg1; |
e6056257 | 7497 | PyObject * _argo0 = 0; |
742fc581 RD |
7498 | int tempbool1; |
7499 | char *_kwnames[] = { "self","editable", NULL }; | |
e6056257 RD |
7500 | |
7501 | self = self; | |
742fc581 | 7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
e6056257 RD |
7503 | return NULL; |
7504 | if (_argo0) { | |
7505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
742fc581 | 7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
e6056257 RD |
7508 | return NULL; |
7509 | } | |
7510 | } | |
742fc581 | 7511 | _arg1 = (bool ) tempbool1; |
e6056257 | 7512 | { |
0e2ff151 | 7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
742fc581 | 7514 | wxTextCtrl_SetEditable(_arg0,_arg1); |
e6056257 | 7515 | |
0e2ff151 | 7516 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7517 | if (PyErr_Occurred()) return NULL; |
7518 | } Py_INCREF(Py_None); | |
7519 | _resultobj = Py_None; | |
7520 | return _resultobj; | |
7521 | } | |
7522 | ||
7523 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
7524 | self->AppendText(text); | |
7525 | } | |
7526 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject * _resultobj; | |
7528 | wxTextCtrl * _arg0; | |
7529 | wxString * _arg1; | |
7530 | PyObject * _argo0 = 0; | |
7531 | PyObject * _obj1 = 0; | |
7532 | char *_kwnames[] = { "self","text", NULL }; | |
7533 | ||
7534 | self = self; | |
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7536 | return NULL; | |
7537 | if (_argo0) { | |
7538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7541 | return NULL; | |
7542 | } | |
7543 | } | |
7544 | { | |
7545 | #if PYTHON_API_VERSION >= 1009 | |
7546 | char* tmpPtr; int tmpSize; | |
7547 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7548 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7549 | return NULL; | |
7550 | } | |
7551 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7552 | return NULL; | |
7553 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7554 | #else | |
7555 | if (!PyString_Check(_obj1)) { | |
7556 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7557 | return NULL; | |
7558 | } | |
7559 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7560 | #endif | |
7561 | } | |
7562 | { | |
0e2ff151 | 7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7564 | wxTextCtrl_write(_arg0,*_arg1); |
7565 | ||
0e2ff151 | 7566 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7567 | if (PyErr_Occurred()) return NULL; |
7568 | } Py_INCREF(Py_None); | |
7569 | _resultobj = Py_None; | |
7570 | { | |
7571 | if (_obj1) | |
7572 | delete _arg1; | |
7573 | } | |
7574 | return _resultobj; | |
7575 | } | |
7576 | ||
dbd3685c RD |
7577 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
7578 | return self->GetValue().Mid(from, to-from); | |
7579 | } | |
7580 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7581 | PyObject * _resultobj; | |
7582 | wxString * _result; | |
7583 | wxTextCtrl * _arg0; | |
7584 | long _arg1; | |
7585 | long _arg2; | |
7586 | PyObject * _argo0 = 0; | |
7587 | char *_kwnames[] = { "self","from","to", NULL }; | |
7588 | ||
7589 | self = self; | |
7590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7591 | return NULL; | |
7592 | if (_argo0) { | |
7593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7596 | return NULL; | |
7597 | } | |
7598 | } | |
7599 | { | |
0e2ff151 | 7600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c RD |
7601 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
7602 | ||
0e2ff151 | 7603 | wxPyEndAllowThreads(__tstate); |
dbd3685c RD |
7604 | if (PyErr_Occurred()) return NULL; |
7605 | }{ | |
7606 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7607 | } | |
7608 | { | |
7609 | delete _result; | |
7610 | } | |
7611 | return _resultobj; | |
7612 | } | |
7613 | ||
e6056257 RD |
7614 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
7615 | wxScrollBar *src; | |
7616 | wxControl *dest; | |
7617 | src = (wxScrollBar *) ptr; | |
7618 | dest = (wxControl *) src; | |
7619 | return (void *) dest; | |
7620 | } | |
7621 | ||
7622 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7623 | wxScrollBar *src; | |
7624 | wxWindow *dest; | |
7625 | src = (wxScrollBar *) ptr; | |
7626 | dest = (wxWindow *) src; | |
7627 | return (void *) dest; | |
7628 | } | |
7629 | ||
7630 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7631 | wxScrollBar *src; | |
7632 | wxEvtHandler *dest; | |
7633 | src = (wxScrollBar *) ptr; | |
7634 | dest = (wxEvtHandler *) src; | |
7635 | return (void *) dest; | |
7636 | } | |
7637 | ||
7638 | static void *SwigwxScrollBarTowxObject(void *ptr) { | |
7639 | wxScrollBar *src; | |
7640 | wxObject *dest; | |
7641 | src = (wxScrollBar *) ptr; | |
7642 | dest = (wxObject *) src; | |
7643 | return (void *) dest; | |
7644 | } | |
7645 | ||
7646 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7647 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7648 | PyObject * _resultobj; | |
7649 | wxScrollBar * _result; | |
7650 | wxWindow * _arg0; | |
7651 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7652 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
7653 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
7654 | long _arg4 = (long ) wxSB_HORIZONTAL; | |
7655 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
7656 | char * _arg6 = (char *) "scrollBar"; | |
7657 | PyObject * _argo0 = 0; | |
7658 | wxPoint temp; | |
7659 | PyObject * _obj2 = 0; | |
7660 | wxSize temp0; | |
7661 | PyObject * _obj3 = 0; | |
7662 | PyObject * _argo5 = 0; | |
7663 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
7664 | char _ptemp[128]; | |
7665 | ||
7666 | self = self; | |
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
7668 | return NULL; | |
7669 | if (_argo0) { | |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); | |
7673 | return NULL; | |
7674 | } | |
7675 | } | |
7676 | if (_obj2) | |
7677 | { | |
7678 | _arg2 = &temp; | |
7679 | if (! wxPoint_helper(_obj2, &_arg2)) | |
7680 | return NULL; | |
7681 | } | |
7682 | if (_obj3) | |
7683 | { | |
7684 | _arg3 = &temp0; | |
7685 | if (! wxSize_helper(_obj3, &_arg3)) | |
7686 | return NULL; | |
7687 | } | |
7688 | if (_argo5) { | |
7689 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7690 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
7691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); | |
7692 | return NULL; | |
7693 | } | |
7694 | } | |
7695 | { | |
0e2ff151 | 7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7697 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
7698 | ||
0e2ff151 | 7699 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7700 | if (PyErr_Occurred()) return NULL; |
7701 | } if (_result) { | |
7702 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7703 | _resultobj = Py_BuildValue("s",_ptemp); | |
7704 | } else { | |
7705 | Py_INCREF(Py_None); | |
7706 | _resultobj = Py_None; | |
7707 | } | |
7708 | return _resultobj; | |
7709 | } | |
7710 | ||
7711 | #define new_wxPreScrollBar() (new wxScrollBar()) | |
7712 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7713 | PyObject * _resultobj; | |
7714 | wxScrollBar * _result; | |
7715 | char *_kwnames[] = { NULL }; | |
7716 | char _ptemp[128]; | |
7717 | ||
7718 | self = self; | |
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7720 | return NULL; | |
7721 | { | |
0e2ff151 | 7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7723 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
7724 | ||
0e2ff151 | 7725 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7726 | if (PyErr_Occurred()) return NULL; |
7727 | } if (_result) { | |
7728 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7729 | _resultobj = Py_BuildValue("s",_ptemp); | |
7730 | } else { | |
7731 | Py_INCREF(Py_None); | |
7732 | _resultobj = Py_None; | |
7733 | } | |
7734 | return _resultobj; | |
7735 | } | |
7736 | ||
7737 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7738 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7739 | PyObject * _resultobj; | |
7740 | bool _result; | |
7741 | wxScrollBar * _arg0; | |
7742 | wxWindow * _arg1; | |
7743 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7744 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7745 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7746 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7747 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7748 | char * _arg7 = (char *) "scrollBar"; | |
7749 | PyObject * _argo0 = 0; | |
7750 | PyObject * _argo1 = 0; | |
7751 | wxPoint temp; | |
7752 | PyObject * _obj3 = 0; | |
7753 | wxSize temp0; | |
7754 | PyObject * _obj4 = 0; | |
7755 | PyObject * _argo6 = 0; | |
7756 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7757 | ||
7758 | self = self; | |
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7760 | return NULL; | |
7761 | if (_argo0) { | |
7762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7765 | return NULL; | |
7766 | } | |
7767 | } | |
7768 | if (_argo1) { | |
7769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7772 | return NULL; | |
7773 | } | |
7774 | } | |
7775 | if (_obj3) | |
7776 | { | |
7777 | _arg3 = &temp; | |
7778 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7779 | return NULL; | |
7780 | } | |
7781 | if (_obj4) | |
7782 | { | |
7783 | _arg4 = &temp0; | |
7784 | if (! wxSize_helper(_obj4, &_arg4)) | |
7785 | return NULL; | |
7786 | } | |
7787 | if (_argo6) { | |
7788 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7789 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7791 | return NULL; | |
7792 | } | |
7793 | } | |
7794 | { | |
0e2ff151 | 7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7796 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
7797 | ||
0e2ff151 | 7798 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7799 | if (PyErr_Occurred()) return NULL; |
7800 | } _resultobj = Py_BuildValue("i",_result); | |
7801 | return _resultobj; | |
7802 | } | |
7803 | ||
7804 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
7805 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject * _resultobj; | |
7807 | int _result; | |
7808 | wxScrollBar * _arg0; | |
7809 | PyObject * _argo0 = 0; | |
7810 | char *_kwnames[] = { "self", NULL }; | |
7811 | ||
7812 | self = self; | |
7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) | |
7814 | return NULL; | |
7815 | if (_argo0) { | |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | { | |
0e2ff151 | 7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7824 | _result = (int )wxScrollBar_GetRange(_arg0); |
7825 | ||
0e2ff151 | 7826 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7827 | if (PyErr_Occurred()) return NULL; |
7828 | } _resultobj = Py_BuildValue("i",_result); | |
7829 | return _resultobj; | |
7830 | } | |
7831 | ||
7832 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
7833 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject * _resultobj; | |
7835 | int _result; | |
7836 | wxScrollBar * _arg0; | |
7837 | PyObject * _argo0 = 0; | |
7838 | char *_kwnames[] = { "self", NULL }; | |
7839 | ||
7840 | self = self; | |
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) | |
7842 | return NULL; | |
7843 | if (_argo0) { | |
7844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); | |
7847 | return NULL; | |
7848 | } | |
7849 | } | |
7850 | { | |
0e2ff151 | 7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7852 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
7853 | ||
0e2ff151 | 7854 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7855 | if (PyErr_Occurred()) return NULL; |
7856 | } _resultobj = Py_BuildValue("i",_result); | |
7857 | return _resultobj; | |
7858 | } | |
7859 | ||
7860 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) | |
7861 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7862 | PyObject * _resultobj; | |
7863 | int _result; | |
7864 | wxScrollBar * _arg0; | |
7865 | PyObject * _argo0 = 0; | |
7866 | char *_kwnames[] = { "self", NULL }; | |
7867 | ||
7868 | self = self; | |
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) | |
7870 | return NULL; | |
7871 | if (_argo0) { | |
7872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); | |
7875 | return NULL; | |
7876 | } | |
7877 | } | |
7878 | { | |
0e2ff151 | 7879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7880 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
7881 | ||
0e2ff151 | 7882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7883 | if (PyErr_Occurred()) return NULL; |
7884 | } _resultobj = Py_BuildValue("i",_result); | |
7885 | return _resultobj; | |
7886 | } | |
7887 | ||
7888 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
7889 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7890 | PyObject * _resultobj; | |
7891 | int _result; | |
7892 | wxScrollBar * _arg0; | |
7893 | PyObject * _argo0 = 0; | |
7894 | char *_kwnames[] = { "self", NULL }; | |
7895 | ||
7896 | self = self; | |
7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) | |
7898 | return NULL; | |
7899 | if (_argo0) { | |
7900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); | |
7903 | return NULL; | |
7904 | } | |
7905 | } | |
7906 | { | |
0e2ff151 | 7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7908 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
7909 | ||
0e2ff151 | 7910 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7911 | if (PyErr_Occurred()) return NULL; |
7912 | } _resultobj = Py_BuildValue("i",_result); | |
7913 | return _resultobj; | |
7914 | } | |
7915 | ||
dbd3685c RD |
7916 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
7917 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject * _resultobj; | |
7919 | bool _result; | |
7920 | wxScrollBar * _arg0; | |
7921 | PyObject * _argo0 = 0; | |
7922 | char *_kwnames[] = { "self", NULL }; | |
7923 | ||
7924 | self = self; | |
7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
7926 | return NULL; | |
7927 | if (_argo0) { | |
7928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
7931 | return NULL; | |
7932 | } | |
7933 | } | |
7934 | { | |
0e2ff151 | 7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c RD |
7936 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
7937 | ||
0e2ff151 | 7938 | wxPyEndAllowThreads(__tstate); |
dbd3685c RD |
7939 | if (PyErr_Occurred()) return NULL; |
7940 | } _resultobj = Py_BuildValue("i",_result); | |
7941 | return _resultobj; | |
7942 | } | |
7943 | ||
e6056257 RD |
7944 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
7945 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject * _resultobj; | |
7947 | wxScrollBar * _arg0; | |
7948 | int _arg1; | |
7949 | PyObject * _argo0 = 0; | |
7950 | char *_kwnames[] = { "self","viewStart", NULL }; | |
7951 | ||
7952 | self = self; | |
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) | |
7954 | return NULL; | |
7955 | if (_argo0) { | |
7956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); | |
7959 | return NULL; | |
7960 | } | |
7961 | } | |
7962 | { | |
0e2ff151 | 7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7964 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
7965 | ||
0e2ff151 | 7966 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7967 | if (PyErr_Occurred()) return NULL; |
7968 | } Py_INCREF(Py_None); | |
7969 | _resultobj = Py_None; | |
7970 | return _resultobj; | |
7971 | } | |
7972 | ||
7973 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7974 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject * _resultobj; | |
7976 | wxScrollBar * _arg0; | |
7977 | int _arg1; | |
7978 | int _arg2; | |
7979 | int _arg3; | |
7980 | int _arg4; | |
7981 | bool _arg5 = (bool ) TRUE; | |
7982 | PyObject * _argo0 = 0; | |
7983 | int tempbool5 = (int) TRUE; | |
7984 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; | |
7985 | ||
7986 | self = self; | |
7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) | |
7988 | return NULL; | |
7989 | if (_argo0) { | |
7990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); | |
7993 | return NULL; | |
7994 | } | |
7995 | } | |
7996 | _arg5 = (bool ) tempbool5; | |
7997 | { | |
0e2ff151 | 7998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7999 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
8000 | ||
0e2ff151 | 8001 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8002 | if (PyErr_Occurred()) return NULL; |
8003 | } Py_INCREF(Py_None); | |
8004 | _resultobj = Py_None; | |
8005 | return _resultobj; | |
8006 | } | |
8007 | ||
8008 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8009 | wxSpinButton *src; | |
8010 | wxControl *dest; | |
8011 | src = (wxSpinButton *) ptr; | |
8012 | dest = (wxControl *) src; | |
8013 | return (void *) dest; | |
8014 | } | |
8015 | ||
8016 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8017 | wxSpinButton *src; | |
8018 | wxWindow *dest; | |
8019 | src = (wxSpinButton *) ptr; | |
8020 | dest = (wxWindow *) src; | |
8021 | return (void *) dest; | |
8022 | } | |
8023 | ||
8024 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8025 | wxSpinButton *src; | |
8026 | wxEvtHandler *dest; | |
8027 | src = (wxSpinButton *) ptr; | |
8028 | dest = (wxEvtHandler *) src; | |
8029 | return (void *) dest; | |
8030 | } | |
8031 | ||
8032 | static void *SwigwxSpinButtonTowxObject(void *ptr) { | |
8033 | wxSpinButton *src; | |
8034 | wxObject *dest; | |
8035 | src = (wxSpinButton *) ptr; | |
8036 | dest = (wxObject *) src; | |
8037 | return (void *) dest; | |
8038 | } | |
8039 | ||
8040 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8041 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8042 | PyObject * _resultobj; | |
8043 | wxSpinButton * _result; | |
8044 | wxWindow * _arg0; | |
8045 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8046 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8047 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8048 | long _arg4 = (long ) wxSP_HORIZONTAL; | |
8049 | char * _arg5 = (char *) "spinButton"; | |
8050 | PyObject * _argo0 = 0; | |
8051 | wxPoint temp; | |
8052 | PyObject * _obj2 = 0; | |
8053 | wxSize temp0; | |
8054 | PyObject * _obj3 = 0; | |
8055 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
8056 | char _ptemp[128]; | |
8057 | ||
8058 | self = self; | |
8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
8060 | return NULL; | |
8061 | if (_argo0) { | |
8062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); | |
8065 | return NULL; | |
8066 | } | |
8067 | } | |
8068 | if (_obj2) | |
8069 | { | |
8070 | _arg2 = &temp; | |
8071 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8072 | return NULL; | |
8073 | } | |
8074 | if (_obj3) | |
8075 | { | |
8076 | _arg3 = &temp0; | |
8077 | if (! wxSize_helper(_obj3, &_arg3)) | |
8078 | return NULL; | |
8079 | } | |
8080 | { | |
0e2ff151 | 8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8082 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
8083 | ||
0e2ff151 | 8084 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8085 | if (PyErr_Occurred()) return NULL; |
8086 | } if (_result) { | |
8087 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8088 | _resultobj = Py_BuildValue("s",_ptemp); | |
8089 | } else { | |
8090 | Py_INCREF(Py_None); | |
8091 | _resultobj = Py_None; | |
8092 | } | |
8093 | return _resultobj; | |
8094 | } | |
8095 | ||
8096 | #define new_wxPreSpinButton() (new wxSpinButton()) | |
8097 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject * _resultobj; | |
8099 | wxSpinButton * _result; | |
8100 | char *_kwnames[] = { NULL }; | |
8101 | char _ptemp[128]; | |
8102 | ||
8103 | self = self; | |
8104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8105 | return NULL; | |
8106 | { | |
0e2ff151 | 8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8108 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
8109 | ||
0e2ff151 | 8110 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8111 | if (PyErr_Occurred()) return NULL; |
8112 | } if (_result) { | |
8113 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8114 | _resultobj = Py_BuildValue("s",_ptemp); | |
8115 | } else { | |
8116 | Py_INCREF(Py_None); | |
8117 | _resultobj = Py_None; | |
8118 | } | |
8119 | return _resultobj; | |
8120 | } | |
8121 | ||
8122 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8123 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8124 | PyObject * _resultobj; | |
8125 | bool _result; | |
8126 | wxSpinButton * _arg0; | |
8127 | wxWindow * _arg1; | |
8128 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8129 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8130 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8131 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8132 | char * _arg6 = (char *) "spinButton"; | |
8133 | PyObject * _argo0 = 0; | |
8134 | PyObject * _argo1 = 0; | |
8135 | wxPoint temp; | |
8136 | PyObject * _obj3 = 0; | |
8137 | wxSize temp0; | |
8138 | PyObject * _obj4 = 0; | |
8139 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8140 | ||
8141 | self = self; | |
8142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8143 | return NULL; | |
8144 | if (_argo0) { | |
8145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8148 | return NULL; | |
8149 | } | |
8150 | } | |
8151 | if (_argo1) { | |
8152 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8153 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
8158 | if (_obj3) | |
8159 | { | |
8160 | _arg3 = &temp; | |
8161 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8162 | return NULL; | |
8163 | } | |
8164 | if (_obj4) | |
8165 | { | |
8166 | _arg4 = &temp0; | |
8167 | if (! wxSize_helper(_obj4, &_arg4)) | |
8168 | return NULL; | |
8169 | } | |
8170 | { | |
0e2ff151 | 8171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8172 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
8173 | ||
0e2ff151 | 8174 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8175 | if (PyErr_Occurred()) return NULL; |
8176 | } _resultobj = Py_BuildValue("i",_result); | |
8177 | return _resultobj; | |
8178 | } | |
8179 | ||
8180 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
8181 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8182 | PyObject * _resultobj; | |
8183 | int _result; | |
8184 | wxSpinButton * _arg0; | |
8185 | PyObject * _argo0 = 0; | |
8186 | char *_kwnames[] = { "self", NULL }; | |
8187 | ||
8188 | self = self; | |
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) | |
8190 | return NULL; | |
8191 | if (_argo0) { | |
8192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); | |
8195 | return NULL; | |
8196 | } | |
8197 | } | |
8198 | { | |
0e2ff151 | 8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8200 | _result = (int )wxSpinButton_GetMax(_arg0); |
8201 | ||
0e2ff151 | 8202 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8203 | if (PyErr_Occurred()) return NULL; |
8204 | } _resultobj = Py_BuildValue("i",_result); | |
8205 | return _resultobj; | |
8206 | } | |
8207 | ||
8208 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
8209 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8210 | PyObject * _resultobj; | |
8211 | int _result; | |
8212 | wxSpinButton * _arg0; | |
8213 | PyObject * _argo0 = 0; | |
8214 | char *_kwnames[] = { "self", NULL }; | |
8215 | ||
8216 | self = self; | |
8217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) | |
8218 | return NULL; | |
8219 | if (_argo0) { | |
8220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); | |
8223 | return NULL; | |
8224 | } | |
8225 | } | |
8226 | { | |
0e2ff151 | 8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8228 | _result = (int )wxSpinButton_GetMin(_arg0); |
8229 | ||
0e2ff151 | 8230 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8231 | if (PyErr_Occurred()) return NULL; |
8232 | } _resultobj = Py_BuildValue("i",_result); | |
8233 | return _resultobj; | |
8234 | } | |
8235 | ||
8236 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8237 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8238 | PyObject * _resultobj; | |
8239 | int _result; | |
8240 | wxSpinButton * _arg0; | |
8241 | PyObject * _argo0 = 0; | |
8242 | char *_kwnames[] = { "self", NULL }; | |
8243 | ||
8244 | self = self; | |
8245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) | |
8246 | return NULL; | |
8247 | if (_argo0) { | |
8248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); | |
8251 | return NULL; | |
8252 | } | |
8253 | } | |
8254 | { | |
0e2ff151 | 8255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8256 | _result = (int )wxSpinButton_GetValue(_arg0); |
8257 | ||
0e2ff151 | 8258 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8259 | if (PyErr_Occurred()) return NULL; |
8260 | } _resultobj = Py_BuildValue("i",_result); | |
8261 | return _resultobj; | |
8262 | } | |
8263 | ||
8264 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8265 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8266 | PyObject * _resultobj; | |
8267 | wxSpinButton * _arg0; | |
8268 | int _arg1; | |
8269 | int _arg2; | |
8270 | PyObject * _argo0 = 0; | |
8271 | char *_kwnames[] = { "self","min","max", NULL }; | |
8272 | ||
8273 | self = self; | |
8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8275 | return NULL; | |
8276 | if (_argo0) { | |
8277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); | |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
8283 | { | |
0e2ff151 | 8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8285 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
8286 | ||
0e2ff151 | 8287 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8288 | if (PyErr_Occurred()) return NULL; |
8289 | } Py_INCREF(Py_None); | |
8290 | _resultobj = Py_None; | |
8291 | return _resultobj; | |
8292 | } | |
8293 | ||
8294 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8295 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8296 | PyObject * _resultobj; | |
8297 | wxSpinButton * _arg0; | |
8298 | int _arg1; | |
8299 | PyObject * _argo0 = 0; | |
8300 | char *_kwnames[] = { "self","value", NULL }; | |
8301 | ||
8302 | self = self; | |
8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) | |
8304 | return NULL; | |
8305 | if (_argo0) { | |
8306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); | |
8309 | return NULL; | |
8310 | } | |
8311 | } | |
8312 | { | |
0e2ff151 | 8313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8314 | wxSpinButton_SetValue(_arg0,_arg1); |
8315 | ||
0e2ff151 | 8316 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8317 | if (PyErr_Occurred()) return NULL; |
8318 | } Py_INCREF(Py_None); | |
8319 | _resultobj = Py_None; | |
8320 | return _resultobj; | |
8321 | } | |
8322 | ||
8323 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8324 | wxStaticBitmap *src; | |
8325 | wxControl *dest; | |
8326 | src = (wxStaticBitmap *) ptr; | |
8327 | dest = (wxControl *) src; | |
8328 | return (void *) dest; | |
8329 | } | |
8330 | ||
8331 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8332 | wxStaticBitmap *src; | |
8333 | wxWindow *dest; | |
8334 | src = (wxStaticBitmap *) ptr; | |
8335 | dest = (wxWindow *) src; | |
8336 | return (void *) dest; | |
8337 | } | |
8338 | ||
8339 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8340 | wxStaticBitmap *src; | |
8341 | wxEvtHandler *dest; | |
8342 | src = (wxStaticBitmap *) ptr; | |
8343 | dest = (wxEvtHandler *) src; | |
8344 | return (void *) dest; | |
8345 | } | |
8346 | ||
8347 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { | |
8348 | wxStaticBitmap *src; | |
8349 | wxObject *dest; | |
8350 | src = (wxStaticBitmap *) ptr; | |
8351 | dest = (wxObject *) src; | |
8352 | return (void *) dest; | |
8353 | } | |
8354 | ||
8355 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8356 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject * _resultobj; | |
8358 | wxStaticBitmap * _result; | |
8359 | wxWindow * _arg0; | |
8360 | wxWindowID _arg1; | |
8361 | wxBitmap * _arg2; | |
8362 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8363 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8364 | long _arg5 = (long ) 0; | |
8365 | char * _arg6 = (char *) "staticBitmap"; | |
8366 | PyObject * _argo0 = 0; | |
8367 | PyObject * _argo2 = 0; | |
8368 | wxPoint temp; | |
8369 | PyObject * _obj3 = 0; | |
8370 | wxSize temp0; | |
8371 | PyObject * _obj4 = 0; | |
8372 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8373 | char _ptemp[128]; | |
8374 | ||
8375 | self = self; | |
8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8377 | return NULL; | |
8378 | if (_argo0) { | |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8382 | return NULL; | |
8383 | } | |
8384 | } | |
8385 | if (_argo2) { | |
8386 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8387 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
8392 | if (_obj3) | |
8393 | { | |
8394 | _arg3 = &temp; | |
8395 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8396 | return NULL; | |
8397 | } | |
8398 | if (_obj4) | |
8399 | { | |
8400 | _arg4 = &temp0; | |
8401 | if (! wxSize_helper(_obj4, &_arg4)) | |
8402 | return NULL; | |
8403 | } | |
8404 | { | |
0e2ff151 | 8405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8406 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
8407 | ||
0e2ff151 | 8408 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8409 | if (PyErr_Occurred()) return NULL; |
8410 | } if (_result) { | |
8411 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8412 | _resultobj = Py_BuildValue("s",_ptemp); | |
8413 | } else { | |
8414 | Py_INCREF(Py_None); | |
8415 | _resultobj = Py_None; | |
8416 | } | |
8417 | return _resultobj; | |
8418 | } | |
8419 | ||
8420 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8421 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8422 | PyObject * _resultobj; | |
8423 | wxStaticBitmap * _result; | |
8424 | char *_kwnames[] = { NULL }; | |
8425 | char _ptemp[128]; | |
8426 | ||
8427 | self = self; | |
8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8429 | return NULL; | |
8430 | { | |
0e2ff151 | 8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8432 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
8433 | ||
0e2ff151 | 8434 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8435 | if (PyErr_Occurred()) return NULL; |
8436 | } if (_result) { | |
8437 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8438 | _resultobj = Py_BuildValue("s",_ptemp); | |
8439 | } else { | |
8440 | Py_INCREF(Py_None); | |
8441 | _resultobj = Py_None; | |
8442 | } | |
8443 | return _resultobj; | |
8444 | } | |
8445 | ||
8446 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8447 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8448 | PyObject * _resultobj; | |
8449 | bool _result; | |
8450 | wxStaticBitmap * _arg0; | |
8451 | wxWindow * _arg1; | |
8452 | wxWindowID _arg2; | |
8453 | wxBitmap * _arg3; | |
8454 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8455 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8456 | long _arg6 = (long ) 0; | |
8457 | char * _arg7 = (char *) "staticBitmap"; | |
8458 | PyObject * _argo0 = 0; | |
8459 | PyObject * _argo1 = 0; | |
8460 | PyObject * _argo3 = 0; | |
8461 | wxPoint temp; | |
8462 | PyObject * _obj4 = 0; | |
8463 | wxSize temp0; | |
8464 | PyObject * _obj5 = 0; | |
8465 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
8466 | ||
8467 | self = self; | |
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
8469 | return NULL; | |
8470 | if (_argo0) { | |
8471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8474 | return NULL; | |
8475 | } | |
8476 | } | |
8477 | if (_argo1) { | |
8478 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | if (_argo3) { | |
8485 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8486 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8488 | return NULL; | |
8489 | } | |
8490 | } | |
8491 | if (_obj4) | |
8492 | { | |
8493 | _arg4 = &temp; | |
8494 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8495 | return NULL; | |
8496 | } | |
8497 | if (_obj5) | |
8498 | { | |
8499 | _arg5 = &temp0; | |
8500 | if (! wxSize_helper(_obj5, &_arg5)) | |
8501 | return NULL; | |
8502 | } | |
8503 | { | |
0e2ff151 | 8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8505 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
8506 | ||
0e2ff151 | 8507 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8508 | if (PyErr_Occurred()) return NULL; |
8509 | } _resultobj = Py_BuildValue("i",_result); | |
8510 | return _resultobj; | |
8511 | } | |
8512 | ||
8513 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
8514 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8515 | PyObject * _resultobj; | |
8516 | wxBitmap * _result; | |
8517 | wxStaticBitmap * _arg0; | |
8518 | PyObject * _argo0 = 0; | |
8519 | char *_kwnames[] = { "self", NULL }; | |
8520 | char _ptemp[128]; | |
8521 | ||
8522 | self = self; | |
8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) | |
8524 | return NULL; | |
8525 | if (_argo0) { | |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); | |
8529 | return NULL; | |
8530 | } | |
8531 | } | |
8532 | { | |
0e2ff151 | 8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 8534 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
e6056257 | 8535 | |
0e2ff151 | 8536 | wxPyEndAllowThreads(__tstate); |
e6056257 | 8537 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
8538 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
8539 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
8540 | return _resultobj; |
8541 | } | |
8542 | ||
8543 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
8544 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8545 | PyObject * _resultobj; | |
8546 | wxStaticBitmap * _arg0; | |
8547 | wxBitmap * _arg1; | |
8548 | PyObject * _argo0 = 0; | |
8549 | PyObject * _argo1 = 0; | |
8550 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8551 | ||
8552 | self = self; | |
8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
8554 | return NULL; | |
8555 | if (_argo0) { | |
8556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); | |
8559 | return NULL; | |
8560 | } | |
8561 | } | |
8562 | if (_argo1) { | |
8563 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8564 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); | |
8566 | return NULL; | |
8567 | } | |
8568 | } | |
8569 | { | |
0e2ff151 | 8570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8571 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
8572 | ||
0e2ff151 | 8573 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8574 | if (PyErr_Occurred()) return NULL; |
8575 | } Py_INCREF(Py_None); | |
8576 | _resultobj = Py_None; | |
8577 | return _resultobj; | |
8578 | } | |
8579 | ||
8580 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
8581 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject * _resultobj; | |
8583 | wxStaticBitmap * _arg0; | |
8584 | wxIcon * _arg1; | |
8585 | PyObject * _argo0 = 0; | |
8586 | PyObject * _argo1 = 0; | |
8587 | char *_kwnames[] = { "self","icon", NULL }; | |
8588 | ||
8589 | self = self; | |
8590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) | |
8591 | return NULL; | |
8592 | if (_argo0) { | |
8593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); | |
8596 | return NULL; | |
8597 | } | |
8598 | } | |
8599 | if (_argo1) { | |
8600 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8601 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); | |
8603 | return NULL; | |
8604 | } | |
8605 | } | |
8606 | { | |
0e2ff151 | 8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8608 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8609 | ||
0e2ff151 | 8610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8611 | if (PyErr_Occurred()) return NULL; |
8612 | } Py_INCREF(Py_None); | |
8613 | _resultobj = Py_None; | |
8614 | return _resultobj; | |
8615 | } | |
8616 | ||
8617 | static void *SwigwxRadioBoxTowxControl(void *ptr) { | |
8618 | wxRadioBox *src; | |
8619 | wxControl *dest; | |
8620 | src = (wxRadioBox *) ptr; | |
8621 | dest = (wxControl *) src; | |
8622 | return (void *) dest; | |
8623 | } | |
8624 | ||
8625 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8626 | wxRadioBox *src; | |
8627 | wxWindow *dest; | |
8628 | src = (wxRadioBox *) ptr; | |
8629 | dest = (wxWindow *) src; | |
8630 | return (void *) dest; | |
8631 | } | |
8632 | ||
8633 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8634 | wxRadioBox *src; | |
8635 | wxEvtHandler *dest; | |
8636 | src = (wxRadioBox *) ptr; | |
8637 | dest = (wxEvtHandler *) src; | |
8638 | return (void *) dest; | |
8639 | } | |
8640 | ||
8641 | static void *SwigwxRadioBoxTowxObject(void *ptr) { | |
8642 | wxRadioBox *src; | |
8643 | wxObject *dest; | |
8644 | src = (wxRadioBox *) ptr; | |
8645 | dest = (wxObject *) src; | |
8646 | return (void *) dest; | |
8647 | } | |
8648 | ||
8649 | #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)) | |
8650 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8651 | PyObject * _resultobj; | |
8652 | wxRadioBox * _result; | |
8653 | wxWindow * _arg0; | |
8654 | wxWindowID _arg1; | |
8655 | wxString * _arg2; | |
8656 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8657 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8658 | int _arg5 = (int ) 0; | |
8659 | wxString * _arg6 = (wxString *) NULL; | |
8660 | int _arg7 = (int ) 0; | |
8661 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
8662 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
8663 | char * _arg10 = (char *) "radioBox"; | |
8664 | PyObject * _argo0 = 0; | |
8665 | PyObject * _obj2 = 0; | |
8666 | wxPoint temp; | |
8667 | PyObject * _obj3 = 0; | |
8668 | wxSize temp0; | |
8669 | PyObject * _obj4 = 0; | |
8670 | PyObject * _obj6 = 0; | |
8671 | PyObject * _argo9 = 0; | |
8672 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8673 | char _ptemp[128]; | |
8674 | ||
8675 | self = self; | |
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) | |
8677 | return NULL; | |
8678 | if (_argo0) { | |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); | |
8682 | return NULL; | |
8683 | } | |
8684 | } | |
8685 | { | |
8686 | #if PYTHON_API_VERSION >= 1009 | |
8687 | char* tmpPtr; int tmpSize; | |
8688 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8689 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8690 | return NULL; | |
8691 | } | |
8692 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8693 | return NULL; | |
8694 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8695 | #else | |
8696 | if (!PyString_Check(_obj2)) { | |
8697 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8698 | return NULL; | |
8699 | } | |
8700 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8701 | #endif | |
8702 | } | |
8703 | if (_obj3) | |
8704 | { | |
8705 | _arg3 = &temp; | |
8706 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8707 | return NULL; | |
8708 | } | |
8709 | if (_obj4) | |
8710 | { | |
8711 | _arg4 = &temp0; | |
8712 | if (! wxSize_helper(_obj4, &_arg4)) | |
8713 | return NULL; | |
8714 | } | |
8715 | if (_obj6) | |
8716 | { | |
8717 | _arg6 = wxString_LIST_helper(_obj6); | |
8718 | if (_arg6 == NULL) { | |
8719 | return NULL; | |
8720 | } | |
8721 | } | |
8722 | if (_argo9) { | |
8723 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8724 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); | |
8726 | return NULL; | |
8727 | } | |
8728 | } | |
8729 | { | |
8730 | if (_obj6) { | |
8731 | _arg5 = PyList_Size(_obj6); | |
8732 | } | |
8733 | else { | |
8734 | _arg5 = 0; | |
8735 | } | |
8736 | } | |
8737 | { | |
0e2ff151 | 8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8739 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); |
8740 | ||
0e2ff151 | 8741 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8742 | if (PyErr_Occurred()) return NULL; |
8743 | } if (_result) { | |
8744 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8745 | _resultobj = Py_BuildValue("s",_ptemp); | |
8746 | } else { | |
8747 | Py_INCREF(Py_None); | |
8748 | _resultobj = Py_None; | |
8749 | } | |
8750 | { | |
8751 | if (_obj2) | |
8752 | delete _arg2; | |
8753 | } | |
8754 | { | |
8755 | delete [] _arg6; | |
8756 | } | |
8757 | return _resultobj; | |
8758 | } | |
8759 | ||
8760 | #define new_wxPreRadioBox() (new wxRadioBox()) | |
8761 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8762 | PyObject * _resultobj; | |
8763 | wxRadioBox * _result; | |
8764 | char *_kwnames[] = { NULL }; | |
8765 | char _ptemp[128]; | |
8766 | ||
8767 | self = self; | |
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8769 | return NULL; | |
8770 | { | |
0e2ff151 | 8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8772 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
8773 | ||
0e2ff151 | 8774 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8775 | if (PyErr_Occurred()) return NULL; |
8776 | } if (_result) { | |
8777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8778 | _resultobj = Py_BuildValue("s",_ptemp); | |
8779 | } else { | |
8780 | Py_INCREF(Py_None); | |
8781 | _resultobj = Py_None; | |
8782 | } | |
8783 | return _resultobj; | |
8784 | } | |
8785 | ||
8786 | #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)) | |
8787 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8788 | PyObject * _resultobj; | |
8789 | bool _result; | |
8790 | wxRadioBox * _arg0; | |
8791 | wxWindow * _arg1; | |
8792 | wxWindowID _arg2; | |
8793 | wxString * _arg3; | |
8794 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8795 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8796 | int _arg6 = (int ) 0; | |
8797 | wxString * _arg7 = (wxString *) NULL; | |
8798 | int _arg8 = (int ) 0; | |
8799 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8800 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8801 | char * _arg11 = (char *) "radioBox"; | |
8802 | PyObject * _argo0 = 0; | |
8803 | PyObject * _argo1 = 0; | |
8804 | PyObject * _obj3 = 0; | |
8805 | wxPoint temp; | |
8806 | PyObject * _obj4 = 0; | |
8807 | wxSize temp0; | |
8808 | PyObject * _obj5 = 0; | |
8809 | PyObject * _obj7 = 0; | |
8810 | PyObject * _argo10 = 0; | |
8811 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8812 | ||
8813 | self = self; | |
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8815 | return NULL; | |
8816 | if (_argo0) { | |
8817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8820 | return NULL; | |
8821 | } | |
8822 | } | |
8823 | if (_argo1) { | |
8824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8827 | return NULL; | |
8828 | } | |
8829 | } | |
8830 | { | |
8831 | #if PYTHON_API_VERSION >= 1009 | |
8832 | char* tmpPtr; int tmpSize; | |
8833 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8834 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8835 | return NULL; | |
8836 | } | |
8837 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8838 | return NULL; | |
8839 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8840 | #else | |
8841 | if (!PyString_Check(_obj3)) { | |
8842 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8843 | return NULL; | |
8844 | } | |
8845 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8846 | #endif | |
8847 | } | |
8848 | if (_obj4) | |
8849 | { | |
8850 | _arg4 = &temp; | |
8851 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8852 | return NULL; | |
8853 | } | |
8854 | if (_obj5) | |
8855 | { | |
8856 | _arg5 = &temp0; | |
8857 | if (! wxSize_helper(_obj5, &_arg5)) | |
8858 | return NULL; | |
8859 | } | |
8860 | if (_obj7) | |
8861 | { | |
8862 | _arg7 = wxString_LIST_helper(_obj7); | |
8863 | if (_arg7 == NULL) { | |
8864 | return NULL; | |
8865 | } | |
8866 | } | |
8867 | if (_argo10) { | |
8868 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8869 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8871 | return NULL; | |
8872 | } | |
8873 | } | |
8874 | { | |
8875 | if (_obj7) { | |
8876 | _arg6 = PyList_Size(_obj7); | |
8877 | } | |
8878 | else { | |
8879 | _arg6 = 0; | |
8880 | } | |
8881 | } | |
8882 | { | |
0e2ff151 | 8883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8884 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); |
8885 | ||
0e2ff151 | 8886 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8887 | if (PyErr_Occurred()) return NULL; |
8888 | } _resultobj = Py_BuildValue("i",_result); | |
8889 | { | |
8890 | if (_obj3) | |
8891 | delete _arg3; | |
8892 | } | |
8893 | { | |
8894 | delete [] _arg7; | |
8895 | } | |
8896 | return _resultobj; | |
8897 | } | |
8898 | ||
8899 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8900 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8901 | PyObject * _resultobj; | |
8902 | wxRadioBox * _arg0; | |
8903 | bool _arg1; | |
8904 | PyObject * _argo0 = 0; | |
8905 | int tempbool1; | |
8906 | char *_kwnames[] = { "self","enable", NULL }; | |
8907 | ||
8908 | self = self; | |
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) | |
8910 | return NULL; | |
8911 | if (_argo0) { | |
8912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); | |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
8918 | _arg1 = (bool ) tempbool1; | |
8919 | { | |
0e2ff151 | 8920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8921 | wxRadioBox_Enable(_arg0,_arg1); |
8922 | ||
0e2ff151 | 8923 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8924 | if (PyErr_Occurred()) return NULL; |
8925 | } Py_INCREF(Py_None); | |
8926 | _resultobj = Py_None; | |
8927 | return _resultobj; | |
8928 | } | |
8929 | ||
8930 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8931 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject * _resultobj; | |
8933 | wxRadioBox * _arg0; | |
8934 | int _arg1; | |
8935 | bool _arg2; | |
8936 | PyObject * _argo0 = 0; | |
8937 | int tempbool2; | |
8938 | char *_kwnames[] = { "self","n","enable", NULL }; | |
8939 | ||
8940 | self = self; | |
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8942 | return NULL; | |
8943 | if (_argo0) { | |
8944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); | |
8947 | return NULL; | |
8948 | } | |
8949 | } | |
8950 | _arg2 = (bool ) tempbool2; | |
8951 | { | |
0e2ff151 | 8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8953 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
8954 | ||
0e2ff151 | 8955 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8956 | if (PyErr_Occurred()) return NULL; |
8957 | } Py_INCREF(Py_None); | |
8958 | _resultobj = Py_None; | |
8959 | return _resultobj; | |
8960 | } | |
8961 | ||
8962 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
8963 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8964 | PyObject * _resultobj; | |
8965 | int _result; | |
8966 | wxRadioBox * _arg0; | |
8967 | wxString * _arg1; | |
8968 | PyObject * _argo0 = 0; | |
8969 | PyObject * _obj1 = 0; | |
8970 | char *_kwnames[] = { "self","string", NULL }; | |
8971 | ||
8972 | self = self; | |
8973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) | |
8974 | return NULL; | |
8975 | if (_argo0) { | |
8976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); | |
8979 | return NULL; | |
8980 | } | |
8981 | } | |
8982 | { | |
8983 | #if PYTHON_API_VERSION >= 1009 | |
8984 | char* tmpPtr; int tmpSize; | |
8985 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8986 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8987 | return NULL; | |
8988 | } | |
8989 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8990 | return NULL; | |
8991 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8992 | #else | |
8993 | if (!PyString_Check(_obj1)) { | |
8994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8995 | return NULL; | |
8996 | } | |
8997 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8998 | #endif | |
8999 | } | |
9000 | { | |
0e2ff151 | 9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9002 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
9003 | ||
0e2ff151 | 9004 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9005 | if (PyErr_Occurred()) return NULL; |
9006 | } _resultobj = Py_BuildValue("i",_result); | |
9007 | { | |
9008 | if (_obj1) | |
9009 | delete _arg1; | |
9010 | } | |
9011 | return _resultobj; | |
9012 | } | |
9013 | ||
9014 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
9015 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9016 | PyObject * _resultobj; | |
9017 | wxString * _result; | |
9018 | wxRadioBox * _arg0; | |
9019 | int _arg1; | |
9020 | PyObject * _argo0 = 0; | |
9021 | char *_kwnames[] = { "self","n", NULL }; | |
9022 | ||
9023 | self = self; | |
9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) | |
9025 | return NULL; | |
9026 | if (_argo0) { | |
9027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); | |
9030 | return NULL; | |
9031 | } | |
9032 | } | |
9033 | { | |
0e2ff151 | 9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9035 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
9036 | ||
0e2ff151 | 9037 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9038 | if (PyErr_Occurred()) return NULL; |
9039 | }{ | |
9040 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9041 | } | |
9042 | { | |
9043 | delete _result; | |
9044 | } | |
9045 | return _resultobj; | |
9046 | } | |
9047 | ||
9048 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
9049 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject * _resultobj; | |
9051 | wxRadioBox * _arg0; | |
9052 | int _arg1; | |
9053 | wxString * _arg2; | |
9054 | PyObject * _argo0 = 0; | |
9055 | PyObject * _obj2 = 0; | |
9056 | char *_kwnames[] = { "self","n","label", NULL }; | |
9057 | ||
9058 | self = self; | |
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9060 | return NULL; | |
9061 | if (_argo0) { | |
9062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); | |
9065 | return NULL; | |
9066 | } | |
9067 | } | |
9068 | { | |
9069 | #if PYTHON_API_VERSION >= 1009 | |
9070 | char* tmpPtr; int tmpSize; | |
9071 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9073 | return NULL; | |
9074 | } | |
9075 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9076 | return NULL; | |
9077 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9078 | #else | |
9079 | if (!PyString_Check(_obj2)) { | |
9080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9081 | return NULL; | |
9082 | } | |
9083 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9084 | #endif | |
9085 | } | |
9086 | { | |
0e2ff151 | 9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9088 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); |
9089 | ||
0e2ff151 | 9090 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9091 | if (PyErr_Occurred()) return NULL; |
9092 | } Py_INCREF(Py_None); | |
9093 | _resultobj = Py_None; | |
9094 | { | |
9095 | if (_obj2) | |
9096 | delete _arg2; | |
9097 | } | |
9098 | return _resultobj; | |
9099 | } | |
9100 | ||
9101 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
9102 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject * _resultobj; | |
9104 | int _result; | |
9105 | wxRadioBox * _arg0; | |
9106 | PyObject * _argo0 = 0; | |
9107 | char *_kwnames[] = { "self", NULL }; | |
9108 | ||
9109 | self = self; | |
9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) | |
9111 | return NULL; | |
9112 | if (_argo0) { | |
9113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); | |
9116 | return NULL; | |
9117 | } | |
9118 | } | |
9119 | { | |
0e2ff151 | 9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9121 | _result = (int )wxRadioBox_GetColumnCount(_arg0); |
9122 | ||
0e2ff151 | 9123 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9124 | if (PyErr_Occurred()) return NULL; |
9125 | } _resultobj = Py_BuildValue("i",_result); | |
9126 | return _resultobj; | |
9127 | } | |
9128 | ||
9129 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) | |
9130 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9131 | PyObject * _resultobj; | |
9132 | int _result; | |
9133 | wxRadioBox * _arg0; | |
9134 | PyObject * _argo0 = 0; | |
9135 | char *_kwnames[] = { "self", NULL }; | |
9136 | ||
9137 | self = self; | |
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) | |
9139 | return NULL; | |
9140 | if (_argo0) { | |
9141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); | |
9144 | return NULL; | |
9145 | } | |
9146 | } | |
9147 | { | |
0e2ff151 | 9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9149 | _result = (int )wxRadioBox_GetRowCount(_arg0); |
9150 | ||
0e2ff151 | 9151 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9152 | if (PyErr_Occurred()) return NULL; |
9153 | } _resultobj = Py_BuildValue("i",_result); | |
9154 | return _resultobj; | |
9155 | } | |
9156 | ||
9157 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
9158 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9159 | PyObject * _resultobj; | |
9160 | int _result; | |
9161 | wxRadioBox * _arg0; | |
9162 | PyObject * _argo0 = 0; | |
9163 | char *_kwnames[] = { "self", NULL }; | |
9164 | ||
9165 | self = self; | |
9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) | |
9167 | return NULL; | |
9168 | if (_argo0) { | |
9169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); | |
9172 | return NULL; | |
9173 | } | |
9174 | } | |
9175 | { | |
0e2ff151 | 9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9177 | _result = (int )wxRadioBox_GetSelection(_arg0); |
9178 | ||
0e2ff151 | 9179 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9180 | if (PyErr_Occurred()) return NULL; |
9181 | } _resultobj = Py_BuildValue("i",_result); | |
9182 | return _resultobj; | |
9183 | } | |
9184 | ||
9185 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
9186 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9187 | PyObject * _resultobj; | |
9188 | wxString * _result; | |
9189 | wxRadioBox * _arg0; | |
9190 | PyObject * _argo0 = 0; | |
9191 | char *_kwnames[] = { "self", NULL }; | |
9192 | ||
9193 | self = self; | |
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) | |
9195 | return NULL; | |
9196 | if (_argo0) { | |
9197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); | |
9200 | return NULL; | |
9201 | } | |
9202 | } | |
9203 | { | |
0e2ff151 | 9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9205 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
9206 | ||
0e2ff151 | 9207 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9208 | if (PyErr_Occurred()) return NULL; |
9209 | }{ | |
9210 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9211 | } | |
9212 | { | |
9213 | delete _result; | |
9214 | } | |
9215 | return _resultobj; | |
9216 | } | |
9217 | ||
9218 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
9219 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject * _resultobj; | |
9221 | int _result; | |
9222 | wxRadioBox * _arg0; | |
9223 | PyObject * _argo0 = 0; | |
9224 | char *_kwnames[] = { "self", NULL }; | |
9225 | ||
9226 | self = self; | |
9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) | |
9228 | return NULL; | |
9229 | if (_argo0) { | |
9230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); | |
9233 | return NULL; | |
9234 | } | |
9235 | } | |
9236 | { | |
0e2ff151 | 9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9238 | _result = (int )wxRadioBox_GetCount(_arg0); |
9239 | ||
0e2ff151 | 9240 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9241 | if (PyErr_Occurred()) return NULL; |
9242 | } _resultobj = Py_BuildValue("i",_result); | |
9243 | return _resultobj; | |
9244 | } | |
9245 | ||
9246 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
9247 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9248 | PyObject * _resultobj; | |
9249 | wxRadioBox * _arg0; | |
9250 | int _arg1; | |
9251 | PyObject * _argo0 = 0; | |
9252 | char *_kwnames[] = { "self","n", NULL }; | |
9253 | ||
9254 | self = self; | |
9255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
9256 | return NULL; | |
9257 | if (_argo0) { | |
9258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); | |
9261 | return NULL; | |
9262 | } | |
9263 | } | |
9264 | { | |
0e2ff151 | 9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9266 | wxRadioBox_SetSelection(_arg0,_arg1); |
9267 | ||
0e2ff151 | 9268 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9269 | if (PyErr_Occurred()) return NULL; |
9270 | } Py_INCREF(Py_None); | |
9271 | _resultobj = Py_None; | |
9272 | return _resultobj; | |
9273 | } | |
9274 | ||
9275 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
9276 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9277 | PyObject * _resultobj; | |
9278 | wxRadioBox * _arg0; | |
9279 | wxString * _arg1; | |
9280 | PyObject * _argo0 = 0; | |
9281 | PyObject * _obj1 = 0; | |
9282 | char *_kwnames[] = { "self","string", NULL }; | |
9283 | ||
9284 | self = self; | |
9285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
9286 | return NULL; | |
9287 | if (_argo0) { | |
9288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); | |
9291 | return NULL; | |
9292 | } | |
9293 | } | |
9294 | { | |
9295 | #if PYTHON_API_VERSION >= 1009 | |
9296 | char* tmpPtr; int tmpSize; | |
9297 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9298 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9299 | return NULL; | |
9300 | } | |
9301 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9302 | return NULL; | |
9303 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9304 | #else | |
9305 | if (!PyString_Check(_obj1)) { | |
9306 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9307 | return NULL; | |
9308 | } | |
9309 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9310 | #endif | |
9311 | } | |
9312 | { | |
0e2ff151 | 9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9314 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
9315 | ||
0e2ff151 | 9316 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9317 | if (PyErr_Occurred()) return NULL; |
9318 | } Py_INCREF(Py_None); | |
9319 | _resultobj = Py_None; | |
9320 | { | |
9321 | if (_obj1) | |
9322 | delete _arg1; | |
9323 | } | |
9324 | return _resultobj; | |
9325 | } | |
9326 | ||
9327 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
9328 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject * _resultobj; | |
9330 | wxRadioBox * _arg0; | |
9331 | bool _arg1; | |
9332 | PyObject * _argo0 = 0; | |
9333 | int tempbool1; | |
9334 | char *_kwnames[] = { "self","show", NULL }; | |
9335 | ||
9336 | self = self; | |
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) | |
9338 | return NULL; | |
9339 | if (_argo0) { | |
9340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); | |
9343 | return NULL; | |
9344 | } | |
9345 | } | |
9346 | _arg1 = (bool ) tempbool1; | |
9347 | { | |
0e2ff151 | 9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9349 | wxRadioBox_Show(_arg0,_arg1); |
9350 | ||
0e2ff151 | 9351 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9352 | if (PyErr_Occurred()) return NULL; |
9353 | } Py_INCREF(Py_None); | |
9354 | _resultobj = Py_None; | |
9355 | return _resultobj; | |
9356 | } | |
9357 | ||
9358 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
9359 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject * _resultobj; | |
9361 | wxRadioBox * _arg0; | |
9362 | int _arg1; | |
9363 | bool _arg2; | |
9364 | PyObject * _argo0 = 0; | |
9365 | int tempbool2; | |
9366 | char *_kwnames[] = { "self","item","show", NULL }; | |
9367 | ||
9368 | self = self; | |
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9370 | return NULL; | |
9371 | if (_argo0) { | |
9372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); | |
9375 | return NULL; | |
9376 | } | |
9377 | } | |
9378 | _arg2 = (bool ) tempbool2; | |
9379 | { | |
0e2ff151 | 9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9381 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
9382 | ||
0e2ff151 | 9383 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9384 | if (PyErr_Occurred()) return NULL; |
9385 | } Py_INCREF(Py_None); | |
9386 | _resultobj = Py_None; | |
9387 | return _resultobj; | |
9388 | } | |
9389 | ||
9390 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9391 | wxRadioButton *src; | |
9392 | wxControl *dest; | |
9393 | src = (wxRadioButton *) ptr; | |
9394 | dest = (wxControl *) src; | |
9395 | return (void *) dest; | |
9396 | } | |
9397 | ||
9398 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9399 | wxRadioButton *src; | |
9400 | wxWindow *dest; | |
9401 | src = (wxRadioButton *) ptr; | |
9402 | dest = (wxWindow *) src; | |
9403 | return (void *) dest; | |
9404 | } | |
9405 | ||
9406 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9407 | wxRadioButton *src; | |
9408 | wxEvtHandler *dest; | |
9409 | src = (wxRadioButton *) ptr; | |
9410 | dest = (wxEvtHandler *) src; | |
9411 | return (void *) dest; | |
9412 | } | |
9413 | ||
9414 | static void *SwigwxRadioButtonTowxObject(void *ptr) { | |
9415 | wxRadioButton *src; | |
9416 | wxObject *dest; | |
9417 | src = (wxRadioButton *) ptr; | |
9418 | dest = (wxObject *) src; | |
9419 | return (void *) dest; | |
9420 | } | |
9421 | ||
9422 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9423 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9424 | PyObject * _resultobj; | |
9425 | wxRadioButton * _result; | |
9426 | wxWindow * _arg0; | |
9427 | wxWindowID _arg1; | |
9428 | wxString * _arg2; | |
9429 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9430 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9431 | long _arg5 = (long ) 0; | |
9432 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9433 | char * _arg7 = (char *) "radioButton"; | |
9434 | PyObject * _argo0 = 0; | |
9435 | PyObject * _obj2 = 0; | |
9436 | wxPoint temp; | |
9437 | PyObject * _obj3 = 0; | |
9438 | wxSize temp0; | |
9439 | PyObject * _obj4 = 0; | |
9440 | PyObject * _argo6 = 0; | |
9441 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
9442 | char _ptemp[128]; | |
9443 | ||
9444 | self = self; | |
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
9446 | return NULL; | |
9447 | if (_argo0) { | |
9448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); | |
9451 | return NULL; | |
9452 | } | |
9453 | } | |
9454 | { | |
9455 | #if PYTHON_API_VERSION >= 1009 | |
9456 | char* tmpPtr; int tmpSize; | |
9457 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9459 | return NULL; | |
9460 | } | |
9461 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9462 | return NULL; | |
9463 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9464 | #else | |
9465 | if (!PyString_Check(_obj2)) { | |
9466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9467 | return NULL; | |
9468 | } | |
9469 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9470 | #endif | |
9471 | } | |
9472 | if (_obj3) | |
9473 | { | |
9474 | _arg3 = &temp; | |
9475 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9476 | return NULL; | |
9477 | } | |
9478 | if (_obj4) | |
9479 | { | |
9480 | _arg4 = &temp0; | |
9481 | if (! wxSize_helper(_obj4, &_arg4)) | |
9482 | return NULL; | |
9483 | } | |
9484 | if (_argo6) { | |
9485 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9488 | return NULL; | |
9489 | } | |
9490 | } | |
9491 | { | |
0e2ff151 | 9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9493 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
9494 | ||
0e2ff151 | 9495 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9496 | if (PyErr_Occurred()) return NULL; |
9497 | } if (_result) { | |
9498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9499 | _resultobj = Py_BuildValue("s",_ptemp); | |
9500 | } else { | |
9501 | Py_INCREF(Py_None); | |
9502 | _resultobj = Py_None; | |
9503 | } | |
9504 | { | |
9505 | if (_obj2) | |
9506 | delete _arg2; | |
9507 | } | |
9508 | return _resultobj; | |
9509 | } | |
9510 | ||
9511 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9512 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9513 | PyObject * _resultobj; | |
9514 | wxRadioButton * _result; | |
9515 | char *_kwnames[] = { NULL }; | |
9516 | char _ptemp[128]; | |
9517 | ||
9518 | self = self; | |
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9520 | return NULL; | |
9521 | { | |
0e2ff151 | 9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9523 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
9524 | ||
0e2ff151 | 9525 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9526 | if (PyErr_Occurred()) return NULL; |
9527 | } if (_result) { | |
9528 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9529 | _resultobj = Py_BuildValue("s",_ptemp); | |
9530 | } else { | |
9531 | Py_INCREF(Py_None); | |
9532 | _resultobj = Py_None; | |
9533 | } | |
9534 | return _resultobj; | |
9535 | } | |
9536 | ||
9537 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9538 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject * _resultobj; | |
9540 | bool _result; | |
9541 | wxRadioButton * _arg0; | |
9542 | wxWindow * _arg1; | |
9543 | wxWindowID _arg2; | |
9544 | wxString * _arg3; | |
9545 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9546 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9547 | long _arg6 = (long ) 0; | |
9548 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9549 | char * _arg8 = (char *) "radioButton"; | |
9550 | PyObject * _argo0 = 0; | |
9551 | PyObject * _argo1 = 0; | |
9552 | PyObject * _obj3 = 0; | |
9553 | wxPoint temp; | |
9554 | PyObject * _obj4 = 0; | |
9555 | wxSize temp0; | |
9556 | PyObject * _obj5 = 0; | |
9557 | PyObject * _argo7 = 0; | |
9558 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9559 | ||
9560 | self = self; | |
9561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9562 | return NULL; | |
9563 | if (_argo0) { | |
9564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9567 | return NULL; | |
9568 | } | |
9569 | } | |
9570 | if (_argo1) { | |
9571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9574 | return NULL; | |
9575 | } | |
9576 | } | |
9577 | { | |
9578 | #if PYTHON_API_VERSION >= 1009 | |
9579 | char* tmpPtr; int tmpSize; | |
9580 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
9581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9582 | return NULL; | |
9583 | } | |
9584 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9585 | return NULL; | |
9586 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9587 | #else | |
9588 | if (!PyString_Check(_obj3)) { | |
9589 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9590 | return NULL; | |
9591 | } | |
9592 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
9593 | #endif | |
9594 | } | |
9595 | if (_obj4) | |
9596 | { | |
9597 | _arg4 = &temp; | |
9598 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9599 | return NULL; | |
9600 | } | |
9601 | if (_obj5) | |
9602 | { | |
9603 | _arg5 = &temp0; | |
9604 | if (! wxSize_helper(_obj5, &_arg5)) | |
9605 | return NULL; | |
9606 | } | |
9607 | if (_argo7) { | |
9608 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9609 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
9611 | return NULL; | |
9612 | } | |
9613 | } | |
9614 | { | |
0e2ff151 | 9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9616 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); |
9617 | ||
0e2ff151 | 9618 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9619 | if (PyErr_Occurred()) return NULL; |
9620 | } _resultobj = Py_BuildValue("i",_result); | |
9621 | { | |
9622 | if (_obj3) | |
9623 | delete _arg3; | |
9624 | } | |
9625 | return _resultobj; | |
9626 | } | |
9627 | ||
9628 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
9629 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject * _resultobj; | |
9631 | bool _result; | |
9632 | wxRadioButton * _arg0; | |
9633 | PyObject * _argo0 = 0; | |
9634 | char *_kwnames[] = { "self", NULL }; | |
9635 | ||
9636 | self = self; | |
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) | |
9638 | return NULL; | |
9639 | if (_argo0) { | |
9640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); | |
9643 | return NULL; | |
9644 | } | |
9645 | } | |
9646 | { | |
0e2ff151 | 9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9648 | _result = (bool )wxRadioButton_GetValue(_arg0); |
9649 | ||
0e2ff151 | 9650 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9651 | if (PyErr_Occurred()) return NULL; |
9652 | } _resultobj = Py_BuildValue("i",_result); | |
9653 | return _resultobj; | |
9654 | } | |
9655 | ||
9656 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
9657 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject * _resultobj; | |
9659 | wxRadioButton * _arg0; | |
9660 | bool _arg1; | |
9661 | PyObject * _argo0 = 0; | |
9662 | int tempbool1; | |
9663 | char *_kwnames[] = { "self","value", NULL }; | |
9664 | ||
9665 | self = self; | |
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
9667 | return NULL; | |
9668 | if (_argo0) { | |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); | |
9672 | return NULL; | |
9673 | } | |
9674 | } | |
9675 | _arg1 = (bool ) tempbool1; | |
9676 | { | |
0e2ff151 | 9677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9678 | wxRadioButton_SetValue(_arg0,_arg1); |
9679 | ||
0e2ff151 | 9680 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9681 | if (PyErr_Occurred()) return NULL; |
9682 | } Py_INCREF(Py_None); | |
9683 | _resultobj = Py_None; | |
9684 | return _resultobj; | |
9685 | } | |
9686 | ||
9687 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9688 | wxSlider *src; | |
9689 | wxControl *dest; | |
9690 | src = (wxSlider *) ptr; | |
9691 | dest = (wxControl *) src; | |
9692 | return (void *) dest; | |
9693 | } | |
9694 | ||
9695 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9696 | wxSlider *src; | |
9697 | wxWindow *dest; | |
9698 | src = (wxSlider *) ptr; | |
9699 | dest = (wxWindow *) src; | |
9700 | return (void *) dest; | |
9701 | } | |
9702 | ||
9703 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9704 | wxSlider *src; | |
9705 | wxEvtHandler *dest; | |
9706 | src = (wxSlider *) ptr; | |
9707 | dest = (wxEvtHandler *) src; | |
9708 | return (void *) dest; | |
9709 | } | |
9710 | ||
9711 | static void *SwigwxSliderTowxObject(void *ptr) { | |
9712 | wxSlider *src; | |
9713 | wxObject *dest; | |
9714 | src = (wxSlider *) ptr; | |
9715 | dest = (wxObject *) src; | |
9716 | return (void *) dest; | |
9717 | } | |
9718 | ||
9719 | #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)) | |
9720 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9721 | PyObject * _resultobj; | |
9722 | wxSlider * _result; | |
9723 | wxWindow * _arg0; | |
9724 | wxWindowID _arg1; | |
9725 | int _arg2; | |
9726 | int _arg3; | |
9727 | int _arg4; | |
9728 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
9729 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
9730 | long _arg7 = (long ) wxSL_HORIZONTAL; | |
9731 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9732 | char * _arg9 = (char *) "slider"; | |
9733 | PyObject * _argo0 = 0; | |
9734 | wxPoint temp; | |
9735 | PyObject * _obj5 = 0; | |
9736 | wxSize temp0; | |
9737 | PyObject * _obj6 = 0; | |
9738 | PyObject * _argo8 = 0; | |
9739 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9740 | char _ptemp[128]; | |
9741 | ||
9742 | self = self; | |
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) | |
9744 | return NULL; | |
9745 | if (_argo0) { | |
9746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); | |
9749 | return NULL; | |
9750 | } | |
9751 | } | |
9752 | if (_obj5) | |
9753 | { | |
9754 | _arg5 = &temp; | |
9755 | if (! wxPoint_helper(_obj5, &_arg5)) | |
9756 | return NULL; | |
9757 | } | |
9758 | if (_obj6) | |
9759 | { | |
9760 | _arg6 = &temp0; | |
9761 | if (! wxSize_helper(_obj6, &_arg6)) | |
9762 | return NULL; | |
9763 | } | |
9764 | if (_argo8) { | |
9765 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9766 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
9767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); | |
9768 | return NULL; | |
9769 | } | |
9770 | } | |
9771 | { | |
0e2ff151 | 9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9773 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); |
9774 | ||
0e2ff151 | 9775 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9776 | if (PyErr_Occurred()) return NULL; |
9777 | } if (_result) { | |
9778 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9779 | _resultobj = Py_BuildValue("s",_ptemp); | |
9780 | } else { | |
9781 | Py_INCREF(Py_None); | |
9782 | _resultobj = Py_None; | |
9783 | } | |
9784 | return _resultobj; | |
9785 | } | |
9786 | ||
9787 | #define new_wxPreSlider() (new wxSlider()) | |
9788 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9789 | PyObject * _resultobj; | |
9790 | wxSlider * _result; | |
9791 | char *_kwnames[] = { NULL }; | |
9792 | char _ptemp[128]; | |
9793 | ||
9794 | self = self; | |
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9796 | return NULL; | |
9797 | { | |
0e2ff151 | 9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9799 | _result = (wxSlider *)new_wxPreSlider(); |
9800 | ||
0e2ff151 | 9801 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9802 | if (PyErr_Occurred()) return NULL; |
9803 | } if (_result) { | |
9804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9805 | _resultobj = Py_BuildValue("s",_ptemp); | |
9806 | } else { | |
9807 | Py_INCREF(Py_None); | |
9808 | _resultobj = Py_None; | |
9809 | } | |
9810 | return _resultobj; | |
9811 | } | |
9812 | ||
9813 | #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)) | |
9814 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9815 | PyObject * _resultobj; | |
9816 | bool _result; | |
9817 | wxSlider * _arg0; | |
9818 | wxWindow * _arg1; | |
9819 | wxWindowID _arg2; | |
9820 | int _arg3; | |
9821 | int _arg4; | |
9822 | int _arg5; | |
9823 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9824 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9825 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9826 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9827 | char * _arg10 = (char *) "slider"; | |
9828 | PyObject * _argo0 = 0; | |
9829 | PyObject * _argo1 = 0; | |
9830 | wxPoint temp; | |
9831 | PyObject * _obj6 = 0; | |
9832 | wxSize temp0; | |
9833 | PyObject * _obj7 = 0; | |
9834 | PyObject * _argo9 = 0; | |
9835 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9836 | ||
9837 | self = self; | |
9838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9839 | return NULL; | |
9840 | if (_argo0) { | |
9841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9844 | return NULL; | |
9845 | } | |
9846 | } | |
9847 | if (_argo1) { | |
9848 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9849 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9851 | return NULL; | |
9852 | } | |
9853 | } | |
9854 | if (_obj6) | |
9855 | { | |
9856 | _arg6 = &temp; | |
9857 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9858 | return NULL; | |
9859 | } | |
9860 | if (_obj7) | |
9861 | { | |
9862 | _arg7 = &temp0; | |
9863 | if (! wxSize_helper(_obj7, &_arg7)) | |
9864 | return NULL; | |
9865 | } | |
9866 | if (_argo9) { | |
9867 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9868 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9870 | return NULL; | |
9871 | } | |
9872 | } | |
9873 | { | |
0e2ff151 | 9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9875 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); |
9876 | ||
0e2ff151 | 9877 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9878 | if (PyErr_Occurred()) return NULL; |
9879 | } _resultobj = Py_BuildValue("i",_result); | |
9880 | return _resultobj; | |
9881 | } | |
9882 | ||
9883 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
9884 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject * _resultobj; | |
9886 | wxSlider * _arg0; | |
9887 | PyObject * _argo0 = 0; | |
9888 | char *_kwnames[] = { "self", NULL }; | |
9889 | ||
9890 | self = self; | |
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) | |
9892 | return NULL; | |
9893 | if (_argo0) { | |
9894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); | |
9897 | return NULL; | |
9898 | } | |
9899 | } | |
9900 | { | |
0e2ff151 | 9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9902 | wxSlider_ClearSel(_arg0); |
9903 | ||
0e2ff151 | 9904 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9905 | if (PyErr_Occurred()) return NULL; |
9906 | } Py_INCREF(Py_None); | |
9907 | _resultobj = Py_None; | |
9908 | return _resultobj; | |
9909 | } | |
9910 | ||
9911 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
9912 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9913 | PyObject * _resultobj; | |
9914 | wxSlider * _arg0; | |
9915 | PyObject * _argo0 = 0; | |
9916 | char *_kwnames[] = { "self", NULL }; | |
9917 | ||
9918 | self = self; | |
9919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) | |
9920 | return NULL; | |
9921 | if (_argo0) { | |
9922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); | |
9925 | return NULL; | |
9926 | } | |
9927 | } | |
9928 | { | |
0e2ff151 | 9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9930 | wxSlider_ClearTicks(_arg0); |
9931 | ||
0e2ff151 | 9932 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9933 | if (PyErr_Occurred()) return NULL; |
9934 | } Py_INCREF(Py_None); | |
9935 | _resultobj = Py_None; | |
9936 | return _resultobj; | |
9937 | } | |
9938 | ||
9939 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
9940 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9941 | PyObject * _resultobj; | |
9942 | int _result; | |
9943 | wxSlider * _arg0; | |
9944 | PyObject * _argo0 = 0; | |
9945 | char *_kwnames[] = { "self", NULL }; | |
9946 | ||
9947 | self = self; | |
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) | |
9949 | return NULL; | |
9950 | if (_argo0) { | |
9951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); | |
9954 | return NULL; | |
9955 | } | |
9956 | } | |
9957 | { | |
0e2ff151 | 9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9959 | _result = (int )wxSlider_GetLineSize(_arg0); |
9960 | ||
0e2ff151 | 9961 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9962 | if (PyErr_Occurred()) return NULL; |
9963 | } _resultobj = Py_BuildValue("i",_result); | |
9964 | return _resultobj; | |
9965 | } | |
9966 | ||
9967 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
9968 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject * _resultobj; | |
9970 | int _result; | |
9971 | wxSlider * _arg0; | |
9972 | PyObject * _argo0 = 0; | |
9973 | char *_kwnames[] = { "self", NULL }; | |
9974 | ||
9975 | self = self; | |
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) | |
9977 | return NULL; | |
9978 | if (_argo0) { | |
9979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); | |
9982 | return NULL; | |
9983 | } | |
9984 | } | |
9985 | { | |
0e2ff151 | 9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9987 | _result = (int )wxSlider_GetMax(_arg0); |
9988 | ||
0e2ff151 | 9989 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9990 | if (PyErr_Occurred()) return NULL; |
9991 | } _resultobj = Py_BuildValue("i",_result); | |
9992 | return _resultobj; | |
9993 | } | |
9994 | ||
9995 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
9996 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject * _resultobj; | |
9998 | int _result; | |
9999 | wxSlider * _arg0; | |
10000 | PyObject * _argo0 = 0; | |
10001 | char *_kwnames[] = { "self", NULL }; | |
10002 | ||
10003 | self = self; | |
10004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) | |
10005 | return NULL; | |
10006 | if (_argo0) { | |
10007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); | |
10010 | return NULL; | |
10011 | } | |
10012 | } | |
10013 | { | |
0e2ff151 | 10014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10015 | _result = (int )wxSlider_GetMin(_arg0); |
10016 | ||
0e2ff151 | 10017 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10018 | if (PyErr_Occurred()) return NULL; |
10019 | } _resultobj = Py_BuildValue("i",_result); | |
10020 | return _resultobj; | |
10021 | } | |
10022 | ||
10023 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
10024 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10025 | PyObject * _resultobj; | |
10026 | int _result; | |
10027 | wxSlider * _arg0; | |
10028 | PyObject * _argo0 = 0; | |
10029 | char *_kwnames[] = { "self", NULL }; | |
10030 | ||
10031 | self = self; | |
10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) | |
10033 | return NULL; | |
10034 | if (_argo0) { | |
10035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); | |
10038 | return NULL; | |
10039 | } | |
10040 | } | |
10041 | { | |
0e2ff151 | 10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10043 | _result = (int )wxSlider_GetPageSize(_arg0); |
10044 | ||
0e2ff151 | 10045 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10046 | if (PyErr_Occurred()) return NULL; |
10047 | } _resultobj = Py_BuildValue("i",_result); | |
10048 | return _resultobj; | |
10049 | } | |
10050 | ||
10051 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
10052 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10053 | PyObject * _resultobj; | |
10054 | int _result; | |
10055 | wxSlider * _arg0; | |
10056 | PyObject * _argo0 = 0; | |
10057 | char *_kwnames[] = { "self", NULL }; | |
10058 | ||
10059 | self = self; | |
10060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) | |
10061 | return NULL; | |
10062 | if (_argo0) { | |
10063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); | |
10066 | return NULL; | |
10067 | } | |
10068 | } | |
10069 | { | |
0e2ff151 | 10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10071 | _result = (int )wxSlider_GetSelEnd(_arg0); |
10072 | ||
0e2ff151 | 10073 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10074 | if (PyErr_Occurred()) return NULL; |
10075 | } _resultobj = Py_BuildValue("i",_result); | |
10076 | return _resultobj; | |
10077 | } | |
10078 | ||
10079 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
10080 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10081 | PyObject * _resultobj; | |
10082 | int _result; | |
10083 | wxSlider * _arg0; | |
10084 | PyObject * _argo0 = 0; | |
10085 | char *_kwnames[] = { "self", NULL }; | |
10086 | ||
10087 | self = self; | |
10088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) | |
10089 | return NULL; | |
10090 | if (_argo0) { | |
10091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); | |
10094 | return NULL; | |
10095 | } | |
10096 | } | |
10097 | { | |
0e2ff151 | 10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10099 | _result = (int )wxSlider_GetSelStart(_arg0); |
10100 | ||
0e2ff151 | 10101 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10102 | if (PyErr_Occurred()) return NULL; |
10103 | } _resultobj = Py_BuildValue("i",_result); | |
10104 | return _resultobj; | |
10105 | } | |
10106 | ||
10107 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
10108 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject * _resultobj; | |
10110 | int _result; | |
10111 | wxSlider * _arg0; | |
10112 | PyObject * _argo0 = 0; | |
10113 | char *_kwnames[] = { "self", NULL }; | |
10114 | ||
10115 | self = self; | |
10116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) | |
10117 | return NULL; | |
10118 | if (_argo0) { | |
10119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); | |
10122 | return NULL; | |
10123 | } | |
10124 | } | |
10125 | { | |
0e2ff151 | 10126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10127 | _result = (int )wxSlider_GetThumbLength(_arg0); |
10128 | ||
0e2ff151 | 10129 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10130 | if (PyErr_Occurred()) return NULL; |
10131 | } _resultobj = Py_BuildValue("i",_result); | |
10132 | return _resultobj; | |
10133 | } | |
10134 | ||
10135 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
10136 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject * _resultobj; | |
10138 | int _result; | |
10139 | wxSlider * _arg0; | |
10140 | PyObject * _argo0 = 0; | |
10141 | char *_kwnames[] = { "self", NULL }; | |
10142 | ||
10143 | self = self; | |
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) | |
10145 | return NULL; | |
10146 | if (_argo0) { | |
10147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); | |
10150 | return NULL; | |
10151 | } | |
10152 | } | |
10153 | { | |
0e2ff151 | 10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10155 | _result = (int )wxSlider_GetTickFreq(_arg0); |
10156 | ||
0e2ff151 | 10157 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10158 | if (PyErr_Occurred()) return NULL; |
10159 | } _resultobj = Py_BuildValue("i",_result); | |
10160 | return _resultobj; | |
10161 | } | |
10162 | ||
10163 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
10164 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject * _resultobj; | |
10166 | int _result; | |
10167 | wxSlider * _arg0; | |
10168 | PyObject * _argo0 = 0; | |
10169 | char *_kwnames[] = { "self", NULL }; | |
10170 | ||
10171 | self = self; | |
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) | |
10173 | return NULL; | |
10174 | if (_argo0) { | |
10175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); | |
10178 | return NULL; | |
10179 | } | |
10180 | } | |
10181 | { | |
0e2ff151 | 10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10183 | _result = (int )wxSlider_GetValue(_arg0); |
10184 | ||
0e2ff151 | 10185 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10186 | if (PyErr_Occurred()) return NULL; |
10187 | } _resultobj = Py_BuildValue("i",_result); | |
10188 | return _resultobj; | |
10189 | } | |
10190 | ||
10191 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10192 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10193 | PyObject * _resultobj; | |
10194 | wxSlider * _arg0; | |
10195 | int _arg1; | |
10196 | int _arg2; | |
10197 | PyObject * _argo0 = 0; | |
10198 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; | |
10199 | ||
10200 | self = self; | |
10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10202 | return NULL; | |
10203 | if (_argo0) { | |
10204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); | |
10207 | return NULL; | |
10208 | } | |
10209 | } | |
10210 | { | |
0e2ff151 | 10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10212 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
10213 | ||
0e2ff151 | 10214 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10215 | if (PyErr_Occurred()) return NULL; |
10216 | } Py_INCREF(Py_None); | |
10217 | _resultobj = Py_None; | |
10218 | return _resultobj; | |
10219 | } | |
10220 | ||
10221 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
10222 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10223 | PyObject * _resultobj; | |
10224 | wxSlider * _arg0; | |
10225 | int _arg1; | |
10226 | int _arg2; | |
10227 | PyObject * _argo0 = 0; | |
10228 | char *_kwnames[] = { "self","n","pos", NULL }; | |
10229 | ||
10230 | self = self; | |
10231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10232 | return NULL; | |
10233 | if (_argo0) { | |
10234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); | |
10237 | return NULL; | |
10238 | } | |
10239 | } | |
10240 | { | |
0e2ff151 | 10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10242 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
10243 | ||
0e2ff151 | 10244 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10245 | if (PyErr_Occurred()) return NULL; |
10246 | } Py_INCREF(Py_None); | |
10247 | _resultobj = Py_None; | |
10248 | return _resultobj; | |
10249 | } | |
10250 | ||
10251 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
10252 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10253 | PyObject * _resultobj; | |
10254 | wxSlider * _arg0; | |
10255 | int _arg1; | |
10256 | PyObject * _argo0 = 0; | |
10257 | char *_kwnames[] = { "self","lineSize", NULL }; | |
10258 | ||
10259 | self = self; | |
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) | |
10261 | return NULL; | |
10262 | if (_argo0) { | |
10263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); | |
10266 | return NULL; | |
10267 | } | |
10268 | } | |
10269 | { | |
0e2ff151 | 10270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10271 | wxSlider_SetLineSize(_arg0,_arg1); |
10272 | ||
0e2ff151 | 10273 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10274 | if (PyErr_Occurred()) return NULL; |
10275 | } Py_INCREF(Py_None); | |
10276 | _resultobj = Py_None; | |
10277 | return _resultobj; | |
10278 | } | |
10279 | ||
10280 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
10281 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject * _resultobj; | |
10283 | wxSlider * _arg0; | |
10284 | int _arg1; | |
10285 | PyObject * _argo0 = 0; | |
10286 | char *_kwnames[] = { "self","pageSize", NULL }; | |
10287 | ||
10288 | self = self; | |
10289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) | |
10290 | return NULL; | |
10291 | if (_argo0) { | |
10292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); | |
10295 | return NULL; | |
10296 | } | |
10297 | } | |
10298 | { | |
0e2ff151 | 10299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10300 | wxSlider_SetPageSize(_arg0,_arg1); |
10301 | ||
0e2ff151 | 10302 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10303 | if (PyErr_Occurred()) return NULL; |
10304 | } Py_INCREF(Py_None); | |
10305 | _resultobj = Py_None; | |
10306 | return _resultobj; | |
10307 | } | |
10308 | ||
10309 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
10310 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject * _resultobj; | |
10312 | wxSlider * _arg0; | |
10313 | int _arg1; | |
10314 | int _arg2; | |
10315 | PyObject * _argo0 = 0; | |
10316 | char *_kwnames[] = { "self","startPos","endPos", NULL }; | |
10317 | ||
10318 | self = self; | |
10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10320 | return NULL; | |
10321 | if (_argo0) { | |
10322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); | |
10325 | return NULL; | |
10326 | } | |
10327 | } | |
10328 | { | |
0e2ff151 | 10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10330 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
10331 | ||
0e2ff151 | 10332 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10333 | if (PyErr_Occurred()) return NULL; |
10334 | } Py_INCREF(Py_None); | |
10335 | _resultobj = Py_None; | |
10336 | return _resultobj; | |
10337 | } | |
10338 | ||
10339 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
10340 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject * _resultobj; | |
10342 | wxSlider * _arg0; | |
10343 | int _arg1; | |
10344 | PyObject * _argo0 = 0; | |
10345 | char *_kwnames[] = { "self","len", NULL }; | |
10346 | ||
10347 | self = self; | |
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) | |
10349 | return NULL; | |
10350 | if (_argo0) { | |
10351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); | |
10354 | return NULL; | |
10355 | } | |
10356 | } | |
10357 | { | |
0e2ff151 | 10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10359 | wxSlider_SetThumbLength(_arg0,_arg1); |
10360 | ||
0e2ff151 | 10361 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10362 | if (PyErr_Occurred()) return NULL; |
10363 | } Py_INCREF(Py_None); | |
10364 | _resultobj = Py_None; | |
10365 | return _resultobj; | |
10366 | } | |
10367 | ||
10368 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
10369 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject * _resultobj; | |
10371 | wxSlider * _arg0; | |
10372 | int _arg1; | |
10373 | PyObject * _argo0 = 0; | |
10374 | char *_kwnames[] = { "self","tickPos", NULL }; | |
10375 | ||
10376 | self = self; | |
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) | |
10378 | return NULL; | |
10379 | if (_argo0) { | |
10380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); | |
10383 | return NULL; | |
10384 | } | |
10385 | } | |
10386 | { | |
0e2ff151 | 10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10388 | wxSlider_SetTick(_arg0,_arg1); |
10389 | ||
0e2ff151 | 10390 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10391 | if (PyErr_Occurred()) return NULL; |
10392 | } Py_INCREF(Py_None); | |
10393 | _resultobj = Py_None; | |
10394 | return _resultobj; | |
10395 | } | |
10396 | ||
10397 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10398 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject * _resultobj; | |
10400 | wxSlider * _arg0; | |
10401 | int _arg1; | |
10402 | PyObject * _argo0 = 0; | |
10403 | char *_kwnames[] = { "self","value", NULL }; | |
10404 | ||
10405 | self = self; | |
10406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) | |
10407 | return NULL; | |
10408 | if (_argo0) { | |
10409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); | |
10412 | return NULL; | |
10413 | } | |
10414 | } | |
10415 | { | |
0e2ff151 | 10416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10417 | wxSlider_SetValue(_arg0,_arg1); |
10418 | ||
0e2ff151 | 10419 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10420 | if (PyErr_Occurred()) return NULL; |
10421 | } Py_INCREF(Py_None); | |
10422 | _resultobj = Py_None; | |
10423 | return _resultobj; | |
10424 | } | |
10425 | ||
10426 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { | |
10427 | wxSpinCtrl *src; | |
10428 | wxSpinButton *dest; | |
10429 | src = (wxSpinCtrl *) ptr; | |
10430 | dest = (wxSpinButton *) src; | |
10431 | return (void *) dest; | |
10432 | } | |
10433 | ||
10434 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10435 | wxSpinCtrl *src; | |
10436 | wxControl *dest; | |
10437 | src = (wxSpinCtrl *) ptr; | |
10438 | dest = (wxControl *) src; | |
10439 | return (void *) dest; | |
10440 | } | |
10441 | ||
10442 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10443 | wxSpinCtrl *src; | |
10444 | wxWindow *dest; | |
10445 | src = (wxSpinCtrl *) ptr; | |
10446 | dest = (wxWindow *) src; | |
10447 | return (void *) dest; | |
10448 | } | |
10449 | ||
10450 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10451 | wxSpinCtrl *src; | |
10452 | wxEvtHandler *dest; | |
10453 | src = (wxSpinCtrl *) ptr; | |
10454 | dest = (wxEvtHandler *) src; | |
10455 | return (void *) dest; | |
10456 | } | |
10457 | ||
10458 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { | |
10459 | wxSpinCtrl *src; | |
10460 | wxObject *dest; | |
10461 | src = (wxSpinCtrl *) ptr; | |
10462 | dest = (wxObject *) src; | |
10463 | return (void *) dest; | |
10464 | } | |
10465 | ||
10466 | #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)) | |
10467 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10468 | PyObject * _resultobj; | |
10469 | wxSpinCtrl * _result; | |
10470 | wxWindow * _arg0; | |
10471 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10472 | char * _arg2 = (char *) ""; | |
10473 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10474 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10475 | long _arg5 = (long ) wxSP_ARROW_KEYS; | |
10476 | int _arg6 = (int ) 0; | |
10477 | int _arg7 = (int ) 100; | |
10478 | int _arg8 = (int ) 0; | |
10479 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10480 | PyObject * _argo0 = 0; | |
10481 | wxPoint temp; | |
10482 | PyObject * _obj3 = 0; | |
10483 | wxSize temp0; | |
10484 | PyObject * _obj4 = 0; | |
10485 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10486 | char _ptemp[128]; | |
10487 | ||
10488 | self = self; | |
10489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10490 | return NULL; | |
10491 | if (_argo0) { | |
10492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10495 | return NULL; | |
10496 | } | |
10497 | } | |
10498 | if (_obj3) | |
10499 | { | |
10500 | _arg3 = &temp; | |
10501 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10502 | return NULL; | |
10503 | } | |
10504 | if (_obj4) | |
10505 | { | |
10506 | _arg4 = &temp0; | |
10507 | if (! wxSize_helper(_obj4, &_arg4)) | |
10508 | return NULL; | |
10509 | } | |
10510 | { | |
0e2ff151 | 10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10512 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
10513 | ||
0e2ff151 | 10514 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10515 | if (PyErr_Occurred()) return NULL; |
10516 | } if (_result) { | |
10517 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10518 | _resultobj = Py_BuildValue("s",_ptemp); | |
10519 | } else { | |
10520 | Py_INCREF(Py_None); | |
10521 | _resultobj = Py_None; | |
10522 | } | |
10523 | return _resultobj; | |
10524 | } | |
10525 | ||
10526 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) | |
10527 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10528 | PyObject * _resultobj; | |
10529 | wxSpinCtrl * _result; | |
10530 | char *_kwnames[] = { NULL }; | |
10531 | char _ptemp[128]; | |
10532 | ||
10533 | self = self; | |
10534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10535 | return NULL; | |
10536 | { | |
0e2ff151 | 10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10538 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
10539 | ||
0e2ff151 | 10540 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10541 | if (PyErr_Occurred()) return NULL; |
10542 | } if (_result) { | |
10543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10544 | _resultobj = Py_BuildValue("s",_ptemp); | |
10545 | } else { | |
10546 | Py_INCREF(Py_None); | |
10547 | _resultobj = Py_None; | |
10548 | } | |
10549 | return _resultobj; | |
10550 | } | |
10551 | ||
10552 | #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)) | |
10553 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10554 | PyObject * _resultobj; | |
10555 | bool _result; | |
10556 | wxSpinCtrl * _arg0; | |
10557 | wxWindow * _arg1; | |
10558 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10559 | char * _arg3 = (char *) ""; | |
10560 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10561 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10562 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10563 | int _arg7 = (int ) 0; | |
10564 | int _arg8 = (int ) 100; | |
10565 | int _arg9 = (int ) 0; | |
10566 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10567 | PyObject * _argo0 = 0; | |
10568 | PyObject * _argo1 = 0; | |
10569 | wxPoint temp; | |
10570 | PyObject * _obj4 = 0; | |
10571 | wxSize temp0; | |
10572 | PyObject * _obj5 = 0; | |
10573 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10574 | ||
10575 | self = self; | |
10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10577 | return NULL; | |
10578 | if (_argo0) { | |
10579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10582 | return NULL; | |
10583 | } | |
10584 | } | |
10585 | if (_argo1) { | |
10586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10589 | return NULL; | |
10590 | } | |
10591 | } | |
10592 | if (_obj4) | |
10593 | { | |
10594 | _arg4 = &temp; | |
10595 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10596 | return NULL; | |
10597 | } | |
10598 | if (_obj5) | |
10599 | { | |
10600 | _arg5 = &temp0; | |
10601 | if (! wxSize_helper(_obj5, &_arg5)) | |
10602 | return NULL; | |
10603 | } | |
10604 | { | |
0e2ff151 | 10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10606 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); |
10607 | ||
0e2ff151 | 10608 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10609 | if (PyErr_Occurred()) return NULL; |
10610 | } _resultobj = Py_BuildValue("i",_result); | |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
10614 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) | |
10615 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | int _result; | |
10618 | wxSpinCtrl * _arg0; | |
10619 | PyObject * _argo0 = 0; | |
10620 | char *_kwnames[] = { "self", NULL }; | |
10621 | ||
10622 | self = self; | |
10623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10624 | return NULL; | |
10625 | if (_argo0) { | |
10626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10629 | return NULL; | |
10630 | } | |
10631 | } | |
10632 | { | |
0e2ff151 | 10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10634 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
10635 | ||
0e2ff151 | 10636 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10637 | if (PyErr_Occurred()) return NULL; |
10638 | } _resultobj = Py_BuildValue("i",_result); | |
10639 | return _resultobj; | |
10640 | } | |
10641 | ||
10642 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10643 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject * _resultobj; | |
10645 | int _result; | |
10646 | wxSpinCtrl * _arg0; | |
10647 | PyObject * _argo0 = 0; | |
10648 | char *_kwnames[] = { "self", NULL }; | |
10649 | ||
10650 | self = self; | |
10651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10652 | return NULL; | |
10653 | if (_argo0) { | |
10654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10657 | return NULL; | |
10658 | } | |
10659 | } | |
10660 | { | |
0e2ff151 | 10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10662 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
10663 | ||
0e2ff151 | 10664 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10665 | if (PyErr_Occurred()) return NULL; |
10666 | } _resultobj = Py_BuildValue("i",_result); | |
10667 | return _resultobj; | |
10668 | } | |
10669 | ||
10670 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10671 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10672 | PyObject * _resultobj; | |
10673 | int _result; | |
10674 | wxSpinCtrl * _arg0; | |
10675 | PyObject * _argo0 = 0; | |
10676 | char *_kwnames[] = { "self", NULL }; | |
10677 | ||
10678 | self = self; | |
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10680 | return NULL; | |
10681 | if (_argo0) { | |
10682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10685 | return NULL; | |
10686 | } | |
10687 | } | |
10688 | { | |
0e2ff151 | 10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10690 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
10691 | ||
0e2ff151 | 10692 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10693 | if (PyErr_Occurred()) return NULL; |
10694 | } _resultobj = Py_BuildValue("i",_result); | |
10695 | return _resultobj; | |
10696 | } | |
10697 | ||
10698 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10699 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject * _resultobj; | |
10701 | wxSpinCtrl * _arg0; | |
10702 | int _arg1; | |
10703 | int _arg2; | |
10704 | PyObject * _argo0 = 0; | |
10705 | char *_kwnames[] = { "self","min","max", NULL }; | |
10706 | ||
10707 | self = self; | |
10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10709 | return NULL; | |
10710 | if (_argo0) { | |
10711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10714 | return NULL; | |
10715 | } | |
10716 | } | |
10717 | { | |
0e2ff151 | 10718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10719 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
10720 | ||
0e2ff151 | 10721 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10722 | if (PyErr_Occurred()) return NULL; |
10723 | } Py_INCREF(Py_None); | |
10724 | _resultobj = Py_None; | |
10725 | return _resultobj; | |
10726 | } | |
10727 | ||
10728 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10729 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject * _resultobj; | |
10731 | wxSpinCtrl * _arg0; | |
10732 | int _arg1; | |
10733 | PyObject * _argo0 = 0; | |
10734 | char *_kwnames[] = { "self","value", NULL }; | |
10735 | ||
10736 | self = self; | |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10738 | return NULL; | |
10739 | if (_argo0) { | |
10740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10743 | return NULL; | |
10744 | } | |
10745 | } | |
10746 | { | |
0e2ff151 | 10747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
10748 | wxSpinCtrl_SetValue(_arg0,_arg1); |
10749 | ||
0e2ff151 | 10750 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10751 | if (PyErr_Occurred()) return NULL; |
10752 | } Py_INCREF(Py_None); | |
10753 | _resultobj = Py_None; | |
10754 | return _resultobj; | |
10755 | } | |
10756 | ||
10757 | static PyMethodDef controlscMethods[] = { | |
10758 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
dbd3685c | 10826 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10827 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
10828 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
dbd3685c | 10835 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
e6056257 | 10836 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
742fc581 RD |
10837 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
10838 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10846 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
10847 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10848 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
10849 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
742fc581 RD |
10851 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
10852 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10856 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
742fc581 RD |
10857 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
10858 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10860 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
10861 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
742fc581 RD |
10862 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
10863 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10864 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
e6056257 | 10865 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
742fc581 RD |
10866 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
10867 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10872 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10873 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
10874 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
d1e76a37 | 10876 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
742fc581 RD |
10877 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
10878 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10879 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10880 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
dbd3685c | 10882 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
742fc581 | 10883 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10884 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10885 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10892 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { NULL, NULL } | |
11008 | }; | |
11009 | #ifdef __cplusplus | |
11010 | } | |
11011 | #endif | |
11012 | /* | |
11013 | * This table is used by the pointer type-checker | |
11014 | */ | |
11015 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11016 | { "_signed_long","_long",0}, | |
11017 | { "_wxPrintQuality","_wxCoord",0}, | |
11018 | { "_wxPrintQuality","_int",0}, | |
11019 | { "_wxPrintQuality","_signed_int",0}, | |
11020 | { "_wxPrintQuality","_unsigned_int",0}, | |
11021 | { "_wxPrintQuality","_wxWindowID",0}, | |
11022 | { "_wxPrintQuality","_uint",0}, | |
11023 | { "_wxPrintQuality","_EBool",0}, | |
11024 | { "_wxPrintQuality","_size_t",0}, | |
11025 | { "_wxPrintQuality","_time_t",0}, | |
11026 | { "_byte","_unsigned_char",0}, | |
11027 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
11028 | { "_long","_unsigned_long",0}, | |
11029 | { "_long","_signed_long",0}, | |
11030 | { "_size_t","_wxCoord",0}, | |
11031 | { "_size_t","_wxPrintQuality",0}, | |
11032 | { "_size_t","_time_t",0}, | |
11033 | { "_size_t","_unsigned_int",0}, | |
11034 | { "_size_t","_int",0}, | |
11035 | { "_size_t","_wxWindowID",0}, | |
11036 | { "_size_t","_uint",0}, | |
11037 | { "_uint","_wxCoord",0}, | |
11038 | { "_uint","_wxPrintQuality",0}, | |
11039 | { "_uint","_time_t",0}, | |
11040 | { "_uint","_size_t",0}, | |
11041 | { "_uint","_unsigned_int",0}, | |
11042 | { "_uint","_int",0}, | |
11043 | { "_uint","_wxWindowID",0}, | |
11044 | { "_wxChar","_char",0}, | |
11045 | { "_char","_wxChar",0}, | |
11046 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
11047 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11048 | { "_EBool","_wxCoord",0}, | |
11049 | { "_EBool","_wxPrintQuality",0}, | |
11050 | { "_EBool","_signed_int",0}, | |
11051 | { "_EBool","_int",0}, | |
11052 | { "_EBool","_wxWindowID",0}, | |
11053 | { "_unsigned_long","_long",0}, | |
11054 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11055 | { "_signed_int","_wxCoord",0}, | |
11056 | { "_signed_int","_wxPrintQuality",0}, | |
11057 | { "_signed_int","_EBool",0}, | |
11058 | { "_signed_int","_wxWindowID",0}, | |
11059 | { "_signed_int","_int",0}, | |
11060 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
11061 | { "_WXTYPE","_short",0}, | |
11062 | { "_WXTYPE","_signed_short",0}, | |
11063 | { "_WXTYPE","_unsigned_short",0}, | |
11064 | { "_unsigned_short","_WXTYPE",0}, | |
11065 | { "_unsigned_short","_short",0}, | |
11066 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11067 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
11068 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11069 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11070 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11071 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11072 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11073 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11074 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11075 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
11076 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
11077 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11078 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11079 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
11080 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
11081 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
11082 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11083 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11084 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
11085 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
11086 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
11087 | { "_signed_short","_WXTYPE",0}, | |
11088 | { "_signed_short","_short",0}, | |
11089 | { "_unsigned_char","_byte",0}, | |
11090 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
11091 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
11092 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11093 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11094 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11095 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11096 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11097 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11098 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11099 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
11100 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
11101 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11102 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11103 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
11104 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
11105 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
11106 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11107 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11108 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
11109 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
11110 | { "_unsigned_int","_wxCoord",0}, | |
11111 | { "_unsigned_int","_wxPrintQuality",0}, | |
11112 | { "_unsigned_int","_time_t",0}, | |
11113 | { "_unsigned_int","_size_t",0}, | |
11114 | { "_unsigned_int","_uint",0}, | |
11115 | { "_unsigned_int","_wxWindowID",0}, | |
11116 | { "_unsigned_int","_int",0}, | |
11117 | { "_short","_WXTYPE",0}, | |
11118 | { "_short","_unsigned_short",0}, | |
11119 | { "_short","_signed_short",0}, | |
11120 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
11121 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11122 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11123 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
11124 | { "_wxWindowID","_wxCoord",0}, | |
11125 | { "_wxWindowID","_wxPrintQuality",0}, | |
11126 | { "_wxWindowID","_time_t",0}, | |
11127 | { "_wxWindowID","_size_t",0}, | |
11128 | { "_wxWindowID","_EBool",0}, | |
11129 | { "_wxWindowID","_uint",0}, | |
11130 | { "_wxWindowID","_int",0}, | |
11131 | { "_wxWindowID","_signed_int",0}, | |
11132 | { "_wxWindowID","_unsigned_int",0}, | |
11133 | { "_int","_wxCoord",0}, | |
11134 | { "_int","_wxPrintQuality",0}, | |
11135 | { "_int","_time_t",0}, | |
11136 | { "_int","_size_t",0}, | |
11137 | { "_int","_EBool",0}, | |
11138 | { "_int","_uint",0}, | |
11139 | { "_int","_wxWindowID",0}, | |
11140 | { "_int","_unsigned_int",0}, | |
11141 | { "_int","_signed_int",0}, | |
11142 | { "_time_t","_wxCoord",0}, | |
11143 | { "_time_t","_wxPrintQuality",0}, | |
11144 | { "_time_t","_unsigned_int",0}, | |
11145 | { "_time_t","_int",0}, | |
11146 | { "_time_t","_wxWindowID",0}, | |
11147 | { "_time_t","_uint",0}, | |
11148 | { "_time_t","_size_t",0}, | |
11149 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
11150 | { "_wxCoord","_int",0}, | |
11151 | { "_wxCoord","_signed_int",0}, | |
11152 | { "_wxCoord","_unsigned_int",0}, | |
11153 | { "_wxCoord","_wxWindowID",0}, | |
11154 | { "_wxCoord","_uint",0}, | |
11155 | { "_wxCoord","_EBool",0}, | |
11156 | { "_wxCoord","_size_t",0}, | |
11157 | { "_wxCoord","_time_t",0}, | |
11158 | { "_wxCoord","_wxPrintQuality",0}, | |
11159 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
11160 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
11161 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11162 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11163 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11164 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11165 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11166 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11167 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11168 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11169 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11170 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11171 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11172 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11173 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11174 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11175 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11176 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11177 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
11178 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
11179 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
11180 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
11181 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
11182 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11183 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11184 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11185 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11186 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11187 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11188 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11189 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
11190 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11191 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11192 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11193 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
11194 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11195 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
11196 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11197 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11198 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
11199 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
11200 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
11201 | {0,0,0}}; | |
11202 | ||
11203 | static PyObject *SWIG_globals; | |
11204 | #ifdef __cplusplus | |
11205 | extern "C" | |
11206 | #endif | |
11207 | SWIGEXPORT(void) initcontrolsc() { | |
11208 | PyObject *m, *d; | |
11209 | SWIG_globals = SWIG_newvarlink(); | |
11210 | m = Py_InitModule("controlsc", controlscMethods); | |
11211 | d = PyModule_GetDict(m); | |
11212 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11213 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
11214 | { | |
11215 | int i; | |
11216 | for (i = 0; _swig_mapping[i].n1; i++) | |
11217 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11218 | } | |
11219 | } |