]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/controls.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrolsc | |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
60 | #include <wx/spinbutt.h> | |
61 | #include <wx/spinctrl.h> | |
62 | #include <wx/dynarray.h> | |
63 | #include <wx/statline.h> | |
64 | #include <wx/tglbtn.h> | |
65 | ||
66 | #ifdef __WXMSW__ | |
67 | #if wxUSE_OWNER_DRAWN | |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70 | #endif | |
71 | ||
72 | #ifdef __WXGTK__ | |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
76 | ||
77 | ||
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
82 | if (!target) { | |
83 | target = o; | |
84 | } else if (target == Py_None) { | |
85 | Py_DECREF(Py_None); | |
86 | target = o; | |
87 | } else { | |
88 | if (!PyTuple_Check(target)) { | |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
93 | o3 = PyTuple_New(1); | |
94 | PyTuple_SetItem(o3, 0, o); | |
95 | ||
96 | o2 = target; | |
97 | target = PySequence_Concat(o2, o3); | |
98 | Py_DECREF(o2); | |
99 | Py_DECREF(o3); | |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
104 | #if PYTHON_API_VERSION >= 1009 | |
105 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
106 | #else | |
107 | static char* wxStringErrorMsg = "String type required"; | |
108 | #endif | |
109 | #ifdef __cplusplus | |
110 | extern "C" { | |
111 | #endif | |
112 | static int _wrap_wxDefaultValidator_set(PyObject *val) { | |
113 | ||
114 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
115 | return 1; | |
116 | } | |
117 | ||
118 | static PyObject *_wrap_wxDefaultValidator_get() { | |
119 | PyObject * pyobj; | |
120 | char ptemp[128]; | |
121 | ||
122 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
123 | pyobj = PyString_FromString(ptemp); | |
124 | return pyobj; | |
125 | } | |
126 | ||
127 | static void *SwigwxControlTowxWindow(void *ptr) { | |
128 | wxControl *src; | |
129 | wxWindow *dest; | |
130 | src = (wxControl *) ptr; | |
131 | dest = (wxWindow *) src; | |
132 | return (void *) dest; | |
133 | } | |
134 | ||
135 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
136 | wxControl *src; | |
137 | wxEvtHandler *dest; | |
138 | src = (wxControl *) ptr; | |
139 | dest = (wxEvtHandler *) src; | |
140 | return (void *) dest; | |
141 | } | |
142 | ||
143 | static void *SwigwxControlTowxObject(void *ptr) { | |
144 | wxControl *src; | |
145 | wxObject *dest; | |
146 | src = (wxControl *) ptr; | |
147 | dest = (wxObject *) src; | |
148 | return (void *) dest; | |
149 | } | |
150 | ||
151 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
152 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
153 | PyObject * _resultobj; | |
154 | wxControl * _result; | |
155 | wxWindow * _arg0; | |
156 | wxWindowID _arg1; | |
157 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
158 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
159 | long _arg4 = (long ) 0; | |
160 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
161 | char * _arg6 = (char *) "control"; | |
162 | PyObject * _argo0 = 0; | |
163 | wxPoint temp; | |
164 | PyObject * _obj2 = 0; | |
165 | wxSize temp0; | |
166 | PyObject * _obj3 = 0; | |
167 | PyObject * _argo5 = 0; | |
168 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
169 | char _ptemp[128]; | |
170 | ||
171 | self = self; | |
172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
173 | return NULL; | |
174 | if (_argo0) { | |
175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
178 | return NULL; | |
179 | } | |
180 | } | |
181 | if (_obj2) | |
182 | { | |
183 | _arg2 = &temp; | |
184 | if (! wxPoint_helper(_obj2, &_arg2)) | |
185 | return NULL; | |
186 | } | |
187 | if (_obj3) | |
188 | { | |
189 | _arg3 = &temp0; | |
190 | if (! wxSize_helper(_obj3, &_arg3)) | |
191 | return NULL; | |
192 | } | |
193 | if (_argo5) { | |
194 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
195 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
197 | return NULL; | |
198 | } | |
199 | } | |
200 | { | |
201 | wxPy_BEGIN_ALLOW_THREADS; | |
202 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
203 | ||
204 | wxPy_END_ALLOW_THREADS; | |
205 | if (PyErr_Occurred()) return NULL; | |
206 | } if (_result) { | |
207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
208 | _resultobj = Py_BuildValue("s",_ptemp); | |
209 | } else { | |
210 | Py_INCREF(Py_None); | |
211 | _resultobj = Py_None; | |
212 | } | |
213 | return _resultobj; | |
214 | } | |
215 | ||
216 | #define new_wxPreControl() (new wxControl()) | |
217 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
218 | PyObject * _resultobj; | |
219 | wxControl * _result; | |
220 | char *_kwnames[] = { NULL }; | |
221 | char _ptemp[128]; | |
222 | ||
223 | self = self; | |
224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
225 | return NULL; | |
226 | { | |
227 | wxPy_BEGIN_ALLOW_THREADS; | |
228 | _result = (wxControl *)new_wxPreControl(); | |
229 | ||
230 | wxPy_END_ALLOW_THREADS; | |
231 | if (PyErr_Occurred()) return NULL; | |
232 | } if (_result) { | |
233 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
234 | _resultobj = Py_BuildValue("s",_ptemp); | |
235 | } else { | |
236 | Py_INCREF(Py_None); | |
237 | _resultobj = Py_None; | |
238 | } | |
239 | return _resultobj; | |
240 | } | |
241 | ||
242 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
243 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
244 | PyObject * _resultobj; | |
245 | bool _result; | |
246 | wxControl * _arg0; | |
247 | wxWindow * _arg1; | |
248 | wxWindowID _arg2; | |
249 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
250 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
251 | long _arg5 = (long ) 0; | |
252 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
253 | char * _arg7 = (char *) "control"; | |
254 | PyObject * _argo0 = 0; | |
255 | PyObject * _argo1 = 0; | |
256 | wxPoint temp; | |
257 | PyObject * _obj3 = 0; | |
258 | wxSize temp0; | |
259 | PyObject * _obj4 = 0; | |
260 | PyObject * _argo6 = 0; | |
261 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
262 | ||
263 | self = self; | |
264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
265 | return NULL; | |
266 | if (_argo0) { | |
267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | if (_argo1) { | |
274 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
275 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
277 | return NULL; | |
278 | } | |
279 | } | |
280 | if (_obj3) | |
281 | { | |
282 | _arg3 = &temp; | |
283 | if (! wxPoint_helper(_obj3, &_arg3)) | |
284 | return NULL; | |
285 | } | |
286 | if (_obj4) | |
287 | { | |
288 | _arg4 = &temp0; | |
289 | if (! wxSize_helper(_obj4, &_arg4)) | |
290 | return NULL; | |
291 | } | |
292 | if (_argo6) { | |
293 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
294 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
296 | return NULL; | |
297 | } | |
298 | } | |
299 | { | |
300 | wxPy_BEGIN_ALLOW_THREADS; | |
301 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
302 | ||
303 | wxPy_END_ALLOW_THREADS; | |
304 | if (PyErr_Occurred()) return NULL; | |
305 | } _resultobj = Py_BuildValue("i",_result); | |
306 | return _resultobj; | |
307 | } | |
308 | ||
309 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
310 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | wxControl * _arg0; | |
313 | wxCommandEvent * _arg1; | |
314 | PyObject * _argo0 = 0; | |
315 | PyObject * _argo1 = 0; | |
316 | char *_kwnames[] = { "self","event", NULL }; | |
317 | ||
318 | self = self; | |
319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
320 | return NULL; | |
321 | if (_argo0) { | |
322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | if (_argo1) { | |
329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
332 | return NULL; | |
333 | } | |
334 | } | |
335 | { | |
336 | wxPy_BEGIN_ALLOW_THREADS; | |
337 | wxControl_Command(_arg0,*_arg1); | |
338 | ||
339 | wxPy_END_ALLOW_THREADS; | |
340 | if (PyErr_Occurred()) return NULL; | |
341 | } Py_INCREF(Py_None); | |
342 | _resultobj = Py_None; | |
343 | return _resultobj; | |
344 | } | |
345 | ||
346 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
347 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
348 | PyObject * _resultobj; | |
349 | wxString * _result; | |
350 | wxControl * _arg0; | |
351 | PyObject * _argo0 = 0; | |
352 | char *_kwnames[] = { "self", NULL }; | |
353 | ||
354 | self = self; | |
355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) | |
356 | return NULL; | |
357 | if (_argo0) { | |
358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); | |
361 | return NULL; | |
362 | } | |
363 | } | |
364 | { | |
365 | wxPy_BEGIN_ALLOW_THREADS; | |
366 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
367 | ||
368 | wxPy_END_ALLOW_THREADS; | |
369 | if (PyErr_Occurred()) return NULL; | |
370 | }{ | |
371 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
372 | } | |
373 | { | |
374 | delete _result; | |
375 | } | |
376 | return _resultobj; | |
377 | } | |
378 | ||
379 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
380 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
381 | PyObject * _resultobj; | |
382 | wxControl * _arg0; | |
383 | wxString * _arg1; | |
384 | PyObject * _argo0 = 0; | |
385 | PyObject * _obj1 = 0; | |
386 | char *_kwnames[] = { "self","label", NULL }; | |
387 | ||
388 | self = self; | |
389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) | |
390 | return NULL; | |
391 | if (_argo0) { | |
392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); | |
395 | return NULL; | |
396 | } | |
397 | } | |
398 | { | |
399 | #if PYTHON_API_VERSION >= 1009 | |
400 | char* tmpPtr; int tmpSize; | |
401 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
403 | return NULL; | |
404 | } | |
405 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
406 | return NULL; | |
407 | _arg1 = new wxString(tmpPtr, tmpSize); | |
408 | #else | |
409 | if (!PyString_Check(_obj1)) { | |
410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
411 | return NULL; | |
412 | } | |
413 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
414 | #endif | |
415 | } | |
416 | { | |
417 | wxPy_BEGIN_ALLOW_THREADS; | |
418 | wxControl_SetLabel(_arg0,*_arg1); | |
419 | ||
420 | wxPy_END_ALLOW_THREADS; | |
421 | if (PyErr_Occurred()) return NULL; | |
422 | } Py_INCREF(Py_None); | |
423 | _resultobj = Py_None; | |
424 | { | |
425 | if (_obj1) | |
426 | delete _arg1; | |
427 | } | |
428 | return _resultobj; | |
429 | } | |
430 | ||
431 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { | |
432 | wxControlWithItems *src; | |
433 | wxControl *dest; | |
434 | src = (wxControlWithItems *) ptr; | |
435 | dest = (wxControl *) src; | |
436 | return (void *) dest; | |
437 | } | |
438 | ||
439 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
440 | wxControlWithItems *src; | |
441 | wxWindow *dest; | |
442 | src = (wxControlWithItems *) ptr; | |
443 | dest = (wxWindow *) src; | |
444 | return (void *) dest; | |
445 | } | |
446 | ||
447 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
448 | wxControlWithItems *src; | |
449 | wxEvtHandler *dest; | |
450 | src = (wxControlWithItems *) ptr; | |
451 | dest = (wxEvtHandler *) src; | |
452 | return (void *) dest; | |
453 | } | |
454 | ||
455 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
456 | wxControlWithItems *src; | |
457 | wxObject *dest; | |
458 | src = (wxControlWithItems *) ptr; | |
459 | dest = (wxObject *) src; | |
460 | return (void *) dest; | |
461 | } | |
462 | ||
463 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
464 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject * _resultobj; | |
466 | wxControlWithItems * _arg0; | |
467 | int _arg1; | |
468 | PyObject * _argo0 = 0; | |
469 | char *_kwnames[] = { "self","n", NULL }; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
473 | return NULL; | |
474 | if (_argo0) { | |
475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
478 | return NULL; | |
479 | } | |
480 | } | |
481 | { | |
482 | wxPy_BEGIN_ALLOW_THREADS; | |
483 | wxControlWithItems_Delete(_arg0,_arg1); | |
484 | ||
485 | wxPy_END_ALLOW_THREADS; | |
486 | if (PyErr_Occurred()) return NULL; | |
487 | } Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
493 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
494 | PyObject * _resultobj; | |
495 | int _result; | |
496 | wxControlWithItems * _arg0; | |
497 | PyObject * _argo0 = 0; | |
498 | char *_kwnames[] = { "self", NULL }; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
502 | return NULL; | |
503 | if (_argo0) { | |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
511 | wxPy_BEGIN_ALLOW_THREADS; | |
512 | _result = (int )wxControlWithItems_GetCount(_arg0); | |
513 | ||
514 | wxPy_END_ALLOW_THREADS; | |
515 | if (PyErr_Occurred()) return NULL; | |
516 | } _resultobj = Py_BuildValue("i",_result); | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
521 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxString * _result; | |
524 | wxControlWithItems * _arg0; | |
525 | int _arg1; | |
526 | PyObject * _argo0 = 0; | |
527 | char *_kwnames[] = { "self","n", NULL }; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | { | |
540 | wxPy_BEGIN_ALLOW_THREADS; | |
541 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); | |
542 | ||
543 | wxPy_END_ALLOW_THREADS; | |
544 | if (PyErr_Occurred()) return NULL; | |
545 | }{ | |
546 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
547 | } | |
548 | { | |
549 | delete _result; | |
550 | } | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
555 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
556 | PyObject * _resultobj; | |
557 | wxControlWithItems * _arg0; | |
558 | int _arg1; | |
559 | wxString * _arg2; | |
560 | PyObject * _argo0 = 0; | |
561 | PyObject * _obj2 = 0; | |
562 | char *_kwnames[] = { "self","n","s", NULL }; | |
563 | ||
564 | self = self; | |
565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
566 | return NULL; | |
567 | if (_argo0) { | |
568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
571 | return NULL; | |
572 | } | |
573 | } | |
574 | { | |
575 | #if PYTHON_API_VERSION >= 1009 | |
576 | char* tmpPtr; int tmpSize; | |
577 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
578 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
579 | return NULL; | |
580 | } | |
581 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
582 | return NULL; | |
583 | _arg2 = new wxString(tmpPtr, tmpSize); | |
584 | #else | |
585 | if (!PyString_Check(_obj2)) { | |
586 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
587 | return NULL; | |
588 | } | |
589 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
590 | #endif | |
591 | } | |
592 | { | |
593 | wxPy_BEGIN_ALLOW_THREADS; | |
594 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); | |
595 | ||
596 | wxPy_END_ALLOW_THREADS; | |
597 | if (PyErr_Occurred()) return NULL; | |
598 | } Py_INCREF(Py_None); | |
599 | _resultobj = Py_None; | |
600 | { | |
601 | if (_obj2) | |
602 | delete _arg2; | |
603 | } | |
604 | return _resultobj; | |
605 | } | |
606 | ||
607 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
608 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
609 | PyObject * _resultobj; | |
610 | int _result; | |
611 | wxControlWithItems * _arg0; | |
612 | wxString * _arg1; | |
613 | PyObject * _argo0 = 0; | |
614 | PyObject * _obj1 = 0; | |
615 | char *_kwnames[] = { "self","s", NULL }; | |
616 | ||
617 | self = self; | |
618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
619 | return NULL; | |
620 | if (_argo0) { | |
621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
624 | return NULL; | |
625 | } | |
626 | } | |
627 | { | |
628 | #if PYTHON_API_VERSION >= 1009 | |
629 | char* tmpPtr; int tmpSize; | |
630 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
632 | return NULL; | |
633 | } | |
634 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
635 | return NULL; | |
636 | _arg1 = new wxString(tmpPtr, tmpSize); | |
637 | #else | |
638 | if (!PyString_Check(_obj1)) { | |
639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
640 | return NULL; | |
641 | } | |
642 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
643 | #endif | |
644 | } | |
645 | { | |
646 | wxPy_BEGIN_ALLOW_THREADS; | |
647 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); | |
648 | ||
649 | wxPy_END_ALLOW_THREADS; | |
650 | if (PyErr_Occurred()) return NULL; | |
651 | } _resultobj = Py_BuildValue("i",_result); | |
652 | { | |
653 | if (_obj1) | |
654 | delete _arg1; | |
655 | } | |
656 | return _resultobj; | |
657 | } | |
658 | ||
659 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
660 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | wxControlWithItems * _arg0; | |
663 | int _arg1; | |
664 | PyObject * _argo0 = 0; | |
665 | char *_kwnames[] = { "self","n", NULL }; | |
666 | ||
667 | self = self; | |
668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
669 | return NULL; | |
670 | if (_argo0) { | |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
674 | return NULL; | |
675 | } | |
676 | } | |
677 | { | |
678 | wxPy_BEGIN_ALLOW_THREADS; | |
679 | wxControlWithItems_Select(_arg0,_arg1); | |
680 | ||
681 | wxPy_END_ALLOW_THREADS; | |
682 | if (PyErr_Occurred()) return NULL; | |
683 | } Py_INCREF(Py_None); | |
684 | _resultobj = Py_None; | |
685 | return _resultobj; | |
686 | } | |
687 | ||
688 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
689 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
690 | PyObject * _resultobj; | |
691 | int _result; | |
692 | wxControlWithItems * _arg0; | |
693 | PyObject * _argo0 = 0; | |
694 | char *_kwnames[] = { "self", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | { | |
707 | wxPy_BEGIN_ALLOW_THREADS; | |
708 | _result = (int )wxControlWithItems_GetSelection(_arg0); | |
709 | ||
710 | wxPy_END_ALLOW_THREADS; | |
711 | if (PyErr_Occurred()) return NULL; | |
712 | } _resultobj = Py_BuildValue("i",_result); | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
717 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxString * _result; | |
720 | wxControlWithItems * _arg0; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
735 | wxPy_BEGIN_ALLOW_THREADS; | |
736 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); | |
737 | ||
738 | wxPy_END_ALLOW_THREADS; | |
739 | if (PyErr_Occurred()) return NULL; | |
740 | }{ | |
741 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
742 | } | |
743 | { | |
744 | delete _result; | |
745 | } | |
746 | return _resultobj; | |
747 | } | |
748 | ||
749 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
750 | if (clientData) { | |
751 | wxPyClientData* data = new wxPyClientData(clientData); | |
752 | self->Append(item, data); | |
753 | } else | |
754 | self->Append(item); | |
755 | } | |
756 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | wxControlWithItems * _arg0; | |
759 | wxString * _arg1; | |
760 | PyObject * _arg2 = (PyObject *) NULL; | |
761 | PyObject * _argo0 = 0; | |
762 | PyObject * _obj1 = 0; | |
763 | PyObject * _obj2 = 0; | |
764 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
765 | ||
766 | self = self; | |
767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
768 | return NULL; | |
769 | if (_argo0) { | |
770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
773 | return NULL; | |
774 | } | |
775 | } | |
776 | { | |
777 | #if PYTHON_API_VERSION >= 1009 | |
778 | char* tmpPtr; int tmpSize; | |
779 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
780 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
781 | return NULL; | |
782 | } | |
783 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
784 | return NULL; | |
785 | _arg1 = new wxString(tmpPtr, tmpSize); | |
786 | #else | |
787 | if (!PyString_Check(_obj1)) { | |
788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
789 | return NULL; | |
790 | } | |
791 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
792 | #endif | |
793 | } | |
794 | if (_obj2) | |
795 | { | |
796 | _arg2 = _obj2; | |
797 | } | |
798 | { | |
799 | wxPy_BEGIN_ALLOW_THREADS; | |
800 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); | |
801 | ||
802 | wxPy_END_ALLOW_THREADS; | |
803 | if (PyErr_Occurred()) return NULL; | |
804 | } Py_INCREF(Py_None); | |
805 | _resultobj = Py_None; | |
806 | { | |
807 | if (_obj1) | |
808 | delete _arg1; | |
809 | } | |
810 | return _resultobj; | |
811 | } | |
812 | ||
813 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
814 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
815 | if (data) { | |
816 | Py_INCREF(data->m_obj); | |
817 | return data->m_obj; | |
818 | } else { | |
819 | Py_INCREF(Py_None); | |
820 | return Py_None; | |
821 | } | |
822 | } | |
823 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | PyObject * _result; | |
826 | wxControlWithItems * _arg0; | |
827 | int _arg1; | |
828 | PyObject * _argo0 = 0; | |
829 | char *_kwnames[] = { "self","n", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
842 | wxPy_BEGIN_ALLOW_THREADS; | |
843 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); | |
844 | ||
845 | wxPy_END_ALLOW_THREADS; | |
846 | if (PyErr_Occurred()) return NULL; | |
847 | }{ | |
848 | _resultobj = _result; | |
849 | } | |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
854 | wxPyClientData* data = new wxPyClientData(clientData); | |
855 | self->SetClientObject(n, data); | |
856 | } | |
857 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
858 | PyObject * _resultobj; | |
859 | wxControlWithItems * _arg0; | |
860 | int _arg1; | |
861 | PyObject * _arg2; | |
862 | PyObject * _argo0 = 0; | |
863 | PyObject * _obj2 = 0; | |
864 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
865 | ||
866 | self = self; | |
867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
868 | return NULL; | |
869 | if (_argo0) { | |
870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
873 | return NULL; | |
874 | } | |
875 | } | |
876 | { | |
877 | _arg2 = _obj2; | |
878 | } | |
879 | { | |
880 | wxPy_BEGIN_ALLOW_THREADS; | |
881 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); | |
882 | ||
883 | wxPy_END_ALLOW_THREADS; | |
884 | if (PyErr_Occurred()) return NULL; | |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
890 | static void *SwigwxButtonTowxControl(void *ptr) { | |
891 | wxButton *src; | |
892 | wxControl *dest; | |
893 | src = (wxButton *) ptr; | |
894 | dest = (wxControl *) src; | |
895 | return (void *) dest; | |
896 | } | |
897 | ||
898 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
899 | wxButton *src; | |
900 | wxWindow *dest; | |
901 | src = (wxButton *) ptr; | |
902 | dest = (wxWindow *) src; | |
903 | return (void *) dest; | |
904 | } | |
905 | ||
906 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
907 | wxButton *src; | |
908 | wxEvtHandler *dest; | |
909 | src = (wxButton *) ptr; | |
910 | dest = (wxEvtHandler *) src; | |
911 | return (void *) dest; | |
912 | } | |
913 | ||
914 | static void *SwigwxButtonTowxObject(void *ptr) { | |
915 | wxButton *src; | |
916 | wxObject *dest; | |
917 | src = (wxButton *) ptr; | |
918 | dest = (wxObject *) src; | |
919 | return (void *) dest; | |
920 | } | |
921 | ||
922 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
923 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
924 | PyObject * _resultobj; | |
925 | wxButton * _result; | |
926 | wxWindow * _arg0; | |
927 | wxWindowID _arg1; | |
928 | wxString * _arg2; | |
929 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
930 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
931 | long _arg5 = (long ) 0; | |
932 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
933 | char * _arg7 = (char *) "button"; | |
934 | PyObject * _argo0 = 0; | |
935 | PyObject * _obj2 = 0; | |
936 | wxPoint temp; | |
937 | PyObject * _obj3 = 0; | |
938 | wxSize temp0; | |
939 | PyObject * _obj4 = 0; | |
940 | PyObject * _argo6 = 0; | |
941 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
942 | char _ptemp[128]; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
946 | return NULL; | |
947 | if (_argo0) { | |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); | |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | { | |
955 | #if PYTHON_API_VERSION >= 1009 | |
956 | char* tmpPtr; int tmpSize; | |
957 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
958 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
959 | return NULL; | |
960 | } | |
961 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
962 | return NULL; | |
963 | _arg2 = new wxString(tmpPtr, tmpSize); | |
964 | #else | |
965 | if (!PyString_Check(_obj2)) { | |
966 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
967 | return NULL; | |
968 | } | |
969 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
970 | #endif | |
971 | } | |
972 | if (_obj3) | |
973 | { | |
974 | _arg3 = &temp; | |
975 | if (! wxPoint_helper(_obj3, &_arg3)) | |
976 | return NULL; | |
977 | } | |
978 | if (_obj4) | |
979 | { | |
980 | _arg4 = &temp0; | |
981 | if (! wxSize_helper(_obj4, &_arg4)) | |
982 | return NULL; | |
983 | } | |
984 | if (_argo6) { | |
985 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
986 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); | |
988 | return NULL; | |
989 | } | |
990 | } | |
991 | { | |
992 | wxPy_BEGIN_ALLOW_THREADS; | |
993 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
994 | ||
995 | wxPy_END_ALLOW_THREADS; | |
996 | if (PyErr_Occurred()) return NULL; | |
997 | } if (_result) { | |
998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
999 | _resultobj = Py_BuildValue("s",_ptemp); | |
1000 | } else { | |
1001 | Py_INCREF(Py_None); | |
1002 | _resultobj = Py_None; | |
1003 | } | |
1004 | { | |
1005 | if (_obj2) | |
1006 | delete _arg2; | |
1007 | } | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
1011 | #define new_wxPreButton() (new wxButton()) | |
1012 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1013 | PyObject * _resultobj; | |
1014 | wxButton * _result; | |
1015 | char *_kwnames[] = { NULL }; | |
1016 | char _ptemp[128]; | |
1017 | ||
1018 | self = self; | |
1019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1020 | return NULL; | |
1021 | { | |
1022 | wxPy_BEGIN_ALLOW_THREADS; | |
1023 | _result = (wxButton *)new_wxPreButton(); | |
1024 | ||
1025 | wxPy_END_ALLOW_THREADS; | |
1026 | if (PyErr_Occurred()) return NULL; | |
1027 | } if (_result) { | |
1028 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1029 | _resultobj = Py_BuildValue("s",_ptemp); | |
1030 | } else { | |
1031 | Py_INCREF(Py_None); | |
1032 | _resultobj = Py_None; | |
1033 | } | |
1034 | return _resultobj; | |
1035 | } | |
1036 | ||
1037 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1038 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1039 | PyObject * _resultobj; | |
1040 | bool _result; | |
1041 | wxButton * _arg0; | |
1042 | wxWindow * _arg1; | |
1043 | wxWindowID _arg2; | |
1044 | wxString * _arg3; | |
1045 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1046 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1047 | long _arg6 = (long ) 0; | |
1048 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1049 | char * _arg8 = (char *) "button"; | |
1050 | PyObject * _argo0 = 0; | |
1051 | PyObject * _argo1 = 0; | |
1052 | PyObject * _obj3 = 0; | |
1053 | wxPoint temp; | |
1054 | PyObject * _obj4 = 0; | |
1055 | wxSize temp0; | |
1056 | PyObject * _obj5 = 0; | |
1057 | PyObject * _argo7 = 0; | |
1058 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | if (_argo1) { | |
1071 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1072 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1074 | return NULL; | |
1075 | } | |
1076 | } | |
1077 | { | |
1078 | #if PYTHON_API_VERSION >= 1009 | |
1079 | char* tmpPtr; int tmpSize; | |
1080 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
1081 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1082 | return NULL; | |
1083 | } | |
1084 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1085 | return NULL; | |
1086 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1087 | #else | |
1088 | if (!PyString_Check(_obj3)) { | |
1089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1090 | return NULL; | |
1091 | } | |
1092 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
1093 | #endif | |
1094 | } | |
1095 | if (_obj4) | |
1096 | { | |
1097 | _arg4 = &temp; | |
1098 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1099 | return NULL; | |
1100 | } | |
1101 | if (_obj5) | |
1102 | { | |
1103 | _arg5 = &temp0; | |
1104 | if (! wxSize_helper(_obj5, &_arg5)) | |
1105 | return NULL; | |
1106 | } | |
1107 | if (_argo7) { | |
1108 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1109 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1111 | return NULL; | |
1112 | } | |
1113 | } | |
1114 | { | |
1115 | wxPy_BEGIN_ALLOW_THREADS; | |
1116 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1117 | ||
1118 | wxPy_END_ALLOW_THREADS; | |
1119 | if (PyErr_Occurred()) return NULL; | |
1120 | } _resultobj = Py_BuildValue("i",_result); | |
1121 | { | |
1122 | if (_obj3) | |
1123 | delete _arg3; | |
1124 | } | |
1125 | return _resultobj; | |
1126 | } | |
1127 | ||
1128 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
1129 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1130 | PyObject * _resultobj; | |
1131 | wxButton * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
1146 | wxPy_BEGIN_ALLOW_THREADS; | |
1147 | wxButton_SetDefault(_arg0); | |
1148 | ||
1149 | wxPy_END_ALLOW_THREADS; | |
1150 | if (PyErr_Occurred()) return NULL; | |
1151 | } Py_INCREF(Py_None); | |
1152 | _resultobj = Py_None; | |
1153 | return _resultobj; | |
1154 | } | |
1155 | ||
1156 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1157 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject * _resultobj; | |
1159 | wxButton * _arg0; | |
1160 | wxColour * _arg1; | |
1161 | PyObject * _argo0 = 0; | |
1162 | wxColour temp; | |
1163 | PyObject * _obj1 = 0; | |
1164 | char *_kwnames[] = { "self","colour", NULL }; | |
1165 | ||
1166 | self = self; | |
1167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1168 | return NULL; | |
1169 | if (_argo0) { | |
1170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1173 | return NULL; | |
1174 | } | |
1175 | } | |
1176 | { | |
1177 | _arg1 = &temp; | |
1178 | if (! wxColour_helper(_obj1, &_arg1)) | |
1179 | return NULL; | |
1180 | } | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | if (PyErr_Occurred()) return NULL; | |
1187 | } Py_INCREF(Py_None); | |
1188 | _resultobj = Py_None; | |
1189 | return _resultobj; | |
1190 | } | |
1191 | ||
1192 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1193 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1194 | PyObject * _resultobj; | |
1195 | wxButton * _arg0; | |
1196 | wxColour * _arg1; | |
1197 | PyObject * _argo0 = 0; | |
1198 | wxColour temp; | |
1199 | PyObject * _obj1 = 0; | |
1200 | char *_kwnames[] = { "self","colour", NULL }; | |
1201 | ||
1202 | self = self; | |
1203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
1204 | return NULL; | |
1205 | if (_argo0) { | |
1206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1209 | return NULL; | |
1210 | } | |
1211 | } | |
1212 | { | |
1213 | _arg1 = &temp; | |
1214 | if (! wxColour_helper(_obj1, &_arg1)) | |
1215 | return NULL; | |
1216 | } | |
1217 | { | |
1218 | wxPy_BEGIN_ALLOW_THREADS; | |
1219 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
1220 | ||
1221 | wxPy_END_ALLOW_THREADS; | |
1222 | if (PyErr_Occurred()) return NULL; | |
1223 | } Py_INCREF(Py_None); | |
1224 | _resultobj = Py_None; | |
1225 | return _resultobj; | |
1226 | } | |
1227 | ||
1228 | #define wxButton_SetImageLabel(_swigobj,_swigarg0) (_swigobj->SetImageLabel(_swigarg0)) | |
1229 | static PyObject *_wrap_wxButton_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1230 | PyObject * _resultobj; | |
1231 | wxButton * _arg0; | |
1232 | wxBitmap * _arg1; | |
1233 | PyObject * _argo0 = 0; | |
1234 | PyObject * _argo1 = 0; | |
1235 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1236 | ||
1237 | self = self; | |
1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetImageLabel",_kwnames,&_argo0,&_argo1)) | |
1239 | return NULL; | |
1240 | if (_argo0) { | |
1241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageLabel. Expected _wxButton_p."); | |
1244 | return NULL; | |
1245 | } | |
1246 | } | |
1247 | if (_argo1) { | |
1248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetImageLabel. Expected _wxBitmap_p."); | |
1251 | return NULL; | |
1252 | } | |
1253 | } | |
1254 | { | |
1255 | wxPy_BEGIN_ALLOW_THREADS; | |
1256 | wxButton_SetImageLabel(_arg0,*_arg1); | |
1257 | ||
1258 | wxPy_END_ALLOW_THREADS; | |
1259 | if (PyErr_Occurred()) return NULL; | |
1260 | } Py_INCREF(Py_None); | |
1261 | _resultobj = Py_None; | |
1262 | return _resultobj; | |
1263 | } | |
1264 | ||
1265 | #define wxButton_SetImageMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageMargins(_swigarg0,_swigarg1)) | |
1266 | static PyObject *_wrap_wxButton_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1267 | PyObject * _resultobj; | |
1268 | wxButton * _arg0; | |
1269 | wxCoord _arg1; | |
1270 | wxCoord _arg2; | |
1271 | PyObject * _argo0 = 0; | |
1272 | char *_kwnames[] = { "self","x","y", NULL }; | |
1273 | ||
1274 | self = self; | |
1275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxButton_SetImageMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1276 | return NULL; | |
1277 | if (_argo0) { | |
1278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageMargins. Expected _wxButton_p."); | |
1281 | return NULL; | |
1282 | } | |
1283 | } | |
1284 | { | |
1285 | wxPy_BEGIN_ALLOW_THREADS; | |
1286 | wxButton_SetImageMargins(_arg0,_arg1,_arg2); | |
1287 | ||
1288 | wxPy_END_ALLOW_THREADS; | |
1289 | if (PyErr_Occurred()) return NULL; | |
1290 | } Py_INCREF(Py_None); | |
1291 | _resultobj = Py_None; | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject * _resultobj; | |
1297 | wxSize * _result; | |
1298 | char *_kwnames[] = { NULL }; | |
1299 | char _ptemp[128]; | |
1300 | ||
1301 | self = self; | |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1303 | return NULL; | |
1304 | { | |
1305 | wxPy_BEGIN_ALLOW_THREADS; | |
1306 | _result = new wxSize (wxButton::GetDefaultSize()); | |
1307 | ||
1308 | wxPy_END_ALLOW_THREADS; | |
1309 | if (PyErr_Occurred()) return NULL; | |
1310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1311 | _resultobj = Py_BuildValue("s",_ptemp); | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
1315 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1316 | wxBitmapButton *src; | |
1317 | wxButton *dest; | |
1318 | src = (wxBitmapButton *) ptr; | |
1319 | dest = (wxButton *) src; | |
1320 | return (void *) dest; | |
1321 | } | |
1322 | ||
1323 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1324 | wxBitmapButton *src; | |
1325 | wxControl *dest; | |
1326 | src = (wxBitmapButton *) ptr; | |
1327 | dest = (wxControl *) src; | |
1328 | return (void *) dest; | |
1329 | } | |
1330 | ||
1331 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1332 | wxBitmapButton *src; | |
1333 | wxWindow *dest; | |
1334 | src = (wxBitmapButton *) ptr; | |
1335 | dest = (wxWindow *) src; | |
1336 | return (void *) dest; | |
1337 | } | |
1338 | ||
1339 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1340 | wxBitmapButton *src; | |
1341 | wxEvtHandler *dest; | |
1342 | src = (wxBitmapButton *) ptr; | |
1343 | dest = (wxEvtHandler *) src; | |
1344 | return (void *) dest; | |
1345 | } | |
1346 | ||
1347 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1348 | wxBitmapButton *src; | |
1349 | wxObject *dest; | |
1350 | src = (wxBitmapButton *) ptr; | |
1351 | dest = (wxObject *) src; | |
1352 | return (void *) dest; | |
1353 | } | |
1354 | ||
1355 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1356 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject * _resultobj; | |
1358 | wxBitmapButton * _result; | |
1359 | wxWindow * _arg0; | |
1360 | wxWindowID _arg1; | |
1361 | wxBitmap * _arg2; | |
1362 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1363 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1364 | long _arg5 = (long ) wxBU_AUTODRAW; | |
1365 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1366 | char * _arg7 = (char *) "button"; | |
1367 | PyObject * _argo0 = 0; | |
1368 | PyObject * _argo2 = 0; | |
1369 | wxPoint temp; | |
1370 | PyObject * _obj3 = 0; | |
1371 | wxSize temp0; | |
1372 | PyObject * _obj4 = 0; | |
1373 | PyObject * _argo6 = 0; | |
1374 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1375 | char _ptemp[128]; | |
1376 | ||
1377 | self = self; | |
1378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1379 | return NULL; | |
1380 | if (_argo0) { | |
1381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); | |
1384 | return NULL; | |
1385 | } | |
1386 | } | |
1387 | if (_argo2) { | |
1388 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); | |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
1394 | if (_obj3) | |
1395 | { | |
1396 | _arg3 = &temp; | |
1397 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1398 | return NULL; | |
1399 | } | |
1400 | if (_obj4) | |
1401 | { | |
1402 | _arg4 = &temp0; | |
1403 | if (! wxSize_helper(_obj4, &_arg4)) | |
1404 | return NULL; | |
1405 | } | |
1406 | if (_argo6) { | |
1407 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1408 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); | |
1410 | return NULL; | |
1411 | } | |
1412 | } | |
1413 | { | |
1414 | wxPy_BEGIN_ALLOW_THREADS; | |
1415 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1416 | ||
1417 | wxPy_END_ALLOW_THREADS; | |
1418 | if (PyErr_Occurred()) return NULL; | |
1419 | } if (_result) { | |
1420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1421 | _resultobj = Py_BuildValue("s",_ptemp); | |
1422 | } else { | |
1423 | Py_INCREF(Py_None); | |
1424 | _resultobj = Py_None; | |
1425 | } | |
1426 | return _resultobj; | |
1427 | } | |
1428 | ||
1429 | #define new_wxPreBitmapButton() (new wxBitmapButton()) | |
1430 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1431 | PyObject * _resultobj; | |
1432 | wxBitmapButton * _result; | |
1433 | char *_kwnames[] = { NULL }; | |
1434 | char _ptemp[128]; | |
1435 | ||
1436 | self = self; | |
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1438 | return NULL; | |
1439 | { | |
1440 | wxPy_BEGIN_ALLOW_THREADS; | |
1441 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); | |
1442 | ||
1443 | wxPy_END_ALLOW_THREADS; | |
1444 | if (PyErr_Occurred()) return NULL; | |
1445 | } if (_result) { | |
1446 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1447 | _resultobj = Py_BuildValue("s",_ptemp); | |
1448 | } else { | |
1449 | Py_INCREF(Py_None); | |
1450 | _resultobj = Py_None; | |
1451 | } | |
1452 | return _resultobj; | |
1453 | } | |
1454 | ||
1455 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1456 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1457 | PyObject * _resultobj; | |
1458 | bool _result; | |
1459 | wxBitmapButton * _arg0; | |
1460 | wxWindow * _arg1; | |
1461 | wxWindowID _arg2; | |
1462 | wxBitmap * _arg3; | |
1463 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1464 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1465 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1466 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1467 | char * _arg8 = (char *) "button"; | |
1468 | PyObject * _argo0 = 0; | |
1469 | PyObject * _argo1 = 0; | |
1470 | PyObject * _argo3 = 0; | |
1471 | wxPoint temp; | |
1472 | PyObject * _obj4 = 0; | |
1473 | wxSize temp0; | |
1474 | PyObject * _obj5 = 0; | |
1475 | PyObject * _argo7 = 0; | |
1476 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1480 | return NULL; | |
1481 | if (_argo0) { | |
1482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1485 | return NULL; | |
1486 | } | |
1487 | } | |
1488 | if (_argo1) { | |
1489 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1490 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1492 | return NULL; | |
1493 | } | |
1494 | } | |
1495 | if (_argo3) { | |
1496 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1497 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1499 | return NULL; | |
1500 | } | |
1501 | } | |
1502 | if (_obj4) | |
1503 | { | |
1504 | _arg4 = &temp; | |
1505 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1506 | return NULL; | |
1507 | } | |
1508 | if (_obj5) | |
1509 | { | |
1510 | _arg5 = &temp0; | |
1511 | if (! wxSize_helper(_obj5, &_arg5)) | |
1512 | return NULL; | |
1513 | } | |
1514 | if (_argo7) { | |
1515 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1516 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1518 | return NULL; | |
1519 | } | |
1520 | } | |
1521 | { | |
1522 | wxPy_BEGIN_ALLOW_THREADS; | |
1523 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1524 | ||
1525 | wxPy_END_ALLOW_THREADS; | |
1526 | if (PyErr_Occurred()) return NULL; | |
1527 | } _resultobj = Py_BuildValue("i",_result); | |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
1532 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject * _resultobj; | |
1534 | wxBitmap * _result; | |
1535 | wxBitmapButton * _arg0; | |
1536 | PyObject * _argo0 = 0; | |
1537 | char *_kwnames[] = { "self", NULL }; | |
1538 | char _ptemp[128]; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) | |
1542 | return NULL; | |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
1551 | wxPy_BEGIN_ALLOW_THREADS; | |
1552 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); | |
1553 | ||
1554 | wxPy_END_ALLOW_THREADS; | |
1555 | if (PyErr_Occurred()) return NULL; | |
1556 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1557 | _resultobj = Py_BuildValue("s",_ptemp); | |
1558 | return _resultobj; | |
1559 | } | |
1560 | ||
1561 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
1562 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1563 | PyObject * _resultobj; | |
1564 | wxBitmap * _result; | |
1565 | wxBitmapButton * _arg0; | |
1566 | PyObject * _argo0 = 0; | |
1567 | char *_kwnames[] = { "self", NULL }; | |
1568 | char _ptemp[128]; | |
1569 | ||
1570 | self = self; | |
1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) | |
1572 | return NULL; | |
1573 | if (_argo0) { | |
1574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1577 | return NULL; | |
1578 | } | |
1579 | } | |
1580 | { | |
1581 | wxPy_BEGIN_ALLOW_THREADS; | |
1582 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); | |
1583 | ||
1584 | wxPy_END_ALLOW_THREADS; | |
1585 | if (PyErr_Occurred()) return NULL; | |
1586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1587 | _resultobj = Py_BuildValue("s",_ptemp); | |
1588 | return _resultobj; | |
1589 | } | |
1590 | ||
1591 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
1592 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1593 | PyObject * _resultobj; | |
1594 | wxBitmap * _result; | |
1595 | wxBitmapButton * _arg0; | |
1596 | PyObject * _argo0 = 0; | |
1597 | char *_kwnames[] = { "self", NULL }; | |
1598 | char _ptemp[128]; | |
1599 | ||
1600 | self = self; | |
1601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) | |
1602 | return NULL; | |
1603 | if (_argo0) { | |
1604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); | |
1607 | return NULL; | |
1608 | } | |
1609 | } | |
1610 | { | |
1611 | wxPy_BEGIN_ALLOW_THREADS; | |
1612 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); | |
1613 | ||
1614 | wxPy_END_ALLOW_THREADS; | |
1615 | if (PyErr_Occurred()) return NULL; | |
1616 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1617 | _resultobj = Py_BuildValue("s",_ptemp); | |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
1622 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | wxBitmap * _result; | |
1625 | wxBitmapButton * _arg0; | |
1626 | PyObject * _argo0 = 0; | |
1627 | char *_kwnames[] = { "self", NULL }; | |
1628 | char _ptemp[128]; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
1641 | wxPy_BEGIN_ALLOW_THREADS; | |
1642 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); | |
1643 | ||
1644 | wxPy_END_ALLOW_THREADS; | |
1645 | if (PyErr_Occurred()) return NULL; | |
1646 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1647 | _resultobj = Py_BuildValue("s",_ptemp); | |
1648 | return _resultobj; | |
1649 | } | |
1650 | ||
1651 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
1652 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1653 | PyObject * _resultobj; | |
1654 | wxBitmapButton * _arg0; | |
1655 | wxBitmap * _arg1; | |
1656 | PyObject * _argo0 = 0; | |
1657 | PyObject * _argo1 = 0; | |
1658 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1659 | ||
1660 | self = self; | |
1661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) | |
1662 | return NULL; | |
1663 | if (_argo0) { | |
1664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1667 | return NULL; | |
1668 | } | |
1669 | } | |
1670 | if (_argo1) { | |
1671 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1672 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); | |
1674 | return NULL; | |
1675 | } | |
1676 | } | |
1677 | { | |
1678 | wxPy_BEGIN_ALLOW_THREADS; | |
1679 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
1680 | ||
1681 | wxPy_END_ALLOW_THREADS; | |
1682 | if (PyErr_Occurred()) return NULL; | |
1683 | } Py_INCREF(Py_None); | |
1684 | _resultobj = Py_None; | |
1685 | return _resultobj; | |
1686 | } | |
1687 | ||
1688 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
1689 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1690 | PyObject * _resultobj; | |
1691 | wxBitmapButton * _arg0; | |
1692 | wxBitmap * _arg1; | |
1693 | PyObject * _argo0 = 0; | |
1694 | PyObject * _argo1 = 0; | |
1695 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1696 | ||
1697 | self = self; | |
1698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) | |
1699 | return NULL; | |
1700 | if (_argo0) { | |
1701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); | |
1704 | return NULL; | |
1705 | } | |
1706 | } | |
1707 | if (_argo1) { | |
1708 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1709 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); | |
1711 | return NULL; | |
1712 | } | |
1713 | } | |
1714 | { | |
1715 | wxPy_BEGIN_ALLOW_THREADS; | |
1716 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
1717 | ||
1718 | wxPy_END_ALLOW_THREADS; | |
1719 | if (PyErr_Occurred()) return NULL; | |
1720 | } Py_INCREF(Py_None); | |
1721 | _resultobj = Py_None; | |
1722 | return _resultobj; | |
1723 | } | |
1724 | ||
1725 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
1726 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1727 | PyObject * _resultobj; | |
1728 | wxBitmapButton * _arg0; | |
1729 | wxBitmap * _arg1; | |
1730 | PyObject * _argo0 = 0; | |
1731 | PyObject * _argo1 = 0; | |
1732 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1733 | ||
1734 | self = self; | |
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) | |
1736 | return NULL; | |
1737 | if (_argo0) { | |
1738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); | |
1741 | return NULL; | |
1742 | } | |
1743 | } | |
1744 | if (_argo1) { | |
1745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); | |
1748 | return NULL; | |
1749 | } | |
1750 | } | |
1751 | { | |
1752 | wxPy_BEGIN_ALLOW_THREADS; | |
1753 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
1754 | ||
1755 | wxPy_END_ALLOW_THREADS; | |
1756 | if (PyErr_Occurred()) return NULL; | |
1757 | } Py_INCREF(Py_None); | |
1758 | _resultobj = Py_None; | |
1759 | return _resultobj; | |
1760 | } | |
1761 | ||
1762 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
1763 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject * _resultobj; | |
1765 | wxBitmapButton * _arg0; | |
1766 | wxBitmap * _arg1; | |
1767 | PyObject * _argo0 = 0; | |
1768 | PyObject * _argo1 = 0; | |
1769 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1770 | ||
1771 | self = self; | |
1772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) | |
1773 | return NULL; | |
1774 | if (_argo0) { | |
1775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); | |
1778 | return NULL; | |
1779 | } | |
1780 | } | |
1781 | if (_argo1) { | |
1782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); | |
1785 | return NULL; | |
1786 | } | |
1787 | } | |
1788 | { | |
1789 | wxPy_BEGIN_ALLOW_THREADS; | |
1790 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
1791 | ||
1792 | wxPy_END_ALLOW_THREADS; | |
1793 | if (PyErr_Occurred()) return NULL; | |
1794 | } Py_INCREF(Py_None); | |
1795 | _resultobj = Py_None; | |
1796 | return _resultobj; | |
1797 | } | |
1798 | ||
1799 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
1800 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject * _resultobj; | |
1802 | wxBitmapButton * _arg0; | |
1803 | int _arg1; | |
1804 | int _arg2; | |
1805 | PyObject * _argo0 = 0; | |
1806 | char *_kwnames[] = { "self","x","y", NULL }; | |
1807 | ||
1808 | self = self; | |
1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1810 | return NULL; | |
1811 | if (_argo0) { | |
1812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1815 | return NULL; | |
1816 | } | |
1817 | } | |
1818 | { | |
1819 | wxPy_BEGIN_ALLOW_THREADS; | |
1820 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1821 | ||
1822 | wxPy_END_ALLOW_THREADS; | |
1823 | if (PyErr_Occurred()) return NULL; | |
1824 | } Py_INCREF(Py_None); | |
1825 | _resultobj = Py_None; | |
1826 | return _resultobj; | |
1827 | } | |
1828 | ||
1829 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1830 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1831 | PyObject * _resultobj; | |
1832 | int _result; | |
1833 | wxBitmapButton * _arg0; | |
1834 | PyObject * _argo0 = 0; | |
1835 | char *_kwnames[] = { "self", NULL }; | |
1836 | ||
1837 | self = self; | |
1838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1839 | return NULL; | |
1840 | if (_argo0) { | |
1841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1844 | return NULL; | |
1845 | } | |
1846 | } | |
1847 | { | |
1848 | wxPy_BEGIN_ALLOW_THREADS; | |
1849 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1850 | ||
1851 | wxPy_END_ALLOW_THREADS; | |
1852 | if (PyErr_Occurred()) return NULL; | |
1853 | } _resultobj = Py_BuildValue("i",_result); | |
1854 | return _resultobj; | |
1855 | } | |
1856 | ||
1857 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1858 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1859 | PyObject * _resultobj; | |
1860 | int _result; | |
1861 | wxBitmapButton * _arg0; | |
1862 | PyObject * _argo0 = 0; | |
1863 | char *_kwnames[] = { "self", NULL }; | |
1864 | ||
1865 | self = self; | |
1866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1867 | return NULL; | |
1868 | if (_argo0) { | |
1869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1872 | return NULL; | |
1873 | } | |
1874 | } | |
1875 | { | |
1876 | wxPy_BEGIN_ALLOW_THREADS; | |
1877 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1878 | ||
1879 | wxPy_END_ALLOW_THREADS; | |
1880 | if (PyErr_Occurred()) return NULL; | |
1881 | } _resultobj = Py_BuildValue("i",_result); | |
1882 | return _resultobj; | |
1883 | } | |
1884 | ||
1885 | static void *SwigwxCheckBoxTowxControl(void *ptr) { | |
1886 | wxCheckBox *src; | |
1887 | wxControl *dest; | |
1888 | src = (wxCheckBox *) ptr; | |
1889 | dest = (wxControl *) src; | |
1890 | return (void *) dest; | |
1891 | } | |
1892 | ||
1893 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1894 | wxCheckBox *src; | |
1895 | wxWindow *dest; | |
1896 | src = (wxCheckBox *) ptr; | |
1897 | dest = (wxWindow *) src; | |
1898 | return (void *) dest; | |
1899 | } | |
1900 | ||
1901 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1902 | wxCheckBox *src; | |
1903 | wxEvtHandler *dest; | |
1904 | src = (wxCheckBox *) ptr; | |
1905 | dest = (wxEvtHandler *) src; | |
1906 | return (void *) dest; | |
1907 | } | |
1908 | ||
1909 | static void *SwigwxCheckBoxTowxObject(void *ptr) { | |
1910 | wxCheckBox *src; | |
1911 | wxObject *dest; | |
1912 | src = (wxCheckBox *) ptr; | |
1913 | dest = (wxObject *) src; | |
1914 | return (void *) dest; | |
1915 | } | |
1916 | ||
1917 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1918 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1919 | PyObject * _resultobj; | |
1920 | wxCheckBox * _result; | |
1921 | wxWindow * _arg0; | |
1922 | wxWindowID _arg1; | |
1923 | wxString * _arg2; | |
1924 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1925 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1926 | long _arg5 = (long ) 0; | |
1927 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1928 | char * _arg7 = (char *) "checkBox"; | |
1929 | PyObject * _argo0 = 0; | |
1930 | PyObject * _obj2 = 0; | |
1931 | wxPoint temp; | |
1932 | PyObject * _obj3 = 0; | |
1933 | wxSize temp0; | |
1934 | PyObject * _obj4 = 0; | |
1935 | PyObject * _argo6 = 0; | |
1936 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; | |
1937 | char _ptemp[128]; | |
1938 | ||
1939 | self = self; | |
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1941 | return NULL; | |
1942 | if (_argo0) { | |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); | |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
1949 | { | |
1950 | #if PYTHON_API_VERSION >= 1009 | |
1951 | char* tmpPtr; int tmpSize; | |
1952 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1954 | return NULL; | |
1955 | } | |
1956 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1957 | return NULL; | |
1958 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1959 | #else | |
1960 | if (!PyString_Check(_obj2)) { | |
1961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1962 | return NULL; | |
1963 | } | |
1964 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1965 | #endif | |
1966 | } | |
1967 | if (_obj3) | |
1968 | { | |
1969 | _arg3 = &temp; | |
1970 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1971 | return NULL; | |
1972 | } | |
1973 | if (_obj4) | |
1974 | { | |
1975 | _arg4 = &temp0; | |
1976 | if (! wxSize_helper(_obj4, &_arg4)) | |
1977 | return NULL; | |
1978 | } | |
1979 | if (_argo6) { | |
1980 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
1987 | wxPy_BEGIN_ALLOW_THREADS; | |
1988 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1989 | ||
1990 | wxPy_END_ALLOW_THREADS; | |
1991 | if (PyErr_Occurred()) return NULL; | |
1992 | } if (_result) { | |
1993 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1994 | _resultobj = Py_BuildValue("s",_ptemp); | |
1995 | } else { | |
1996 | Py_INCREF(Py_None); | |
1997 | _resultobj = Py_None; | |
1998 | } | |
1999 | { | |
2000 | if (_obj2) | |
2001 | delete _arg2; | |
2002 | } | |
2003 | return _resultobj; | |
2004 | } | |
2005 | ||
2006 | #define new_wxPreCheckBox() (new wxCheckBox()) | |
2007 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2008 | PyObject * _resultobj; | |
2009 | wxCheckBox * _result; | |
2010 | char *_kwnames[] = { NULL }; | |
2011 | char _ptemp[128]; | |
2012 | ||
2013 | self = self; | |
2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2015 | return NULL; | |
2016 | { | |
2017 | wxPy_BEGIN_ALLOW_THREADS; | |
2018 | _result = (wxCheckBox *)new_wxPreCheckBox(); | |
2019 | ||
2020 | wxPy_END_ALLOW_THREADS; | |
2021 | if (PyErr_Occurred()) return NULL; | |
2022 | } if (_result) { | |
2023 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2024 | _resultobj = Py_BuildValue("s",_ptemp); | |
2025 | } else { | |
2026 | Py_INCREF(Py_None); | |
2027 | _resultobj = Py_None; | |
2028 | } | |
2029 | return _resultobj; | |
2030 | } | |
2031 | ||
2032 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2033 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2034 | PyObject * _resultobj; | |
2035 | bool _result; | |
2036 | wxCheckBox * _arg0; | |
2037 | wxWindow * _arg1; | |
2038 | wxWindowID _arg2; | |
2039 | wxString * _arg3; | |
2040 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2041 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2042 | long _arg6 = (long ) 0; | |
2043 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2044 | char * _arg8 = (char *) "checkBox"; | |
2045 | PyObject * _argo0 = 0; | |
2046 | PyObject * _argo1 = 0; | |
2047 | PyObject * _obj3 = 0; | |
2048 | wxPoint temp; | |
2049 | PyObject * _obj4 = 0; | |
2050 | wxSize temp0; | |
2051 | PyObject * _obj5 = 0; | |
2052 | PyObject * _argo7 = 0; | |
2053 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2054 | ||
2055 | self = self; | |
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2057 | return NULL; | |
2058 | if (_argo0) { | |
2059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2062 | return NULL; | |
2063 | } | |
2064 | } | |
2065 | if (_argo1) { | |
2066 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2067 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2069 | return NULL; | |
2070 | } | |
2071 | } | |
2072 | { | |
2073 | #if PYTHON_API_VERSION >= 1009 | |
2074 | char* tmpPtr; int tmpSize; | |
2075 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2076 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2077 | return NULL; | |
2078 | } | |
2079 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2080 | return NULL; | |
2081 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2082 | #else | |
2083 | if (!PyString_Check(_obj3)) { | |
2084 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2085 | return NULL; | |
2086 | } | |
2087 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2088 | #endif | |
2089 | } | |
2090 | if (_obj4) | |
2091 | { | |
2092 | _arg4 = &temp; | |
2093 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2094 | return NULL; | |
2095 | } | |
2096 | if (_obj5) | |
2097 | { | |
2098 | _arg5 = &temp0; | |
2099 | if (! wxSize_helper(_obj5, &_arg5)) | |
2100 | return NULL; | |
2101 | } | |
2102 | if (_argo7) { | |
2103 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2104 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2106 | return NULL; | |
2107 | } | |
2108 | } | |
2109 | { | |
2110 | wxPy_BEGIN_ALLOW_THREADS; | |
2111 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
2112 | ||
2113 | wxPy_END_ALLOW_THREADS; | |
2114 | if (PyErr_Occurred()) return NULL; | |
2115 | } _resultobj = Py_BuildValue("i",_result); | |
2116 | { | |
2117 | if (_obj3) | |
2118 | delete _arg3; | |
2119 | } | |
2120 | return _resultobj; | |
2121 | } | |
2122 | ||
2123 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2124 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2125 | PyObject * _resultobj; | |
2126 | bool _result; | |
2127 | wxCheckBox * _arg0; | |
2128 | PyObject * _argo0 = 0; | |
2129 | char *_kwnames[] = { "self", NULL }; | |
2130 | ||
2131 | self = self; | |
2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) | |
2133 | return NULL; | |
2134 | if (_argo0) { | |
2135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); | |
2138 | return NULL; | |
2139 | } | |
2140 | } | |
2141 | { | |
2142 | wxPy_BEGIN_ALLOW_THREADS; | |
2143 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
2144 | ||
2145 | wxPy_END_ALLOW_THREADS; | |
2146 | if (PyErr_Occurred()) return NULL; | |
2147 | } _resultobj = Py_BuildValue("i",_result); | |
2148 | return _resultobj; | |
2149 | } | |
2150 | ||
2151 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2152 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2153 | PyObject * _resultobj; | |
2154 | wxCheckBox * _arg0; | |
2155 | bool _arg1; | |
2156 | PyObject * _argo0 = 0; | |
2157 | int tempbool1; | |
2158 | char *_kwnames[] = { "self","state", NULL }; | |
2159 | ||
2160 | self = self; | |
2161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) | |
2162 | return NULL; | |
2163 | if (_argo0) { | |
2164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); | |
2167 | return NULL; | |
2168 | } | |
2169 | } | |
2170 | _arg1 = (bool ) tempbool1; | |
2171 | { | |
2172 | wxPy_BEGIN_ALLOW_THREADS; | |
2173 | wxCheckBox_SetValue(_arg0,_arg1); | |
2174 | ||
2175 | wxPy_END_ALLOW_THREADS; | |
2176 | if (PyErr_Occurred()) return NULL; | |
2177 | } Py_INCREF(Py_None); | |
2178 | _resultobj = Py_None; | |
2179 | return _resultobj; | |
2180 | } | |
2181 | ||
2182 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { | |
2183 | wxChoice *src; | |
2184 | wxControlWithItems *dest; | |
2185 | src = (wxChoice *) ptr; | |
2186 | dest = (wxControlWithItems *) src; | |
2187 | return (void *) dest; | |
2188 | } | |
2189 | ||
2190 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
2191 | wxChoice *src; | |
2192 | wxControl *dest; | |
2193 | src = (wxChoice *) ptr; | |
2194 | dest = (wxControl *) src; | |
2195 | return (void *) dest; | |
2196 | } | |
2197 | ||
2198 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2199 | wxChoice *src; | |
2200 | wxWindow *dest; | |
2201 | src = (wxChoice *) ptr; | |
2202 | dest = (wxWindow *) src; | |
2203 | return (void *) dest; | |
2204 | } | |
2205 | ||
2206 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2207 | wxChoice *src; | |
2208 | wxEvtHandler *dest; | |
2209 | src = (wxChoice *) ptr; | |
2210 | dest = (wxEvtHandler *) src; | |
2211 | return (void *) dest; | |
2212 | } | |
2213 | ||
2214 | static void *SwigwxChoiceTowxObject(void *ptr) { | |
2215 | wxChoice *src; | |
2216 | wxObject *dest; | |
2217 | src = (wxChoice *) ptr; | |
2218 | dest = (wxObject *) src; | |
2219 | return (void *) dest; | |
2220 | } | |
2221 | ||
2222 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2223 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject * _resultobj; | |
2225 | wxChoice * _result; | |
2226 | wxWindow * _arg0; | |
2227 | wxWindowID _arg1; | |
2228 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2229 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2230 | int _arg4 = (int ) 0; | |
2231 | wxString * _arg5 = (wxString *) NULL; | |
2232 | long _arg6 = (long ) 0; | |
2233 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2234 | char * _arg8 = (char *) "choice"; | |
2235 | PyObject * _argo0 = 0; | |
2236 | wxPoint temp; | |
2237 | PyObject * _obj2 = 0; | |
2238 | wxSize temp0; | |
2239 | PyObject * _obj3 = 0; | |
2240 | PyObject * _obj5 = 0; | |
2241 | PyObject * _argo7 = 0; | |
2242 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
2243 | char _ptemp[128]; | |
2244 | ||
2245 | self = self; | |
2246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2247 | return NULL; | |
2248 | if (_argo0) { | |
2249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); | |
2252 | return NULL; | |
2253 | } | |
2254 | } | |
2255 | if (_obj2) | |
2256 | { | |
2257 | _arg2 = &temp; | |
2258 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2259 | return NULL; | |
2260 | } | |
2261 | if (_obj3) | |
2262 | { | |
2263 | _arg3 = &temp0; | |
2264 | if (! wxSize_helper(_obj3, &_arg3)) | |
2265 | return NULL; | |
2266 | } | |
2267 | if (_obj5) | |
2268 | { | |
2269 | _arg5 = wxString_LIST_helper(_obj5); | |
2270 | if (_arg5 == NULL) { | |
2271 | return NULL; | |
2272 | } | |
2273 | } | |
2274 | if (_argo7) { | |
2275 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2276 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); | |
2278 | return NULL; | |
2279 | } | |
2280 | } | |
2281 | { | |
2282 | if (_obj5) { | |
2283 | _arg4 = PyList_Size(_obj5); | |
2284 | } | |
2285 | else { | |
2286 | _arg4 = 0; | |
2287 | } | |
2288 | } | |
2289 | { | |
2290 | wxPy_BEGIN_ALLOW_THREADS; | |
2291 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
2292 | ||
2293 | wxPy_END_ALLOW_THREADS; | |
2294 | if (PyErr_Occurred()) return NULL; | |
2295 | } if (_result) { | |
2296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2297 | _resultobj = Py_BuildValue("s",_ptemp); | |
2298 | } else { | |
2299 | Py_INCREF(Py_None); | |
2300 | _resultobj = Py_None; | |
2301 | } | |
2302 | { | |
2303 | delete [] _arg5; | |
2304 | } | |
2305 | return _resultobj; | |
2306 | } | |
2307 | ||
2308 | #define new_wxPreChoice() (new wxChoice()) | |
2309 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject * _resultobj; | |
2311 | wxChoice * _result; | |
2312 | char *_kwnames[] = { NULL }; | |
2313 | char _ptemp[128]; | |
2314 | ||
2315 | self = self; | |
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) | |
2317 | return NULL; | |
2318 | { | |
2319 | wxPy_BEGIN_ALLOW_THREADS; | |
2320 | _result = (wxChoice *)new_wxPreChoice(); | |
2321 | ||
2322 | wxPy_END_ALLOW_THREADS; | |
2323 | if (PyErr_Occurred()) return NULL; | |
2324 | } if (_result) { | |
2325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2326 | _resultobj = Py_BuildValue("s",_ptemp); | |
2327 | } else { | |
2328 | Py_INCREF(Py_None); | |
2329 | _resultobj = Py_None; | |
2330 | } | |
2331 | return _resultobj; | |
2332 | } | |
2333 | ||
2334 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2335 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2336 | PyObject * _resultobj; | |
2337 | bool _result; | |
2338 | wxChoice * _arg0; | |
2339 | wxWindow * _arg1; | |
2340 | wxWindowID _arg2; | |
2341 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2342 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2343 | int _arg5 = (int ) 0; | |
2344 | wxString * _arg6 = (wxString *) NULL; | |
2345 | long _arg7 = (long ) 0; | |
2346 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2347 | char * _arg9 = (char *) "choice"; | |
2348 | PyObject * _argo0 = 0; | |
2349 | PyObject * _argo1 = 0; | |
2350 | wxPoint temp; | |
2351 | PyObject * _obj3 = 0; | |
2352 | wxSize temp0; | |
2353 | PyObject * _obj4 = 0; | |
2354 | PyObject * _obj6 = 0; | |
2355 | PyObject * _argo8 = 0; | |
2356 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2357 | ||
2358 | self = self; | |
2359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2360 | return NULL; | |
2361 | if (_argo0) { | |
2362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2365 | return NULL; | |
2366 | } | |
2367 | } | |
2368 | if (_argo1) { | |
2369 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2370 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2372 | return NULL; | |
2373 | } | |
2374 | } | |
2375 | if (_obj3) | |
2376 | { | |
2377 | _arg3 = &temp; | |
2378 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2379 | return NULL; | |
2380 | } | |
2381 | if (_obj4) | |
2382 | { | |
2383 | _arg4 = &temp0; | |
2384 | if (! wxSize_helper(_obj4, &_arg4)) | |
2385 | return NULL; | |
2386 | } | |
2387 | if (_obj6) | |
2388 | { | |
2389 | _arg6 = wxString_LIST_helper(_obj6); | |
2390 | if (_arg6 == NULL) { | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | if (_argo8) { | |
2395 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2398 | return NULL; | |
2399 | } | |
2400 | } | |
2401 | { | |
2402 | if (_obj6) { | |
2403 | _arg5 = PyList_Size(_obj6); | |
2404 | } | |
2405 | else { | |
2406 | _arg5 = 0; | |
2407 | } | |
2408 | } | |
2409 | { | |
2410 | wxPy_BEGIN_ALLOW_THREADS; | |
2411 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
2412 | ||
2413 | wxPy_END_ALLOW_THREADS; | |
2414 | if (PyErr_Occurred()) return NULL; | |
2415 | } _resultobj = Py_BuildValue("i",_result); | |
2416 | { | |
2417 | delete [] _arg6; | |
2418 | } | |
2419 | return _resultobj; | |
2420 | } | |
2421 | ||
2422 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
2423 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject * _resultobj; | |
2425 | wxChoice * _arg0; | |
2426 | PyObject * _argo0 = 0; | |
2427 | char *_kwnames[] = { "self", NULL }; | |
2428 | ||
2429 | self = self; | |
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) | |
2431 | return NULL; | |
2432 | if (_argo0) { | |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); | |
2436 | return NULL; | |
2437 | } | |
2438 | } | |
2439 | { | |
2440 | wxPy_BEGIN_ALLOW_THREADS; | |
2441 | wxChoice_Clear(_arg0); | |
2442 | ||
2443 | wxPy_END_ALLOW_THREADS; | |
2444 | if (PyErr_Occurred()) return NULL; | |
2445 | } Py_INCREF(Py_None); | |
2446 | _resultobj = Py_None; | |
2447 | return _resultobj; | |
2448 | } | |
2449 | ||
2450 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
2451 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2452 | PyObject * _resultobj; | |
2453 | int _result; | |
2454 | wxChoice * _arg0; | |
2455 | PyObject * _argo0 = 0; | |
2456 | char *_kwnames[] = { "self", NULL }; | |
2457 | ||
2458 | self = self; | |
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) | |
2460 | return NULL; | |
2461 | if (_argo0) { | |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); | |
2465 | return NULL; | |
2466 | } | |
2467 | } | |
2468 | { | |
2469 | wxPy_BEGIN_ALLOW_THREADS; | |
2470 | _result = (int )wxChoice_GetColumns(_arg0); | |
2471 | ||
2472 | wxPy_END_ALLOW_THREADS; | |
2473 | if (PyErr_Occurred()) return NULL; | |
2474 | } _resultobj = Py_BuildValue("i",_result); | |
2475 | return _resultobj; | |
2476 | } | |
2477 | ||
2478 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
2479 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject * _resultobj; | |
2481 | wxChoice * _arg0; | |
2482 | int _arg1 = (int ) 1; | |
2483 | PyObject * _argo0 = 0; | |
2484 | char *_kwnames[] = { "self","n", NULL }; | |
2485 | ||
2486 | self = self; | |
2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) | |
2488 | return NULL; | |
2489 | if (_argo0) { | |
2490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); | |
2493 | return NULL; | |
2494 | } | |
2495 | } | |
2496 | { | |
2497 | wxPy_BEGIN_ALLOW_THREADS; | |
2498 | wxChoice_SetColumns(_arg0,_arg1); | |
2499 | ||
2500 | wxPy_END_ALLOW_THREADS; | |
2501 | if (PyErr_Occurred()) return NULL; | |
2502 | } Py_INCREF(Py_None); | |
2503 | _resultobj = Py_None; | |
2504 | return _resultobj; | |
2505 | } | |
2506 | ||
2507 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
2508 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject * _resultobj; | |
2510 | wxChoice * _arg0; | |
2511 | int _arg1; | |
2512 | PyObject * _argo0 = 0; | |
2513 | char *_kwnames[] = { "self","n", NULL }; | |
2514 | ||
2515 | self = self; | |
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2517 | return NULL; | |
2518 | if (_argo0) { | |
2519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); | |
2522 | return NULL; | |
2523 | } | |
2524 | } | |
2525 | { | |
2526 | wxPy_BEGIN_ALLOW_THREADS; | |
2527 | wxChoice_SetSelection(_arg0,_arg1); | |
2528 | ||
2529 | wxPy_END_ALLOW_THREADS; | |
2530 | if (PyErr_Occurred()) return NULL; | |
2531 | } Py_INCREF(Py_None); | |
2532 | _resultobj = Py_None; | |
2533 | return _resultobj; | |
2534 | } | |
2535 | ||
2536 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
2537 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2538 | PyObject * _resultobj; | |
2539 | wxChoice * _arg0; | |
2540 | wxString * _arg1; | |
2541 | PyObject * _argo0 = 0; | |
2542 | PyObject * _obj1 = 0; | |
2543 | char *_kwnames[] = { "self","string", NULL }; | |
2544 | ||
2545 | self = self; | |
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
2547 | return NULL; | |
2548 | if (_argo0) { | |
2549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); | |
2552 | return NULL; | |
2553 | } | |
2554 | } | |
2555 | { | |
2556 | #if PYTHON_API_VERSION >= 1009 | |
2557 | char* tmpPtr; int tmpSize; | |
2558 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2559 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2560 | return NULL; | |
2561 | } | |
2562 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2563 | return NULL; | |
2564 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2565 | #else | |
2566 | if (!PyString_Check(_obj1)) { | |
2567 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2568 | return NULL; | |
2569 | } | |
2570 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2571 | #endif | |
2572 | } | |
2573 | { | |
2574 | wxPy_BEGIN_ALLOW_THREADS; | |
2575 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
2576 | ||
2577 | wxPy_END_ALLOW_THREADS; | |
2578 | if (PyErr_Occurred()) return NULL; | |
2579 | } Py_INCREF(Py_None); | |
2580 | _resultobj = Py_None; | |
2581 | { | |
2582 | if (_obj1) | |
2583 | delete _arg1; | |
2584 | } | |
2585 | return _resultobj; | |
2586 | } | |
2587 | ||
2588 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
2589 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject * _resultobj; | |
2591 | wxChoice * _arg0; | |
2592 | int _arg1; | |
2593 | wxString * _arg2; | |
2594 | PyObject * _argo0 = 0; | |
2595 | PyObject * _obj2 = 0; | |
2596 | char *_kwnames[] = { "self","n","s", NULL }; | |
2597 | ||
2598 | self = self; | |
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2600 | return NULL; | |
2601 | if (_argo0) { | |
2602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2605 | return NULL; | |
2606 | } | |
2607 | } | |
2608 | { | |
2609 | #if PYTHON_API_VERSION >= 1009 | |
2610 | char* tmpPtr; int tmpSize; | |
2611 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2613 | return NULL; | |
2614 | } | |
2615 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2616 | return NULL; | |
2617 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2618 | #else | |
2619 | if (!PyString_Check(_obj2)) { | |
2620 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2621 | return NULL; | |
2622 | } | |
2623 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2624 | #endif | |
2625 | } | |
2626 | { | |
2627 | wxPy_BEGIN_ALLOW_THREADS; | |
2628 | wxChoice_SetString(_arg0,_arg1,*_arg2); | |
2629 | ||
2630 | wxPy_END_ALLOW_THREADS; | |
2631 | if (PyErr_Occurred()) return NULL; | |
2632 | } Py_INCREF(Py_None); | |
2633 | _resultobj = Py_None; | |
2634 | { | |
2635 | if (_obj2) | |
2636 | delete _arg2; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | static void *SwigwxComboBoxTowxChoice(void *ptr) { | |
2642 | wxComboBox *src; | |
2643 | wxChoice *dest; | |
2644 | src = (wxComboBox *) ptr; | |
2645 | dest = (wxChoice *) src; | |
2646 | return (void *) dest; | |
2647 | } | |
2648 | ||
2649 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { | |
2650 | wxComboBox *src; | |
2651 | wxControlWithItems *dest; | |
2652 | src = (wxComboBox *) ptr; | |
2653 | dest = (wxControlWithItems *) src; | |
2654 | return (void *) dest; | |
2655 | } | |
2656 | ||
2657 | static void *SwigwxComboBoxTowxControl(void *ptr) { | |
2658 | wxComboBox *src; | |
2659 | wxControl *dest; | |
2660 | src = (wxComboBox *) ptr; | |
2661 | dest = (wxControl *) src; | |
2662 | return (void *) dest; | |
2663 | } | |
2664 | ||
2665 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2666 | wxComboBox *src; | |
2667 | wxWindow *dest; | |
2668 | src = (wxComboBox *) ptr; | |
2669 | dest = (wxWindow *) src; | |
2670 | return (void *) dest; | |
2671 | } | |
2672 | ||
2673 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2674 | wxComboBox *src; | |
2675 | wxEvtHandler *dest; | |
2676 | src = (wxComboBox *) ptr; | |
2677 | dest = (wxEvtHandler *) src; | |
2678 | return (void *) dest; | |
2679 | } | |
2680 | ||
2681 | static void *SwigwxComboBoxTowxObject(void *ptr) { | |
2682 | wxComboBox *src; | |
2683 | wxObject *dest; | |
2684 | src = (wxComboBox *) ptr; | |
2685 | dest = (wxObject *) src; | |
2686 | return (void *) dest; | |
2687 | } | |
2688 | ||
2689 | #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)) | |
2690 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2691 | PyObject * _resultobj; | |
2692 | wxComboBox * _result; | |
2693 | wxWindow * _arg0; | |
2694 | wxWindowID _arg1; | |
2695 | char * _arg2 = (char *) ""; | |
2696 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2697 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2698 | int _arg5 = (int ) 0; | |
2699 | wxString * _arg6 = (wxString *) NULL; | |
2700 | long _arg7 = (long ) 0; | |
2701 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2702 | char * _arg9 = (char *) "comboBox"; | |
2703 | PyObject * _argo0 = 0; | |
2704 | wxPoint temp; | |
2705 | PyObject * _obj3 = 0; | |
2706 | wxSize temp0; | |
2707 | PyObject * _obj4 = 0; | |
2708 | PyObject * _obj6 = 0; | |
2709 | PyObject * _argo8 = 0; | |
2710 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2711 | char _ptemp[128]; | |
2712 | ||
2713 | self = self; | |
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2715 | return NULL; | |
2716 | if (_argo0) { | |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); | |
2720 | return NULL; | |
2721 | } | |
2722 | } | |
2723 | if (_obj3) | |
2724 | { | |
2725 | _arg3 = &temp; | |
2726 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2727 | return NULL; | |
2728 | } | |
2729 | if (_obj4) | |
2730 | { | |
2731 | _arg4 = &temp0; | |
2732 | if (! wxSize_helper(_obj4, &_arg4)) | |
2733 | return NULL; | |
2734 | } | |
2735 | if (_obj6) | |
2736 | { | |
2737 | _arg6 = wxString_LIST_helper(_obj6); | |
2738 | if (_arg6 == NULL) { | |
2739 | return NULL; | |
2740 | } | |
2741 | } | |
2742 | if (_argo8) { | |
2743 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2744 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); | |
2746 | return NULL; | |
2747 | } | |
2748 | } | |
2749 | { | |
2750 | if (_obj6) { | |
2751 | _arg5 = PyList_Size(_obj6); | |
2752 | } | |
2753 | else { | |
2754 | _arg5 = 0; | |
2755 | } | |
2756 | } | |
2757 | { | |
2758 | wxPy_BEGIN_ALLOW_THREADS; | |
2759 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
2760 | ||
2761 | wxPy_END_ALLOW_THREADS; | |
2762 | if (PyErr_Occurred()) return NULL; | |
2763 | } if (_result) { | |
2764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2765 | _resultobj = Py_BuildValue("s",_ptemp); | |
2766 | } else { | |
2767 | Py_INCREF(Py_None); | |
2768 | _resultobj = Py_None; | |
2769 | } | |
2770 | { | |
2771 | delete [] _arg6; | |
2772 | } | |
2773 | return _resultobj; | |
2774 | } | |
2775 | ||
2776 | #define new_wxPreComboBox() (new wxComboBox()) | |
2777 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2778 | PyObject * _resultobj; | |
2779 | wxComboBox * _result; | |
2780 | char *_kwnames[] = { NULL }; | |
2781 | char _ptemp[128]; | |
2782 | ||
2783 | self = self; | |
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2785 | return NULL; | |
2786 | { | |
2787 | wxPy_BEGIN_ALLOW_THREADS; | |
2788 | _result = (wxComboBox *)new_wxPreComboBox(); | |
2789 | ||
2790 | wxPy_END_ALLOW_THREADS; | |
2791 | if (PyErr_Occurred()) return NULL; | |
2792 | } if (_result) { | |
2793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2794 | _resultobj = Py_BuildValue("s",_ptemp); | |
2795 | } else { | |
2796 | Py_INCREF(Py_None); | |
2797 | _resultobj = Py_None; | |
2798 | } | |
2799 | return _resultobj; | |
2800 | } | |
2801 | ||
2802 | #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)) | |
2803 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2804 | PyObject * _resultobj; | |
2805 | bool _result; | |
2806 | wxComboBox * _arg0; | |
2807 | wxWindow * _arg1; | |
2808 | wxWindowID _arg2; | |
2809 | char * _arg3 = (char *) ""; | |
2810 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2811 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2812 | int _arg6 = (int ) 0; | |
2813 | wxString * _arg7 = (wxString *) NULL; | |
2814 | long _arg8 = (long ) 0; | |
2815 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2816 | char * _arg10 = (char *) "comboBox"; | |
2817 | PyObject * _argo0 = 0; | |
2818 | PyObject * _argo1 = 0; | |
2819 | wxPoint temp; | |
2820 | PyObject * _obj4 = 0; | |
2821 | wxSize temp0; | |
2822 | PyObject * _obj5 = 0; | |
2823 | PyObject * _obj7 = 0; | |
2824 | PyObject * _argo9 = 0; | |
2825 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2826 | ||
2827 | self = self; | |
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2829 | return NULL; | |
2830 | if (_argo0) { | |
2831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
2837 | if (_argo1) { | |
2838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2841 | return NULL; | |
2842 | } | |
2843 | } | |
2844 | if (_obj4) | |
2845 | { | |
2846 | _arg4 = &temp; | |
2847 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2848 | return NULL; | |
2849 | } | |
2850 | if (_obj5) | |
2851 | { | |
2852 | _arg5 = &temp0; | |
2853 | if (! wxSize_helper(_obj5, &_arg5)) | |
2854 | return NULL; | |
2855 | } | |
2856 | if (_obj7) | |
2857 | { | |
2858 | _arg7 = wxString_LIST_helper(_obj7); | |
2859 | if (_arg7 == NULL) { | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | if (_argo9) { | |
2864 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2865 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2867 | return NULL; | |
2868 | } | |
2869 | } | |
2870 | { | |
2871 | if (_obj7) { | |
2872 | _arg6 = PyList_Size(_obj7); | |
2873 | } | |
2874 | else { | |
2875 | _arg6 = 0; | |
2876 | } | |
2877 | } | |
2878 | { | |
2879 | wxPy_BEGIN_ALLOW_THREADS; | |
2880 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
2881 | ||
2882 | wxPy_END_ALLOW_THREADS; | |
2883 | if (PyErr_Occurred()) return NULL; | |
2884 | } _resultobj = Py_BuildValue("i",_result); | |
2885 | { | |
2886 | delete [] _arg7; | |
2887 | } | |
2888 | return _resultobj; | |
2889 | } | |
2890 | ||
2891 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
2892 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2893 | PyObject * _resultobj; | |
2894 | wxComboBox * _arg0; | |
2895 | PyObject * _argo0 = 0; | |
2896 | char *_kwnames[] = { "self", NULL }; | |
2897 | ||
2898 | self = self; | |
2899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) | |
2900 | return NULL; | |
2901 | if (_argo0) { | |
2902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); | |
2905 | return NULL; | |
2906 | } | |
2907 | } | |
2908 | { | |
2909 | wxPy_BEGIN_ALLOW_THREADS; | |
2910 | wxComboBox_Copy(_arg0); | |
2911 | ||
2912 | wxPy_END_ALLOW_THREADS; | |
2913 | if (PyErr_Occurred()) return NULL; | |
2914 | } Py_INCREF(Py_None); | |
2915 | _resultobj = Py_None; | |
2916 | return _resultobj; | |
2917 | } | |
2918 | ||
2919 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
2920 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2921 | PyObject * _resultobj; | |
2922 | wxComboBox * _arg0; | |
2923 | PyObject * _argo0 = 0; | |
2924 | char *_kwnames[] = { "self", NULL }; | |
2925 | ||
2926 | self = self; | |
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) | |
2928 | return NULL; | |
2929 | if (_argo0) { | |
2930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); | |
2933 | return NULL; | |
2934 | } | |
2935 | } | |
2936 | { | |
2937 | wxPy_BEGIN_ALLOW_THREADS; | |
2938 | wxComboBox_Cut(_arg0); | |
2939 | ||
2940 | wxPy_END_ALLOW_THREADS; | |
2941 | if (PyErr_Occurred()) return NULL; | |
2942 | } Py_INCREF(Py_None); | |
2943 | _resultobj = Py_None; | |
2944 | return _resultobj; | |
2945 | } | |
2946 | ||
2947 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
2948 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2949 | PyObject * _resultobj; | |
2950 | long _result; | |
2951 | wxComboBox * _arg0; | |
2952 | PyObject * _argo0 = 0; | |
2953 | char *_kwnames[] = { "self", NULL }; | |
2954 | ||
2955 | self = self; | |
2956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) | |
2957 | return NULL; | |
2958 | if (_argo0) { | |
2959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); | |
2962 | return NULL; | |
2963 | } | |
2964 | } | |
2965 | { | |
2966 | wxPy_BEGIN_ALLOW_THREADS; | |
2967 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2968 | ||
2969 | wxPy_END_ALLOW_THREADS; | |
2970 | if (PyErr_Occurred()) return NULL; | |
2971 | } _resultobj = Py_BuildValue("l",_result); | |
2972 | return _resultobj; | |
2973 | } | |
2974 | ||
2975 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
2976 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2977 | PyObject * _resultobj; | |
2978 | long _result; | |
2979 | wxComboBox * _arg0; | |
2980 | PyObject * _argo0 = 0; | |
2981 | char *_kwnames[] = { "self", NULL }; | |
2982 | ||
2983 | self = self; | |
2984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) | |
2985 | return NULL; | |
2986 | if (_argo0) { | |
2987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); | |
2990 | return NULL; | |
2991 | } | |
2992 | } | |
2993 | { | |
2994 | wxPy_BEGIN_ALLOW_THREADS; | |
2995 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
2996 | ||
2997 | wxPy_END_ALLOW_THREADS; | |
2998 | if (PyErr_Occurred()) return NULL; | |
2999 | } _resultobj = Py_BuildValue("l",_result); | |
3000 | return _resultobj; | |
3001 | } | |
3002 | ||
3003 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
3004 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject * _resultobj; | |
3006 | wxString * _result; | |
3007 | wxComboBox * _arg0; | |
3008 | PyObject * _argo0 = 0; | |
3009 | char *_kwnames[] = { "self", NULL }; | |
3010 | ||
3011 | self = self; | |
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) | |
3013 | return NULL; | |
3014 | if (_argo0) { | |
3015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); | |
3018 | return NULL; | |
3019 | } | |
3020 | } | |
3021 | { | |
3022 | wxPy_BEGIN_ALLOW_THREADS; | |
3023 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
3024 | ||
3025 | wxPy_END_ALLOW_THREADS; | |
3026 | if (PyErr_Occurred()) return NULL; | |
3027 | }{ | |
3028 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3029 | } | |
3030 | { | |
3031 | delete _result; | |
3032 | } | |
3033 | return _resultobj; | |
3034 | } | |
3035 | ||
3036 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
3037 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject * _resultobj; | |
3039 | wxComboBox * _arg0; | |
3040 | PyObject * _argo0 = 0; | |
3041 | char *_kwnames[] = { "self", NULL }; | |
3042 | ||
3043 | self = self; | |
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) | |
3045 | return NULL; | |
3046 | if (_argo0) { | |
3047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); | |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
3053 | { | |
3054 | wxPy_BEGIN_ALLOW_THREADS; | |
3055 | wxComboBox_Paste(_arg0); | |
3056 | ||
3057 | wxPy_END_ALLOW_THREADS; | |
3058 | if (PyErr_Occurred()) return NULL; | |
3059 | } Py_INCREF(Py_None); | |
3060 | _resultobj = Py_None; | |
3061 | return _resultobj; | |
3062 | } | |
3063 | ||
3064 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
3065 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3066 | PyObject * _resultobj; | |
3067 | wxComboBox * _arg0; | |
3068 | long _arg1; | |
3069 | long _arg2; | |
3070 | wxString * _arg3; | |
3071 | PyObject * _argo0 = 0; | |
3072 | PyObject * _obj3 = 0; | |
3073 | char *_kwnames[] = { "self","from","to","text", NULL }; | |
3074 | ||
3075 | self = self; | |
3076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3077 | return NULL; | |
3078 | if (_argo0) { | |
3079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); | |
3082 | return NULL; | |
3083 | } | |
3084 | } | |
3085 | { | |
3086 | #if PYTHON_API_VERSION >= 1009 | |
3087 | char* tmpPtr; int tmpSize; | |
3088 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3090 | return NULL; | |
3091 | } | |
3092 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3093 | return NULL; | |
3094 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3095 | #else | |
3096 | if (!PyString_Check(_obj3)) { | |
3097 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3098 | return NULL; | |
3099 | } | |
3100 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3101 | #endif | |
3102 | } | |
3103 | { | |
3104 | wxPy_BEGIN_ALLOW_THREADS; | |
3105 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
3106 | ||
3107 | wxPy_END_ALLOW_THREADS; | |
3108 | if (PyErr_Occurred()) return NULL; | |
3109 | } Py_INCREF(Py_None); | |
3110 | _resultobj = Py_None; | |
3111 | { | |
3112 | if (_obj3) | |
3113 | delete _arg3; | |
3114 | } | |
3115 | return _resultobj; | |
3116 | } | |
3117 | ||
3118 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
3119 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3120 | PyObject * _resultobj; | |
3121 | wxComboBox * _arg0; | |
3122 | long _arg1; | |
3123 | long _arg2; | |
3124 | PyObject * _argo0 = 0; | |
3125 | char *_kwnames[] = { "self","from","to", NULL }; | |
3126 | ||
3127 | self = self; | |
3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3129 | return NULL; | |
3130 | if (_argo0) { | |
3131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); | |
3134 | return NULL; | |
3135 | } | |
3136 | } | |
3137 | { | |
3138 | wxPy_BEGIN_ALLOW_THREADS; | |
3139 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
3140 | ||
3141 | wxPy_END_ALLOW_THREADS; | |
3142 | if (PyErr_Occurred()) return NULL; | |
3143 | } Py_INCREF(Py_None); | |
3144 | _resultobj = Py_None; | |
3145 | return _resultobj; | |
3146 | } | |
3147 | ||
3148 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
3149 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject * _resultobj; | |
3151 | wxComboBox * _arg0; | |
3152 | long _arg1; | |
3153 | PyObject * _argo0 = 0; | |
3154 | char *_kwnames[] = { "self","pos", NULL }; | |
3155 | ||
3156 | self = self; | |
3157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
3158 | return NULL; | |
3159 | if (_argo0) { | |
3160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); | |
3163 | return NULL; | |
3164 | } | |
3165 | } | |
3166 | { | |
3167 | wxPy_BEGIN_ALLOW_THREADS; | |
3168 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
3169 | ||
3170 | wxPy_END_ALLOW_THREADS; | |
3171 | if (PyErr_Occurred()) return NULL; | |
3172 | } Py_INCREF(Py_None); | |
3173 | _resultobj = Py_None; | |
3174 | return _resultobj; | |
3175 | } | |
3176 | ||
3177 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
3178 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3179 | PyObject * _resultobj; | |
3180 | wxComboBox * _arg0; | |
3181 | PyObject * _argo0 = 0; | |
3182 | char *_kwnames[] = { "self", NULL }; | |
3183 | ||
3184 | self = self; | |
3185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) | |
3186 | return NULL; | |
3187 | if (_argo0) { | |
3188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); | |
3191 | return NULL; | |
3192 | } | |
3193 | } | |
3194 | { | |
3195 | wxPy_BEGIN_ALLOW_THREADS; | |
3196 | wxComboBox_SetInsertionPointEnd(_arg0); | |
3197 | ||
3198 | wxPy_END_ALLOW_THREADS; | |
3199 | if (PyErr_Occurred()) return NULL; | |
3200 | } Py_INCREF(Py_None); | |
3201 | _resultobj = Py_None; | |
3202 | return _resultobj; | |
3203 | } | |
3204 | ||
3205 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3206 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3207 | PyObject * _resultobj; | |
3208 | wxComboBox * _arg0; | |
3209 | int _arg1; | |
3210 | PyObject * _argo0 = 0; | |
3211 | char *_kwnames[] = { "self","n", NULL }; | |
3212 | ||
3213 | self = self; | |
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3215 | return NULL; | |
3216 | if (_argo0) { | |
3217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3220 | return NULL; | |
3221 | } | |
3222 | } | |
3223 | { | |
3224 | wxPy_BEGIN_ALLOW_THREADS; | |
3225 | wxComboBox_SetSelection(_arg0,_arg1); | |
3226 | ||
3227 | wxPy_END_ALLOW_THREADS; | |
3228 | if (PyErr_Occurred()) return NULL; | |
3229 | } Py_INCREF(Py_None); | |
3230 | _resultobj = Py_None; | |
3231 | return _resultobj; | |
3232 | } | |
3233 | ||
3234 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
3235 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject * _resultobj; | |
3237 | wxComboBox * _arg0; | |
3238 | long _arg1; | |
3239 | long _arg2; | |
3240 | PyObject * _argo0 = 0; | |
3241 | char *_kwnames[] = { "self","from","to", NULL }; | |
3242 | ||
3243 | self = self; | |
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3245 | return NULL; | |
3246 | if (_argo0) { | |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); | |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | { | |
3254 | wxPy_BEGIN_ALLOW_THREADS; | |
3255 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
3256 | ||
3257 | wxPy_END_ALLOW_THREADS; | |
3258 | if (PyErr_Occurred()) return NULL; | |
3259 | } Py_INCREF(Py_None); | |
3260 | _resultobj = Py_None; | |
3261 | return _resultobj; | |
3262 | } | |
3263 | ||
3264 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3265 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3266 | PyObject * _resultobj; | |
3267 | wxComboBox * _arg0; | |
3268 | wxString * _arg1; | |
3269 | PyObject * _argo0 = 0; | |
3270 | PyObject * _obj1 = 0; | |
3271 | char *_kwnames[] = { "self","text", NULL }; | |
3272 | ||
3273 | self = self; | |
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) | |
3275 | return NULL; | |
3276 | if (_argo0) { | |
3277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); | |
3280 | return NULL; | |
3281 | } | |
3282 | } | |
3283 | { | |
3284 | #if PYTHON_API_VERSION >= 1009 | |
3285 | char* tmpPtr; int tmpSize; | |
3286 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3288 | return NULL; | |
3289 | } | |
3290 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3291 | return NULL; | |
3292 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3293 | #else | |
3294 | if (!PyString_Check(_obj1)) { | |
3295 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3296 | return NULL; | |
3297 | } | |
3298 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3299 | #endif | |
3300 | } | |
3301 | { | |
3302 | wxPy_BEGIN_ALLOW_THREADS; | |
3303 | wxComboBox_SetValue(_arg0,*_arg1); | |
3304 | ||
3305 | wxPy_END_ALLOW_THREADS; | |
3306 | if (PyErr_Occurred()) return NULL; | |
3307 | } Py_INCREF(Py_None); | |
3308 | _resultobj = Py_None; | |
3309 | { | |
3310 | if (_obj1) | |
3311 | delete _arg1; | |
3312 | } | |
3313 | return _resultobj; | |
3314 | } | |
3315 | ||
3316 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
3317 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3318 | PyObject * _resultobj; | |
3319 | wxComboBox * _arg0; | |
3320 | bool _arg1; | |
3321 | PyObject * _argo0 = 0; | |
3322 | int tempbool1; | |
3323 | char *_kwnames[] = { "self","editable", NULL }; | |
3324 | ||
3325 | self = self; | |
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3327 | return NULL; | |
3328 | if (_argo0) { | |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3332 | return NULL; | |
3333 | } | |
3334 | } | |
3335 | _arg1 = (bool ) tempbool1; | |
3336 | { | |
3337 | wxPy_BEGIN_ALLOW_THREADS; | |
3338 | wxComboBox_SetEditable(_arg0,_arg1); | |
3339 | ||
3340 | wxPy_END_ALLOW_THREADS; | |
3341 | if (PyErr_Occurred()) return NULL; | |
3342 | } Py_INCREF(Py_None); | |
3343 | _resultobj = Py_None; | |
3344 | return _resultobj; | |
3345 | } | |
3346 | ||
3347 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
3348 | wxGauge *src; | |
3349 | wxControl *dest; | |
3350 | src = (wxGauge *) ptr; | |
3351 | dest = (wxControl *) src; | |
3352 | return (void *) dest; | |
3353 | } | |
3354 | ||
3355 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3356 | wxGauge *src; | |
3357 | wxWindow *dest; | |
3358 | src = (wxGauge *) ptr; | |
3359 | dest = (wxWindow *) src; | |
3360 | return (void *) dest; | |
3361 | } | |
3362 | ||
3363 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3364 | wxGauge *src; | |
3365 | wxEvtHandler *dest; | |
3366 | src = (wxGauge *) ptr; | |
3367 | dest = (wxEvtHandler *) src; | |
3368 | return (void *) dest; | |
3369 | } | |
3370 | ||
3371 | static void *SwigwxGaugeTowxObject(void *ptr) { | |
3372 | wxGauge *src; | |
3373 | wxObject *dest; | |
3374 | src = (wxGauge *) ptr; | |
3375 | dest = (wxObject *) src; | |
3376 | return (void *) dest; | |
3377 | } | |
3378 | ||
3379 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3380 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3381 | PyObject * _resultobj; | |
3382 | wxGauge * _result; | |
3383 | wxWindow * _arg0; | |
3384 | wxWindowID _arg1; | |
3385 | int _arg2; | |
3386 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3387 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3388 | long _arg5 = (long ) wxGA_HORIZONTAL; | |
3389 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3390 | char * _arg7 = (char *) "gauge"; | |
3391 | PyObject * _argo0 = 0; | |
3392 | wxPoint temp; | |
3393 | PyObject * _obj3 = 0; | |
3394 | wxSize temp0; | |
3395 | PyObject * _obj4 = 0; | |
3396 | PyObject * _argo6 = 0; | |
3397 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; | |
3398 | char _ptemp[128]; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | if (_obj3) | |
3411 | { | |
3412 | _arg3 = &temp; | |
3413 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3414 | return NULL; | |
3415 | } | |
3416 | if (_obj4) | |
3417 | { | |
3418 | _arg4 = &temp0; | |
3419 | if (! wxSize_helper(_obj4, &_arg4)) | |
3420 | return NULL; | |
3421 | } | |
3422 | if (_argo6) { | |
3423 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); | |
3426 | return NULL; | |
3427 | } | |
3428 | } | |
3429 | { | |
3430 | wxPy_BEGIN_ALLOW_THREADS; | |
3431 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3432 | ||
3433 | wxPy_END_ALLOW_THREADS; | |
3434 | if (PyErr_Occurred()) return NULL; | |
3435 | } if (_result) { | |
3436 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3437 | _resultobj = Py_BuildValue("s",_ptemp); | |
3438 | } else { | |
3439 | Py_INCREF(Py_None); | |
3440 | _resultobj = Py_None; | |
3441 | } | |
3442 | return _resultobj; | |
3443 | } | |
3444 | ||
3445 | #define new_wxPreGauge() (new wxGauge()) | |
3446 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3447 | PyObject * _resultobj; | |
3448 | wxGauge * _result; | |
3449 | char *_kwnames[] = { NULL }; | |
3450 | char _ptemp[128]; | |
3451 | ||
3452 | self = self; | |
3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3454 | return NULL; | |
3455 | { | |
3456 | wxPy_BEGIN_ALLOW_THREADS; | |
3457 | _result = (wxGauge *)new_wxPreGauge(); | |
3458 | ||
3459 | wxPy_END_ALLOW_THREADS; | |
3460 | if (PyErr_Occurred()) return NULL; | |
3461 | } if (_result) { | |
3462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3463 | _resultobj = Py_BuildValue("s",_ptemp); | |
3464 | } else { | |
3465 | Py_INCREF(Py_None); | |
3466 | _resultobj = Py_None; | |
3467 | } | |
3468 | return _resultobj; | |
3469 | } | |
3470 | ||
3471 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3472 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject * _resultobj; | |
3474 | bool _result; | |
3475 | wxGauge * _arg0; | |
3476 | wxWindow * _arg1; | |
3477 | wxWindowID _arg2; | |
3478 | int _arg3; | |
3479 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3480 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3481 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3482 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3483 | char * _arg8 = (char *) "gauge"; | |
3484 | PyObject * _argo0 = 0; | |
3485 | PyObject * _argo1 = 0; | |
3486 | wxPoint temp; | |
3487 | PyObject * _obj4 = 0; | |
3488 | wxSize temp0; | |
3489 | PyObject * _obj5 = 0; | |
3490 | PyObject * _argo7 = 0; | |
3491 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3492 | ||
3493 | self = self; | |
3494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3495 | return NULL; | |
3496 | if (_argo0) { | |
3497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3500 | return NULL; | |
3501 | } | |
3502 | } | |
3503 | if (_argo1) { | |
3504 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3505 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3507 | return NULL; | |
3508 | } | |
3509 | } | |
3510 | if (_obj4) | |
3511 | { | |
3512 | _arg4 = &temp; | |
3513 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3514 | return NULL; | |
3515 | } | |
3516 | if (_obj5) | |
3517 | { | |
3518 | _arg5 = &temp0; | |
3519 | if (! wxSize_helper(_obj5, &_arg5)) | |
3520 | return NULL; | |
3521 | } | |
3522 | if (_argo7) { | |
3523 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3524 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3526 | return NULL; | |
3527 | } | |
3528 | } | |
3529 | { | |
3530 | wxPy_BEGIN_ALLOW_THREADS; | |
3531 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
3532 | ||
3533 | wxPy_END_ALLOW_THREADS; | |
3534 | if (PyErr_Occurred()) return NULL; | |
3535 | } _resultobj = Py_BuildValue("i",_result); | |
3536 | return _resultobj; | |
3537 | } | |
3538 | ||
3539 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
3540 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject * _resultobj; | |
3542 | int _result; | |
3543 | wxGauge * _arg0; | |
3544 | PyObject * _argo0 = 0; | |
3545 | char *_kwnames[] = { "self", NULL }; | |
3546 | ||
3547 | self = self; | |
3548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) | |
3549 | return NULL; | |
3550 | if (_argo0) { | |
3551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); | |
3554 | return NULL; | |
3555 | } | |
3556 | } | |
3557 | { | |
3558 | wxPy_BEGIN_ALLOW_THREADS; | |
3559 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
3560 | ||
3561 | wxPy_END_ALLOW_THREADS; | |
3562 | if (PyErr_Occurred()) return NULL; | |
3563 | } _resultobj = Py_BuildValue("i",_result); | |
3564 | return _resultobj; | |
3565 | } | |
3566 | ||
3567 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
3568 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject * _resultobj; | |
3570 | int _result; | |
3571 | wxGauge * _arg0; | |
3572 | PyObject * _argo0 = 0; | |
3573 | char *_kwnames[] = { "self", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
3586 | wxPy_BEGIN_ALLOW_THREADS; | |
3587 | _result = (int )wxGauge_GetRange(_arg0); | |
3588 | ||
3589 | wxPy_END_ALLOW_THREADS; | |
3590 | if (PyErr_Occurred()) return NULL; | |
3591 | } _resultobj = Py_BuildValue("i",_result); | |
3592 | return _resultobj; | |
3593 | } | |
3594 | ||
3595 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
3596 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3597 | PyObject * _resultobj; | |
3598 | int _result; | |
3599 | wxGauge * _arg0; | |
3600 | PyObject * _argo0 = 0; | |
3601 | char *_kwnames[] = { "self", NULL }; | |
3602 | ||
3603 | self = self; | |
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) | |
3605 | return NULL; | |
3606 | if (_argo0) { | |
3607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); | |
3610 | return NULL; | |
3611 | } | |
3612 | } | |
3613 | { | |
3614 | wxPy_BEGIN_ALLOW_THREADS; | |
3615 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
3616 | ||
3617 | wxPy_END_ALLOW_THREADS; | |
3618 | if (PyErr_Occurred()) return NULL; | |
3619 | } _resultobj = Py_BuildValue("i",_result); | |
3620 | return _resultobj; | |
3621 | } | |
3622 | ||
3623 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
3624 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3625 | PyObject * _resultobj; | |
3626 | int _result; | |
3627 | wxGauge * _arg0; | |
3628 | PyObject * _argo0 = 0; | |
3629 | char *_kwnames[] = { "self", NULL }; | |
3630 | ||
3631 | self = self; | |
3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) | |
3633 | return NULL; | |
3634 | if (_argo0) { | |
3635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); | |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
3641 | { | |
3642 | wxPy_BEGIN_ALLOW_THREADS; | |
3643 | _result = (int )wxGauge_GetValue(_arg0); | |
3644 | ||
3645 | wxPy_END_ALLOW_THREADS; | |
3646 | if (PyErr_Occurred()) return NULL; | |
3647 | } _resultobj = Py_BuildValue("i",_result); | |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
3651 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
3652 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3653 | PyObject * _resultobj; | |
3654 | wxGauge * _arg0; | |
3655 | int _arg1; | |
3656 | PyObject * _argo0 = 0; | |
3657 | char *_kwnames[] = { "self","width", NULL }; | |
3658 | ||
3659 | self = self; | |
3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) | |
3661 | return NULL; | |
3662 | if (_argo0) { | |
3663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); | |
3666 | return NULL; | |
3667 | } | |
3668 | } | |
3669 | { | |
3670 | wxPy_BEGIN_ALLOW_THREADS; | |
3671 | wxGauge_SetBezelFace(_arg0,_arg1); | |
3672 | ||
3673 | wxPy_END_ALLOW_THREADS; | |
3674 | if (PyErr_Occurred()) return NULL; | |
3675 | } Py_INCREF(Py_None); | |
3676 | _resultobj = Py_None; | |
3677 | return _resultobj; | |
3678 | } | |
3679 | ||
3680 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
3681 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3682 | PyObject * _resultobj; | |
3683 | wxGauge * _arg0; | |
3684 | int _arg1; | |
3685 | PyObject * _argo0 = 0; | |
3686 | char *_kwnames[] = { "self","range", NULL }; | |
3687 | ||
3688 | self = self; | |
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) | |
3690 | return NULL; | |
3691 | if (_argo0) { | |
3692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); | |
3695 | return NULL; | |
3696 | } | |
3697 | } | |
3698 | { | |
3699 | wxPy_BEGIN_ALLOW_THREADS; | |
3700 | wxGauge_SetRange(_arg0,_arg1); | |
3701 | ||
3702 | wxPy_END_ALLOW_THREADS; | |
3703 | if (PyErr_Occurred()) return NULL; | |
3704 | } Py_INCREF(Py_None); | |
3705 | _resultobj = Py_None; | |
3706 | return _resultobj; | |
3707 | } | |
3708 | ||
3709 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
3710 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3711 | PyObject * _resultobj; | |
3712 | wxGauge * _arg0; | |
3713 | int _arg1; | |
3714 | PyObject * _argo0 = 0; | |
3715 | char *_kwnames[] = { "self","width", NULL }; | |
3716 | ||
3717 | self = self; | |
3718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) | |
3719 | return NULL; | |
3720 | if (_argo0) { | |
3721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); | |
3724 | return NULL; | |
3725 | } | |
3726 | } | |
3727 | { | |
3728 | wxPy_BEGIN_ALLOW_THREADS; | |
3729 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
3730 | ||
3731 | wxPy_END_ALLOW_THREADS; | |
3732 | if (PyErr_Occurred()) return NULL; | |
3733 | } Py_INCREF(Py_None); | |
3734 | _resultobj = Py_None; | |
3735 | return _resultobj; | |
3736 | } | |
3737 | ||
3738 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3739 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3740 | PyObject * _resultobj; | |
3741 | wxGauge * _arg0; | |
3742 | int _arg1; | |
3743 | PyObject * _argo0 = 0; | |
3744 | char *_kwnames[] = { "self","pos", NULL }; | |
3745 | ||
3746 | self = self; | |
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) | |
3748 | return NULL; | |
3749 | if (_argo0) { | |
3750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); | |
3753 | return NULL; | |
3754 | } | |
3755 | } | |
3756 | { | |
3757 | wxPy_BEGIN_ALLOW_THREADS; | |
3758 | wxGauge_SetValue(_arg0,_arg1); | |
3759 | ||
3760 | wxPy_END_ALLOW_THREADS; | |
3761 | if (PyErr_Occurred()) return NULL; | |
3762 | } Py_INCREF(Py_None); | |
3763 | _resultobj = Py_None; | |
3764 | return _resultobj; | |
3765 | } | |
3766 | ||
3767 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3768 | wxStaticBox *src; | |
3769 | wxControl *dest; | |
3770 | src = (wxStaticBox *) ptr; | |
3771 | dest = (wxControl *) src; | |
3772 | return (void *) dest; | |
3773 | } | |
3774 | ||
3775 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3776 | wxStaticBox *src; | |
3777 | wxWindow *dest; | |
3778 | src = (wxStaticBox *) ptr; | |
3779 | dest = (wxWindow *) src; | |
3780 | return (void *) dest; | |
3781 | } | |
3782 | ||
3783 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3784 | wxStaticBox *src; | |
3785 | wxEvtHandler *dest; | |
3786 | src = (wxStaticBox *) ptr; | |
3787 | dest = (wxEvtHandler *) src; | |
3788 | return (void *) dest; | |
3789 | } | |
3790 | ||
3791 | static void *SwigwxStaticBoxTowxObject(void *ptr) { | |
3792 | wxStaticBox *src; | |
3793 | wxObject *dest; | |
3794 | src = (wxStaticBox *) ptr; | |
3795 | dest = (wxObject *) src; | |
3796 | return (void *) dest; | |
3797 | } | |
3798 | ||
3799 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3800 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject * _resultobj; | |
3802 | wxStaticBox * _result; | |
3803 | wxWindow * _arg0; | |
3804 | wxWindowID _arg1; | |
3805 | wxString * _arg2; | |
3806 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3807 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3808 | long _arg5 = (long ) 0; | |
3809 | char * _arg6 = (char *) "staticBox"; | |
3810 | PyObject * _argo0 = 0; | |
3811 | PyObject * _obj2 = 0; | |
3812 | wxPoint temp; | |
3813 | PyObject * _obj3 = 0; | |
3814 | wxSize temp0; | |
3815 | PyObject * _obj4 = 0; | |
3816 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
3817 | char _ptemp[128]; | |
3818 | ||
3819 | self = self; | |
3820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
3821 | return NULL; | |
3822 | if (_argo0) { | |
3823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); | |
3826 | return NULL; | |
3827 | } | |
3828 | } | |
3829 | { | |
3830 | #if PYTHON_API_VERSION >= 1009 | |
3831 | char* tmpPtr; int tmpSize; | |
3832 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3833 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3834 | return NULL; | |
3835 | } | |
3836 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3837 | return NULL; | |
3838 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3839 | #else | |
3840 | if (!PyString_Check(_obj2)) { | |
3841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3842 | return NULL; | |
3843 | } | |
3844 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3845 | #endif | |
3846 | } | |
3847 | if (_obj3) | |
3848 | { | |
3849 | _arg3 = &temp; | |
3850 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3851 | return NULL; | |
3852 | } | |
3853 | if (_obj4) | |
3854 | { | |
3855 | _arg4 = &temp0; | |
3856 | if (! wxSize_helper(_obj4, &_arg4)) | |
3857 | return NULL; | |
3858 | } | |
3859 | { | |
3860 | wxPy_BEGIN_ALLOW_THREADS; | |
3861 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3862 | ||
3863 | wxPy_END_ALLOW_THREADS; | |
3864 | if (PyErr_Occurred()) return NULL; | |
3865 | } if (_result) { | |
3866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3867 | _resultobj = Py_BuildValue("s",_ptemp); | |
3868 | } else { | |
3869 | Py_INCREF(Py_None); | |
3870 | _resultobj = Py_None; | |
3871 | } | |
3872 | { | |
3873 | if (_obj2) | |
3874 | delete _arg2; | |
3875 | } | |
3876 | return _resultobj; | |
3877 | } | |
3878 | ||
3879 | #define new_wxPreStaticBox() (new wxStaticBox()) | |
3880 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3881 | PyObject * _resultobj; | |
3882 | wxStaticBox * _result; | |
3883 | char *_kwnames[] = { NULL }; | |
3884 | char _ptemp[128]; | |
3885 | ||
3886 | self = self; | |
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3888 | return NULL; | |
3889 | { | |
3890 | wxPy_BEGIN_ALLOW_THREADS; | |
3891 | _result = (wxStaticBox *)new_wxPreStaticBox(); | |
3892 | ||
3893 | wxPy_END_ALLOW_THREADS; | |
3894 | if (PyErr_Occurred()) return NULL; | |
3895 | } if (_result) { | |
3896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3897 | _resultobj = Py_BuildValue("s",_ptemp); | |
3898 | } else { | |
3899 | Py_INCREF(Py_None); | |
3900 | _resultobj = Py_None; | |
3901 | } | |
3902 | return _resultobj; | |
3903 | } | |
3904 | ||
3905 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3906 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3907 | PyObject * _resultobj; | |
3908 | bool _result; | |
3909 | wxStaticBox * _arg0; | |
3910 | wxWindow * _arg1; | |
3911 | wxWindowID _arg2; | |
3912 | wxString * _arg3; | |
3913 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3914 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3915 | long _arg6 = (long ) 0; | |
3916 | char * _arg7 = (char *) "staticBox"; | |
3917 | PyObject * _argo0 = 0; | |
3918 | PyObject * _argo1 = 0; | |
3919 | PyObject * _obj3 = 0; | |
3920 | wxPoint temp; | |
3921 | PyObject * _obj4 = 0; | |
3922 | wxSize temp0; | |
3923 | PyObject * _obj5 = 0; | |
3924 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3925 | ||
3926 | self = self; | |
3927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3928 | return NULL; | |
3929 | if (_argo0) { | |
3930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3933 | return NULL; | |
3934 | } | |
3935 | } | |
3936 | if (_argo1) { | |
3937 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3938 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3940 | return NULL; | |
3941 | } | |
3942 | } | |
3943 | { | |
3944 | #if PYTHON_API_VERSION >= 1009 | |
3945 | char* tmpPtr; int tmpSize; | |
3946 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3947 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3948 | return NULL; | |
3949 | } | |
3950 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3951 | return NULL; | |
3952 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3953 | #else | |
3954 | if (!PyString_Check(_obj3)) { | |
3955 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3956 | return NULL; | |
3957 | } | |
3958 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3959 | #endif | |
3960 | } | |
3961 | if (_obj4) | |
3962 | { | |
3963 | _arg4 = &temp; | |
3964 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3965 | return NULL; | |
3966 | } | |
3967 | if (_obj5) | |
3968 | { | |
3969 | _arg5 = &temp0; | |
3970 | if (! wxSize_helper(_obj5, &_arg5)) | |
3971 | return NULL; | |
3972 | } | |
3973 | { | |
3974 | wxPy_BEGIN_ALLOW_THREADS; | |
3975 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
3976 | ||
3977 | wxPy_END_ALLOW_THREADS; | |
3978 | if (PyErr_Occurred()) return NULL; | |
3979 | } _resultobj = Py_BuildValue("i",_result); | |
3980 | { | |
3981 | if (_obj3) | |
3982 | delete _arg3; | |
3983 | } | |
3984 | return _resultobj; | |
3985 | } | |
3986 | ||
3987 | static void *SwigwxStaticLineTowxControl(void *ptr) { | |
3988 | wxStaticLine *src; | |
3989 | wxControl *dest; | |
3990 | src = (wxStaticLine *) ptr; | |
3991 | dest = (wxControl *) src; | |
3992 | return (void *) dest; | |
3993 | } | |
3994 | ||
3995 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3996 | wxStaticLine *src; | |
3997 | wxWindow *dest; | |
3998 | src = (wxStaticLine *) ptr; | |
3999 | dest = (wxWindow *) src; | |
4000 | return (void *) dest; | |
4001 | } | |
4002 | ||
4003 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4004 | wxStaticLine *src; | |
4005 | wxEvtHandler *dest; | |
4006 | src = (wxStaticLine *) ptr; | |
4007 | dest = (wxEvtHandler *) src; | |
4008 | return (void *) dest; | |
4009 | } | |
4010 | ||
4011 | static void *SwigwxStaticLineTowxObject(void *ptr) { | |
4012 | wxStaticLine *src; | |
4013 | wxObject *dest; | |
4014 | src = (wxStaticLine *) ptr; | |
4015 | dest = (wxObject *) src; | |
4016 | return (void *) dest; | |
4017 | } | |
4018 | ||
4019 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4020 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4021 | PyObject * _resultobj; | |
4022 | wxStaticLine * _result; | |
4023 | wxWindow * _arg0; | |
4024 | wxWindowID _arg1; | |
4025 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4026 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4027 | long _arg4 = (long ) wxLI_HORIZONTAL; | |
4028 | char * _arg5 = (char *) "staticLine"; | |
4029 | PyObject * _argo0 = 0; | |
4030 | wxPoint temp; | |
4031 | PyObject * _obj2 = 0; | |
4032 | wxSize temp0; | |
4033 | PyObject * _obj3 = 0; | |
4034 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
4035 | char _ptemp[128]; | |
4036 | ||
4037 | self = self; | |
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
4039 | return NULL; | |
4040 | if (_argo0) { | |
4041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); | |
4044 | return NULL; | |
4045 | } | |
4046 | } | |
4047 | if (_obj2) | |
4048 | { | |
4049 | _arg2 = &temp; | |
4050 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4051 | return NULL; | |
4052 | } | |
4053 | if (_obj3) | |
4054 | { | |
4055 | _arg3 = &temp0; | |
4056 | if (! wxSize_helper(_obj3, &_arg3)) | |
4057 | return NULL; | |
4058 | } | |
4059 | { | |
4060 | wxPy_BEGIN_ALLOW_THREADS; | |
4061 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4062 | ||
4063 | wxPy_END_ALLOW_THREADS; | |
4064 | if (PyErr_Occurred()) return NULL; | |
4065 | } if (_result) { | |
4066 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4067 | _resultobj = Py_BuildValue("s",_ptemp); | |
4068 | } else { | |
4069 | Py_INCREF(Py_None); | |
4070 | _resultobj = Py_None; | |
4071 | } | |
4072 | return _resultobj; | |
4073 | } | |
4074 | ||
4075 | #define new_wxPreStaticLine() (new wxStaticLine()) | |
4076 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4077 | PyObject * _resultobj; | |
4078 | wxStaticLine * _result; | |
4079 | char *_kwnames[] = { NULL }; | |
4080 | char _ptemp[128]; | |
4081 | ||
4082 | self = self; | |
4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4084 | return NULL; | |
4085 | { | |
4086 | wxPy_BEGIN_ALLOW_THREADS; | |
4087 | _result = (wxStaticLine *)new_wxPreStaticLine(); | |
4088 | ||
4089 | wxPy_END_ALLOW_THREADS; | |
4090 | if (PyErr_Occurred()) return NULL; | |
4091 | } if (_result) { | |
4092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4093 | _resultobj = Py_BuildValue("s",_ptemp); | |
4094 | } else { | |
4095 | Py_INCREF(Py_None); | |
4096 | _resultobj = Py_None; | |
4097 | } | |
4098 | return _resultobj; | |
4099 | } | |
4100 | ||
4101 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4102 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject * _resultobj; | |
4104 | bool _result; | |
4105 | wxStaticLine * _arg0; | |
4106 | wxWindow * _arg1; | |
4107 | wxWindowID _arg2; | |
4108 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4109 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4110 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4111 | char * _arg6 = (char *) "staticLine"; | |
4112 | PyObject * _argo0 = 0; | |
4113 | PyObject * _argo1 = 0; | |
4114 | wxPoint temp; | |
4115 | PyObject * _obj3 = 0; | |
4116 | wxSize temp0; | |
4117 | PyObject * _obj4 = 0; | |
4118 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4119 | ||
4120 | self = self; | |
4121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4122 | return NULL; | |
4123 | if (_argo0) { | |
4124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4127 | return NULL; | |
4128 | } | |
4129 | } | |
4130 | if (_argo1) { | |
4131 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
4137 | if (_obj3) | |
4138 | { | |
4139 | _arg3 = &temp; | |
4140 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4141 | return NULL; | |
4142 | } | |
4143 | if (_obj4) | |
4144 | { | |
4145 | _arg4 = &temp0; | |
4146 | if (! wxSize_helper(_obj4, &_arg4)) | |
4147 | return NULL; | |
4148 | } | |
4149 | { | |
4150 | wxPy_BEGIN_ALLOW_THREADS; | |
4151 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4152 | ||
4153 | wxPy_END_ALLOW_THREADS; | |
4154 | if (PyErr_Occurred()) return NULL; | |
4155 | } _resultobj = Py_BuildValue("i",_result); | |
4156 | return _resultobj; | |
4157 | } | |
4158 | ||
4159 | static void *SwigwxStaticTextTowxControl(void *ptr) { | |
4160 | wxStaticText *src; | |
4161 | wxControl *dest; | |
4162 | src = (wxStaticText *) ptr; | |
4163 | dest = (wxControl *) src; | |
4164 | return (void *) dest; | |
4165 | } | |
4166 | ||
4167 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4168 | wxStaticText *src; | |
4169 | wxWindow *dest; | |
4170 | src = (wxStaticText *) ptr; | |
4171 | dest = (wxWindow *) src; | |
4172 | return (void *) dest; | |
4173 | } | |
4174 | ||
4175 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4176 | wxStaticText *src; | |
4177 | wxEvtHandler *dest; | |
4178 | src = (wxStaticText *) ptr; | |
4179 | dest = (wxEvtHandler *) src; | |
4180 | return (void *) dest; | |
4181 | } | |
4182 | ||
4183 | static void *SwigwxStaticTextTowxObject(void *ptr) { | |
4184 | wxStaticText *src; | |
4185 | wxObject *dest; | |
4186 | src = (wxStaticText *) ptr; | |
4187 | dest = (wxObject *) src; | |
4188 | return (void *) dest; | |
4189 | } | |
4190 | ||
4191 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4192 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject * _resultobj; | |
4194 | wxStaticText * _result; | |
4195 | wxWindow * _arg0; | |
4196 | wxWindowID _arg1; | |
4197 | wxString * _arg2; | |
4198 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4199 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4200 | long _arg5 = (long ) 0; | |
4201 | char * _arg6 = (char *) "staticText"; | |
4202 | PyObject * _argo0 = 0; | |
4203 | PyObject * _obj2 = 0; | |
4204 | wxPoint temp; | |
4205 | PyObject * _obj3 = 0; | |
4206 | wxSize temp0; | |
4207 | PyObject * _obj4 = 0; | |
4208 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4209 | char _ptemp[128]; | |
4210 | ||
4211 | self = self; | |
4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4213 | return NULL; | |
4214 | if (_argo0) { | |
4215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); | |
4218 | return NULL; | |
4219 | } | |
4220 | } | |
4221 | { | |
4222 | #if PYTHON_API_VERSION >= 1009 | |
4223 | char* tmpPtr; int tmpSize; | |
4224 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4225 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4226 | return NULL; | |
4227 | } | |
4228 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4229 | return NULL; | |
4230 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4231 | #else | |
4232 | if (!PyString_Check(_obj2)) { | |
4233 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4234 | return NULL; | |
4235 | } | |
4236 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4237 | #endif | |
4238 | } | |
4239 | if (_obj3) | |
4240 | { | |
4241 | _arg3 = &temp; | |
4242 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4243 | return NULL; | |
4244 | } | |
4245 | if (_obj4) | |
4246 | { | |
4247 | _arg4 = &temp0; | |
4248 | if (! wxSize_helper(_obj4, &_arg4)) | |
4249 | return NULL; | |
4250 | } | |
4251 | { | |
4252 | wxPy_BEGIN_ALLOW_THREADS; | |
4253 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4254 | ||
4255 | wxPy_END_ALLOW_THREADS; | |
4256 | if (PyErr_Occurred()) return NULL; | |
4257 | } if (_result) { | |
4258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4259 | _resultobj = Py_BuildValue("s",_ptemp); | |
4260 | } else { | |
4261 | Py_INCREF(Py_None); | |
4262 | _resultobj = Py_None; | |
4263 | } | |
4264 | { | |
4265 | if (_obj2) | |
4266 | delete _arg2; | |
4267 | } | |
4268 | return _resultobj; | |
4269 | } | |
4270 | ||
4271 | #define new_wxPreStaticText() (new wxStaticText()) | |
4272 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject * _resultobj; | |
4274 | wxStaticText * _result; | |
4275 | char *_kwnames[] = { NULL }; | |
4276 | char _ptemp[128]; | |
4277 | ||
4278 | self = self; | |
4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4280 | return NULL; | |
4281 | { | |
4282 | wxPy_BEGIN_ALLOW_THREADS; | |
4283 | _result = (wxStaticText *)new_wxPreStaticText(); | |
4284 | ||
4285 | wxPy_END_ALLOW_THREADS; | |
4286 | if (PyErr_Occurred()) return NULL; | |
4287 | } if (_result) { | |
4288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4289 | _resultobj = Py_BuildValue("s",_ptemp); | |
4290 | } else { | |
4291 | Py_INCREF(Py_None); | |
4292 | _resultobj = Py_None; | |
4293 | } | |
4294 | return _resultobj; | |
4295 | } | |
4296 | ||
4297 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4298 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4299 | PyObject * _resultobj; | |
4300 | bool _result; | |
4301 | wxStaticText * _arg0; | |
4302 | wxWindow * _arg1; | |
4303 | wxWindowID _arg2; | |
4304 | wxString * _arg3; | |
4305 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4306 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4307 | long _arg6 = (long ) 0; | |
4308 | char * _arg7 = (char *) "staticText"; | |
4309 | PyObject * _argo0 = 0; | |
4310 | PyObject * _argo1 = 0; | |
4311 | PyObject * _obj3 = 0; | |
4312 | wxPoint temp; | |
4313 | PyObject * _obj4 = 0; | |
4314 | wxSize temp0; | |
4315 | PyObject * _obj5 = 0; | |
4316 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4317 | ||
4318 | self = self; | |
4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4320 | return NULL; | |
4321 | if (_argo0) { | |
4322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4325 | return NULL; | |
4326 | } | |
4327 | } | |
4328 | if (_argo1) { | |
4329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4332 | return NULL; | |
4333 | } | |
4334 | } | |
4335 | { | |
4336 | #if PYTHON_API_VERSION >= 1009 | |
4337 | char* tmpPtr; int tmpSize; | |
4338 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4339 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4340 | return NULL; | |
4341 | } | |
4342 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4343 | return NULL; | |
4344 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4345 | #else | |
4346 | if (!PyString_Check(_obj3)) { | |
4347 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4348 | return NULL; | |
4349 | } | |
4350 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
4351 | #endif | |
4352 | } | |
4353 | if (_obj4) | |
4354 | { | |
4355 | _arg4 = &temp; | |
4356 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4357 | return NULL; | |
4358 | } | |
4359 | if (_obj5) | |
4360 | { | |
4361 | _arg5 = &temp0; | |
4362 | if (! wxSize_helper(_obj5, &_arg5)) | |
4363 | return NULL; | |
4364 | } | |
4365 | { | |
4366 | wxPy_BEGIN_ALLOW_THREADS; | |
4367 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
4368 | ||
4369 | wxPy_END_ALLOW_THREADS; | |
4370 | if (PyErr_Occurred()) return NULL; | |
4371 | } _resultobj = Py_BuildValue("i",_result); | |
4372 | { | |
4373 | if (_obj3) | |
4374 | delete _arg3; | |
4375 | } | |
4376 | return _resultobj; | |
4377 | } | |
4378 | ||
4379 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
4380 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4381 | PyObject * _resultobj; | |
4382 | wxString * _result; | |
4383 | wxStaticText * _arg0; | |
4384 | PyObject * _argo0 = 0; | |
4385 | char *_kwnames[] = { "self", NULL }; | |
4386 | ||
4387 | self = self; | |
4388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) | |
4389 | return NULL; | |
4390 | if (_argo0) { | |
4391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); | |
4394 | return NULL; | |
4395 | } | |
4396 | } | |
4397 | { | |
4398 | wxPy_BEGIN_ALLOW_THREADS; | |
4399 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
4400 | ||
4401 | wxPy_END_ALLOW_THREADS; | |
4402 | if (PyErr_Occurred()) return NULL; | |
4403 | }{ | |
4404 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4405 | } | |
4406 | { | |
4407 | delete _result; | |
4408 | } | |
4409 | return _resultobj; | |
4410 | } | |
4411 | ||
4412 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
4413 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | wxStaticText * _arg0; | |
4416 | wxString * _arg1; | |
4417 | PyObject * _argo0 = 0; | |
4418 | PyObject * _obj1 = 0; | |
4419 | char *_kwnames[] = { "self","label", NULL }; | |
4420 | ||
4421 | self = self; | |
4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) | |
4423 | return NULL; | |
4424 | if (_argo0) { | |
4425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); | |
4428 | return NULL; | |
4429 | } | |
4430 | } | |
4431 | { | |
4432 | #if PYTHON_API_VERSION >= 1009 | |
4433 | char* tmpPtr; int tmpSize; | |
4434 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4435 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4436 | return NULL; | |
4437 | } | |
4438 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4439 | return NULL; | |
4440 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4441 | #else | |
4442 | if (!PyString_Check(_obj1)) { | |
4443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4444 | return NULL; | |
4445 | } | |
4446 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4447 | #endif | |
4448 | } | |
4449 | { | |
4450 | wxPy_BEGIN_ALLOW_THREADS; | |
4451 | wxStaticText_SetLabel(_arg0,*_arg1); | |
4452 | ||
4453 | wxPy_END_ALLOW_THREADS; | |
4454 | if (PyErr_Occurred()) return NULL; | |
4455 | } Py_INCREF(Py_None); | |
4456 | _resultobj = Py_None; | |
4457 | { | |
4458 | if (_obj1) | |
4459 | delete _arg1; | |
4460 | } | |
4461 | return _resultobj; | |
4462 | } | |
4463 | ||
4464 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { | |
4465 | wxListBox *src; | |
4466 | wxControlWithItems *dest; | |
4467 | src = (wxListBox *) ptr; | |
4468 | dest = (wxControlWithItems *) src; | |
4469 | return (void *) dest; | |
4470 | } | |
4471 | ||
4472 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
4473 | wxListBox *src; | |
4474 | wxControl *dest; | |
4475 | src = (wxListBox *) ptr; | |
4476 | dest = (wxControl *) src; | |
4477 | return (void *) dest; | |
4478 | } | |
4479 | ||
4480 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4481 | wxListBox *src; | |
4482 | wxWindow *dest; | |
4483 | src = (wxListBox *) ptr; | |
4484 | dest = (wxWindow *) src; | |
4485 | return (void *) dest; | |
4486 | } | |
4487 | ||
4488 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4489 | wxListBox *src; | |
4490 | wxEvtHandler *dest; | |
4491 | src = (wxListBox *) ptr; | |
4492 | dest = (wxEvtHandler *) src; | |
4493 | return (void *) dest; | |
4494 | } | |
4495 | ||
4496 | static void *SwigwxListBoxTowxObject(void *ptr) { | |
4497 | wxListBox *src; | |
4498 | wxObject *dest; | |
4499 | src = (wxListBox *) ptr; | |
4500 | dest = (wxObject *) src; | |
4501 | return (void *) dest; | |
4502 | } | |
4503 | ||
4504 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4505 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject * _resultobj; | |
4507 | wxListBox * _result; | |
4508 | wxWindow * _arg0; | |
4509 | wxWindowID _arg1; | |
4510 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4511 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4512 | int _arg4; | |
4513 | wxString * _arg5 = (wxString *) NULL; | |
4514 | long _arg6 = (long ) 0; | |
4515 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4516 | char * _arg8 = (char *) "listBox"; | |
4517 | PyObject * _argo0 = 0; | |
4518 | wxPoint temp; | |
4519 | PyObject * _obj2 = 0; | |
4520 | wxSize temp0; | |
4521 | PyObject * _obj3 = 0; | |
4522 | PyObject * _obj5 = 0; | |
4523 | PyObject * _argo7 = 0; | |
4524 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4525 | char _ptemp[128]; | |
4526 | ||
4527 | self = self; | |
4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4529 | return NULL; | |
4530 | if (_argo0) { | |
4531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4534 | return NULL; | |
4535 | } | |
4536 | } | |
4537 | if (_obj2) | |
4538 | { | |
4539 | _arg2 = &temp; | |
4540 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4541 | return NULL; | |
4542 | } | |
4543 | if (_obj3) | |
4544 | { | |
4545 | _arg3 = &temp0; | |
4546 | if (! wxSize_helper(_obj3, &_arg3)) | |
4547 | return NULL; | |
4548 | } | |
4549 | if (_obj5) | |
4550 | { | |
4551 | _arg5 = wxString_LIST_helper(_obj5); | |
4552 | if (_arg5 == NULL) { | |
4553 | return NULL; | |
4554 | } | |
4555 | } | |
4556 | if (_argo7) { | |
4557 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4558 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4560 | return NULL; | |
4561 | } | |
4562 | } | |
4563 | { | |
4564 | if (_obj5) { | |
4565 | _arg4 = PyList_Size(_obj5); | |
4566 | } | |
4567 | else { | |
4568 | _arg4 = 0; | |
4569 | } | |
4570 | } | |
4571 | { | |
4572 | wxPy_BEGIN_ALLOW_THREADS; | |
4573 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4574 | ||
4575 | wxPy_END_ALLOW_THREADS; | |
4576 | if (PyErr_Occurred()) return NULL; | |
4577 | } if (_result) { | |
4578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4579 | _resultobj = Py_BuildValue("s",_ptemp); | |
4580 | } else { | |
4581 | Py_INCREF(Py_None); | |
4582 | _resultobj = Py_None; | |
4583 | } | |
4584 | { | |
4585 | delete [] _arg5; | |
4586 | } | |
4587 | return _resultobj; | |
4588 | } | |
4589 | ||
4590 | #define new_wxPreListBox() (new wxListBox()) | |
4591 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject * _resultobj; | |
4593 | wxListBox * _result; | |
4594 | char *_kwnames[] = { NULL }; | |
4595 | char _ptemp[128]; | |
4596 | ||
4597 | self = self; | |
4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4599 | return NULL; | |
4600 | { | |
4601 | wxPy_BEGIN_ALLOW_THREADS; | |
4602 | _result = (wxListBox *)new_wxPreListBox(); | |
4603 | ||
4604 | wxPy_END_ALLOW_THREADS; | |
4605 | if (PyErr_Occurred()) return NULL; | |
4606 | } if (_result) { | |
4607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4608 | _resultobj = Py_BuildValue("s",_ptemp); | |
4609 | } else { | |
4610 | Py_INCREF(Py_None); | |
4611 | _resultobj = Py_None; | |
4612 | } | |
4613 | return _resultobj; | |
4614 | } | |
4615 | ||
4616 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4617 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject * _resultobj; | |
4619 | bool _result; | |
4620 | wxListBox * _arg0; | |
4621 | wxWindow * _arg1; | |
4622 | wxWindowID _arg2; | |
4623 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4624 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4625 | int _arg5; | |
4626 | wxString * _arg6 = (wxString *) NULL; | |
4627 | long _arg7 = (long ) 0; | |
4628 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4629 | char * _arg9 = (char *) "listBox"; | |
4630 | PyObject * _argo0 = 0; | |
4631 | PyObject * _argo1 = 0; | |
4632 | wxPoint temp; | |
4633 | PyObject * _obj3 = 0; | |
4634 | wxSize temp0; | |
4635 | PyObject * _obj4 = 0; | |
4636 | PyObject * _obj6 = 0; | |
4637 | PyObject * _argo8 = 0; | |
4638 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
4639 | ||
4640 | self = self; | |
4641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
4642 | return NULL; | |
4643 | if (_argo0) { | |
4644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
4647 | return NULL; | |
4648 | } | |
4649 | } | |
4650 | if (_argo1) { | |
4651 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4652 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4654 | return NULL; | |
4655 | } | |
4656 | } | |
4657 | if (_obj3) | |
4658 | { | |
4659 | _arg3 = &temp; | |
4660 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4661 | return NULL; | |
4662 | } | |
4663 | if (_obj4) | |
4664 | { | |
4665 | _arg4 = &temp0; | |
4666 | if (! wxSize_helper(_obj4, &_arg4)) | |
4667 | return NULL; | |
4668 | } | |
4669 | if (_obj6) | |
4670 | { | |
4671 | _arg6 = wxString_LIST_helper(_obj6); | |
4672 | if (_arg6 == NULL) { | |
4673 | return NULL; | |
4674 | } | |
4675 | } | |
4676 | if (_argo8) { | |
4677 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4678 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
4680 | return NULL; | |
4681 | } | |
4682 | } | |
4683 | { | |
4684 | if (_obj6) { | |
4685 | _arg5 = PyList_Size(_obj6); | |
4686 | } | |
4687 | else { | |
4688 | _arg5 = 0; | |
4689 | } | |
4690 | } | |
4691 | { | |
4692 | wxPy_BEGIN_ALLOW_THREADS; | |
4693 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
4694 | ||
4695 | wxPy_END_ALLOW_THREADS; | |
4696 | if (PyErr_Occurred()) return NULL; | |
4697 | } _resultobj = Py_BuildValue("i",_result); | |
4698 | { | |
4699 | delete [] _arg6; | |
4700 | } | |
4701 | return _resultobj; | |
4702 | } | |
4703 | ||
4704 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
4705 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4706 | PyObject * _resultobj; | |
4707 | wxListBox * _arg0; | |
4708 | PyObject * _argo0 = 0; | |
4709 | char *_kwnames[] = { "self", NULL }; | |
4710 | ||
4711 | self = self; | |
4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) | |
4713 | return NULL; | |
4714 | if (_argo0) { | |
4715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); | |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
4721 | { | |
4722 | wxPy_BEGIN_ALLOW_THREADS; | |
4723 | wxListBox_Clear(_arg0); | |
4724 | ||
4725 | wxPy_END_ALLOW_THREADS; | |
4726 | if (PyErr_Occurred()) return NULL; | |
4727 | } Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
4732 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
4733 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4734 | PyObject * _resultobj; | |
4735 | wxListBox * _arg0; | |
4736 | int _arg1; | |
4737 | PyObject * _argo0 = 0; | |
4738 | char *_kwnames[] = { "self","n", NULL }; | |
4739 | ||
4740 | self = self; | |
4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) | |
4742 | return NULL; | |
4743 | if (_argo0) { | |
4744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); | |
4747 | return NULL; | |
4748 | } | |
4749 | } | |
4750 | { | |
4751 | wxPy_BEGIN_ALLOW_THREADS; | |
4752 | wxListBox_Deselect(_arg0,_arg1); | |
4753 | ||
4754 | wxPy_END_ALLOW_THREADS; | |
4755 | if (PyErr_Occurred()) return NULL; | |
4756 | } Py_INCREF(Py_None); | |
4757 | _resultobj = Py_None; | |
4758 | return _resultobj; | |
4759 | } | |
4760 | ||
4761 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
4762 | wxArrayInt lst; | |
4763 | self->GetSelections(lst); | |
4764 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
4765 | for(size_t i=0; i<lst.GetCount(); i++) { | |
4766 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
4767 | } | |
4768 | return tup; | |
4769 | } | |
4770 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4771 | PyObject * _resultobj; | |
4772 | PyObject * _result; | |
4773 | wxListBox * _arg0; | |
4774 | PyObject * _argo0 = 0; | |
4775 | char *_kwnames[] = { "self", NULL }; | |
4776 | ||
4777 | self = self; | |
4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) | |
4779 | return NULL; | |
4780 | if (_argo0) { | |
4781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); | |
4784 | return NULL; | |
4785 | } | |
4786 | } | |
4787 | { | |
4788 | wxPy_BEGIN_ALLOW_THREADS; | |
4789 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
4790 | ||
4791 | wxPy_END_ALLOW_THREADS; | |
4792 | if (PyErr_Occurred()) return NULL; | |
4793 | }{ | |
4794 | _resultobj = _result; | |
4795 | } | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
4799 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
4800 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | wxListBox * _arg0; | |
4803 | int _arg1; | |
4804 | wxString * _arg2; | |
4805 | int _arg3; | |
4806 | PyObject * _argo0 = 0; | |
4807 | PyObject * _obj2 = 0; | |
4808 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
4809 | ||
4810 | self = self; | |
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4812 | return NULL; | |
4813 | if (_argo0) { | |
4814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4817 | return NULL; | |
4818 | } | |
4819 | } | |
4820 | { | |
4821 | _arg2 = wxString_LIST_helper(_obj2); | |
4822 | if (_arg2 == NULL) { | |
4823 | return NULL; | |
4824 | } | |
4825 | } | |
4826 | { | |
4827 | if (_obj2) { | |
4828 | _arg1 = PyList_Size(_obj2); | |
4829 | } | |
4830 | else { | |
4831 | _arg1 = 0; | |
4832 | } | |
4833 | } | |
4834 | { | |
4835 | wxPy_BEGIN_ALLOW_THREADS; | |
4836 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4837 | ||
4838 | wxPy_END_ALLOW_THREADS; | |
4839 | if (PyErr_Occurred()) return NULL; | |
4840 | } Py_INCREF(Py_None); | |
4841 | _resultobj = Py_None; | |
4842 | { | |
4843 | delete [] _arg2; | |
4844 | } | |
4845 | return _resultobj; | |
4846 | } | |
4847 | ||
4848 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
4849 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4850 | PyObject * _resultobj; | |
4851 | bool _result; | |
4852 | wxListBox * _arg0; | |
4853 | int _arg1; | |
4854 | PyObject * _argo0 = 0; | |
4855 | char *_kwnames[] = { "self","n", NULL }; | |
4856 | ||
4857 | self = self; | |
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4859 | return NULL; | |
4860 | if (_argo0) { | |
4861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4864 | return NULL; | |
4865 | } | |
4866 | } | |
4867 | { | |
4868 | wxPy_BEGIN_ALLOW_THREADS; | |
4869 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); | |
4870 | ||
4871 | wxPy_END_ALLOW_THREADS; | |
4872 | if (PyErr_Occurred()) return NULL; | |
4873 | } _resultobj = Py_BuildValue("i",_result); | |
4874 | return _resultobj; | |
4875 | } | |
4876 | ||
4877 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
4878 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4879 | PyObject * _resultobj; | |
4880 | bool _result; | |
4881 | wxListBox * _arg0; | |
4882 | int _arg1; | |
4883 | PyObject * _argo0 = 0; | |
4884 | char *_kwnames[] = { "self","n", NULL }; | |
4885 | ||
4886 | self = self; | |
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) | |
4888 | return NULL; | |
4889 | if (_argo0) { | |
4890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); | |
4893 | return NULL; | |
4894 | } | |
4895 | } | |
4896 | { | |
4897 | wxPy_BEGIN_ALLOW_THREADS; | |
4898 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
4899 | ||
4900 | wxPy_END_ALLOW_THREADS; | |
4901 | if (PyErr_Occurred()) return NULL; | |
4902 | } _resultobj = Py_BuildValue("i",_result); | |
4903 | return _resultobj; | |
4904 | } | |
4905 | ||
4906 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
4907 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4908 | PyObject * _resultobj; | |
4909 | wxListBox * _arg0; | |
4910 | int _arg1; | |
4911 | wxString * _arg2; | |
4912 | PyObject * _argo0 = 0; | |
4913 | PyObject * _obj2 = 0; | |
4914 | char *_kwnames[] = { "self","choices", NULL }; | |
4915 | ||
4916 | self = self; | |
4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) | |
4918 | return NULL; | |
4919 | if (_argo0) { | |
4920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); | |
4923 | return NULL; | |
4924 | } | |
4925 | } | |
4926 | if (_obj2) | |
4927 | { | |
4928 | _arg2 = wxString_LIST_helper(_obj2); | |
4929 | if (_arg2 == NULL) { | |
4930 | return NULL; | |
4931 | } | |
4932 | } | |
4933 | { | |
4934 | if (_obj2) { | |
4935 | _arg1 = PyList_Size(_obj2); | |
4936 | } | |
4937 | else { | |
4938 | _arg1 = 0; | |
4939 | } | |
4940 | } | |
4941 | { | |
4942 | wxPy_BEGIN_ALLOW_THREADS; | |
4943 | wxListBox_Set(_arg0,_arg1,_arg2); | |
4944 | ||
4945 | wxPy_END_ALLOW_THREADS; | |
4946 | if (PyErr_Occurred()) return NULL; | |
4947 | } Py_INCREF(Py_None); | |
4948 | _resultobj = Py_None; | |
4949 | { | |
4950 | delete [] _arg2; | |
4951 | } | |
4952 | return _resultobj; | |
4953 | } | |
4954 | ||
4955 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4956 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject * _resultobj; | |
4958 | wxListBox * _arg0; | |
4959 | int _arg1; | |
4960 | PyObject * _argo0 = 0; | |
4961 | char *_kwnames[] = { "self","n", NULL }; | |
4962 | ||
4963 | self = self; | |
4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) | |
4965 | return NULL; | |
4966 | if (_argo0) { | |
4967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); | |
4970 | return NULL; | |
4971 | } | |
4972 | } | |
4973 | { | |
4974 | wxPy_BEGIN_ALLOW_THREADS; | |
4975 | wxListBox_SetFirstItem(_arg0,_arg1); | |
4976 | ||
4977 | wxPy_END_ALLOW_THREADS; | |
4978 | if (PyErr_Occurred()) return NULL; | |
4979 | } Py_INCREF(Py_None); | |
4980 | _resultobj = Py_None; | |
4981 | return _resultobj; | |
4982 | } | |
4983 | ||
4984 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4985 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4986 | PyObject * _resultobj; | |
4987 | wxListBox * _arg0; | |
4988 | wxString * _arg1; | |
4989 | PyObject * _argo0 = 0; | |
4990 | PyObject * _obj1 = 0; | |
4991 | char *_kwnames[] = { "self","string", NULL }; | |
4992 | ||
4993 | self = self; | |
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) | |
4995 | return NULL; | |
4996 | if (_argo0) { | |
4997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); | |
5000 | return NULL; | |
5001 | } | |
5002 | } | |
5003 | { | |
5004 | #if PYTHON_API_VERSION >= 1009 | |
5005 | char* tmpPtr; int tmpSize; | |
5006 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5007 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5008 | return NULL; | |
5009 | } | |
5010 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5011 | return NULL; | |
5012 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5013 | #else | |
5014 | if (!PyString_Check(_obj1)) { | |
5015 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5016 | return NULL; | |
5017 | } | |
5018 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5019 | #endif | |
5020 | } | |
5021 | { | |
5022 | wxPy_BEGIN_ALLOW_THREADS; | |
5023 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
5024 | ||
5025 | wxPy_END_ALLOW_THREADS; | |
5026 | if (PyErr_Occurred()) return NULL; | |
5027 | } Py_INCREF(Py_None); | |
5028 | _resultobj = Py_None; | |
5029 | { | |
5030 | if (_obj1) | |
5031 | delete _arg1; | |
5032 | } | |
5033 | return _resultobj; | |
5034 | } | |
5035 | ||
5036 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
5037 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5038 | PyObject * _resultobj; | |
5039 | wxListBox * _arg0; | |
5040 | int _arg1; | |
5041 | bool _arg2 = (bool ) TRUE; | |
5042 | PyObject * _argo0 = 0; | |
5043 | int tempbool2 = (int) TRUE; | |
5044 | char *_kwnames[] = { "self","n","select", NULL }; | |
5045 | ||
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5048 | return NULL; | |
5049 | if (_argo0) { | |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); | |
5053 | return NULL; | |
5054 | } | |
5055 | } | |
5056 | _arg2 = (bool ) tempbool2; | |
5057 | { | |
5058 | wxPy_BEGIN_ALLOW_THREADS; | |
5059 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
5060 | ||
5061 | wxPy_END_ALLOW_THREADS; | |
5062 | if (PyErr_Occurred()) return NULL; | |
5063 | } Py_INCREF(Py_None); | |
5064 | _resultobj = Py_None; | |
5065 | return _resultobj; | |
5066 | } | |
5067 | ||
5068 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
5069 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject * _resultobj; | |
5071 | wxListBox * _arg0; | |
5072 | int _arg1; | |
5073 | wxString * _arg2; | |
5074 | PyObject * _argo0 = 0; | |
5075 | PyObject * _obj2 = 0; | |
5076 | char *_kwnames[] = { "self","n","string", NULL }; | |
5077 | ||
5078 | self = self; | |
5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5080 | return NULL; | |
5081 | if (_argo0) { | |
5082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); | |
5085 | return NULL; | |
5086 | } | |
5087 | } | |
5088 | { | |
5089 | #if PYTHON_API_VERSION >= 1009 | |
5090 | char* tmpPtr; int tmpSize; | |
5091 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5093 | return NULL; | |
5094 | } | |
5095 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5096 | return NULL; | |
5097 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5098 | #else | |
5099 | if (!PyString_Check(_obj2)) { | |
5100 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5101 | return NULL; | |
5102 | } | |
5103 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5104 | #endif | |
5105 | } | |
5106 | { | |
5107 | wxPy_BEGIN_ALLOW_THREADS; | |
5108 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
5109 | ||
5110 | wxPy_END_ALLOW_THREADS; | |
5111 | if (PyErr_Occurred()) return NULL; | |
5112 | } Py_INCREF(Py_None); | |
5113 | _resultobj = Py_None; | |
5114 | { | |
5115 | if (_obj2) | |
5116 | delete _arg2; | |
5117 | } | |
5118 | return _resultobj; | |
5119 | } | |
5120 | ||
5121 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
5122 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5123 | PyObject * _resultobj; | |
5124 | wxListBox * _arg0; | |
5125 | wxString * _arg1; | |
5126 | bool _arg2 = (bool ) TRUE; | |
5127 | PyObject * _argo0 = 0; | |
5128 | PyObject * _obj1 = 0; | |
5129 | int tempbool2 = (int) TRUE; | |
5130 | char *_kwnames[] = { "self","string","select", NULL }; | |
5131 | ||
5132 | self = self; | |
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
5134 | return NULL; | |
5135 | if (_argo0) { | |
5136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); | |
5139 | return NULL; | |
5140 | } | |
5141 | } | |
5142 | { | |
5143 | #if PYTHON_API_VERSION >= 1009 | |
5144 | char* tmpPtr; int tmpSize; | |
5145 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5147 | return NULL; | |
5148 | } | |
5149 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5150 | return NULL; | |
5151 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5152 | #else | |
5153 | if (!PyString_Check(_obj1)) { | |
5154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5155 | return NULL; | |
5156 | } | |
5157 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5158 | #endif | |
5159 | } | |
5160 | _arg2 = (bool ) tempbool2; | |
5161 | { | |
5162 | wxPy_BEGIN_ALLOW_THREADS; | |
5163 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
5164 | ||
5165 | wxPy_END_ALLOW_THREADS; | |
5166 | if (PyErr_Occurred()) return NULL; | |
5167 | } Py_INCREF(Py_None); | |
5168 | _resultobj = Py_None; | |
5169 | { | |
5170 | if (_obj1) | |
5171 | delete _arg1; | |
5172 | } | |
5173 | return _resultobj; | |
5174 | } | |
5175 | ||
5176 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { | |
5177 | wxCheckListBox *src; | |
5178 | wxListBox *dest; | |
5179 | src = (wxCheckListBox *) ptr; | |
5180 | dest = (wxListBox *) src; | |
5181 | return (void *) dest; | |
5182 | } | |
5183 | ||
5184 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { | |
5185 | wxCheckListBox *src; | |
5186 | wxControlWithItems *dest; | |
5187 | src = (wxCheckListBox *) ptr; | |
5188 | dest = (wxControlWithItems *) src; | |
5189 | return (void *) dest; | |
5190 | } | |
5191 | ||
5192 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
5193 | wxCheckListBox *src; | |
5194 | wxControl *dest; | |
5195 | src = (wxCheckListBox *) ptr; | |
5196 | dest = (wxControl *) src; | |
5197 | return (void *) dest; | |
5198 | } | |
5199 | ||
5200 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5201 | wxCheckListBox *src; | |
5202 | wxWindow *dest; | |
5203 | src = (wxCheckListBox *) ptr; | |
5204 | dest = (wxWindow *) src; | |
5205 | return (void *) dest; | |
5206 | } | |
5207 | ||
5208 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5209 | wxCheckListBox *src; | |
5210 | wxEvtHandler *dest; | |
5211 | src = (wxCheckListBox *) ptr; | |
5212 | dest = (wxEvtHandler *) src; | |
5213 | return (void *) dest; | |
5214 | } | |
5215 | ||
5216 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { | |
5217 | wxCheckListBox *src; | |
5218 | wxObject *dest; | |
5219 | src = (wxCheckListBox *) ptr; | |
5220 | dest = (wxObject *) src; | |
5221 | return (void *) dest; | |
5222 | } | |
5223 | ||
5224 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5225 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject * _resultobj; | |
5227 | wxCheckListBox * _result; | |
5228 | wxWindow * _arg0; | |
5229 | wxWindowID _arg1; | |
5230 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5231 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5232 | int _arg4 = (int ) 0; | |
5233 | wxString * _arg5 = (wxString *) NULL; | |
5234 | long _arg6 = (long ) 0; | |
5235 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5236 | char * _arg8 = (char *) "listBox"; | |
5237 | PyObject * _argo0 = 0; | |
5238 | wxPoint temp; | |
5239 | PyObject * _obj2 = 0; | |
5240 | wxSize temp0; | |
5241 | PyObject * _obj3 = 0; | |
5242 | PyObject * _obj5 = 0; | |
5243 | PyObject * _argo7 = 0; | |
5244 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
5245 | char _ptemp[128]; | |
5246 | ||
5247 | self = self; | |
5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
5249 | return NULL; | |
5250 | if (_argo0) { | |
5251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); | |
5254 | return NULL; | |
5255 | } | |
5256 | } | |
5257 | if (_obj2) | |
5258 | { | |
5259 | _arg2 = &temp; | |
5260 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5261 | return NULL; | |
5262 | } | |
5263 | if (_obj3) | |
5264 | { | |
5265 | _arg3 = &temp0; | |
5266 | if (! wxSize_helper(_obj3, &_arg3)) | |
5267 | return NULL; | |
5268 | } | |
5269 | if (_obj5) | |
5270 | { | |
5271 | _arg5 = wxString_LIST_helper(_obj5); | |
5272 | if (_arg5 == NULL) { | |
5273 | return NULL; | |
5274 | } | |
5275 | } | |
5276 | if (_argo7) { | |
5277 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5278 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); | |
5280 | return NULL; | |
5281 | } | |
5282 | } | |
5283 | { | |
5284 | if (_obj5) { | |
5285 | _arg4 = PyList_Size(_obj5); | |
5286 | } | |
5287 | else { | |
5288 | _arg4 = 0; | |
5289 | } | |
5290 | } | |
5291 | { | |
5292 | wxPy_BEGIN_ALLOW_THREADS; | |
5293 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
5294 | ||
5295 | wxPy_END_ALLOW_THREADS; | |
5296 | if (PyErr_Occurred()) return NULL; | |
5297 | } if (_result) { | |
5298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5299 | _resultobj = Py_BuildValue("s",_ptemp); | |
5300 | } else { | |
5301 | Py_INCREF(Py_None); | |
5302 | _resultobj = Py_None; | |
5303 | } | |
5304 | { | |
5305 | delete [] _arg5; | |
5306 | } | |
5307 | return _resultobj; | |
5308 | } | |
5309 | ||
5310 | #define new_wxPreCheckListBox() (new wxCheckListBox()) | |
5311 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject * _resultobj; | |
5313 | wxCheckListBox * _result; | |
5314 | char *_kwnames[] = { NULL }; | |
5315 | char _ptemp[128]; | |
5316 | ||
5317 | self = self; | |
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5319 | return NULL; | |
5320 | { | |
5321 | wxPy_BEGIN_ALLOW_THREADS; | |
5322 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); | |
5323 | ||
5324 | wxPy_END_ALLOW_THREADS; | |
5325 | if (PyErr_Occurred()) return NULL; | |
5326 | } if (_result) { | |
5327 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5328 | _resultobj = Py_BuildValue("s",_ptemp); | |
5329 | } else { | |
5330 | Py_INCREF(Py_None); | |
5331 | _resultobj = Py_None; | |
5332 | } | |
5333 | return _resultobj; | |
5334 | } | |
5335 | ||
5336 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5337 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5338 | PyObject * _resultobj; | |
5339 | bool _result; | |
5340 | wxCheckListBox * _arg0; | |
5341 | wxWindow * _arg1; | |
5342 | wxWindowID _arg2; | |
5343 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5344 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5345 | int _arg5 = (int ) 0; | |
5346 | wxString * _arg6 = (wxString *) NULL; | |
5347 | long _arg7 = (long ) 0; | |
5348 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5349 | char * _arg9 = (char *) "listBox"; | |
5350 | PyObject * _argo0 = 0; | |
5351 | PyObject * _argo1 = 0; | |
5352 | wxPoint temp; | |
5353 | PyObject * _obj3 = 0; | |
5354 | wxSize temp0; | |
5355 | PyObject * _obj4 = 0; | |
5356 | PyObject * _obj6 = 0; | |
5357 | PyObject * _argo8 = 0; | |
5358 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5359 | ||
5360 | self = self; | |
5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5362 | return NULL; | |
5363 | if (_argo0) { | |
5364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5367 | return NULL; | |
5368 | } | |
5369 | } | |
5370 | if (_argo1) { | |
5371 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5372 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5374 | return NULL; | |
5375 | } | |
5376 | } | |
5377 | if (_obj3) | |
5378 | { | |
5379 | _arg3 = &temp; | |
5380 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5381 | return NULL; | |
5382 | } | |
5383 | if (_obj4) | |
5384 | { | |
5385 | _arg4 = &temp0; | |
5386 | if (! wxSize_helper(_obj4, &_arg4)) | |
5387 | return NULL; | |
5388 | } | |
5389 | if (_obj6) | |
5390 | { | |
5391 | _arg6 = wxString_LIST_helper(_obj6); | |
5392 | if (_arg6 == NULL) { | |
5393 | return NULL; | |
5394 | } | |
5395 | } | |
5396 | if (_argo8) { | |
5397 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5398 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5400 | return NULL; | |
5401 | } | |
5402 | } | |
5403 | { | |
5404 | if (_obj6) { | |
5405 | _arg5 = PyList_Size(_obj6); | |
5406 | } | |
5407 | else { | |
5408 | _arg5 = 0; | |
5409 | } | |
5410 | } | |
5411 | { | |
5412 | wxPy_BEGIN_ALLOW_THREADS; | |
5413 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
5414 | ||
5415 | wxPy_END_ALLOW_THREADS; | |
5416 | if (PyErr_Occurred()) return NULL; | |
5417 | } _resultobj = Py_BuildValue("i",_result); | |
5418 | { | |
5419 | delete [] _arg6; | |
5420 | } | |
5421 | return _resultobj; | |
5422 | } | |
5423 | ||
5424 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5425 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5426 | PyObject * _resultobj; | |
5427 | bool _result; | |
5428 | wxCheckListBox * _arg0; | |
5429 | int _arg1; | |
5430 | PyObject * _argo0 = 0; | |
5431 | char *_kwnames[] = { "self","uiIndex", NULL }; | |
5432 | ||
5433 | self = self; | |
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5435 | return NULL; | |
5436 | if (_argo0) { | |
5437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); | |
5440 | return NULL; | |
5441 | } | |
5442 | } | |
5443 | { | |
5444 | wxPy_BEGIN_ALLOW_THREADS; | |
5445 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
5446 | ||
5447 | wxPy_END_ALLOW_THREADS; | |
5448 | if (PyErr_Occurred()) return NULL; | |
5449 | } _resultobj = Py_BuildValue("i",_result); | |
5450 | return _resultobj; | |
5451 | } | |
5452 | ||
5453 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5454 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5455 | PyObject * _resultobj; | |
5456 | wxCheckListBox * _arg0; | |
5457 | int _arg1; | |
5458 | int _arg2 = (int ) TRUE; | |
5459 | PyObject * _argo0 = 0; | |
5460 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; | |
5461 | ||
5462 | self = self; | |
5463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5464 | return NULL; | |
5465 | if (_argo0) { | |
5466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); | |
5469 | return NULL; | |
5470 | } | |
5471 | } | |
5472 | { | |
5473 | wxPy_BEGIN_ALLOW_THREADS; | |
5474 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
5475 | ||
5476 | wxPy_END_ALLOW_THREADS; | |
5477 | if (PyErr_Occurred()) return NULL; | |
5478 | } Py_INCREF(Py_None); | |
5479 | _resultobj = Py_None; | |
5480 | return _resultobj; | |
5481 | } | |
5482 | ||
5483 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5484 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5485 | PyObject * _resultobj; | |
5486 | wxCheckListBox * _arg0; | |
5487 | int _arg1; | |
5488 | wxString * _arg2; | |
5489 | int _arg3; | |
5490 | PyObject * _argo0 = 0; | |
5491 | PyObject * _obj2 = 0; | |
5492 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5493 | ||
5494 | self = self; | |
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5496 | return NULL; | |
5497 | if (_argo0) { | |
5498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5501 | return NULL; | |
5502 | } | |
5503 | } | |
5504 | { | |
5505 | _arg2 = wxString_LIST_helper(_obj2); | |
5506 | if (_arg2 == NULL) { | |
5507 | return NULL; | |
5508 | } | |
5509 | } | |
5510 | { | |
5511 | if (_obj2) { | |
5512 | _arg1 = PyList_Size(_obj2); | |
5513 | } | |
5514 | else { | |
5515 | _arg1 = 0; | |
5516 | } | |
5517 | } | |
5518 | { | |
5519 | wxPy_BEGIN_ALLOW_THREADS; | |
5520 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5521 | ||
5522 | wxPy_END_ALLOW_THREADS; | |
5523 | if (PyErr_Occurred()) return NULL; | |
5524 | } Py_INCREF(Py_None); | |
5525 | _resultobj = Py_None; | |
5526 | { | |
5527 | delete [] _arg2; | |
5528 | } | |
5529 | return _resultobj; | |
5530 | } | |
5531 | ||
5532 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) | |
5533 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject * _resultobj; | |
5535 | int _result; | |
5536 | wxCheckListBox * _arg0; | |
5537 | PyObject * _argo0 = 0; | |
5538 | char *_kwnames[] = { "self", NULL }; | |
5539 | ||
5540 | self = self; | |
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) | |
5542 | return NULL; | |
5543 | if (_argo0) { | |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); | |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | { | |
5551 | wxPy_BEGIN_ALLOW_THREADS; | |
5552 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
5553 | ||
5554 | wxPy_END_ALLOW_THREADS; | |
5555 | if (PyErr_Occurred()) return NULL; | |
5556 | } _resultobj = Py_BuildValue("i",_result); | |
5557 | return _resultobj; | |
5558 | } | |
5559 | ||
5560 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5561 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject * _resultobj; | |
5563 | wxTextAttr * _result; | |
5564 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5565 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5566 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5567 | wxColour temp; | |
5568 | PyObject * _obj0 = 0; | |
5569 | wxColour temp0; | |
5570 | PyObject * _obj1 = 0; | |
5571 | PyObject * _argo2 = 0; | |
5572 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5573 | char _ptemp[128]; | |
5574 | ||
5575 | self = self; | |
5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5577 | return NULL; | |
5578 | if (_obj0) | |
5579 | { | |
5580 | _arg0 = &temp; | |
5581 | if (! wxColour_helper(_obj0, &_arg0)) | |
5582 | return NULL; | |
5583 | } | |
5584 | if (_obj1) | |
5585 | { | |
5586 | _arg1 = &temp0; | |
5587 | if (! wxColour_helper(_obj1, &_arg1)) | |
5588 | return NULL; | |
5589 | } | |
5590 | if (_argo2) { | |
5591 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5592 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5594 | return NULL; | |
5595 | } | |
5596 | } | |
5597 | { | |
5598 | wxPy_BEGIN_ALLOW_THREADS; | |
5599 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); | |
5600 | ||
5601 | wxPy_END_ALLOW_THREADS; | |
5602 | if (PyErr_Occurred()) return NULL; | |
5603 | } if (_result) { | |
5604 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5605 | _resultobj = Py_BuildValue("s",_ptemp); | |
5606 | } else { | |
5607 | Py_INCREF(Py_None); | |
5608 | _resultobj = Py_None; | |
5609 | } | |
5610 | return _resultobj; | |
5611 | } | |
5612 | ||
5613 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5614 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject * _resultobj; | |
5616 | wxTextAttr * _arg0; | |
5617 | PyObject * _argo0 = 0; | |
5618 | char *_kwnames[] = { "self", NULL }; | |
5619 | ||
5620 | self = self; | |
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5622 | return NULL; | |
5623 | if (_argo0) { | |
5624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
5630 | { | |
5631 | wxPy_BEGIN_ALLOW_THREADS; | |
5632 | delete_wxTextAttr(_arg0); | |
5633 | ||
5634 | wxPy_END_ALLOW_THREADS; | |
5635 | if (PyErr_Occurred()) return NULL; | |
5636 | } Py_INCREF(Py_None); | |
5637 | _resultobj = Py_None; | |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5642 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | wxTextAttr * _arg0; | |
5645 | wxColour * _arg1; | |
5646 | PyObject * _argo0 = 0; | |
5647 | wxColour temp; | |
5648 | PyObject * _obj1 = 0; | |
5649 | char *_kwnames[] = { "self","colText", NULL }; | |
5650 | ||
5651 | self = self; | |
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5653 | return NULL; | |
5654 | if (_argo0) { | |
5655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5658 | return NULL; | |
5659 | } | |
5660 | } | |
5661 | { | |
5662 | _arg1 = &temp; | |
5663 | if (! wxColour_helper(_obj1, &_arg1)) | |
5664 | return NULL; | |
5665 | } | |
5666 | { | |
5667 | wxPy_BEGIN_ALLOW_THREADS; | |
5668 | wxTextAttr_SetTextColour(_arg0,*_arg1); | |
5669 | ||
5670 | wxPy_END_ALLOW_THREADS; | |
5671 | if (PyErr_Occurred()) return NULL; | |
5672 | } Py_INCREF(Py_None); | |
5673 | _resultobj = Py_None; | |
5674 | return _resultobj; | |
5675 | } | |
5676 | ||
5677 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5678 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5679 | PyObject * _resultobj; | |
5680 | wxTextAttr * _arg0; | |
5681 | wxColour * _arg1; | |
5682 | PyObject * _argo0 = 0; | |
5683 | wxColour temp; | |
5684 | PyObject * _obj1 = 0; | |
5685 | char *_kwnames[] = { "self","colBack", NULL }; | |
5686 | ||
5687 | self = self; | |
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5689 | return NULL; | |
5690 | if (_argo0) { | |
5691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
5697 | { | |
5698 | _arg1 = &temp; | |
5699 | if (! wxColour_helper(_obj1, &_arg1)) | |
5700 | return NULL; | |
5701 | } | |
5702 | { | |
5703 | wxPy_BEGIN_ALLOW_THREADS; | |
5704 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); | |
5705 | ||
5706 | wxPy_END_ALLOW_THREADS; | |
5707 | if (PyErr_Occurred()) return NULL; | |
5708 | } Py_INCREF(Py_None); | |
5709 | _resultobj = Py_None; | |
5710 | return _resultobj; | |
5711 | } | |
5712 | ||
5713 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5714 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5715 | PyObject * _resultobj; | |
5716 | wxTextAttr * _arg0; | |
5717 | wxFont * _arg1; | |
5718 | PyObject * _argo0 = 0; | |
5719 | PyObject * _argo1 = 0; | |
5720 | char *_kwnames[] = { "self","font", NULL }; | |
5721 | ||
5722 | self = self; | |
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5724 | return NULL; | |
5725 | if (_argo0) { | |
5726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5729 | return NULL; | |
5730 | } | |
5731 | } | |
5732 | if (_argo1) { | |
5733 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5734 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5736 | return NULL; | |
5737 | } | |
5738 | } | |
5739 | { | |
5740 | wxPy_BEGIN_ALLOW_THREADS; | |
5741 | wxTextAttr_SetFont(_arg0,*_arg1); | |
5742 | ||
5743 | wxPy_END_ALLOW_THREADS; | |
5744 | if (PyErr_Occurred()) return NULL; | |
5745 | } Py_INCREF(Py_None); | |
5746 | _resultobj = Py_None; | |
5747 | return _resultobj; | |
5748 | } | |
5749 | ||
5750 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5751 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5752 | PyObject * _resultobj; | |
5753 | bool _result; | |
5754 | wxTextAttr * _arg0; | |
5755 | PyObject * _argo0 = 0; | |
5756 | char *_kwnames[] = { "self", NULL }; | |
5757 | ||
5758 | self = self; | |
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5760 | return NULL; | |
5761 | if (_argo0) { | |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5765 | return NULL; | |
5766 | } | |
5767 | } | |
5768 | { | |
5769 | wxPy_BEGIN_ALLOW_THREADS; | |
5770 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
5771 | ||
5772 | wxPy_END_ALLOW_THREADS; | |
5773 | if (PyErr_Occurred()) return NULL; | |
5774 | } _resultobj = Py_BuildValue("i",_result); | |
5775 | return _resultobj; | |
5776 | } | |
5777 | ||
5778 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5779 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject * _resultobj; | |
5781 | bool _result; | |
5782 | wxTextAttr * _arg0; | |
5783 | PyObject * _argo0 = 0; | |
5784 | char *_kwnames[] = { "self", NULL }; | |
5785 | ||
5786 | self = self; | |
5787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5788 | return NULL; | |
5789 | if (_argo0) { | |
5790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5793 | return NULL; | |
5794 | } | |
5795 | } | |
5796 | { | |
5797 | wxPy_BEGIN_ALLOW_THREADS; | |
5798 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
5799 | ||
5800 | wxPy_END_ALLOW_THREADS; | |
5801 | if (PyErr_Occurred()) return NULL; | |
5802 | } _resultobj = Py_BuildValue("i",_result); | |
5803 | return _resultobj; | |
5804 | } | |
5805 | ||
5806 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5807 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject * _resultobj; | |
5809 | bool _result; | |
5810 | wxTextAttr * _arg0; | |
5811 | PyObject * _argo0 = 0; | |
5812 | char *_kwnames[] = { "self", NULL }; | |
5813 | ||
5814 | self = self; | |
5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5816 | return NULL; | |
5817 | if (_argo0) { | |
5818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5821 | return NULL; | |
5822 | } | |
5823 | } | |
5824 | { | |
5825 | wxPy_BEGIN_ALLOW_THREADS; | |
5826 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
5827 | ||
5828 | wxPy_END_ALLOW_THREADS; | |
5829 | if (PyErr_Occurred()) return NULL; | |
5830 | } _resultobj = Py_BuildValue("i",_result); | |
5831 | return _resultobj; | |
5832 | } | |
5833 | ||
5834 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5835 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5836 | PyObject * _resultobj; | |
5837 | wxColour * _result; | |
5838 | wxTextAttr * _arg0; | |
5839 | PyObject * _argo0 = 0; | |
5840 | char *_kwnames[] = { "self", NULL }; | |
5841 | char _ptemp[128]; | |
5842 | ||
5843 | self = self; | |
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5845 | return NULL; | |
5846 | if (_argo0) { | |
5847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5850 | return NULL; | |
5851 | } | |
5852 | } | |
5853 | { | |
5854 | wxPy_BEGIN_ALLOW_THREADS; | |
5855 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); | |
5856 | ||
5857 | wxPy_END_ALLOW_THREADS; | |
5858 | if (PyErr_Occurred()) return NULL; | |
5859 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5860 | _resultobj = Py_BuildValue("s",_ptemp); | |
5861 | return _resultobj; | |
5862 | } | |
5863 | ||
5864 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5865 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5866 | PyObject * _resultobj; | |
5867 | wxColour * _result; | |
5868 | wxTextAttr * _arg0; | |
5869 | PyObject * _argo0 = 0; | |
5870 | char *_kwnames[] = { "self", NULL }; | |
5871 | char _ptemp[128]; | |
5872 | ||
5873 | self = self; | |
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5875 | return NULL; | |
5876 | if (_argo0) { | |
5877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | { | |
5884 | wxPy_BEGIN_ALLOW_THREADS; | |
5885 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); | |
5886 | ||
5887 | wxPy_END_ALLOW_THREADS; | |
5888 | if (PyErr_Occurred()) return NULL; | |
5889 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5890 | _resultobj = Py_BuildValue("s",_ptemp); | |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5895 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject * _resultobj; | |
5897 | wxFont * _result; | |
5898 | wxTextAttr * _arg0; | |
5899 | PyObject * _argo0 = 0; | |
5900 | char *_kwnames[] = { "self", NULL }; | |
5901 | char _ptemp[128]; | |
5902 | ||
5903 | self = self; | |
5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5905 | return NULL; | |
5906 | if (_argo0) { | |
5907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5910 | return NULL; | |
5911 | } | |
5912 | } | |
5913 | { | |
5914 | wxPy_BEGIN_ALLOW_THREADS; | |
5915 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); | |
5916 | ||
5917 | wxPy_END_ALLOW_THREADS; | |
5918 | if (PyErr_Occurred()) return NULL; | |
5919 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
5920 | _resultobj = Py_BuildValue("s",_ptemp); | |
5921 | return _resultobj; | |
5922 | } | |
5923 | ||
5924 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) | |
5925 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5926 | PyObject * _resultobj; | |
5927 | bool _result; | |
5928 | wxTextAttr * _arg0; | |
5929 | PyObject * _argo0 = 0; | |
5930 | char *_kwnames[] = { "self", NULL }; | |
5931 | ||
5932 | self = self; | |
5933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
5934 | return NULL; | |
5935 | if (_argo0) { | |
5936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
5939 | return NULL; | |
5940 | } | |
5941 | } | |
5942 | { | |
5943 | wxPy_BEGIN_ALLOW_THREADS; | |
5944 | _result = (bool )wxTextAttr_IsDefault(_arg0); | |
5945 | ||
5946 | wxPy_END_ALLOW_THREADS; | |
5947 | if (PyErr_Occurred()) return NULL; | |
5948 | } _resultobj = Py_BuildValue("i",_result); | |
5949 | return _resultobj; | |
5950 | } | |
5951 | ||
5952 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject * _resultobj; | |
5954 | wxTextAttr * _result; | |
5955 | wxTextAttr * _arg0; | |
5956 | wxTextAttr * _arg1; | |
5957 | wxTextCtrl * _arg2; | |
5958 | PyObject * _argo0 = 0; | |
5959 | PyObject * _argo1 = 0; | |
5960 | PyObject * _argo2 = 0; | |
5961 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
5962 | char _ptemp[128]; | |
5963 | ||
5964 | self = self; | |
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5966 | return NULL; | |
5967 | if (_argo0) { | |
5968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5971 | return NULL; | |
5972 | } | |
5973 | } | |
5974 | if (_argo1) { | |
5975 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5976 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
5977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5978 | return NULL; | |
5979 | } | |
5980 | } | |
5981 | if (_argo2) { | |
5982 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5983 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
5984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
5985 | return NULL; | |
5986 | } | |
5987 | } | |
5988 | { | |
5989 | wxPy_BEGIN_ALLOW_THREADS; | |
5990 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); | |
5991 | ||
5992 | wxPy_END_ALLOW_THREADS; | |
5993 | if (PyErr_Occurred()) return NULL; | |
5994 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
5995 | _resultobj = Py_BuildValue("s",_ptemp); | |
5996 | return _resultobj; | |
5997 | } | |
5998 | ||
5999 | static void *SwigwxTextCtrlTowxControl(void *ptr) { | |
6000 | wxTextCtrl *src; | |
6001 | wxControl *dest; | |
6002 | src = (wxTextCtrl *) ptr; | |
6003 | dest = (wxControl *) src; | |
6004 | return (void *) dest; | |
6005 | } | |
6006 | ||
6007 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6008 | wxTextCtrl *src; | |
6009 | wxWindow *dest; | |
6010 | src = (wxTextCtrl *) ptr; | |
6011 | dest = (wxWindow *) src; | |
6012 | return (void *) dest; | |
6013 | } | |
6014 | ||
6015 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6016 | wxTextCtrl *src; | |
6017 | wxEvtHandler *dest; | |
6018 | src = (wxTextCtrl *) ptr; | |
6019 | dest = (wxEvtHandler *) src; | |
6020 | return (void *) dest; | |
6021 | } | |
6022 | ||
6023 | static void *SwigwxTextCtrlTowxObject(void *ptr) { | |
6024 | wxTextCtrl *src; | |
6025 | wxObject *dest; | |
6026 | src = (wxTextCtrl *) ptr; | |
6027 | dest = (wxObject *) src; | |
6028 | return (void *) dest; | |
6029 | } | |
6030 | ||
6031 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6032 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject * _resultobj; | |
6034 | wxTextCtrl * _result; | |
6035 | wxWindow * _arg0; | |
6036 | wxWindowID _arg1; | |
6037 | char * _arg2 = (char *) ""; | |
6038 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6039 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6040 | long _arg5 = (long ) 0; | |
6041 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6042 | char * _arg7 = (char *) "text"; | |
6043 | PyObject * _argo0 = 0; | |
6044 | wxPoint temp; | |
6045 | PyObject * _obj3 = 0; | |
6046 | wxSize temp0; | |
6047 | PyObject * _obj4 = 0; | |
6048 | PyObject * _argo6 = 0; | |
6049 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; | |
6050 | char _ptemp[128]; | |
6051 | ||
6052 | self = self; | |
6053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
6054 | return NULL; | |
6055 | if (_argo0) { | |
6056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
6059 | return NULL; | |
6060 | } | |
6061 | } | |
6062 | if (_obj3) | |
6063 | { | |
6064 | _arg3 = &temp; | |
6065 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6066 | return NULL; | |
6067 | } | |
6068 | if (_obj4) | |
6069 | { | |
6070 | _arg4 = &temp0; | |
6071 | if (! wxSize_helper(_obj4, &_arg4)) | |
6072 | return NULL; | |
6073 | } | |
6074 | if (_argo6) { | |
6075 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6076 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
6078 | return NULL; | |
6079 | } | |
6080 | } | |
6081 | { | |
6082 | wxPy_BEGIN_ALLOW_THREADS; | |
6083 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
6084 | ||
6085 | wxPy_END_ALLOW_THREADS; | |
6086 | if (PyErr_Occurred()) return NULL; | |
6087 | } if (_result) { | |
6088 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6089 | _resultobj = Py_BuildValue("s",_ptemp); | |
6090 | } else { | |
6091 | Py_INCREF(Py_None); | |
6092 | _resultobj = Py_None; | |
6093 | } | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
6097 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6098 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject * _resultobj; | |
6100 | wxTextCtrl * _result; | |
6101 | char *_kwnames[] = { NULL }; | |
6102 | char _ptemp[128]; | |
6103 | ||
6104 | self = self; | |
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6106 | return NULL; | |
6107 | { | |
6108 | wxPy_BEGIN_ALLOW_THREADS; | |
6109 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); | |
6110 | ||
6111 | wxPy_END_ALLOW_THREADS; | |
6112 | if (PyErr_Occurred()) return NULL; | |
6113 | } if (_result) { | |
6114 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6115 | _resultobj = Py_BuildValue("s",_ptemp); | |
6116 | } else { | |
6117 | Py_INCREF(Py_None); | |
6118 | _resultobj = Py_None; | |
6119 | } | |
6120 | return _resultobj; | |
6121 | } | |
6122 | ||
6123 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6124 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6125 | PyObject * _resultobj; | |
6126 | bool _result; | |
6127 | wxTextCtrl * _arg0; | |
6128 | wxWindow * _arg1; | |
6129 | wxWindowID _arg2; | |
6130 | char * _arg3 = (char *) ""; | |
6131 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6132 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6133 | long _arg6 = (long ) 0; | |
6134 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6135 | char * _arg8 = (char *) "text"; | |
6136 | PyObject * _argo0 = 0; | |
6137 | PyObject * _argo1 = 0; | |
6138 | wxPoint temp; | |
6139 | PyObject * _obj4 = 0; | |
6140 | wxSize temp0; | |
6141 | PyObject * _obj5 = 0; | |
6142 | PyObject * _argo7 = 0; | |
6143 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6144 | ||
6145 | self = self; | |
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
6147 | return NULL; | |
6148 | if (_argo0) { | |
6149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6152 | return NULL; | |
6153 | } | |
6154 | } | |
6155 | if (_argo1) { | |
6156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
6162 | if (_obj4) | |
6163 | { | |
6164 | _arg4 = &temp; | |
6165 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6166 | return NULL; | |
6167 | } | |
6168 | if (_obj5) | |
6169 | { | |
6170 | _arg5 = &temp0; | |
6171 | if (! wxSize_helper(_obj5, &_arg5)) | |
6172 | return NULL; | |
6173 | } | |
6174 | if (_argo7) { | |
6175 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6176 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6178 | return NULL; | |
6179 | } | |
6180 | } | |
6181 | { | |
6182 | wxPy_BEGIN_ALLOW_THREADS; | |
6183 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
6184 | ||
6185 | wxPy_END_ALLOW_THREADS; | |
6186 | if (PyErr_Occurred()) return NULL; | |
6187 | } _resultobj = Py_BuildValue("i",_result); | |
6188 | return _resultobj; | |
6189 | } | |
6190 | ||
6191 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
6192 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6193 | PyObject * _resultobj; | |
6194 | wxString * _result; | |
6195 | wxTextCtrl * _arg0; | |
6196 | PyObject * _argo0 = 0; | |
6197 | char *_kwnames[] = { "self", NULL }; | |
6198 | ||
6199 | self = self; | |
6200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) | |
6201 | return NULL; | |
6202 | if (_argo0) { | |
6203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); | |
6206 | return NULL; | |
6207 | } | |
6208 | } | |
6209 | { | |
6210 | wxPy_BEGIN_ALLOW_THREADS; | |
6211 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
6212 | ||
6213 | wxPy_END_ALLOW_THREADS; | |
6214 | if (PyErr_Occurred()) return NULL; | |
6215 | }{ | |
6216 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6217 | } | |
6218 | { | |
6219 | delete _result; | |
6220 | } | |
6221 | return _resultobj; | |
6222 | } | |
6223 | ||
6224 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
6225 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6226 | PyObject * _resultobj; | |
6227 | wxTextCtrl * _arg0; | |
6228 | wxString * _arg1; | |
6229 | PyObject * _argo0 = 0; | |
6230 | PyObject * _obj1 = 0; | |
6231 | char *_kwnames[] = { "self","value", NULL }; | |
6232 | ||
6233 | self = self; | |
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) | |
6235 | return NULL; | |
6236 | if (_argo0) { | |
6237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | { | |
6244 | #if PYTHON_API_VERSION >= 1009 | |
6245 | char* tmpPtr; int tmpSize; | |
6246 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6248 | return NULL; | |
6249 | } | |
6250 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6251 | return NULL; | |
6252 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6253 | #else | |
6254 | if (!PyString_Check(_obj1)) { | |
6255 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6256 | return NULL; | |
6257 | } | |
6258 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6259 | #endif | |
6260 | } | |
6261 | { | |
6262 | wxPy_BEGIN_ALLOW_THREADS; | |
6263 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
6264 | ||
6265 | wxPy_END_ALLOW_THREADS; | |
6266 | if (PyErr_Occurred()) return NULL; | |
6267 | } Py_INCREF(Py_None); | |
6268 | _resultobj = Py_None; | |
6269 | { | |
6270 | if (_obj1) | |
6271 | delete _arg1; | |
6272 | } | |
6273 | return _resultobj; | |
6274 | } | |
6275 | ||
6276 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
6277 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject * _resultobj; | |
6279 | int _result; | |
6280 | wxTextCtrl * _arg0; | |
6281 | long _arg1; | |
6282 | PyObject * _argo0 = 0; | |
6283 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6284 | ||
6285 | self = self; | |
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) | |
6287 | return NULL; | |
6288 | if (_argo0) { | |
6289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); | |
6292 | return NULL; | |
6293 | } | |
6294 | } | |
6295 | { | |
6296 | wxPy_BEGIN_ALLOW_THREADS; | |
6297 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
6298 | ||
6299 | wxPy_END_ALLOW_THREADS; | |
6300 | if (PyErr_Occurred()) return NULL; | |
6301 | } _resultobj = Py_BuildValue("i",_result); | |
6302 | return _resultobj; | |
6303 | } | |
6304 | ||
6305 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
6306 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject * _resultobj; | |
6308 | wxString * _result; | |
6309 | wxTextCtrl * _arg0; | |
6310 | long _arg1; | |
6311 | PyObject * _argo0 = 0; | |
6312 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6313 | ||
6314 | self = self; | |
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) | |
6316 | return NULL; | |
6317 | if (_argo0) { | |
6318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); | |
6321 | return NULL; | |
6322 | } | |
6323 | } | |
6324 | { | |
6325 | wxPy_BEGIN_ALLOW_THREADS; | |
6326 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
6327 | ||
6328 | wxPy_END_ALLOW_THREADS; | |
6329 | if (PyErr_Occurred()) return NULL; | |
6330 | }{ | |
6331 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6332 | } | |
6333 | { | |
6334 | delete _result; | |
6335 | } | |
6336 | return _resultobj; | |
6337 | } | |
6338 | ||
6339 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
6340 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6341 | PyObject * _resultobj; | |
6342 | int _result; | |
6343 | wxTextCtrl * _arg0; | |
6344 | PyObject * _argo0 = 0; | |
6345 | char *_kwnames[] = { "self", NULL }; | |
6346 | ||
6347 | self = self; | |
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) | |
6349 | return NULL; | |
6350 | if (_argo0) { | |
6351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); | |
6354 | return NULL; | |
6355 | } | |
6356 | } | |
6357 | { | |
6358 | wxPy_BEGIN_ALLOW_THREADS; | |
6359 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
6360 | ||
6361 | wxPy_END_ALLOW_THREADS; | |
6362 | if (PyErr_Occurred()) return NULL; | |
6363 | } _resultobj = Py_BuildValue("i",_result); | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
6368 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | bool _result; | |
6371 | wxTextCtrl * _arg0; | |
6372 | PyObject * _argo0 = 0; | |
6373 | char *_kwnames[] = { "self", NULL }; | |
6374 | ||
6375 | self = self; | |
6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) | |
6377 | return NULL; | |
6378 | if (_argo0) { | |
6379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); | |
6382 | return NULL; | |
6383 | } | |
6384 | } | |
6385 | { | |
6386 | wxPy_BEGIN_ALLOW_THREADS; | |
6387 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
6388 | ||
6389 | wxPy_END_ALLOW_THREADS; | |
6390 | if (PyErr_Occurred()) return NULL; | |
6391 | } _resultobj = Py_BuildValue("i",_result); | |
6392 | return _resultobj; | |
6393 | } | |
6394 | ||
6395 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
6396 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6397 | PyObject * _resultobj; | |
6398 | bool _result; | |
6399 | wxTextCtrl * _arg0; | |
6400 | PyObject * _argo0 = 0; | |
6401 | char *_kwnames[] = { "self", NULL }; | |
6402 | ||
6403 | self = self; | |
6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) | |
6405 | return NULL; | |
6406 | if (_argo0) { | |
6407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); | |
6410 | return NULL; | |
6411 | } | |
6412 | } | |
6413 | { | |
6414 | wxPy_BEGIN_ALLOW_THREADS; | |
6415 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
6416 | ||
6417 | wxPy_END_ALLOW_THREADS; | |
6418 | if (PyErr_Occurred()) return NULL; | |
6419 | } _resultobj = Py_BuildValue("i",_result); | |
6420 | return _resultobj; | |
6421 | } | |
6422 | ||
6423 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
6424 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6425 | PyObject * _resultobj; | |
6426 | wxTextCtrl * _arg0; | |
6427 | long * _arg1; | |
6428 | long temp; | |
6429 | long * _arg2; | |
6430 | long temp0; | |
6431 | PyObject * _argo0 = 0; | |
6432 | char *_kwnames[] = { "self", NULL }; | |
6433 | ||
6434 | self = self; | |
6435 | { | |
6436 | _arg1 = &temp; | |
6437 | } | |
6438 | { | |
6439 | _arg2 = &temp0; | |
6440 | } | |
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
6442 | return NULL; | |
6443 | if (_argo0) { | |
6444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); | |
6447 | return NULL; | |
6448 | } | |
6449 | } | |
6450 | { | |
6451 | wxPy_BEGIN_ALLOW_THREADS; | |
6452 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
6453 | ||
6454 | wxPy_END_ALLOW_THREADS; | |
6455 | if (PyErr_Occurred()) return NULL; | |
6456 | } Py_INCREF(Py_None); | |
6457 | _resultobj = Py_None; | |
6458 | { | |
6459 | PyObject *o; | |
6460 | o = PyInt_FromLong((long) (*_arg1)); | |
6461 | _resultobj = t_output_helper(_resultobj, o); | |
6462 | } | |
6463 | { | |
6464 | PyObject *o; | |
6465 | o = PyInt_FromLong((long) (*_arg2)); | |
6466 | _resultobj = t_output_helper(_resultobj, o); | |
6467 | } | |
6468 | return _resultobj; | |
6469 | } | |
6470 | ||
6471 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
6472 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject * _resultobj; | |
6474 | wxString * _result; | |
6475 | wxTextCtrl * _arg0; | |
6476 | PyObject * _argo0 = 0; | |
6477 | char *_kwnames[] = { "self", NULL }; | |
6478 | ||
6479 | self = self; | |
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6481 | return NULL; | |
6482 | if (_argo0) { | |
6483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6486 | return NULL; | |
6487 | } | |
6488 | } | |
6489 | { | |
6490 | wxPy_BEGIN_ALLOW_THREADS; | |
6491 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); | |
6492 | ||
6493 | wxPy_END_ALLOW_THREADS; | |
6494 | if (PyErr_Occurred()) return NULL; | |
6495 | }{ | |
6496 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6497 | } | |
6498 | { | |
6499 | delete _result; | |
6500 | } | |
6501 | return _resultobj; | |
6502 | } | |
6503 | ||
6504 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
6505 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6506 | PyObject * _resultobj; | |
6507 | wxTextCtrl * _arg0; | |
6508 | PyObject * _argo0 = 0; | |
6509 | char *_kwnames[] = { "self", NULL }; | |
6510 | ||
6511 | self = self; | |
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) | |
6513 | return NULL; | |
6514 | if (_argo0) { | |
6515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); | |
6518 | return NULL; | |
6519 | } | |
6520 | } | |
6521 | { | |
6522 | wxPy_BEGIN_ALLOW_THREADS; | |
6523 | wxTextCtrl_Clear(_arg0); | |
6524 | ||
6525 | wxPy_END_ALLOW_THREADS; | |
6526 | if (PyErr_Occurred()) return NULL; | |
6527 | } Py_INCREF(Py_None); | |
6528 | _resultobj = Py_None; | |
6529 | return _resultobj; | |
6530 | } | |
6531 | ||
6532 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
6533 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6534 | PyObject * _resultobj; | |
6535 | wxTextCtrl * _arg0; | |
6536 | long _arg1; | |
6537 | long _arg2; | |
6538 | wxString * _arg3; | |
6539 | PyObject * _argo0 = 0; | |
6540 | PyObject * _obj3 = 0; | |
6541 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
6542 | ||
6543 | self = self; | |
6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
6545 | return NULL; | |
6546 | if (_argo0) { | |
6547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); | |
6550 | return NULL; | |
6551 | } | |
6552 | } | |
6553 | { | |
6554 | #if PYTHON_API_VERSION >= 1009 | |
6555 | char* tmpPtr; int tmpSize; | |
6556 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6557 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6558 | return NULL; | |
6559 | } | |
6560 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6561 | return NULL; | |
6562 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6563 | #else | |
6564 | if (!PyString_Check(_obj3)) { | |
6565 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6566 | return NULL; | |
6567 | } | |
6568 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
6569 | #endif | |
6570 | } | |
6571 | { | |
6572 | wxPy_BEGIN_ALLOW_THREADS; | |
6573 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
6574 | ||
6575 | wxPy_END_ALLOW_THREADS; | |
6576 | if (PyErr_Occurred()) return NULL; | |
6577 | } Py_INCREF(Py_None); | |
6578 | _resultobj = Py_None; | |
6579 | { | |
6580 | if (_obj3) | |
6581 | delete _arg3; | |
6582 | } | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
6586 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
6587 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject * _resultobj; | |
6589 | wxTextCtrl * _arg0; | |
6590 | long _arg1; | |
6591 | long _arg2; | |
6592 | PyObject * _argo0 = 0; | |
6593 | char *_kwnames[] = { "self","from","to", NULL }; | |
6594 | ||
6595 | self = self; | |
6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6597 | return NULL; | |
6598 | if (_argo0) { | |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); | |
6602 | return NULL; | |
6603 | } | |
6604 | } | |
6605 | { | |
6606 | wxPy_BEGIN_ALLOW_THREADS; | |
6607 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
6608 | ||
6609 | wxPy_END_ALLOW_THREADS; | |
6610 | if (PyErr_Occurred()) return NULL; | |
6611 | } Py_INCREF(Py_None); | |
6612 | _resultobj = Py_None; | |
6613 | return _resultobj; | |
6614 | } | |
6615 | ||
6616 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
6617 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject * _resultobj; | |
6619 | bool _result; | |
6620 | wxTextCtrl * _arg0; | |
6621 | wxString * _arg1; | |
6622 | PyObject * _argo0 = 0; | |
6623 | PyObject * _obj1 = 0; | |
6624 | char *_kwnames[] = { "self","file", NULL }; | |
6625 | ||
6626 | self = self; | |
6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) | |
6628 | return NULL; | |
6629 | if (_argo0) { | |
6630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); | |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
6636 | { | |
6637 | #if PYTHON_API_VERSION >= 1009 | |
6638 | char* tmpPtr; int tmpSize; | |
6639 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6640 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6641 | return NULL; | |
6642 | } | |
6643 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6644 | return NULL; | |
6645 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6646 | #else | |
6647 | if (!PyString_Check(_obj1)) { | |
6648 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6649 | return NULL; | |
6650 | } | |
6651 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6652 | #endif | |
6653 | } | |
6654 | { | |
6655 | wxPy_BEGIN_ALLOW_THREADS; | |
6656 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
6657 | ||
6658 | wxPy_END_ALLOW_THREADS; | |
6659 | if (PyErr_Occurred()) return NULL; | |
6660 | } _resultobj = Py_BuildValue("i",_result); | |
6661 | { | |
6662 | if (_obj1) | |
6663 | delete _arg1; | |
6664 | } | |
6665 | return _resultobj; | |
6666 | } | |
6667 | ||
6668 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
6669 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6670 | PyObject * _resultobj; | |
6671 | bool _result; | |
6672 | wxTextCtrl * _arg0; | |
6673 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
6674 | PyObject * _argo0 = 0; | |
6675 | PyObject * _obj1 = 0; | |
6676 | char *_kwnames[] = { "self","file", NULL }; | |
6677 | ||
6678 | self = self; | |
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) | |
6680 | return NULL; | |
6681 | if (_argo0) { | |
6682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); | |
6685 | return NULL; | |
6686 | } | |
6687 | } | |
6688 | if (_obj1) | |
6689 | { | |
6690 | #if PYTHON_API_VERSION >= 1009 | |
6691 | char* tmpPtr; int tmpSize; | |
6692 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6693 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6694 | return NULL; | |
6695 | } | |
6696 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6697 | return NULL; | |
6698 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6699 | #else | |
6700 | if (!PyString_Check(_obj1)) { | |
6701 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6702 | return NULL; | |
6703 | } | |
6704 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6705 | #endif | |
6706 | } | |
6707 | { | |
6708 | wxPy_BEGIN_ALLOW_THREADS; | |
6709 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
6710 | ||
6711 | wxPy_END_ALLOW_THREADS; | |
6712 | if (PyErr_Occurred()) return NULL; | |
6713 | } _resultobj = Py_BuildValue("i",_result); | |
6714 | { | |
6715 | if (_obj1) | |
6716 | delete _arg1; | |
6717 | } | |
6718 | return _resultobj; | |
6719 | } | |
6720 | ||
6721 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
6722 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6723 | PyObject * _resultobj; | |
6724 | wxTextCtrl * _arg0; | |
6725 | PyObject * _argo0 = 0; | |
6726 | char *_kwnames[] = { "self", NULL }; | |
6727 | ||
6728 | self = self; | |
6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) | |
6730 | return NULL; | |
6731 | if (_argo0) { | |
6732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); | |
6735 | return NULL; | |
6736 | } | |
6737 | } | |
6738 | { | |
6739 | wxPy_BEGIN_ALLOW_THREADS; | |
6740 | wxTextCtrl_DiscardEdits(_arg0); | |
6741 | ||
6742 | wxPy_END_ALLOW_THREADS; | |
6743 | if (PyErr_Occurred()) return NULL; | |
6744 | } Py_INCREF(Py_None); | |
6745 | _resultobj = Py_None; | |
6746 | return _resultobj; | |
6747 | } | |
6748 | ||
6749 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) | |
6750 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6751 | PyObject * _resultobj; | |
6752 | wxTextCtrl * _arg0; | |
6753 | unsigned long _arg1; | |
6754 | PyObject * _argo0 = 0; | |
6755 | char *_kwnames[] = { "self","len", NULL }; | |
6756 | ||
6757 | self = self; | |
6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) | |
6759 | return NULL; | |
6760 | if (_argo0) { | |
6761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); | |
6764 | return NULL; | |
6765 | } | |
6766 | } | |
6767 | { | |
6768 | wxPy_BEGIN_ALLOW_THREADS; | |
6769 | wxTextCtrl_SetMaxLength(_arg0,_arg1); | |
6770 | ||
6771 | wxPy_END_ALLOW_THREADS; | |
6772 | if (PyErr_Occurred()) return NULL; | |
6773 | } Py_INCREF(Py_None); | |
6774 | _resultobj = Py_None; | |
6775 | return _resultobj; | |
6776 | } | |
6777 | ||
6778 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
6779 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6780 | PyObject * _resultobj; | |
6781 | wxTextCtrl * _arg0; | |
6782 | wxString * _arg1; | |
6783 | PyObject * _argo0 = 0; | |
6784 | PyObject * _obj1 = 0; | |
6785 | char *_kwnames[] = { "self","text", NULL }; | |
6786 | ||
6787 | self = self; | |
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) | |
6789 | return NULL; | |
6790 | if (_argo0) { | |
6791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); | |
6794 | return NULL; | |
6795 | } | |
6796 | } | |
6797 | { | |
6798 | #if PYTHON_API_VERSION >= 1009 | |
6799 | char* tmpPtr; int tmpSize; | |
6800 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6801 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6802 | return NULL; | |
6803 | } | |
6804 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6805 | return NULL; | |
6806 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6807 | #else | |
6808 | if (!PyString_Check(_obj1)) { | |
6809 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6810 | return NULL; | |
6811 | } | |
6812 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6813 | #endif | |
6814 | } | |
6815 | { | |
6816 | wxPy_BEGIN_ALLOW_THREADS; | |
6817 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
6818 | ||
6819 | wxPy_END_ALLOW_THREADS; | |
6820 | if (PyErr_Occurred()) return NULL; | |
6821 | } Py_INCREF(Py_None); | |
6822 | _resultobj = Py_None; | |
6823 | { | |
6824 | if (_obj1) | |
6825 | delete _arg1; | |
6826 | } | |
6827 | return _resultobj; | |
6828 | } | |
6829 | ||
6830 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
6831 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6832 | PyObject * _resultobj; | |
6833 | wxTextCtrl * _arg0; | |
6834 | wxString * _arg1; | |
6835 | PyObject * _argo0 = 0; | |
6836 | PyObject * _obj1 = 0; | |
6837 | char *_kwnames[] = { "self","text", NULL }; | |
6838 | ||
6839 | self = self; | |
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) | |
6841 | return NULL; | |
6842 | if (_argo0) { | |
6843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); | |
6846 | return NULL; | |
6847 | } | |
6848 | } | |
6849 | { | |
6850 | #if PYTHON_API_VERSION >= 1009 | |
6851 | char* tmpPtr; int tmpSize; | |
6852 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6854 | return NULL; | |
6855 | } | |
6856 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6857 | return NULL; | |
6858 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6859 | #else | |
6860 | if (!PyString_Check(_obj1)) { | |
6861 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6862 | return NULL; | |
6863 | } | |
6864 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
6865 | #endif | |
6866 | } | |
6867 | { | |
6868 | wxPy_BEGIN_ALLOW_THREADS; | |
6869 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
6870 | ||
6871 | wxPy_END_ALLOW_THREADS; | |
6872 | if (PyErr_Occurred()) return NULL; | |
6873 | } Py_INCREF(Py_None); | |
6874 | _resultobj = Py_None; | |
6875 | { | |
6876 | if (_obj1) | |
6877 | delete _arg1; | |
6878 | } | |
6879 | return _resultobj; | |
6880 | } | |
6881 | ||
6882 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) | |
6883 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject * _resultobj; | |
6885 | bool _result; | |
6886 | wxTextCtrl * _arg0; | |
6887 | long _arg1; | |
6888 | long _arg2; | |
6889 | wxTextAttr * _arg3; | |
6890 | PyObject * _argo0 = 0; | |
6891 | PyObject * _argo3 = 0; | |
6892 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
6893 | ||
6894 | self = self; | |
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
6896 | return NULL; | |
6897 | if (_argo0) { | |
6898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
6901 | return NULL; | |
6902 | } | |
6903 | } | |
6904 | if (_argo3) { | |
6905 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6906 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
6908 | return NULL; | |
6909 | } | |
6910 | } | |
6911 | { | |
6912 | wxPy_BEGIN_ALLOW_THREADS; | |
6913 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
6914 | ||
6915 | wxPy_END_ALLOW_THREADS; | |
6916 | if (PyErr_Occurred()) return NULL; | |
6917 | } _resultobj = Py_BuildValue("i",_result); | |
6918 | return _resultobj; | |
6919 | } | |
6920 | ||
6921 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
6922 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject * _resultobj; | |
6924 | bool _result; | |
6925 | wxTextCtrl * _arg0; | |
6926 | wxTextAttr * _arg1; | |
6927 | PyObject * _argo0 = 0; | |
6928 | PyObject * _argo1 = 0; | |
6929 | char *_kwnames[] = { "self","style", NULL }; | |
6930 | ||
6931 | self = self; | |
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
6933 | return NULL; | |
6934 | if (_argo0) { | |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
6941 | if (_argo1) { | |
6942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
6945 | return NULL; | |
6946 | } | |
6947 | } | |
6948 | { | |
6949 | wxPy_BEGIN_ALLOW_THREADS; | |
6950 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
6951 | ||
6952 | wxPy_END_ALLOW_THREADS; | |
6953 | if (PyErr_Occurred()) return NULL; | |
6954 | } _resultobj = Py_BuildValue("i",_result); | |
6955 | return _resultobj; | |
6956 | } | |
6957 | ||
6958 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
6959 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6960 | PyObject * _resultobj; | |
6961 | wxTextAttr * _result; | |
6962 | wxTextCtrl * _arg0; | |
6963 | PyObject * _argo0 = 0; | |
6964 | char *_kwnames[] = { "self", NULL }; | |
6965 | char _ptemp[128]; | |
6966 | ||
6967 | self = self; | |
6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
6969 | return NULL; | |
6970 | if (_argo0) { | |
6971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
6974 | return NULL; | |
6975 | } | |
6976 | } | |
6977 | { | |
6978 | wxPy_BEGIN_ALLOW_THREADS; | |
6979 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
6980 | _result = (wxTextAttr *) &_result_ref; | |
6981 | ||
6982 | wxPy_END_ALLOW_THREADS; | |
6983 | if (PyErr_Occurred()) return NULL; | |
6984 | } if (_result) { | |
6985 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6986 | _resultobj = Py_BuildValue("s",_ptemp); | |
6987 | } else { | |
6988 | Py_INCREF(Py_None); | |
6989 | _resultobj = Py_None; | |
6990 | } | |
6991 | return _resultobj; | |
6992 | } | |
6993 | ||
6994 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
6995 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject * _resultobj; | |
6997 | long _result; | |
6998 | wxTextCtrl * _arg0; | |
6999 | long _arg1; | |
7000 | long _arg2; | |
7001 | PyObject * _argo0 = 0; | |
7002 | char *_kwnames[] = { "self","x","y", NULL }; | |
7003 | ||
7004 | self = self; | |
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7006 | return NULL; | |
7007 | if (_argo0) { | |
7008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); | |
7011 | return NULL; | |
7012 | } | |
7013 | } | |
7014 | { | |
7015 | wxPy_BEGIN_ALLOW_THREADS; | |
7016 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
7017 | ||
7018 | wxPy_END_ALLOW_THREADS; | |
7019 | if (PyErr_Occurred()) return NULL; | |
7020 | } _resultobj = Py_BuildValue("l",_result); | |
7021 | return _resultobj; | |
7022 | } | |
7023 | ||
7024 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
7025 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7026 | PyObject * _resultobj; | |
7027 | bool _result; | |
7028 | wxTextCtrl * _arg0; | |
7029 | long _arg1; | |
7030 | long * _arg2; | |
7031 | long temp; | |
7032 | long * _arg3; | |
7033 | long temp0; | |
7034 | PyObject * _argo0 = 0; | |
7035 | char *_kwnames[] = { "self","pos", NULL }; | |
7036 | ||
7037 | self = self; | |
7038 | { | |
7039 | _arg2 = &temp; | |
7040 | } | |
7041 | { | |
7042 | _arg3 = &temp0; | |
7043 | } | |
7044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
7045 | return NULL; | |
7046 | if (_argo0) { | |
7047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); | |
7050 | return NULL; | |
7051 | } | |
7052 | } | |
7053 | { | |
7054 | wxPy_BEGIN_ALLOW_THREADS; | |
7055 | _result = (bool )wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
7056 | ||
7057 | wxPy_END_ALLOW_THREADS; | |
7058 | if (PyErr_Occurred()) return NULL; | |
7059 | } _resultobj = Py_BuildValue("i",_result); | |
7060 | { | |
7061 | PyObject *o; | |
7062 | o = PyInt_FromLong((long) (*_arg2)); | |
7063 | _resultobj = t_output_helper(_resultobj, o); | |
7064 | } | |
7065 | { | |
7066 | PyObject *o; | |
7067 | o = PyInt_FromLong((long) (*_arg3)); | |
7068 | _resultobj = t_output_helper(_resultobj, o); | |
7069 | } | |
7070 | return _resultobj; | |
7071 | } | |
7072 | ||
7073 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
7074 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7075 | PyObject * _resultobj; | |
7076 | wxTextCtrl * _arg0; | |
7077 | long _arg1; | |
7078 | PyObject * _argo0 = 0; | |
7079 | char *_kwnames[] = { "self","pos", NULL }; | |
7080 | ||
7081 | self = self; | |
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) | |
7083 | return NULL; | |
7084 | if (_argo0) { | |
7085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); | |
7088 | return NULL; | |
7089 | } | |
7090 | } | |
7091 | { | |
7092 | wxPy_BEGIN_ALLOW_THREADS; | |
7093 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
7094 | ||
7095 | wxPy_END_ALLOW_THREADS; | |
7096 | if (PyErr_Occurred()) return NULL; | |
7097 | } Py_INCREF(Py_None); | |
7098 | _resultobj = Py_None; | |
7099 | return _resultobj; | |
7100 | } | |
7101 | ||
7102 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
7103 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7104 | PyObject * _resultobj; | |
7105 | wxTextCtrl * _arg0; | |
7106 | PyObject * _argo0 = 0; | |
7107 | char *_kwnames[] = { "self", NULL }; | |
7108 | ||
7109 | self = self; | |
7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) | |
7111 | return NULL; | |
7112 | if (_argo0) { | |
7113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); | |
7116 | return NULL; | |
7117 | } | |
7118 | } | |
7119 | { | |
7120 | wxPy_BEGIN_ALLOW_THREADS; | |
7121 | wxTextCtrl_Copy(_arg0); | |
7122 | ||
7123 | wxPy_END_ALLOW_THREADS; | |
7124 | if (PyErr_Occurred()) return NULL; | |
7125 | } Py_INCREF(Py_None); | |
7126 | _resultobj = Py_None; | |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
7130 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
7131 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject * _resultobj; | |
7133 | wxTextCtrl * _arg0; | |
7134 | PyObject * _argo0 = 0; | |
7135 | char *_kwnames[] = { "self", NULL }; | |
7136 | ||
7137 | self = self; | |
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) | |
7139 | return NULL; | |
7140 | if (_argo0) { | |
7141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); | |
7144 | return NULL; | |
7145 | } | |
7146 | } | |
7147 | { | |
7148 | wxPy_BEGIN_ALLOW_THREADS; | |
7149 | wxTextCtrl_Cut(_arg0); | |
7150 | ||
7151 | wxPy_END_ALLOW_THREADS; | |
7152 | if (PyErr_Occurred()) return NULL; | |
7153 | } Py_INCREF(Py_None); | |
7154 | _resultobj = Py_None; | |
7155 | return _resultobj; | |
7156 | } | |
7157 | ||
7158 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
7159 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject * _resultobj; | |
7161 | wxTextCtrl * _arg0; | |
7162 | PyObject * _argo0 = 0; | |
7163 | char *_kwnames[] = { "self", NULL }; | |
7164 | ||
7165 | self = self; | |
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) | |
7167 | return NULL; | |
7168 | if (_argo0) { | |
7169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); | |
7172 | return NULL; | |
7173 | } | |
7174 | } | |
7175 | { | |
7176 | wxPy_BEGIN_ALLOW_THREADS; | |
7177 | wxTextCtrl_Paste(_arg0); | |
7178 | ||
7179 | wxPy_END_ALLOW_THREADS; | |
7180 | if (PyErr_Occurred()) return NULL; | |
7181 | } Py_INCREF(Py_None); | |
7182 | _resultobj = Py_None; | |
7183 | return _resultobj; | |
7184 | } | |
7185 | ||
7186 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) | |
7187 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject * _resultobj; | |
7189 | bool _result; | |
7190 | wxTextCtrl * _arg0; | |
7191 | PyObject * _argo0 = 0; | |
7192 | char *_kwnames[] = { "self", NULL }; | |
7193 | ||
7194 | self = self; | |
7195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) | |
7196 | return NULL; | |
7197 | if (_argo0) { | |
7198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); | |
7201 | return NULL; | |
7202 | } | |
7203 | } | |
7204 | { | |
7205 | wxPy_BEGIN_ALLOW_THREADS; | |
7206 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
7207 | ||
7208 | wxPy_END_ALLOW_THREADS; | |
7209 | if (PyErr_Occurred()) return NULL; | |
7210 | } _resultobj = Py_BuildValue("i",_result); | |
7211 | return _resultobj; | |
7212 | } | |
7213 | ||
7214 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
7215 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject * _resultobj; | |
7217 | bool _result; | |
7218 | wxTextCtrl * _arg0; | |
7219 | PyObject * _argo0 = 0; | |
7220 | char *_kwnames[] = { "self", NULL }; | |
7221 | ||
7222 | self = self; | |
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) | |
7224 | return NULL; | |
7225 | if (_argo0) { | |
7226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); | |
7229 | return NULL; | |
7230 | } | |
7231 | } | |
7232 | { | |
7233 | wxPy_BEGIN_ALLOW_THREADS; | |
7234 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
7235 | ||
7236 | wxPy_END_ALLOW_THREADS; | |
7237 | if (PyErr_Occurred()) return NULL; | |
7238 | } _resultobj = Py_BuildValue("i",_result); | |
7239 | return _resultobj; | |
7240 | } | |
7241 | ||
7242 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
7243 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject * _resultobj; | |
7245 | bool _result; | |
7246 | wxTextCtrl * _arg0; | |
7247 | PyObject * _argo0 = 0; | |
7248 | char *_kwnames[] = { "self", NULL }; | |
7249 | ||
7250 | self = self; | |
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) | |
7252 | return NULL; | |
7253 | if (_argo0) { | |
7254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); | |
7257 | return NULL; | |
7258 | } | |
7259 | } | |
7260 | { | |
7261 | wxPy_BEGIN_ALLOW_THREADS; | |
7262 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
7263 | ||
7264 | wxPy_END_ALLOW_THREADS; | |
7265 | if (PyErr_Occurred()) return NULL; | |
7266 | } _resultobj = Py_BuildValue("i",_result); | |
7267 | return _resultobj; | |
7268 | } | |
7269 | ||
7270 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) | |
7271 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject * _resultobj; | |
7273 | wxTextCtrl * _arg0; | |
7274 | PyObject * _argo0 = 0; | |
7275 | char *_kwnames[] = { "self", NULL }; | |
7276 | ||
7277 | self = self; | |
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
7279 | return NULL; | |
7280 | if (_argo0) { | |
7281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
7284 | return NULL; | |
7285 | } | |
7286 | } | |
7287 | { | |
7288 | wxPy_BEGIN_ALLOW_THREADS; | |
7289 | wxTextCtrl_Undo(_arg0); | |
7290 | ||
7291 | wxPy_END_ALLOW_THREADS; | |
7292 | if (PyErr_Occurred()) return NULL; | |
7293 | } Py_INCREF(Py_None); | |
7294 | _resultobj = Py_None; | |
7295 | return _resultobj; | |
7296 | } | |
7297 | ||
7298 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
7299 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject * _resultobj; | |
7301 | wxTextCtrl * _arg0; | |
7302 | PyObject * _argo0 = 0; | |
7303 | char *_kwnames[] = { "self", NULL }; | |
7304 | ||
7305 | self = self; | |
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
7307 | return NULL; | |
7308 | if (_argo0) { | |
7309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
7312 | return NULL; | |
7313 | } | |
7314 | } | |
7315 | { | |
7316 | wxPy_BEGIN_ALLOW_THREADS; | |
7317 | wxTextCtrl_Redo(_arg0); | |
7318 | ||
7319 | wxPy_END_ALLOW_THREADS; | |
7320 | if (PyErr_Occurred()) return NULL; | |
7321 | } Py_INCREF(Py_None); | |
7322 | _resultobj = Py_None; | |
7323 | return _resultobj; | |
7324 | } | |
7325 | ||
7326 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
7327 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7328 | PyObject * _resultobj; | |
7329 | bool _result; | |
7330 | wxTextCtrl * _arg0; | |
7331 | PyObject * _argo0 = 0; | |
7332 | char *_kwnames[] = { "self", NULL }; | |
7333 | ||
7334 | self = self; | |
7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) | |
7336 | return NULL; | |
7337 | if (_argo0) { | |
7338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); | |
7341 | return NULL; | |
7342 | } | |
7343 | } | |
7344 | { | |
7345 | wxPy_BEGIN_ALLOW_THREADS; | |
7346 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
7347 | ||
7348 | wxPy_END_ALLOW_THREADS; | |
7349 | if (PyErr_Occurred()) return NULL; | |
7350 | } _resultobj = Py_BuildValue("i",_result); | |
7351 | return _resultobj; | |
7352 | } | |
7353 | ||
7354 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
7355 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7356 | PyObject * _resultobj; | |
7357 | bool _result; | |
7358 | wxTextCtrl * _arg0; | |
7359 | PyObject * _argo0 = 0; | |
7360 | char *_kwnames[] = { "self", NULL }; | |
7361 | ||
7362 | self = self; | |
7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) | |
7364 | return NULL; | |
7365 | if (_argo0) { | |
7366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); | |
7369 | return NULL; | |
7370 | } | |
7371 | } | |
7372 | { | |
7373 | wxPy_BEGIN_ALLOW_THREADS; | |
7374 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
7375 | ||
7376 | wxPy_END_ALLOW_THREADS; | |
7377 | if (PyErr_Occurred()) return NULL; | |
7378 | } _resultobj = Py_BuildValue("i",_result); | |
7379 | return _resultobj; | |
7380 | } | |
7381 | ||
7382 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
7383 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7384 | PyObject * _resultobj; | |
7385 | wxTextCtrl * _arg0; | |
7386 | long _arg1; | |
7387 | PyObject * _argo0 = 0; | |
7388 | char *_kwnames[] = { "self","pos", NULL }; | |
7389 | ||
7390 | self = self; | |
7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
7392 | return NULL; | |
7393 | if (_argo0) { | |
7394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); | |
7397 | return NULL; | |
7398 | } | |
7399 | } | |
7400 | { | |
7401 | wxPy_BEGIN_ALLOW_THREADS; | |
7402 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
7403 | ||
7404 | wxPy_END_ALLOW_THREADS; | |
7405 | if (PyErr_Occurred()) return NULL; | |
7406 | } Py_INCREF(Py_None); | |
7407 | _resultobj = Py_None; | |
7408 | return _resultobj; | |
7409 | } | |
7410 | ||
7411 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
7412 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject * _resultobj; | |
7414 | wxTextCtrl * _arg0; | |
7415 | PyObject * _argo0 = 0; | |
7416 | char *_kwnames[] = { "self", NULL }; | |
7417 | ||
7418 | self = self; | |
7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) | |
7420 | return NULL; | |
7421 | if (_argo0) { | |
7422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); | |
7425 | return NULL; | |
7426 | } | |
7427 | } | |
7428 | { | |
7429 | wxPy_BEGIN_ALLOW_THREADS; | |
7430 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
7431 | ||
7432 | wxPy_END_ALLOW_THREADS; | |
7433 | if (PyErr_Occurred()) return NULL; | |
7434 | } Py_INCREF(Py_None); | |
7435 | _resultobj = Py_None; | |
7436 | return _resultobj; | |
7437 | } | |
7438 | ||
7439 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
7440 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7441 | PyObject * _resultobj; | |
7442 | long _result; | |
7443 | wxTextCtrl * _arg0; | |
7444 | PyObject * _argo0 = 0; | |
7445 | char *_kwnames[] = { "self", NULL }; | |
7446 | ||
7447 | self = self; | |
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) | |
7449 | return NULL; | |
7450 | if (_argo0) { | |
7451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); | |
7454 | return NULL; | |
7455 | } | |
7456 | } | |
7457 | { | |
7458 | wxPy_BEGIN_ALLOW_THREADS; | |
7459 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
7460 | ||
7461 | wxPy_END_ALLOW_THREADS; | |
7462 | if (PyErr_Occurred()) return NULL; | |
7463 | } _resultobj = Py_BuildValue("l",_result); | |
7464 | return _resultobj; | |
7465 | } | |
7466 | ||
7467 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
7468 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject * _resultobj; | |
7470 | long _result; | |
7471 | wxTextCtrl * _arg0; | |
7472 | PyObject * _argo0 = 0; | |
7473 | char *_kwnames[] = { "self", NULL }; | |
7474 | ||
7475 | self = self; | |
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) | |
7477 | return NULL; | |
7478 | if (_argo0) { | |
7479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); | |
7482 | return NULL; | |
7483 | } | |
7484 | } | |
7485 | { | |
7486 | wxPy_BEGIN_ALLOW_THREADS; | |
7487 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
7488 | ||
7489 | wxPy_END_ALLOW_THREADS; | |
7490 | if (PyErr_Occurred()) return NULL; | |
7491 | } _resultobj = Py_BuildValue("l",_result); | |
7492 | return _resultobj; | |
7493 | } | |
7494 | ||
7495 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7496 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject * _resultobj; | |
7498 | wxTextCtrl * _arg0; | |
7499 | long _arg1; | |
7500 | long _arg2; | |
7501 | PyObject * _argo0 = 0; | |
7502 | char *_kwnames[] = { "self","from","to", NULL }; | |
7503 | ||
7504 | self = self; | |
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7506 | return NULL; | |
7507 | if (_argo0) { | |
7508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
7511 | return NULL; | |
7512 | } | |
7513 | } | |
7514 | { | |
7515 | wxPy_BEGIN_ALLOW_THREADS; | |
7516 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
7517 | ||
7518 | wxPy_END_ALLOW_THREADS; | |
7519 | if (PyErr_Occurred()) return NULL; | |
7520 | } Py_INCREF(Py_None); | |
7521 | _resultobj = Py_None; | |
7522 | return _resultobj; | |
7523 | } | |
7524 | ||
7525 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) | |
7526 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject * _resultobj; | |
7528 | wxTextCtrl * _arg0; | |
7529 | PyObject * _argo0 = 0; | |
7530 | char *_kwnames[] = { "self", NULL }; | |
7531 | ||
7532 | self = self; | |
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) | |
7534 | return NULL; | |
7535 | if (_argo0) { | |
7536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); | |
7539 | return NULL; | |
7540 | } | |
7541 | } | |
7542 | { | |
7543 | wxPy_BEGIN_ALLOW_THREADS; | |
7544 | wxTextCtrl_SelectAll(_arg0); | |
7545 | ||
7546 | wxPy_END_ALLOW_THREADS; | |
7547 | if (PyErr_Occurred()) return NULL; | |
7548 | } Py_INCREF(Py_None); | |
7549 | _resultobj = Py_None; | |
7550 | return _resultobj; | |
7551 | } | |
7552 | ||
7553 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
7554 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject * _resultobj; | |
7556 | wxTextCtrl * _arg0; | |
7557 | bool _arg1; | |
7558 | PyObject * _argo0 = 0; | |
7559 | int tempbool1; | |
7560 | char *_kwnames[] = { "self","editable", NULL }; | |
7561 | ||
7562 | self = self; | |
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
7564 | return NULL; | |
7565 | if (_argo0) { | |
7566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); | |
7569 | return NULL; | |
7570 | } | |
7571 | } | |
7572 | _arg1 = (bool ) tempbool1; | |
7573 | { | |
7574 | wxPy_BEGIN_ALLOW_THREADS; | |
7575 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
7576 | ||
7577 | wxPy_END_ALLOW_THREADS; | |
7578 | if (PyErr_Occurred()) return NULL; | |
7579 | } Py_INCREF(Py_None); | |
7580 | _resultobj = Py_None; | |
7581 | return _resultobj; | |
7582 | } | |
7583 | ||
7584 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
7585 | self->AppendText(text); | |
7586 | } | |
7587 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7588 | PyObject * _resultobj; | |
7589 | wxTextCtrl * _arg0; | |
7590 | wxString * _arg1; | |
7591 | PyObject * _argo0 = 0; | |
7592 | PyObject * _obj1 = 0; | |
7593 | char *_kwnames[] = { "self","text", NULL }; | |
7594 | ||
7595 | self = self; | |
7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7597 | return NULL; | |
7598 | if (_argo0) { | |
7599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7602 | return NULL; | |
7603 | } | |
7604 | } | |
7605 | { | |
7606 | #if PYTHON_API_VERSION >= 1009 | |
7607 | char* tmpPtr; int tmpSize; | |
7608 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7609 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7610 | return NULL; | |
7611 | } | |
7612 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7613 | return NULL; | |
7614 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7615 | #else | |
7616 | if (!PyString_Check(_obj1)) { | |
7617 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7618 | return NULL; | |
7619 | } | |
7620 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7621 | #endif | |
7622 | } | |
7623 | { | |
7624 | wxPy_BEGIN_ALLOW_THREADS; | |
7625 | wxTextCtrl_write(_arg0,*_arg1); | |
7626 | ||
7627 | wxPy_END_ALLOW_THREADS; | |
7628 | if (PyErr_Occurred()) return NULL; | |
7629 | } Py_INCREF(Py_None); | |
7630 | _resultobj = Py_None; | |
7631 | { | |
7632 | if (_obj1) | |
7633 | delete _arg1; | |
7634 | } | |
7635 | return _resultobj; | |
7636 | } | |
7637 | ||
7638 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { | |
7639 | return self->GetValue().Mid(from, to-from); | |
7640 | } | |
7641 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7642 | PyObject * _resultobj; | |
7643 | wxString * _result; | |
7644 | wxTextCtrl * _arg0; | |
7645 | long _arg1; | |
7646 | long _arg2; | |
7647 | PyObject * _argo0 = 0; | |
7648 | char *_kwnames[] = { "self","from","to", NULL }; | |
7649 | ||
7650 | self = self; | |
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7652 | return NULL; | |
7653 | if (_argo0) { | |
7654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7657 | return NULL; | |
7658 | } | |
7659 | } | |
7660 | { | |
7661 | wxPy_BEGIN_ALLOW_THREADS; | |
7662 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); | |
7663 | ||
7664 | wxPy_END_ALLOW_THREADS; | |
7665 | if (PyErr_Occurred()) return NULL; | |
7666 | }{ | |
7667 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7668 | } | |
7669 | { | |
7670 | delete _result; | |
7671 | } | |
7672 | return _resultobj; | |
7673 | } | |
7674 | ||
7675 | static void *SwigwxScrollBarTowxControl(void *ptr) { | |
7676 | wxScrollBar *src; | |
7677 | wxControl *dest; | |
7678 | src = (wxScrollBar *) ptr; | |
7679 | dest = (wxControl *) src; | |
7680 | return (void *) dest; | |
7681 | } | |
7682 | ||
7683 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7684 | wxScrollBar *src; | |
7685 | wxWindow *dest; | |
7686 | src = (wxScrollBar *) ptr; | |
7687 | dest = (wxWindow *) src; | |
7688 | return (void *) dest; | |
7689 | } | |
7690 | ||
7691 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7692 | wxScrollBar *src; | |
7693 | wxEvtHandler *dest; | |
7694 | src = (wxScrollBar *) ptr; | |
7695 | dest = (wxEvtHandler *) src; | |
7696 | return (void *) dest; | |
7697 | } | |
7698 | ||
7699 | static void *SwigwxScrollBarTowxObject(void *ptr) { | |
7700 | wxScrollBar *src; | |
7701 | wxObject *dest; | |
7702 | src = (wxScrollBar *) ptr; | |
7703 | dest = (wxObject *) src; | |
7704 | return (void *) dest; | |
7705 | } | |
7706 | ||
7707 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7708 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7709 | PyObject * _resultobj; | |
7710 | wxScrollBar * _result; | |
7711 | wxWindow * _arg0; | |
7712 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7713 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
7714 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
7715 | long _arg4 = (long ) wxSB_HORIZONTAL; | |
7716 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
7717 | char * _arg6 = (char *) "scrollBar"; | |
7718 | PyObject * _argo0 = 0; | |
7719 | wxPoint temp; | |
7720 | PyObject * _obj2 = 0; | |
7721 | wxSize temp0; | |
7722 | PyObject * _obj3 = 0; | |
7723 | PyObject * _argo5 = 0; | |
7724 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
7725 | char _ptemp[128]; | |
7726 | ||
7727 | self = self; | |
7728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
7729 | return NULL; | |
7730 | if (_argo0) { | |
7731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); | |
7734 | return NULL; | |
7735 | } | |
7736 | } | |
7737 | if (_obj2) | |
7738 | { | |
7739 | _arg2 = &temp; | |
7740 | if (! wxPoint_helper(_obj2, &_arg2)) | |
7741 | return NULL; | |
7742 | } | |
7743 | if (_obj3) | |
7744 | { | |
7745 | _arg3 = &temp0; | |
7746 | if (! wxSize_helper(_obj3, &_arg3)) | |
7747 | return NULL; | |
7748 | } | |
7749 | if (_argo5) { | |
7750 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7751 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
7752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); | |
7753 | return NULL; | |
7754 | } | |
7755 | } | |
7756 | { | |
7757 | wxPy_BEGIN_ALLOW_THREADS; | |
7758 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
7759 | ||
7760 | wxPy_END_ALLOW_THREADS; | |
7761 | if (PyErr_Occurred()) return NULL; | |
7762 | } if (_result) { | |
7763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7764 | _resultobj = Py_BuildValue("s",_ptemp); | |
7765 | } else { | |
7766 | Py_INCREF(Py_None); | |
7767 | _resultobj = Py_None; | |
7768 | } | |
7769 | return _resultobj; | |
7770 | } | |
7771 | ||
7772 | #define new_wxPreScrollBar() (new wxScrollBar()) | |
7773 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject * _resultobj; | |
7775 | wxScrollBar * _result; | |
7776 | char *_kwnames[] = { NULL }; | |
7777 | char _ptemp[128]; | |
7778 | ||
7779 | self = self; | |
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7781 | return NULL; | |
7782 | { | |
7783 | wxPy_BEGIN_ALLOW_THREADS; | |
7784 | _result = (wxScrollBar *)new_wxPreScrollBar(); | |
7785 | ||
7786 | wxPy_END_ALLOW_THREADS; | |
7787 | if (PyErr_Occurred()) return NULL; | |
7788 | } if (_result) { | |
7789 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7790 | _resultobj = Py_BuildValue("s",_ptemp); | |
7791 | } else { | |
7792 | Py_INCREF(Py_None); | |
7793 | _resultobj = Py_None; | |
7794 | } | |
7795 | return _resultobj; | |
7796 | } | |
7797 | ||
7798 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7799 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject * _resultobj; | |
7801 | bool _result; | |
7802 | wxScrollBar * _arg0; | |
7803 | wxWindow * _arg1; | |
7804 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7805 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7806 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7807 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7808 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7809 | char * _arg7 = (char *) "scrollBar"; | |
7810 | PyObject * _argo0 = 0; | |
7811 | PyObject * _argo1 = 0; | |
7812 | wxPoint temp; | |
7813 | PyObject * _obj3 = 0; | |
7814 | wxSize temp0; | |
7815 | PyObject * _obj4 = 0; | |
7816 | PyObject * _argo6 = 0; | |
7817 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7818 | ||
7819 | self = self; | |
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7821 | return NULL; | |
7822 | if (_argo0) { | |
7823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7826 | return NULL; | |
7827 | } | |
7828 | } | |
7829 | if (_argo1) { | |
7830 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7831 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7833 | return NULL; | |
7834 | } | |
7835 | } | |
7836 | if (_obj3) | |
7837 | { | |
7838 | _arg3 = &temp; | |
7839 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7840 | return NULL; | |
7841 | } | |
7842 | if (_obj4) | |
7843 | { | |
7844 | _arg4 = &temp0; | |
7845 | if (! wxSize_helper(_obj4, &_arg4)) | |
7846 | return NULL; | |
7847 | } | |
7848 | if (_argo6) { | |
7849 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7852 | return NULL; | |
7853 | } | |
7854 | } | |
7855 | { | |
7856 | wxPy_BEGIN_ALLOW_THREADS; | |
7857 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
7858 | ||
7859 | wxPy_END_ALLOW_THREADS; | |
7860 | if (PyErr_Occurred()) return NULL; | |
7861 | } _resultobj = Py_BuildValue("i",_result); | |
7862 | return _resultobj; | |
7863 | } | |
7864 | ||
7865 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
7866 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject * _resultobj; | |
7868 | int _result; | |
7869 | wxScrollBar * _arg0; | |
7870 | PyObject * _argo0 = 0; | |
7871 | char *_kwnames[] = { "self", NULL }; | |
7872 | ||
7873 | self = self; | |
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) | |
7875 | return NULL; | |
7876 | if (_argo0) { | |
7877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); | |
7880 | return NULL; | |
7881 | } | |
7882 | } | |
7883 | { | |
7884 | wxPy_BEGIN_ALLOW_THREADS; | |
7885 | _result = (int )wxScrollBar_GetRange(_arg0); | |
7886 | ||
7887 | wxPy_END_ALLOW_THREADS; | |
7888 | if (PyErr_Occurred()) return NULL; | |
7889 | } _resultobj = Py_BuildValue("i",_result); | |
7890 | return _resultobj; | |
7891 | } | |
7892 | ||
7893 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
7894 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7895 | PyObject * _resultobj; | |
7896 | int _result; | |
7897 | wxScrollBar * _arg0; | |
7898 | PyObject * _argo0 = 0; | |
7899 | char *_kwnames[] = { "self", NULL }; | |
7900 | ||
7901 | self = self; | |
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) | |
7903 | return NULL; | |
7904 | if (_argo0) { | |
7905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); | |
7908 | return NULL; | |
7909 | } | |
7910 | } | |
7911 | { | |
7912 | wxPy_BEGIN_ALLOW_THREADS; | |
7913 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
7914 | ||
7915 | wxPy_END_ALLOW_THREADS; | |
7916 | if (PyErr_Occurred()) return NULL; | |
7917 | } _resultobj = Py_BuildValue("i",_result); | |
7918 | return _resultobj; | |
7919 | } | |
7920 | ||
7921 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) | |
7922 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7923 | PyObject * _resultobj; | |
7924 | int _result; | |
7925 | wxScrollBar * _arg0; | |
7926 | PyObject * _argo0 = 0; | |
7927 | char *_kwnames[] = { "self", NULL }; | |
7928 | ||
7929 | self = self; | |
7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) | |
7931 | return NULL; | |
7932 | if (_argo0) { | |
7933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); | |
7936 | return NULL; | |
7937 | } | |
7938 | } | |
7939 | { | |
7940 | wxPy_BEGIN_ALLOW_THREADS; | |
7941 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
7942 | ||
7943 | wxPy_END_ALLOW_THREADS; | |
7944 | if (PyErr_Occurred()) return NULL; | |
7945 | } _resultobj = Py_BuildValue("i",_result); | |
7946 | return _resultobj; | |
7947 | } | |
7948 | ||
7949 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
7950 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7951 | PyObject * _resultobj; | |
7952 | int _result; | |
7953 | wxScrollBar * _arg0; | |
7954 | PyObject * _argo0 = 0; | |
7955 | char *_kwnames[] = { "self", NULL }; | |
7956 | ||
7957 | self = self; | |
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) | |
7959 | return NULL; | |
7960 | if (_argo0) { | |
7961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); | |
7964 | return NULL; | |
7965 | } | |
7966 | } | |
7967 | { | |
7968 | wxPy_BEGIN_ALLOW_THREADS; | |
7969 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
7970 | ||
7971 | wxPy_END_ALLOW_THREADS; | |
7972 | if (PyErr_Occurred()) return NULL; | |
7973 | } _resultobj = Py_BuildValue("i",_result); | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) | |
7978 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7979 | PyObject * _resultobj; | |
7980 | bool _result; | |
7981 | wxScrollBar * _arg0; | |
7982 | PyObject * _argo0 = 0; | |
7983 | char *_kwnames[] = { "self", NULL }; | |
7984 | ||
7985 | self = self; | |
7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
7987 | return NULL; | |
7988 | if (_argo0) { | |
7989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
7992 | return NULL; | |
7993 | } | |
7994 | } | |
7995 | { | |
7996 | wxPy_BEGIN_ALLOW_THREADS; | |
7997 | _result = (bool )wxScrollBar_IsVertical(_arg0); | |
7998 | ||
7999 | wxPy_END_ALLOW_THREADS; | |
8000 | if (PyErr_Occurred()) return NULL; | |
8001 | } _resultobj = Py_BuildValue("i",_result); | |
8002 | return _resultobj; | |
8003 | } | |
8004 | ||
8005 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) | |
8006 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject * _resultobj; | |
8008 | wxScrollBar * _arg0; | |
8009 | int _arg1; | |
8010 | PyObject * _argo0 = 0; | |
8011 | char *_kwnames[] = { "self","viewStart", NULL }; | |
8012 | ||
8013 | self = self; | |
8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) | |
8015 | return NULL; | |
8016 | if (_argo0) { | |
8017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); | |
8020 | return NULL; | |
8021 | } | |
8022 | } | |
8023 | { | |
8024 | wxPy_BEGIN_ALLOW_THREADS; | |
8025 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
8026 | ||
8027 | wxPy_END_ALLOW_THREADS; | |
8028 | if (PyErr_Occurred()) return NULL; | |
8029 | } Py_INCREF(Py_None); | |
8030 | _resultobj = Py_None; | |
8031 | return _resultobj; | |
8032 | } | |
8033 | ||
8034 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8035 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8036 | PyObject * _resultobj; | |
8037 | wxScrollBar * _arg0; | |
8038 | int _arg1; | |
8039 | int _arg2; | |
8040 | int _arg3; | |
8041 | int _arg4; | |
8042 | bool _arg5 = (bool ) TRUE; | |
8043 | PyObject * _argo0 = 0; | |
8044 | int tempbool5 = (int) TRUE; | |
8045 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; | |
8046 | ||
8047 | self = self; | |
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) | |
8049 | return NULL; | |
8050 | if (_argo0) { | |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); | |
8054 | return NULL; | |
8055 | } | |
8056 | } | |
8057 | _arg5 = (bool ) tempbool5; | |
8058 | { | |
8059 | wxPy_BEGIN_ALLOW_THREADS; | |
8060 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
8061 | ||
8062 | wxPy_END_ALLOW_THREADS; | |
8063 | if (PyErr_Occurred()) return NULL; | |
8064 | } Py_INCREF(Py_None); | |
8065 | _resultobj = Py_None; | |
8066 | return _resultobj; | |
8067 | } | |
8068 | ||
8069 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8070 | wxSpinButton *src; | |
8071 | wxControl *dest; | |
8072 | src = (wxSpinButton *) ptr; | |
8073 | dest = (wxControl *) src; | |
8074 | return (void *) dest; | |
8075 | } | |
8076 | ||
8077 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8078 | wxSpinButton *src; | |
8079 | wxWindow *dest; | |
8080 | src = (wxSpinButton *) ptr; | |
8081 | dest = (wxWindow *) src; | |
8082 | return (void *) dest; | |
8083 | } | |
8084 | ||
8085 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8086 | wxSpinButton *src; | |
8087 | wxEvtHandler *dest; | |
8088 | src = (wxSpinButton *) ptr; | |
8089 | dest = (wxEvtHandler *) src; | |
8090 | return (void *) dest; | |
8091 | } | |
8092 | ||
8093 | static void *SwigwxSpinButtonTowxObject(void *ptr) { | |
8094 | wxSpinButton *src; | |
8095 | wxObject *dest; | |
8096 | src = (wxSpinButton *) ptr; | |
8097 | dest = (wxObject *) src; | |
8098 | return (void *) dest; | |
8099 | } | |
8100 | ||
8101 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8102 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8103 | PyObject * _resultobj; | |
8104 | wxSpinButton * _result; | |
8105 | wxWindow * _arg0; | |
8106 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8107 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8108 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8109 | long _arg4 = (long ) wxSP_HORIZONTAL; | |
8110 | char * _arg5 = (char *) "spinButton"; | |
8111 | PyObject * _argo0 = 0; | |
8112 | wxPoint temp; | |
8113 | PyObject * _obj2 = 0; | |
8114 | wxSize temp0; | |
8115 | PyObject * _obj3 = 0; | |
8116 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
8117 | char _ptemp[128]; | |
8118 | ||
8119 | self = self; | |
8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
8121 | return NULL; | |
8122 | if (_argo0) { | |
8123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); | |
8126 | return NULL; | |
8127 | } | |
8128 | } | |
8129 | if (_obj2) | |
8130 | { | |
8131 | _arg2 = &temp; | |
8132 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8133 | return NULL; | |
8134 | } | |
8135 | if (_obj3) | |
8136 | { | |
8137 | _arg3 = &temp0; | |
8138 | if (! wxSize_helper(_obj3, &_arg3)) | |
8139 | return NULL; | |
8140 | } | |
8141 | { | |
8142 | wxPy_BEGIN_ALLOW_THREADS; | |
8143 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
8144 | ||
8145 | wxPy_END_ALLOW_THREADS; | |
8146 | if (PyErr_Occurred()) return NULL; | |
8147 | } if (_result) { | |
8148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8149 | _resultobj = Py_BuildValue("s",_ptemp); | |
8150 | } else { | |
8151 | Py_INCREF(Py_None); | |
8152 | _resultobj = Py_None; | |
8153 | } | |
8154 | return _resultobj; | |
8155 | } | |
8156 | ||
8157 | #define new_wxPreSpinButton() (new wxSpinButton()) | |
8158 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8159 | PyObject * _resultobj; | |
8160 | wxSpinButton * _result; | |
8161 | char *_kwnames[] = { NULL }; | |
8162 | char _ptemp[128]; | |
8163 | ||
8164 | self = self; | |
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8166 | return NULL; | |
8167 | { | |
8168 | wxPy_BEGIN_ALLOW_THREADS; | |
8169 | _result = (wxSpinButton *)new_wxPreSpinButton(); | |
8170 | ||
8171 | wxPy_END_ALLOW_THREADS; | |
8172 | if (PyErr_Occurred()) return NULL; | |
8173 | } if (_result) { | |
8174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8175 | _resultobj = Py_BuildValue("s",_ptemp); | |
8176 | } else { | |
8177 | Py_INCREF(Py_None); | |
8178 | _resultobj = Py_None; | |
8179 | } | |
8180 | return _resultobj; | |
8181 | } | |
8182 | ||
8183 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8184 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8185 | PyObject * _resultobj; | |
8186 | bool _result; | |
8187 | wxSpinButton * _arg0; | |
8188 | wxWindow * _arg1; | |
8189 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8190 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8191 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8192 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8193 | char * _arg6 = (char *) "spinButton"; | |
8194 | PyObject * _argo0 = 0; | |
8195 | PyObject * _argo1 = 0; | |
8196 | wxPoint temp; | |
8197 | PyObject * _obj3 = 0; | |
8198 | wxSize temp0; | |
8199 | PyObject * _obj4 = 0; | |
8200 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8201 | ||
8202 | self = self; | |
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8204 | return NULL; | |
8205 | if (_argo0) { | |
8206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8209 | return NULL; | |
8210 | } | |
8211 | } | |
8212 | if (_argo1) { | |
8213 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8214 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8216 | return NULL; | |
8217 | } | |
8218 | } | |
8219 | if (_obj3) | |
8220 | { | |
8221 | _arg3 = &temp; | |
8222 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8223 | return NULL; | |
8224 | } | |
8225 | if (_obj4) | |
8226 | { | |
8227 | _arg4 = &temp0; | |
8228 | if (! wxSize_helper(_obj4, &_arg4)) | |
8229 | return NULL; | |
8230 | } | |
8231 | { | |
8232 | wxPy_BEGIN_ALLOW_THREADS; | |
8233 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8234 | ||
8235 | wxPy_END_ALLOW_THREADS; | |
8236 | if (PyErr_Occurred()) return NULL; | |
8237 | } _resultobj = Py_BuildValue("i",_result); | |
8238 | return _resultobj; | |
8239 | } | |
8240 | ||
8241 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
8242 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8243 | PyObject * _resultobj; | |
8244 | int _result; | |
8245 | wxSpinButton * _arg0; | |
8246 | PyObject * _argo0 = 0; | |
8247 | char *_kwnames[] = { "self", NULL }; | |
8248 | ||
8249 | self = self; | |
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) | |
8251 | return NULL; | |
8252 | if (_argo0) { | |
8253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); | |
8256 | return NULL; | |
8257 | } | |
8258 | } | |
8259 | { | |
8260 | wxPy_BEGIN_ALLOW_THREADS; | |
8261 | _result = (int )wxSpinButton_GetMax(_arg0); | |
8262 | ||
8263 | wxPy_END_ALLOW_THREADS; | |
8264 | if (PyErr_Occurred()) return NULL; | |
8265 | } _resultobj = Py_BuildValue("i",_result); | |
8266 | return _resultobj; | |
8267 | } | |
8268 | ||
8269 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
8270 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8271 | PyObject * _resultobj; | |
8272 | int _result; | |
8273 | wxSpinButton * _arg0; | |
8274 | PyObject * _argo0 = 0; | |
8275 | char *_kwnames[] = { "self", NULL }; | |
8276 | ||
8277 | self = self; | |
8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) | |
8279 | return NULL; | |
8280 | if (_argo0) { | |
8281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); | |
8284 | return NULL; | |
8285 | } | |
8286 | } | |
8287 | { | |
8288 | wxPy_BEGIN_ALLOW_THREADS; | |
8289 | _result = (int )wxSpinButton_GetMin(_arg0); | |
8290 | ||
8291 | wxPy_END_ALLOW_THREADS; | |
8292 | if (PyErr_Occurred()) return NULL; | |
8293 | } _resultobj = Py_BuildValue("i",_result); | |
8294 | return _resultobj; | |
8295 | } | |
8296 | ||
8297 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8298 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8299 | PyObject * _resultobj; | |
8300 | int _result; | |
8301 | wxSpinButton * _arg0; | |
8302 | PyObject * _argo0 = 0; | |
8303 | char *_kwnames[] = { "self", NULL }; | |
8304 | ||
8305 | self = self; | |
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) | |
8307 | return NULL; | |
8308 | if (_argo0) { | |
8309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); | |
8312 | return NULL; | |
8313 | } | |
8314 | } | |
8315 | { | |
8316 | wxPy_BEGIN_ALLOW_THREADS; | |
8317 | _result = (int )wxSpinButton_GetValue(_arg0); | |
8318 | ||
8319 | wxPy_END_ALLOW_THREADS; | |
8320 | if (PyErr_Occurred()) return NULL; | |
8321 | } _resultobj = Py_BuildValue("i",_result); | |
8322 | return _resultobj; | |
8323 | } | |
8324 | ||
8325 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8326 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8327 | PyObject * _resultobj; | |
8328 | wxSpinButton * _arg0; | |
8329 | int _arg1; | |
8330 | int _arg2; | |
8331 | PyObject * _argo0 = 0; | |
8332 | char *_kwnames[] = { "self","min","max", NULL }; | |
8333 | ||
8334 | self = self; | |
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8336 | return NULL; | |
8337 | if (_argo0) { | |
8338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); | |
8341 | return NULL; | |
8342 | } | |
8343 | } | |
8344 | { | |
8345 | wxPy_BEGIN_ALLOW_THREADS; | |
8346 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
8347 | ||
8348 | wxPy_END_ALLOW_THREADS; | |
8349 | if (PyErr_Occurred()) return NULL; | |
8350 | } Py_INCREF(Py_None); | |
8351 | _resultobj = Py_None; | |
8352 | return _resultobj; | |
8353 | } | |
8354 | ||
8355 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8356 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject * _resultobj; | |
8358 | wxSpinButton * _arg0; | |
8359 | int _arg1; | |
8360 | PyObject * _argo0 = 0; | |
8361 | char *_kwnames[] = { "self","value", NULL }; | |
8362 | ||
8363 | self = self; | |
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) | |
8365 | return NULL; | |
8366 | if (_argo0) { | |
8367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); | |
8370 | return NULL; | |
8371 | } | |
8372 | } | |
8373 | { | |
8374 | wxPy_BEGIN_ALLOW_THREADS; | |
8375 | wxSpinButton_SetValue(_arg0,_arg1); | |
8376 | ||
8377 | wxPy_END_ALLOW_THREADS; | |
8378 | if (PyErr_Occurred()) return NULL; | |
8379 | } Py_INCREF(Py_None); | |
8380 | _resultobj = Py_None; | |
8381 | return _resultobj; | |
8382 | } | |
8383 | ||
8384 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8385 | wxStaticBitmap *src; | |
8386 | wxControl *dest; | |
8387 | src = (wxStaticBitmap *) ptr; | |
8388 | dest = (wxControl *) src; | |
8389 | return (void *) dest; | |
8390 | } | |
8391 | ||
8392 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8393 | wxStaticBitmap *src; | |
8394 | wxWindow *dest; | |
8395 | src = (wxStaticBitmap *) ptr; | |
8396 | dest = (wxWindow *) src; | |
8397 | return (void *) dest; | |
8398 | } | |
8399 | ||
8400 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8401 | wxStaticBitmap *src; | |
8402 | wxEvtHandler *dest; | |
8403 | src = (wxStaticBitmap *) ptr; | |
8404 | dest = (wxEvtHandler *) src; | |
8405 | return (void *) dest; | |
8406 | } | |
8407 | ||
8408 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { | |
8409 | wxStaticBitmap *src; | |
8410 | wxObject *dest; | |
8411 | src = (wxStaticBitmap *) ptr; | |
8412 | dest = (wxObject *) src; | |
8413 | return (void *) dest; | |
8414 | } | |
8415 | ||
8416 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8417 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject * _resultobj; | |
8419 | wxStaticBitmap * _result; | |
8420 | wxWindow * _arg0; | |
8421 | wxWindowID _arg1; | |
8422 | wxBitmap * _arg2; | |
8423 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8424 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8425 | long _arg5 = (long ) 0; | |
8426 | char * _arg6 = (char *) "staticBitmap"; | |
8427 | PyObject * _argo0 = 0; | |
8428 | PyObject * _argo2 = 0; | |
8429 | wxPoint temp; | |
8430 | PyObject * _obj3 = 0; | |
8431 | wxSize temp0; | |
8432 | PyObject * _obj4 = 0; | |
8433 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8434 | char _ptemp[128]; | |
8435 | ||
8436 | self = self; | |
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8438 | return NULL; | |
8439 | if (_argo0) { | |
8440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8443 | return NULL; | |
8444 | } | |
8445 | } | |
8446 | if (_argo2) { | |
8447 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8448 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8450 | return NULL; | |
8451 | } | |
8452 | } | |
8453 | if (_obj3) | |
8454 | { | |
8455 | _arg3 = &temp; | |
8456 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8457 | return NULL; | |
8458 | } | |
8459 | if (_obj4) | |
8460 | { | |
8461 | _arg4 = &temp0; | |
8462 | if (! wxSize_helper(_obj4, &_arg4)) | |
8463 | return NULL; | |
8464 | } | |
8465 | { | |
8466 | wxPy_BEGIN_ALLOW_THREADS; | |
8467 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8468 | ||
8469 | wxPy_END_ALLOW_THREADS; | |
8470 | if (PyErr_Occurred()) return NULL; | |
8471 | } if (_result) { | |
8472 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8473 | _resultobj = Py_BuildValue("s",_ptemp); | |
8474 | } else { | |
8475 | Py_INCREF(Py_None); | |
8476 | _resultobj = Py_None; | |
8477 | } | |
8478 | return _resultobj; | |
8479 | } | |
8480 | ||
8481 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8482 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8483 | PyObject * _resultobj; | |
8484 | wxStaticBitmap * _result; | |
8485 | char *_kwnames[] = { NULL }; | |
8486 | char _ptemp[128]; | |
8487 | ||
8488 | self = self; | |
8489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8490 | return NULL; | |
8491 | { | |
8492 | wxPy_BEGIN_ALLOW_THREADS; | |
8493 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); | |
8494 | ||
8495 | wxPy_END_ALLOW_THREADS; | |
8496 | if (PyErr_Occurred()) return NULL; | |
8497 | } if (_result) { | |
8498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8499 | _resultobj = Py_BuildValue("s",_ptemp); | |
8500 | } else { | |
8501 | Py_INCREF(Py_None); | |
8502 | _resultobj = Py_None; | |
8503 | } | |
8504 | return _resultobj; | |
8505 | } | |
8506 | ||
8507 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8508 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8509 | PyObject * _resultobj; | |
8510 | bool _result; | |
8511 | wxStaticBitmap * _arg0; | |
8512 | wxWindow * _arg1; | |
8513 | wxWindowID _arg2; | |
8514 | wxBitmap * _arg3; | |
8515 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8516 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8517 | long _arg6 = (long ) 0; | |
8518 | char * _arg7 = (char *) "staticBitmap"; | |
8519 | PyObject * _argo0 = 0; | |
8520 | PyObject * _argo1 = 0; | |
8521 | PyObject * _argo3 = 0; | |
8522 | wxPoint temp; | |
8523 | PyObject * _obj4 = 0; | |
8524 | wxSize temp0; | |
8525 | PyObject * _obj5 = 0; | |
8526 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
8527 | ||
8528 | self = self; | |
8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
8530 | return NULL; | |
8531 | if (_argo0) { | |
8532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8535 | return NULL; | |
8536 | } | |
8537 | } | |
8538 | if (_argo1) { | |
8539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8542 | return NULL; | |
8543 | } | |
8544 | } | |
8545 | if (_argo3) { | |
8546 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8547 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8549 | return NULL; | |
8550 | } | |
8551 | } | |
8552 | if (_obj4) | |
8553 | { | |
8554 | _arg4 = &temp; | |
8555 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8556 | return NULL; | |
8557 | } | |
8558 | if (_obj5) | |
8559 | { | |
8560 | _arg5 = &temp0; | |
8561 | if (! wxSize_helper(_obj5, &_arg5)) | |
8562 | return NULL; | |
8563 | } | |
8564 | { | |
8565 | wxPy_BEGIN_ALLOW_THREADS; | |
8566 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
8567 | ||
8568 | wxPy_END_ALLOW_THREADS; | |
8569 | if (PyErr_Occurred()) return NULL; | |
8570 | } _resultobj = Py_BuildValue("i",_result); | |
8571 | return _resultobj; | |
8572 | } | |
8573 | ||
8574 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
8575 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject * _resultobj; | |
8577 | wxBitmap * _result; | |
8578 | wxStaticBitmap * _arg0; | |
8579 | PyObject * _argo0 = 0; | |
8580 | char *_kwnames[] = { "self", NULL }; | |
8581 | char _ptemp[128]; | |
8582 | ||
8583 | self = self; | |
8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) | |
8585 | return NULL; | |
8586 | if (_argo0) { | |
8587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); | |
8590 | return NULL; | |
8591 | } | |
8592 | } | |
8593 | { | |
8594 | wxPy_BEGIN_ALLOW_THREADS; | |
8595 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); | |
8596 | ||
8597 | wxPy_END_ALLOW_THREADS; | |
8598 | if (PyErr_Occurred()) return NULL; | |
8599 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
8600 | _resultobj = Py_BuildValue("s",_ptemp); | |
8601 | return _resultobj; | |
8602 | } | |
8603 | ||
8604 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
8605 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject * _resultobj; | |
8607 | wxStaticBitmap * _arg0; | |
8608 | wxBitmap * _arg1; | |
8609 | PyObject * _argo0 = 0; | |
8610 | PyObject * _argo1 = 0; | |
8611 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8612 | ||
8613 | self = self; | |
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
8615 | return NULL; | |
8616 | if (_argo0) { | |
8617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); | |
8620 | return NULL; | |
8621 | } | |
8622 | } | |
8623 | if (_argo1) { | |
8624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); | |
8627 | return NULL; | |
8628 | } | |
8629 | } | |
8630 | { | |
8631 | wxPy_BEGIN_ALLOW_THREADS; | |
8632 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
8633 | ||
8634 | wxPy_END_ALLOW_THREADS; | |
8635 | if (PyErr_Occurred()) return NULL; | |
8636 | } Py_INCREF(Py_None); | |
8637 | _resultobj = Py_None; | |
8638 | return _resultobj; | |
8639 | } | |
8640 | ||
8641 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
8642 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8643 | PyObject * _resultobj; | |
8644 | wxStaticBitmap * _arg0; | |
8645 | wxIcon * _arg1; | |
8646 | PyObject * _argo0 = 0; | |
8647 | PyObject * _argo1 = 0; | |
8648 | char *_kwnames[] = { "self","icon", NULL }; | |
8649 | ||
8650 | self = self; | |
8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) | |
8652 | return NULL; | |
8653 | if (_argo0) { | |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); | |
8657 | return NULL; | |
8658 | } | |
8659 | } | |
8660 | if (_argo1) { | |
8661 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8662 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); | |
8664 | return NULL; | |
8665 | } | |
8666 | } | |
8667 | { | |
8668 | wxPy_BEGIN_ALLOW_THREADS; | |
8669 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
8670 | ||
8671 | wxPy_END_ALLOW_THREADS; | |
8672 | if (PyErr_Occurred()) return NULL; | |
8673 | } Py_INCREF(Py_None); | |
8674 | _resultobj = Py_None; | |
8675 | return _resultobj; | |
8676 | } | |
8677 | ||
8678 | static void *SwigwxRadioBoxTowxControl(void *ptr) { | |
8679 | wxRadioBox *src; | |
8680 | wxControl *dest; | |
8681 | src = (wxRadioBox *) ptr; | |
8682 | dest = (wxControl *) src; | |
8683 | return (void *) dest; | |
8684 | } | |
8685 | ||
8686 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8687 | wxRadioBox *src; | |
8688 | wxWindow *dest; | |
8689 | src = (wxRadioBox *) ptr; | |
8690 | dest = (wxWindow *) src; | |
8691 | return (void *) dest; | |
8692 | } | |
8693 | ||
8694 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8695 | wxRadioBox *src; | |
8696 | wxEvtHandler *dest; | |
8697 | src = (wxRadioBox *) ptr; | |
8698 | dest = (wxEvtHandler *) src; | |
8699 | return (void *) dest; | |
8700 | } | |
8701 | ||
8702 | static void *SwigwxRadioBoxTowxObject(void *ptr) { | |
8703 | wxRadioBox *src; | |
8704 | wxObject *dest; | |
8705 | src = (wxRadioBox *) ptr; | |
8706 | dest = (wxObject *) src; | |
8707 | return (void *) dest; | |
8708 | } | |
8709 | ||
8710 | #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)) | |
8711 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject * _resultobj; | |
8713 | wxRadioBox * _result; | |
8714 | wxWindow * _arg0; | |
8715 | wxWindowID _arg1; | |
8716 | wxString * _arg2; | |
8717 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8718 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8719 | int _arg5 = (int ) 0; | |
8720 | wxString * _arg6 = (wxString *) NULL; | |
8721 | int _arg7 = (int ) 0; | |
8722 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
8723 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
8724 | char * _arg10 = (char *) "radioBox"; | |
8725 | PyObject * _argo0 = 0; | |
8726 | PyObject * _obj2 = 0; | |
8727 | wxPoint temp; | |
8728 | PyObject * _obj3 = 0; | |
8729 | wxSize temp0; | |
8730 | PyObject * _obj4 = 0; | |
8731 | PyObject * _obj6 = 0; | |
8732 | PyObject * _argo9 = 0; | |
8733 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8734 | char _ptemp[128]; | |
8735 | ||
8736 | self = self; | |
8737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) | |
8738 | return NULL; | |
8739 | if (_argo0) { | |
8740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); | |
8743 | return NULL; | |
8744 | } | |
8745 | } | |
8746 | { | |
8747 | #if PYTHON_API_VERSION >= 1009 | |
8748 | char* tmpPtr; int tmpSize; | |
8749 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8750 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8751 | return NULL; | |
8752 | } | |
8753 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8754 | return NULL; | |
8755 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8756 | #else | |
8757 | if (!PyString_Check(_obj2)) { | |
8758 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8759 | return NULL; | |
8760 | } | |
8761 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8762 | #endif | |
8763 | } | |
8764 | if (_obj3) | |
8765 | { | |
8766 | _arg3 = &temp; | |
8767 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8768 | return NULL; | |
8769 | } | |
8770 | if (_obj4) | |
8771 | { | |
8772 | _arg4 = &temp0; | |
8773 | if (! wxSize_helper(_obj4, &_arg4)) | |
8774 | return NULL; | |
8775 | } | |
8776 | if (_obj6) | |
8777 | { | |
8778 | _arg6 = wxString_LIST_helper(_obj6); | |
8779 | if (_arg6 == NULL) { | |
8780 | return NULL; | |
8781 | } | |
8782 | } | |
8783 | if (_argo9) { | |
8784 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8785 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); | |
8787 | return NULL; | |
8788 | } | |
8789 | } | |
8790 | { | |
8791 | if (_obj6) { | |
8792 | _arg5 = PyList_Size(_obj6); | |
8793 | } | |
8794 | else { | |
8795 | _arg5 = 0; | |
8796 | } | |
8797 | } | |
8798 | { | |
8799 | wxPy_BEGIN_ALLOW_THREADS; | |
8800 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
8801 | ||
8802 | wxPy_END_ALLOW_THREADS; | |
8803 | if (PyErr_Occurred()) return NULL; | |
8804 | } if (_result) { | |
8805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8806 | _resultobj = Py_BuildValue("s",_ptemp); | |
8807 | } else { | |
8808 | Py_INCREF(Py_None); | |
8809 | _resultobj = Py_None; | |
8810 | } | |
8811 | { | |
8812 | if (_obj2) | |
8813 | delete _arg2; | |
8814 | } | |
8815 | { | |
8816 | delete [] _arg6; | |
8817 | } | |
8818 | return _resultobj; | |
8819 | } | |
8820 | ||
8821 | #define new_wxPreRadioBox() (new wxRadioBox()) | |
8822 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8823 | PyObject * _resultobj; | |
8824 | wxRadioBox * _result; | |
8825 | char *_kwnames[] = { NULL }; | |
8826 | char _ptemp[128]; | |
8827 | ||
8828 | self = self; | |
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8830 | return NULL; | |
8831 | { | |
8832 | wxPy_BEGIN_ALLOW_THREADS; | |
8833 | _result = (wxRadioBox *)new_wxPreRadioBox(); | |
8834 | ||
8835 | wxPy_END_ALLOW_THREADS; | |
8836 | if (PyErr_Occurred()) return NULL; | |
8837 | } if (_result) { | |
8838 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8839 | _resultobj = Py_BuildValue("s",_ptemp); | |
8840 | } else { | |
8841 | Py_INCREF(Py_None); | |
8842 | _resultobj = Py_None; | |
8843 | } | |
8844 | return _resultobj; | |
8845 | } | |
8846 | ||
8847 | #define 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)) | |
8848 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject * _resultobj; | |
8850 | bool _result; | |
8851 | wxRadioBox * _arg0; | |
8852 | wxWindow * _arg1; | |
8853 | wxWindowID _arg2; | |
8854 | wxString * _arg3; | |
8855 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8856 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8857 | int _arg6 = (int ) 0; | |
8858 | wxString * _arg7 = (wxString *) NULL; | |
8859 | int _arg8 = (int ) 0; | |
8860 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8861 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8862 | char * _arg11 = (char *) "radioBox"; | |
8863 | PyObject * _argo0 = 0; | |
8864 | PyObject * _argo1 = 0; | |
8865 | PyObject * _obj3 = 0; | |
8866 | wxPoint temp; | |
8867 | PyObject * _obj4 = 0; | |
8868 | wxSize temp0; | |
8869 | PyObject * _obj5 = 0; | |
8870 | PyObject * _obj7 = 0; | |
8871 | PyObject * _argo10 = 0; | |
8872 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8873 | ||
8874 | self = self; | |
8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8876 | return NULL; | |
8877 | if (_argo0) { | |
8878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8881 | return NULL; | |
8882 | } | |
8883 | } | |
8884 | if (_argo1) { | |
8885 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8886 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8888 | return NULL; | |
8889 | } | |
8890 | } | |
8891 | { | |
8892 | #if PYTHON_API_VERSION >= 1009 | |
8893 | char* tmpPtr; int tmpSize; | |
8894 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8895 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8896 | return NULL; | |
8897 | } | |
8898 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8899 | return NULL; | |
8900 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8901 | #else | |
8902 | if (!PyString_Check(_obj3)) { | |
8903 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8904 | return NULL; | |
8905 | } | |
8906 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8907 | #endif | |
8908 | } | |
8909 | if (_obj4) | |
8910 | { | |
8911 | _arg4 = &temp; | |
8912 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8913 | return NULL; | |
8914 | } | |
8915 | if (_obj5) | |
8916 | { | |
8917 | _arg5 = &temp0; | |
8918 | if (! wxSize_helper(_obj5, &_arg5)) | |
8919 | return NULL; | |
8920 | } | |
8921 | if (_obj7) | |
8922 | { | |
8923 | _arg7 = wxString_LIST_helper(_obj7); | |
8924 | if (_arg7 == NULL) { | |
8925 | return NULL; | |
8926 | } | |
8927 | } | |
8928 | if (_argo10) { | |
8929 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8930 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8932 | return NULL; | |
8933 | } | |
8934 | } | |
8935 | { | |
8936 | if (_obj7) { | |
8937 | _arg6 = PyList_Size(_obj7); | |
8938 | } | |
8939 | else { | |
8940 | _arg6 = 0; | |
8941 | } | |
8942 | } | |
8943 | { | |
8944 | wxPy_BEGIN_ALLOW_THREADS; | |
8945 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); | |
8946 | ||
8947 | wxPy_END_ALLOW_THREADS; | |
8948 | if (PyErr_Occurred()) return NULL; | |
8949 | } _resultobj = Py_BuildValue("i",_result); | |
8950 | { | |
8951 | if (_obj3) | |
8952 | delete _arg3; | |
8953 | } | |
8954 | { | |
8955 | delete [] _arg7; | |
8956 | } | |
8957 | return _resultobj; | |
8958 | } | |
8959 | ||
8960 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8961 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject * _resultobj; | |
8963 | wxRadioBox * _arg0; | |
8964 | bool _arg1; | |
8965 | PyObject * _argo0 = 0; | |
8966 | int tempbool1; | |
8967 | char *_kwnames[] = { "self","enable", NULL }; | |
8968 | ||
8969 | self = self; | |
8970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) | |
8971 | return NULL; | |
8972 | if (_argo0) { | |
8973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); | |
8976 | return NULL; | |
8977 | } | |
8978 | } | |
8979 | _arg1 = (bool ) tempbool1; | |
8980 | { | |
8981 | wxPy_BEGIN_ALLOW_THREADS; | |
8982 | wxRadioBox_Enable(_arg0,_arg1); | |
8983 | ||
8984 | wxPy_END_ALLOW_THREADS; | |
8985 | if (PyErr_Occurred()) return NULL; | |
8986 | } Py_INCREF(Py_None); | |
8987 | _resultobj = Py_None; | |
8988 | return _resultobj; | |
8989 | } | |
8990 | ||
8991 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8992 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8993 | PyObject * _resultobj; | |
8994 | wxRadioBox * _arg0; | |
8995 | int _arg1; | |
8996 | bool _arg2; | |
8997 | PyObject * _argo0 = 0; | |
8998 | int tempbool2; | |
8999 | char *_kwnames[] = { "self","n","enable", NULL }; | |
9000 | ||
9001 | self = self; | |
9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9003 | return NULL; | |
9004 | if (_argo0) { | |
9005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); | |
9008 | return NULL; | |
9009 | } | |
9010 | } | |
9011 | _arg2 = (bool ) tempbool2; | |
9012 | { | |
9013 | wxPy_BEGIN_ALLOW_THREADS; | |
9014 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
9015 | ||
9016 | wxPy_END_ALLOW_THREADS; | |
9017 | if (PyErr_Occurred()) return NULL; | |
9018 | } Py_INCREF(Py_None); | |
9019 | _resultobj = Py_None; | |
9020 | return _resultobj; | |
9021 | } | |
9022 | ||
9023 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
9024 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject * _resultobj; | |
9026 | int _result; | |
9027 | wxRadioBox * _arg0; | |
9028 | wxString * _arg1; | |
9029 | PyObject * _argo0 = 0; | |
9030 | PyObject * _obj1 = 0; | |
9031 | char *_kwnames[] = { "self","string", NULL }; | |
9032 | ||
9033 | self = self; | |
9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) | |
9035 | return NULL; | |
9036 | if (_argo0) { | |
9037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); | |
9040 | return NULL; | |
9041 | } | |
9042 | } | |
9043 | { | |
9044 | #if PYTHON_API_VERSION >= 1009 | |
9045 | char* tmpPtr; int tmpSize; | |
9046 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9047 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9048 | return NULL; | |
9049 | } | |
9050 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9051 | return NULL; | |
9052 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9053 | #else | |
9054 | if (!PyString_Check(_obj1)) { | |
9055 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9056 | return NULL; | |
9057 | } | |
9058 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9059 | #endif | |
9060 | } | |
9061 | { | |
9062 | wxPy_BEGIN_ALLOW_THREADS; | |
9063 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
9064 | ||
9065 | wxPy_END_ALLOW_THREADS; | |
9066 | if (PyErr_Occurred()) return NULL; | |
9067 | } _resultobj = Py_BuildValue("i",_result); | |
9068 | { | |
9069 | if (_obj1) | |
9070 | delete _arg1; | |
9071 | } | |
9072 | return _resultobj; | |
9073 | } | |
9074 | ||
9075 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
9076 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject * _resultobj; | |
9078 | wxString * _result; | |
9079 | wxRadioBox * _arg0; | |
9080 | int _arg1; | |
9081 | PyObject * _argo0 = 0; | |
9082 | char *_kwnames[] = { "self","n", NULL }; | |
9083 | ||
9084 | self = self; | |
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) | |
9086 | return NULL; | |
9087 | if (_argo0) { | |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); | |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
9094 | { | |
9095 | wxPy_BEGIN_ALLOW_THREADS; | |
9096 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
9097 | ||
9098 | wxPy_END_ALLOW_THREADS; | |
9099 | if (PyErr_Occurred()) return NULL; | |
9100 | }{ | |
9101 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9102 | } | |
9103 | { | |
9104 | delete _result; | |
9105 | } | |
9106 | return _resultobj; | |
9107 | } | |
9108 | ||
9109 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
9110 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9111 | PyObject * _resultobj; | |
9112 | wxRadioBox * _arg0; | |
9113 | int _arg1; | |
9114 | wxString * _arg2; | |
9115 | PyObject * _argo0 = 0; | |
9116 | PyObject * _obj2 = 0; | |
9117 | char *_kwnames[] = { "self","n","label", NULL }; | |
9118 | ||
9119 | self = self; | |
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9121 | return NULL; | |
9122 | if (_argo0) { | |
9123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); | |
9126 | return NULL; | |
9127 | } | |
9128 | } | |
9129 | { | |
9130 | #if PYTHON_API_VERSION >= 1009 | |
9131 | char* tmpPtr; int tmpSize; | |
9132 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9133 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9134 | return NULL; | |
9135 | } | |
9136 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9137 | return NULL; | |
9138 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9139 | #else | |
9140 | if (!PyString_Check(_obj2)) { | |
9141 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9142 | return NULL; | |
9143 | } | |
9144 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9145 | #endif | |
9146 | } | |
9147 | { | |
9148 | wxPy_BEGIN_ALLOW_THREADS; | |
9149 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); | |
9150 | ||
9151 | wxPy_END_ALLOW_THREADS; | |
9152 | if (PyErr_Occurred()) return NULL; | |
9153 | } Py_INCREF(Py_None); | |
9154 | _resultobj = Py_None; | |
9155 | { | |
9156 | if (_obj2) | |
9157 | delete _arg2; | |
9158 | } | |
9159 | return _resultobj; | |
9160 | } | |
9161 | ||
9162 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
9163 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject * _resultobj; | |
9165 | int _result; | |
9166 | wxRadioBox * _arg0; | |
9167 | PyObject * _argo0 = 0; | |
9168 | char *_kwnames[] = { "self", NULL }; | |
9169 | ||
9170 | self = self; | |
9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) | |
9172 | return NULL; | |
9173 | if (_argo0) { | |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); | |
9177 | return NULL; | |
9178 | } | |
9179 | } | |
9180 | { | |
9181 | wxPy_BEGIN_ALLOW_THREADS; | |
9182 | _result = (int )wxRadioBox_GetColumnCount(_arg0); | |
9183 | ||
9184 | wxPy_END_ALLOW_THREADS; | |
9185 | if (PyErr_Occurred()) return NULL; | |
9186 | } _resultobj = Py_BuildValue("i",_result); | |
9187 | return _resultobj; | |
9188 | } | |
9189 | ||
9190 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) | |
9191 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject * _resultobj; | |
9193 | int _result; | |
9194 | wxRadioBox * _arg0; | |
9195 | PyObject * _argo0 = 0; | |
9196 | char *_kwnames[] = { "self", NULL }; | |
9197 | ||
9198 | self = self; | |
9199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) | |
9200 | return NULL; | |
9201 | if (_argo0) { | |
9202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); | |
9205 | return NULL; | |
9206 | } | |
9207 | } | |
9208 | { | |
9209 | wxPy_BEGIN_ALLOW_THREADS; | |
9210 | _result = (int )wxRadioBox_GetRowCount(_arg0); | |
9211 | ||
9212 | wxPy_END_ALLOW_THREADS; | |
9213 | if (PyErr_Occurred()) return NULL; | |
9214 | } _resultobj = Py_BuildValue("i",_result); | |
9215 | return _resultobj; | |
9216 | } | |
9217 | ||
9218 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
9219 | static PyObject *_wrap_wxRadioBox_GetSelection(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_GetSelection",_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_GetSelection. Expected _wxRadioBox_p."); | |
9233 | return NULL; | |
9234 | } | |
9235 | } | |
9236 | { | |
9237 | wxPy_BEGIN_ALLOW_THREADS; | |
9238 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
9239 | ||
9240 | wxPy_END_ALLOW_THREADS; | |
9241 | if (PyErr_Occurred()) return NULL; | |
9242 | } _resultobj = Py_BuildValue("i",_result); | |
9243 | return _resultobj; | |
9244 | } | |
9245 | ||
9246 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
9247 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9248 | PyObject * _resultobj; | |
9249 | wxString * _result; | |
9250 | wxRadioBox * _arg0; | |
9251 | PyObject * _argo0 = 0; | |
9252 | char *_kwnames[] = { "self", NULL }; | |
9253 | ||
9254 | self = self; | |
9255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) | |
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_GetStringSelection. Expected _wxRadioBox_p."); | |
9261 | return NULL; | |
9262 | } | |
9263 | } | |
9264 | { | |
9265 | wxPy_BEGIN_ALLOW_THREADS; | |
9266 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
9267 | ||
9268 | wxPy_END_ALLOW_THREADS; | |
9269 | if (PyErr_Occurred()) return NULL; | |
9270 | }{ | |
9271 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9272 | } | |
9273 | { | |
9274 | delete _result; | |
9275 | } | |
9276 | return _resultobj; | |
9277 | } | |
9278 | ||
9279 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
9280 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9281 | PyObject * _resultobj; | |
9282 | int _result; | |
9283 | wxRadioBox * _arg0; | |
9284 | PyObject * _argo0 = 0; | |
9285 | char *_kwnames[] = { "self", NULL }; | |
9286 | ||
9287 | self = self; | |
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) | |
9289 | return NULL; | |
9290 | if (_argo0) { | |
9291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); | |
9294 | return NULL; | |
9295 | } | |
9296 | } | |
9297 | { | |
9298 | wxPy_BEGIN_ALLOW_THREADS; | |
9299 | _result = (int )wxRadioBox_GetCount(_arg0); | |
9300 | ||
9301 | wxPy_END_ALLOW_THREADS; | |
9302 | if (PyErr_Occurred()) return NULL; | |
9303 | } _resultobj = Py_BuildValue("i",_result); | |
9304 | return _resultobj; | |
9305 | } | |
9306 | ||
9307 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
9308 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9309 | PyObject * _resultobj; | |
9310 | wxRadioBox * _arg0; | |
9311 | int _arg1; | |
9312 | PyObject * _argo0 = 0; | |
9313 | char *_kwnames[] = { "self","n", NULL }; | |
9314 | ||
9315 | self = self; | |
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
9317 | return NULL; | |
9318 | if (_argo0) { | |
9319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); | |
9322 | return NULL; | |
9323 | } | |
9324 | } | |
9325 | { | |
9326 | wxPy_BEGIN_ALLOW_THREADS; | |
9327 | wxRadioBox_SetSelection(_arg0,_arg1); | |
9328 | ||
9329 | wxPy_END_ALLOW_THREADS; | |
9330 | if (PyErr_Occurred()) return NULL; | |
9331 | } Py_INCREF(Py_None); | |
9332 | _resultobj = Py_None; | |
9333 | return _resultobj; | |
9334 | } | |
9335 | ||
9336 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
9337 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject * _resultobj; | |
9339 | wxRadioBox * _arg0; | |
9340 | wxString * _arg1; | |
9341 | PyObject * _argo0 = 0; | |
9342 | PyObject * _obj1 = 0; | |
9343 | char *_kwnames[] = { "self","string", NULL }; | |
9344 | ||
9345 | self = self; | |
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
9347 | return NULL; | |
9348 | if (_argo0) { | |
9349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); | |
9352 | return NULL; | |
9353 | } | |
9354 | } | |
9355 | { | |
9356 | #if PYTHON_API_VERSION >= 1009 | |
9357 | char* tmpPtr; int tmpSize; | |
9358 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9359 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9360 | return NULL; | |
9361 | } | |
9362 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9363 | return NULL; | |
9364 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9365 | #else | |
9366 | if (!PyString_Check(_obj1)) { | |
9367 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9368 | return NULL; | |
9369 | } | |
9370 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9371 | #endif | |
9372 | } | |
9373 | { | |
9374 | wxPy_BEGIN_ALLOW_THREADS; | |
9375 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
9376 | ||
9377 | wxPy_END_ALLOW_THREADS; | |
9378 | if (PyErr_Occurred()) return NULL; | |
9379 | } Py_INCREF(Py_None); | |
9380 | _resultobj = Py_None; | |
9381 | { | |
9382 | if (_obj1) | |
9383 | delete _arg1; | |
9384 | } | |
9385 | return _resultobj; | |
9386 | } | |
9387 | ||
9388 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
9389 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9390 | PyObject * _resultobj; | |
9391 | wxRadioBox * _arg0; | |
9392 | bool _arg1; | |
9393 | PyObject * _argo0 = 0; | |
9394 | int tempbool1; | |
9395 | char *_kwnames[] = { "self","show", NULL }; | |
9396 | ||
9397 | self = self; | |
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) | |
9399 | return NULL; | |
9400 | if (_argo0) { | |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); | |
9404 | return NULL; | |
9405 | } | |
9406 | } | |
9407 | _arg1 = (bool ) tempbool1; | |
9408 | { | |
9409 | wxPy_BEGIN_ALLOW_THREADS; | |
9410 | wxRadioBox_Show(_arg0,_arg1); | |
9411 | ||
9412 | wxPy_END_ALLOW_THREADS; | |
9413 | if (PyErr_Occurred()) return NULL; | |
9414 | } Py_INCREF(Py_None); | |
9415 | _resultobj = Py_None; | |
9416 | return _resultobj; | |
9417 | } | |
9418 | ||
9419 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
9420 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject * _resultobj; | |
9422 | wxRadioBox * _arg0; | |
9423 | int _arg1; | |
9424 | bool _arg2; | |
9425 | PyObject * _argo0 = 0; | |
9426 | int tempbool2; | |
9427 | char *_kwnames[] = { "self","item","show", NULL }; | |
9428 | ||
9429 | self = self; | |
9430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9431 | return NULL; | |
9432 | if (_argo0) { | |
9433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); | |
9436 | return NULL; | |
9437 | } | |
9438 | } | |
9439 | _arg2 = (bool ) tempbool2; | |
9440 | { | |
9441 | wxPy_BEGIN_ALLOW_THREADS; | |
9442 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
9443 | ||
9444 | wxPy_END_ALLOW_THREADS; | |
9445 | if (PyErr_Occurred()) return NULL; | |
9446 | } Py_INCREF(Py_None); | |
9447 | _resultobj = Py_None; | |
9448 | return _resultobj; | |
9449 | } | |
9450 | ||
9451 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9452 | wxRadioButton *src; | |
9453 | wxControl *dest; | |
9454 | src = (wxRadioButton *) ptr; | |
9455 | dest = (wxControl *) src; | |
9456 | return (void *) dest; | |
9457 | } | |
9458 | ||
9459 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9460 | wxRadioButton *src; | |
9461 | wxWindow *dest; | |
9462 | src = (wxRadioButton *) ptr; | |
9463 | dest = (wxWindow *) src; | |
9464 | return (void *) dest; | |
9465 | } | |
9466 | ||
9467 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9468 | wxRadioButton *src; | |
9469 | wxEvtHandler *dest; | |
9470 | src = (wxRadioButton *) ptr; | |
9471 | dest = (wxEvtHandler *) src; | |
9472 | return (void *) dest; | |
9473 | } | |
9474 | ||
9475 | static void *SwigwxRadioButtonTowxObject(void *ptr) { | |
9476 | wxRadioButton *src; | |
9477 | wxObject *dest; | |
9478 | src = (wxRadioButton *) ptr; | |
9479 | dest = (wxObject *) src; | |
9480 | return (void *) dest; | |
9481 | } | |
9482 | ||
9483 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9484 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9485 | PyObject * _resultobj; | |
9486 | wxRadioButton * _result; | |
9487 | wxWindow * _arg0; | |
9488 | wxWindowID _arg1; | |
9489 | wxString * _arg2; | |
9490 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9491 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9492 | long _arg5 = (long ) 0; | |
9493 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9494 | char * _arg7 = (char *) "radioButton"; | |
9495 | PyObject * _argo0 = 0; | |
9496 | PyObject * _obj2 = 0; | |
9497 | wxPoint temp; | |
9498 | PyObject * _obj3 = 0; | |
9499 | wxSize temp0; | |
9500 | PyObject * _obj4 = 0; | |
9501 | PyObject * _argo6 = 0; | |
9502 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
9503 | char _ptemp[128]; | |
9504 | ||
9505 | self = self; | |
9506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
9507 | return NULL; | |
9508 | if (_argo0) { | |
9509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); | |
9512 | return NULL; | |
9513 | } | |
9514 | } | |
9515 | { | |
9516 | #if PYTHON_API_VERSION >= 1009 | |
9517 | char* tmpPtr; int tmpSize; | |
9518 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9519 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9520 | return NULL; | |
9521 | } | |
9522 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9523 | return NULL; | |
9524 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9525 | #else | |
9526 | if (!PyString_Check(_obj2)) { | |
9527 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9528 | return NULL; | |
9529 | } | |
9530 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9531 | #endif | |
9532 | } | |
9533 | if (_obj3) | |
9534 | { | |
9535 | _arg3 = &temp; | |
9536 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9537 | return NULL; | |
9538 | } | |
9539 | if (_obj4) | |
9540 | { | |
9541 | _arg4 = &temp0; | |
9542 | if (! wxSize_helper(_obj4, &_arg4)) | |
9543 | return NULL; | |
9544 | } | |
9545 | if (_argo6) { | |
9546 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9549 | return NULL; | |
9550 | } | |
9551 | } | |
9552 | { | |
9553 | wxPy_BEGIN_ALLOW_THREADS; | |
9554 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
9555 | ||
9556 | wxPy_END_ALLOW_THREADS; | |
9557 | if (PyErr_Occurred()) return NULL; | |
9558 | } if (_result) { | |
9559 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9560 | _resultobj = Py_BuildValue("s",_ptemp); | |
9561 | } else { | |
9562 | Py_INCREF(Py_None); | |
9563 | _resultobj = Py_None; | |
9564 | } | |
9565 | { | |
9566 | if (_obj2) | |
9567 | delete _arg2; | |
9568 | } | |
9569 | return _resultobj; | |
9570 | } | |
9571 | ||
9572 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9573 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject * _resultobj; | |
9575 | wxRadioButton * _result; | |
9576 | char *_kwnames[] = { NULL }; | |
9577 | char _ptemp[128]; | |
9578 | ||
9579 | self = self; | |
9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9581 | return NULL; | |
9582 | { | |
9583 | wxPy_BEGIN_ALLOW_THREADS; | |
9584 | _result = (wxRadioButton *)new_wxPreRadioButton(); | |
9585 | ||
9586 | wxPy_END_ALLOW_THREADS; | |
9587 | if (PyErr_Occurred()) return NULL; | |
9588 | } if (_result) { | |
9589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9590 | _resultobj = Py_BuildValue("s",_ptemp); | |
9591 | } else { | |
9592 | Py_INCREF(Py_None); | |
9593 | _resultobj = Py_None; | |
9594 | } | |
9595 | return _resultobj; | |
9596 | } | |
9597 | ||
9598 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9599 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9600 | PyObject * _resultobj; | |
9601 | bool _result; | |
9602 | wxRadioButton * _arg0; | |
9603 | wxWindow * _arg1; | |
9604 | wxWindowID _arg2; | |
9605 | wxString * _arg3; | |
9606 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9607 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9608 | long _arg6 = (long ) 0; | |
9609 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9610 | char * _arg8 = (char *) "radioButton"; | |
9611 | PyObject * _argo0 = 0; | |
9612 | PyObject * _argo1 = 0; | |
9613 | PyObject * _obj3 = 0; | |
9614 | wxPoint temp; | |
9615 | PyObject * _obj4 = 0; | |
9616 | wxSize temp0; | |
9617 | PyObject * _obj5 = 0; | |
9618 | PyObject * _argo7 = 0; | |
9619 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9620 | ||
9621 | self = self; | |
9622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9623 | return NULL; | |
9624 | if (_argo0) { | |
9625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9628 | return NULL; | |
9629 | } | |
9630 | } | |
9631 | if (_argo1) { | |
9632 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9633 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9635 | return NULL; | |
9636 | } | |
9637 | } | |
9638 | { | |
9639 | #if PYTHON_API_VERSION >= 1009 | |
9640 | char* tmpPtr; int tmpSize; | |
9641 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
9642 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9643 | return NULL; | |
9644 | } | |
9645 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9646 | return NULL; | |
9647 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9648 | #else | |
9649 | if (!PyString_Check(_obj3)) { | |
9650 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9651 | return NULL; | |
9652 | } | |
9653 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
9654 | #endif | |
9655 | } | |
9656 | if (_obj4) | |
9657 | { | |
9658 | _arg4 = &temp; | |
9659 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9660 | return NULL; | |
9661 | } | |
9662 | if (_obj5) | |
9663 | { | |
9664 | _arg5 = &temp0; | |
9665 | if (! wxSize_helper(_obj5, &_arg5)) | |
9666 | return NULL; | |
9667 | } | |
9668 | if (_argo7) { | |
9669 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
9672 | return NULL; | |
9673 | } | |
9674 | } | |
9675 | { | |
9676 | wxPy_BEGIN_ALLOW_THREADS; | |
9677 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
9678 | ||
9679 | wxPy_END_ALLOW_THREADS; | |
9680 | if (PyErr_Occurred()) return NULL; | |
9681 | } _resultobj = Py_BuildValue("i",_result); | |
9682 | { | |
9683 | if (_obj3) | |
9684 | delete _arg3; | |
9685 | } | |
9686 | return _resultobj; | |
9687 | } | |
9688 | ||
9689 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
9690 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9691 | PyObject * _resultobj; | |
9692 | bool _result; | |
9693 | wxRadioButton * _arg0; | |
9694 | PyObject * _argo0 = 0; | |
9695 | char *_kwnames[] = { "self", NULL }; | |
9696 | ||
9697 | self = self; | |
9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) | |
9699 | return NULL; | |
9700 | if (_argo0) { | |
9701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); | |
9704 | return NULL; | |
9705 | } | |
9706 | } | |
9707 | { | |
9708 | wxPy_BEGIN_ALLOW_THREADS; | |
9709 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
9710 | ||
9711 | wxPy_END_ALLOW_THREADS; | |
9712 | if (PyErr_Occurred()) return NULL; | |
9713 | } _resultobj = Py_BuildValue("i",_result); | |
9714 | return _resultobj; | |
9715 | } | |
9716 | ||
9717 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
9718 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject * _resultobj; | |
9720 | wxRadioButton * _arg0; | |
9721 | bool _arg1; | |
9722 | PyObject * _argo0 = 0; | |
9723 | int tempbool1; | |
9724 | char *_kwnames[] = { "self","value", NULL }; | |
9725 | ||
9726 | self = self; | |
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
9728 | return NULL; | |
9729 | if (_argo0) { | |
9730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); | |
9733 | return NULL; | |
9734 | } | |
9735 | } | |
9736 | _arg1 = (bool ) tempbool1; | |
9737 | { | |
9738 | wxPy_BEGIN_ALLOW_THREADS; | |
9739 | wxRadioButton_SetValue(_arg0,_arg1); | |
9740 | ||
9741 | wxPy_END_ALLOW_THREADS; | |
9742 | if (PyErr_Occurred()) return NULL; | |
9743 | } Py_INCREF(Py_None); | |
9744 | _resultobj = Py_None; | |
9745 | return _resultobj; | |
9746 | } | |
9747 | ||
9748 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9749 | wxSlider *src; | |
9750 | wxControl *dest; | |
9751 | src = (wxSlider *) ptr; | |
9752 | dest = (wxControl *) src; | |
9753 | return (void *) dest; | |
9754 | } | |
9755 | ||
9756 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9757 | wxSlider *src; | |
9758 | wxWindow *dest; | |
9759 | src = (wxSlider *) ptr; | |
9760 | dest = (wxWindow *) src; | |
9761 | return (void *) dest; | |
9762 | } | |
9763 | ||
9764 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9765 | wxSlider *src; | |
9766 | wxEvtHandler *dest; | |
9767 | src = (wxSlider *) ptr; | |
9768 | dest = (wxEvtHandler *) src; | |
9769 | return (void *) dest; | |
9770 | } | |
9771 | ||
9772 | static void *SwigwxSliderTowxObject(void *ptr) { | |
9773 | wxSlider *src; | |
9774 | wxObject *dest; | |
9775 | src = (wxSlider *) ptr; | |
9776 | dest = (wxObject *) src; | |
9777 | return (void *) dest; | |
9778 | } | |
9779 | ||
9780 | #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)) | |
9781 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9782 | PyObject * _resultobj; | |
9783 | wxSlider * _result; | |
9784 | wxWindow * _arg0; | |
9785 | wxWindowID _arg1; | |
9786 | int _arg2; | |
9787 | int _arg3; | |
9788 | int _arg4; | |
9789 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
9790 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
9791 | long _arg7 = (long ) wxSL_HORIZONTAL; | |
9792 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9793 | char * _arg9 = (char *) "slider"; | |
9794 | PyObject * _argo0 = 0; | |
9795 | wxPoint temp; | |
9796 | PyObject * _obj5 = 0; | |
9797 | wxSize temp0; | |
9798 | PyObject * _obj6 = 0; | |
9799 | PyObject * _argo8 = 0; | |
9800 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9801 | char _ptemp[128]; | |
9802 | ||
9803 | self = self; | |
9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) | |
9805 | return NULL; | |
9806 | if (_argo0) { | |
9807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); | |
9810 | return NULL; | |
9811 | } | |
9812 | } | |
9813 | if (_obj5) | |
9814 | { | |
9815 | _arg5 = &temp; | |
9816 | if (! wxPoint_helper(_obj5, &_arg5)) | |
9817 | return NULL; | |
9818 | } | |
9819 | if (_obj6) | |
9820 | { | |
9821 | _arg6 = &temp0; | |
9822 | if (! wxSize_helper(_obj6, &_arg6)) | |
9823 | return NULL; | |
9824 | } | |
9825 | if (_argo8) { | |
9826 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9827 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); | |
9829 | return NULL; | |
9830 | } | |
9831 | } | |
9832 | { | |
9833 | wxPy_BEGIN_ALLOW_THREADS; | |
9834 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
9835 | ||
9836 | wxPy_END_ALLOW_THREADS; | |
9837 | if (PyErr_Occurred()) return NULL; | |
9838 | } if (_result) { | |
9839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9840 | _resultobj = Py_BuildValue("s",_ptemp); | |
9841 | } else { | |
9842 | Py_INCREF(Py_None); | |
9843 | _resultobj = Py_None; | |
9844 | } | |
9845 | return _resultobj; | |
9846 | } | |
9847 | ||
9848 | #define new_wxPreSlider() (new wxSlider()) | |
9849 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9850 | PyObject * _resultobj; | |
9851 | wxSlider * _result; | |
9852 | char *_kwnames[] = { NULL }; | |
9853 | char _ptemp[128]; | |
9854 | ||
9855 | self = self; | |
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9857 | return NULL; | |
9858 | { | |
9859 | wxPy_BEGIN_ALLOW_THREADS; | |
9860 | _result = (wxSlider *)new_wxPreSlider(); | |
9861 | ||
9862 | wxPy_END_ALLOW_THREADS; | |
9863 | if (PyErr_Occurred()) return NULL; | |
9864 | } if (_result) { | |
9865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9866 | _resultobj = Py_BuildValue("s",_ptemp); | |
9867 | } else { | |
9868 | Py_INCREF(Py_None); | |
9869 | _resultobj = Py_None; | |
9870 | } | |
9871 | return _resultobj; | |
9872 | } | |
9873 | ||
9874 | #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)) | |
9875 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject * _resultobj; | |
9877 | bool _result; | |
9878 | wxSlider * _arg0; | |
9879 | wxWindow * _arg1; | |
9880 | wxWindowID _arg2; | |
9881 | int _arg3; | |
9882 | int _arg4; | |
9883 | int _arg5; | |
9884 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9885 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9886 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9887 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9888 | char * _arg10 = (char *) "slider"; | |
9889 | PyObject * _argo0 = 0; | |
9890 | PyObject * _argo1 = 0; | |
9891 | wxPoint temp; | |
9892 | PyObject * _obj6 = 0; | |
9893 | wxSize temp0; | |
9894 | PyObject * _obj7 = 0; | |
9895 | PyObject * _argo9 = 0; | |
9896 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9897 | ||
9898 | self = self; | |
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9900 | return NULL; | |
9901 | if (_argo0) { | |
9902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9905 | return NULL; | |
9906 | } | |
9907 | } | |
9908 | if (_argo1) { | |
9909 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9910 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9912 | return NULL; | |
9913 | } | |
9914 | } | |
9915 | if (_obj6) | |
9916 | { | |
9917 | _arg6 = &temp; | |
9918 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9919 | return NULL; | |
9920 | } | |
9921 | if (_obj7) | |
9922 | { | |
9923 | _arg7 = &temp0; | |
9924 | if (! wxSize_helper(_obj7, &_arg7)) | |
9925 | return NULL; | |
9926 | } | |
9927 | if (_argo9) { | |
9928 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9929 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9931 | return NULL; | |
9932 | } | |
9933 | } | |
9934 | { | |
9935 | wxPy_BEGIN_ALLOW_THREADS; | |
9936 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); | |
9937 | ||
9938 | wxPy_END_ALLOW_THREADS; | |
9939 | if (PyErr_Occurred()) return NULL; | |
9940 | } _resultobj = Py_BuildValue("i",_result); | |
9941 | return _resultobj; | |
9942 | } | |
9943 | ||
9944 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
9945 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9946 | PyObject * _resultobj; | |
9947 | wxSlider * _arg0; | |
9948 | PyObject * _argo0 = 0; | |
9949 | char *_kwnames[] = { "self", NULL }; | |
9950 | ||
9951 | self = self; | |
9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) | |
9953 | return NULL; | |
9954 | if (_argo0) { | |
9955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); | |
9958 | return NULL; | |
9959 | } | |
9960 | } | |
9961 | { | |
9962 | wxPy_BEGIN_ALLOW_THREADS; | |
9963 | wxSlider_ClearSel(_arg0); | |
9964 | ||
9965 | wxPy_END_ALLOW_THREADS; | |
9966 | if (PyErr_Occurred()) return NULL; | |
9967 | } Py_INCREF(Py_None); | |
9968 | _resultobj = Py_None; | |
9969 | return _resultobj; | |
9970 | } | |
9971 | ||
9972 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
9973 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject * _resultobj; | |
9975 | wxSlider * _arg0; | |
9976 | PyObject * _argo0 = 0; | |
9977 | char *_kwnames[] = { "self", NULL }; | |
9978 | ||
9979 | self = self; | |
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) | |
9981 | return NULL; | |
9982 | if (_argo0) { | |
9983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); | |
9986 | return NULL; | |
9987 | } | |
9988 | } | |
9989 | { | |
9990 | wxPy_BEGIN_ALLOW_THREADS; | |
9991 | wxSlider_ClearTicks(_arg0); | |
9992 | ||
9993 | wxPy_END_ALLOW_THREADS; | |
9994 | if (PyErr_Occurred()) return NULL; | |
9995 | } Py_INCREF(Py_None); | |
9996 | _resultobj = Py_None; | |
9997 | return _resultobj; | |
9998 | } | |
9999 | ||
10000 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
10001 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject * _resultobj; | |
10003 | int _result; | |
10004 | wxSlider * _arg0; | |
10005 | PyObject * _argo0 = 0; | |
10006 | char *_kwnames[] = { "self", NULL }; | |
10007 | ||
10008 | self = self; | |
10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) | |
10010 | return NULL; | |
10011 | if (_argo0) { | |
10012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); | |
10015 | return NULL; | |
10016 | } | |
10017 | } | |
10018 | { | |
10019 | wxPy_BEGIN_ALLOW_THREADS; | |
10020 | _result = (int )wxSlider_GetLineSize(_arg0); | |
10021 | ||
10022 | wxPy_END_ALLOW_THREADS; | |
10023 | if (PyErr_Occurred()) return NULL; | |
10024 | } _resultobj = Py_BuildValue("i",_result); | |
10025 | return _resultobj; | |
10026 | } | |
10027 | ||
10028 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
10029 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10030 | PyObject * _resultobj; | |
10031 | int _result; | |
10032 | wxSlider * _arg0; | |
10033 | PyObject * _argo0 = 0; | |
10034 | char *_kwnames[] = { "self", NULL }; | |
10035 | ||
10036 | self = self; | |
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) | |
10038 | return NULL; | |
10039 | if (_argo0) { | |
10040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); | |
10043 | return NULL; | |
10044 | } | |
10045 | } | |
10046 | { | |
10047 | wxPy_BEGIN_ALLOW_THREADS; | |
10048 | _result = (int )wxSlider_GetMax(_arg0); | |
10049 | ||
10050 | wxPy_END_ALLOW_THREADS; | |
10051 | if (PyErr_Occurred()) return NULL; | |
10052 | } _resultobj = Py_BuildValue("i",_result); | |
10053 | return _resultobj; | |
10054 | } | |
10055 | ||
10056 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
10057 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10058 | PyObject * _resultobj; | |
10059 | int _result; | |
10060 | wxSlider * _arg0; | |
10061 | PyObject * _argo0 = 0; | |
10062 | char *_kwnames[] = { "self", NULL }; | |
10063 | ||
10064 | self = self; | |
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) | |
10066 | return NULL; | |
10067 | if (_argo0) { | |
10068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); | |
10071 | return NULL; | |
10072 | } | |
10073 | } | |
10074 | { | |
10075 | wxPy_BEGIN_ALLOW_THREADS; | |
10076 | _result = (int )wxSlider_GetMin(_arg0); | |
10077 | ||
10078 | wxPy_END_ALLOW_THREADS; | |
10079 | if (PyErr_Occurred()) return NULL; | |
10080 | } _resultobj = Py_BuildValue("i",_result); | |
10081 | return _resultobj; | |
10082 | } | |
10083 | ||
10084 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
10085 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10086 | PyObject * _resultobj; | |
10087 | int _result; | |
10088 | wxSlider * _arg0; | |
10089 | PyObject * _argo0 = 0; | |
10090 | char *_kwnames[] = { "self", NULL }; | |
10091 | ||
10092 | self = self; | |
10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) | |
10094 | return NULL; | |
10095 | if (_argo0) { | |
10096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); | |
10099 | return NULL; | |
10100 | } | |
10101 | } | |
10102 | { | |
10103 | wxPy_BEGIN_ALLOW_THREADS; | |
10104 | _result = (int )wxSlider_GetPageSize(_arg0); | |
10105 | ||
10106 | wxPy_END_ALLOW_THREADS; | |
10107 | if (PyErr_Occurred()) return NULL; | |
10108 | } _resultobj = Py_BuildValue("i",_result); | |
10109 | return _resultobj; | |
10110 | } | |
10111 | ||
10112 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
10113 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10114 | PyObject * _resultobj; | |
10115 | int _result; | |
10116 | wxSlider * _arg0; | |
10117 | PyObject * _argo0 = 0; | |
10118 | char *_kwnames[] = { "self", NULL }; | |
10119 | ||
10120 | self = self; | |
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) | |
10122 | return NULL; | |
10123 | if (_argo0) { | |
10124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); | |
10127 | return NULL; | |
10128 | } | |
10129 | } | |
10130 | { | |
10131 | wxPy_BEGIN_ALLOW_THREADS; | |
10132 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
10133 | ||
10134 | wxPy_END_ALLOW_THREADS; | |
10135 | if (PyErr_Occurred()) return NULL; | |
10136 | } _resultobj = Py_BuildValue("i",_result); | |
10137 | return _resultobj; | |
10138 | } | |
10139 | ||
10140 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
10141 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject * _resultobj; | |
10143 | int _result; | |
10144 | wxSlider * _arg0; | |
10145 | PyObject * _argo0 = 0; | |
10146 | char *_kwnames[] = { "self", NULL }; | |
10147 | ||
10148 | self = self; | |
10149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) | |
10150 | return NULL; | |
10151 | if (_argo0) { | |
10152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); | |
10155 | return NULL; | |
10156 | } | |
10157 | } | |
10158 | { | |
10159 | wxPy_BEGIN_ALLOW_THREADS; | |
10160 | _result = (int )wxSlider_GetSelStart(_arg0); | |
10161 | ||
10162 | wxPy_END_ALLOW_THREADS; | |
10163 | if (PyErr_Occurred()) return NULL; | |
10164 | } _resultobj = Py_BuildValue("i",_result); | |
10165 | return _resultobj; | |
10166 | } | |
10167 | ||
10168 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
10169 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10170 | PyObject * _resultobj; | |
10171 | int _result; | |
10172 | wxSlider * _arg0; | |
10173 | PyObject * _argo0 = 0; | |
10174 | char *_kwnames[] = { "self", NULL }; | |
10175 | ||
10176 | self = self; | |
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) | |
10178 | return NULL; | |
10179 | if (_argo0) { | |
10180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); | |
10183 | return NULL; | |
10184 | } | |
10185 | } | |
10186 | { | |
10187 | wxPy_BEGIN_ALLOW_THREADS; | |
10188 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
10189 | ||
10190 | wxPy_END_ALLOW_THREADS; | |
10191 | if (PyErr_Occurred()) return NULL; | |
10192 | } _resultobj = Py_BuildValue("i",_result); | |
10193 | return _resultobj; | |
10194 | } | |
10195 | ||
10196 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
10197 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10198 | PyObject * _resultobj; | |
10199 | int _result; | |
10200 | wxSlider * _arg0; | |
10201 | PyObject * _argo0 = 0; | |
10202 | char *_kwnames[] = { "self", NULL }; | |
10203 | ||
10204 | self = self; | |
10205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) | |
10206 | return NULL; | |
10207 | if (_argo0) { | |
10208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); | |
10211 | return NULL; | |
10212 | } | |
10213 | } | |
10214 | { | |
10215 | wxPy_BEGIN_ALLOW_THREADS; | |
10216 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
10217 | ||
10218 | wxPy_END_ALLOW_THREADS; | |
10219 | if (PyErr_Occurred()) return NULL; | |
10220 | } _resultobj = Py_BuildValue("i",_result); | |
10221 | return _resultobj; | |
10222 | } | |
10223 | ||
10224 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
10225 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10226 | PyObject * _resultobj; | |
10227 | int _result; | |
10228 | wxSlider * _arg0; | |
10229 | PyObject * _argo0 = 0; | |
10230 | char *_kwnames[] = { "self", NULL }; | |
10231 | ||
10232 | self = self; | |
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) | |
10234 | return NULL; | |
10235 | if (_argo0) { | |
10236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); | |
10239 | return NULL; | |
10240 | } | |
10241 | } | |
10242 | { | |
10243 | wxPy_BEGIN_ALLOW_THREADS; | |
10244 | _result = (int )wxSlider_GetValue(_arg0); | |
10245 | ||
10246 | wxPy_END_ALLOW_THREADS; | |
10247 | if (PyErr_Occurred()) return NULL; | |
10248 | } _resultobj = Py_BuildValue("i",_result); | |
10249 | return _resultobj; | |
10250 | } | |
10251 | ||
10252 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10253 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10254 | PyObject * _resultobj; | |
10255 | wxSlider * _arg0; | |
10256 | int _arg1; | |
10257 | int _arg2; | |
10258 | PyObject * _argo0 = 0; | |
10259 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; | |
10260 | ||
10261 | self = self; | |
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10263 | return NULL; | |
10264 | if (_argo0) { | |
10265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); | |
10268 | return NULL; | |
10269 | } | |
10270 | } | |
10271 | { | |
10272 | wxPy_BEGIN_ALLOW_THREADS; | |
10273 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
10274 | ||
10275 | wxPy_END_ALLOW_THREADS; | |
10276 | if (PyErr_Occurred()) return NULL; | |
10277 | } Py_INCREF(Py_None); | |
10278 | _resultobj = Py_None; | |
10279 | return _resultobj; | |
10280 | } | |
10281 | ||
10282 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
10283 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10284 | PyObject * _resultobj; | |
10285 | wxSlider * _arg0; | |
10286 | int _arg1; | |
10287 | int _arg2; | |
10288 | PyObject * _argo0 = 0; | |
10289 | char *_kwnames[] = { "self","n","pos", NULL }; | |
10290 | ||
10291 | self = self; | |
10292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10293 | return NULL; | |
10294 | if (_argo0) { | |
10295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); | |
10298 | return NULL; | |
10299 | } | |
10300 | } | |
10301 | { | |
10302 | wxPy_BEGIN_ALLOW_THREADS; | |
10303 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
10304 | ||
10305 | wxPy_END_ALLOW_THREADS; | |
10306 | if (PyErr_Occurred()) return NULL; | |
10307 | } Py_INCREF(Py_None); | |
10308 | _resultobj = Py_None; | |
10309 | return _resultobj; | |
10310 | } | |
10311 | ||
10312 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
10313 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject * _resultobj; | |
10315 | wxSlider * _arg0; | |
10316 | int _arg1; | |
10317 | PyObject * _argo0 = 0; | |
10318 | char *_kwnames[] = { "self","lineSize", NULL }; | |
10319 | ||
10320 | self = self; | |
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) | |
10322 | return NULL; | |
10323 | if (_argo0) { | |
10324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); | |
10327 | return NULL; | |
10328 | } | |
10329 | } | |
10330 | { | |
10331 | wxPy_BEGIN_ALLOW_THREADS; | |
10332 | wxSlider_SetLineSize(_arg0,_arg1); | |
10333 | ||
10334 | wxPy_END_ALLOW_THREADS; | |
10335 | if (PyErr_Occurred()) return NULL; | |
10336 | } Py_INCREF(Py_None); | |
10337 | _resultobj = Py_None; | |
10338 | return _resultobj; | |
10339 | } | |
10340 | ||
10341 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
10342 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject * _resultobj; | |
10344 | wxSlider * _arg0; | |
10345 | int _arg1; | |
10346 | PyObject * _argo0 = 0; | |
10347 | char *_kwnames[] = { "self","pageSize", NULL }; | |
10348 | ||
10349 | self = self; | |
10350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) | |
10351 | return NULL; | |
10352 | if (_argo0) { | |
10353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); | |
10356 | return NULL; | |
10357 | } | |
10358 | } | |
10359 | { | |
10360 | wxPy_BEGIN_ALLOW_THREADS; | |
10361 | wxSlider_SetPageSize(_arg0,_arg1); | |
10362 | ||
10363 | wxPy_END_ALLOW_THREADS; | |
10364 | if (PyErr_Occurred()) return NULL; | |
10365 | } Py_INCREF(Py_None); | |
10366 | _resultobj = Py_None; | |
10367 | return _resultobj; | |
10368 | } | |
10369 | ||
10370 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
10371 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10372 | PyObject * _resultobj; | |
10373 | wxSlider * _arg0; | |
10374 | int _arg1; | |
10375 | int _arg2; | |
10376 | PyObject * _argo0 = 0; | |
10377 | char *_kwnames[] = { "self","startPos","endPos", NULL }; | |
10378 | ||
10379 | self = self; | |
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10381 | return NULL; | |
10382 | if (_argo0) { | |
10383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); | |
10386 | return NULL; | |
10387 | } | |
10388 | } | |
10389 | { | |
10390 | wxPy_BEGIN_ALLOW_THREADS; | |
10391 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
10392 | ||
10393 | wxPy_END_ALLOW_THREADS; | |
10394 | if (PyErr_Occurred()) return NULL; | |
10395 | } Py_INCREF(Py_None); | |
10396 | _resultobj = Py_None; | |
10397 | return _resultobj; | |
10398 | } | |
10399 | ||
10400 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
10401 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject * _resultobj; | |
10403 | wxSlider * _arg0; | |
10404 | int _arg1; | |
10405 | PyObject * _argo0 = 0; | |
10406 | char *_kwnames[] = { "self","len", NULL }; | |
10407 | ||
10408 | self = self; | |
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) | |
10410 | return NULL; | |
10411 | if (_argo0) { | |
10412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); | |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
10418 | { | |
10419 | wxPy_BEGIN_ALLOW_THREADS; | |
10420 | wxSlider_SetThumbLength(_arg0,_arg1); | |
10421 | ||
10422 | wxPy_END_ALLOW_THREADS; | |
10423 | if (PyErr_Occurred()) return NULL; | |
10424 | } Py_INCREF(Py_None); | |
10425 | _resultobj = Py_None; | |
10426 | return _resultobj; | |
10427 | } | |
10428 | ||
10429 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
10430 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject * _resultobj; | |
10432 | wxSlider * _arg0; | |
10433 | int _arg1; | |
10434 | PyObject * _argo0 = 0; | |
10435 | char *_kwnames[] = { "self","tickPos", NULL }; | |
10436 | ||
10437 | self = self; | |
10438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) | |
10439 | return NULL; | |
10440 | if (_argo0) { | |
10441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); | |
10444 | return NULL; | |
10445 | } | |
10446 | } | |
10447 | { | |
10448 | wxPy_BEGIN_ALLOW_THREADS; | |
10449 | wxSlider_SetTick(_arg0,_arg1); | |
10450 | ||
10451 | wxPy_END_ALLOW_THREADS; | |
10452 | if (PyErr_Occurred()) return NULL; | |
10453 | } Py_INCREF(Py_None); | |
10454 | _resultobj = Py_None; | |
10455 | return _resultobj; | |
10456 | } | |
10457 | ||
10458 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10459 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject * _resultobj; | |
10461 | wxSlider * _arg0; | |
10462 | int _arg1; | |
10463 | PyObject * _argo0 = 0; | |
10464 | char *_kwnames[] = { "self","value", NULL }; | |
10465 | ||
10466 | self = self; | |
10467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) | |
10468 | return NULL; | |
10469 | if (_argo0) { | |
10470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); | |
10473 | return NULL; | |
10474 | } | |
10475 | } | |
10476 | { | |
10477 | wxPy_BEGIN_ALLOW_THREADS; | |
10478 | wxSlider_SetValue(_arg0,_arg1); | |
10479 | ||
10480 | wxPy_END_ALLOW_THREADS; | |
10481 | if (PyErr_Occurred()) return NULL; | |
10482 | } Py_INCREF(Py_None); | |
10483 | _resultobj = Py_None; | |
10484 | return _resultobj; | |
10485 | } | |
10486 | ||
10487 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { | |
10488 | wxSpinCtrl *src; | |
10489 | wxSpinButton *dest; | |
10490 | src = (wxSpinCtrl *) ptr; | |
10491 | dest = (wxSpinButton *) src; | |
10492 | return (void *) dest; | |
10493 | } | |
10494 | ||
10495 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10496 | wxSpinCtrl *src; | |
10497 | wxControl *dest; | |
10498 | src = (wxSpinCtrl *) ptr; | |
10499 | dest = (wxControl *) src; | |
10500 | return (void *) dest; | |
10501 | } | |
10502 | ||
10503 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10504 | wxSpinCtrl *src; | |
10505 | wxWindow *dest; | |
10506 | src = (wxSpinCtrl *) ptr; | |
10507 | dest = (wxWindow *) src; | |
10508 | return (void *) dest; | |
10509 | } | |
10510 | ||
10511 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10512 | wxSpinCtrl *src; | |
10513 | wxEvtHandler *dest; | |
10514 | src = (wxSpinCtrl *) ptr; | |
10515 | dest = (wxEvtHandler *) src; | |
10516 | return (void *) dest; | |
10517 | } | |
10518 | ||
10519 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { | |
10520 | wxSpinCtrl *src; | |
10521 | wxObject *dest; | |
10522 | src = (wxSpinCtrl *) ptr; | |
10523 | dest = (wxObject *) src; | |
10524 | return (void *) dest; | |
10525 | } | |
10526 | ||
10527 | #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)) | |
10528 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10529 | PyObject * _resultobj; | |
10530 | wxSpinCtrl * _result; | |
10531 | wxWindow * _arg0; | |
10532 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10533 | char * _arg2 = (char *) ""; | |
10534 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10535 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10536 | long _arg5 = (long ) wxSP_ARROW_KEYS; | |
10537 | int _arg6 = (int ) 0; | |
10538 | int _arg7 = (int ) 100; | |
10539 | int _arg8 = (int ) 0; | |
10540 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10541 | PyObject * _argo0 = 0; | |
10542 | wxPoint temp; | |
10543 | PyObject * _obj3 = 0; | |
10544 | wxSize temp0; | |
10545 | PyObject * _obj4 = 0; | |
10546 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10547 | char _ptemp[128]; | |
10548 | ||
10549 | self = self; | |
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10551 | return NULL; | |
10552 | if (_argo0) { | |
10553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10556 | return NULL; | |
10557 | } | |
10558 | } | |
10559 | if (_obj3) | |
10560 | { | |
10561 | _arg3 = &temp; | |
10562 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10563 | return NULL; | |
10564 | } | |
10565 | if (_obj4) | |
10566 | { | |
10567 | _arg4 = &temp0; | |
10568 | if (! wxSize_helper(_obj4, &_arg4)) | |
10569 | return NULL; | |
10570 | } | |
10571 | { | |
10572 | wxPy_BEGIN_ALLOW_THREADS; | |
10573 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
10574 | ||
10575 | wxPy_END_ALLOW_THREADS; | |
10576 | if (PyErr_Occurred()) return NULL; | |
10577 | } if (_result) { | |
10578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10579 | _resultobj = Py_BuildValue("s",_ptemp); | |
10580 | } else { | |
10581 | Py_INCREF(Py_None); | |
10582 | _resultobj = Py_None; | |
10583 | } | |
10584 | return _resultobj; | |
10585 | } | |
10586 | ||
10587 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) | |
10588 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10589 | PyObject * _resultobj; | |
10590 | wxSpinCtrl * _result; | |
10591 | char *_kwnames[] = { NULL }; | |
10592 | char _ptemp[128]; | |
10593 | ||
10594 | self = self; | |
10595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10596 | return NULL; | |
10597 | { | |
10598 | wxPy_BEGIN_ALLOW_THREADS; | |
10599 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); | |
10600 | ||
10601 | wxPy_END_ALLOW_THREADS; | |
10602 | if (PyErr_Occurred()) return NULL; | |
10603 | } if (_result) { | |
10604 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10605 | _resultobj = Py_BuildValue("s",_ptemp); | |
10606 | } else { | |
10607 | Py_INCREF(Py_None); | |
10608 | _resultobj = Py_None; | |
10609 | } | |
10610 | return _resultobj; | |
10611 | } | |
10612 | ||
10613 | #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)) | |
10614 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10615 | PyObject * _resultobj; | |
10616 | bool _result; | |
10617 | wxSpinCtrl * _arg0; | |
10618 | wxWindow * _arg1; | |
10619 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10620 | char * _arg3 = (char *) ""; | |
10621 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10622 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10623 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10624 | int _arg7 = (int ) 0; | |
10625 | int _arg8 = (int ) 100; | |
10626 | int _arg9 = (int ) 0; | |
10627 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10628 | PyObject * _argo0 = 0; | |
10629 | PyObject * _argo1 = 0; | |
10630 | wxPoint temp; | |
10631 | PyObject * _obj4 = 0; | |
10632 | wxSize temp0; | |
10633 | PyObject * _obj5 = 0; | |
10634 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10635 | ||
10636 | self = self; | |
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10638 | return NULL; | |
10639 | if (_argo0) { | |
10640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10643 | return NULL; | |
10644 | } | |
10645 | } | |
10646 | if (_argo1) { | |
10647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10650 | return NULL; | |
10651 | } | |
10652 | } | |
10653 | if (_obj4) | |
10654 | { | |
10655 | _arg4 = &temp; | |
10656 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10657 | return NULL; | |
10658 | } | |
10659 | if (_obj5) | |
10660 | { | |
10661 | _arg5 = &temp0; | |
10662 | if (! wxSize_helper(_obj5, &_arg5)) | |
10663 | return NULL; | |
10664 | } | |
10665 | { | |
10666 | wxPy_BEGIN_ALLOW_THREADS; | |
10667 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); | |
10668 | ||
10669 | wxPy_END_ALLOW_THREADS; | |
10670 | if (PyErr_Occurred()) return NULL; | |
10671 | } _resultobj = Py_BuildValue("i",_result); | |
10672 | return _resultobj; | |
10673 | } | |
10674 | ||
10675 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) | |
10676 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10677 | PyObject * _resultobj; | |
10678 | int _result; | |
10679 | wxSpinCtrl * _arg0; | |
10680 | PyObject * _argo0 = 0; | |
10681 | char *_kwnames[] = { "self", NULL }; | |
10682 | ||
10683 | self = self; | |
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10685 | return NULL; | |
10686 | if (_argo0) { | |
10687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10690 | return NULL; | |
10691 | } | |
10692 | } | |
10693 | { | |
10694 | wxPy_BEGIN_ALLOW_THREADS; | |
10695 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
10696 | ||
10697 | wxPy_END_ALLOW_THREADS; | |
10698 | if (PyErr_Occurred()) return NULL; | |
10699 | } _resultobj = Py_BuildValue("i",_result); | |
10700 | return _resultobj; | |
10701 | } | |
10702 | ||
10703 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10704 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10705 | PyObject * _resultobj; | |
10706 | int _result; | |
10707 | wxSpinCtrl * _arg0; | |
10708 | PyObject * _argo0 = 0; | |
10709 | char *_kwnames[] = { "self", NULL }; | |
10710 | ||
10711 | self = self; | |
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10713 | return NULL; | |
10714 | if (_argo0) { | |
10715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10718 | return NULL; | |
10719 | } | |
10720 | } | |
10721 | { | |
10722 | wxPy_BEGIN_ALLOW_THREADS; | |
10723 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
10724 | ||
10725 | wxPy_END_ALLOW_THREADS; | |
10726 | if (PyErr_Occurred()) return NULL; | |
10727 | } _resultobj = Py_BuildValue("i",_result); | |
10728 | return _resultobj; | |
10729 | } | |
10730 | ||
10731 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10732 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10733 | PyObject * _resultobj; | |
10734 | int _result; | |
10735 | wxSpinCtrl * _arg0; | |
10736 | PyObject * _argo0 = 0; | |
10737 | char *_kwnames[] = { "self", NULL }; | |
10738 | ||
10739 | self = self; | |
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10741 | return NULL; | |
10742 | if (_argo0) { | |
10743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10746 | return NULL; | |
10747 | } | |
10748 | } | |
10749 | { | |
10750 | wxPy_BEGIN_ALLOW_THREADS; | |
10751 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
10752 | ||
10753 | wxPy_END_ALLOW_THREADS; | |
10754 | if (PyErr_Occurred()) return NULL; | |
10755 | } _resultobj = Py_BuildValue("i",_result); | |
10756 | return _resultobj; | |
10757 | } | |
10758 | ||
10759 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10760 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10761 | PyObject * _resultobj; | |
10762 | wxSpinCtrl * _arg0; | |
10763 | int _arg1; | |
10764 | int _arg2; | |
10765 | PyObject * _argo0 = 0; | |
10766 | char *_kwnames[] = { "self","min","max", NULL }; | |
10767 | ||
10768 | self = self; | |
10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10770 | return NULL; | |
10771 | if (_argo0) { | |
10772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10775 | return NULL; | |
10776 | } | |
10777 | } | |
10778 | { | |
10779 | wxPy_BEGIN_ALLOW_THREADS; | |
10780 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
10781 | ||
10782 | wxPy_END_ALLOW_THREADS; | |
10783 | if (PyErr_Occurred()) return NULL; | |
10784 | } Py_INCREF(Py_None); | |
10785 | _resultobj = Py_None; | |
10786 | return _resultobj; | |
10787 | } | |
10788 | ||
10789 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10790 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject * _resultobj; | |
10792 | wxSpinCtrl * _arg0; | |
10793 | int _arg1; | |
10794 | PyObject * _argo0 = 0; | |
10795 | char *_kwnames[] = { "self","value", NULL }; | |
10796 | ||
10797 | self = self; | |
10798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10799 | return NULL; | |
10800 | if (_argo0) { | |
10801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10804 | return NULL; | |
10805 | } | |
10806 | } | |
10807 | { | |
10808 | wxPy_BEGIN_ALLOW_THREADS; | |
10809 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
10810 | ||
10811 | wxPy_END_ALLOW_THREADS; | |
10812 | if (PyErr_Occurred()) return NULL; | |
10813 | } Py_INCREF(Py_None); | |
10814 | _resultobj = Py_None; | |
10815 | return _resultobj; | |
10816 | } | |
10817 | ||
10818 | static void *SwigwxToggleButtonTowxControl(void *ptr) { | |
10819 | wxToggleButton *src; | |
10820 | wxControl *dest; | |
10821 | src = (wxToggleButton *) ptr; | |
10822 | dest = (wxControl *) src; | |
10823 | return (void *) dest; | |
10824 | } | |
10825 | ||
10826 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10827 | wxToggleButton *src; | |
10828 | wxWindow *dest; | |
10829 | src = (wxToggleButton *) ptr; | |
10830 | dest = (wxWindow *) src; | |
10831 | return (void *) dest; | |
10832 | } | |
10833 | ||
10834 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10835 | wxToggleButton *src; | |
10836 | wxEvtHandler *dest; | |
10837 | src = (wxToggleButton *) ptr; | |
10838 | dest = (wxEvtHandler *) src; | |
10839 | return (void *) dest; | |
10840 | } | |
10841 | ||
10842 | static void *SwigwxToggleButtonTowxObject(void *ptr) { | |
10843 | wxToggleButton *src; | |
10844 | wxObject *dest; | |
10845 | src = (wxToggleButton *) ptr; | |
10846 | dest = (wxObject *) src; | |
10847 | return (void *) dest; | |
10848 | } | |
10849 | ||
10850 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10851 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject * _resultobj; | |
10853 | wxToggleButton * _result; | |
10854 | wxWindow * _arg0; | |
10855 | wxWindowID _arg1; | |
10856 | wxString * _arg2; | |
10857 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10858 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10859 | long _arg5 = (long ) 0; | |
10860 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10861 | char * _arg7 = (char *) "toggle"; | |
10862 | PyObject * _argo0 = 0; | |
10863 | PyObject * _obj2 = 0; | |
10864 | wxPoint temp; | |
10865 | PyObject * _obj3 = 0; | |
10866 | wxSize temp0; | |
10867 | PyObject * _obj4 = 0; | |
10868 | PyObject * _argo6 = 0; | |
10869 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10870 | char _ptemp[128]; | |
10871 | ||
10872 | self = self; | |
10873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10874 | return NULL; | |
10875 | if (_argo0) { | |
10876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10879 | return NULL; | |
10880 | } | |
10881 | } | |
10882 | { | |
10883 | #if PYTHON_API_VERSION >= 1009 | |
10884 | char* tmpPtr; int tmpSize; | |
10885 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
10886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10887 | return NULL; | |
10888 | } | |
10889 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
10890 | return NULL; | |
10891 | _arg2 = new wxString(tmpPtr, tmpSize); | |
10892 | #else | |
10893 | if (!PyString_Check(_obj2)) { | |
10894 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10895 | return NULL; | |
10896 | } | |
10897 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
10898 | #endif | |
10899 | } | |
10900 | if (_obj3) | |
10901 | { | |
10902 | _arg3 = &temp; | |
10903 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10904 | return NULL; | |
10905 | } | |
10906 | if (_obj4) | |
10907 | { | |
10908 | _arg4 = &temp0; | |
10909 | if (! wxSize_helper(_obj4, &_arg4)) | |
10910 | return NULL; | |
10911 | } | |
10912 | if (_argo6) { | |
10913 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10914 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10916 | return NULL; | |
10917 | } | |
10918 | } | |
10919 | { | |
10920 | wxPy_BEGIN_ALLOW_THREADS; | |
10921 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
10922 | ||
10923 | wxPy_END_ALLOW_THREADS; | |
10924 | if (PyErr_Occurred()) return NULL; | |
10925 | } if (_result) { | |
10926 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10927 | _resultobj = Py_BuildValue("s",_ptemp); | |
10928 | } else { | |
10929 | Py_INCREF(Py_None); | |
10930 | _resultobj = Py_None; | |
10931 | } | |
10932 | { | |
10933 | if (_obj2) | |
10934 | delete _arg2; | |
10935 | } | |
10936 | return _resultobj; | |
10937 | } | |
10938 | ||
10939 | #define new_wxPreToggleButton() (new wxToggleButton()) | |
10940 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10941 | PyObject * _resultobj; | |
10942 | wxToggleButton * _result; | |
10943 | char *_kwnames[] = { NULL }; | |
10944 | char _ptemp[128]; | |
10945 | ||
10946 | self = self; | |
10947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10948 | return NULL; | |
10949 | { | |
10950 | wxPy_BEGIN_ALLOW_THREADS; | |
10951 | _result = (wxToggleButton *)new_wxPreToggleButton(); | |
10952 | ||
10953 | wxPy_END_ALLOW_THREADS; | |
10954 | if (PyErr_Occurred()) return NULL; | |
10955 | } if (_result) { | |
10956 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10957 | _resultobj = Py_BuildValue("s",_ptemp); | |
10958 | } else { | |
10959 | Py_INCREF(Py_None); | |
10960 | _resultobj = Py_None; | |
10961 | } | |
10962 | return _resultobj; | |
10963 | } | |
10964 | ||
10965 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10966 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10967 | PyObject * _resultobj; | |
10968 | bool _result; | |
10969 | wxToggleButton * _arg0; | |
10970 | wxWindow * _arg1; | |
10971 | wxWindowID _arg2; | |
10972 | wxString * _arg3; | |
10973 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10974 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10975 | long _arg6 = (long ) 0; | |
10976 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10977 | char * _arg8 = (char *) "toggle"; | |
10978 | PyObject * _argo0 = 0; | |
10979 | PyObject * _argo1 = 0; | |
10980 | PyObject * _obj3 = 0; | |
10981 | wxPoint temp; | |
10982 | PyObject * _obj4 = 0; | |
10983 | wxSize temp0; | |
10984 | PyObject * _obj5 = 0; | |
10985 | PyObject * _argo7 = 0; | |
10986 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10987 | ||
10988 | self = self; | |
10989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
10990 | return NULL; | |
10991 | if (_argo0) { | |
10992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
10995 | return NULL; | |
10996 | } | |
10997 | } | |
10998 | if (_argo1) { | |
10999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11002 | return NULL; | |
11003 | } | |
11004 | } | |
11005 | { | |
11006 | #if PYTHON_API_VERSION >= 1009 | |
11007 | char* tmpPtr; int tmpSize; | |
11008 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
11009 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11010 | return NULL; | |
11011 | } | |
11012 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
11013 | return NULL; | |
11014 | _arg3 = new wxString(tmpPtr, tmpSize); | |
11015 | #else | |
11016 | if (!PyString_Check(_obj3)) { | |
11017 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11018 | return NULL; | |
11019 | } | |
11020 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
11021 | #endif | |
11022 | } | |
11023 | if (_obj4) | |
11024 | { | |
11025 | _arg4 = &temp; | |
11026 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11027 | return NULL; | |
11028 | } | |
11029 | if (_obj5) | |
11030 | { | |
11031 | _arg5 = &temp0; | |
11032 | if (! wxSize_helper(_obj5, &_arg5)) | |
11033 | return NULL; | |
11034 | } | |
11035 | if (_argo7) { | |
11036 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
11037 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11039 | return NULL; | |
11040 | } | |
11041 | } | |
11042 | { | |
11043 | wxPy_BEGIN_ALLOW_THREADS; | |
11044 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
11045 | ||
11046 | wxPy_END_ALLOW_THREADS; | |
11047 | if (PyErr_Occurred()) return NULL; | |
11048 | } _resultobj = Py_BuildValue("i",_result); | |
11049 | { | |
11050 | if (_obj3) | |
11051 | delete _arg3; | |
11052 | } | |
11053 | return _resultobj; | |
11054 | } | |
11055 | ||
11056 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11057 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11058 | PyObject * _resultobj; | |
11059 | wxToggleButton * _arg0; | |
11060 | bool _arg1; | |
11061 | PyObject * _argo0 = 0; | |
11062 | int tempbool1; | |
11063 | char *_kwnames[] = { "self","value", NULL }; | |
11064 | ||
11065 | self = self; | |
11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11067 | return NULL; | |
11068 | if (_argo0) { | |
11069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11072 | return NULL; | |
11073 | } | |
11074 | } | |
11075 | _arg1 = (bool ) tempbool1; | |
11076 | { | |
11077 | wxPy_BEGIN_ALLOW_THREADS; | |
11078 | wxToggleButton_SetValue(_arg0,_arg1); | |
11079 | ||
11080 | wxPy_END_ALLOW_THREADS; | |
11081 | if (PyErr_Occurred()) return NULL; | |
11082 | } Py_INCREF(Py_None); | |
11083 | _resultobj = Py_None; | |
11084 | return _resultobj; | |
11085 | } | |
11086 | ||
11087 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11088 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11089 | PyObject * _resultobj; | |
11090 | bool _result; | |
11091 | wxToggleButton * _arg0; | |
11092 | PyObject * _argo0 = 0; | |
11093 | char *_kwnames[] = { "self", NULL }; | |
11094 | ||
11095 | self = self; | |
11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11097 | return NULL; | |
11098 | if (_argo0) { | |
11099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11102 | return NULL; | |
11103 | } | |
11104 | } | |
11105 | { | |
11106 | wxPy_BEGIN_ALLOW_THREADS; | |
11107 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
11108 | ||
11109 | wxPy_END_ALLOW_THREADS; | |
11110 | if (PyErr_Occurred()) return NULL; | |
11111 | } _resultobj = Py_BuildValue("i",_result); | |
11112 | return _resultobj; | |
11113 | } | |
11114 | ||
11115 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11116 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11117 | PyObject * _resultobj; | |
11118 | wxToggleButton * _arg0; | |
11119 | wxString * _arg1; | |
11120 | PyObject * _argo0 = 0; | |
11121 | PyObject * _obj1 = 0; | |
11122 | char *_kwnames[] = { "self","label", NULL }; | |
11123 | ||
11124 | self = self; | |
11125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11126 | return NULL; | |
11127 | if (_argo0) { | |
11128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11131 | return NULL; | |
11132 | } | |
11133 | } | |
11134 | { | |
11135 | #if PYTHON_API_VERSION >= 1009 | |
11136 | char* tmpPtr; int tmpSize; | |
11137 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
11138 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11139 | return NULL; | |
11140 | } | |
11141 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
11142 | return NULL; | |
11143 | _arg1 = new wxString(tmpPtr, tmpSize); | |
11144 | #else | |
11145 | if (!PyString_Check(_obj1)) { | |
11146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11147 | return NULL; | |
11148 | } | |
11149 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
11150 | #endif | |
11151 | } | |
11152 | { | |
11153 | wxPy_BEGIN_ALLOW_THREADS; | |
11154 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
11155 | ||
11156 | wxPy_END_ALLOW_THREADS; | |
11157 | if (PyErr_Occurred()) return NULL; | |
11158 | } Py_INCREF(Py_None); | |
11159 | _resultobj = Py_None; | |
11160 | { | |
11161 | if (_obj1) | |
11162 | delete _arg1; | |
11163 | } | |
11164 | return _resultobj; | |
11165 | } | |
11166 | ||
11167 | static PyMethodDef controlscMethods[] = { | |
11168 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11169 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11170 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11171 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11172 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11173 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11174 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11175 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11176 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11178 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11179 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11180 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11181 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11182 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11183 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11184 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11185 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11191 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11192 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11194 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11199 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11200 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, | |
11202 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
11203 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11213 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11214 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11215 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11216 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
11217 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
11218 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11219 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11227 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11235 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11237 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11238 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11239 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11241 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11242 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
11243 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
11332 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11399 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
11400 | { "wxButton_SetImageMargins", (PyCFunction) _wrap_wxButton_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxButton_SetImageLabel", (PyCFunction) _wrap_wxButton_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { NULL, NULL } | |
11426 | }; | |
11427 | #ifdef __cplusplus | |
11428 | } | |
11429 | #endif | |
11430 | /* | |
11431 | * This table is used by the pointer type-checker | |
11432 | */ | |
11433 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11434 | { "_signed_long","_long",0}, | |
11435 | { "_wxPrintQuality","_wxCoord",0}, | |
11436 | { "_wxPrintQuality","_int",0}, | |
11437 | { "_wxPrintQuality","_signed_int",0}, | |
11438 | { "_wxPrintQuality","_unsigned_int",0}, | |
11439 | { "_wxPrintQuality","_wxWindowID",0}, | |
11440 | { "_wxPrintQuality","_uint",0}, | |
11441 | { "_wxPrintQuality","_EBool",0}, | |
11442 | { "_wxPrintQuality","_size_t",0}, | |
11443 | { "_wxPrintQuality","_time_t",0}, | |
11444 | { "_byte","_unsigned_char",0}, | |
11445 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
11446 | { "_long","_unsigned_long",0}, | |
11447 | { "_long","_signed_long",0}, | |
11448 | { "_size_t","_wxCoord",0}, | |
11449 | { "_size_t","_wxPrintQuality",0}, | |
11450 | { "_size_t","_time_t",0}, | |
11451 | { "_size_t","_unsigned_int",0}, | |
11452 | { "_size_t","_int",0}, | |
11453 | { "_size_t","_wxWindowID",0}, | |
11454 | { "_size_t","_uint",0}, | |
11455 | { "_uint","_wxCoord",0}, | |
11456 | { "_uint","_wxPrintQuality",0}, | |
11457 | { "_uint","_time_t",0}, | |
11458 | { "_uint","_size_t",0}, | |
11459 | { "_uint","_unsigned_int",0}, | |
11460 | { "_uint","_int",0}, | |
11461 | { "_uint","_wxWindowID",0}, | |
11462 | { "_wxChar","_char",0}, | |
11463 | { "_char","_wxChar",0}, | |
11464 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
11465 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11466 | { "_EBool","_wxCoord",0}, | |
11467 | { "_EBool","_wxPrintQuality",0}, | |
11468 | { "_EBool","_signed_int",0}, | |
11469 | { "_EBool","_int",0}, | |
11470 | { "_EBool","_wxWindowID",0}, | |
11471 | { "_unsigned_long","_long",0}, | |
11472 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11473 | { "_signed_int","_wxCoord",0}, | |
11474 | { "_signed_int","_wxPrintQuality",0}, | |
11475 | { "_signed_int","_EBool",0}, | |
11476 | { "_signed_int","_wxWindowID",0}, | |
11477 | { "_signed_int","_int",0}, | |
11478 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
11479 | { "_WXTYPE","_short",0}, | |
11480 | { "_WXTYPE","_signed_short",0}, | |
11481 | { "_WXTYPE","_unsigned_short",0}, | |
11482 | { "_unsigned_short","_WXTYPE",0}, | |
11483 | { "_unsigned_short","_short",0}, | |
11484 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
11485 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11486 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
11487 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11488 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11489 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11490 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11491 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11492 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11493 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11494 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
11495 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
11496 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11497 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11498 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
11499 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
11500 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
11501 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11502 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11503 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
11504 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
11505 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
11506 | { "_signed_short","_WXTYPE",0}, | |
11507 | { "_signed_short","_short",0}, | |
11508 | { "_unsigned_char","_byte",0}, | |
11509 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
11510 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
11511 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
11512 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11513 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11514 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11515 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11516 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11517 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11518 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11519 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
11520 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
11521 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11522 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11523 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
11524 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
11525 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
11526 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11527 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11528 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
11529 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
11530 | { "_unsigned_int","_wxCoord",0}, | |
11531 | { "_unsigned_int","_wxPrintQuality",0}, | |
11532 | { "_unsigned_int","_time_t",0}, | |
11533 | { "_unsigned_int","_size_t",0}, | |
11534 | { "_unsigned_int","_uint",0}, | |
11535 | { "_unsigned_int","_wxWindowID",0}, | |
11536 | { "_unsigned_int","_int",0}, | |
11537 | { "_short","_WXTYPE",0}, | |
11538 | { "_short","_unsigned_short",0}, | |
11539 | { "_short","_signed_short",0}, | |
11540 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
11541 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11542 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11543 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
11544 | { "_wxWindowID","_wxCoord",0}, | |
11545 | { "_wxWindowID","_wxPrintQuality",0}, | |
11546 | { "_wxWindowID","_time_t",0}, | |
11547 | { "_wxWindowID","_size_t",0}, | |
11548 | { "_wxWindowID","_EBool",0}, | |
11549 | { "_wxWindowID","_uint",0}, | |
11550 | { "_wxWindowID","_int",0}, | |
11551 | { "_wxWindowID","_signed_int",0}, | |
11552 | { "_wxWindowID","_unsigned_int",0}, | |
11553 | { "_int","_wxCoord",0}, | |
11554 | { "_int","_wxPrintQuality",0}, | |
11555 | { "_int","_time_t",0}, | |
11556 | { "_int","_size_t",0}, | |
11557 | { "_int","_EBool",0}, | |
11558 | { "_int","_uint",0}, | |
11559 | { "_int","_wxWindowID",0}, | |
11560 | { "_int","_unsigned_int",0}, | |
11561 | { "_int","_signed_int",0}, | |
11562 | { "_time_t","_wxCoord",0}, | |
11563 | { "_time_t","_wxPrintQuality",0}, | |
11564 | { "_time_t","_unsigned_int",0}, | |
11565 | { "_time_t","_int",0}, | |
11566 | { "_time_t","_wxWindowID",0}, | |
11567 | { "_time_t","_uint",0}, | |
11568 | { "_time_t","_size_t",0}, | |
11569 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
11570 | { "_wxCoord","_int",0}, | |
11571 | { "_wxCoord","_signed_int",0}, | |
11572 | { "_wxCoord","_unsigned_int",0}, | |
11573 | { "_wxCoord","_wxWindowID",0}, | |
11574 | { "_wxCoord","_uint",0}, | |
11575 | { "_wxCoord","_EBool",0}, | |
11576 | { "_wxCoord","_size_t",0}, | |
11577 | { "_wxCoord","_time_t",0}, | |
11578 | { "_wxCoord","_wxPrintQuality",0}, | |
11579 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
11580 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
11581 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
11582 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11583 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11584 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11585 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11586 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11587 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11588 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11589 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11590 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11591 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11592 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11593 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11594 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11595 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11596 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11597 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11598 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
11599 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
11600 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
11601 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
11602 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
11603 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
11604 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11605 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11606 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11607 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11608 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11609 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11610 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11611 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
11612 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11613 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11614 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11615 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
11616 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11617 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
11618 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11619 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11620 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
11621 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
11622 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
11623 | {0,0,0}}; | |
11624 | ||
11625 | static PyObject *SWIG_globals; | |
11626 | #ifdef __cplusplus | |
11627 | extern "C" | |
11628 | #endif | |
11629 | SWIGEXPORT(void) initcontrolsc() { | |
11630 | PyObject *m, *d; | |
11631 | SWIG_globals = SWIG_newvarlink(); | |
11632 | m = Py_InitModule("controlsc", controlscMethods); | |
11633 | d = PyModule_GetDict(m); | |
11634 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11635 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
11636 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
11637 | { | |
11638 | int i; | |
11639 | for (i = 0; _swig_mapping[i].n1; i++) | |
11640 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11641 | } | |
11642 | } |