]>
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 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
81 | if (!target) { | |
82 | target = o; | |
83 | } else if (target == Py_None) { | |
84 | Py_DECREF(Py_None); | |
85 | target = o; | |
86 | } else { | |
87 | if (!PyTuple_Check(target)) { | |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
92 | o3 = PyTuple_New(1); | |
93 | PyTuple_SetItem(o3, 0, o); | |
94 | ||
95 | o2 = target; | |
96 | target = PySequence_Concat(o2, o3); | |
97 | Py_DECREF(o2); | |
98 | Py_DECREF(o3); | |
99 | } | |
100 | return target; | |
101 | } | |
102 | #ifdef __cplusplus | |
103 | extern "C" { | |
104 | #endif | |
105 | static int _wrap_wxDefaultValidator_set(PyObject *val) { | |
106 | ||
107 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
108 | return 1; | |
109 | } | |
110 | ||
111 | static PyObject *_wrap_wxDefaultValidator_get() { | |
112 | PyObject * pyobj; | |
113 | char ptemp[128]; | |
114 | ||
115 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
116 | pyobj = PyString_FromString(ptemp); | |
117 | return pyobj; | |
118 | } | |
119 | ||
120 | static void *SwigwxControlTowxWindow(void *ptr) { | |
121 | wxControl *src; | |
122 | wxWindow *dest; | |
123 | src = (wxControl *) ptr; | |
124 | dest = (wxWindow *) src; | |
125 | return (void *) dest; | |
126 | } | |
127 | ||
128 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
129 | wxControl *src; | |
130 | wxEvtHandler *dest; | |
131 | src = (wxControl *) ptr; | |
132 | dest = (wxEvtHandler *) src; | |
133 | return (void *) dest; | |
134 | } | |
135 | ||
136 | static void *SwigwxControlTowxObject(void *ptr) { | |
137 | wxControl *src; | |
138 | wxObject *dest; | |
139 | src = (wxControl *) ptr; | |
140 | dest = (wxObject *) src; | |
141 | return (void *) dest; | |
142 | } | |
143 | ||
144 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
145 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
146 | PyObject * _resultobj; | |
147 | wxControl * _result; | |
148 | wxWindow * _arg0; | |
149 | wxWindowID _arg1; | |
150 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
151 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
152 | long _arg4 = (long ) 0; | |
153 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
154 | char * _arg6 = (char *) "control"; | |
155 | PyObject * _argo0 = 0; | |
156 | wxPoint temp; | |
157 | PyObject * _obj2 = 0; | |
158 | wxSize temp0; | |
159 | PyObject * _obj3 = 0; | |
160 | PyObject * _argo5 = 0; | |
161 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
162 | char _ptemp[128]; | |
163 | ||
164 | self = self; | |
165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
166 | return NULL; | |
167 | if (_argo0) { | |
168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
171 | return NULL; | |
172 | } | |
173 | } | |
174 | if (_obj2) | |
175 | { | |
176 | _arg2 = &temp; | |
177 | if (! wxPoint_helper(_obj2, &_arg2)) | |
178 | return NULL; | |
179 | } | |
180 | if (_obj3) | |
181 | { | |
182 | _arg3 = &temp0; | |
183 | if (! wxSize_helper(_obj3, &_arg3)) | |
184 | return NULL; | |
185 | } | |
186 | if (_argo5) { | |
187 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
188 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
190 | return NULL; | |
191 | } | |
192 | } | |
193 | { | |
194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
195 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
196 | ||
197 | wxPyEndAllowThreads(__tstate); | |
198 | if (PyErr_Occurred()) return NULL; | |
199 | } if (_result) { | |
200 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
201 | _resultobj = Py_BuildValue("s",_ptemp); | |
202 | } else { | |
203 | Py_INCREF(Py_None); | |
204 | _resultobj = Py_None; | |
205 | } | |
206 | return _resultobj; | |
207 | } | |
208 | ||
209 | #define new_wxPreControl() (new wxControl()) | |
210 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
211 | PyObject * _resultobj; | |
212 | wxControl * _result; | |
213 | char *_kwnames[] = { NULL }; | |
214 | char _ptemp[128]; | |
215 | ||
216 | self = self; | |
217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
218 | return NULL; | |
219 | { | |
220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
221 | _result = (wxControl *)new_wxPreControl(); | |
222 | ||
223 | wxPyEndAllowThreads(__tstate); | |
224 | if (PyErr_Occurred()) return NULL; | |
225 | } if (_result) { | |
226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
227 | _resultobj = Py_BuildValue("s",_ptemp); | |
228 | } else { | |
229 | Py_INCREF(Py_None); | |
230 | _resultobj = Py_None; | |
231 | } | |
232 | return _resultobj; | |
233 | } | |
234 | ||
235 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
236 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
237 | PyObject * _resultobj; | |
238 | bool _result; | |
239 | wxControl * _arg0; | |
240 | wxWindow * _arg1; | |
241 | wxWindowID _arg2; | |
242 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
243 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
244 | long _arg5 = (long ) 0; | |
245 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
246 | char * _arg7 = (char *) "control"; | |
247 | PyObject * _argo0 = 0; | |
248 | PyObject * _argo1 = 0; | |
249 | wxPoint temp; | |
250 | PyObject * _obj3 = 0; | |
251 | wxSize temp0; | |
252 | PyObject * _obj4 = 0; | |
253 | PyObject * _argo6 = 0; | |
254 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
255 | ||
256 | self = self; | |
257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOs:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
258 | return NULL; | |
259 | if (_argo0) { | |
260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
263 | return NULL; | |
264 | } | |
265 | } | |
266 | if (_argo1) { | |
267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | if (_obj3) | |
274 | { | |
275 | _arg3 = &temp; | |
276 | if (! wxPoint_helper(_obj3, &_arg3)) | |
277 | return NULL; | |
278 | } | |
279 | if (_obj4) | |
280 | { | |
281 | _arg4 = &temp0; | |
282 | if (! wxSize_helper(_obj4, &_arg4)) | |
283 | return NULL; | |
284 | } | |
285 | if (_argo6) { | |
286 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
287 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
289 | return NULL; | |
290 | } | |
291 | } | |
292 | { | |
293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
294 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
295 | ||
296 | wxPyEndAllowThreads(__tstate); | |
297 | if (PyErr_Occurred()) return NULL; | |
298 | } _resultobj = Py_BuildValue("i",_result); | |
299 | return _resultobj; | |
300 | } | |
301 | ||
302 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
303 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
304 | PyObject * _resultobj; | |
305 | wxControl * _arg0; | |
306 | wxCommandEvent * _arg1; | |
307 | PyObject * _argo0 = 0; | |
308 | PyObject * _argo1 = 0; | |
309 | char *_kwnames[] = { "self","event", NULL }; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
313 | return NULL; | |
314 | if (_argo0) { | |
315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | if (_argo1) { | |
322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | { | |
329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
330 | wxControl_Command(_arg0,*_arg1); | |
331 | ||
332 | wxPyEndAllowThreads(__tstate); | |
333 | if (PyErr_Occurred()) return NULL; | |
334 | } Py_INCREF(Py_None); | |
335 | _resultobj = Py_None; | |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
340 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxString * _result; | |
343 | wxControl * _arg0; | |
344 | PyObject * _argo0 = 0; | |
345 | char *_kwnames[] = { "self", NULL }; | |
346 | ||
347 | self = self; | |
348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) | |
349 | return NULL; | |
350 | if (_argo0) { | |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
359 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
360 | ||
361 | wxPyEndAllowThreads(__tstate); | |
362 | if (PyErr_Occurred()) return NULL; | |
363 | }{ | |
364 | #if wxUSE_UNICODE | |
365 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
366 | #else | |
367 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
368 | #endif | |
369 | } | |
370 | { | |
371 | delete _result; | |
372 | } | |
373 | return _resultobj; | |
374 | } | |
375 | ||
376 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
377 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
378 | PyObject * _resultobj; | |
379 | wxControl * _arg0; | |
380 | wxString * _arg1; | |
381 | PyObject * _argo0 = 0; | |
382 | PyObject * _obj1 = 0; | |
383 | char *_kwnames[] = { "self","label", NULL }; | |
384 | ||
385 | self = self; | |
386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) | |
387 | return NULL; | |
388 | if (_argo0) { | |
389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); | |
392 | return NULL; | |
393 | } | |
394 | } | |
395 | { | |
396 | _arg1 = wxString_in_helper(_obj1); | |
397 | if (_arg1 == NULL) | |
398 | return NULL; | |
399 | } | |
400 | { | |
401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
402 | wxControl_SetLabel(_arg0,*_arg1); | |
403 | ||
404 | wxPyEndAllowThreads(__tstate); | |
405 | if (PyErr_Occurred()) return NULL; | |
406 | } Py_INCREF(Py_None); | |
407 | _resultobj = Py_None; | |
408 | { | |
409 | if (_obj1) | |
410 | delete _arg1; | |
411 | } | |
412 | return _resultobj; | |
413 | } | |
414 | ||
415 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { | |
416 | wxControlWithItems *src; | |
417 | wxControl *dest; | |
418 | src = (wxControlWithItems *) ptr; | |
419 | dest = (wxControl *) src; | |
420 | return (void *) dest; | |
421 | } | |
422 | ||
423 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
424 | wxControlWithItems *src; | |
425 | wxWindow *dest; | |
426 | src = (wxControlWithItems *) ptr; | |
427 | dest = (wxWindow *) src; | |
428 | return (void *) dest; | |
429 | } | |
430 | ||
431 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
432 | wxControlWithItems *src; | |
433 | wxEvtHandler *dest; | |
434 | src = (wxControlWithItems *) ptr; | |
435 | dest = (wxEvtHandler *) src; | |
436 | return (void *) dest; | |
437 | } | |
438 | ||
439 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
440 | wxControlWithItems *src; | |
441 | wxObject *dest; | |
442 | src = (wxControlWithItems *) ptr; | |
443 | dest = (wxObject *) src; | |
444 | return (void *) dest; | |
445 | } | |
446 | ||
447 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
448 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
449 | PyObject * _resultobj; | |
450 | wxControlWithItems * _arg0; | |
451 | int _arg1; | |
452 | PyObject * _argo0 = 0; | |
453 | char *_kwnames[] = { "self","n", NULL }; | |
454 | ||
455 | self = self; | |
456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
457 | return NULL; | |
458 | if (_argo0) { | |
459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
462 | return NULL; | |
463 | } | |
464 | } | |
465 | { | |
466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
467 | wxControlWithItems_Delete(_arg0,_arg1); | |
468 | ||
469 | wxPyEndAllowThreads(__tstate); | |
470 | if (PyErr_Occurred()) return NULL; | |
471 | } Py_INCREF(Py_None); | |
472 | _resultobj = Py_None; | |
473 | return _resultobj; | |
474 | } | |
475 | ||
476 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
477 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
478 | PyObject * _resultobj; | |
479 | int _result; | |
480 | wxControlWithItems * _arg0; | |
481 | PyObject * _argo0 = 0; | |
482 | char *_kwnames[] = { "self", NULL }; | |
483 | ||
484 | self = self; | |
485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
486 | return NULL; | |
487 | if (_argo0) { | |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
491 | return NULL; | |
492 | } | |
493 | } | |
494 | { | |
495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
496 | _result = (int )wxControlWithItems_GetCount(_arg0); | |
497 | ||
498 | wxPyEndAllowThreads(__tstate); | |
499 | if (PyErr_Occurred()) return NULL; | |
500 | } _resultobj = Py_BuildValue("i",_result); | |
501 | return _resultobj; | |
502 | } | |
503 | ||
504 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
505 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
506 | PyObject * _resultobj; | |
507 | wxString * _result; | |
508 | wxControlWithItems * _arg0; | |
509 | int _arg1; | |
510 | PyObject * _argo0 = 0; | |
511 | char *_kwnames[] = { "self","n", NULL }; | |
512 | ||
513 | self = self; | |
514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
515 | return NULL; | |
516 | if (_argo0) { | |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
525 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); | |
526 | ||
527 | wxPyEndAllowThreads(__tstate); | |
528 | if (PyErr_Occurred()) return NULL; | |
529 | }{ | |
530 | #if wxUSE_UNICODE | |
531 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
532 | #else | |
533 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
534 | #endif | |
535 | } | |
536 | { | |
537 | delete _result; | |
538 | } | |
539 | return _resultobj; | |
540 | } | |
541 | ||
542 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
543 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
544 | PyObject * _resultobj; | |
545 | wxControlWithItems * _arg0; | |
546 | int _arg1; | |
547 | wxString * _arg2; | |
548 | PyObject * _argo0 = 0; | |
549 | PyObject * _obj2 = 0; | |
550 | char *_kwnames[] = { "self","n","s", NULL }; | |
551 | ||
552 | self = self; | |
553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
554 | return NULL; | |
555 | if (_argo0) { | |
556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
559 | return NULL; | |
560 | } | |
561 | } | |
562 | { | |
563 | _arg2 = wxString_in_helper(_obj2); | |
564 | if (_arg2 == NULL) | |
565 | return NULL; | |
566 | } | |
567 | { | |
568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
569 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); | |
570 | ||
571 | wxPyEndAllowThreads(__tstate); | |
572 | if (PyErr_Occurred()) return NULL; | |
573 | } Py_INCREF(Py_None); | |
574 | _resultobj = Py_None; | |
575 | { | |
576 | if (_obj2) | |
577 | delete _arg2; | |
578 | } | |
579 | return _resultobj; | |
580 | } | |
581 | ||
582 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
583 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
584 | PyObject * _resultobj; | |
585 | int _result; | |
586 | wxControlWithItems * _arg0; | |
587 | wxString * _arg1; | |
588 | PyObject * _argo0 = 0; | |
589 | PyObject * _obj1 = 0; | |
590 | char *_kwnames[] = { "self","s", NULL }; | |
591 | ||
592 | self = self; | |
593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
594 | return NULL; | |
595 | if (_argo0) { | |
596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
603 | _arg1 = wxString_in_helper(_obj1); | |
604 | if (_arg1 == NULL) | |
605 | return NULL; | |
606 | } | |
607 | { | |
608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
609 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); | |
610 | ||
611 | wxPyEndAllowThreads(__tstate); | |
612 | if (PyErr_Occurred()) return NULL; | |
613 | } _resultobj = Py_BuildValue("i",_result); | |
614 | { | |
615 | if (_obj1) | |
616 | delete _arg1; | |
617 | } | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
622 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
623 | PyObject * _resultobj; | |
624 | wxControlWithItems * _arg0; | |
625 | int _arg1; | |
626 | PyObject * _argo0 = 0; | |
627 | char *_kwnames[] = { "self","n", NULL }; | |
628 | ||
629 | self = self; | |
630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
631 | return NULL; | |
632 | if (_argo0) { | |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
636 | return NULL; | |
637 | } | |
638 | } | |
639 | { | |
640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
641 | wxControlWithItems_Select(_arg0,_arg1); | |
642 | ||
643 | wxPyEndAllowThreads(__tstate); | |
644 | if (PyErr_Occurred()) return NULL; | |
645 | } Py_INCREF(Py_None); | |
646 | _resultobj = Py_None; | |
647 | return _resultobj; | |
648 | } | |
649 | ||
650 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
651 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
652 | PyObject * _resultobj; | |
653 | int _result; | |
654 | wxControlWithItems * _arg0; | |
655 | PyObject * _argo0 = 0; | |
656 | char *_kwnames[] = { "self", NULL }; | |
657 | ||
658 | self = self; | |
659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
660 | return NULL; | |
661 | if (_argo0) { | |
662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
665 | return NULL; | |
666 | } | |
667 | } | |
668 | { | |
669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
670 | _result = (int )wxControlWithItems_GetSelection(_arg0); | |
671 | ||
672 | wxPyEndAllowThreads(__tstate); | |
673 | if (PyErr_Occurred()) return NULL; | |
674 | } _resultobj = Py_BuildValue("i",_result); | |
675 | return _resultobj; | |
676 | } | |
677 | ||
678 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
679 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
680 | PyObject * _resultobj; | |
681 | wxString * _result; | |
682 | wxControlWithItems * _arg0; | |
683 | PyObject * _argo0 = 0; | |
684 | char *_kwnames[] = { "self", NULL }; | |
685 | ||
686 | self = self; | |
687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
688 | return NULL; | |
689 | if (_argo0) { | |
690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
693 | return NULL; | |
694 | } | |
695 | } | |
696 | { | |
697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
698 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); | |
699 | ||
700 | wxPyEndAllowThreads(__tstate); | |
701 | if (PyErr_Occurred()) return NULL; | |
702 | }{ | |
703 | #if wxUSE_UNICODE | |
704 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
705 | #else | |
706 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
707 | #endif | |
708 | } | |
709 | { | |
710 | delete _result; | |
711 | } | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
716 | if (clientData) { | |
717 | wxPyClientData* data = new wxPyClientData(clientData); | |
718 | self->Append(item, data); | |
719 | } else | |
720 | self->Append(item); | |
721 | } | |
722 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
723 | PyObject * _resultobj; | |
724 | wxControlWithItems * _arg0; | |
725 | wxString * _arg1; | |
726 | PyObject * _arg2 = (PyObject *) NULL; | |
727 | PyObject * _argo0 = 0; | |
728 | PyObject * _obj1 = 0; | |
729 | PyObject * _obj2 = 0; | |
730 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
731 | ||
732 | self = self; | |
733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
734 | return NULL; | |
735 | if (_argo0) { | |
736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
739 | return NULL; | |
740 | } | |
741 | } | |
742 | { | |
743 | _arg1 = wxString_in_helper(_obj1); | |
744 | if (_arg1 == NULL) | |
745 | return NULL; | |
746 | } | |
747 | if (_obj2) | |
748 | { | |
749 | _arg2 = _obj2; | |
750 | } | |
751 | { | |
752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
753 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); | |
754 | ||
755 | wxPyEndAllowThreads(__tstate); | |
756 | if (PyErr_Occurred()) return NULL; | |
757 | } Py_INCREF(Py_None); | |
758 | _resultobj = Py_None; | |
759 | { | |
760 | if (_obj1) | |
761 | delete _arg1; | |
762 | } | |
763 | return _resultobj; | |
764 | } | |
765 | ||
766 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
767 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
768 | if (data) { | |
769 | Py_INCREF(data->m_obj); | |
770 | return data->m_obj; | |
771 | } else { | |
772 | Py_INCREF(Py_None); | |
773 | return Py_None; | |
774 | } | |
775 | } | |
776 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
777 | PyObject * _resultobj; | |
778 | PyObject * _result; | |
779 | wxControlWithItems * _arg0; | |
780 | int _arg1; | |
781 | PyObject * _argo0 = 0; | |
782 | char *_kwnames[] = { "self","n", NULL }; | |
783 | ||
784 | self = self; | |
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
786 | return NULL; | |
787 | if (_argo0) { | |
788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
791 | return NULL; | |
792 | } | |
793 | } | |
794 | { | |
795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
796 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); | |
797 | ||
798 | wxPyEndAllowThreads(__tstate); | |
799 | if (PyErr_Occurred()) return NULL; | |
800 | }{ | |
801 | _resultobj = _result; | |
802 | } | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
807 | wxPyClientData* data = new wxPyClientData(clientData); | |
808 | self->SetClientObject(n, data); | |
809 | } | |
810 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
811 | PyObject * _resultobj; | |
812 | wxControlWithItems * _arg0; | |
813 | int _arg1; | |
814 | PyObject * _arg2; | |
815 | PyObject * _argo0 = 0; | |
816 | PyObject * _obj2 = 0; | |
817 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
818 | ||
819 | self = self; | |
820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
821 | return NULL; | |
822 | if (_argo0) { | |
823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
826 | return NULL; | |
827 | } | |
828 | } | |
829 | { | |
830 | _arg2 = _obj2; | |
831 | } | |
832 | { | |
833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
834 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); | |
835 | ||
836 | wxPyEndAllowThreads(__tstate); | |
837 | if (PyErr_Occurred()) return NULL; | |
838 | } Py_INCREF(Py_None); | |
839 | _resultobj = Py_None; | |
840 | return _resultobj; | |
841 | } | |
842 | ||
843 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
844 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject * _resultobj; | |
846 | wxControlWithItems * _arg0; | |
847 | wxArrayString * _arg1; | |
848 | PyObject * _argo0 = 0; | |
849 | PyObject * _obj1 = 0; | |
850 | char *_kwnames[] = { "self","strings", NULL }; | |
851 | ||
852 | self = self; | |
853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
854 | return NULL; | |
855 | if (_argo0) { | |
856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
859 | return NULL; | |
860 | } | |
861 | } | |
862 | { | |
863 | if (! PySequence_Check(_obj1)) { | |
864 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
865 | return NULL; | |
866 | } | |
867 | _arg1 = new wxArrayString; | |
868 | int i, len=PySequence_Length(_obj1); | |
869 | for (i=0; i<len; i++) { | |
870 | PyObject* item = PySequence_GetItem(_obj1, i); | |
871 | #if wxUSE_UNICODE | |
872 | PyObject* str = PyObject_Unicode(item); | |
873 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
874 | #else | |
875 | PyObject* str = PyObject_Str(item); | |
876 | _arg1->Add(PyString_AsString(str)); | |
877 | #endif | |
878 | Py_DECREF(item); | |
879 | Py_DECREF(str); | |
880 | } | |
881 | } | |
882 | { | |
883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
884 | wxControlWithItems_AppendItems(_arg0,*_arg1); | |
885 | ||
886 | wxPyEndAllowThreads(__tstate); | |
887 | if (PyErr_Occurred()) return NULL; | |
888 | } Py_INCREF(Py_None); | |
889 | _resultobj = Py_None; | |
890 | { | |
891 | if (_obj1) | |
892 | delete _arg1; | |
893 | } | |
894 | return _resultobj; | |
895 | } | |
896 | ||
897 | static void *SwigwxButtonTowxControl(void *ptr) { | |
898 | wxButton *src; | |
899 | wxControl *dest; | |
900 | src = (wxButton *) ptr; | |
901 | dest = (wxControl *) src; | |
902 | return (void *) dest; | |
903 | } | |
904 | ||
905 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
906 | wxButton *src; | |
907 | wxWindow *dest; | |
908 | src = (wxButton *) ptr; | |
909 | dest = (wxWindow *) src; | |
910 | return (void *) dest; | |
911 | } | |
912 | ||
913 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
914 | wxButton *src; | |
915 | wxEvtHandler *dest; | |
916 | src = (wxButton *) ptr; | |
917 | dest = (wxEvtHandler *) src; | |
918 | return (void *) dest; | |
919 | } | |
920 | ||
921 | static void *SwigwxButtonTowxObject(void *ptr) { | |
922 | wxButton *src; | |
923 | wxObject *dest; | |
924 | src = (wxButton *) ptr; | |
925 | dest = (wxObject *) src; | |
926 | return (void *) dest; | |
927 | } | |
928 | ||
929 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
930 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxButton * _result; | |
933 | wxWindow * _arg0; | |
934 | wxWindowID _arg1; | |
935 | wxString * _arg2; | |
936 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
937 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
938 | long _arg5 = (long ) 0; | |
939 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
940 | char * _arg7 = (char *) "button"; | |
941 | PyObject * _argo0 = 0; | |
942 | PyObject * _obj2 = 0; | |
943 | wxPoint temp; | |
944 | PyObject * _obj3 = 0; | |
945 | wxSize temp0; | |
946 | PyObject * _obj4 = 0; | |
947 | PyObject * _argo6 = 0; | |
948 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
949 | char _ptemp[128]; | |
950 | ||
951 | self = self; | |
952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
953 | return NULL; | |
954 | if (_argo0) { | |
955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); | |
958 | return NULL; | |
959 | } | |
960 | } | |
961 | { | |
962 | _arg2 = wxString_in_helper(_obj2); | |
963 | if (_arg2 == NULL) | |
964 | return NULL; | |
965 | } | |
966 | if (_obj3) | |
967 | { | |
968 | _arg3 = &temp; | |
969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
970 | return NULL; | |
971 | } | |
972 | if (_obj4) | |
973 | { | |
974 | _arg4 = &temp0; | |
975 | if (! wxSize_helper(_obj4, &_arg4)) | |
976 | return NULL; | |
977 | } | |
978 | if (_argo6) { | |
979 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); | |
982 | return NULL; | |
983 | } | |
984 | } | |
985 | { | |
986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
987 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
988 | ||
989 | wxPyEndAllowThreads(__tstate); | |
990 | if (PyErr_Occurred()) return NULL; | |
991 | } if (_result) { | |
992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
993 | _resultobj = Py_BuildValue("s",_ptemp); | |
994 | } else { | |
995 | Py_INCREF(Py_None); | |
996 | _resultobj = Py_None; | |
997 | } | |
998 | { | |
999 | if (_obj2) | |
1000 | delete _arg2; | |
1001 | } | |
1002 | return _resultobj; | |
1003 | } | |
1004 | ||
1005 | #define new_wxPreButton() (new wxButton()) | |
1006 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1007 | PyObject * _resultobj; | |
1008 | wxButton * _result; | |
1009 | char *_kwnames[] = { NULL }; | |
1010 | char _ptemp[128]; | |
1011 | ||
1012 | self = self; | |
1013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1014 | return NULL; | |
1015 | { | |
1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1017 | _result = (wxButton *)new_wxPreButton(); | |
1018 | ||
1019 | wxPyEndAllowThreads(__tstate); | |
1020 | if (PyErr_Occurred()) return NULL; | |
1021 | } if (_result) { | |
1022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1023 | _resultobj = Py_BuildValue("s",_ptemp); | |
1024 | } else { | |
1025 | Py_INCREF(Py_None); | |
1026 | _resultobj = Py_None; | |
1027 | } | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1032 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | bool _result; | |
1035 | wxButton * _arg0; | |
1036 | wxWindow * _arg1; | |
1037 | wxWindowID _arg2; | |
1038 | wxString * _arg3; | |
1039 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1040 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1041 | long _arg6 = (long ) 0; | |
1042 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1043 | char * _arg8 = (char *) "button"; | |
1044 | PyObject * _argo0 = 0; | |
1045 | PyObject * _argo1 = 0; | |
1046 | PyObject * _obj3 = 0; | |
1047 | wxPoint temp; | |
1048 | PyObject * _obj4 = 0; | |
1049 | wxSize temp0; | |
1050 | PyObject * _obj5 = 0; | |
1051 | PyObject * _argo7 = 0; | |
1052 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1053 | ||
1054 | self = self; | |
1055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1056 | return NULL; | |
1057 | if (_argo0) { | |
1058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1061 | return NULL; | |
1062 | } | |
1063 | } | |
1064 | if (_argo1) { | |
1065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
1071 | { | |
1072 | _arg3 = wxString_in_helper(_obj3); | |
1073 | if (_arg3 == NULL) | |
1074 | return NULL; | |
1075 | } | |
1076 | if (_obj4) | |
1077 | { | |
1078 | _arg4 = &temp; | |
1079 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1080 | return NULL; | |
1081 | } | |
1082 | if (_obj5) | |
1083 | { | |
1084 | _arg5 = &temp0; | |
1085 | if (! wxSize_helper(_obj5, &_arg5)) | |
1086 | return NULL; | |
1087 | } | |
1088 | if (_argo7) { | |
1089 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1090 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1092 | return NULL; | |
1093 | } | |
1094 | } | |
1095 | { | |
1096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1097 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1098 | ||
1099 | wxPyEndAllowThreads(__tstate); | |
1100 | if (PyErr_Occurred()) return NULL; | |
1101 | } _resultobj = Py_BuildValue("i",_result); | |
1102 | { | |
1103 | if (_obj3) | |
1104 | delete _arg3; | |
1105 | } | |
1106 | return _resultobj; | |
1107 | } | |
1108 | ||
1109 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
1110 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1111 | PyObject * _resultobj; | |
1112 | wxButton * _arg0; | |
1113 | PyObject * _argo0 = 0; | |
1114 | char *_kwnames[] = { "self", NULL }; | |
1115 | ||
1116 | self = self; | |
1117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) | |
1118 | return NULL; | |
1119 | if (_argo0) { | |
1120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); | |
1123 | return NULL; | |
1124 | } | |
1125 | } | |
1126 | { | |
1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1128 | wxButton_SetDefault(_arg0); | |
1129 | ||
1130 | wxPyEndAllowThreads(__tstate); | |
1131 | if (PyErr_Occurred()) return NULL; | |
1132 | } Py_INCREF(Py_None); | |
1133 | _resultobj = Py_None; | |
1134 | return _resultobj; | |
1135 | } | |
1136 | ||
1137 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1138 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1139 | PyObject * _resultobj; | |
1140 | wxButton * _arg0; | |
1141 | wxColour * _arg1; | |
1142 | PyObject * _argo0 = 0; | |
1143 | wxColour temp; | |
1144 | PyObject * _obj1 = 0; | |
1145 | char *_kwnames[] = { "self","colour", NULL }; | |
1146 | ||
1147 | self = self; | |
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1149 | return NULL; | |
1150 | if (_argo0) { | |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
1157 | { | |
1158 | _arg1 = &temp; | |
1159 | if (! wxColour_helper(_obj1, &_arg1)) | |
1160 | return NULL; | |
1161 | } | |
1162 | { | |
1163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1164 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
1165 | ||
1166 | wxPyEndAllowThreads(__tstate); | |
1167 | if (PyErr_Occurred()) return NULL; | |
1168 | } Py_INCREF(Py_None); | |
1169 | _resultobj = Py_None; | |
1170 | return _resultobj; | |
1171 | } | |
1172 | ||
1173 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1174 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject * _resultobj; | |
1176 | wxButton * _arg0; | |
1177 | wxColour * _arg1; | |
1178 | PyObject * _argo0 = 0; | |
1179 | wxColour temp; | |
1180 | PyObject * _obj1 = 0; | |
1181 | char *_kwnames[] = { "self","colour", NULL }; | |
1182 | ||
1183 | self = self; | |
1184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
1185 | return NULL; | |
1186 | if (_argo0) { | |
1187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1190 | return NULL; | |
1191 | } | |
1192 | } | |
1193 | { | |
1194 | _arg1 = &temp; | |
1195 | if (! wxColour_helper(_obj1, &_arg1)) | |
1196 | return NULL; | |
1197 | } | |
1198 | { | |
1199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1200 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
1201 | ||
1202 | wxPyEndAllowThreads(__tstate); | |
1203 | if (PyErr_Occurred()) return NULL; | |
1204 | } Py_INCREF(Py_None); | |
1205 | _resultobj = Py_None; | |
1206 | return _resultobj; | |
1207 | } | |
1208 | ||
1209 | #define wxButton_SetImageLabel(_swigobj,_swigarg0) (_swigobj->SetImageLabel(_swigarg0)) | |
1210 | static PyObject *_wrap_wxButton_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1211 | PyObject * _resultobj; | |
1212 | wxButton * _arg0; | |
1213 | wxBitmap * _arg1; | |
1214 | PyObject * _argo0 = 0; | |
1215 | PyObject * _argo1 = 0; | |
1216 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1217 | ||
1218 | self = self; | |
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetImageLabel",_kwnames,&_argo0,&_argo1)) | |
1220 | return NULL; | |
1221 | if (_argo0) { | |
1222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageLabel. Expected _wxButton_p."); | |
1225 | return NULL; | |
1226 | } | |
1227 | } | |
1228 | if (_argo1) { | |
1229 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_SetImageLabel. Expected _wxBitmap_p."); | |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
1236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1237 | wxButton_SetImageLabel(_arg0,*_arg1); | |
1238 | ||
1239 | wxPyEndAllowThreads(__tstate); | |
1240 | if (PyErr_Occurred()) return NULL; | |
1241 | } Py_INCREF(Py_None); | |
1242 | _resultobj = Py_None; | |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
1246 | #define wxButton_SetImageMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageMargins(_swigarg0,_swigarg1)) | |
1247 | static PyObject *_wrap_wxButton_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | wxButton * _arg0; | |
1250 | wxCoord _arg1; | |
1251 | wxCoord _arg2; | |
1252 | PyObject * _argo0 = 0; | |
1253 | char *_kwnames[] = { "self","x","y", NULL }; | |
1254 | ||
1255 | self = self; | |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxButton_SetImageMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetImageMargins. Expected _wxButton_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1267 | wxButton_SetImageMargins(_arg0,_arg1,_arg2); | |
1268 | ||
1269 | wxPyEndAllowThreads(__tstate); | |
1270 | if (PyErr_Occurred()) return NULL; | |
1271 | } Py_INCREF(Py_None); | |
1272 | _resultobj = Py_None; | |
1273 | return _resultobj; | |
1274 | } | |
1275 | ||
1276 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject * _resultobj; | |
1278 | wxSize * _result; | |
1279 | char *_kwnames[] = { NULL }; | |
1280 | char _ptemp[128]; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1284 | return NULL; | |
1285 | { | |
1286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1287 | _result = new wxSize (wxButton::GetDefaultSize()); | |
1288 | ||
1289 | wxPyEndAllowThreads(__tstate); | |
1290 | if (PyErr_Occurred()) return NULL; | |
1291 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1292 | _resultobj = Py_BuildValue("s",_ptemp); | |
1293 | return _resultobj; | |
1294 | } | |
1295 | ||
1296 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1297 | wxBitmapButton *src; | |
1298 | wxButton *dest; | |
1299 | src = (wxBitmapButton *) ptr; | |
1300 | dest = (wxButton *) src; | |
1301 | return (void *) dest; | |
1302 | } | |
1303 | ||
1304 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1305 | wxBitmapButton *src; | |
1306 | wxControl *dest; | |
1307 | src = (wxBitmapButton *) ptr; | |
1308 | dest = (wxControl *) src; | |
1309 | return (void *) dest; | |
1310 | } | |
1311 | ||
1312 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1313 | wxBitmapButton *src; | |
1314 | wxWindow *dest; | |
1315 | src = (wxBitmapButton *) ptr; | |
1316 | dest = (wxWindow *) src; | |
1317 | return (void *) dest; | |
1318 | } | |
1319 | ||
1320 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1321 | wxBitmapButton *src; | |
1322 | wxEvtHandler *dest; | |
1323 | src = (wxBitmapButton *) ptr; | |
1324 | dest = (wxEvtHandler *) src; | |
1325 | return (void *) dest; | |
1326 | } | |
1327 | ||
1328 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1329 | wxBitmapButton *src; | |
1330 | wxObject *dest; | |
1331 | src = (wxBitmapButton *) ptr; | |
1332 | dest = (wxObject *) src; | |
1333 | return (void *) dest; | |
1334 | } | |
1335 | ||
1336 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1337 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1338 | PyObject * _resultobj; | |
1339 | wxBitmapButton * _result; | |
1340 | wxWindow * _arg0; | |
1341 | wxWindowID _arg1; | |
1342 | wxBitmap * _arg2; | |
1343 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1344 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1345 | long _arg5 = (long ) wxBU_AUTODRAW; | |
1346 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1347 | char * _arg7 = (char *) "button"; | |
1348 | PyObject * _argo0 = 0; | |
1349 | PyObject * _argo2 = 0; | |
1350 | wxPoint temp; | |
1351 | PyObject * _obj3 = 0; | |
1352 | wxSize temp0; | |
1353 | PyObject * _obj4 = 0; | |
1354 | PyObject * _argo6 = 0; | |
1355 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1356 | char _ptemp[128]; | |
1357 | ||
1358 | self = self; | |
1359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1360 | return NULL; | |
1361 | if (_argo0) { | |
1362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); | |
1365 | return NULL; | |
1366 | } | |
1367 | } | |
1368 | if (_argo2) { | |
1369 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1370 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
1371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); | |
1372 | return NULL; | |
1373 | } | |
1374 | } | |
1375 | if (_obj3) | |
1376 | { | |
1377 | _arg3 = &temp; | |
1378 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1379 | return NULL; | |
1380 | } | |
1381 | if (_obj4) | |
1382 | { | |
1383 | _arg4 = &temp0; | |
1384 | if (! wxSize_helper(_obj4, &_arg4)) | |
1385 | return NULL; | |
1386 | } | |
1387 | if (_argo6) { | |
1388 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); | |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
1394 | { | |
1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1396 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1397 | ||
1398 | wxPyEndAllowThreads(__tstate); | |
1399 | if (PyErr_Occurred()) return NULL; | |
1400 | } if (_result) { | |
1401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1402 | _resultobj = Py_BuildValue("s",_ptemp); | |
1403 | } else { | |
1404 | Py_INCREF(Py_None); | |
1405 | _resultobj = Py_None; | |
1406 | } | |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | #define new_wxPreBitmapButton() (new wxBitmapButton()) | |
1411 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1412 | PyObject * _resultobj; | |
1413 | wxBitmapButton * _result; | |
1414 | char *_kwnames[] = { NULL }; | |
1415 | char _ptemp[128]; | |
1416 | ||
1417 | self = self; | |
1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1419 | return NULL; | |
1420 | { | |
1421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1422 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); | |
1423 | ||
1424 | wxPyEndAllowThreads(__tstate); | |
1425 | if (PyErr_Occurred()) return NULL; | |
1426 | } if (_result) { | |
1427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1428 | _resultobj = Py_BuildValue("s",_ptemp); | |
1429 | } else { | |
1430 | Py_INCREF(Py_None); | |
1431 | _resultobj = Py_None; | |
1432 | } | |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1437 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1438 | PyObject * _resultobj; | |
1439 | bool _result; | |
1440 | wxBitmapButton * _arg0; | |
1441 | wxWindow * _arg1; | |
1442 | wxWindowID _arg2; | |
1443 | wxBitmap * _arg3; | |
1444 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1445 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1446 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1447 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1448 | char * _arg8 = (char *) "button"; | |
1449 | PyObject * _argo0 = 0; | |
1450 | PyObject * _argo1 = 0; | |
1451 | PyObject * _argo3 = 0; | |
1452 | wxPoint temp; | |
1453 | PyObject * _obj4 = 0; | |
1454 | wxSize temp0; | |
1455 | PyObject * _obj5 = 0; | |
1456 | PyObject * _argo7 = 0; | |
1457 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1458 | ||
1459 | self = self; | |
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
1461 | return NULL; | |
1462 | if (_argo0) { | |
1463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1466 | return NULL; | |
1467 | } | |
1468 | } | |
1469 | if (_argo1) { | |
1470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1473 | return NULL; | |
1474 | } | |
1475 | } | |
1476 | if (_argo3) { | |
1477 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | if (_obj4) | |
1484 | { | |
1485 | _arg4 = &temp; | |
1486 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1487 | return NULL; | |
1488 | } | |
1489 | if (_obj5) | |
1490 | { | |
1491 | _arg5 = &temp0; | |
1492 | if (! wxSize_helper(_obj5, &_arg5)) | |
1493 | return NULL; | |
1494 | } | |
1495 | if (_argo7) { | |
1496 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1497 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1499 | return NULL; | |
1500 | } | |
1501 | } | |
1502 | { | |
1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1504 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
1505 | ||
1506 | wxPyEndAllowThreads(__tstate); | |
1507 | if (PyErr_Occurred()) return NULL; | |
1508 | } _resultobj = Py_BuildValue("i",_result); | |
1509 | return _resultobj; | |
1510 | } | |
1511 | ||
1512 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
1513 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject * _resultobj; | |
1515 | wxBitmap * _result; | |
1516 | wxBitmapButton * _arg0; | |
1517 | PyObject * _argo0 = 0; | |
1518 | char *_kwnames[] = { "self", NULL }; | |
1519 | char _ptemp[128]; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) | |
1523 | return NULL; | |
1524 | if (_argo0) { | |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); | |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
1531 | { | |
1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1533 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); | |
1534 | ||
1535 | wxPyEndAllowThreads(__tstate); | |
1536 | if (PyErr_Occurred()) return NULL; | |
1537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1538 | _resultobj = Py_BuildValue("s",_ptemp); | |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
1542 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
1543 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1544 | PyObject * _resultobj; | |
1545 | wxBitmap * _result; | |
1546 | wxBitmapButton * _arg0; | |
1547 | PyObject * _argo0 = 0; | |
1548 | char *_kwnames[] = { "self", NULL }; | |
1549 | char _ptemp[128]; | |
1550 | ||
1551 | self = self; | |
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) | |
1553 | return NULL; | |
1554 | if (_argo0) { | |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1558 | return NULL; | |
1559 | } | |
1560 | } | |
1561 | { | |
1562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1563 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); | |
1564 | ||
1565 | wxPyEndAllowThreads(__tstate); | |
1566 | if (PyErr_Occurred()) return NULL; | |
1567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1568 | _resultobj = Py_BuildValue("s",_ptemp); | |
1569 | return _resultobj; | |
1570 | } | |
1571 | ||
1572 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
1573 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1574 | PyObject * _resultobj; | |
1575 | wxBitmap * _result; | |
1576 | wxBitmapButton * _arg0; | |
1577 | PyObject * _argo0 = 0; | |
1578 | char *_kwnames[] = { "self", NULL }; | |
1579 | char _ptemp[128]; | |
1580 | ||
1581 | self = self; | |
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) | |
1583 | return NULL; | |
1584 | if (_argo0) { | |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); | |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
1591 | { | |
1592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1593 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); | |
1594 | ||
1595 | wxPyEndAllowThreads(__tstate); | |
1596 | if (PyErr_Occurred()) return NULL; | |
1597 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1598 | _resultobj = Py_BuildValue("s",_ptemp); | |
1599 | return _resultobj; | |
1600 | } | |
1601 | ||
1602 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
1603 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1604 | PyObject * _resultobj; | |
1605 | wxBitmap * _result; | |
1606 | wxBitmapButton * _arg0; | |
1607 | PyObject * _argo0 = 0; | |
1608 | char *_kwnames[] = { "self", NULL }; | |
1609 | char _ptemp[128]; | |
1610 | ||
1611 | self = self; | |
1612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) | |
1613 | return NULL; | |
1614 | if (_argo0) { | |
1615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); | |
1618 | return NULL; | |
1619 | } | |
1620 | } | |
1621 | { | |
1622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1623 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); | |
1624 | ||
1625 | wxPyEndAllowThreads(__tstate); | |
1626 | if (PyErr_Occurred()) return NULL; | |
1627 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1628 | _resultobj = Py_BuildValue("s",_ptemp); | |
1629 | return _resultobj; | |
1630 | } | |
1631 | ||
1632 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
1633 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject * _resultobj; | |
1635 | wxBitmapButton * _arg0; | |
1636 | wxBitmap * _arg1; | |
1637 | PyObject * _argo0 = 0; | |
1638 | PyObject * _argo1 = 0; | |
1639 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1640 | ||
1641 | self = self; | |
1642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) | |
1643 | return NULL; | |
1644 | if (_argo0) { | |
1645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1648 | return NULL; | |
1649 | } | |
1650 | } | |
1651 | if (_argo1) { | |
1652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1660 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
1661 | ||
1662 | wxPyEndAllowThreads(__tstate); | |
1663 | if (PyErr_Occurred()) return NULL; | |
1664 | } Py_INCREF(Py_None); | |
1665 | _resultobj = Py_None; | |
1666 | return _resultobj; | |
1667 | } | |
1668 | ||
1669 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
1670 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1671 | PyObject * _resultobj; | |
1672 | wxBitmapButton * _arg0; | |
1673 | wxBitmap * _arg1; | |
1674 | PyObject * _argo0 = 0; | |
1675 | PyObject * _argo1 = 0; | |
1676 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1677 | ||
1678 | self = self; | |
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) | |
1680 | return NULL; | |
1681 | if (_argo0) { | |
1682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); | |
1685 | return NULL; | |
1686 | } | |
1687 | } | |
1688 | if (_argo1) { | |
1689 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1690 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); | |
1692 | return NULL; | |
1693 | } | |
1694 | } | |
1695 | { | |
1696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1697 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
1698 | ||
1699 | wxPyEndAllowThreads(__tstate); | |
1700 | if (PyErr_Occurred()) return NULL; | |
1701 | } Py_INCREF(Py_None); | |
1702 | _resultobj = Py_None; | |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
1706 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
1707 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject * _resultobj; | |
1709 | wxBitmapButton * _arg0; | |
1710 | wxBitmap * _arg1; | |
1711 | PyObject * _argo0 = 0; | |
1712 | PyObject * _argo1 = 0; | |
1713 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | if (_argo1) { | |
1726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); | |
1729 | return NULL; | |
1730 | } | |
1731 | } | |
1732 | { | |
1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1734 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
1735 | ||
1736 | wxPyEndAllowThreads(__tstate); | |
1737 | if (PyErr_Occurred()) return NULL; | |
1738 | } Py_INCREF(Py_None); | |
1739 | _resultobj = Py_None; | |
1740 | return _resultobj; | |
1741 | } | |
1742 | ||
1743 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
1744 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject * _resultobj; | |
1746 | wxBitmapButton * _arg0; | |
1747 | wxBitmap * _arg1; | |
1748 | PyObject * _argo0 = 0; | |
1749 | PyObject * _argo1 = 0; | |
1750 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1751 | ||
1752 | self = self; | |
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) | |
1754 | return NULL; | |
1755 | if (_argo0) { | |
1756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); | |
1759 | return NULL; | |
1760 | } | |
1761 | } | |
1762 | if (_argo1) { | |
1763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); | |
1766 | return NULL; | |
1767 | } | |
1768 | } | |
1769 | { | |
1770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1771 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
1772 | ||
1773 | wxPyEndAllowThreads(__tstate); | |
1774 | if (PyErr_Occurred()) return NULL; | |
1775 | } Py_INCREF(Py_None); | |
1776 | _resultobj = Py_None; | |
1777 | return _resultobj; | |
1778 | } | |
1779 | ||
1780 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
1781 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject * _resultobj; | |
1783 | wxBitmapButton * _arg0; | |
1784 | int _arg1; | |
1785 | int _arg2; | |
1786 | PyObject * _argo0 = 0; | |
1787 | char *_kwnames[] = { "self","x","y", NULL }; | |
1788 | ||
1789 | self = self; | |
1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1791 | return NULL; | |
1792 | if (_argo0) { | |
1793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1796 | return NULL; | |
1797 | } | |
1798 | } | |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) return NULL; | |
1805 | } Py_INCREF(Py_None); | |
1806 | _resultobj = Py_None; | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1811 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | int _result; | |
1814 | wxBitmapButton * _arg0; | |
1815 | PyObject * _argo0 = 0; | |
1816 | char *_kwnames[] = { "self", NULL }; | |
1817 | ||
1818 | self = self; | |
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1820 | return NULL; | |
1821 | if (_argo0) { | |
1822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1825 | return NULL; | |
1826 | } | |
1827 | } | |
1828 | { | |
1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1830 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1831 | ||
1832 | wxPyEndAllowThreads(__tstate); | |
1833 | if (PyErr_Occurred()) return NULL; | |
1834 | } _resultobj = Py_BuildValue("i",_result); | |
1835 | return _resultobj; | |
1836 | } | |
1837 | ||
1838 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1839 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject * _resultobj; | |
1841 | int _result; | |
1842 | wxBitmapButton * _arg0; | |
1843 | PyObject * _argo0 = 0; | |
1844 | char *_kwnames[] = { "self", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1858 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1859 | ||
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) return NULL; | |
1862 | } _resultobj = Py_BuildValue("i",_result); | |
1863 | return _resultobj; | |
1864 | } | |
1865 | ||
1866 | static void *SwigwxCheckBoxTowxControl(void *ptr) { | |
1867 | wxCheckBox *src; | |
1868 | wxControl *dest; | |
1869 | src = (wxCheckBox *) ptr; | |
1870 | dest = (wxControl *) src; | |
1871 | return (void *) dest; | |
1872 | } | |
1873 | ||
1874 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1875 | wxCheckBox *src; | |
1876 | wxWindow *dest; | |
1877 | src = (wxCheckBox *) ptr; | |
1878 | dest = (wxWindow *) src; | |
1879 | return (void *) dest; | |
1880 | } | |
1881 | ||
1882 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1883 | wxCheckBox *src; | |
1884 | wxEvtHandler *dest; | |
1885 | src = (wxCheckBox *) ptr; | |
1886 | dest = (wxEvtHandler *) src; | |
1887 | return (void *) dest; | |
1888 | } | |
1889 | ||
1890 | static void *SwigwxCheckBoxTowxObject(void *ptr) { | |
1891 | wxCheckBox *src; | |
1892 | wxObject *dest; | |
1893 | src = (wxCheckBox *) ptr; | |
1894 | dest = (wxObject *) src; | |
1895 | return (void *) dest; | |
1896 | } | |
1897 | ||
1898 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1899 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject * _resultobj; | |
1901 | wxCheckBox * _result; | |
1902 | wxWindow * _arg0; | |
1903 | wxWindowID _arg1; | |
1904 | wxString * _arg2; | |
1905 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1906 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1907 | long _arg5 = (long ) 0; | |
1908 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1909 | char * _arg7 = (char *) "checkBox"; | |
1910 | PyObject * _argo0 = 0; | |
1911 | PyObject * _obj2 = 0; | |
1912 | wxPoint temp; | |
1913 | PyObject * _obj3 = 0; | |
1914 | wxSize temp0; | |
1915 | PyObject * _obj4 = 0; | |
1916 | PyObject * _argo6 = 0; | |
1917 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; | |
1918 | char _ptemp[128]; | |
1919 | ||
1920 | self = self; | |
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
1922 | return NULL; | |
1923 | if (_argo0) { | |
1924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); | |
1927 | return NULL; | |
1928 | } | |
1929 | } | |
1930 | { | |
1931 | _arg2 = wxString_in_helper(_obj2); | |
1932 | if (_arg2 == NULL) | |
1933 | return NULL; | |
1934 | } | |
1935 | if (_obj3) | |
1936 | { | |
1937 | _arg3 = &temp; | |
1938 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1939 | return NULL; | |
1940 | } | |
1941 | if (_obj4) | |
1942 | { | |
1943 | _arg4 = &temp0; | |
1944 | if (! wxSize_helper(_obj4, &_arg4)) | |
1945 | return NULL; | |
1946 | } | |
1947 | if (_argo6) { | |
1948 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1949 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); | |
1951 | return NULL; | |
1952 | } | |
1953 | } | |
1954 | { | |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) return NULL; | |
1960 | } if (_result) { | |
1961 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1962 | _resultobj = Py_BuildValue("s",_ptemp); | |
1963 | } else { | |
1964 | Py_INCREF(Py_None); | |
1965 | _resultobj = Py_None; | |
1966 | } | |
1967 | { | |
1968 | if (_obj2) | |
1969 | delete _arg2; | |
1970 | } | |
1971 | return _resultobj; | |
1972 | } | |
1973 | ||
1974 | #define new_wxPreCheckBox() (new wxCheckBox()) | |
1975 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1976 | PyObject * _resultobj; | |
1977 | wxCheckBox * _result; | |
1978 | char *_kwnames[] = { NULL }; | |
1979 | char _ptemp[128]; | |
1980 | ||
1981 | self = self; | |
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
1983 | return NULL; | |
1984 | { | |
1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1986 | _result = (wxCheckBox *)new_wxPreCheckBox(); | |
1987 | ||
1988 | wxPyEndAllowThreads(__tstate); | |
1989 | if (PyErr_Occurred()) return NULL; | |
1990 | } if (_result) { | |
1991 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1992 | _resultobj = Py_BuildValue("s",_ptemp); | |
1993 | } else { | |
1994 | Py_INCREF(Py_None); | |
1995 | _resultobj = Py_None; | |
1996 | } | |
1997 | return _resultobj; | |
1998 | } | |
1999 | ||
2000 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2001 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2002 | PyObject * _resultobj; | |
2003 | bool _result; | |
2004 | wxCheckBox * _arg0; | |
2005 | wxWindow * _arg1; | |
2006 | wxWindowID _arg2; | |
2007 | wxString * _arg3; | |
2008 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2009 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2010 | long _arg6 = (long ) 0; | |
2011 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2012 | char * _arg8 = (char *) "checkBox"; | |
2013 | PyObject * _argo0 = 0; | |
2014 | PyObject * _argo1 = 0; | |
2015 | PyObject * _obj3 = 0; | |
2016 | wxPoint temp; | |
2017 | PyObject * _obj4 = 0; | |
2018 | wxSize temp0; | |
2019 | PyObject * _obj5 = 0; | |
2020 | PyObject * _argo7 = 0; | |
2021 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2022 | ||
2023 | self = self; | |
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2025 | return NULL; | |
2026 | if (_argo0) { | |
2027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2030 | return NULL; | |
2031 | } | |
2032 | } | |
2033 | if (_argo1) { | |
2034 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2035 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2037 | return NULL; | |
2038 | } | |
2039 | } | |
2040 | { | |
2041 | _arg3 = wxString_in_helper(_obj3); | |
2042 | if (_arg3 == NULL) | |
2043 | return NULL; | |
2044 | } | |
2045 | if (_obj4) | |
2046 | { | |
2047 | _arg4 = &temp; | |
2048 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2049 | return NULL; | |
2050 | } | |
2051 | if (_obj5) | |
2052 | { | |
2053 | _arg5 = &temp0; | |
2054 | if (! wxSize_helper(_obj5, &_arg5)) | |
2055 | return NULL; | |
2056 | } | |
2057 | if (_argo7) { | |
2058 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2059 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2061 | return NULL; | |
2062 | } | |
2063 | } | |
2064 | { | |
2065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2066 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
2067 | ||
2068 | wxPyEndAllowThreads(__tstate); | |
2069 | if (PyErr_Occurred()) return NULL; | |
2070 | } _resultobj = Py_BuildValue("i",_result); | |
2071 | { | |
2072 | if (_obj3) | |
2073 | delete _arg3; | |
2074 | } | |
2075 | return _resultobj; | |
2076 | } | |
2077 | ||
2078 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2079 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject * _resultobj; | |
2081 | bool _result; | |
2082 | wxCheckBox * _arg0; | |
2083 | PyObject * _argo0 = 0; | |
2084 | char *_kwnames[] = { "self", NULL }; | |
2085 | ||
2086 | self = self; | |
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) | |
2088 | return NULL; | |
2089 | if (_argo0) { | |
2090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); | |
2093 | return NULL; | |
2094 | } | |
2095 | } | |
2096 | { | |
2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2098 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
2099 | ||
2100 | wxPyEndAllowThreads(__tstate); | |
2101 | if (PyErr_Occurred()) return NULL; | |
2102 | } _resultobj = Py_BuildValue("i",_result); | |
2103 | return _resultobj; | |
2104 | } | |
2105 | ||
2106 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2107 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject * _resultobj; | |
2109 | wxCheckBox * _arg0; | |
2110 | bool _arg1; | |
2111 | PyObject * _argo0 = 0; | |
2112 | int tempbool1; | |
2113 | char *_kwnames[] = { "self","state", NULL }; | |
2114 | ||
2115 | self = self; | |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) | |
2117 | return NULL; | |
2118 | if (_argo0) { | |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); | |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
2125 | _arg1 = (bool ) tempbool1; | |
2126 | { | |
2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2128 | wxCheckBox_SetValue(_arg0,_arg1); | |
2129 | ||
2130 | wxPyEndAllowThreads(__tstate); | |
2131 | if (PyErr_Occurred()) return NULL; | |
2132 | } Py_INCREF(Py_None); | |
2133 | _resultobj = Py_None; | |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
2137 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { | |
2138 | wxChoice *src; | |
2139 | wxControlWithItems *dest; | |
2140 | src = (wxChoice *) ptr; | |
2141 | dest = (wxControlWithItems *) src; | |
2142 | return (void *) dest; | |
2143 | } | |
2144 | ||
2145 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
2146 | wxChoice *src; | |
2147 | wxControl *dest; | |
2148 | src = (wxChoice *) ptr; | |
2149 | dest = (wxControl *) src; | |
2150 | return (void *) dest; | |
2151 | } | |
2152 | ||
2153 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2154 | wxChoice *src; | |
2155 | wxWindow *dest; | |
2156 | src = (wxChoice *) ptr; | |
2157 | dest = (wxWindow *) src; | |
2158 | return (void *) dest; | |
2159 | } | |
2160 | ||
2161 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2162 | wxChoice *src; | |
2163 | wxEvtHandler *dest; | |
2164 | src = (wxChoice *) ptr; | |
2165 | dest = (wxEvtHandler *) src; | |
2166 | return (void *) dest; | |
2167 | } | |
2168 | ||
2169 | static void *SwigwxChoiceTowxObject(void *ptr) { | |
2170 | wxChoice *src; | |
2171 | wxObject *dest; | |
2172 | src = (wxChoice *) ptr; | |
2173 | dest = (wxObject *) src; | |
2174 | return (void *) dest; | |
2175 | } | |
2176 | ||
2177 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2178 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2179 | PyObject * _resultobj; | |
2180 | wxChoice * _result; | |
2181 | wxWindow * _arg0; | |
2182 | wxWindowID _arg1; | |
2183 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2184 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2185 | int _arg4 = (int ) 0; | |
2186 | wxString * _arg5 = (wxString *) NULL; | |
2187 | long _arg6 = (long ) 0; | |
2188 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2189 | char * _arg8 = (char *) "choice"; | |
2190 | PyObject * _argo0 = 0; | |
2191 | wxPoint temp; | |
2192 | PyObject * _obj2 = 0; | |
2193 | wxSize temp0; | |
2194 | PyObject * _obj3 = 0; | |
2195 | PyObject * _obj5 = 0; | |
2196 | PyObject * _argo7 = 0; | |
2197 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
2198 | char _ptemp[128]; | |
2199 | ||
2200 | self = self; | |
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
2202 | return NULL; | |
2203 | if (_argo0) { | |
2204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); | |
2207 | return NULL; | |
2208 | } | |
2209 | } | |
2210 | if (_obj2) | |
2211 | { | |
2212 | _arg2 = &temp; | |
2213 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2214 | return NULL; | |
2215 | } | |
2216 | if (_obj3) | |
2217 | { | |
2218 | _arg3 = &temp0; | |
2219 | if (! wxSize_helper(_obj3, &_arg3)) | |
2220 | return NULL; | |
2221 | } | |
2222 | if (_obj5) | |
2223 | { | |
2224 | _arg5 = wxString_LIST_helper(_obj5); | |
2225 | if (_arg5 == NULL) { | |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
2229 | if (_argo7) { | |
2230 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2231 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); | |
2233 | return NULL; | |
2234 | } | |
2235 | } | |
2236 | { | |
2237 | if (_obj5) { | |
2238 | _arg4 = PyList_Size(_obj5); | |
2239 | } | |
2240 | else { | |
2241 | _arg4 = 0; | |
2242 | } | |
2243 | } | |
2244 | { | |
2245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2246 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
2247 | ||
2248 | wxPyEndAllowThreads(__tstate); | |
2249 | if (PyErr_Occurred()) return NULL; | |
2250 | } if (_result) { | |
2251 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2252 | _resultobj = Py_BuildValue("s",_ptemp); | |
2253 | } else { | |
2254 | Py_INCREF(Py_None); | |
2255 | _resultobj = Py_None; | |
2256 | } | |
2257 | { | |
2258 | delete [] _arg5; | |
2259 | } | |
2260 | return _resultobj; | |
2261 | } | |
2262 | ||
2263 | #define new_wxPreChoice() (new wxChoice()) | |
2264 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2265 | PyObject * _resultobj; | |
2266 | wxChoice * _result; | |
2267 | char *_kwnames[] = { NULL }; | |
2268 | char _ptemp[128]; | |
2269 | ||
2270 | self = self; | |
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) | |
2272 | return NULL; | |
2273 | { | |
2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2275 | _result = (wxChoice *)new_wxPreChoice(); | |
2276 | ||
2277 | wxPyEndAllowThreads(__tstate); | |
2278 | if (PyErr_Occurred()) return NULL; | |
2279 | } if (_result) { | |
2280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2281 | _resultobj = Py_BuildValue("s",_ptemp); | |
2282 | } else { | |
2283 | Py_INCREF(Py_None); | |
2284 | _resultobj = Py_None; | |
2285 | } | |
2286 | return _resultobj; | |
2287 | } | |
2288 | ||
2289 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2290 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject * _resultobj; | |
2292 | bool _result; | |
2293 | wxChoice * _arg0; | |
2294 | wxWindow * _arg1; | |
2295 | wxWindowID _arg2; | |
2296 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2297 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2298 | int _arg5 = (int ) 0; | |
2299 | wxString * _arg6 = (wxString *) NULL; | |
2300 | long _arg7 = (long ) 0; | |
2301 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2302 | char * _arg9 = (char *) "choice"; | |
2303 | PyObject * _argo0 = 0; | |
2304 | PyObject * _argo1 = 0; | |
2305 | wxPoint temp; | |
2306 | PyObject * _obj3 = 0; | |
2307 | wxSize temp0; | |
2308 | PyObject * _obj4 = 0; | |
2309 | PyObject * _obj6 = 0; | |
2310 | PyObject * _argo8 = 0; | |
2311 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2312 | ||
2313 | self = self; | |
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2315 | return NULL; | |
2316 | if (_argo0) { | |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2320 | return NULL; | |
2321 | } | |
2322 | } | |
2323 | if (_argo1) { | |
2324 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2325 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2327 | return NULL; | |
2328 | } | |
2329 | } | |
2330 | if (_obj3) | |
2331 | { | |
2332 | _arg3 = &temp; | |
2333 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2334 | return NULL; | |
2335 | } | |
2336 | if (_obj4) | |
2337 | { | |
2338 | _arg4 = &temp0; | |
2339 | if (! wxSize_helper(_obj4, &_arg4)) | |
2340 | return NULL; | |
2341 | } | |
2342 | if (_obj6) | |
2343 | { | |
2344 | _arg6 = wxString_LIST_helper(_obj6); | |
2345 | if (_arg6 == NULL) { | |
2346 | return NULL; | |
2347 | } | |
2348 | } | |
2349 | if (_argo8) { | |
2350 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2353 | return NULL; | |
2354 | } | |
2355 | } | |
2356 | { | |
2357 | if (_obj6) { | |
2358 | _arg5 = PyList_Size(_obj6); | |
2359 | } | |
2360 | else { | |
2361 | _arg5 = 0; | |
2362 | } | |
2363 | } | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2366 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
2367 | ||
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) return NULL; | |
2370 | } _resultobj = Py_BuildValue("i",_result); | |
2371 | { | |
2372 | delete [] _arg6; | |
2373 | } | |
2374 | return _resultobj; | |
2375 | } | |
2376 | ||
2377 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
2378 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2379 | PyObject * _resultobj; | |
2380 | wxChoice * _arg0; | |
2381 | PyObject * _argo0 = 0; | |
2382 | char *_kwnames[] = { "self", NULL }; | |
2383 | ||
2384 | self = self; | |
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) | |
2386 | return NULL; | |
2387 | if (_argo0) { | |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | { | |
2395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2396 | wxChoice_Clear(_arg0); | |
2397 | ||
2398 | wxPyEndAllowThreads(__tstate); | |
2399 | if (PyErr_Occurred()) return NULL; | |
2400 | } Py_INCREF(Py_None); | |
2401 | _resultobj = Py_None; | |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
2405 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
2406 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2407 | PyObject * _resultobj; | |
2408 | int _result; | |
2409 | wxChoice * _arg0; | |
2410 | PyObject * _argo0 = 0; | |
2411 | char *_kwnames[] = { "self", NULL }; | |
2412 | ||
2413 | self = self; | |
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) | |
2415 | return NULL; | |
2416 | if (_argo0) { | |
2417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); | |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
2423 | { | |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2425 | _result = (int )wxChoice_GetColumns(_arg0); | |
2426 | ||
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) return NULL; | |
2429 | } _resultobj = Py_BuildValue("i",_result); | |
2430 | return _resultobj; | |
2431 | } | |
2432 | ||
2433 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
2434 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject * _resultobj; | |
2436 | wxChoice * _arg0; | |
2437 | int _arg1 = (int ) 1; | |
2438 | PyObject * _argo0 = 0; | |
2439 | char *_kwnames[] = { "self","n", NULL }; | |
2440 | ||
2441 | self = self; | |
2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) | |
2443 | return NULL; | |
2444 | if (_argo0) { | |
2445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); | |
2448 | return NULL; | |
2449 | } | |
2450 | } | |
2451 | { | |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2453 | wxChoice_SetColumns(_arg0,_arg1); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) return NULL; | |
2457 | } Py_INCREF(Py_None); | |
2458 | _resultobj = Py_None; | |
2459 | return _resultobj; | |
2460 | } | |
2461 | ||
2462 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
2463 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject * _resultobj; | |
2465 | wxChoice * _arg0; | |
2466 | int _arg1; | |
2467 | PyObject * _argo0 = 0; | |
2468 | char *_kwnames[] = { "self","n", NULL }; | |
2469 | ||
2470 | self = self; | |
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2472 | return NULL; | |
2473 | if (_argo0) { | |
2474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); | |
2477 | return NULL; | |
2478 | } | |
2479 | } | |
2480 | { | |
2481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2482 | wxChoice_SetSelection(_arg0,_arg1); | |
2483 | ||
2484 | wxPyEndAllowThreads(__tstate); | |
2485 | if (PyErr_Occurred()) return NULL; | |
2486 | } Py_INCREF(Py_None); | |
2487 | _resultobj = Py_None; | |
2488 | return _resultobj; | |
2489 | } | |
2490 | ||
2491 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
2492 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2493 | PyObject * _resultobj; | |
2494 | wxChoice * _arg0; | |
2495 | wxString * _arg1; | |
2496 | PyObject * _argo0 = 0; | |
2497 | PyObject * _obj1 = 0; | |
2498 | char *_kwnames[] = { "self","string", NULL }; | |
2499 | ||
2500 | self = self; | |
2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
2502 | return NULL; | |
2503 | if (_argo0) { | |
2504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); | |
2507 | return NULL; | |
2508 | } | |
2509 | } | |
2510 | { | |
2511 | _arg1 = wxString_in_helper(_obj1); | |
2512 | if (_arg1 == NULL) | |
2513 | return NULL; | |
2514 | } | |
2515 | { | |
2516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2517 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
2518 | ||
2519 | wxPyEndAllowThreads(__tstate); | |
2520 | if (PyErr_Occurred()) return NULL; | |
2521 | } Py_INCREF(Py_None); | |
2522 | _resultobj = Py_None; | |
2523 | { | |
2524 | if (_obj1) | |
2525 | delete _arg1; | |
2526 | } | |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
2530 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
2531 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject * _resultobj; | |
2533 | wxChoice * _arg0; | |
2534 | int _arg1; | |
2535 | wxString * _arg2; | |
2536 | PyObject * _argo0 = 0; | |
2537 | PyObject * _obj2 = 0; | |
2538 | char *_kwnames[] = { "self","n","s", NULL }; | |
2539 | ||
2540 | self = self; | |
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2542 | return NULL; | |
2543 | if (_argo0) { | |
2544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | { | |
2551 | _arg2 = wxString_in_helper(_obj2); | |
2552 | if (_arg2 == NULL) | |
2553 | return NULL; | |
2554 | } | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2557 | wxChoice_SetString(_arg0,_arg1,*_arg2); | |
2558 | ||
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) return NULL; | |
2561 | } Py_INCREF(Py_None); | |
2562 | _resultobj = Py_None; | |
2563 | { | |
2564 | if (_obj2) | |
2565 | delete _arg2; | |
2566 | } | |
2567 | return _resultobj; | |
2568 | } | |
2569 | ||
2570 | static void *SwigwxComboBoxTowxChoice(void *ptr) { | |
2571 | wxComboBox *src; | |
2572 | wxChoice *dest; | |
2573 | src = (wxComboBox *) ptr; | |
2574 | dest = (wxChoice *) src; | |
2575 | return (void *) dest; | |
2576 | } | |
2577 | ||
2578 | static void *SwigwxComboBoxTowxControlWithItems(void *ptr) { | |
2579 | wxComboBox *src; | |
2580 | wxControlWithItems *dest; | |
2581 | src = (wxComboBox *) ptr; | |
2582 | dest = (wxControlWithItems *) src; | |
2583 | return (void *) dest; | |
2584 | } | |
2585 | ||
2586 | static void *SwigwxComboBoxTowxControl(void *ptr) { | |
2587 | wxComboBox *src; | |
2588 | wxControl *dest; | |
2589 | src = (wxComboBox *) ptr; | |
2590 | dest = (wxControl *) src; | |
2591 | return (void *) dest; | |
2592 | } | |
2593 | ||
2594 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2595 | wxComboBox *src; | |
2596 | wxWindow *dest; | |
2597 | src = (wxComboBox *) ptr; | |
2598 | dest = (wxWindow *) src; | |
2599 | return (void *) dest; | |
2600 | } | |
2601 | ||
2602 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2603 | wxComboBox *src; | |
2604 | wxEvtHandler *dest; | |
2605 | src = (wxComboBox *) ptr; | |
2606 | dest = (wxEvtHandler *) src; | |
2607 | return (void *) dest; | |
2608 | } | |
2609 | ||
2610 | static void *SwigwxComboBoxTowxObject(void *ptr) { | |
2611 | wxComboBox *src; | |
2612 | wxObject *dest; | |
2613 | src = (wxComboBox *) ptr; | |
2614 | dest = (wxObject *) src; | |
2615 | return (void *) dest; | |
2616 | } | |
2617 | ||
2618 | #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)) | |
2619 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject * _resultobj; | |
2621 | wxComboBox * _result; | |
2622 | wxWindow * _arg0; | |
2623 | wxWindowID _arg1; | |
2624 | char * _arg2 = (char *) ""; | |
2625 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2626 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2627 | int _arg5 = (int ) 0; | |
2628 | wxString * _arg6 = (wxString *) NULL; | |
2629 | long _arg7 = (long ) 0; | |
2630 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2631 | char * _arg9 = (char *) "comboBox"; | |
2632 | PyObject * _argo0 = 0; | |
2633 | wxPoint temp; | |
2634 | PyObject * _obj3 = 0; | |
2635 | wxSize temp0; | |
2636 | PyObject * _obj4 = 0; | |
2637 | PyObject * _obj6 = 0; | |
2638 | PyObject * _argo8 = 0; | |
2639 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2640 | char _ptemp[128]; | |
2641 | ||
2642 | self = self; | |
2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOOlOs:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
2644 | return NULL; | |
2645 | if (_argo0) { | |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); | |
2649 | return NULL; | |
2650 | } | |
2651 | } | |
2652 | if (_obj3) | |
2653 | { | |
2654 | _arg3 = &temp; | |
2655 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2656 | return NULL; | |
2657 | } | |
2658 | if (_obj4) | |
2659 | { | |
2660 | _arg4 = &temp0; | |
2661 | if (! wxSize_helper(_obj4, &_arg4)) | |
2662 | return NULL; | |
2663 | } | |
2664 | if (_obj6) | |
2665 | { | |
2666 | _arg6 = wxString_LIST_helper(_obj6); | |
2667 | if (_arg6 == NULL) { | |
2668 | return NULL; | |
2669 | } | |
2670 | } | |
2671 | if (_argo8) { | |
2672 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); | |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
2678 | { | |
2679 | if (_obj6) { | |
2680 | _arg5 = PyList_Size(_obj6); | |
2681 | } | |
2682 | else { | |
2683 | _arg5 = 0; | |
2684 | } | |
2685 | } | |
2686 | { | |
2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2688 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
2689 | ||
2690 | wxPyEndAllowThreads(__tstate); | |
2691 | if (PyErr_Occurred()) return NULL; | |
2692 | } if (_result) { | |
2693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2694 | _resultobj = Py_BuildValue("s",_ptemp); | |
2695 | } else { | |
2696 | Py_INCREF(Py_None); | |
2697 | _resultobj = Py_None; | |
2698 | } | |
2699 | { | |
2700 | delete [] _arg6; | |
2701 | } | |
2702 | return _resultobj; | |
2703 | } | |
2704 | ||
2705 | #define new_wxPreComboBox() (new wxComboBox()) | |
2706 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2707 | PyObject * _resultobj; | |
2708 | wxComboBox * _result; | |
2709 | char *_kwnames[] = { NULL }; | |
2710 | char _ptemp[128]; | |
2711 | ||
2712 | self = self; | |
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2714 | return NULL; | |
2715 | { | |
2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2717 | _result = (wxComboBox *)new_wxPreComboBox(); | |
2718 | ||
2719 | wxPyEndAllowThreads(__tstate); | |
2720 | if (PyErr_Occurred()) return NULL; | |
2721 | } if (_result) { | |
2722 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2723 | _resultobj = Py_BuildValue("s",_ptemp); | |
2724 | } else { | |
2725 | Py_INCREF(Py_None); | |
2726 | _resultobj = Py_None; | |
2727 | } | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
2731 | #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)) | |
2732 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject * _resultobj; | |
2734 | bool _result; | |
2735 | wxComboBox * _arg0; | |
2736 | wxWindow * _arg1; | |
2737 | wxWindowID _arg2; | |
2738 | char * _arg3 = (char *) ""; | |
2739 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2740 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2741 | int _arg6 = (int ) 0; | |
2742 | wxString * _arg7 = (wxString *) NULL; | |
2743 | long _arg8 = (long ) 0; | |
2744 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2745 | char * _arg10 = (char *) "comboBox"; | |
2746 | PyObject * _argo0 = 0; | |
2747 | PyObject * _argo1 = 0; | |
2748 | wxPoint temp; | |
2749 | PyObject * _obj4 = 0; | |
2750 | wxSize temp0; | |
2751 | PyObject * _obj5 = 0; | |
2752 | PyObject * _obj7 = 0; | |
2753 | PyObject * _argo9 = 0; | |
2754 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2755 | ||
2756 | self = self; | |
2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOOlOs:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_arg10)) | |
2758 | return NULL; | |
2759 | if (_argo0) { | |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | if (_argo1) { | |
2767 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
2773 | if (_obj4) | |
2774 | { | |
2775 | _arg4 = &temp; | |
2776 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2777 | return NULL; | |
2778 | } | |
2779 | if (_obj5) | |
2780 | { | |
2781 | _arg5 = &temp0; | |
2782 | if (! wxSize_helper(_obj5, &_arg5)) | |
2783 | return NULL; | |
2784 | } | |
2785 | if (_obj7) | |
2786 | { | |
2787 | _arg7 = wxString_LIST_helper(_obj7); | |
2788 | if (_arg7 == NULL) { | |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | if (_argo9) { | |
2793 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2794 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2796 | return NULL; | |
2797 | } | |
2798 | } | |
2799 | { | |
2800 | if (_obj7) { | |
2801 | _arg6 = PyList_Size(_obj7); | |
2802 | } | |
2803 | else { | |
2804 | _arg6 = 0; | |
2805 | } | |
2806 | } | |
2807 | { | |
2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2809 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
2810 | ||
2811 | wxPyEndAllowThreads(__tstate); | |
2812 | if (PyErr_Occurred()) return NULL; | |
2813 | } _resultobj = Py_BuildValue("i",_result); | |
2814 | { | |
2815 | delete [] _arg7; | |
2816 | } | |
2817 | return _resultobj; | |
2818 | } | |
2819 | ||
2820 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
2821 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2822 | PyObject * _resultobj; | |
2823 | wxComboBox * _arg0; | |
2824 | PyObject * _argo0 = 0; | |
2825 | char *_kwnames[] = { "self", NULL }; | |
2826 | ||
2827 | self = self; | |
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) | |
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_Copy. Expected _wxComboBox_p."); | |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
2837 | { | |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | wxComboBox_Copy(_arg0); | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) return NULL; | |
2843 | } Py_INCREF(Py_None); | |
2844 | _resultobj = Py_None; | |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
2848 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
2849 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject * _resultobj; | |
2851 | wxComboBox * _arg0; | |
2852 | PyObject * _argo0 = 0; | |
2853 | char *_kwnames[] = { "self", NULL }; | |
2854 | ||
2855 | self = self; | |
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) | |
2857 | return NULL; | |
2858 | if (_argo0) { | |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); | |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
2865 | { | |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | wxComboBox_Cut(_arg0); | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) return NULL; | |
2871 | } Py_INCREF(Py_None); | |
2872 | _resultobj = Py_None; | |
2873 | return _resultobj; | |
2874 | } | |
2875 | ||
2876 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
2877 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2878 | PyObject * _resultobj; | |
2879 | long _result; | |
2880 | wxComboBox * _arg0; | |
2881 | PyObject * _argo0 = 0; | |
2882 | char *_kwnames[] = { "self", NULL }; | |
2883 | ||
2884 | self = self; | |
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) | |
2886 | return NULL; | |
2887 | if (_argo0) { | |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); | |
2891 | return NULL; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2896 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
2899 | if (PyErr_Occurred()) return NULL; | |
2900 | } _resultobj = Py_BuildValue("l",_result); | |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
2904 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
2905 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject * _resultobj; | |
2907 | long _result; | |
2908 | wxComboBox * _arg0; | |
2909 | PyObject * _argo0 = 0; | |
2910 | char *_kwnames[] = { "self", NULL }; | |
2911 | ||
2912 | self = self; | |
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) | |
2914 | return NULL; | |
2915 | if (_argo0) { | |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); | |
2919 | return NULL; | |
2920 | } | |
2921 | } | |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) return NULL; | |
2928 | } _resultobj = Py_BuildValue("l",_result); | |
2929 | return _resultobj; | |
2930 | } | |
2931 | ||
2932 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2933 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2934 | PyObject * _resultobj; | |
2935 | wxString * _result; | |
2936 | wxComboBox * _arg0; | |
2937 | PyObject * _argo0 = 0; | |
2938 | char *_kwnames[] = { "self", NULL }; | |
2939 | ||
2940 | self = self; | |
2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) | |
2942 | return NULL; | |
2943 | if (_argo0) { | |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); | |
2947 | return NULL; | |
2948 | } | |
2949 | } | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) return NULL; | |
2956 | }{ | |
2957 | #if wxUSE_UNICODE | |
2958 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2959 | #else | |
2960 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2961 | #endif | |
2962 | } | |
2963 | { | |
2964 | delete _result; | |
2965 | } | |
2966 | return _resultobj; | |
2967 | } | |
2968 | ||
2969 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
2970 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2971 | PyObject * _resultobj; | |
2972 | wxComboBox * _arg0; | |
2973 | PyObject * _argo0 = 0; | |
2974 | char *_kwnames[] = { "self", NULL }; | |
2975 | ||
2976 | self = self; | |
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) | |
2978 | return NULL; | |
2979 | if (_argo0) { | |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); | |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
2986 | { | |
2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2988 | wxComboBox_Paste(_arg0); | |
2989 | ||
2990 | wxPyEndAllowThreads(__tstate); | |
2991 | if (PyErr_Occurred()) return NULL; | |
2992 | } Py_INCREF(Py_None); | |
2993 | _resultobj = Py_None; | |
2994 | return _resultobj; | |
2995 | } | |
2996 | ||
2997 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
2998 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject * _resultobj; | |
3000 | wxComboBox * _arg0; | |
3001 | long _arg1; | |
3002 | long _arg2; | |
3003 | wxString * _arg3; | |
3004 | PyObject * _argo0 = 0; | |
3005 | PyObject * _obj3 = 0; | |
3006 | char *_kwnames[] = { "self","from","to","text", NULL }; | |
3007 | ||
3008 | self = self; | |
3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3010 | return NULL; | |
3011 | if (_argo0) { | |
3012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); | |
3015 | return NULL; | |
3016 | } | |
3017 | } | |
3018 | { | |
3019 | _arg3 = wxString_in_helper(_obj3); | |
3020 | if (_arg3 == NULL) | |
3021 | return NULL; | |
3022 | } | |
3023 | { | |
3024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3025 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
3026 | ||
3027 | wxPyEndAllowThreads(__tstate); | |
3028 | if (PyErr_Occurred()) return NULL; | |
3029 | } Py_INCREF(Py_None); | |
3030 | _resultobj = Py_None; | |
3031 | { | |
3032 | if (_obj3) | |
3033 | delete _arg3; | |
3034 | } | |
3035 | return _resultobj; | |
3036 | } | |
3037 | ||
3038 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
3039 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3040 | PyObject * _resultobj; | |
3041 | wxComboBox * _arg0; | |
3042 | long _arg1; | |
3043 | long _arg2; | |
3044 | PyObject * _argo0 = 0; | |
3045 | char *_kwnames[] = { "self","from","to", NULL }; | |
3046 | ||
3047 | self = self; | |
3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3049 | return NULL; | |
3050 | if (_argo0) { | |
3051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); | |
3054 | return NULL; | |
3055 | } | |
3056 | } | |
3057 | { | |
3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3059 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
3060 | ||
3061 | wxPyEndAllowThreads(__tstate); | |
3062 | if (PyErr_Occurred()) return NULL; | |
3063 | } Py_INCREF(Py_None); | |
3064 | _resultobj = Py_None; | |
3065 | return _resultobj; | |
3066 | } | |
3067 | ||
3068 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
3069 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3070 | PyObject * _resultobj; | |
3071 | wxComboBox * _arg0; | |
3072 | long _arg1; | |
3073 | PyObject * _argo0 = 0; | |
3074 | char *_kwnames[] = { "self","pos", NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
3078 | return NULL; | |
3079 | if (_argo0) { | |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); | |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) return NULL; | |
3092 | } Py_INCREF(Py_None); | |
3093 | _resultobj = Py_None; | |
3094 | return _resultobj; | |
3095 | } | |
3096 | ||
3097 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
3098 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3099 | PyObject * _resultobj; | |
3100 | wxComboBox * _arg0; | |
3101 | PyObject * _argo0 = 0; | |
3102 | char *_kwnames[] = { "self", NULL }; | |
3103 | ||
3104 | self = self; | |
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) | |
3106 | return NULL; | |
3107 | if (_argo0) { | |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); | |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
3114 | { | |
3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3116 | wxComboBox_SetInsertionPointEnd(_arg0); | |
3117 | ||
3118 | wxPyEndAllowThreads(__tstate); | |
3119 | if (PyErr_Occurred()) return NULL; | |
3120 | } Py_INCREF(Py_None); | |
3121 | _resultobj = Py_None; | |
3122 | return _resultobj; | |
3123 | } | |
3124 | ||
3125 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3126 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3127 | PyObject * _resultobj; | |
3128 | wxComboBox * _arg0; | |
3129 | int _arg1; | |
3130 | PyObject * _argo0 = 0; | |
3131 | char *_kwnames[] = { "self","n", NULL }; | |
3132 | ||
3133 | self = self; | |
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3135 | return NULL; | |
3136 | if (_argo0) { | |
3137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3140 | return NULL; | |
3141 | } | |
3142 | } | |
3143 | { | |
3144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3145 | wxComboBox_SetSelection(_arg0,_arg1); | |
3146 | ||
3147 | wxPyEndAllowThreads(__tstate); | |
3148 | if (PyErr_Occurred()) return NULL; | |
3149 | } Py_INCREF(Py_None); | |
3150 | _resultobj = Py_None; | |
3151 | return _resultobj; | |
3152 | } | |
3153 | ||
3154 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
3155 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3156 | PyObject * _resultobj; | |
3157 | wxComboBox * _arg0; | |
3158 | long _arg1; | |
3159 | long _arg2; | |
3160 | PyObject * _argo0 = 0; | |
3161 | char *_kwnames[] = { "self","from","to", NULL }; | |
3162 | ||
3163 | self = self; | |
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3165 | return NULL; | |
3166 | if (_argo0) { | |
3167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); | |
3170 | return NULL; | |
3171 | } | |
3172 | } | |
3173 | { | |
3174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3175 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
3176 | ||
3177 | wxPyEndAllowThreads(__tstate); | |
3178 | if (PyErr_Occurred()) return NULL; | |
3179 | } Py_INCREF(Py_None); | |
3180 | _resultobj = Py_None; | |
3181 | return _resultobj; | |
3182 | } | |
3183 | ||
3184 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3185 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3186 | PyObject * _resultobj; | |
3187 | wxComboBox * _arg0; | |
3188 | wxString * _arg1; | |
3189 | PyObject * _argo0 = 0; | |
3190 | PyObject * _obj1 = 0; | |
3191 | char *_kwnames[] = { "self","text", NULL }; | |
3192 | ||
3193 | self = self; | |
3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) | |
3195 | return NULL; | |
3196 | if (_argo0) { | |
3197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); | |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
3203 | { | |
3204 | _arg1 = wxString_in_helper(_obj1); | |
3205 | if (_arg1 == NULL) | |
3206 | return NULL; | |
3207 | } | |
3208 | { | |
3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3210 | wxComboBox_SetValue(_arg0,*_arg1); | |
3211 | ||
3212 | wxPyEndAllowThreads(__tstate); | |
3213 | if (PyErr_Occurred()) return NULL; | |
3214 | } Py_INCREF(Py_None); | |
3215 | _resultobj = Py_None; | |
3216 | { | |
3217 | if (_obj1) | |
3218 | delete _arg1; | |
3219 | } | |
3220 | return _resultobj; | |
3221 | } | |
3222 | ||
3223 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
3224 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject * _resultobj; | |
3226 | wxComboBox * _arg0; | |
3227 | bool _arg1; | |
3228 | PyObject * _argo0 = 0; | |
3229 | int tempbool1; | |
3230 | char *_kwnames[] = { "self","editable", NULL }; | |
3231 | ||
3232 | self = self; | |
3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3234 | return NULL; | |
3235 | if (_argo0) { | |
3236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
3242 | _arg1 = (bool ) tempbool1; | |
3243 | { | |
3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3245 | wxComboBox_SetEditable(_arg0,_arg1); | |
3246 | ||
3247 | wxPyEndAllowThreads(__tstate); | |
3248 | if (PyErr_Occurred()) return NULL; | |
3249 | } Py_INCREF(Py_None); | |
3250 | _resultobj = Py_None; | |
3251 | return _resultobj; | |
3252 | } | |
3253 | ||
3254 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
3255 | wxGauge *src; | |
3256 | wxControl *dest; | |
3257 | src = (wxGauge *) ptr; | |
3258 | dest = (wxControl *) src; | |
3259 | return (void *) dest; | |
3260 | } | |
3261 | ||
3262 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3263 | wxGauge *src; | |
3264 | wxWindow *dest; | |
3265 | src = (wxGauge *) ptr; | |
3266 | dest = (wxWindow *) src; | |
3267 | return (void *) dest; | |
3268 | } | |
3269 | ||
3270 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3271 | wxGauge *src; | |
3272 | wxEvtHandler *dest; | |
3273 | src = (wxGauge *) ptr; | |
3274 | dest = (wxEvtHandler *) src; | |
3275 | return (void *) dest; | |
3276 | } | |
3277 | ||
3278 | static void *SwigwxGaugeTowxObject(void *ptr) { | |
3279 | wxGauge *src; | |
3280 | wxObject *dest; | |
3281 | src = (wxGauge *) ptr; | |
3282 | dest = (wxObject *) src; | |
3283 | return (void *) dest; | |
3284 | } | |
3285 | ||
3286 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3287 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3288 | PyObject * _resultobj; | |
3289 | wxGauge * _result; | |
3290 | wxWindow * _arg0; | |
3291 | wxWindowID _arg1; | |
3292 | int _arg2; | |
3293 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3294 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3295 | long _arg5 = (long ) wxGA_HORIZONTAL; | |
3296 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3297 | char * _arg7 = (char *) "gauge"; | |
3298 | PyObject * _argo0 = 0; | |
3299 | wxPoint temp; | |
3300 | PyObject * _obj3 = 0; | |
3301 | wxSize temp0; | |
3302 | PyObject * _obj4 = 0; | |
3303 | PyObject * _argo6 = 0; | |
3304 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; | |
3305 | char _ptemp[128]; | |
3306 | ||
3307 | self = self; | |
3308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOs:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3309 | return NULL; | |
3310 | if (_argo0) { | |
3311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); | |
3314 | return NULL; | |
3315 | } | |
3316 | } | |
3317 | if (_obj3) | |
3318 | { | |
3319 | _arg3 = &temp; | |
3320 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3321 | return NULL; | |
3322 | } | |
3323 | if (_obj4) | |
3324 | { | |
3325 | _arg4 = &temp0; | |
3326 | if (! wxSize_helper(_obj4, &_arg4)) | |
3327 | return NULL; | |
3328 | } | |
3329 | if (_argo6) { | |
3330 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3331 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); | |
3333 | return NULL; | |
3334 | } | |
3335 | } | |
3336 | { | |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) return NULL; | |
3342 | } if (_result) { | |
3343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3344 | _resultobj = Py_BuildValue("s",_ptemp); | |
3345 | } else { | |
3346 | Py_INCREF(Py_None); | |
3347 | _resultobj = Py_None; | |
3348 | } | |
3349 | return _resultobj; | |
3350 | } | |
3351 | ||
3352 | #define new_wxPreGauge() (new wxGauge()) | |
3353 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject * _resultobj; | |
3355 | wxGauge * _result; | |
3356 | char *_kwnames[] = { NULL }; | |
3357 | char _ptemp[128]; | |
3358 | ||
3359 | self = self; | |
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3361 | return NULL; | |
3362 | { | |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | _result = (wxGauge *)new_wxPreGauge(); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) return NULL; | |
3368 | } if (_result) { | |
3369 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3370 | _resultobj = Py_BuildValue("s",_ptemp); | |
3371 | } else { | |
3372 | Py_INCREF(Py_None); | |
3373 | _resultobj = Py_None; | |
3374 | } | |
3375 | return _resultobj; | |
3376 | } | |
3377 | ||
3378 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3379 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject * _resultobj; | |
3381 | bool _result; | |
3382 | wxGauge * _arg0; | |
3383 | wxWindow * _arg1; | |
3384 | wxWindowID _arg2; | |
3385 | int _arg3; | |
3386 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3387 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3388 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3389 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3390 | char * _arg8 = (char *) "gauge"; | |
3391 | PyObject * _argo0 = 0; | |
3392 | PyObject * _argo1 = 0; | |
3393 | wxPoint temp; | |
3394 | PyObject * _obj4 = 0; | |
3395 | wxSize temp0; | |
3396 | PyObject * _obj5 = 0; | |
3397 | PyObject * _argo7 = 0; | |
3398 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOs:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | if (_argo1) { | |
3411 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3412 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3414 | return NULL; | |
3415 | } | |
3416 | } | |
3417 | if (_obj4) | |
3418 | { | |
3419 | _arg4 = &temp; | |
3420 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3421 | return NULL; | |
3422 | } | |
3423 | if (_obj5) | |
3424 | { | |
3425 | _arg5 = &temp0; | |
3426 | if (! wxSize_helper(_obj5, &_arg5)) | |
3427 | return NULL; | |
3428 | } | |
3429 | if (_argo7) { | |
3430 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | { | |
3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3438 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
3439 | ||
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) return NULL; | |
3442 | } _resultobj = Py_BuildValue("i",_result); | |
3443 | return _resultobj; | |
3444 | } | |
3445 | ||
3446 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
3447 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3448 | PyObject * _resultobj; | |
3449 | int _result; | |
3450 | wxGauge * _arg0; | |
3451 | PyObject * _argo0 = 0; | |
3452 | char *_kwnames[] = { "self", NULL }; | |
3453 | ||
3454 | self = self; | |
3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) | |
3456 | return NULL; | |
3457 | if (_argo0) { | |
3458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); | |
3461 | return NULL; | |
3462 | } | |
3463 | } | |
3464 | { | |
3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3466 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
3467 | ||
3468 | wxPyEndAllowThreads(__tstate); | |
3469 | if (PyErr_Occurred()) return NULL; | |
3470 | } _resultobj = Py_BuildValue("i",_result); | |
3471 | return _resultobj; | |
3472 | } | |
3473 | ||
3474 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
3475 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3476 | PyObject * _resultobj; | |
3477 | int _result; | |
3478 | wxGauge * _arg0; | |
3479 | PyObject * _argo0 = 0; | |
3480 | char *_kwnames[] = { "self", NULL }; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3494 | _result = (int )wxGauge_GetRange(_arg0); | |
3495 | ||
3496 | wxPyEndAllowThreads(__tstate); | |
3497 | if (PyErr_Occurred()) return NULL; | |
3498 | } _resultobj = Py_BuildValue("i",_result); | |
3499 | return _resultobj; | |
3500 | } | |
3501 | ||
3502 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
3503 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject * _resultobj; | |
3505 | int _result; | |
3506 | wxGauge * _arg0; | |
3507 | PyObject * _argo0 = 0; | |
3508 | char *_kwnames[] = { "self", NULL }; | |
3509 | ||
3510 | self = self; | |
3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) | |
3512 | return NULL; | |
3513 | if (_argo0) { | |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); | |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
3520 | { | |
3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3522 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
3523 | ||
3524 | wxPyEndAllowThreads(__tstate); | |
3525 | if (PyErr_Occurred()) return NULL; | |
3526 | } _resultobj = Py_BuildValue("i",_result); | |
3527 | return _resultobj; | |
3528 | } | |
3529 | ||
3530 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
3531 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3532 | PyObject * _resultobj; | |
3533 | int _result; | |
3534 | wxGauge * _arg0; | |
3535 | PyObject * _argo0 = 0; | |
3536 | char *_kwnames[] = { "self", NULL }; | |
3537 | ||
3538 | self = self; | |
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) | |
3540 | return NULL; | |
3541 | if (_argo0) { | |
3542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); | |
3545 | return NULL; | |
3546 | } | |
3547 | } | |
3548 | { | |
3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3550 | _result = (int )wxGauge_GetValue(_arg0); | |
3551 | ||
3552 | wxPyEndAllowThreads(__tstate); | |
3553 | if (PyErr_Occurred()) return NULL; | |
3554 | } _resultobj = Py_BuildValue("i",_result); | |
3555 | return _resultobj; | |
3556 | } | |
3557 | ||
3558 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
3559 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3560 | PyObject * _resultobj; | |
3561 | wxGauge * _arg0; | |
3562 | int _arg1; | |
3563 | PyObject * _argo0 = 0; | |
3564 | char *_kwnames[] = { "self","width", NULL }; | |
3565 | ||
3566 | self = self; | |
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) | |
3568 | return NULL; | |
3569 | if (_argo0) { | |
3570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); | |
3573 | return NULL; | |
3574 | } | |
3575 | } | |
3576 | { | |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | wxGauge_SetBezelFace(_arg0,_arg1); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) return NULL; | |
3582 | } Py_INCREF(Py_None); | |
3583 | _resultobj = Py_None; | |
3584 | return _resultobj; | |
3585 | } | |
3586 | ||
3587 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
3588 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3589 | PyObject * _resultobj; | |
3590 | wxGauge * _arg0; | |
3591 | int _arg1; | |
3592 | PyObject * _argo0 = 0; | |
3593 | char *_kwnames[] = { "self","range", NULL }; | |
3594 | ||
3595 | self = self; | |
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) | |
3597 | return NULL; | |
3598 | if (_argo0) { | |
3599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); | |
3602 | return NULL; | |
3603 | } | |
3604 | } | |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | wxGauge_SetRange(_arg0,_arg1); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) return NULL; | |
3611 | } Py_INCREF(Py_None); | |
3612 | _resultobj = Py_None; | |
3613 | return _resultobj; | |
3614 | } | |
3615 | ||
3616 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
3617 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3618 | PyObject * _resultobj; | |
3619 | wxGauge * _arg0; | |
3620 | int _arg1; | |
3621 | PyObject * _argo0 = 0; | |
3622 | char *_kwnames[] = { "self","width", NULL }; | |
3623 | ||
3624 | self = self; | |
3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) | |
3626 | return NULL; | |
3627 | if (_argo0) { | |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); | |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) return NULL; | |
3640 | } Py_INCREF(Py_None); | |
3641 | _resultobj = Py_None; | |
3642 | return _resultobj; | |
3643 | } | |
3644 | ||
3645 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3646 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3647 | PyObject * _resultobj; | |
3648 | wxGauge * _arg0; | |
3649 | int _arg1; | |
3650 | PyObject * _argo0 = 0; | |
3651 | char *_kwnames[] = { "self","pos", NULL }; | |
3652 | ||
3653 | self = self; | |
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) | |
3655 | return NULL; | |
3656 | if (_argo0) { | |
3657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); | |
3660 | return NULL; | |
3661 | } | |
3662 | } | |
3663 | { | |
3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3665 | wxGauge_SetValue(_arg0,_arg1); | |
3666 | ||
3667 | wxPyEndAllowThreads(__tstate); | |
3668 | if (PyErr_Occurred()) return NULL; | |
3669 | } Py_INCREF(Py_None); | |
3670 | _resultobj = Py_None; | |
3671 | return _resultobj; | |
3672 | } | |
3673 | ||
3674 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
3675 | wxStaticBox *src; | |
3676 | wxControl *dest; | |
3677 | src = (wxStaticBox *) ptr; | |
3678 | dest = (wxControl *) src; | |
3679 | return (void *) dest; | |
3680 | } | |
3681 | ||
3682 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
3683 | wxStaticBox *src; | |
3684 | wxWindow *dest; | |
3685 | src = (wxStaticBox *) ptr; | |
3686 | dest = (wxWindow *) src; | |
3687 | return (void *) dest; | |
3688 | } | |
3689 | ||
3690 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
3691 | wxStaticBox *src; | |
3692 | wxEvtHandler *dest; | |
3693 | src = (wxStaticBox *) ptr; | |
3694 | dest = (wxEvtHandler *) src; | |
3695 | return (void *) dest; | |
3696 | } | |
3697 | ||
3698 | static void *SwigwxStaticBoxTowxObject(void *ptr) { | |
3699 | wxStaticBox *src; | |
3700 | wxObject *dest; | |
3701 | src = (wxStaticBox *) ptr; | |
3702 | dest = (wxObject *) src; | |
3703 | return (void *) dest; | |
3704 | } | |
3705 | ||
3706 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3707 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject * _resultobj; | |
3709 | wxStaticBox * _result; | |
3710 | wxWindow * _arg0; | |
3711 | wxWindowID _arg1; | |
3712 | wxString * _arg2; | |
3713 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3714 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3715 | long _arg5 = (long ) 0; | |
3716 | char * _arg6 = (char *) "staticBox"; | |
3717 | PyObject * _argo0 = 0; | |
3718 | PyObject * _obj2 = 0; | |
3719 | wxPoint temp; | |
3720 | PyObject * _obj3 = 0; | |
3721 | wxSize temp0; | |
3722 | PyObject * _obj4 = 0; | |
3723 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
3724 | char _ptemp[128]; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
3737 | _arg2 = wxString_in_helper(_obj2); | |
3738 | if (_arg2 == NULL) | |
3739 | return NULL; | |
3740 | } | |
3741 | if (_obj3) | |
3742 | { | |
3743 | _arg3 = &temp; | |
3744 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3745 | return NULL; | |
3746 | } | |
3747 | if (_obj4) | |
3748 | { | |
3749 | _arg4 = &temp0; | |
3750 | if (! wxSize_helper(_obj4, &_arg4)) | |
3751 | return NULL; | |
3752 | } | |
3753 | { | |
3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3755 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
3756 | ||
3757 | wxPyEndAllowThreads(__tstate); | |
3758 | if (PyErr_Occurred()) return NULL; | |
3759 | } if (_result) { | |
3760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3761 | _resultobj = Py_BuildValue("s",_ptemp); | |
3762 | } else { | |
3763 | Py_INCREF(Py_None); | |
3764 | _resultobj = Py_None; | |
3765 | } | |
3766 | { | |
3767 | if (_obj2) | |
3768 | delete _arg2; | |
3769 | } | |
3770 | return _resultobj; | |
3771 | } | |
3772 | ||
3773 | #define new_wxPreStaticBox() (new wxStaticBox()) | |
3774 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3775 | PyObject * _resultobj; | |
3776 | wxStaticBox * _result; | |
3777 | char *_kwnames[] = { NULL }; | |
3778 | char _ptemp[128]; | |
3779 | ||
3780 | self = self; | |
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
3782 | return NULL; | |
3783 | { | |
3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3785 | _result = (wxStaticBox *)new_wxPreStaticBox(); | |
3786 | ||
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) return NULL; | |
3789 | } if (_result) { | |
3790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
3791 | _resultobj = Py_BuildValue("s",_ptemp); | |
3792 | } else { | |
3793 | Py_INCREF(Py_None); | |
3794 | _resultobj = Py_None; | |
3795 | } | |
3796 | return _resultobj; | |
3797 | } | |
3798 | ||
3799 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3800 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject * _resultobj; | |
3802 | bool _result; | |
3803 | wxStaticBox * _arg0; | |
3804 | wxWindow * _arg1; | |
3805 | wxWindowID _arg2; | |
3806 | wxString * _arg3; | |
3807 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3808 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3809 | long _arg6 = (long ) 0; | |
3810 | char * _arg7 = (char *) "staticBox"; | |
3811 | PyObject * _argo0 = 0; | |
3812 | PyObject * _argo1 = 0; | |
3813 | PyObject * _obj3 = 0; | |
3814 | wxPoint temp; | |
3815 | PyObject * _obj4 = 0; | |
3816 | wxSize temp0; | |
3817 | PyObject * _obj5 = 0; | |
3818 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
3819 | ||
3820 | self = self; | |
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
3822 | return NULL; | |
3823 | if (_argo0) { | |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
3830 | if (_argo1) { | |
3831 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
3838 | _arg3 = wxString_in_helper(_obj3); | |
3839 | if (_arg3 == NULL) | |
3840 | return NULL; | |
3841 | } | |
3842 | if (_obj4) | |
3843 | { | |
3844 | _arg4 = &temp; | |
3845 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3846 | return NULL; | |
3847 | } | |
3848 | if (_obj5) | |
3849 | { | |
3850 | _arg5 = &temp0; | |
3851 | if (! wxSize_helper(_obj5, &_arg5)) | |
3852 | return NULL; | |
3853 | } | |
3854 | { | |
3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3856 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
3857 | ||
3858 | wxPyEndAllowThreads(__tstate); | |
3859 | if (PyErr_Occurred()) return NULL; | |
3860 | } _resultobj = Py_BuildValue("i",_result); | |
3861 | { | |
3862 | if (_obj3) | |
3863 | delete _arg3; | |
3864 | } | |
3865 | return _resultobj; | |
3866 | } | |
3867 | ||
3868 | static void *SwigwxStaticLineTowxControl(void *ptr) { | |
3869 | wxStaticLine *src; | |
3870 | wxControl *dest; | |
3871 | src = (wxStaticLine *) ptr; | |
3872 | dest = (wxControl *) src; | |
3873 | return (void *) dest; | |
3874 | } | |
3875 | ||
3876 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
3877 | wxStaticLine *src; | |
3878 | wxWindow *dest; | |
3879 | src = (wxStaticLine *) ptr; | |
3880 | dest = (wxWindow *) src; | |
3881 | return (void *) dest; | |
3882 | } | |
3883 | ||
3884 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
3885 | wxStaticLine *src; | |
3886 | wxEvtHandler *dest; | |
3887 | src = (wxStaticLine *) ptr; | |
3888 | dest = (wxEvtHandler *) src; | |
3889 | return (void *) dest; | |
3890 | } | |
3891 | ||
3892 | static void *SwigwxStaticLineTowxObject(void *ptr) { | |
3893 | wxStaticLine *src; | |
3894 | wxObject *dest; | |
3895 | src = (wxStaticLine *) ptr; | |
3896 | dest = (wxObject *) src; | |
3897 | return (void *) dest; | |
3898 | } | |
3899 | ||
3900 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3901 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3902 | PyObject * _resultobj; | |
3903 | wxStaticLine * _result; | |
3904 | wxWindow * _arg0; | |
3905 | wxWindowID _arg1; | |
3906 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
3907 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
3908 | long _arg4 = (long ) wxLI_HORIZONTAL; | |
3909 | char * _arg5 = (char *) "staticLine"; | |
3910 | PyObject * _argo0 = 0; | |
3911 | wxPoint temp; | |
3912 | PyObject * _obj2 = 0; | |
3913 | wxSize temp0; | |
3914 | PyObject * _obj3 = 0; | |
3915 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
3916 | char _ptemp[128]; | |
3917 | ||
3918 | self = self; | |
3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
3920 | return NULL; | |
3921 | if (_argo0) { | |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); | |
3925 | return NULL; | |
3926 | } | |
3927 | } | |
3928 | if (_obj2) | |
3929 | { | |
3930 | _arg2 = &temp; | |
3931 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3932 | return NULL; | |
3933 | } | |
3934 | if (_obj3) | |
3935 | { | |
3936 | _arg3 = &temp0; | |
3937 | if (! wxSize_helper(_obj3, &_arg3)) | |
3938 | return NULL; | |
3939 | } | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) return NULL; | |
3946 | } if (_result) { | |
3947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3948 | _resultobj = Py_BuildValue("s",_ptemp); | |
3949 | } else { | |
3950 | Py_INCREF(Py_None); | |
3951 | _resultobj = Py_None; | |
3952 | } | |
3953 | return _resultobj; | |
3954 | } | |
3955 | ||
3956 | #define new_wxPreStaticLine() (new wxStaticLine()) | |
3957 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject * _resultobj; | |
3959 | wxStaticLine * _result; | |
3960 | char *_kwnames[] = { NULL }; | |
3961 | char _ptemp[128]; | |
3962 | ||
3963 | self = self; | |
3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
3965 | return NULL; | |
3966 | { | |
3967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3968 | _result = (wxStaticLine *)new_wxPreStaticLine(); | |
3969 | ||
3970 | wxPyEndAllowThreads(__tstate); | |
3971 | if (PyErr_Occurred()) return NULL; | |
3972 | } if (_result) { | |
3973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
3974 | _resultobj = Py_BuildValue("s",_ptemp); | |
3975 | } else { | |
3976 | Py_INCREF(Py_None); | |
3977 | _resultobj = Py_None; | |
3978 | } | |
3979 | return _resultobj; | |
3980 | } | |
3981 | ||
3982 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3983 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject * _resultobj; | |
3985 | bool _result; | |
3986 | wxStaticLine * _arg0; | |
3987 | wxWindow * _arg1; | |
3988 | wxWindowID _arg2; | |
3989 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3990 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3991 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
3992 | char * _arg6 = (char *) "staticLine"; | |
3993 | PyObject * _argo0 = 0; | |
3994 | PyObject * _argo1 = 0; | |
3995 | wxPoint temp; | |
3996 | PyObject * _obj3 = 0; | |
3997 | wxSize temp0; | |
3998 | PyObject * _obj4 = 0; | |
3999 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4000 | ||
4001 | self = self; | |
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4003 | return NULL; | |
4004 | if (_argo0) { | |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4008 | return NULL; | |
4009 | } | |
4010 | } | |
4011 | if (_argo1) { | |
4012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4015 | return NULL; | |
4016 | } | |
4017 | } | |
4018 | if (_obj3) | |
4019 | { | |
4020 | _arg3 = &temp; | |
4021 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4022 | return NULL; | |
4023 | } | |
4024 | if (_obj4) | |
4025 | { | |
4026 | _arg4 = &temp0; | |
4027 | if (! wxSize_helper(_obj4, &_arg4)) | |
4028 | return NULL; | |
4029 | } | |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) return NULL; | |
4036 | } _resultobj = Py_BuildValue("i",_result); | |
4037 | return _resultobj; | |
4038 | } | |
4039 | ||
4040 | static void *SwigwxStaticTextTowxControl(void *ptr) { | |
4041 | wxStaticText *src; | |
4042 | wxControl *dest; | |
4043 | src = (wxStaticText *) ptr; | |
4044 | dest = (wxControl *) src; | |
4045 | return (void *) dest; | |
4046 | } | |
4047 | ||
4048 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4049 | wxStaticText *src; | |
4050 | wxWindow *dest; | |
4051 | src = (wxStaticText *) ptr; | |
4052 | dest = (wxWindow *) src; | |
4053 | return (void *) dest; | |
4054 | } | |
4055 | ||
4056 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4057 | wxStaticText *src; | |
4058 | wxEvtHandler *dest; | |
4059 | src = (wxStaticText *) ptr; | |
4060 | dest = (wxEvtHandler *) src; | |
4061 | return (void *) dest; | |
4062 | } | |
4063 | ||
4064 | static void *SwigwxStaticTextTowxObject(void *ptr) { | |
4065 | wxStaticText *src; | |
4066 | wxObject *dest; | |
4067 | src = (wxStaticText *) ptr; | |
4068 | dest = (wxObject *) src; | |
4069 | return (void *) dest; | |
4070 | } | |
4071 | ||
4072 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4073 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject * _resultobj; | |
4075 | wxStaticText * _result; | |
4076 | wxWindow * _arg0; | |
4077 | wxWindowID _arg1; | |
4078 | wxString * _arg2; | |
4079 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4080 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4081 | long _arg5 = (long ) 0; | |
4082 | char * _arg6 = (char *) "staticText"; | |
4083 | PyObject * _argo0 = 0; | |
4084 | PyObject * _obj2 = 0; | |
4085 | wxPoint temp; | |
4086 | PyObject * _obj3 = 0; | |
4087 | wxSize temp0; | |
4088 | PyObject * _obj4 = 0; | |
4089 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4090 | char _ptemp[128]; | |
4091 | ||
4092 | self = self; | |
4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4094 | return NULL; | |
4095 | if (_argo0) { | |
4096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); | |
4099 | return NULL; | |
4100 | } | |
4101 | } | |
4102 | { | |
4103 | _arg2 = wxString_in_helper(_obj2); | |
4104 | if (_arg2 == NULL) | |
4105 | return NULL; | |
4106 | } | |
4107 | if (_obj3) | |
4108 | { | |
4109 | _arg3 = &temp; | |
4110 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4111 | return NULL; | |
4112 | } | |
4113 | if (_obj4) | |
4114 | { | |
4115 | _arg4 = &temp0; | |
4116 | if (! wxSize_helper(_obj4, &_arg4)) | |
4117 | return NULL; | |
4118 | } | |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) return NULL; | |
4125 | } if (_result) { | |
4126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4127 | _resultobj = Py_BuildValue("s",_ptemp); | |
4128 | } else { | |
4129 | Py_INCREF(Py_None); | |
4130 | _resultobj = Py_None; | |
4131 | } | |
4132 | { | |
4133 | if (_obj2) | |
4134 | delete _arg2; | |
4135 | } | |
4136 | return _resultobj; | |
4137 | } | |
4138 | ||
4139 | #define new_wxPreStaticText() (new wxStaticText()) | |
4140 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4141 | PyObject * _resultobj; | |
4142 | wxStaticText * _result; | |
4143 | char *_kwnames[] = { NULL }; | |
4144 | char _ptemp[128]; | |
4145 | ||
4146 | self = self; | |
4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4148 | return NULL; | |
4149 | { | |
4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4151 | _result = (wxStaticText *)new_wxPreStaticText(); | |
4152 | ||
4153 | wxPyEndAllowThreads(__tstate); | |
4154 | if (PyErr_Occurred()) return NULL; | |
4155 | } if (_result) { | |
4156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4157 | _resultobj = Py_BuildValue("s",_ptemp); | |
4158 | } else { | |
4159 | Py_INCREF(Py_None); | |
4160 | _resultobj = Py_None; | |
4161 | } | |
4162 | return _resultobj; | |
4163 | } | |
4164 | ||
4165 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4166 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject * _resultobj; | |
4168 | bool _result; | |
4169 | wxStaticText * _arg0; | |
4170 | wxWindow * _arg1; | |
4171 | wxWindowID _arg2; | |
4172 | wxString * _arg3; | |
4173 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4174 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4175 | long _arg6 = (long ) 0; | |
4176 | char * _arg7 = (char *) "staticText"; | |
4177 | PyObject * _argo0 = 0; | |
4178 | PyObject * _argo1 = 0; | |
4179 | PyObject * _obj3 = 0; | |
4180 | wxPoint temp; | |
4181 | PyObject * _obj4 = 0; | |
4182 | wxSize temp0; | |
4183 | PyObject * _obj5 = 0; | |
4184 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4185 | ||
4186 | self = self; | |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
4188 | return NULL; | |
4189 | if (_argo0) { | |
4190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4193 | return NULL; | |
4194 | } | |
4195 | } | |
4196 | if (_argo1) { | |
4197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4200 | return NULL; | |
4201 | } | |
4202 | } | |
4203 | { | |
4204 | _arg3 = wxString_in_helper(_obj3); | |
4205 | if (_arg3 == NULL) | |
4206 | return NULL; | |
4207 | } | |
4208 | if (_obj4) | |
4209 | { | |
4210 | _arg4 = &temp; | |
4211 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4212 | return NULL; | |
4213 | } | |
4214 | if (_obj5) | |
4215 | { | |
4216 | _arg5 = &temp0; | |
4217 | if (! wxSize_helper(_obj5, &_arg5)) | |
4218 | return NULL; | |
4219 | } | |
4220 | { | |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4222 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) return NULL; | |
4226 | } _resultobj = Py_BuildValue("i",_result); | |
4227 | { | |
4228 | if (_obj3) | |
4229 | delete _arg3; | |
4230 | } | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
4234 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
4235 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject * _resultobj; | |
4237 | wxString * _result; | |
4238 | wxStaticText * _arg0; | |
4239 | PyObject * _argo0 = 0; | |
4240 | char *_kwnames[] = { "self", NULL }; | |
4241 | ||
4242 | self = self; | |
4243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) | |
4244 | return NULL; | |
4245 | if (_argo0) { | |
4246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); | |
4249 | return NULL; | |
4250 | } | |
4251 | } | |
4252 | { | |
4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4254 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
4255 | ||
4256 | wxPyEndAllowThreads(__tstate); | |
4257 | if (PyErr_Occurred()) return NULL; | |
4258 | }{ | |
4259 | #if wxUSE_UNICODE | |
4260 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4261 | #else | |
4262 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4263 | #endif | |
4264 | } | |
4265 | { | |
4266 | delete _result; | |
4267 | } | |
4268 | return _resultobj; | |
4269 | } | |
4270 | ||
4271 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
4272 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject * _resultobj; | |
4274 | wxStaticText * _arg0; | |
4275 | wxString * _arg1; | |
4276 | PyObject * _argo0 = 0; | |
4277 | PyObject * _obj1 = 0; | |
4278 | char *_kwnames[] = { "self","label", NULL }; | |
4279 | ||
4280 | self = self; | |
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) | |
4282 | return NULL; | |
4283 | if (_argo0) { | |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); | |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
4290 | { | |
4291 | _arg1 = wxString_in_helper(_obj1); | |
4292 | if (_arg1 == NULL) | |
4293 | return NULL; | |
4294 | } | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | wxStaticText_SetLabel(_arg0,*_arg1); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) return NULL; | |
4301 | } Py_INCREF(Py_None); | |
4302 | _resultobj = Py_None; | |
4303 | { | |
4304 | if (_obj1) | |
4305 | delete _arg1; | |
4306 | } | |
4307 | return _resultobj; | |
4308 | } | |
4309 | ||
4310 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { | |
4311 | wxListBox *src; | |
4312 | wxControlWithItems *dest; | |
4313 | src = (wxListBox *) ptr; | |
4314 | dest = (wxControlWithItems *) src; | |
4315 | return (void *) dest; | |
4316 | } | |
4317 | ||
4318 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
4319 | wxListBox *src; | |
4320 | wxControl *dest; | |
4321 | src = (wxListBox *) ptr; | |
4322 | dest = (wxControl *) src; | |
4323 | return (void *) dest; | |
4324 | } | |
4325 | ||
4326 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4327 | wxListBox *src; | |
4328 | wxWindow *dest; | |
4329 | src = (wxListBox *) ptr; | |
4330 | dest = (wxWindow *) src; | |
4331 | return (void *) dest; | |
4332 | } | |
4333 | ||
4334 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4335 | wxListBox *src; | |
4336 | wxEvtHandler *dest; | |
4337 | src = (wxListBox *) ptr; | |
4338 | dest = (wxEvtHandler *) src; | |
4339 | return (void *) dest; | |
4340 | } | |
4341 | ||
4342 | static void *SwigwxListBoxTowxObject(void *ptr) { | |
4343 | wxListBox *src; | |
4344 | wxObject *dest; | |
4345 | src = (wxListBox *) ptr; | |
4346 | dest = (wxObject *) src; | |
4347 | return (void *) dest; | |
4348 | } | |
4349 | ||
4350 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4351 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4352 | PyObject * _resultobj; | |
4353 | wxListBox * _result; | |
4354 | wxWindow * _arg0; | |
4355 | wxWindowID _arg1; | |
4356 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4357 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4358 | int _arg4; | |
4359 | wxString * _arg5 = (wxString *) NULL; | |
4360 | long _arg6 = (long ) 0; | |
4361 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4362 | char * _arg8 = (char *) "listBox"; | |
4363 | PyObject * _argo0 = 0; | |
4364 | wxPoint temp; | |
4365 | PyObject * _obj2 = 0; | |
4366 | wxSize temp0; | |
4367 | PyObject * _obj3 = 0; | |
4368 | PyObject * _obj5 = 0; | |
4369 | PyObject * _argo7 = 0; | |
4370 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4371 | char _ptemp[128]; | |
4372 | ||
4373 | self = self; | |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
4375 | return NULL; | |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | if (_obj2) | |
4384 | { | |
4385 | _arg2 = &temp; | |
4386 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4387 | return NULL; | |
4388 | } | |
4389 | if (_obj3) | |
4390 | { | |
4391 | _arg3 = &temp0; | |
4392 | if (! wxSize_helper(_obj3, &_arg3)) | |
4393 | return NULL; | |
4394 | } | |
4395 | if (_obj5) | |
4396 | { | |
4397 | _arg5 = wxString_LIST_helper(_obj5); | |
4398 | if (_arg5 == NULL) { | |
4399 | return NULL; | |
4400 | } | |
4401 | } | |
4402 | if (_argo7) { | |
4403 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4404 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4406 | return NULL; | |
4407 | } | |
4408 | } | |
4409 | { | |
4410 | if (_obj5) { | |
4411 | _arg4 = PyList_Size(_obj5); | |
4412 | } | |
4413 | else { | |
4414 | _arg4 = 0; | |
4415 | } | |
4416 | } | |
4417 | { | |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
4420 | ||
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) return NULL; | |
4423 | } if (_result) { | |
4424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4425 | _resultobj = Py_BuildValue("s",_ptemp); | |
4426 | } else { | |
4427 | Py_INCREF(Py_None); | |
4428 | _resultobj = Py_None; | |
4429 | } | |
4430 | { | |
4431 | delete [] _arg5; | |
4432 | } | |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
4436 | #define new_wxPreListBox() (new wxListBox()) | |
4437 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject * _resultobj; | |
4439 | wxListBox * _result; | |
4440 | char *_kwnames[] = { NULL }; | |
4441 | char _ptemp[128]; | |
4442 | ||
4443 | self = self; | |
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4445 | return NULL; | |
4446 | { | |
4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4448 | _result = (wxListBox *)new_wxPreListBox(); | |
4449 | ||
4450 | wxPyEndAllowThreads(__tstate); | |
4451 | if (PyErr_Occurred()) return NULL; | |
4452 | } if (_result) { | |
4453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4454 | _resultobj = Py_BuildValue("s",_ptemp); | |
4455 | } else { | |
4456 | Py_INCREF(Py_None); | |
4457 | _resultobj = Py_None; | |
4458 | } | |
4459 | return _resultobj; | |
4460 | } | |
4461 | ||
4462 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4463 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject * _resultobj; | |
4465 | bool _result; | |
4466 | wxListBox * _arg0; | |
4467 | wxWindow * _arg1; | |
4468 | wxWindowID _arg2; | |
4469 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4470 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4471 | int _arg5; | |
4472 | wxString * _arg6 = (wxString *) NULL; | |
4473 | long _arg7 = (long ) 0; | |
4474 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
4475 | char * _arg9 = (char *) "listBox"; | |
4476 | PyObject * _argo0 = 0; | |
4477 | PyObject * _argo1 = 0; | |
4478 | wxPoint temp; | |
4479 | PyObject * _obj3 = 0; | |
4480 | wxSize temp0; | |
4481 | PyObject * _obj4 = 0; | |
4482 | PyObject * _obj6 = 0; | |
4483 | PyObject * _argo8 = 0; | |
4484 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
4485 | ||
4486 | self = self; | |
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
4488 | return NULL; | |
4489 | if (_argo0) { | |
4490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
4493 | return NULL; | |
4494 | } | |
4495 | } | |
4496 | if (_argo1) { | |
4497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
4500 | return NULL; | |
4501 | } | |
4502 | } | |
4503 | if (_obj3) | |
4504 | { | |
4505 | _arg3 = &temp; | |
4506 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4507 | return NULL; | |
4508 | } | |
4509 | if (_obj4) | |
4510 | { | |
4511 | _arg4 = &temp0; | |
4512 | if (! wxSize_helper(_obj4, &_arg4)) | |
4513 | return NULL; | |
4514 | } | |
4515 | if (_obj6) | |
4516 | { | |
4517 | _arg6 = wxString_LIST_helper(_obj6); | |
4518 | if (_arg6 == NULL) { | |
4519 | return NULL; | |
4520 | } | |
4521 | } | |
4522 | if (_argo8) { | |
4523 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
4524 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
4525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
4526 | return NULL; | |
4527 | } | |
4528 | } | |
4529 | { | |
4530 | if (_obj6) { | |
4531 | _arg5 = PyList_Size(_obj6); | |
4532 | } | |
4533 | else { | |
4534 | _arg5 = 0; | |
4535 | } | |
4536 | } | |
4537 | { | |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4539 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) return NULL; | |
4543 | } _resultobj = Py_BuildValue("i",_result); | |
4544 | { | |
4545 | delete [] _arg6; | |
4546 | } | |
4547 | return _resultobj; | |
4548 | } | |
4549 | ||
4550 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
4551 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4552 | PyObject * _resultobj; | |
4553 | wxListBox * _arg0; | |
4554 | PyObject * _argo0 = 0; | |
4555 | char *_kwnames[] = { "self", NULL }; | |
4556 | ||
4557 | self = self; | |
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) | |
4559 | return NULL; | |
4560 | if (_argo0) { | |
4561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); | |
4564 | return NULL; | |
4565 | } | |
4566 | } | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | wxListBox_Clear(_arg0); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) return NULL; | |
4573 | } Py_INCREF(Py_None); | |
4574 | _resultobj = Py_None; | |
4575 | return _resultobj; | |
4576 | } | |
4577 | ||
4578 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
4579 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4580 | PyObject * _resultobj; | |
4581 | wxListBox * _arg0; | |
4582 | int _arg1; | |
4583 | PyObject * _argo0 = 0; | |
4584 | char *_kwnames[] = { "self","n", NULL }; | |
4585 | ||
4586 | self = self; | |
4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) | |
4588 | return NULL; | |
4589 | if (_argo0) { | |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); | |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
4596 | { | |
4597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4598 | wxListBox_Deselect(_arg0,_arg1); | |
4599 | ||
4600 | wxPyEndAllowThreads(__tstate); | |
4601 | if (PyErr_Occurred()) return NULL; | |
4602 | } Py_INCREF(Py_None); | |
4603 | _resultobj = Py_None; | |
4604 | return _resultobj; | |
4605 | } | |
4606 | ||
4607 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
4608 | wxArrayInt lst; | |
4609 | self->GetSelections(lst); | |
4610 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
4611 | for(size_t i=0; i<lst.GetCount(); i++) { | |
4612 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
4613 | } | |
4614 | return tup; | |
4615 | } | |
4616 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject * _resultobj; | |
4618 | PyObject * _result; | |
4619 | wxListBox * _arg0; | |
4620 | PyObject * _argo0 = 0; | |
4621 | char *_kwnames[] = { "self", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) return NULL; | |
4639 | }{ | |
4640 | _resultobj = _result; | |
4641 | } | |
4642 | return _resultobj; | |
4643 | } | |
4644 | ||
4645 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
4646 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject * _resultobj; | |
4648 | wxListBox * _arg0; | |
4649 | int _arg1; | |
4650 | wxString * _arg2; | |
4651 | int _arg3; | |
4652 | PyObject * _argo0 = 0; | |
4653 | PyObject * _obj2 = 0; | |
4654 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
4655 | ||
4656 | self = self; | |
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
4658 | return NULL; | |
4659 | if (_argo0) { | |
4660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
4663 | return NULL; | |
4664 | } | |
4665 | } | |
4666 | { | |
4667 | _arg2 = wxString_LIST_helper(_obj2); | |
4668 | if (_arg2 == NULL) { | |
4669 | return NULL; | |
4670 | } | |
4671 | } | |
4672 | { | |
4673 | if (_obj2) { | |
4674 | _arg1 = PyList_Size(_obj2); | |
4675 | } | |
4676 | else { | |
4677 | _arg1 = 0; | |
4678 | } | |
4679 | } | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) return NULL; | |
4686 | } Py_INCREF(Py_None); | |
4687 | _resultobj = Py_None; | |
4688 | { | |
4689 | delete [] _arg2; | |
4690 | } | |
4691 | return _resultobj; | |
4692 | } | |
4693 | ||
4694 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
4695 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject * _resultobj; | |
4697 | bool _result; | |
4698 | wxListBox * _arg0; | |
4699 | int _arg1; | |
4700 | PyObject * _argo0 = 0; | |
4701 | char *_kwnames[] = { "self","n", NULL }; | |
4702 | ||
4703 | self = self; | |
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
4705 | return NULL; | |
4706 | if (_argo0) { | |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
4713 | { | |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4715 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); | |
4716 | ||
4717 | wxPyEndAllowThreads(__tstate); | |
4718 | if (PyErr_Occurred()) return NULL; | |
4719 | } _resultobj = Py_BuildValue("i",_result); | |
4720 | return _resultobj; | |
4721 | } | |
4722 | ||
4723 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
4724 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject * _resultobj; | |
4726 | bool _result; | |
4727 | wxListBox * _arg0; | |
4728 | int _arg1; | |
4729 | PyObject * _argo0 = 0; | |
4730 | char *_kwnames[] = { "self","n", NULL }; | |
4731 | ||
4732 | self = self; | |
4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) | |
4734 | return NULL; | |
4735 | if (_argo0) { | |
4736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); | |
4739 | return NULL; | |
4740 | } | |
4741 | } | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) return NULL; | |
4748 | } _resultobj = Py_BuildValue("i",_result); | |
4749 | return _resultobj; | |
4750 | } | |
4751 | ||
4752 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
4753 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4754 | PyObject * _resultobj; | |
4755 | wxListBox * _arg0; | |
4756 | int _arg1; | |
4757 | wxString * _arg2; | |
4758 | PyObject * _argo0 = 0; | |
4759 | PyObject * _obj2 = 0; | |
4760 | char *_kwnames[] = { "self","choices", NULL }; | |
4761 | ||
4762 | self = self; | |
4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) | |
4764 | return NULL; | |
4765 | if (_argo0) { | |
4766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); | |
4769 | return NULL; | |
4770 | } | |
4771 | } | |
4772 | if (_obj2) | |
4773 | { | |
4774 | _arg2 = wxString_LIST_helper(_obj2); | |
4775 | if (_arg2 == NULL) { | |
4776 | return NULL; | |
4777 | } | |
4778 | } | |
4779 | { | |
4780 | if (_obj2) { | |
4781 | _arg1 = PyList_Size(_obj2); | |
4782 | } | |
4783 | else { | |
4784 | _arg1 = 0; | |
4785 | } | |
4786 | } | |
4787 | { | |
4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4789 | wxListBox_Set(_arg0,_arg1,_arg2); | |
4790 | ||
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) return NULL; | |
4793 | } Py_INCREF(Py_None); | |
4794 | _resultobj = Py_None; | |
4795 | { | |
4796 | delete [] _arg2; | |
4797 | } | |
4798 | return _resultobj; | |
4799 | } | |
4800 | ||
4801 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4802 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4803 | PyObject * _resultobj; | |
4804 | wxListBox * _arg0; | |
4805 | int _arg1; | |
4806 | PyObject * _argo0 = 0; | |
4807 | char *_kwnames[] = { "self","n", NULL }; | |
4808 | ||
4809 | self = self; | |
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) | |
4811 | return NULL; | |
4812 | if (_argo0) { | |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); | |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | wxListBox_SetFirstItem(_arg0,_arg1); | |
4822 | ||
4823 | wxPyEndAllowThreads(__tstate); | |
4824 | if (PyErr_Occurred()) return NULL; | |
4825 | } Py_INCREF(Py_None); | |
4826 | _resultobj = Py_None; | |
4827 | return _resultobj; | |
4828 | } | |
4829 | ||
4830 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
4831 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject * _resultobj; | |
4833 | wxListBox * _arg0; | |
4834 | wxString * _arg1; | |
4835 | PyObject * _argo0 = 0; | |
4836 | PyObject * _obj1 = 0; | |
4837 | char *_kwnames[] = { "self","string", NULL }; | |
4838 | ||
4839 | self = self; | |
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) | |
4841 | return NULL; | |
4842 | if (_argo0) { | |
4843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); | |
4846 | return NULL; | |
4847 | } | |
4848 | } | |
4849 | { | |
4850 | _arg1 = wxString_in_helper(_obj1); | |
4851 | if (_arg1 == NULL) | |
4852 | return NULL; | |
4853 | } | |
4854 | { | |
4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4856 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
4857 | ||
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) return NULL; | |
4860 | } Py_INCREF(Py_None); | |
4861 | _resultobj = Py_None; | |
4862 | { | |
4863 | if (_obj1) | |
4864 | delete _arg1; | |
4865 | } | |
4866 | return _resultobj; | |
4867 | } | |
4868 | ||
4869 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
4870 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4871 | PyObject * _resultobj; | |
4872 | wxListBox * _arg0; | |
4873 | int _arg1; | |
4874 | bool _arg2 = (bool ) TRUE; | |
4875 | PyObject * _argo0 = 0; | |
4876 | int tempbool2 = (int) TRUE; | |
4877 | char *_kwnames[] = { "self","n","select", NULL }; | |
4878 | ||
4879 | self = self; | |
4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
4881 | return NULL; | |
4882 | if (_argo0) { | |
4883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); | |
4886 | return NULL; | |
4887 | } | |
4888 | } | |
4889 | _arg2 = (bool ) tempbool2; | |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) return NULL; | |
4896 | } Py_INCREF(Py_None); | |
4897 | _resultobj = Py_None; | |
4898 | return _resultobj; | |
4899 | } | |
4900 | ||
4901 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
4902 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4903 | PyObject * _resultobj; | |
4904 | wxListBox * _arg0; | |
4905 | int _arg1; | |
4906 | wxString * _arg2; | |
4907 | PyObject * _argo0 = 0; | |
4908 | PyObject * _obj2 = 0; | |
4909 | char *_kwnames[] = { "self","n","string", NULL }; | |
4910 | ||
4911 | self = self; | |
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4913 | return NULL; | |
4914 | if (_argo0) { | |
4915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); | |
4918 | return NULL; | |
4919 | } | |
4920 | } | |
4921 | { | |
4922 | _arg2 = wxString_in_helper(_obj2); | |
4923 | if (_arg2 == NULL) | |
4924 | return NULL; | |
4925 | } | |
4926 | { | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) return NULL; | |
4932 | } Py_INCREF(Py_None); | |
4933 | _resultobj = Py_None; | |
4934 | { | |
4935 | if (_obj2) | |
4936 | delete _arg2; | |
4937 | } | |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
4942 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject * _resultobj; | |
4944 | wxListBox * _arg0; | |
4945 | wxString * _arg1; | |
4946 | bool _arg2 = (bool ) TRUE; | |
4947 | PyObject * _argo0 = 0; | |
4948 | PyObject * _obj1 = 0; | |
4949 | int tempbool2 = (int) TRUE; | |
4950 | char *_kwnames[] = { "self","string","select", NULL }; | |
4951 | ||
4952 | self = self; | |
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
4954 | return NULL; | |
4955 | if (_argo0) { | |
4956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); | |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
4962 | { | |
4963 | _arg1 = wxString_in_helper(_obj1); | |
4964 | if (_arg1 == NULL) | |
4965 | return NULL; | |
4966 | } | |
4967 | _arg2 = (bool ) tempbool2; | |
4968 | { | |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) return NULL; | |
4974 | } Py_INCREF(Py_None); | |
4975 | _resultobj = Py_None; | |
4976 | { | |
4977 | if (_obj1) | |
4978 | delete _arg1; | |
4979 | } | |
4980 | return _resultobj; | |
4981 | } | |
4982 | ||
4983 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { | |
4984 | wxCheckListBox *src; | |
4985 | wxListBox *dest; | |
4986 | src = (wxCheckListBox *) ptr; | |
4987 | dest = (wxListBox *) src; | |
4988 | return (void *) dest; | |
4989 | } | |
4990 | ||
4991 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { | |
4992 | wxCheckListBox *src; | |
4993 | wxControlWithItems *dest; | |
4994 | src = (wxCheckListBox *) ptr; | |
4995 | dest = (wxControlWithItems *) src; | |
4996 | return (void *) dest; | |
4997 | } | |
4998 | ||
4999 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
5000 | wxCheckListBox *src; | |
5001 | wxControl *dest; | |
5002 | src = (wxCheckListBox *) ptr; | |
5003 | dest = (wxControl *) src; | |
5004 | return (void *) dest; | |
5005 | } | |
5006 | ||
5007 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5008 | wxCheckListBox *src; | |
5009 | wxWindow *dest; | |
5010 | src = (wxCheckListBox *) ptr; | |
5011 | dest = (wxWindow *) src; | |
5012 | return (void *) dest; | |
5013 | } | |
5014 | ||
5015 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5016 | wxCheckListBox *src; | |
5017 | wxEvtHandler *dest; | |
5018 | src = (wxCheckListBox *) ptr; | |
5019 | dest = (wxEvtHandler *) src; | |
5020 | return (void *) dest; | |
5021 | } | |
5022 | ||
5023 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { | |
5024 | wxCheckListBox *src; | |
5025 | wxObject *dest; | |
5026 | src = (wxCheckListBox *) ptr; | |
5027 | dest = (wxObject *) src; | |
5028 | return (void *) dest; | |
5029 | } | |
5030 | ||
5031 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5032 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject * _resultobj; | |
5034 | wxCheckListBox * _result; | |
5035 | wxWindow * _arg0; | |
5036 | wxWindowID _arg1; | |
5037 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5038 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5039 | int _arg4 = (int ) 0; | |
5040 | wxString * _arg5 = (wxString *) NULL; | |
5041 | long _arg6 = (long ) 0; | |
5042 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5043 | char * _arg8 = (char *) "listBox"; | |
5044 | PyObject * _argo0 = 0; | |
5045 | wxPoint temp; | |
5046 | PyObject * _obj2 = 0; | |
5047 | wxSize temp0; | |
5048 | PyObject * _obj3 = 0; | |
5049 | PyObject * _obj5 = 0; | |
5050 | PyObject * _argo7 = 0; | |
5051 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
5052 | char _ptemp[128]; | |
5053 | ||
5054 | self = self; | |
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOs:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_arg8)) | |
5056 | return NULL; | |
5057 | if (_argo0) { | |
5058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); | |
5061 | return NULL; | |
5062 | } | |
5063 | } | |
5064 | if (_obj2) | |
5065 | { | |
5066 | _arg2 = &temp; | |
5067 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5068 | return NULL; | |
5069 | } | |
5070 | if (_obj3) | |
5071 | { | |
5072 | _arg3 = &temp0; | |
5073 | if (! wxSize_helper(_obj3, &_arg3)) | |
5074 | return NULL; | |
5075 | } | |
5076 | if (_obj5) | |
5077 | { | |
5078 | _arg5 = wxString_LIST_helper(_obj5); | |
5079 | if (_arg5 == NULL) { | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | if (_argo7) { | |
5084 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5085 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); | |
5087 | return NULL; | |
5088 | } | |
5089 | } | |
5090 | { | |
5091 | if (_obj5) { | |
5092 | _arg4 = PyList_Size(_obj5); | |
5093 | } | |
5094 | else { | |
5095 | _arg4 = 0; | |
5096 | } | |
5097 | } | |
5098 | { | |
5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5100 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,_arg8); | |
5101 | ||
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) return NULL; | |
5104 | } if (_result) { | |
5105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5106 | _resultobj = Py_BuildValue("s",_ptemp); | |
5107 | } else { | |
5108 | Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | } | |
5111 | { | |
5112 | delete [] _arg5; | |
5113 | } | |
5114 | return _resultobj; | |
5115 | } | |
5116 | ||
5117 | #define new_wxPreCheckListBox() (new wxCheckListBox()) | |
5118 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject * _resultobj; | |
5120 | wxCheckListBox * _result; | |
5121 | char *_kwnames[] = { NULL }; | |
5122 | char _ptemp[128]; | |
5123 | ||
5124 | self = self; | |
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5126 | return NULL; | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) return NULL; | |
5133 | } if (_result) { | |
5134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | } else { | |
5137 | Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | } | |
5140 | return _resultobj; | |
5141 | } | |
5142 | ||
5143 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5144 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject * _resultobj; | |
5146 | bool _result; | |
5147 | wxCheckListBox * _arg0; | |
5148 | wxWindow * _arg1; | |
5149 | wxWindowID _arg2; | |
5150 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5151 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5152 | int _arg5 = (int ) 0; | |
5153 | wxString * _arg6 = (wxString *) NULL; | |
5154 | long _arg7 = (long ) 0; | |
5155 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5156 | char * _arg9 = (char *) "listBox"; | |
5157 | PyObject * _argo0 = 0; | |
5158 | PyObject * _argo1 = 0; | |
5159 | wxPoint temp; | |
5160 | PyObject * _obj3 = 0; | |
5161 | wxSize temp0; | |
5162 | PyObject * _obj4 = 0; | |
5163 | PyObject * _obj6 = 0; | |
5164 | PyObject * _argo8 = 0; | |
5165 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5166 | ||
5167 | self = self; | |
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOs:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_arg9)) | |
5169 | return NULL; | |
5170 | if (_argo0) { | |
5171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5174 | return NULL; | |
5175 | } | |
5176 | } | |
5177 | if (_argo1) { | |
5178 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5181 | return NULL; | |
5182 | } | |
5183 | } | |
5184 | if (_obj3) | |
5185 | { | |
5186 | _arg3 = &temp; | |
5187 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5188 | return NULL; | |
5189 | } | |
5190 | if (_obj4) | |
5191 | { | |
5192 | _arg4 = &temp0; | |
5193 | if (! wxSize_helper(_obj4, &_arg4)) | |
5194 | return NULL; | |
5195 | } | |
5196 | if (_obj6) | |
5197 | { | |
5198 | _arg6 = wxString_LIST_helper(_obj6); | |
5199 | if (_arg6 == NULL) { | |
5200 | return NULL; | |
5201 | } | |
5202 | } | |
5203 | if (_argo8) { | |
5204 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5205 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5207 | return NULL; | |
5208 | } | |
5209 | } | |
5210 | { | |
5211 | if (_obj6) { | |
5212 | _arg5 = PyList_Size(_obj6); | |
5213 | } | |
5214 | else { | |
5215 | _arg5 = 0; | |
5216 | } | |
5217 | } | |
5218 | { | |
5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5220 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,_arg9); | |
5221 | ||
5222 | wxPyEndAllowThreads(__tstate); | |
5223 | if (PyErr_Occurred()) return NULL; | |
5224 | } _resultobj = Py_BuildValue("i",_result); | |
5225 | { | |
5226 | delete [] _arg6; | |
5227 | } | |
5228 | return _resultobj; | |
5229 | } | |
5230 | ||
5231 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5232 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject * _resultobj; | |
5234 | bool _result; | |
5235 | wxCheckListBox * _arg0; | |
5236 | int _arg1; | |
5237 | PyObject * _argo0 = 0; | |
5238 | char *_kwnames[] = { "self","uiIndex", NULL }; | |
5239 | ||
5240 | self = self; | |
5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5242 | return NULL; | |
5243 | if (_argo0) { | |
5244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); | |
5247 | return NULL; | |
5248 | } | |
5249 | } | |
5250 | { | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
5253 | ||
5254 | wxPyEndAllowThreads(__tstate); | |
5255 | if (PyErr_Occurred()) return NULL; | |
5256 | } _resultobj = Py_BuildValue("i",_result); | |
5257 | return _resultobj; | |
5258 | } | |
5259 | ||
5260 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5261 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject * _resultobj; | |
5263 | wxCheckListBox * _arg0; | |
5264 | int _arg1; | |
5265 | int _arg2 = (int ) TRUE; | |
5266 | PyObject * _argo0 = 0; | |
5267 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; | |
5268 | ||
5269 | self = self; | |
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5271 | return NULL; | |
5272 | if (_argo0) { | |
5273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); | |
5276 | return NULL; | |
5277 | } | |
5278 | } | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
5282 | ||
5283 | wxPyEndAllowThreads(__tstate); | |
5284 | if (PyErr_Occurred()) return NULL; | |
5285 | } Py_INCREF(Py_None); | |
5286 | _resultobj = Py_None; | |
5287 | return _resultobj; | |
5288 | } | |
5289 | ||
5290 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5291 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject * _resultobj; | |
5293 | wxCheckListBox * _arg0; | |
5294 | int _arg1; | |
5295 | wxString * _arg2; | |
5296 | int _arg3; | |
5297 | PyObject * _argo0 = 0; | |
5298 | PyObject * _obj2 = 0; | |
5299 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5300 | ||
5301 | self = self; | |
5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5303 | return NULL; | |
5304 | if (_argo0) { | |
5305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5308 | return NULL; | |
5309 | } | |
5310 | } | |
5311 | { | |
5312 | _arg2 = wxString_LIST_helper(_obj2); | |
5313 | if (_arg2 == NULL) { | |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
5317 | { | |
5318 | if (_obj2) { | |
5319 | _arg1 = PyList_Size(_obj2); | |
5320 | } | |
5321 | else { | |
5322 | _arg1 = 0; | |
5323 | } | |
5324 | } | |
5325 | { | |
5326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5327 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5328 | ||
5329 | wxPyEndAllowThreads(__tstate); | |
5330 | if (PyErr_Occurred()) return NULL; | |
5331 | } Py_INCREF(Py_None); | |
5332 | _resultobj = Py_None; | |
5333 | { | |
5334 | delete [] _arg2; | |
5335 | } | |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
5339 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) | |
5340 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject * _resultobj; | |
5342 | int _result; | |
5343 | wxCheckListBox * _arg0; | |
5344 | PyObject * _argo0 = 0; | |
5345 | char *_kwnames[] = { "self", NULL }; | |
5346 | ||
5347 | self = self; | |
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) | |
5349 | return NULL; | |
5350 | if (_argo0) { | |
5351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); | |
5354 | return NULL; | |
5355 | } | |
5356 | } | |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
5360 | ||
5361 | wxPyEndAllowThreads(__tstate); | |
5362 | if (PyErr_Occurred()) return NULL; | |
5363 | } _resultobj = Py_BuildValue("i",_result); | |
5364 | return _resultobj; | |
5365 | } | |
5366 | ||
5367 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5368 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject * _resultobj; | |
5370 | wxTextAttr * _result; | |
5371 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5372 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5373 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5374 | wxColour temp; | |
5375 | PyObject * _obj0 = 0; | |
5376 | wxColour temp0; | |
5377 | PyObject * _obj1 = 0; | |
5378 | PyObject * _argo2 = 0; | |
5379 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5380 | char _ptemp[128]; | |
5381 | ||
5382 | self = self; | |
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5384 | return NULL; | |
5385 | if (_obj0) | |
5386 | { | |
5387 | _arg0 = &temp; | |
5388 | if (! wxColour_helper(_obj0, &_arg0)) | |
5389 | return NULL; | |
5390 | } | |
5391 | if (_obj1) | |
5392 | { | |
5393 | _arg1 = &temp0; | |
5394 | if (! wxColour_helper(_obj1, &_arg1)) | |
5395 | return NULL; | |
5396 | } | |
5397 | if (_argo2) { | |
5398 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5399 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5401 | return NULL; | |
5402 | } | |
5403 | } | |
5404 | { | |
5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5406 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); | |
5407 | ||
5408 | wxPyEndAllowThreads(__tstate); | |
5409 | if (PyErr_Occurred()) return NULL; | |
5410 | } if (_result) { | |
5411 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5412 | _resultobj = Py_BuildValue("s",_ptemp); | |
5413 | } else { | |
5414 | Py_INCREF(Py_None); | |
5415 | _resultobj = Py_None; | |
5416 | } | |
5417 | return _resultobj; | |
5418 | } | |
5419 | ||
5420 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
5421 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5422 | PyObject * _resultobj; | |
5423 | wxTextAttr * _arg0; | |
5424 | PyObject * _argo0 = 0; | |
5425 | char *_kwnames[] = { "self", NULL }; | |
5426 | ||
5427 | self = self; | |
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
5429 | return NULL; | |
5430 | if (_argo0) { | |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5439 | delete_wxTextAttr(_arg0); | |
5440 | ||
5441 | wxPyEndAllowThreads(__tstate); | |
5442 | if (PyErr_Occurred()) return NULL; | |
5443 | } Py_INCREF(Py_None); | |
5444 | _resultobj = Py_None; | |
5445 | return _resultobj; | |
5446 | } | |
5447 | ||
5448 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5449 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject * _resultobj; | |
5451 | wxTextAttr * _arg0; | |
5452 | wxColour * _arg1; | |
5453 | PyObject * _argo0 = 0; | |
5454 | wxColour temp; | |
5455 | PyObject * _obj1 = 0; | |
5456 | char *_kwnames[] = { "self","colText", NULL }; | |
5457 | ||
5458 | self = self; | |
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5460 | return NULL; | |
5461 | if (_argo0) { | |
5462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
5465 | return NULL; | |
5466 | } | |
5467 | } | |
5468 | { | |
5469 | _arg1 = &temp; | |
5470 | if (! wxColour_helper(_obj1, &_arg1)) | |
5471 | return NULL; | |
5472 | } | |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | wxTextAttr_SetTextColour(_arg0,*_arg1); | |
5476 | ||
5477 | wxPyEndAllowThreads(__tstate); | |
5478 | if (PyErr_Occurred()) return NULL; | |
5479 | } Py_INCREF(Py_None); | |
5480 | _resultobj = Py_None; | |
5481 | return _resultobj; | |
5482 | } | |
5483 | ||
5484 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5485 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5486 | PyObject * _resultobj; | |
5487 | wxTextAttr * _arg0; | |
5488 | wxColour * _arg1; | |
5489 | PyObject * _argo0 = 0; | |
5490 | wxColour temp; | |
5491 | PyObject * _obj1 = 0; | |
5492 | char *_kwnames[] = { "self","colBack", NULL }; | |
5493 | ||
5494 | self = self; | |
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5496 | return NULL; | |
5497 | if (_argo0) { | |
5498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
5501 | return NULL; | |
5502 | } | |
5503 | } | |
5504 | { | |
5505 | _arg1 = &temp; | |
5506 | if (! wxColour_helper(_obj1, &_arg1)) | |
5507 | return NULL; | |
5508 | } | |
5509 | { | |
5510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5511 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); | |
5512 | ||
5513 | wxPyEndAllowThreads(__tstate); | |
5514 | if (PyErr_Occurred()) return NULL; | |
5515 | } Py_INCREF(Py_None); | |
5516 | _resultobj = Py_None; | |
5517 | return _resultobj; | |
5518 | } | |
5519 | ||
5520 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5521 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5522 | PyObject * _resultobj; | |
5523 | wxTextAttr * _arg0; | |
5524 | wxFont * _arg1; | |
5525 | PyObject * _argo0 = 0; | |
5526 | PyObject * _argo1 = 0; | |
5527 | char *_kwnames[] = { "self","font", NULL }; | |
5528 | ||
5529 | self = self; | |
5530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5531 | return NULL; | |
5532 | if (_argo0) { | |
5533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
5536 | return NULL; | |
5537 | } | |
5538 | } | |
5539 | if (_argo1) { | |
5540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
5543 | return NULL; | |
5544 | } | |
5545 | } | |
5546 | { | |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | wxTextAttr_SetFont(_arg0,*_arg1); | |
5549 | ||
5550 | wxPyEndAllowThreads(__tstate); | |
5551 | if (PyErr_Occurred()) return NULL; | |
5552 | } Py_INCREF(Py_None); | |
5553 | _resultobj = Py_None; | |
5554 | return _resultobj; | |
5555 | } | |
5556 | ||
5557 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5558 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject * _resultobj; | |
5560 | bool _result; | |
5561 | wxTextAttr * _arg0; | |
5562 | PyObject * _argo0 = 0; | |
5563 | char *_kwnames[] = { "self", NULL }; | |
5564 | ||
5565 | self = self; | |
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
5567 | return NULL; | |
5568 | if (_argo0) { | |
5569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5577 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
5578 | ||
5579 | wxPyEndAllowThreads(__tstate); | |
5580 | if (PyErr_Occurred()) return NULL; | |
5581 | } _resultobj = Py_BuildValue("i",_result); | |
5582 | return _resultobj; | |
5583 | } | |
5584 | ||
5585 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5586 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject * _resultobj; | |
5588 | bool _result; | |
5589 | wxTextAttr * _arg0; | |
5590 | PyObject * _argo0 = 0; | |
5591 | char *_kwnames[] = { "self", NULL }; | |
5592 | ||
5593 | self = self; | |
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5595 | return NULL; | |
5596 | if (_argo0) { | |
5597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
5600 | return NULL; | |
5601 | } | |
5602 | } | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) return NULL; | |
5609 | } _resultobj = Py_BuildValue("i",_result); | |
5610 | return _resultobj; | |
5611 | } | |
5612 | ||
5613 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5614 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject * _resultobj; | |
5616 | bool _result; | |
5617 | wxTextAttr * _arg0; | |
5618 | PyObject * _argo0 = 0; | |
5619 | char *_kwnames[] = { "self", NULL }; | |
5620 | ||
5621 | self = self; | |
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
5623 | return NULL; | |
5624 | if (_argo0) { | |
5625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
5628 | return NULL; | |
5629 | } | |
5630 | } | |
5631 | { | |
5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5633 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
5634 | ||
5635 | wxPyEndAllowThreads(__tstate); | |
5636 | if (PyErr_Occurred()) return NULL; | |
5637 | } _resultobj = Py_BuildValue("i",_result); | |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5642 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | wxColour * _result; | |
5645 | wxTextAttr * _arg0; | |
5646 | PyObject * _argo0 = 0; | |
5647 | char *_kwnames[] = { "self", NULL }; | |
5648 | char _ptemp[128]; | |
5649 | ||
5650 | self = self; | |
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
5652 | return NULL; | |
5653 | if (_argo0) { | |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); | |
5663 | ||
5664 | wxPyEndAllowThreads(__tstate); | |
5665 | if (PyErr_Occurred()) return NULL; | |
5666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5667 | _resultobj = Py_BuildValue("s",_ptemp); | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5672 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | wxColour * _result; | |
5675 | wxTextAttr * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "self", NULL }; | |
5678 | char _ptemp[128]; | |
5679 | ||
5680 | self = self; | |
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5682 | return NULL; | |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | { | |
5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5692 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); | |
5693 | ||
5694 | wxPyEndAllowThreads(__tstate); | |
5695 | if (PyErr_Occurred()) return NULL; | |
5696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5697 | _resultobj = Py_BuildValue("s",_ptemp); | |
5698 | return _resultobj; | |
5699 | } | |
5700 | ||
5701 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5702 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5703 | PyObject * _resultobj; | |
5704 | wxFont * _result; | |
5705 | wxTextAttr * _arg0; | |
5706 | PyObject * _argo0 = 0; | |
5707 | char *_kwnames[] = { "self", NULL }; | |
5708 | char _ptemp[128]; | |
5709 | ||
5710 | self = self; | |
5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
5712 | return NULL; | |
5713 | if (_argo0) { | |
5714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
5717 | return NULL; | |
5718 | } | |
5719 | } | |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) return NULL; | |
5726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
5727 | _resultobj = Py_BuildValue("s",_ptemp); | |
5728 | return _resultobj; | |
5729 | } | |
5730 | ||
5731 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) | |
5732 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5733 | PyObject * _resultobj; | |
5734 | bool _result; | |
5735 | wxTextAttr * _arg0; | |
5736 | PyObject * _argo0 = 0; | |
5737 | char *_kwnames[] = { "self", NULL }; | |
5738 | ||
5739 | self = self; | |
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
5741 | return NULL; | |
5742 | if (_argo0) { | |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
5749 | { | |
5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5751 | _result = (bool )wxTextAttr_IsDefault(_arg0); | |
5752 | ||
5753 | wxPyEndAllowThreads(__tstate); | |
5754 | if (PyErr_Occurred()) return NULL; | |
5755 | } _resultobj = Py_BuildValue("i",_result); | |
5756 | return _resultobj; | |
5757 | } | |
5758 | ||
5759 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject * _resultobj; | |
5761 | wxTextAttr * _result; | |
5762 | wxTextAttr * _arg0; | |
5763 | wxTextAttr * _arg1; | |
5764 | wxTextCtrl * _arg2; | |
5765 | PyObject * _argo0 = 0; | |
5766 | PyObject * _argo1 = 0; | |
5767 | PyObject * _argo2 = 0; | |
5768 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
5769 | char _ptemp[128]; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | if (_argo1) { | |
5782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
5784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
5785 | return NULL; | |
5786 | } | |
5787 | } | |
5788 | if (_argo2) { | |
5789 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5790 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
5791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
5792 | return NULL; | |
5793 | } | |
5794 | } | |
5795 | { | |
5796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5797 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); | |
5798 | ||
5799 | wxPyEndAllowThreads(__tstate); | |
5800 | if (PyErr_Occurred()) return NULL; | |
5801 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
5802 | _resultobj = Py_BuildValue("s",_ptemp); | |
5803 | return _resultobj; | |
5804 | } | |
5805 | ||
5806 | static void *SwigwxTextCtrlTowxControl(void *ptr) { | |
5807 | wxTextCtrl *src; | |
5808 | wxControl *dest; | |
5809 | src = (wxTextCtrl *) ptr; | |
5810 | dest = (wxControl *) src; | |
5811 | return (void *) dest; | |
5812 | } | |
5813 | ||
5814 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
5815 | wxTextCtrl *src; | |
5816 | wxWindow *dest; | |
5817 | src = (wxTextCtrl *) ptr; | |
5818 | dest = (wxWindow *) src; | |
5819 | return (void *) dest; | |
5820 | } | |
5821 | ||
5822 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
5823 | wxTextCtrl *src; | |
5824 | wxEvtHandler *dest; | |
5825 | src = (wxTextCtrl *) ptr; | |
5826 | dest = (wxEvtHandler *) src; | |
5827 | return (void *) dest; | |
5828 | } | |
5829 | ||
5830 | static void *SwigwxTextCtrlTowxObject(void *ptr) { | |
5831 | wxTextCtrl *src; | |
5832 | wxObject *dest; | |
5833 | src = (wxTextCtrl *) ptr; | |
5834 | dest = (wxObject *) src; | |
5835 | return (void *) dest; | |
5836 | } | |
5837 | ||
5838 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
5839 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5840 | PyObject * _resultobj; | |
5841 | wxTextCtrl * _result; | |
5842 | wxWindow * _arg0; | |
5843 | wxWindowID _arg1; | |
5844 | char * _arg2 = (char *) ""; | |
5845 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5846 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5847 | long _arg5 = (long ) 0; | |
5848 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5849 | char * _arg7 = (char *) "text"; | |
5850 | PyObject * _argo0 = 0; | |
5851 | wxPoint temp; | |
5852 | PyObject * _obj3 = 0; | |
5853 | wxSize temp0; | |
5854 | PyObject * _obj4 = 0; | |
5855 | PyObject * _argo6 = 0; | |
5856 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; | |
5857 | char _ptemp[128]; | |
5858 | ||
5859 | self = self; | |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|sOOlOs:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
5861 | return NULL; | |
5862 | if (_argo0) { | |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
5866 | return NULL; | |
5867 | } | |
5868 | } | |
5869 | if (_obj3) | |
5870 | { | |
5871 | _arg3 = &temp; | |
5872 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5873 | return NULL; | |
5874 | } | |
5875 | if (_obj4) | |
5876 | { | |
5877 | _arg4 = &temp0; | |
5878 | if (! wxSize_helper(_obj4, &_arg4)) | |
5879 | return NULL; | |
5880 | } | |
5881 | if (_argo6) { | |
5882 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5883 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
5885 | return NULL; | |
5886 | } | |
5887 | } | |
5888 | { | |
5889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5890 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
5891 | ||
5892 | wxPyEndAllowThreads(__tstate); | |
5893 | if (PyErr_Occurred()) return NULL; | |
5894 | } if (_result) { | |
5895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5896 | _resultobj = Py_BuildValue("s",_ptemp); | |
5897 | } else { | |
5898 | Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | } | |
5901 | return _resultobj; | |
5902 | } | |
5903 | ||
5904 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
5905 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject * _resultobj; | |
5907 | wxTextCtrl * _result; | |
5908 | char *_kwnames[] = { NULL }; | |
5909 | char _ptemp[128]; | |
5910 | ||
5911 | self = self; | |
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
5913 | return NULL; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) return NULL; | |
5920 | } if (_result) { | |
5921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5922 | _resultobj = Py_BuildValue("s",_ptemp); | |
5923 | } else { | |
5924 | Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | } | |
5927 | return _resultobj; | |
5928 | } | |
5929 | ||
5930 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
5931 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject * _resultobj; | |
5933 | bool _result; | |
5934 | wxTextCtrl * _arg0; | |
5935 | wxWindow * _arg1; | |
5936 | wxWindowID _arg2; | |
5937 | char * _arg3 = (char *) ""; | |
5938 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
5939 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
5940 | long _arg6 = (long ) 0; | |
5941 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5942 | char * _arg8 = (char *) "text"; | |
5943 | PyObject * _argo0 = 0; | |
5944 | PyObject * _argo1 = 0; | |
5945 | wxPoint temp; | |
5946 | PyObject * _obj4 = 0; | |
5947 | wxSize temp0; | |
5948 | PyObject * _obj5 = 0; | |
5949 | PyObject * _argo7 = 0; | |
5950 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|sOOlOs:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | if (_argo1) { | |
5963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | if (_obj4) | |
5970 | { | |
5971 | _arg4 = &temp; | |
5972 | if (! wxPoint_helper(_obj4, &_arg4)) | |
5973 | return NULL; | |
5974 | } | |
5975 | if (_obj5) | |
5976 | { | |
5977 | _arg5 = &temp0; | |
5978 | if (! wxSize_helper(_obj5, &_arg5)) | |
5979 | return NULL; | |
5980 | } | |
5981 | if (_argo7) { | |
5982 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5983 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
5985 | return NULL; | |
5986 | } | |
5987 | } | |
5988 | { | |
5989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5990 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
5991 | ||
5992 | wxPyEndAllowThreads(__tstate); | |
5993 | if (PyErr_Occurred()) return NULL; | |
5994 | } _resultobj = Py_BuildValue("i",_result); | |
5995 | return _resultobj; | |
5996 | } | |
5997 | ||
5998 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
5999 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6000 | PyObject * _resultobj; | |
6001 | wxString * _result; | |
6002 | wxTextCtrl * _arg0; | |
6003 | PyObject * _argo0 = 0; | |
6004 | char *_kwnames[] = { "self", NULL }; | |
6005 | ||
6006 | self = self; | |
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) | |
6008 | return NULL; | |
6009 | if (_argo0) { | |
6010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); | |
6013 | return NULL; | |
6014 | } | |
6015 | } | |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) return NULL; | |
6022 | }{ | |
6023 | #if wxUSE_UNICODE | |
6024 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6025 | #else | |
6026 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6027 | #endif | |
6028 | } | |
6029 | { | |
6030 | delete _result; | |
6031 | } | |
6032 | return _resultobj; | |
6033 | } | |
6034 | ||
6035 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
6036 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject * _resultobj; | |
6038 | wxTextCtrl * _arg0; | |
6039 | wxString * _arg1; | |
6040 | PyObject * _argo0 = 0; | |
6041 | PyObject * _obj1 = 0; | |
6042 | char *_kwnames[] = { "self","value", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
6055 | _arg1 = wxString_in_helper(_obj1); | |
6056 | if (_arg1 == NULL) | |
6057 | return NULL; | |
6058 | } | |
6059 | { | |
6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6061 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
6062 | ||
6063 | wxPyEndAllowThreads(__tstate); | |
6064 | if (PyErr_Occurred()) return NULL; | |
6065 | } Py_INCREF(Py_None); | |
6066 | _resultobj = Py_None; | |
6067 | { | |
6068 | if (_obj1) | |
6069 | delete _arg1; | |
6070 | } | |
6071 | return _resultobj; | |
6072 | } | |
6073 | ||
6074 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) | |
6075 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject * _resultobj; | |
6077 | wxString * _result; | |
6078 | wxTextCtrl * _arg0; | |
6079 | long _arg1; | |
6080 | long _arg2; | |
6081 | PyObject * _argo0 = 0; | |
6082 | char *_kwnames[] = { "self","from","to", NULL }; | |
6083 | ||
6084 | self = self; | |
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6086 | return NULL; | |
6087 | if (_argo0) { | |
6088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) return NULL; | |
6100 | }{ | |
6101 | #if wxUSE_UNICODE | |
6102 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6103 | #else | |
6104 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6105 | #endif | |
6106 | } | |
6107 | { | |
6108 | delete _result; | |
6109 | } | |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
6113 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
6114 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject * _resultobj; | |
6116 | int _result; | |
6117 | wxTextCtrl * _arg0; | |
6118 | long _arg1; | |
6119 | PyObject * _argo0 = 0; | |
6120 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6121 | ||
6122 | self = self; | |
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) | |
6124 | return NULL; | |
6125 | if (_argo0) { | |
6126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); | |
6129 | return NULL; | |
6130 | } | |
6131 | } | |
6132 | { | |
6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6134 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
6135 | ||
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) return NULL; | |
6138 | } _resultobj = Py_BuildValue("i",_result); | |
6139 | return _resultobj; | |
6140 | } | |
6141 | ||
6142 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
6143 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6144 | PyObject * _resultobj; | |
6145 | wxString * _result; | |
6146 | wxTextCtrl * _arg0; | |
6147 | long _arg1; | |
6148 | PyObject * _argo0 = 0; | |
6149 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6150 | ||
6151 | self = self; | |
6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) | |
6153 | return NULL; | |
6154 | if (_argo0) { | |
6155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); | |
6158 | return NULL; | |
6159 | } | |
6160 | } | |
6161 | { | |
6162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6163 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
6164 | ||
6165 | wxPyEndAllowThreads(__tstate); | |
6166 | if (PyErr_Occurred()) return NULL; | |
6167 | }{ | |
6168 | #if wxUSE_UNICODE | |
6169 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6170 | #else | |
6171 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6172 | #endif | |
6173 | } | |
6174 | { | |
6175 | delete _result; | |
6176 | } | |
6177 | return _resultobj; | |
6178 | } | |
6179 | ||
6180 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
6181 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject * _resultobj; | |
6183 | int _result; | |
6184 | wxTextCtrl * _arg0; | |
6185 | PyObject * _argo0 = 0; | |
6186 | char *_kwnames[] = { "self", NULL }; | |
6187 | ||
6188 | self = self; | |
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) | |
6190 | return NULL; | |
6191 | if (_argo0) { | |
6192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); | |
6195 | return NULL; | |
6196 | } | |
6197 | } | |
6198 | { | |
6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6200 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
6201 | ||
6202 | wxPyEndAllowThreads(__tstate); | |
6203 | if (PyErr_Occurred()) return NULL; | |
6204 | } _resultobj = Py_BuildValue("i",_result); | |
6205 | return _resultobj; | |
6206 | } | |
6207 | ||
6208 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
6209 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject * _resultobj; | |
6211 | bool _result; | |
6212 | wxTextCtrl * _arg0; | |
6213 | PyObject * _argo0 = 0; | |
6214 | char *_kwnames[] = { "self", NULL }; | |
6215 | ||
6216 | self = self; | |
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) | |
6218 | return NULL; | |
6219 | if (_argo0) { | |
6220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); | |
6223 | return NULL; | |
6224 | } | |
6225 | } | |
6226 | { | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
6229 | ||
6230 | wxPyEndAllowThreads(__tstate); | |
6231 | if (PyErr_Occurred()) return NULL; | |
6232 | } _resultobj = Py_BuildValue("i",_result); | |
6233 | return _resultobj; | |
6234 | } | |
6235 | ||
6236 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
6237 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6238 | PyObject * _resultobj; | |
6239 | bool _result; | |
6240 | wxTextCtrl * _arg0; | |
6241 | PyObject * _argo0 = 0; | |
6242 | char *_kwnames[] = { "self", NULL }; | |
6243 | ||
6244 | self = self; | |
6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) | |
6246 | return NULL; | |
6247 | if (_argo0) { | |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); | |
6251 | return NULL; | |
6252 | } | |
6253 | } | |
6254 | { | |
6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6256 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
6257 | ||
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) return NULL; | |
6260 | } _resultobj = Py_BuildValue("i",_result); | |
6261 | return _resultobj; | |
6262 | } | |
6263 | ||
6264 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
6265 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6266 | PyObject * _resultobj; | |
6267 | wxTextCtrl * _arg0; | |
6268 | long * _arg1; | |
6269 | long temp; | |
6270 | long * _arg2; | |
6271 | long temp0; | |
6272 | PyObject * _argo0 = 0; | |
6273 | char *_kwnames[] = { "self", NULL }; | |
6274 | ||
6275 | self = self; | |
6276 | { | |
6277 | _arg1 = &temp; | |
6278 | } | |
6279 | { | |
6280 | _arg2 = &temp0; | |
6281 | } | |
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
6283 | return NULL; | |
6284 | if (_argo0) { | |
6285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); | |
6288 | return NULL; | |
6289 | } | |
6290 | } | |
6291 | { | |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
6294 | ||
6295 | wxPyEndAllowThreads(__tstate); | |
6296 | if (PyErr_Occurred()) return NULL; | |
6297 | } Py_INCREF(Py_None); | |
6298 | _resultobj = Py_None; | |
6299 | { | |
6300 | PyObject *o; | |
6301 | o = PyInt_FromLong((long) (*_arg1)); | |
6302 | _resultobj = t_output_helper(_resultobj, o); | |
6303 | } | |
6304 | { | |
6305 | PyObject *o; | |
6306 | o = PyInt_FromLong((long) (*_arg2)); | |
6307 | _resultobj = t_output_helper(_resultobj, o); | |
6308 | } | |
6309 | return _resultobj; | |
6310 | } | |
6311 | ||
6312 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
6313 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6314 | PyObject * _resultobj; | |
6315 | wxString * _result; | |
6316 | wxTextCtrl * _arg0; | |
6317 | PyObject * _argo0 = 0; | |
6318 | char *_kwnames[] = { "self", NULL }; | |
6319 | ||
6320 | self = self; | |
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6322 | return NULL; | |
6323 | if (_argo0) { | |
6324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
6330 | { | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); | |
6333 | ||
6334 | wxPyEndAllowThreads(__tstate); | |
6335 | if (PyErr_Occurred()) return NULL; | |
6336 | }{ | |
6337 | #if wxUSE_UNICODE | |
6338 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6339 | #else | |
6340 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6341 | #endif | |
6342 | } | |
6343 | { | |
6344 | delete _result; | |
6345 | } | |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
6349 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
6350 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | wxTextCtrl * _arg0; | |
6353 | PyObject * _argo0 = 0; | |
6354 | char *_kwnames[] = { "self", NULL }; | |
6355 | ||
6356 | self = self; | |
6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) | |
6358 | return NULL; | |
6359 | if (_argo0) { | |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); | |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | wxTextCtrl_Clear(_arg0); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) return NULL; | |
6372 | } Py_INCREF(Py_None); | |
6373 | _resultobj = Py_None; | |
6374 | return _resultobj; | |
6375 | } | |
6376 | ||
6377 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
6378 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6379 | PyObject * _resultobj; | |
6380 | wxTextCtrl * _arg0; | |
6381 | long _arg1; | |
6382 | long _arg2; | |
6383 | wxString * _arg3; | |
6384 | PyObject * _argo0 = 0; | |
6385 | PyObject * _obj3 = 0; | |
6386 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
6387 | ||
6388 | self = self; | |
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
6390 | return NULL; | |
6391 | if (_argo0) { | |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); | |
6395 | return NULL; | |
6396 | } | |
6397 | } | |
6398 | { | |
6399 | _arg3 = wxString_in_helper(_obj3); | |
6400 | if (_arg3 == NULL) | |
6401 | return NULL; | |
6402 | } | |
6403 | { | |
6404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6405 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) return NULL; | |
6409 | } Py_INCREF(Py_None); | |
6410 | _resultobj = Py_None; | |
6411 | { | |
6412 | if (_obj3) | |
6413 | delete _arg3; | |
6414 | } | |
6415 | return _resultobj; | |
6416 | } | |
6417 | ||
6418 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
6419 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject * _resultobj; | |
6421 | wxTextCtrl * _arg0; | |
6422 | long _arg1; | |
6423 | long _arg2; | |
6424 | PyObject * _argo0 = 0; | |
6425 | char *_kwnames[] = { "self","from","to", NULL }; | |
6426 | ||
6427 | self = self; | |
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6429 | return NULL; | |
6430 | if (_argo0) { | |
6431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); | |
6434 | return NULL; | |
6435 | } | |
6436 | } | |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
6440 | ||
6441 | wxPyEndAllowThreads(__tstate); | |
6442 | if (PyErr_Occurred()) return NULL; | |
6443 | } Py_INCREF(Py_None); | |
6444 | _resultobj = Py_None; | |
6445 | return _resultobj; | |
6446 | } | |
6447 | ||
6448 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
6449 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6450 | PyObject * _resultobj; | |
6451 | bool _result; | |
6452 | wxTextCtrl * _arg0; | |
6453 | wxString * _arg1; | |
6454 | PyObject * _argo0 = 0; | |
6455 | PyObject * _obj1 = 0; | |
6456 | char *_kwnames[] = { "self","file", NULL }; | |
6457 | ||
6458 | self = self; | |
6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) | |
6460 | return NULL; | |
6461 | if (_argo0) { | |
6462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); | |
6465 | return NULL; | |
6466 | } | |
6467 | } | |
6468 | { | |
6469 | _arg1 = wxString_in_helper(_obj1); | |
6470 | if (_arg1 == NULL) | |
6471 | return NULL; | |
6472 | } | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) return NULL; | |
6479 | } _resultobj = Py_BuildValue("i",_result); | |
6480 | { | |
6481 | if (_obj1) | |
6482 | delete _arg1; | |
6483 | } | |
6484 | return _resultobj; | |
6485 | } | |
6486 | ||
6487 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
6488 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject * _resultobj; | |
6490 | bool _result; | |
6491 | wxTextCtrl * _arg0; | |
6492 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
6493 | PyObject * _argo0 = 0; | |
6494 | PyObject * _obj1 = 0; | |
6495 | char *_kwnames[] = { "self","file", NULL }; | |
6496 | ||
6497 | self = self; | |
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) | |
6499 | return NULL; | |
6500 | if (_argo0) { | |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); | |
6504 | return NULL; | |
6505 | } | |
6506 | } | |
6507 | if (_obj1) | |
6508 | { | |
6509 | _arg1 = wxString_in_helper(_obj1); | |
6510 | if (_arg1 == NULL) | |
6511 | return NULL; | |
6512 | } | |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) return NULL; | |
6519 | } _resultobj = Py_BuildValue("i",_result); | |
6520 | { | |
6521 | if (_obj1) | |
6522 | delete _arg1; | |
6523 | } | |
6524 | return _resultobj; | |
6525 | } | |
6526 | ||
6527 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
6528 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject * _resultobj; | |
6530 | wxTextCtrl * _arg0; | |
6531 | PyObject * _argo0 = 0; | |
6532 | char *_kwnames[] = { "self", NULL }; | |
6533 | ||
6534 | self = self; | |
6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) | |
6536 | return NULL; | |
6537 | if (_argo0) { | |
6538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); | |
6541 | return NULL; | |
6542 | } | |
6543 | } | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | wxTextCtrl_DiscardEdits(_arg0); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) return NULL; | |
6550 | } Py_INCREF(Py_None); | |
6551 | _resultobj = Py_None; | |
6552 | return _resultobj; | |
6553 | } | |
6554 | ||
6555 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) | |
6556 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6557 | PyObject * _resultobj; | |
6558 | wxTextCtrl * _arg0; | |
6559 | unsigned long _arg1; | |
6560 | PyObject * _argo0 = 0; | |
6561 | char *_kwnames[] = { "self","len", NULL }; | |
6562 | ||
6563 | self = self; | |
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) | |
6565 | return NULL; | |
6566 | if (_argo0) { | |
6567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); | |
6570 | return NULL; | |
6571 | } | |
6572 | } | |
6573 | { | |
6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6575 | wxTextCtrl_SetMaxLength(_arg0,_arg1); | |
6576 | ||
6577 | wxPyEndAllowThreads(__tstate); | |
6578 | if (PyErr_Occurred()) return NULL; | |
6579 | } Py_INCREF(Py_None); | |
6580 | _resultobj = Py_None; | |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
6584 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
6585 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | wxTextCtrl * _arg0; | |
6588 | wxString * _arg1; | |
6589 | PyObject * _argo0 = 0; | |
6590 | PyObject * _obj1 = 0; | |
6591 | char *_kwnames[] = { "self","text", NULL }; | |
6592 | ||
6593 | self = self; | |
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) | |
6595 | return NULL; | |
6596 | if (_argo0) { | |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); | |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
6603 | { | |
6604 | _arg1 = wxString_in_helper(_obj1); | |
6605 | if (_arg1 == NULL) | |
6606 | return NULL; | |
6607 | } | |
6608 | { | |
6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6610 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
6611 | ||
6612 | wxPyEndAllowThreads(__tstate); | |
6613 | if (PyErr_Occurred()) return NULL; | |
6614 | } Py_INCREF(Py_None); | |
6615 | _resultobj = Py_None; | |
6616 | { | |
6617 | if (_obj1) | |
6618 | delete _arg1; | |
6619 | } | |
6620 | return _resultobj; | |
6621 | } | |
6622 | ||
6623 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
6624 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6625 | PyObject * _resultobj; | |
6626 | wxTextCtrl * _arg0; | |
6627 | wxString * _arg1; | |
6628 | PyObject * _argo0 = 0; | |
6629 | PyObject * _obj1 = 0; | |
6630 | char *_kwnames[] = { "self","text", NULL }; | |
6631 | ||
6632 | self = self; | |
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) | |
6634 | return NULL; | |
6635 | if (_argo0) { | |
6636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); | |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
6642 | { | |
6643 | _arg1 = wxString_in_helper(_obj1); | |
6644 | if (_arg1 == NULL) | |
6645 | return NULL; | |
6646 | } | |
6647 | { | |
6648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6649 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
6650 | ||
6651 | wxPyEndAllowThreads(__tstate); | |
6652 | if (PyErr_Occurred()) return NULL; | |
6653 | } Py_INCREF(Py_None); | |
6654 | _resultobj = Py_None; | |
6655 | { | |
6656 | if (_obj1) | |
6657 | delete _arg1; | |
6658 | } | |
6659 | return _resultobj; | |
6660 | } | |
6661 | ||
6662 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) | |
6663 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject * _resultobj; | |
6665 | bool _result; | |
6666 | wxTextCtrl * _arg0; | |
6667 | long _arg1; | |
6668 | long _arg2; | |
6669 | wxTextAttr * _arg3; | |
6670 | PyObject * _argo0 = 0; | |
6671 | PyObject * _argo3 = 0; | |
6672 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
6673 | ||
6674 | self = self; | |
6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
6676 | return NULL; | |
6677 | if (_argo0) { | |
6678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
6681 | return NULL; | |
6682 | } | |
6683 | } | |
6684 | if (_argo3) { | |
6685 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6686 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
6688 | return NULL; | |
6689 | } | |
6690 | } | |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
6694 | ||
6695 | wxPyEndAllowThreads(__tstate); | |
6696 | if (PyErr_Occurred()) return NULL; | |
6697 | } _resultobj = Py_BuildValue("i",_result); | |
6698 | return _resultobj; | |
6699 | } | |
6700 | ||
6701 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
6702 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject * _resultobj; | |
6704 | bool _result; | |
6705 | wxTextCtrl * _arg0; | |
6706 | wxTextAttr * _arg1; | |
6707 | PyObject * _argo0 = 0; | |
6708 | PyObject * _argo1 = 0; | |
6709 | char *_kwnames[] = { "self","style", NULL }; | |
6710 | ||
6711 | self = self; | |
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
6713 | return NULL; | |
6714 | if (_argo0) { | |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
6721 | if (_argo1) { | |
6722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
6728 | { | |
6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6730 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
6731 | ||
6732 | wxPyEndAllowThreads(__tstate); | |
6733 | if (PyErr_Occurred()) return NULL; | |
6734 | } _resultobj = Py_BuildValue("i",_result); | |
6735 | return _resultobj; | |
6736 | } | |
6737 | ||
6738 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
6739 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6740 | PyObject * _resultobj; | |
6741 | wxTextAttr * _result; | |
6742 | wxTextCtrl * _arg0; | |
6743 | PyObject * _argo0 = 0; | |
6744 | char *_kwnames[] = { "self", NULL }; | |
6745 | char _ptemp[128]; | |
6746 | ||
6747 | self = self; | |
6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
6749 | return NULL; | |
6750 | if (_argo0) { | |
6751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
6754 | return NULL; | |
6755 | } | |
6756 | } | |
6757 | { | |
6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6759 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
6760 | _result = (wxTextAttr *) &_result_ref; | |
6761 | ||
6762 | wxPyEndAllowThreads(__tstate); | |
6763 | if (PyErr_Occurred()) return NULL; | |
6764 | } if (_result) { | |
6765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6766 | _resultobj = Py_BuildValue("s",_ptemp); | |
6767 | } else { | |
6768 | Py_INCREF(Py_None); | |
6769 | _resultobj = Py_None; | |
6770 | } | |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
6775 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject * _resultobj; | |
6777 | long _result; | |
6778 | wxTextCtrl * _arg0; | |
6779 | long _arg1; | |
6780 | long _arg2; | |
6781 | PyObject * _argo0 = 0; | |
6782 | char *_kwnames[] = { "self","x","y", NULL }; | |
6783 | ||
6784 | self = self; | |
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6786 | return NULL; | |
6787 | if (_argo0) { | |
6788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); | |
6791 | return NULL; | |
6792 | } | |
6793 | } | |
6794 | { | |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) return NULL; | |
6800 | } _resultobj = Py_BuildValue("l",_result); | |
6801 | return _resultobj; | |
6802 | } | |
6803 | ||
6804 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
6805 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject * _resultobj; | |
6807 | wxTextCtrl * _arg0; | |
6808 | long _arg1; | |
6809 | long * _arg2; | |
6810 | long temp; | |
6811 | long * _arg3; | |
6812 | long temp0; | |
6813 | PyObject * _argo0 = 0; | |
6814 | char *_kwnames[] = { "self","pos", NULL }; | |
6815 | ||
6816 | self = self; | |
6817 | { | |
6818 | _arg2 = &temp; | |
6819 | } | |
6820 | { | |
6821 | _arg3 = &temp0; | |
6822 | } | |
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
6824 | return NULL; | |
6825 | if (_argo0) { | |
6826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); | |
6829 | return NULL; | |
6830 | } | |
6831 | } | |
6832 | { | |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) return NULL; | |
6838 | } Py_INCREF(Py_None); | |
6839 | _resultobj = Py_None; | |
6840 | { | |
6841 | PyObject *o; | |
6842 | o = PyInt_FromLong((long) (*_arg2)); | |
6843 | _resultobj = t_output_helper(_resultobj, o); | |
6844 | } | |
6845 | { | |
6846 | PyObject *o; | |
6847 | o = PyInt_FromLong((long) (*_arg3)); | |
6848 | _resultobj = t_output_helper(_resultobj, o); | |
6849 | } | |
6850 | return _resultobj; | |
6851 | } | |
6852 | ||
6853 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
6854 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject * _resultobj; | |
6856 | wxTextCtrl * _arg0; | |
6857 | long _arg1; | |
6858 | PyObject * _argo0 = 0; | |
6859 | char *_kwnames[] = { "self","pos", NULL }; | |
6860 | ||
6861 | self = self; | |
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) | |
6863 | return NULL; | |
6864 | if (_argo0) { | |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); | |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
6876 | if (PyErr_Occurred()) return NULL; | |
6877 | } Py_INCREF(Py_None); | |
6878 | _resultobj = Py_None; | |
6879 | return _resultobj; | |
6880 | } | |
6881 | ||
6882 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
6883 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject * _resultobj; | |
6885 | wxTextCtrl * _arg0; | |
6886 | PyObject * _argo0 = 0; | |
6887 | char *_kwnames[] = { "self", NULL }; | |
6888 | ||
6889 | self = self; | |
6890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) | |
6891 | return NULL; | |
6892 | if (_argo0) { | |
6893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); | |
6896 | return NULL; | |
6897 | } | |
6898 | } | |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | wxTextCtrl_Copy(_arg0); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) return NULL; | |
6905 | } Py_INCREF(Py_None); | |
6906 | _resultobj = Py_None; | |
6907 | return _resultobj; | |
6908 | } | |
6909 | ||
6910 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
6911 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6912 | PyObject * _resultobj; | |
6913 | wxTextCtrl * _arg0; | |
6914 | PyObject * _argo0 = 0; | |
6915 | char *_kwnames[] = { "self", NULL }; | |
6916 | ||
6917 | self = self; | |
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) | |
6919 | return NULL; | |
6920 | if (_argo0) { | |
6921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); | |
6924 | return NULL; | |
6925 | } | |
6926 | } | |
6927 | { | |
6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6929 | wxTextCtrl_Cut(_arg0); | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
6932 | if (PyErr_Occurred()) return NULL; | |
6933 | } Py_INCREF(Py_None); | |
6934 | _resultobj = Py_None; | |
6935 | return _resultobj; | |
6936 | } | |
6937 | ||
6938 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
6939 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6940 | PyObject * _resultobj; | |
6941 | wxTextCtrl * _arg0; | |
6942 | PyObject * _argo0 = 0; | |
6943 | char *_kwnames[] = { "self", NULL }; | |
6944 | ||
6945 | self = self; | |
6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) | |
6947 | return NULL; | |
6948 | if (_argo0) { | |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); | |
6952 | return NULL; | |
6953 | } | |
6954 | } | |
6955 | { | |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6957 | wxTextCtrl_Paste(_arg0); | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
6960 | if (PyErr_Occurred()) return NULL; | |
6961 | } Py_INCREF(Py_None); | |
6962 | _resultobj = Py_None; | |
6963 | return _resultobj; | |
6964 | } | |
6965 | ||
6966 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) | |
6967 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6968 | PyObject * _resultobj; | |
6969 | bool _result; | |
6970 | wxTextCtrl * _arg0; | |
6971 | PyObject * _argo0 = 0; | |
6972 | char *_kwnames[] = { "self", NULL }; | |
6973 | ||
6974 | self = self; | |
6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) | |
6976 | return NULL; | |
6977 | if (_argo0) { | |
6978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); | |
6981 | return NULL; | |
6982 | } | |
6983 | } | |
6984 | { | |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) return NULL; | |
6990 | } _resultobj = Py_BuildValue("i",_result); | |
6991 | return _resultobj; | |
6992 | } | |
6993 | ||
6994 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
6995 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject * _resultobj; | |
6997 | bool _result; | |
6998 | wxTextCtrl * _arg0; | |
6999 | PyObject * _argo0 = 0; | |
7000 | char *_kwnames[] = { "self", NULL }; | |
7001 | ||
7002 | self = self; | |
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) | |
7004 | return NULL; | |
7005 | if (_argo0) { | |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); | |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) return NULL; | |
7018 | } _resultobj = Py_BuildValue("i",_result); | |
7019 | return _resultobj; | |
7020 | } | |
7021 | ||
7022 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
7023 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7024 | PyObject * _resultobj; | |
7025 | bool _result; | |
7026 | wxTextCtrl * _arg0; | |
7027 | PyObject * _argo0 = 0; | |
7028 | char *_kwnames[] = { "self", NULL }; | |
7029 | ||
7030 | self = self; | |
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) | |
7032 | return NULL; | |
7033 | if (_argo0) { | |
7034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); | |
7037 | return NULL; | |
7038 | } | |
7039 | } | |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) return NULL; | |
7046 | } _resultobj = Py_BuildValue("i",_result); | |
7047 | return _resultobj; | |
7048 | } | |
7049 | ||
7050 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) | |
7051 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7052 | PyObject * _resultobj; | |
7053 | wxTextCtrl * _arg0; | |
7054 | PyObject * _argo0 = 0; | |
7055 | char *_kwnames[] = { "self", NULL }; | |
7056 | ||
7057 | self = self; | |
7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
7059 | return NULL; | |
7060 | if (_argo0) { | |
7061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
7064 | return NULL; | |
7065 | } | |
7066 | } | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | wxTextCtrl_Undo(_arg0); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) return NULL; | |
7073 | } Py_INCREF(Py_None); | |
7074 | _resultobj = Py_None; | |
7075 | return _resultobj; | |
7076 | } | |
7077 | ||
7078 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
7079 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject * _resultobj; | |
7081 | wxTextCtrl * _arg0; | |
7082 | PyObject * _argo0 = 0; | |
7083 | char *_kwnames[] = { "self", NULL }; | |
7084 | ||
7085 | self = self; | |
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
7087 | return NULL; | |
7088 | if (_argo0) { | |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | wxTextCtrl_Redo(_arg0); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) return NULL; | |
7101 | } Py_INCREF(Py_None); | |
7102 | _resultobj = Py_None; | |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
7107 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | bool _result; | |
7110 | wxTextCtrl * _arg0; | |
7111 | PyObject * _argo0 = 0; | |
7112 | char *_kwnames[] = { "self", NULL }; | |
7113 | ||
7114 | self = self; | |
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) | |
7116 | return NULL; | |
7117 | if (_argo0) { | |
7118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); | |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
7124 | { | |
7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7126 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
7127 | ||
7128 | wxPyEndAllowThreads(__tstate); | |
7129 | if (PyErr_Occurred()) return NULL; | |
7130 | } _resultobj = Py_BuildValue("i",_result); | |
7131 | return _resultobj; | |
7132 | } | |
7133 | ||
7134 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
7135 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7136 | PyObject * _resultobj; | |
7137 | bool _result; | |
7138 | wxTextCtrl * _arg0; | |
7139 | PyObject * _argo0 = 0; | |
7140 | char *_kwnames[] = { "self", NULL }; | |
7141 | ||
7142 | self = self; | |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) | |
7144 | return NULL; | |
7145 | if (_argo0) { | |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); | |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
7152 | { | |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
7155 | ||
7156 | wxPyEndAllowThreads(__tstate); | |
7157 | if (PyErr_Occurred()) return NULL; | |
7158 | } _resultobj = Py_BuildValue("i",_result); | |
7159 | return _resultobj; | |
7160 | } | |
7161 | ||
7162 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
7163 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7164 | PyObject * _resultobj; | |
7165 | wxTextCtrl * _arg0; | |
7166 | long _arg1; | |
7167 | PyObject * _argo0 = 0; | |
7168 | char *_kwnames[] = { "self","pos", NULL }; | |
7169 | ||
7170 | self = self; | |
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
7172 | return NULL; | |
7173 | if (_argo0) { | |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); | |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
7180 | { | |
7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7182 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
7183 | ||
7184 | wxPyEndAllowThreads(__tstate); | |
7185 | if (PyErr_Occurred()) return NULL; | |
7186 | } Py_INCREF(Py_None); | |
7187 | _resultobj = Py_None; | |
7188 | return _resultobj; | |
7189 | } | |
7190 | ||
7191 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
7192 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject * _resultobj; | |
7194 | wxTextCtrl * _arg0; | |
7195 | PyObject * _argo0 = 0; | |
7196 | char *_kwnames[] = { "self", NULL }; | |
7197 | ||
7198 | self = self; | |
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) | |
7200 | return NULL; | |
7201 | if (_argo0) { | |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); | |
7205 | return NULL; | |
7206 | } | |
7207 | } | |
7208 | { | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) return NULL; | |
7214 | } Py_INCREF(Py_None); | |
7215 | _resultobj = Py_None; | |
7216 | return _resultobj; | |
7217 | } | |
7218 | ||
7219 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
7220 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject * _resultobj; | |
7222 | long _result; | |
7223 | wxTextCtrl * _arg0; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) return NULL; | |
7243 | } _resultobj = Py_BuildValue("l",_result); | |
7244 | return _resultobj; | |
7245 | } | |
7246 | ||
7247 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
7248 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject * _resultobj; | |
7250 | long _result; | |
7251 | wxTextCtrl * _arg0; | |
7252 | PyObject * _argo0 = 0; | |
7253 | char *_kwnames[] = { "self", NULL }; | |
7254 | ||
7255 | self = self; | |
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) | |
7257 | return NULL; | |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); | |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
7265 | { | |
7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7267 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
7268 | ||
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) return NULL; | |
7271 | } _resultobj = Py_BuildValue("l",_result); | |
7272 | return _resultobj; | |
7273 | } | |
7274 | ||
7275 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7276 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject * _resultobj; | |
7278 | wxTextCtrl * _arg0; | |
7279 | long _arg1; | |
7280 | long _arg2; | |
7281 | PyObject * _argo0 = 0; | |
7282 | char *_kwnames[] = { "self","from","to", NULL }; | |
7283 | ||
7284 | self = self; | |
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7286 | return NULL; | |
7287 | if (_argo0) { | |
7288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
7291 | return NULL; | |
7292 | } | |
7293 | } | |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) return NULL; | |
7300 | } Py_INCREF(Py_None); | |
7301 | _resultobj = Py_None; | |
7302 | return _resultobj; | |
7303 | } | |
7304 | ||
7305 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) | |
7306 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7307 | PyObject * _resultobj; | |
7308 | wxTextCtrl * _arg0; | |
7309 | PyObject * _argo0 = 0; | |
7310 | char *_kwnames[] = { "self", NULL }; | |
7311 | ||
7312 | self = self; | |
7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) | |
7314 | return NULL; | |
7315 | if (_argo0) { | |
7316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); | |
7319 | return NULL; | |
7320 | } | |
7321 | } | |
7322 | { | |
7323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7324 | wxTextCtrl_SelectAll(_arg0); | |
7325 | ||
7326 | wxPyEndAllowThreads(__tstate); | |
7327 | if (PyErr_Occurred()) return NULL; | |
7328 | } Py_INCREF(Py_None); | |
7329 | _resultobj = Py_None; | |
7330 | return _resultobj; | |
7331 | } | |
7332 | ||
7333 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
7334 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject * _resultobj; | |
7336 | wxTextCtrl * _arg0; | |
7337 | bool _arg1; | |
7338 | PyObject * _argo0 = 0; | |
7339 | int tempbool1; | |
7340 | char *_kwnames[] = { "self","editable", NULL }; | |
7341 | ||
7342 | self = self; | |
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
7344 | return NULL; | |
7345 | if (_argo0) { | |
7346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); | |
7349 | return NULL; | |
7350 | } | |
7351 | } | |
7352 | _arg1 = (bool ) tempbool1; | |
7353 | { | |
7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7355 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
7356 | ||
7357 | wxPyEndAllowThreads(__tstate); | |
7358 | if (PyErr_Occurred()) return NULL; | |
7359 | } Py_INCREF(Py_None); | |
7360 | _resultobj = Py_None; | |
7361 | return _resultobj; | |
7362 | } | |
7363 | ||
7364 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
7365 | self->AppendText(text); | |
7366 | } | |
7367 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject * _resultobj; | |
7369 | wxTextCtrl * _arg0; | |
7370 | wxString * _arg1; | |
7371 | PyObject * _argo0 = 0; | |
7372 | PyObject * _obj1 = 0; | |
7373 | char *_kwnames[] = { "self","text", NULL }; | |
7374 | ||
7375 | self = self; | |
7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
7377 | return NULL; | |
7378 | if (_argo0) { | |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
7382 | return NULL; | |
7383 | } | |
7384 | } | |
7385 | { | |
7386 | _arg1 = wxString_in_helper(_obj1); | |
7387 | if (_arg1 == NULL) | |
7388 | return NULL; | |
7389 | } | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | wxTextCtrl_write(_arg0,*_arg1); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) return NULL; | |
7396 | } Py_INCREF(Py_None); | |
7397 | _resultobj = Py_None; | |
7398 | { | |
7399 | if (_obj1) | |
7400 | delete _arg1; | |
7401 | } | |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { | |
7406 | return self->GetValue().Mid(from, to-from); | |
7407 | } | |
7408 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject * _resultobj; | |
7410 | wxString * _result; | |
7411 | wxTextCtrl * _arg0; | |
7412 | long _arg1; | |
7413 | long _arg2; | |
7414 | PyObject * _argo0 = 0; | |
7415 | char *_kwnames[] = { "self","from","to", NULL }; | |
7416 | ||
7417 | self = self; | |
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7419 | return NULL; | |
7420 | if (_argo0) { | |
7421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
7424 | return NULL; | |
7425 | } | |
7426 | } | |
7427 | { | |
7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7429 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); | |
7430 | ||
7431 | wxPyEndAllowThreads(__tstate); | |
7432 | if (PyErr_Occurred()) return NULL; | |
7433 | }{ | |
7434 | #if wxUSE_UNICODE | |
7435 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7436 | #else | |
7437 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7438 | #endif | |
7439 | } | |
7440 | { | |
7441 | delete _result; | |
7442 | } | |
7443 | return _resultobj; | |
7444 | } | |
7445 | ||
7446 | static void *SwigwxScrollBarTowxControl(void *ptr) { | |
7447 | wxScrollBar *src; | |
7448 | wxControl *dest; | |
7449 | src = (wxScrollBar *) ptr; | |
7450 | dest = (wxControl *) src; | |
7451 | return (void *) dest; | |
7452 | } | |
7453 | ||
7454 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
7455 | wxScrollBar *src; | |
7456 | wxWindow *dest; | |
7457 | src = (wxScrollBar *) ptr; | |
7458 | dest = (wxWindow *) src; | |
7459 | return (void *) dest; | |
7460 | } | |
7461 | ||
7462 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
7463 | wxScrollBar *src; | |
7464 | wxEvtHandler *dest; | |
7465 | src = (wxScrollBar *) ptr; | |
7466 | dest = (wxEvtHandler *) src; | |
7467 | return (void *) dest; | |
7468 | } | |
7469 | ||
7470 | static void *SwigwxScrollBarTowxObject(void *ptr) { | |
7471 | wxScrollBar *src; | |
7472 | wxObject *dest; | |
7473 | src = (wxScrollBar *) ptr; | |
7474 | dest = (wxObject *) src; | |
7475 | return (void *) dest; | |
7476 | } | |
7477 | ||
7478 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7479 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7480 | PyObject * _resultobj; | |
7481 | wxScrollBar * _result; | |
7482 | wxWindow * _arg0; | |
7483 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7484 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
7485 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
7486 | long _arg4 = (long ) wxSB_HORIZONTAL; | |
7487 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
7488 | char * _arg6 = (char *) "scrollBar"; | |
7489 | PyObject * _argo0 = 0; | |
7490 | wxPoint temp; | |
7491 | PyObject * _obj2 = 0; | |
7492 | wxSize temp0; | |
7493 | PyObject * _obj3 = 0; | |
7494 | PyObject * _argo5 = 0; | |
7495 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
7496 | char _ptemp[128]; | |
7497 | ||
7498 | self = self; | |
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
7500 | return NULL; | |
7501 | if (_argo0) { | |
7502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); | |
7505 | return NULL; | |
7506 | } | |
7507 | } | |
7508 | if (_obj2) | |
7509 | { | |
7510 | _arg2 = &temp; | |
7511 | if (! wxPoint_helper(_obj2, &_arg2)) | |
7512 | return NULL; | |
7513 | } | |
7514 | if (_obj3) | |
7515 | { | |
7516 | _arg3 = &temp0; | |
7517 | if (! wxSize_helper(_obj3, &_arg3)) | |
7518 | return NULL; | |
7519 | } | |
7520 | if (_argo5) { | |
7521 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); | |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
7527 | { | |
7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7529 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
7530 | ||
7531 | wxPyEndAllowThreads(__tstate); | |
7532 | if (PyErr_Occurred()) return NULL; | |
7533 | } if (_result) { | |
7534 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7535 | _resultobj = Py_BuildValue("s",_ptemp); | |
7536 | } else { | |
7537 | Py_INCREF(Py_None); | |
7538 | _resultobj = Py_None; | |
7539 | } | |
7540 | return _resultobj; | |
7541 | } | |
7542 | ||
7543 | #define new_wxPreScrollBar() (new wxScrollBar()) | |
7544 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7545 | PyObject * _resultobj; | |
7546 | wxScrollBar * _result; | |
7547 | char *_kwnames[] = { NULL }; | |
7548 | char _ptemp[128]; | |
7549 | ||
7550 | self = self; | |
7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
7552 | return NULL; | |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | _result = (wxScrollBar *)new_wxPreScrollBar(); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) return NULL; | |
7559 | } if (_result) { | |
7560 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
7561 | _resultobj = Py_BuildValue("s",_ptemp); | |
7562 | } else { | |
7563 | Py_INCREF(Py_None); | |
7564 | _resultobj = Py_None; | |
7565 | } | |
7566 | return _resultobj; | |
7567 | } | |
7568 | ||
7569 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
7570 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7571 | PyObject * _resultobj; | |
7572 | bool _result; | |
7573 | wxScrollBar * _arg0; | |
7574 | wxWindow * _arg1; | |
7575 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7576 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7577 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7578 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
7579 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
7580 | char * _arg7 = (char *) "scrollBar"; | |
7581 | PyObject * _argo0 = 0; | |
7582 | PyObject * _argo1 = 0; | |
7583 | wxPoint temp; | |
7584 | PyObject * _obj3 = 0; | |
7585 | wxSize temp0; | |
7586 | PyObject * _obj4 = 0; | |
7587 | PyObject * _argo6 = 0; | |
7588 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
7589 | ||
7590 | self = self; | |
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
7592 | return NULL; | |
7593 | if (_argo0) { | |
7594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
7597 | return NULL; | |
7598 | } | |
7599 | } | |
7600 | if (_argo1) { | |
7601 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
7607 | if (_obj3) | |
7608 | { | |
7609 | _arg3 = &temp; | |
7610 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7611 | return NULL; | |
7612 | } | |
7613 | if (_obj4) | |
7614 | { | |
7615 | _arg4 = &temp0; | |
7616 | if (! wxSize_helper(_obj4, &_arg4)) | |
7617 | return NULL; | |
7618 | } | |
7619 | if (_argo6) { | |
7620 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7621 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
7623 | return NULL; | |
7624 | } | |
7625 | } | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
7629 | ||
7630 | wxPyEndAllowThreads(__tstate); | |
7631 | if (PyErr_Occurred()) return NULL; | |
7632 | } _resultobj = Py_BuildValue("i",_result); | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
7636 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
7637 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7638 | PyObject * _resultobj; | |
7639 | int _result; | |
7640 | wxScrollBar * _arg0; | |
7641 | PyObject * _argo0 = 0; | |
7642 | char *_kwnames[] = { "self", NULL }; | |
7643 | ||
7644 | self = self; | |
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) | |
7646 | return NULL; | |
7647 | if (_argo0) { | |
7648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); | |
7651 | return NULL; | |
7652 | } | |
7653 | } | |
7654 | { | |
7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7656 | _result = (int )wxScrollBar_GetRange(_arg0); | |
7657 | ||
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) return NULL; | |
7660 | } _resultobj = Py_BuildValue("i",_result); | |
7661 | return _resultobj; | |
7662 | } | |
7663 | ||
7664 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
7665 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject * _resultobj; | |
7667 | int _result; | |
7668 | wxScrollBar * _arg0; | |
7669 | PyObject * _argo0 = 0; | |
7670 | char *_kwnames[] = { "self", NULL }; | |
7671 | ||
7672 | self = self; | |
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) | |
7674 | return NULL; | |
7675 | if (_argo0) { | |
7676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); | |
7679 | return NULL; | |
7680 | } | |
7681 | } | |
7682 | { | |
7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7684 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
7685 | ||
7686 | wxPyEndAllowThreads(__tstate); | |
7687 | if (PyErr_Occurred()) return NULL; | |
7688 | } _resultobj = Py_BuildValue("i",_result); | |
7689 | return _resultobj; | |
7690 | } | |
7691 | ||
7692 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) | |
7693 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7694 | PyObject * _resultobj; | |
7695 | int _result; | |
7696 | wxScrollBar * _arg0; | |
7697 | PyObject * _argo0 = 0; | |
7698 | char *_kwnames[] = { "self", NULL }; | |
7699 | ||
7700 | self = self; | |
7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) | |
7702 | return NULL; | |
7703 | if (_argo0) { | |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); | |
7707 | return NULL; | |
7708 | } | |
7709 | } | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) return NULL; | |
7716 | } _resultobj = Py_BuildValue("i",_result); | |
7717 | return _resultobj; | |
7718 | } | |
7719 | ||
7720 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
7721 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7722 | PyObject * _resultobj; | |
7723 | int _result; | |
7724 | wxScrollBar * _arg0; | |
7725 | PyObject * _argo0 = 0; | |
7726 | char *_kwnames[] = { "self", NULL }; | |
7727 | ||
7728 | self = self; | |
7729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) | |
7730 | return NULL; | |
7731 | if (_argo0) { | |
7732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); | |
7735 | return NULL; | |
7736 | } | |
7737 | } | |
7738 | { | |
7739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7740 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
7741 | ||
7742 | wxPyEndAllowThreads(__tstate); | |
7743 | if (PyErr_Occurred()) return NULL; | |
7744 | } _resultobj = Py_BuildValue("i",_result); | |
7745 | return _resultobj; | |
7746 | } | |
7747 | ||
7748 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) | |
7749 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7750 | PyObject * _resultobj; | |
7751 | bool _result; | |
7752 | wxScrollBar * _arg0; | |
7753 | PyObject * _argo0 = 0; | |
7754 | char *_kwnames[] = { "self", NULL }; | |
7755 | ||
7756 | self = self; | |
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
7758 | return NULL; | |
7759 | if (_argo0) { | |
7760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
7763 | return NULL; | |
7764 | } | |
7765 | } | |
7766 | { | |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | _result = (bool )wxScrollBar_IsVertical(_arg0); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) return NULL; | |
7772 | } _resultobj = Py_BuildValue("i",_result); | |
7773 | return _resultobj; | |
7774 | } | |
7775 | ||
7776 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) | |
7777 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7778 | PyObject * _resultobj; | |
7779 | wxScrollBar * _arg0; | |
7780 | int _arg1; | |
7781 | PyObject * _argo0 = 0; | |
7782 | char *_kwnames[] = { "self","viewStart", NULL }; | |
7783 | ||
7784 | self = self; | |
7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) | |
7786 | return NULL; | |
7787 | if (_argo0) { | |
7788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); | |
7791 | return NULL; | |
7792 | } | |
7793 | } | |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) return NULL; | |
7800 | } Py_INCREF(Py_None); | |
7801 | _resultobj = Py_None; | |
7802 | return _resultobj; | |
7803 | } | |
7804 | ||
7805 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7806 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7807 | PyObject * _resultobj; | |
7808 | wxScrollBar * _arg0; | |
7809 | int _arg1; | |
7810 | int _arg2; | |
7811 | int _arg3; | |
7812 | int _arg4; | |
7813 | bool _arg5 = (bool ) TRUE; | |
7814 | PyObject * _argo0 = 0; | |
7815 | int tempbool5 = (int) TRUE; | |
7816 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; | |
7817 | ||
7818 | self = self; | |
7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) | |
7820 | return NULL; | |
7821 | if (_argo0) { | |
7822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); | |
7825 | return NULL; | |
7826 | } | |
7827 | } | |
7828 | _arg5 = (bool ) tempbool5; | |
7829 | { | |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) return NULL; | |
7835 | } Py_INCREF(Py_None); | |
7836 | _resultobj = Py_None; | |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
7841 | wxSpinButton *src; | |
7842 | wxControl *dest; | |
7843 | src = (wxSpinButton *) ptr; | |
7844 | dest = (wxControl *) src; | |
7845 | return (void *) dest; | |
7846 | } | |
7847 | ||
7848 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
7849 | wxSpinButton *src; | |
7850 | wxWindow *dest; | |
7851 | src = (wxSpinButton *) ptr; | |
7852 | dest = (wxWindow *) src; | |
7853 | return (void *) dest; | |
7854 | } | |
7855 | ||
7856 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
7857 | wxSpinButton *src; | |
7858 | wxEvtHandler *dest; | |
7859 | src = (wxSpinButton *) ptr; | |
7860 | dest = (wxEvtHandler *) src; | |
7861 | return (void *) dest; | |
7862 | } | |
7863 | ||
7864 | static void *SwigwxSpinButtonTowxObject(void *ptr) { | |
7865 | wxSpinButton *src; | |
7866 | wxObject *dest; | |
7867 | src = (wxSpinButton *) ptr; | |
7868 | dest = (wxObject *) src; | |
7869 | return (void *) dest; | |
7870 | } | |
7871 | ||
7872 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7873 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7874 | PyObject * _resultobj; | |
7875 | wxSpinButton * _result; | |
7876 | wxWindow * _arg0; | |
7877 | wxWindowID _arg1 = (wxWindowID ) -1; | |
7878 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
7879 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
7880 | long _arg4 = (long ) wxSP_HORIZONTAL; | |
7881 | char * _arg5 = (char *) "spinButton"; | |
7882 | PyObject * _argo0 = 0; | |
7883 | wxPoint temp; | |
7884 | PyObject * _obj2 = 0; | |
7885 | wxSize temp0; | |
7886 | PyObject * _obj3 = 0; | |
7887 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
7888 | char _ptemp[128]; | |
7889 | ||
7890 | self = self; | |
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
7892 | return NULL; | |
7893 | if (_argo0) { | |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); | |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
7900 | if (_obj2) | |
7901 | { | |
7902 | _arg2 = &temp; | |
7903 | if (! wxPoint_helper(_obj2, &_arg2)) | |
7904 | return NULL; | |
7905 | } | |
7906 | if (_obj3) | |
7907 | { | |
7908 | _arg3 = &temp0; | |
7909 | if (! wxSize_helper(_obj3, &_arg3)) | |
7910 | return NULL; | |
7911 | } | |
7912 | { | |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) return NULL; | |
7918 | } if (_result) { | |
7919 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7920 | _resultobj = Py_BuildValue("s",_ptemp); | |
7921 | } else { | |
7922 | Py_INCREF(Py_None); | |
7923 | _resultobj = Py_None; | |
7924 | } | |
7925 | return _resultobj; | |
7926 | } | |
7927 | ||
7928 | #define new_wxPreSpinButton() (new wxSpinButton()) | |
7929 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject * _resultobj; | |
7931 | wxSpinButton * _result; | |
7932 | char *_kwnames[] = { NULL }; | |
7933 | char _ptemp[128]; | |
7934 | ||
7935 | self = self; | |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
7937 | return NULL; | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | _result = (wxSpinButton *)new_wxPreSpinButton(); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) return NULL; | |
7944 | } if (_result) { | |
7945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
7946 | _resultobj = Py_BuildValue("s",_ptemp); | |
7947 | } else { | |
7948 | Py_INCREF(Py_None); | |
7949 | _resultobj = Py_None; | |
7950 | } | |
7951 | return _resultobj; | |
7952 | } | |
7953 | ||
7954 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7955 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject * _resultobj; | |
7957 | bool _result; | |
7958 | wxSpinButton * _arg0; | |
7959 | wxWindow * _arg1; | |
7960 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7961 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7962 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7963 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
7964 | char * _arg6 = (char *) "spinButton"; | |
7965 | PyObject * _argo0 = 0; | |
7966 | PyObject * _argo1 = 0; | |
7967 | wxPoint temp; | |
7968 | PyObject * _obj3 = 0; | |
7969 | wxSize temp0; | |
7970 | PyObject * _obj4 = 0; | |
7971 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
7972 | ||
7973 | self = self; | |
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
7975 | return NULL; | |
7976 | if (_argo0) { | |
7977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
7979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
7980 | return NULL; | |
7981 | } | |
7982 | } | |
7983 | if (_argo1) { | |
7984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
7987 | return NULL; | |
7988 | } | |
7989 | } | |
7990 | if (_obj3) | |
7991 | { | |
7992 | _arg3 = &temp; | |
7993 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7994 | return NULL; | |
7995 | } | |
7996 | if (_obj4) | |
7997 | { | |
7998 | _arg4 = &temp0; | |
7999 | if (! wxSize_helper(_obj4, &_arg4)) | |
8000 | return NULL; | |
8001 | } | |
8002 | { | |
8003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8004 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8005 | ||
8006 | wxPyEndAllowThreads(__tstate); | |
8007 | if (PyErr_Occurred()) return NULL; | |
8008 | } _resultobj = Py_BuildValue("i",_result); | |
8009 | return _resultobj; | |
8010 | } | |
8011 | ||
8012 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
8013 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8014 | PyObject * _resultobj; | |
8015 | int _result; | |
8016 | wxSpinButton * _arg0; | |
8017 | PyObject * _argo0 = 0; | |
8018 | char *_kwnames[] = { "self", NULL }; | |
8019 | ||
8020 | self = self; | |
8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) | |
8022 | return NULL; | |
8023 | if (_argo0) { | |
8024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); | |
8027 | return NULL; | |
8028 | } | |
8029 | } | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | _result = (int )wxSpinButton_GetMax(_arg0); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) return NULL; | |
8036 | } _resultobj = Py_BuildValue("i",_result); | |
8037 | return _resultobj; | |
8038 | } | |
8039 | ||
8040 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
8041 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8042 | PyObject * _resultobj; | |
8043 | int _result; | |
8044 | wxSpinButton * _arg0; | |
8045 | PyObject * _argo0 = 0; | |
8046 | char *_kwnames[] = { "self", NULL }; | |
8047 | ||
8048 | self = self; | |
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) | |
8050 | return NULL; | |
8051 | if (_argo0) { | |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); | |
8055 | return NULL; | |
8056 | } | |
8057 | } | |
8058 | { | |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | _result = (int )wxSpinButton_GetMin(_arg0); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) return NULL; | |
8064 | } _resultobj = Py_BuildValue("i",_result); | |
8065 | return _resultobj; | |
8066 | } | |
8067 | ||
8068 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8069 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject * _resultobj; | |
8071 | int _result; | |
8072 | wxSpinButton * _arg0; | |
8073 | PyObject * _argo0 = 0; | |
8074 | char *_kwnames[] = { "self", NULL }; | |
8075 | ||
8076 | self = self; | |
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) | |
8078 | return NULL; | |
8079 | if (_argo0) { | |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); | |
8083 | return NULL; | |
8084 | } | |
8085 | } | |
8086 | { | |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | _result = (int )wxSpinButton_GetValue(_arg0); | |
8089 | ||
8090 | wxPyEndAllowThreads(__tstate); | |
8091 | if (PyErr_Occurred()) return NULL; | |
8092 | } _resultobj = Py_BuildValue("i",_result); | |
8093 | return _resultobj; | |
8094 | } | |
8095 | ||
8096 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8097 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject * _resultobj; | |
8099 | wxSpinButton * _arg0; | |
8100 | int _arg1; | |
8101 | int _arg2; | |
8102 | PyObject * _argo0 = 0; | |
8103 | char *_kwnames[] = { "self","min","max", NULL }; | |
8104 | ||
8105 | self = self; | |
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8107 | return NULL; | |
8108 | if (_argo0) { | |
8109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); | |
8112 | return NULL; | |
8113 | } | |
8114 | } | |
8115 | { | |
8116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8117 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
8118 | ||
8119 | wxPyEndAllowThreads(__tstate); | |
8120 | if (PyErr_Occurred()) return NULL; | |
8121 | } Py_INCREF(Py_None); | |
8122 | _resultobj = Py_None; | |
8123 | return _resultobj; | |
8124 | } | |
8125 | ||
8126 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8127 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8128 | PyObject * _resultobj; | |
8129 | wxSpinButton * _arg0; | |
8130 | int _arg1; | |
8131 | PyObject * _argo0 = 0; | |
8132 | char *_kwnames[] = { "self","value", NULL }; | |
8133 | ||
8134 | self = self; | |
8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) | |
8136 | return NULL; | |
8137 | if (_argo0) { | |
8138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); | |
8141 | return NULL; | |
8142 | } | |
8143 | } | |
8144 | { | |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | wxSpinButton_SetValue(_arg0,_arg1); | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) return NULL; | |
8150 | } Py_INCREF(Py_None); | |
8151 | _resultobj = Py_None; | |
8152 | return _resultobj; | |
8153 | } | |
8154 | ||
8155 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8156 | wxStaticBitmap *src; | |
8157 | wxControl *dest; | |
8158 | src = (wxStaticBitmap *) ptr; | |
8159 | dest = (wxControl *) src; | |
8160 | return (void *) dest; | |
8161 | } | |
8162 | ||
8163 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8164 | wxStaticBitmap *src; | |
8165 | wxWindow *dest; | |
8166 | src = (wxStaticBitmap *) ptr; | |
8167 | dest = (wxWindow *) src; | |
8168 | return (void *) dest; | |
8169 | } | |
8170 | ||
8171 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8172 | wxStaticBitmap *src; | |
8173 | wxEvtHandler *dest; | |
8174 | src = (wxStaticBitmap *) ptr; | |
8175 | dest = (wxEvtHandler *) src; | |
8176 | return (void *) dest; | |
8177 | } | |
8178 | ||
8179 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { | |
8180 | wxStaticBitmap *src; | |
8181 | wxObject *dest; | |
8182 | src = (wxStaticBitmap *) ptr; | |
8183 | dest = (wxObject *) src; | |
8184 | return (void *) dest; | |
8185 | } | |
8186 | ||
8187 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8188 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8189 | PyObject * _resultobj; | |
8190 | wxStaticBitmap * _result; | |
8191 | wxWindow * _arg0; | |
8192 | wxWindowID _arg1; | |
8193 | wxBitmap * _arg2; | |
8194 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8195 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8196 | long _arg5 = (long ) 0; | |
8197 | char * _arg6 = (char *) "staticBitmap"; | |
8198 | PyObject * _argo0 = 0; | |
8199 | PyObject * _argo2 = 0; | |
8200 | wxPoint temp; | |
8201 | PyObject * _obj3 = 0; | |
8202 | wxSize temp0; | |
8203 | PyObject * _obj4 = 0; | |
8204 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
8205 | char _ptemp[128]; | |
8206 | ||
8207 | self = self; | |
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
8209 | return NULL; | |
8210 | if (_argo0) { | |
8211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8214 | return NULL; | |
8215 | } | |
8216 | } | |
8217 | if (_argo2) { | |
8218 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | if (_obj3) | |
8225 | { | |
8226 | _arg3 = &temp; | |
8227 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8228 | return NULL; | |
8229 | } | |
8230 | if (_obj4) | |
8231 | { | |
8232 | _arg4 = &temp0; | |
8233 | if (! wxSize_helper(_obj4, &_arg4)) | |
8234 | return NULL; | |
8235 | } | |
8236 | { | |
8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8238 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
8239 | ||
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) return NULL; | |
8242 | } if (_result) { | |
8243 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8244 | _resultobj = Py_BuildValue("s",_ptemp); | |
8245 | } else { | |
8246 | Py_INCREF(Py_None); | |
8247 | _resultobj = Py_None; | |
8248 | } | |
8249 | return _resultobj; | |
8250 | } | |
8251 | ||
8252 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8253 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8254 | PyObject * _resultobj; | |
8255 | wxStaticBitmap * _result; | |
8256 | char *_kwnames[] = { NULL }; | |
8257 | char _ptemp[128]; | |
8258 | ||
8259 | self = self; | |
8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8261 | return NULL; | |
8262 | { | |
8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8264 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); | |
8265 | ||
8266 | wxPyEndAllowThreads(__tstate); | |
8267 | if (PyErr_Occurred()) return NULL; | |
8268 | } if (_result) { | |
8269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8270 | _resultobj = Py_BuildValue("s",_ptemp); | |
8271 | } else { | |
8272 | Py_INCREF(Py_None); | |
8273 | _resultobj = Py_None; | |
8274 | } | |
8275 | return _resultobj; | |
8276 | } | |
8277 | ||
8278 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8279 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject * _resultobj; | |
8281 | bool _result; | |
8282 | wxStaticBitmap * _arg0; | |
8283 | wxWindow * _arg1; | |
8284 | wxWindowID _arg2; | |
8285 | wxBitmap * _arg3; | |
8286 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8287 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8288 | long _arg6 = (long ) 0; | |
8289 | char * _arg7 = (char *) "staticBitmap"; | |
8290 | PyObject * _argo0 = 0; | |
8291 | PyObject * _argo1 = 0; | |
8292 | PyObject * _argo3 = 0; | |
8293 | wxPoint temp; | |
8294 | PyObject * _obj4 = 0; | |
8295 | wxSize temp0; | |
8296 | PyObject * _obj5 = 0; | |
8297 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
8298 | ||
8299 | self = self; | |
8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
8301 | return NULL; | |
8302 | if (_argo0) { | |
8303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
8306 | return NULL; | |
8307 | } | |
8308 | } | |
8309 | if (_argo1) { | |
8310 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
8313 | return NULL; | |
8314 | } | |
8315 | } | |
8316 | if (_argo3) { | |
8317 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | if (_obj4) | |
8324 | { | |
8325 | _arg4 = &temp; | |
8326 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8327 | return NULL; | |
8328 | } | |
8329 | if (_obj5) | |
8330 | { | |
8331 | _arg5 = &temp0; | |
8332 | if (! wxSize_helper(_obj5, &_arg5)) | |
8333 | return NULL; | |
8334 | } | |
8335 | { | |
8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8337 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
8338 | ||
8339 | wxPyEndAllowThreads(__tstate); | |
8340 | if (PyErr_Occurred()) return NULL; | |
8341 | } _resultobj = Py_BuildValue("i",_result); | |
8342 | return _resultobj; | |
8343 | } | |
8344 | ||
8345 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
8346 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject * _resultobj; | |
8348 | wxBitmap * _result; | |
8349 | wxStaticBitmap * _arg0; | |
8350 | PyObject * _argo0 = 0; | |
8351 | char *_kwnames[] = { "self", NULL }; | |
8352 | char _ptemp[128]; | |
8353 | ||
8354 | self = self; | |
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) | |
8356 | return NULL; | |
8357 | if (_argo0) { | |
8358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); | |
8361 | return NULL; | |
8362 | } | |
8363 | } | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) return NULL; | |
8370 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
8371 | _resultobj = Py_BuildValue("s",_ptemp); | |
8372 | return _resultobj; | |
8373 | } | |
8374 | ||
8375 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
8376 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8377 | PyObject * _resultobj; | |
8378 | wxStaticBitmap * _arg0; | |
8379 | wxBitmap * _arg1; | |
8380 | PyObject * _argo0 = 0; | |
8381 | PyObject * _argo1 = 0; | |
8382 | char *_kwnames[] = { "self","bitmap", NULL }; | |
8383 | ||
8384 | self = self; | |
8385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
8386 | return NULL; | |
8387 | if (_argo0) { | |
8388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); | |
8391 | return NULL; | |
8392 | } | |
8393 | } | |
8394 | if (_argo1) { | |
8395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); | |
8398 | return NULL; | |
8399 | } | |
8400 | } | |
8401 | { | |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) return NULL; | |
8407 | } Py_INCREF(Py_None); | |
8408 | _resultobj = Py_None; | |
8409 | return _resultobj; | |
8410 | } | |
8411 | ||
8412 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
8413 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8414 | PyObject * _resultobj; | |
8415 | wxStaticBitmap * _arg0; | |
8416 | wxIcon * _arg1; | |
8417 | PyObject * _argo0 = 0; | |
8418 | PyObject * _argo1 = 0; | |
8419 | char *_kwnames[] = { "self","icon", NULL }; | |
8420 | ||
8421 | self = self; | |
8422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) | |
8423 | return NULL; | |
8424 | if (_argo0) { | |
8425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); | |
8428 | return NULL; | |
8429 | } | |
8430 | } | |
8431 | if (_argo1) { | |
8432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); | |
8435 | return NULL; | |
8436 | } | |
8437 | } | |
8438 | { | |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8440 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
8441 | ||
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) return NULL; | |
8444 | } Py_INCREF(Py_None); | |
8445 | _resultobj = Py_None; | |
8446 | return _resultobj; | |
8447 | } | |
8448 | ||
8449 | static void *SwigwxRadioBoxTowxControl(void *ptr) { | |
8450 | wxRadioBox *src; | |
8451 | wxControl *dest; | |
8452 | src = (wxRadioBox *) ptr; | |
8453 | dest = (wxControl *) src; | |
8454 | return (void *) dest; | |
8455 | } | |
8456 | ||
8457 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
8458 | wxRadioBox *src; | |
8459 | wxWindow *dest; | |
8460 | src = (wxRadioBox *) ptr; | |
8461 | dest = (wxWindow *) src; | |
8462 | return (void *) dest; | |
8463 | } | |
8464 | ||
8465 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
8466 | wxRadioBox *src; | |
8467 | wxEvtHandler *dest; | |
8468 | src = (wxRadioBox *) ptr; | |
8469 | dest = (wxEvtHandler *) src; | |
8470 | return (void *) dest; | |
8471 | } | |
8472 | ||
8473 | static void *SwigwxRadioBoxTowxObject(void *ptr) { | |
8474 | wxRadioBox *src; | |
8475 | wxObject *dest; | |
8476 | src = (wxRadioBox *) ptr; | |
8477 | dest = (wxObject *) src; | |
8478 | return (void *) dest; | |
8479 | } | |
8480 | ||
8481 | #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)) | |
8482 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8483 | PyObject * _resultobj; | |
8484 | wxRadioBox * _result; | |
8485 | wxWindow * _arg0; | |
8486 | wxWindowID _arg1; | |
8487 | wxString * _arg2; | |
8488 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8489 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8490 | int _arg5 = (int ) 0; | |
8491 | wxString * _arg6 = (wxString *) NULL; | |
8492 | int _arg7 = (int ) 0; | |
8493 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
8494 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
8495 | char * _arg10 = (char *) "radioBox"; | |
8496 | PyObject * _argo0 = 0; | |
8497 | PyObject * _obj2 = 0; | |
8498 | wxPoint temp; | |
8499 | PyObject * _obj3 = 0; | |
8500 | wxSize temp0; | |
8501 | PyObject * _obj4 = 0; | |
8502 | PyObject * _obj6 = 0; | |
8503 | PyObject * _argo9 = 0; | |
8504 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8505 | char _ptemp[128]; | |
8506 | ||
8507 | self = self; | |
8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOs:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_arg10)) | |
8509 | return NULL; | |
8510 | if (_argo0) { | |
8511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); | |
8514 | return NULL; | |
8515 | } | |
8516 | } | |
8517 | { | |
8518 | _arg2 = wxString_in_helper(_obj2); | |
8519 | if (_arg2 == NULL) | |
8520 | return NULL; | |
8521 | } | |
8522 | if (_obj3) | |
8523 | { | |
8524 | _arg3 = &temp; | |
8525 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8526 | return NULL; | |
8527 | } | |
8528 | if (_obj4) | |
8529 | { | |
8530 | _arg4 = &temp0; | |
8531 | if (! wxSize_helper(_obj4, &_arg4)) | |
8532 | return NULL; | |
8533 | } | |
8534 | if (_obj6) | |
8535 | { | |
8536 | _arg6 = wxString_LIST_helper(_obj6); | |
8537 | if (_arg6 == NULL) { | |
8538 | return NULL; | |
8539 | } | |
8540 | } | |
8541 | if (_argo9) { | |
8542 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
8543 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); | |
8545 | return NULL; | |
8546 | } | |
8547 | } | |
8548 | { | |
8549 | if (_obj6) { | |
8550 | _arg5 = PyList_Size(_obj6); | |
8551 | } | |
8552 | else { | |
8553 | _arg5 = 0; | |
8554 | } | |
8555 | } | |
8556 | { | |
8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8558 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,_arg10); | |
8559 | ||
8560 | wxPyEndAllowThreads(__tstate); | |
8561 | if (PyErr_Occurred()) return NULL; | |
8562 | } if (_result) { | |
8563 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8564 | _resultobj = Py_BuildValue("s",_ptemp); | |
8565 | } else { | |
8566 | Py_INCREF(Py_None); | |
8567 | _resultobj = Py_None; | |
8568 | } | |
8569 | { | |
8570 | if (_obj2) | |
8571 | delete _arg2; | |
8572 | } | |
8573 | { | |
8574 | delete [] _arg6; | |
8575 | } | |
8576 | return _resultobj; | |
8577 | } | |
8578 | ||
8579 | #define new_wxPreRadioBox() (new wxRadioBox()) | |
8580 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject * _resultobj; | |
8582 | wxRadioBox * _result; | |
8583 | char *_kwnames[] = { NULL }; | |
8584 | char _ptemp[128]; | |
8585 | ||
8586 | self = self; | |
8587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
8588 | return NULL; | |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | _result = (wxRadioBox *)new_wxPreRadioBox(); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) return NULL; | |
8595 | } if (_result) { | |
8596 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
8597 | _resultobj = Py_BuildValue("s",_ptemp); | |
8598 | } else { | |
8599 | Py_INCREF(Py_None); | |
8600 | _resultobj = Py_None; | |
8601 | } | |
8602 | return _resultobj; | |
8603 | } | |
8604 | ||
8605 | #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)) | |
8606 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8607 | PyObject * _resultobj; | |
8608 | bool _result; | |
8609 | wxRadioBox * _arg0; | |
8610 | wxWindow * _arg1; | |
8611 | wxWindowID _arg2; | |
8612 | wxString * _arg3; | |
8613 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
8614 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
8615 | int _arg6 = (int ) 0; | |
8616 | wxString * _arg7 = (wxString *) NULL; | |
8617 | int _arg8 = (int ) 0; | |
8618 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
8619 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
8620 | char * _arg11 = (char *) "radioBox"; | |
8621 | PyObject * _argo0 = 0; | |
8622 | PyObject * _argo1 = 0; | |
8623 | PyObject * _obj3 = 0; | |
8624 | wxPoint temp; | |
8625 | PyObject * _obj4 = 0; | |
8626 | wxSize temp0; | |
8627 | PyObject * _obj5 = 0; | |
8628 | PyObject * _obj7 = 0; | |
8629 | PyObject * _argo10 = 0; | |
8630 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
8631 | ||
8632 | self = self; | |
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOs:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_arg11)) | |
8634 | return NULL; | |
8635 | if (_argo0) { | |
8636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
8639 | return NULL; | |
8640 | } | |
8641 | } | |
8642 | if (_argo1) { | |
8643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
8646 | return NULL; | |
8647 | } | |
8648 | } | |
8649 | { | |
8650 | _arg3 = wxString_in_helper(_obj3); | |
8651 | if (_arg3 == NULL) | |
8652 | return NULL; | |
8653 | } | |
8654 | if (_obj4) | |
8655 | { | |
8656 | _arg4 = &temp; | |
8657 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8658 | return NULL; | |
8659 | } | |
8660 | if (_obj5) | |
8661 | { | |
8662 | _arg5 = &temp0; | |
8663 | if (! wxSize_helper(_obj5, &_arg5)) | |
8664 | return NULL; | |
8665 | } | |
8666 | if (_obj7) | |
8667 | { | |
8668 | _arg7 = wxString_LIST_helper(_obj7); | |
8669 | if (_arg7 == NULL) { | |
8670 | return NULL; | |
8671 | } | |
8672 | } | |
8673 | if (_argo10) { | |
8674 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
8675 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
8676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
8677 | return NULL; | |
8678 | } | |
8679 | } | |
8680 | { | |
8681 | if (_obj7) { | |
8682 | _arg6 = PyList_Size(_obj7); | |
8683 | } | |
8684 | else { | |
8685 | _arg6 = 0; | |
8686 | } | |
8687 | } | |
8688 | { | |
8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8690 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,_arg11); | |
8691 | ||
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) return NULL; | |
8694 | } _resultobj = Py_BuildValue("i",_result); | |
8695 | { | |
8696 | if (_obj3) | |
8697 | delete _arg3; | |
8698 | } | |
8699 | { | |
8700 | delete [] _arg7; | |
8701 | } | |
8702 | return _resultobj; | |
8703 | } | |
8704 | ||
8705 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8706 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8707 | PyObject * _resultobj; | |
8708 | wxRadioBox * _arg0; | |
8709 | bool _arg1; | |
8710 | PyObject * _argo0 = 0; | |
8711 | int tempbool1; | |
8712 | char *_kwnames[] = { "self","enable", NULL }; | |
8713 | ||
8714 | self = self; | |
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) | |
8716 | return NULL; | |
8717 | if (_argo0) { | |
8718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); | |
8721 | return NULL; | |
8722 | } | |
8723 | } | |
8724 | _arg1 = (bool ) tempbool1; | |
8725 | { | |
8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8727 | wxRadioBox_Enable(_arg0,_arg1); | |
8728 | ||
8729 | wxPyEndAllowThreads(__tstate); | |
8730 | if (PyErr_Occurred()) return NULL; | |
8731 | } Py_INCREF(Py_None); | |
8732 | _resultobj = Py_None; | |
8733 | return _resultobj; | |
8734 | } | |
8735 | ||
8736 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8737 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8738 | PyObject * _resultobj; | |
8739 | wxRadioBox * _arg0; | |
8740 | int _arg1; | |
8741 | bool _arg2; | |
8742 | PyObject * _argo0 = 0; | |
8743 | int tempbool2; | |
8744 | char *_kwnames[] = { "self","n","enable", NULL }; | |
8745 | ||
8746 | self = self; | |
8747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8748 | return NULL; | |
8749 | if (_argo0) { | |
8750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); | |
8753 | return NULL; | |
8754 | } | |
8755 | } | |
8756 | _arg2 = (bool ) tempbool2; | |
8757 | { | |
8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8759 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
8760 | ||
8761 | wxPyEndAllowThreads(__tstate); | |
8762 | if (PyErr_Occurred()) return NULL; | |
8763 | } Py_INCREF(Py_None); | |
8764 | _resultobj = Py_None; | |
8765 | return _resultobj; | |
8766 | } | |
8767 | ||
8768 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
8769 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject * _resultobj; | |
8771 | int _result; | |
8772 | wxRadioBox * _arg0; | |
8773 | wxString * _arg1; | |
8774 | PyObject * _argo0 = 0; | |
8775 | PyObject * _obj1 = 0; | |
8776 | char *_kwnames[] = { "self","string", NULL }; | |
8777 | ||
8778 | self = self; | |
8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) | |
8780 | return NULL; | |
8781 | if (_argo0) { | |
8782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); | |
8785 | return NULL; | |
8786 | } | |
8787 | } | |
8788 | { | |
8789 | _arg1 = wxString_in_helper(_obj1); | |
8790 | if (_arg1 == NULL) | |
8791 | return NULL; | |
8792 | } | |
8793 | { | |
8794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8795 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
8796 | ||
8797 | wxPyEndAllowThreads(__tstate); | |
8798 | if (PyErr_Occurred()) return NULL; | |
8799 | } _resultobj = Py_BuildValue("i",_result); | |
8800 | { | |
8801 | if (_obj1) | |
8802 | delete _arg1; | |
8803 | } | |
8804 | return _resultobj; | |
8805 | } | |
8806 | ||
8807 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
8808 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8809 | PyObject * _resultobj; | |
8810 | wxString * _result; | |
8811 | wxRadioBox * _arg0; | |
8812 | int _arg1; | |
8813 | PyObject * _argo0 = 0; | |
8814 | char *_kwnames[] = { "self","n", NULL }; | |
8815 | ||
8816 | self = self; | |
8817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) | |
8818 | return NULL; | |
8819 | if (_argo0) { | |
8820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); | |
8823 | return NULL; | |
8824 | } | |
8825 | } | |
8826 | { | |
8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8828 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
8829 | ||
8830 | wxPyEndAllowThreads(__tstate); | |
8831 | if (PyErr_Occurred()) return NULL; | |
8832 | }{ | |
8833 | #if wxUSE_UNICODE | |
8834 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8835 | #else | |
8836 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8837 | #endif | |
8838 | } | |
8839 | { | |
8840 | delete _result; | |
8841 | } | |
8842 | return _resultobj; | |
8843 | } | |
8844 | ||
8845 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
8846 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject * _resultobj; | |
8848 | wxRadioBox * _arg0; | |
8849 | int _arg1; | |
8850 | wxString * _arg2; | |
8851 | PyObject * _argo0 = 0; | |
8852 | PyObject * _obj2 = 0; | |
8853 | char *_kwnames[] = { "self","n","label", NULL }; | |
8854 | ||
8855 | self = self; | |
8856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8857 | return NULL; | |
8858 | if (_argo0) { | |
8859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); | |
8862 | return NULL; | |
8863 | } | |
8864 | } | |
8865 | { | |
8866 | _arg2 = wxString_in_helper(_obj2); | |
8867 | if (_arg2 == NULL) | |
8868 | return NULL; | |
8869 | } | |
8870 | { | |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8872 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) return NULL; | |
8876 | } Py_INCREF(Py_None); | |
8877 | _resultobj = Py_None; | |
8878 | { | |
8879 | if (_obj2) | |
8880 | delete _arg2; | |
8881 | } | |
8882 | return _resultobj; | |
8883 | } | |
8884 | ||
8885 | #define wxRadioBox_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
8886 | static PyObject *_wrap_wxRadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8887 | PyObject * _resultobj; | |
8888 | int _result; | |
8889 | wxRadioBox * _arg0; | |
8890 | PyObject * _argo0 = 0; | |
8891 | char *_kwnames[] = { "self", NULL }; | |
8892 | ||
8893 | self = self; | |
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetColumnCount",_kwnames,&_argo0)) | |
8895 | return NULL; | |
8896 | if (_argo0) { | |
8897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetColumnCount. Expected _wxRadioBox_p."); | |
8900 | return NULL; | |
8901 | } | |
8902 | } | |
8903 | { | |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | _result = (int )wxRadioBox_GetColumnCount(_arg0); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) return NULL; | |
8909 | } _resultobj = Py_BuildValue("i",_result); | |
8910 | return _resultobj; | |
8911 | } | |
8912 | ||
8913 | #define wxRadioBox_GetRowCount(_swigobj) (_swigobj->GetRowCount()) | |
8914 | static PyObject *_wrap_wxRadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject * _resultobj; | |
8916 | int _result; | |
8917 | wxRadioBox * _arg0; | |
8918 | PyObject * _argo0 = 0; | |
8919 | char *_kwnames[] = { "self", NULL }; | |
8920 | ||
8921 | self = self; | |
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetRowCount",_kwnames,&_argo0)) | |
8923 | return NULL; | |
8924 | if (_argo0) { | |
8925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetRowCount. Expected _wxRadioBox_p."); | |
8928 | return NULL; | |
8929 | } | |
8930 | } | |
8931 | { | |
8932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8933 | _result = (int )wxRadioBox_GetRowCount(_arg0); | |
8934 | ||
8935 | wxPyEndAllowThreads(__tstate); | |
8936 | if (PyErr_Occurred()) return NULL; | |
8937 | } _resultobj = Py_BuildValue("i",_result); | |
8938 | return _resultobj; | |
8939 | } | |
8940 | ||
8941 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
8942 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject * _resultobj; | |
8944 | int _result; | |
8945 | wxRadioBox * _arg0; | |
8946 | PyObject * _argo0 = 0; | |
8947 | char *_kwnames[] = { "self", NULL }; | |
8948 | ||
8949 | self = self; | |
8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) | |
8951 | return NULL; | |
8952 | if (_argo0) { | |
8953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); | |
8956 | return NULL; | |
8957 | } | |
8958 | } | |
8959 | { | |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) return NULL; | |
8965 | } _resultobj = Py_BuildValue("i",_result); | |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8969 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
8970 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8971 | PyObject * _resultobj; | |
8972 | wxString * _result; | |
8973 | wxRadioBox * _arg0; | |
8974 | PyObject * _argo0 = 0; | |
8975 | char *_kwnames[] = { "self", NULL }; | |
8976 | ||
8977 | self = self; | |
8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) | |
8979 | return NULL; | |
8980 | if (_argo0) { | |
8981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
8983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); | |
8984 | return NULL; | |
8985 | } | |
8986 | } | |
8987 | { | |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8989 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
8990 | ||
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) return NULL; | |
8993 | }{ | |
8994 | #if wxUSE_UNICODE | |
8995 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8996 | #else | |
8997 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8998 | #endif | |
8999 | } | |
9000 | { | |
9001 | delete _result; | |
9002 | } | |
9003 | return _resultobj; | |
9004 | } | |
9005 | ||
9006 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
9007 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject * _resultobj; | |
9009 | int _result; | |
9010 | wxRadioBox * _arg0; | |
9011 | PyObject * _argo0 = 0; | |
9012 | char *_kwnames[] = { "self", NULL }; | |
9013 | ||
9014 | self = self; | |
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) | |
9016 | return NULL; | |
9017 | if (_argo0) { | |
9018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); | |
9021 | return NULL; | |
9022 | } | |
9023 | } | |
9024 | { | |
9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9026 | _result = (int )wxRadioBox_GetCount(_arg0); | |
9027 | ||
9028 | wxPyEndAllowThreads(__tstate); | |
9029 | if (PyErr_Occurred()) return NULL; | |
9030 | } _resultobj = Py_BuildValue("i",_result); | |
9031 | return _resultobj; | |
9032 | } | |
9033 | ||
9034 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
9035 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9036 | PyObject * _resultobj; | |
9037 | wxRadioBox * _arg0; | |
9038 | int _arg1; | |
9039 | PyObject * _argo0 = 0; | |
9040 | char *_kwnames[] = { "self","n", NULL }; | |
9041 | ||
9042 | self = self; | |
9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
9044 | return NULL; | |
9045 | if (_argo0) { | |
9046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); | |
9049 | return NULL; | |
9050 | } | |
9051 | } | |
9052 | { | |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | wxRadioBox_SetSelection(_arg0,_arg1); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) return NULL; | |
9058 | } Py_INCREF(Py_None); | |
9059 | _resultobj = Py_None; | |
9060 | return _resultobj; | |
9061 | } | |
9062 | ||
9063 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
9064 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9065 | PyObject * _resultobj; | |
9066 | wxRadioBox * _arg0; | |
9067 | wxString * _arg1; | |
9068 | PyObject * _argo0 = 0; | |
9069 | PyObject * _obj1 = 0; | |
9070 | char *_kwnames[] = { "self","string", NULL }; | |
9071 | ||
9072 | self = self; | |
9073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
9074 | return NULL; | |
9075 | if (_argo0) { | |
9076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); | |
9079 | return NULL; | |
9080 | } | |
9081 | } | |
9082 | { | |
9083 | _arg1 = wxString_in_helper(_obj1); | |
9084 | if (_arg1 == NULL) | |
9085 | return NULL; | |
9086 | } | |
9087 | { | |
9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9089 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
9090 | ||
9091 | wxPyEndAllowThreads(__tstate); | |
9092 | if (PyErr_Occurred()) return NULL; | |
9093 | } Py_INCREF(Py_None); | |
9094 | _resultobj = Py_None; | |
9095 | { | |
9096 | if (_obj1) | |
9097 | delete _arg1; | |
9098 | } | |
9099 | return _resultobj; | |
9100 | } | |
9101 | ||
9102 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
9103 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9104 | PyObject * _resultobj; | |
9105 | wxRadioBox * _arg0; | |
9106 | bool _arg1; | |
9107 | PyObject * _argo0 = 0; | |
9108 | int tempbool1; | |
9109 | char *_kwnames[] = { "self","show", NULL }; | |
9110 | ||
9111 | self = self; | |
9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) | |
9113 | return NULL; | |
9114 | if (_argo0) { | |
9115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); | |
9118 | return NULL; | |
9119 | } | |
9120 | } | |
9121 | _arg1 = (bool ) tempbool1; | |
9122 | { | |
9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9124 | wxRadioBox_Show(_arg0,_arg1); | |
9125 | ||
9126 | wxPyEndAllowThreads(__tstate); | |
9127 | if (PyErr_Occurred()) return NULL; | |
9128 | } Py_INCREF(Py_None); | |
9129 | _resultobj = Py_None; | |
9130 | return _resultobj; | |
9131 | } | |
9132 | ||
9133 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
9134 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject * _resultobj; | |
9136 | wxRadioBox * _arg0; | |
9137 | int _arg1; | |
9138 | bool _arg2; | |
9139 | PyObject * _argo0 = 0; | |
9140 | int tempbool2; | |
9141 | char *_kwnames[] = { "self","item","show", NULL }; | |
9142 | ||
9143 | self = self; | |
9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9145 | return NULL; | |
9146 | if (_argo0) { | |
9147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); | |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
9153 | _arg2 = (bool ) tempbool2; | |
9154 | { | |
9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9156 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
9157 | ||
9158 | wxPyEndAllowThreads(__tstate); | |
9159 | if (PyErr_Occurred()) return NULL; | |
9160 | } Py_INCREF(Py_None); | |
9161 | _resultobj = Py_None; | |
9162 | return _resultobj; | |
9163 | } | |
9164 | ||
9165 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9166 | wxRadioButton *src; | |
9167 | wxControl *dest; | |
9168 | src = (wxRadioButton *) ptr; | |
9169 | dest = (wxControl *) src; | |
9170 | return (void *) dest; | |
9171 | } | |
9172 | ||
9173 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9174 | wxRadioButton *src; | |
9175 | wxWindow *dest; | |
9176 | src = (wxRadioButton *) ptr; | |
9177 | dest = (wxWindow *) src; | |
9178 | return (void *) dest; | |
9179 | } | |
9180 | ||
9181 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9182 | wxRadioButton *src; | |
9183 | wxEvtHandler *dest; | |
9184 | src = (wxRadioButton *) ptr; | |
9185 | dest = (wxEvtHandler *) src; | |
9186 | return (void *) dest; | |
9187 | } | |
9188 | ||
9189 | static void *SwigwxRadioButtonTowxObject(void *ptr) { | |
9190 | wxRadioButton *src; | |
9191 | wxObject *dest; | |
9192 | src = (wxRadioButton *) ptr; | |
9193 | dest = (wxObject *) src; | |
9194 | return (void *) dest; | |
9195 | } | |
9196 | ||
9197 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9198 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject * _resultobj; | |
9200 | wxRadioButton * _result; | |
9201 | wxWindow * _arg0; | |
9202 | wxWindowID _arg1; | |
9203 | wxString * _arg2; | |
9204 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9205 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9206 | long _arg5 = (long ) 0; | |
9207 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9208 | char * _arg7 = (char *) "radioButton"; | |
9209 | PyObject * _argo0 = 0; | |
9210 | PyObject * _obj2 = 0; | |
9211 | wxPoint temp; | |
9212 | PyObject * _obj3 = 0; | |
9213 | wxSize temp0; | |
9214 | PyObject * _obj4 = 0; | |
9215 | PyObject * _argo6 = 0; | |
9216 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
9217 | char _ptemp[128]; | |
9218 | ||
9219 | self = self; | |
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
9221 | return NULL; | |
9222 | if (_argo0) { | |
9223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); | |
9226 | return NULL; | |
9227 | } | |
9228 | } | |
9229 | { | |
9230 | _arg2 = wxString_in_helper(_obj2); | |
9231 | if (_arg2 == NULL) | |
9232 | return NULL; | |
9233 | } | |
9234 | if (_obj3) | |
9235 | { | |
9236 | _arg3 = &temp; | |
9237 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9238 | return NULL; | |
9239 | } | |
9240 | if (_obj4) | |
9241 | { | |
9242 | _arg4 = &temp0; | |
9243 | if (! wxSize_helper(_obj4, &_arg4)) | |
9244 | return NULL; | |
9245 | } | |
9246 | if (_argo6) { | |
9247 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9248 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9250 | return NULL; | |
9251 | } | |
9252 | } | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) return NULL; | |
9259 | } if (_result) { | |
9260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9261 | _resultobj = Py_BuildValue("s",_ptemp); | |
9262 | } else { | |
9263 | Py_INCREF(Py_None); | |
9264 | _resultobj = Py_None; | |
9265 | } | |
9266 | { | |
9267 | if (_obj2) | |
9268 | delete _arg2; | |
9269 | } | |
9270 | return _resultobj; | |
9271 | } | |
9272 | ||
9273 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
9274 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject * _resultobj; | |
9276 | wxRadioButton * _result; | |
9277 | char *_kwnames[] = { NULL }; | |
9278 | char _ptemp[128]; | |
9279 | ||
9280 | self = self; | |
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
9282 | return NULL; | |
9283 | { | |
9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9285 | _result = (wxRadioButton *)new_wxPreRadioButton(); | |
9286 | ||
9287 | wxPyEndAllowThreads(__tstate); | |
9288 | if (PyErr_Occurred()) return NULL; | |
9289 | } if (_result) { | |
9290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
9291 | _resultobj = Py_BuildValue("s",_ptemp); | |
9292 | } else { | |
9293 | Py_INCREF(Py_None); | |
9294 | _resultobj = Py_None; | |
9295 | } | |
9296 | return _resultobj; | |
9297 | } | |
9298 | ||
9299 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
9300 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject * _resultobj; | |
9302 | bool _result; | |
9303 | wxRadioButton * _arg0; | |
9304 | wxWindow * _arg1; | |
9305 | wxWindowID _arg2; | |
9306 | wxString * _arg3; | |
9307 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9308 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9309 | long _arg6 = (long ) 0; | |
9310 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9311 | char * _arg8 = (char *) "radioButton"; | |
9312 | PyObject * _argo0 = 0; | |
9313 | PyObject * _argo1 = 0; | |
9314 | PyObject * _obj3 = 0; | |
9315 | wxPoint temp; | |
9316 | PyObject * _obj4 = 0; | |
9317 | wxSize temp0; | |
9318 | PyObject * _obj5 = 0; | |
9319 | PyObject * _argo7 = 0; | |
9320 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
9321 | ||
9322 | self = self; | |
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
9324 | return NULL; | |
9325 | if (_argo0) { | |
9326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
9329 | return NULL; | |
9330 | } | |
9331 | } | |
9332 | if (_argo1) { | |
9333 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9334 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
9336 | return NULL; | |
9337 | } | |
9338 | } | |
9339 | { | |
9340 | _arg3 = wxString_in_helper(_obj3); | |
9341 | if (_arg3 == NULL) | |
9342 | return NULL; | |
9343 | } | |
9344 | if (_obj4) | |
9345 | { | |
9346 | _arg4 = &temp; | |
9347 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9348 | return NULL; | |
9349 | } | |
9350 | if (_obj5) | |
9351 | { | |
9352 | _arg5 = &temp0; | |
9353 | if (! wxSize_helper(_obj5, &_arg5)) | |
9354 | return NULL; | |
9355 | } | |
9356 | if (_argo7) { | |
9357 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
9358 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
9359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
9360 | return NULL; | |
9361 | } | |
9362 | } | |
9363 | { | |
9364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9365 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
9366 | ||
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) return NULL; | |
9369 | } _resultobj = Py_BuildValue("i",_result); | |
9370 | { | |
9371 | if (_obj3) | |
9372 | delete _arg3; | |
9373 | } | |
9374 | return _resultobj; | |
9375 | } | |
9376 | ||
9377 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
9378 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9379 | PyObject * _resultobj; | |
9380 | bool _result; | |
9381 | wxRadioButton * _arg0; | |
9382 | PyObject * _argo0 = 0; | |
9383 | char *_kwnames[] = { "self", NULL }; | |
9384 | ||
9385 | self = self; | |
9386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) | |
9387 | return NULL; | |
9388 | if (_argo0) { | |
9389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); | |
9392 | return NULL; | |
9393 | } | |
9394 | } | |
9395 | { | |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
9398 | ||
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) return NULL; | |
9401 | } _resultobj = Py_BuildValue("i",_result); | |
9402 | return _resultobj; | |
9403 | } | |
9404 | ||
9405 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
9406 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9407 | PyObject * _resultobj; | |
9408 | wxRadioButton * _arg0; | |
9409 | bool _arg1; | |
9410 | PyObject * _argo0 = 0; | |
9411 | int tempbool1; | |
9412 | char *_kwnames[] = { "self","value", NULL }; | |
9413 | ||
9414 | self = self; | |
9415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
9416 | return NULL; | |
9417 | if (_argo0) { | |
9418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
9420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); | |
9421 | return NULL; | |
9422 | } | |
9423 | } | |
9424 | _arg1 = (bool ) tempbool1; | |
9425 | { | |
9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9427 | wxRadioButton_SetValue(_arg0,_arg1); | |
9428 | ||
9429 | wxPyEndAllowThreads(__tstate); | |
9430 | if (PyErr_Occurred()) return NULL; | |
9431 | } Py_INCREF(Py_None); | |
9432 | _resultobj = Py_None; | |
9433 | return _resultobj; | |
9434 | } | |
9435 | ||
9436 | static void *SwigwxSliderTowxControl(void *ptr) { | |
9437 | wxSlider *src; | |
9438 | wxControl *dest; | |
9439 | src = (wxSlider *) ptr; | |
9440 | dest = (wxControl *) src; | |
9441 | return (void *) dest; | |
9442 | } | |
9443 | ||
9444 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
9445 | wxSlider *src; | |
9446 | wxWindow *dest; | |
9447 | src = (wxSlider *) ptr; | |
9448 | dest = (wxWindow *) src; | |
9449 | return (void *) dest; | |
9450 | } | |
9451 | ||
9452 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
9453 | wxSlider *src; | |
9454 | wxEvtHandler *dest; | |
9455 | src = (wxSlider *) ptr; | |
9456 | dest = (wxEvtHandler *) src; | |
9457 | return (void *) dest; | |
9458 | } | |
9459 | ||
9460 | static void *SwigwxSliderTowxObject(void *ptr) { | |
9461 | wxSlider *src; | |
9462 | wxObject *dest; | |
9463 | src = (wxSlider *) ptr; | |
9464 | dest = (wxObject *) src; | |
9465 | return (void *) dest; | |
9466 | } | |
9467 | ||
9468 | #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)) | |
9469 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject * _resultobj; | |
9471 | wxSlider * _result; | |
9472 | wxWindow * _arg0; | |
9473 | wxWindowID _arg1; | |
9474 | int _arg2; | |
9475 | int _arg3; | |
9476 | int _arg4; | |
9477 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
9478 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
9479 | long _arg7 = (long ) wxSL_HORIZONTAL; | |
9480 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9481 | char * _arg9 = (char *) "slider"; | |
9482 | PyObject * _argo0 = 0; | |
9483 | wxPoint temp; | |
9484 | PyObject * _obj5 = 0; | |
9485 | wxSize temp0; | |
9486 | PyObject * _obj6 = 0; | |
9487 | PyObject * _argo8 = 0; | |
9488 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9489 | char _ptemp[128]; | |
9490 | ||
9491 | self = self; | |
9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOs:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_arg9)) | |
9493 | return NULL; | |
9494 | if (_argo0) { | |
9495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); | |
9498 | return NULL; | |
9499 | } | |
9500 | } | |
9501 | if (_obj5) | |
9502 | { | |
9503 | _arg5 = &temp; | |
9504 | if (! wxPoint_helper(_obj5, &_arg5)) | |
9505 | return NULL; | |
9506 | } | |
9507 | if (_obj6) | |
9508 | { | |
9509 | _arg6 = &temp0; | |
9510 | if (! wxSize_helper(_obj6, &_arg6)) | |
9511 | return NULL; | |
9512 | } | |
9513 | if (_argo8) { | |
9514 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9522 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,_arg9); | |
9523 | ||
9524 | wxPyEndAllowThreads(__tstate); | |
9525 | if (PyErr_Occurred()) return NULL; | |
9526 | } if (_result) { | |
9527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9528 | _resultobj = Py_BuildValue("s",_ptemp); | |
9529 | } else { | |
9530 | Py_INCREF(Py_None); | |
9531 | _resultobj = Py_None; | |
9532 | } | |
9533 | return _resultobj; | |
9534 | } | |
9535 | ||
9536 | #define new_wxPreSlider() (new wxSlider()) | |
9537 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject * _resultobj; | |
9539 | wxSlider * _result; | |
9540 | char *_kwnames[] = { NULL }; | |
9541 | char _ptemp[128]; | |
9542 | ||
9543 | self = self; | |
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
9545 | return NULL; | |
9546 | { | |
9547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9548 | _result = (wxSlider *)new_wxPreSlider(); | |
9549 | ||
9550 | wxPyEndAllowThreads(__tstate); | |
9551 | if (PyErr_Occurred()) return NULL; | |
9552 | } if (_result) { | |
9553 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
9554 | _resultobj = Py_BuildValue("s",_ptemp); | |
9555 | } else { | |
9556 | Py_INCREF(Py_None); | |
9557 | _resultobj = Py_None; | |
9558 | } | |
9559 | return _resultobj; | |
9560 | } | |
9561 | ||
9562 | #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)) | |
9563 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject * _resultobj; | |
9565 | bool _result; | |
9566 | wxSlider * _arg0; | |
9567 | wxWindow * _arg1; | |
9568 | wxWindowID _arg2; | |
9569 | int _arg3; | |
9570 | int _arg4; | |
9571 | int _arg5; | |
9572 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
9573 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
9574 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
9575 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9576 | char * _arg10 = (char *) "slider"; | |
9577 | PyObject * _argo0 = 0; | |
9578 | PyObject * _argo1 = 0; | |
9579 | wxPoint temp; | |
9580 | PyObject * _obj6 = 0; | |
9581 | wxSize temp0; | |
9582 | PyObject * _obj7 = 0; | |
9583 | PyObject * _argo9 = 0; | |
9584 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
9585 | ||
9586 | self = self; | |
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOs:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_arg10)) | |
9588 | return NULL; | |
9589 | if (_argo0) { | |
9590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
9593 | return NULL; | |
9594 | } | |
9595 | } | |
9596 | if (_argo1) { | |
9597 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9598 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
9600 | return NULL; | |
9601 | } | |
9602 | } | |
9603 | if (_obj6) | |
9604 | { | |
9605 | _arg6 = &temp; | |
9606 | if (! wxPoint_helper(_obj6, &_arg6)) | |
9607 | return NULL; | |
9608 | } | |
9609 | if (_obj7) | |
9610 | { | |
9611 | _arg7 = &temp0; | |
9612 | if (! wxSize_helper(_obj7, &_arg7)) | |
9613 | return NULL; | |
9614 | } | |
9615 | if (_argo9) { | |
9616 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9617 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
9619 | return NULL; | |
9620 | } | |
9621 | } | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,_arg10); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) return NULL; | |
9628 | } _resultobj = Py_BuildValue("i",_result); | |
9629 | return _resultobj; | |
9630 | } | |
9631 | ||
9632 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
9633 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject * _resultobj; | |
9635 | wxSlider * _arg0; | |
9636 | PyObject * _argo0 = 0; | |
9637 | char *_kwnames[] = { "self", NULL }; | |
9638 | ||
9639 | self = self; | |
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) | |
9641 | return NULL; | |
9642 | if (_argo0) { | |
9643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); | |
9646 | return NULL; | |
9647 | } | |
9648 | } | |
9649 | { | |
9650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9651 | wxSlider_ClearSel(_arg0); | |
9652 | ||
9653 | wxPyEndAllowThreads(__tstate); | |
9654 | if (PyErr_Occurred()) return NULL; | |
9655 | } Py_INCREF(Py_None); | |
9656 | _resultobj = Py_None; | |
9657 | return _resultobj; | |
9658 | } | |
9659 | ||
9660 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
9661 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject * _resultobj; | |
9663 | wxSlider * _arg0; | |
9664 | PyObject * _argo0 = 0; | |
9665 | char *_kwnames[] = { "self", NULL }; | |
9666 | ||
9667 | self = self; | |
9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) | |
9669 | return NULL; | |
9670 | if (_argo0) { | |
9671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); | |
9674 | return NULL; | |
9675 | } | |
9676 | } | |
9677 | { | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | wxSlider_ClearTicks(_arg0); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) return NULL; | |
9683 | } Py_INCREF(Py_None); | |
9684 | _resultobj = Py_None; | |
9685 | return _resultobj; | |
9686 | } | |
9687 | ||
9688 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
9689 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9690 | PyObject * _resultobj; | |
9691 | int _result; | |
9692 | wxSlider * _arg0; | |
9693 | PyObject * _argo0 = 0; | |
9694 | char *_kwnames[] = { "self", NULL }; | |
9695 | ||
9696 | self = self; | |
9697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) | |
9698 | return NULL; | |
9699 | if (_argo0) { | |
9700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); | |
9703 | return NULL; | |
9704 | } | |
9705 | } | |
9706 | { | |
9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9708 | _result = (int )wxSlider_GetLineSize(_arg0); | |
9709 | ||
9710 | wxPyEndAllowThreads(__tstate); | |
9711 | if (PyErr_Occurred()) return NULL; | |
9712 | } _resultobj = Py_BuildValue("i",_result); | |
9713 | return _resultobj; | |
9714 | } | |
9715 | ||
9716 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
9717 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject * _resultobj; | |
9719 | int _result; | |
9720 | wxSlider * _arg0; | |
9721 | PyObject * _argo0 = 0; | |
9722 | char *_kwnames[] = { "self", NULL }; | |
9723 | ||
9724 | self = self; | |
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) | |
9726 | return NULL; | |
9727 | if (_argo0) { | |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); | |
9731 | return NULL; | |
9732 | } | |
9733 | } | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | _result = (int )wxSlider_GetMax(_arg0); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) return NULL; | |
9740 | } _resultobj = Py_BuildValue("i",_result); | |
9741 | return _resultobj; | |
9742 | } | |
9743 | ||
9744 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
9745 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject * _resultobj; | |
9747 | int _result; | |
9748 | wxSlider * _arg0; | |
9749 | PyObject * _argo0 = 0; | |
9750 | char *_kwnames[] = { "self", NULL }; | |
9751 | ||
9752 | self = self; | |
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) | |
9754 | return NULL; | |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); | |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
9762 | { | |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9764 | _result = (int )wxSlider_GetMin(_arg0); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
9767 | if (PyErr_Occurred()) return NULL; | |
9768 | } _resultobj = Py_BuildValue("i",_result); | |
9769 | return _resultobj; | |
9770 | } | |
9771 | ||
9772 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
9773 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9774 | PyObject * _resultobj; | |
9775 | int _result; | |
9776 | wxSlider * _arg0; | |
9777 | PyObject * _argo0 = 0; | |
9778 | char *_kwnames[] = { "self", NULL }; | |
9779 | ||
9780 | self = self; | |
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) | |
9782 | return NULL; | |
9783 | if (_argo0) { | |
9784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); | |
9787 | return NULL; | |
9788 | } | |
9789 | } | |
9790 | { | |
9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9792 | _result = (int )wxSlider_GetPageSize(_arg0); | |
9793 | ||
9794 | wxPyEndAllowThreads(__tstate); | |
9795 | if (PyErr_Occurred()) return NULL; | |
9796 | } _resultobj = Py_BuildValue("i",_result); | |
9797 | return _resultobj; | |
9798 | } | |
9799 | ||
9800 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
9801 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9802 | PyObject * _resultobj; | |
9803 | int _result; | |
9804 | wxSlider * _arg0; | |
9805 | PyObject * _argo0 = 0; | |
9806 | char *_kwnames[] = { "self", NULL }; | |
9807 | ||
9808 | self = self; | |
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) | |
9810 | return NULL; | |
9811 | if (_argo0) { | |
9812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); | |
9815 | return NULL; | |
9816 | } | |
9817 | } | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) return NULL; | |
9824 | } _resultobj = Py_BuildValue("i",_result); | |
9825 | return _resultobj; | |
9826 | } | |
9827 | ||
9828 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
9829 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9830 | PyObject * _resultobj; | |
9831 | int _result; | |
9832 | wxSlider * _arg0; | |
9833 | PyObject * _argo0 = 0; | |
9834 | char *_kwnames[] = { "self", NULL }; | |
9835 | ||
9836 | self = self; | |
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) | |
9838 | return NULL; | |
9839 | if (_argo0) { | |
9840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); | |
9843 | return NULL; | |
9844 | } | |
9845 | } | |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | _result = (int )wxSlider_GetSelStart(_arg0); | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) return NULL; | |
9852 | } _resultobj = Py_BuildValue("i",_result); | |
9853 | return _resultobj; | |
9854 | } | |
9855 | ||
9856 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
9857 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9858 | PyObject * _resultobj; | |
9859 | int _result; | |
9860 | wxSlider * _arg0; | |
9861 | PyObject * _argo0 = 0; | |
9862 | char *_kwnames[] = { "self", NULL }; | |
9863 | ||
9864 | self = self; | |
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) | |
9866 | return NULL; | |
9867 | if (_argo0) { | |
9868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); | |
9871 | return NULL; | |
9872 | } | |
9873 | } | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9876 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
9877 | ||
9878 | wxPyEndAllowThreads(__tstate); | |
9879 | if (PyErr_Occurred()) return NULL; | |
9880 | } _resultobj = Py_BuildValue("i",_result); | |
9881 | return _resultobj; | |
9882 | } | |
9883 | ||
9884 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
9885 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9886 | PyObject * _resultobj; | |
9887 | int _result; | |
9888 | wxSlider * _arg0; | |
9889 | PyObject * _argo0 = 0; | |
9890 | char *_kwnames[] = { "self", NULL }; | |
9891 | ||
9892 | self = self; | |
9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) | |
9894 | return NULL; | |
9895 | if (_argo0) { | |
9896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); | |
9899 | return NULL; | |
9900 | } | |
9901 | } | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) return NULL; | |
9908 | } _resultobj = Py_BuildValue("i",_result); | |
9909 | return _resultobj; | |
9910 | } | |
9911 | ||
9912 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
9913 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject * _resultobj; | |
9915 | int _result; | |
9916 | wxSlider * _arg0; | |
9917 | PyObject * _argo0 = 0; | |
9918 | char *_kwnames[] = { "self", NULL }; | |
9919 | ||
9920 | self = self; | |
9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) | |
9922 | return NULL; | |
9923 | if (_argo0) { | |
9924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); | |
9927 | return NULL; | |
9928 | } | |
9929 | } | |
9930 | { | |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | _result = (int )wxSlider_GetValue(_arg0); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) return NULL; | |
9936 | } _resultobj = Py_BuildValue("i",_result); | |
9937 | return _resultobj; | |
9938 | } | |
9939 | ||
9940 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
9941 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject * _resultobj; | |
9943 | wxSlider * _arg0; | |
9944 | int _arg1; | |
9945 | int _arg2; | |
9946 | PyObject * _argo0 = 0; | |
9947 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; | |
9948 | ||
9949 | self = self; | |
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9951 | return NULL; | |
9952 | if (_argo0) { | |
9953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
9955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); | |
9956 | return NULL; | |
9957 | } | |
9958 | } | |
9959 | { | |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) return NULL; | |
9965 | } Py_INCREF(Py_None); | |
9966 | _resultobj = Py_None; | |
9967 | return _resultobj; | |
9968 | } | |
9969 | ||
9970 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
9971 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject * _resultobj; | |
9973 | wxSlider * _arg0; | |
9974 | int _arg1; | |
9975 | int _arg2; | |
9976 | PyObject * _argo0 = 0; | |
9977 | char *_kwnames[] = { "self","n","pos", NULL }; | |
9978 | ||
9979 | self = self; | |
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) | |
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_SetTickFreq. Expected _wxSlider_p."); | |
9986 | return NULL; | |
9987 | } | |
9988 | } | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) return NULL; | |
9995 | } Py_INCREF(Py_None); | |
9996 | _resultobj = Py_None; | |
9997 | return _resultobj; | |
9998 | } | |
9999 | ||
10000 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
10001 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject * _resultobj; | |
10003 | wxSlider * _arg0; | |
10004 | int _arg1; | |
10005 | PyObject * _argo0 = 0; | |
10006 | char *_kwnames[] = { "self","lineSize", NULL }; | |
10007 | ||
10008 | self = self; | |
10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) | |
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_SetLineSize. Expected _wxSlider_p."); | |
10015 | return NULL; | |
10016 | } | |
10017 | } | |
10018 | { | |
10019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10020 | wxSlider_SetLineSize(_arg0,_arg1); | |
10021 | ||
10022 | wxPyEndAllowThreads(__tstate); | |
10023 | if (PyErr_Occurred()) return NULL; | |
10024 | } Py_INCREF(Py_None); | |
10025 | _resultobj = Py_None; | |
10026 | return _resultobj; | |
10027 | } | |
10028 | ||
10029 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
10030 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10031 | PyObject * _resultobj; | |
10032 | wxSlider * _arg0; | |
10033 | int _arg1; | |
10034 | PyObject * _argo0 = 0; | |
10035 | char *_kwnames[] = { "self","pageSize", NULL }; | |
10036 | ||
10037 | self = self; | |
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) | |
10039 | return NULL; | |
10040 | if (_argo0) { | |
10041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); | |
10044 | return NULL; | |
10045 | } | |
10046 | } | |
10047 | { | |
10048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10049 | wxSlider_SetPageSize(_arg0,_arg1); | |
10050 | ||
10051 | wxPyEndAllowThreads(__tstate); | |
10052 | if (PyErr_Occurred()) return NULL; | |
10053 | } Py_INCREF(Py_None); | |
10054 | _resultobj = Py_None; | |
10055 | return _resultobj; | |
10056 | } | |
10057 | ||
10058 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
10059 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10060 | PyObject * _resultobj; | |
10061 | wxSlider * _arg0; | |
10062 | int _arg1; | |
10063 | int _arg2; | |
10064 | PyObject * _argo0 = 0; | |
10065 | char *_kwnames[] = { "self","startPos","endPos", NULL }; | |
10066 | ||
10067 | self = self; | |
10068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10069 | return NULL; | |
10070 | if (_argo0) { | |
10071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); | |
10074 | return NULL; | |
10075 | } | |
10076 | } | |
10077 | { | |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10079 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) return NULL; | |
10083 | } Py_INCREF(Py_None); | |
10084 | _resultobj = Py_None; | |
10085 | return _resultobj; | |
10086 | } | |
10087 | ||
10088 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
10089 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject * _resultobj; | |
10091 | wxSlider * _arg0; | |
10092 | int _arg1; | |
10093 | PyObject * _argo0 = 0; | |
10094 | char *_kwnames[] = { "self","len", NULL }; | |
10095 | ||
10096 | self = self; | |
10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) | |
10098 | return NULL; | |
10099 | if (_argo0) { | |
10100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); | |
10103 | return NULL; | |
10104 | } | |
10105 | } | |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | wxSlider_SetThumbLength(_arg0,_arg1); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) return NULL; | |
10112 | } Py_INCREF(Py_None); | |
10113 | _resultobj = Py_None; | |
10114 | return _resultobj; | |
10115 | } | |
10116 | ||
10117 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
10118 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10119 | PyObject * _resultobj; | |
10120 | wxSlider * _arg0; | |
10121 | int _arg1; | |
10122 | PyObject * _argo0 = 0; | |
10123 | char *_kwnames[] = { "self","tickPos", NULL }; | |
10124 | ||
10125 | self = self; | |
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) | |
10127 | return NULL; | |
10128 | if (_argo0) { | |
10129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); | |
10132 | return NULL; | |
10133 | } | |
10134 | } | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | wxSlider_SetTick(_arg0,_arg1); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) return NULL; | |
10141 | } Py_INCREF(Py_None); | |
10142 | _resultobj = Py_None; | |
10143 | return _resultobj; | |
10144 | } | |
10145 | ||
10146 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10147 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject * _resultobj; | |
10149 | wxSlider * _arg0; | |
10150 | int _arg1; | |
10151 | PyObject * _argo0 = 0; | |
10152 | char *_kwnames[] = { "self","value", NULL }; | |
10153 | ||
10154 | self = self; | |
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) | |
10156 | return NULL; | |
10157 | if (_argo0) { | |
10158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); | |
10161 | return NULL; | |
10162 | } | |
10163 | } | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | wxSlider_SetValue(_arg0,_arg1); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) return NULL; | |
10170 | } Py_INCREF(Py_None); | |
10171 | _resultobj = Py_None; | |
10172 | return _resultobj; | |
10173 | } | |
10174 | ||
10175 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { | |
10176 | wxSpinCtrl *src; | |
10177 | wxSpinButton *dest; | |
10178 | src = (wxSpinCtrl *) ptr; | |
10179 | dest = (wxSpinButton *) src; | |
10180 | return (void *) dest; | |
10181 | } | |
10182 | ||
10183 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10184 | wxSpinCtrl *src; | |
10185 | wxControl *dest; | |
10186 | src = (wxSpinCtrl *) ptr; | |
10187 | dest = (wxControl *) src; | |
10188 | return (void *) dest; | |
10189 | } | |
10190 | ||
10191 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10192 | wxSpinCtrl *src; | |
10193 | wxWindow *dest; | |
10194 | src = (wxSpinCtrl *) ptr; | |
10195 | dest = (wxWindow *) src; | |
10196 | return (void *) dest; | |
10197 | } | |
10198 | ||
10199 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10200 | wxSpinCtrl *src; | |
10201 | wxEvtHandler *dest; | |
10202 | src = (wxSpinCtrl *) ptr; | |
10203 | dest = (wxEvtHandler *) src; | |
10204 | return (void *) dest; | |
10205 | } | |
10206 | ||
10207 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { | |
10208 | wxSpinCtrl *src; | |
10209 | wxObject *dest; | |
10210 | src = (wxSpinCtrl *) ptr; | |
10211 | dest = (wxObject *) src; | |
10212 | return (void *) dest; | |
10213 | } | |
10214 | ||
10215 | #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)) | |
10216 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject * _resultobj; | |
10218 | wxSpinCtrl * _result; | |
10219 | wxWindow * _arg0; | |
10220 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10221 | char * _arg2 = (char *) ""; | |
10222 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10223 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10224 | long _arg5 = (long ) wxSP_ARROW_KEYS; | |
10225 | int _arg6 = (int ) 0; | |
10226 | int _arg7 = (int ) 100; | |
10227 | int _arg8 = (int ) 0; | |
10228 | char * _arg9 = (char *) "wxSpinCtrl"; | |
10229 | PyObject * _argo0 = 0; | |
10230 | wxPoint temp; | |
10231 | PyObject * _obj3 = 0; | |
10232 | wxSize temp0; | |
10233 | PyObject * _obj4 = 0; | |
10234 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10235 | char _ptemp[128]; | |
10236 | ||
10237 | self = self; | |
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOliiis:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
10239 | return NULL; | |
10240 | if (_argo0) { | |
10241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
10244 | return NULL; | |
10245 | } | |
10246 | } | |
10247 | if (_obj3) | |
10248 | { | |
10249 | _arg3 = &temp; | |
10250 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10251 | return NULL; | |
10252 | } | |
10253 | if (_obj4) | |
10254 | { | |
10255 | _arg4 = &temp0; | |
10256 | if (! wxSize_helper(_obj4, &_arg4)) | |
10257 | return NULL; | |
10258 | } | |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10261 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
10262 | ||
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) return NULL; | |
10265 | } if (_result) { | |
10266 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10267 | _resultobj = Py_BuildValue("s",_ptemp); | |
10268 | } else { | |
10269 | Py_INCREF(Py_None); | |
10270 | _resultobj = Py_None; | |
10271 | } | |
10272 | return _resultobj; | |
10273 | } | |
10274 | ||
10275 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) | |
10276 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject * _resultobj; | |
10278 | wxSpinCtrl * _result; | |
10279 | char *_kwnames[] = { NULL }; | |
10280 | char _ptemp[128]; | |
10281 | ||
10282 | self = self; | |
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
10284 | return NULL; | |
10285 | { | |
10286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10287 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); | |
10288 | ||
10289 | wxPyEndAllowThreads(__tstate); | |
10290 | if (PyErr_Occurred()) return NULL; | |
10291 | } if (_result) { | |
10292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
10293 | _resultobj = Py_BuildValue("s",_ptemp); | |
10294 | } else { | |
10295 | Py_INCREF(Py_None); | |
10296 | _resultobj = Py_None; | |
10297 | } | |
10298 | return _resultobj; | |
10299 | } | |
10300 | ||
10301 | #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)) | |
10302 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10303 | PyObject * _resultobj; | |
10304 | bool _result; | |
10305 | wxSpinCtrl * _arg0; | |
10306 | wxWindow * _arg1; | |
10307 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10308 | char * _arg3 = (char *) ""; | |
10309 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10310 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10311 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
10312 | int _arg7 = (int ) 0; | |
10313 | int _arg8 = (int ) 100; | |
10314 | int _arg9 = (int ) 0; | |
10315 | char * _arg10 = (char *) "wxSpinCtrl"; | |
10316 | PyObject * _argo0 = 0; | |
10317 | PyObject * _argo1 = 0; | |
10318 | wxPoint temp; | |
10319 | PyObject * _obj4 = 0; | |
10320 | wxSize temp0; | |
10321 | PyObject * _obj5 = 0; | |
10322 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
10323 | ||
10324 | self = self; | |
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOliiis:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_arg10)) | |
10326 | return NULL; | |
10327 | if (_argo0) { | |
10328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
10331 | return NULL; | |
10332 | } | |
10333 | } | |
10334 | if (_argo1) { | |
10335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
10338 | return NULL; | |
10339 | } | |
10340 | } | |
10341 | if (_obj4) | |
10342 | { | |
10343 | _arg4 = &temp; | |
10344 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10345 | return NULL; | |
10346 | } | |
10347 | if (_obj5) | |
10348 | { | |
10349 | _arg5 = &temp0; | |
10350 | if (! wxSize_helper(_obj5, &_arg5)) | |
10351 | return NULL; | |
10352 | } | |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10355 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,_arg10); | |
10356 | ||
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) return NULL; | |
10359 | } _resultobj = Py_BuildValue("i",_result); | |
10360 | return _resultobj; | |
10361 | } | |
10362 | ||
10363 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) | |
10364 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject * _resultobj; | |
10366 | int _result; | |
10367 | wxSpinCtrl * _arg0; | |
10368 | PyObject * _argo0 = 0; | |
10369 | char *_kwnames[] = { "self", NULL }; | |
10370 | ||
10371 | self = self; | |
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
10373 | return NULL; | |
10374 | if (_argo0) { | |
10375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
10378 | return NULL; | |
10379 | } | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) return NULL; | |
10387 | } _resultobj = Py_BuildValue("i",_result); | |
10388 | return _resultobj; | |
10389 | } | |
10390 | ||
10391 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
10392 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject * _resultobj; | |
10394 | int _result; | |
10395 | wxSpinCtrl * _arg0; | |
10396 | PyObject * _argo0 = 0; | |
10397 | char *_kwnames[] = { "self", NULL }; | |
10398 | ||
10399 | self = self; | |
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
10401 | return NULL; | |
10402 | if (_argo0) { | |
10403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
10406 | return NULL; | |
10407 | } | |
10408 | } | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
10412 | ||
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) return NULL; | |
10415 | } _resultobj = Py_BuildValue("i",_result); | |
10416 | return _resultobj; | |
10417 | } | |
10418 | ||
10419 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
10420 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10421 | PyObject * _resultobj; | |
10422 | int _result; | |
10423 | wxSpinCtrl * _arg0; | |
10424 | PyObject * _argo0 = 0; | |
10425 | char *_kwnames[] = { "self", NULL }; | |
10426 | ||
10427 | self = self; | |
10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
10429 | return NULL; | |
10430 | if (_argo0) { | |
10431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
10434 | return NULL; | |
10435 | } | |
10436 | } | |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) return NULL; | |
10443 | } _resultobj = Py_BuildValue("i",_result); | |
10444 | return _resultobj; | |
10445 | } | |
10446 | ||
10447 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10448 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10449 | PyObject * _resultobj; | |
10450 | wxSpinCtrl * _arg0; | |
10451 | int _arg1; | |
10452 | int _arg2; | |
10453 | PyObject * _argo0 = 0; | |
10454 | char *_kwnames[] = { "self","min","max", NULL }; | |
10455 | ||
10456 | self = self; | |
10457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10458 | return NULL; | |
10459 | if (_argo0) { | |
10460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
10463 | return NULL; | |
10464 | } | |
10465 | } | |
10466 | { | |
10467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10468 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
10469 | ||
10470 | wxPyEndAllowThreads(__tstate); | |
10471 | if (PyErr_Occurred()) return NULL; | |
10472 | } Py_INCREF(Py_None); | |
10473 | _resultobj = Py_None; | |
10474 | return _resultobj; | |
10475 | } | |
10476 | ||
10477 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10478 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10479 | PyObject * _resultobj; | |
10480 | wxSpinCtrl * _arg0; | |
10481 | int _arg1; | |
10482 | PyObject * _argo0 = 0; | |
10483 | char *_kwnames[] = { "self","value", NULL }; | |
10484 | ||
10485 | self = self; | |
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
10487 | return NULL; | |
10488 | if (_argo0) { | |
10489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
10491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
10492 | return NULL; | |
10493 | } | |
10494 | } | |
10495 | { | |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) return NULL; | |
10501 | } Py_INCREF(Py_None); | |
10502 | _resultobj = Py_None; | |
10503 | return _resultobj; | |
10504 | } | |
10505 | ||
10506 | static void *SwigwxToggleButtonTowxControl(void *ptr) { | |
10507 | wxToggleButton *src; | |
10508 | wxControl *dest; | |
10509 | src = (wxToggleButton *) ptr; | |
10510 | dest = (wxControl *) src; | |
10511 | return (void *) dest; | |
10512 | } | |
10513 | ||
10514 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
10515 | wxToggleButton *src; | |
10516 | wxWindow *dest; | |
10517 | src = (wxToggleButton *) ptr; | |
10518 | dest = (wxWindow *) src; | |
10519 | return (void *) dest; | |
10520 | } | |
10521 | ||
10522 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
10523 | wxToggleButton *src; | |
10524 | wxEvtHandler *dest; | |
10525 | src = (wxToggleButton *) ptr; | |
10526 | dest = (wxEvtHandler *) src; | |
10527 | return (void *) dest; | |
10528 | } | |
10529 | ||
10530 | static void *SwigwxToggleButtonTowxObject(void *ptr) { | |
10531 | wxToggleButton *src; | |
10532 | wxObject *dest; | |
10533 | src = (wxToggleButton *) ptr; | |
10534 | dest = (wxObject *) src; | |
10535 | return (void *) dest; | |
10536 | } | |
10537 | ||
10538 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10539 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10540 | PyObject * _resultobj; | |
10541 | wxToggleButton * _result; | |
10542 | wxWindow * _arg0; | |
10543 | wxWindowID _arg1; | |
10544 | wxString * _arg2; | |
10545 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10546 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10547 | long _arg5 = (long ) 0; | |
10548 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10549 | char * _arg7 = (char *) "toggle"; | |
10550 | PyObject * _argo0 = 0; | |
10551 | PyObject * _obj2 = 0; | |
10552 | wxPoint temp; | |
10553 | PyObject * _obj3 = 0; | |
10554 | wxSize temp0; | |
10555 | PyObject * _obj4 = 0; | |
10556 | PyObject * _argo6 = 0; | |
10557 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10558 | char _ptemp[128]; | |
10559 | ||
10560 | self = self; | |
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOs:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
10562 | return NULL; | |
10563 | if (_argo0) { | |
10564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
10567 | return NULL; | |
10568 | } | |
10569 | } | |
10570 | { | |
10571 | _arg2 = wxString_in_helper(_obj2); | |
10572 | if (_arg2 == NULL) | |
10573 | return NULL; | |
10574 | } | |
10575 | if (_obj3) | |
10576 | { | |
10577 | _arg3 = &temp; | |
10578 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10579 | return NULL; | |
10580 | } | |
10581 | if (_obj4) | |
10582 | { | |
10583 | _arg4 = &temp0; | |
10584 | if (! wxSize_helper(_obj4, &_arg4)) | |
10585 | return NULL; | |
10586 | } | |
10587 | if (_argo6) { | |
10588 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10589 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
10591 | return NULL; | |
10592 | } | |
10593 | } | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) return NULL; | |
10600 | } if (_result) { | |
10601 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10602 | _resultobj = Py_BuildValue("s",_ptemp); | |
10603 | } else { | |
10604 | Py_INCREF(Py_None); | |
10605 | _resultobj = Py_None; | |
10606 | } | |
10607 | { | |
10608 | if (_obj2) | |
10609 | delete _arg2; | |
10610 | } | |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
10614 | #define new_wxPreToggleButton() (new wxToggleButton()) | |
10615 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | wxToggleButton * _result; | |
10618 | char *_kwnames[] = { NULL }; | |
10619 | char _ptemp[128]; | |
10620 | ||
10621 | self = self; | |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
10623 | return NULL; | |
10624 | { | |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10626 | _result = (wxToggleButton *)new_wxPreToggleButton(); | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) return NULL; | |
10630 | } if (_result) { | |
10631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
10632 | _resultobj = Py_BuildValue("s",_ptemp); | |
10633 | } else { | |
10634 | Py_INCREF(Py_None); | |
10635 | _resultobj = Py_None; | |
10636 | } | |
10637 | return _resultobj; | |
10638 | } | |
10639 | ||
10640 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10641 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10642 | PyObject * _resultobj; | |
10643 | bool _result; | |
10644 | wxToggleButton * _arg0; | |
10645 | wxWindow * _arg1; | |
10646 | wxWindowID _arg2; | |
10647 | wxString * _arg3; | |
10648 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10649 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10650 | long _arg6 = (long ) 0; | |
10651 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10652 | char * _arg8 = (char *) "toggle"; | |
10653 | PyObject * _argo0 = 0; | |
10654 | PyObject * _argo1 = 0; | |
10655 | PyObject * _obj3 = 0; | |
10656 | wxPoint temp; | |
10657 | PyObject * _obj4 = 0; | |
10658 | wxSize temp0; | |
10659 | PyObject * _obj5 = 0; | |
10660 | PyObject * _argo7 = 0; | |
10661 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10662 | ||
10663 | self = self; | |
10664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOs:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_arg8)) | |
10665 | return NULL; | |
10666 | if (_argo0) { | |
10667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
10670 | return NULL; | |
10671 | } | |
10672 | } | |
10673 | if (_argo1) { | |
10674 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10675 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
10677 | return NULL; | |
10678 | } | |
10679 | } | |
10680 | { | |
10681 | _arg3 = wxString_in_helper(_obj3); | |
10682 | if (_arg3 == NULL) | |
10683 | return NULL; | |
10684 | } | |
10685 | if (_obj4) | |
10686 | { | |
10687 | _arg4 = &temp; | |
10688 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10689 | return NULL; | |
10690 | } | |
10691 | if (_obj5) | |
10692 | { | |
10693 | _arg5 = &temp0; | |
10694 | if (! wxSize_helper(_obj5, &_arg5)) | |
10695 | return NULL; | |
10696 | } | |
10697 | if (_argo7) { | |
10698 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10699 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
10701 | return NULL; | |
10702 | } | |
10703 | } | |
10704 | { | |
10705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10706 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8); | |
10707 | ||
10708 | wxPyEndAllowThreads(__tstate); | |
10709 | if (PyErr_Occurred()) return NULL; | |
10710 | } _resultobj = Py_BuildValue("i",_result); | |
10711 | { | |
10712 | if (_obj3) | |
10713 | delete _arg3; | |
10714 | } | |
10715 | return _resultobj; | |
10716 | } | |
10717 | ||
10718 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10719 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10720 | PyObject * _resultobj; | |
10721 | wxToggleButton * _arg0; | |
10722 | bool _arg1; | |
10723 | PyObject * _argo0 = 0; | |
10724 | int tempbool1; | |
10725 | char *_kwnames[] = { "self","value", NULL }; | |
10726 | ||
10727 | self = self; | |
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10729 | return NULL; | |
10730 | if (_argo0) { | |
10731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
10734 | return NULL; | |
10735 | } | |
10736 | } | |
10737 | _arg1 = (bool ) tempbool1; | |
10738 | { | |
10739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10740 | wxToggleButton_SetValue(_arg0,_arg1); | |
10741 | ||
10742 | wxPyEndAllowThreads(__tstate); | |
10743 | if (PyErr_Occurred()) return NULL; | |
10744 | } Py_INCREF(Py_None); | |
10745 | _resultobj = Py_None; | |
10746 | return _resultobj; | |
10747 | } | |
10748 | ||
10749 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
10750 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject * _resultobj; | |
10752 | bool _result; | |
10753 | wxToggleButton * _arg0; | |
10754 | PyObject * _argo0 = 0; | |
10755 | char *_kwnames[] = { "self", NULL }; | |
10756 | ||
10757 | self = self; | |
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
10759 | return NULL; | |
10760 | if (_argo0) { | |
10761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
10764 | return NULL; | |
10765 | } | |
10766 | } | |
10767 | { | |
10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10769 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
10770 | ||
10771 | wxPyEndAllowThreads(__tstate); | |
10772 | if (PyErr_Occurred()) return NULL; | |
10773 | } _resultobj = Py_BuildValue("i",_result); | |
10774 | return _resultobj; | |
10775 | } | |
10776 | ||
10777 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
10778 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10779 | PyObject * _resultobj; | |
10780 | wxToggleButton * _arg0; | |
10781 | wxString * _arg1; | |
10782 | PyObject * _argo0 = 0; | |
10783 | PyObject * _obj1 = 0; | |
10784 | char *_kwnames[] = { "self","label", NULL }; | |
10785 | ||
10786 | self = self; | |
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
10788 | return NULL; | |
10789 | if (_argo0) { | |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
10796 | { | |
10797 | _arg1 = wxString_in_helper(_obj1); | |
10798 | if (_arg1 == NULL) | |
10799 | return NULL; | |
10800 | } | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) return NULL; | |
10807 | } Py_INCREF(Py_None); | |
10808 | _resultobj = Py_None; | |
10809 | { | |
10810 | if (_obj1) | |
10811 | delete _arg1; | |
10812 | } | |
10813 | return _resultobj; | |
10814 | } | |
10815 | ||
10816 | static PyMethodDef controlscMethods[] = { | |
10817 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxRadioBox_GetRowCount", (PyCFunction) _wrap_wxRadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxRadioBox_GetColumnCount", (PyCFunction) _wrap_wxRadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
10892 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxButton_SetImageMargins", (PyCFunction) _wrap_wxButton_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxButton_SetImageLabel", (PyCFunction) _wrap_wxButton_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
11058 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
11059 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11060 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11061 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11062 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11063 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11064 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11065 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11066 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11067 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11068 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11070 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11071 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11074 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
11075 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, | |
11076 | { NULL, NULL } | |
11077 | }; | |
11078 | #ifdef __cplusplus | |
11079 | } | |
11080 | #endif | |
11081 | /* | |
11082 | * This table is used by the pointer type-checker | |
11083 | */ | |
11084 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11085 | { "_signed_long","_long",0}, | |
11086 | { "_wxPrintQuality","_wxCoord",0}, | |
11087 | { "_wxPrintQuality","_int",0}, | |
11088 | { "_wxPrintQuality","_signed_int",0}, | |
11089 | { "_wxPrintQuality","_unsigned_int",0}, | |
11090 | { "_wxPrintQuality","_wxWindowID",0}, | |
11091 | { "_wxPrintQuality","_uint",0}, | |
11092 | { "_wxPrintQuality","_EBool",0}, | |
11093 | { "_wxPrintQuality","_size_t",0}, | |
11094 | { "_wxPrintQuality","_time_t",0}, | |
11095 | { "_byte","_unsigned_char",0}, | |
11096 | { "_wxChoice","_wxComboBox",SwigwxComboBoxTowxChoice}, | |
11097 | { "_long","_unsigned_long",0}, | |
11098 | { "_long","_signed_long",0}, | |
11099 | { "_size_t","_wxCoord",0}, | |
11100 | { "_size_t","_wxPrintQuality",0}, | |
11101 | { "_size_t","_time_t",0}, | |
11102 | { "_size_t","_unsigned_int",0}, | |
11103 | { "_size_t","_int",0}, | |
11104 | { "_size_t","_wxWindowID",0}, | |
11105 | { "_size_t","_uint",0}, | |
11106 | { "_uint","_wxCoord",0}, | |
11107 | { "_uint","_wxPrintQuality",0}, | |
11108 | { "_uint","_time_t",0}, | |
11109 | { "_uint","_size_t",0}, | |
11110 | { "_uint","_unsigned_int",0}, | |
11111 | { "_uint","_int",0}, | |
11112 | { "_uint","_wxWindowID",0}, | |
11113 | { "_wxChar","_char",0}, | |
11114 | { "_char","_wxChar",0}, | |
11115 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
11116 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11117 | { "_EBool","_wxCoord",0}, | |
11118 | { "_EBool","_wxPrintQuality",0}, | |
11119 | { "_EBool","_signed_int",0}, | |
11120 | { "_EBool","_int",0}, | |
11121 | { "_EBool","_wxWindowID",0}, | |
11122 | { "_unsigned_long","_long",0}, | |
11123 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11124 | { "_signed_int","_wxCoord",0}, | |
11125 | { "_signed_int","_wxPrintQuality",0}, | |
11126 | { "_signed_int","_EBool",0}, | |
11127 | { "_signed_int","_wxWindowID",0}, | |
11128 | { "_signed_int","_int",0}, | |
11129 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
11130 | { "_WXTYPE","_short",0}, | |
11131 | { "_WXTYPE","_signed_short",0}, | |
11132 | { "_WXTYPE","_unsigned_short",0}, | |
11133 | { "_unsigned_short","_WXTYPE",0}, | |
11134 | { "_unsigned_short","_short",0}, | |
11135 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
11136 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
11137 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
11138 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
11139 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
11140 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
11141 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
11142 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
11143 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
11144 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
11145 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
11146 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
11147 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
11148 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
11149 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
11150 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
11151 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
11152 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
11153 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
11154 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
11155 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
11156 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
11157 | { "_signed_short","_WXTYPE",0}, | |
11158 | { "_signed_short","_short",0}, | |
11159 | { "_unsigned_char","_byte",0}, | |
11160 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
11161 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
11162 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
11163 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
11164 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
11165 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
11166 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
11167 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
11168 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
11169 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
11170 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
11171 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
11172 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
11173 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
11174 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
11175 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
11176 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
11177 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
11178 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
11179 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
11180 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
11181 | { "_unsigned_int","_wxCoord",0}, | |
11182 | { "_unsigned_int","_wxPrintQuality",0}, | |
11183 | { "_unsigned_int","_time_t",0}, | |
11184 | { "_unsigned_int","_size_t",0}, | |
11185 | { "_unsigned_int","_uint",0}, | |
11186 | { "_unsigned_int","_wxWindowID",0}, | |
11187 | { "_unsigned_int","_int",0}, | |
11188 | { "_short","_WXTYPE",0}, | |
11189 | { "_short","_unsigned_short",0}, | |
11190 | { "_short","_signed_short",0}, | |
11191 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
11192 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
11193 | { "_wxControlWithItems","_wxComboBox",SwigwxComboBoxTowxControlWithItems}, | |
11194 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
11195 | { "_wxWindowID","_wxCoord",0}, | |
11196 | { "_wxWindowID","_wxPrintQuality",0}, | |
11197 | { "_wxWindowID","_time_t",0}, | |
11198 | { "_wxWindowID","_size_t",0}, | |
11199 | { "_wxWindowID","_EBool",0}, | |
11200 | { "_wxWindowID","_uint",0}, | |
11201 | { "_wxWindowID","_int",0}, | |
11202 | { "_wxWindowID","_signed_int",0}, | |
11203 | { "_wxWindowID","_unsigned_int",0}, | |
11204 | { "_int","_wxCoord",0}, | |
11205 | { "_int","_wxPrintQuality",0}, | |
11206 | { "_int","_time_t",0}, | |
11207 | { "_int","_size_t",0}, | |
11208 | { "_int","_EBool",0}, | |
11209 | { "_int","_uint",0}, | |
11210 | { "_int","_wxWindowID",0}, | |
11211 | { "_int","_unsigned_int",0}, | |
11212 | { "_int","_signed_int",0}, | |
11213 | { "_time_t","_wxCoord",0}, | |
11214 | { "_time_t","_wxPrintQuality",0}, | |
11215 | { "_time_t","_unsigned_int",0}, | |
11216 | { "_time_t","_int",0}, | |
11217 | { "_time_t","_wxWindowID",0}, | |
11218 | { "_time_t","_uint",0}, | |
11219 | { "_time_t","_size_t",0}, | |
11220 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
11221 | { "_wxCoord","_int",0}, | |
11222 | { "_wxCoord","_signed_int",0}, | |
11223 | { "_wxCoord","_unsigned_int",0}, | |
11224 | { "_wxCoord","_wxWindowID",0}, | |
11225 | { "_wxCoord","_uint",0}, | |
11226 | { "_wxCoord","_EBool",0}, | |
11227 | { "_wxCoord","_size_t",0}, | |
11228 | { "_wxCoord","_time_t",0}, | |
11229 | { "_wxCoord","_wxPrintQuality",0}, | |
11230 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
11231 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
11232 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
11233 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
11234 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
11235 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
11236 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
11237 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
11238 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
11239 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
11240 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
11241 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
11242 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
11243 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
11244 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
11245 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
11246 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
11247 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
11248 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
11249 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
11250 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
11251 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
11252 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
11253 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
11254 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
11255 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
11256 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
11257 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
11258 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
11259 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
11260 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
11261 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
11262 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
11263 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
11264 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
11265 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
11266 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
11267 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
11268 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
11269 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
11270 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
11271 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
11272 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
11273 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
11274 | {0,0,0}}; | |
11275 | ||
11276 | static PyObject *SWIG_globals; | |
11277 | #ifdef __cplusplus | |
11278 | extern "C" | |
11279 | #endif | |
11280 | SWIGEXPORT(void) initcontrolsc() { | |
11281 | PyObject *m, *d; | |
11282 | SWIG_globals = SWIG_newvarlink(); | |
11283 | m = Py_InitModule("controlsc", controlscMethods); | |
11284 | d = PyModule_GetDict(m); | |
11285 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11286 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
11287 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
11288 | { | |
11289 | int i; | |
11290 | for (i = 0; _swig_mapping[i].n1; i++) | |
11291 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11292 | } | |
11293 | } |