]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/controls.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrolsc | |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
60 | #include <wx/spinbutt.h> | |
61 | #include <wx/spinctrl.h> | |
62 | #include <wx/dynarray.h> | |
63 | #include <wx/statline.h> | |
64 | #include <wx/tglbtn.h> | |
65 | ||
66 | #ifdef __WXMSW__ | |
67 | #if wxUSE_OWNER_DRAWN | |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70 | #endif | |
71 | ||
72 | #ifdef __WXGTK__ | |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
76 | ||
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
81 | if (!target) { | |
82 | target = o; | |
83 | } else if (target == Py_None) { | |
84 | Py_DECREF(Py_None); | |
85 | target = o; | |
86 | } else { | |
87 | if (!PyTuple_Check(target)) { | |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
92 | o3 = PyTuple_New(1); | |
93 | PyTuple_SetItem(o3, 0, o); | |
94 | ||
95 | o2 = target; | |
96 | target = PySequence_Concat(o2, o3); | |
97 | Py_DECREF(o2); | |
98 | Py_DECREF(o3); | |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
103 | //#define DECLARE_DEF_STRING(name) static wxString* wxPy##name | |
104 | ||
105 | // Put some wx default wxChar* values into wxStrings. | |
106 | DECLARE_DEF_STRING(ControlNameStr); | |
107 | DECLARE_DEF_STRING(ButtonNameStr); | |
108 | DECLARE_DEF_STRING(CheckBoxNameStr); | |
109 | DECLARE_DEF_STRING(ChoiceNameStr); | |
110 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
111 | DECLARE_DEF_STRING(GaugeNameStr); | |
112 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
113 | DECLARE_DEF_STRING(StaticTextNameStr); | |
114 | DECLARE_DEF_STRING(ListBoxNameStr); | |
115 | DECLARE_DEF_STRING(TextCtrlNameStr); | |
116 | DECLARE_DEF_STRING(ScrollBarNameStr); | |
117 | DECLARE_DEF_STRING(SPIN_BUTTON_NAME); | |
118 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
119 | DECLARE_DEF_STRING(RadioBoxNameStr); | |
120 | DECLARE_DEF_STRING(RadioButtonNameStr); | |
121 | DECLARE_DEF_STRING(SliderNameStr); | |
122 | ||
123 | wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl"); | |
124 | DECLARE_DEF_STRING(SpinCtrlNameStr); | |
125 | ||
126 | static const wxString wxPyEmptyString(wxT("")); | |
127 | #ifdef __cplusplus | |
128 | extern "C" { | |
129 | #endif | |
130 | static int _wrap_wxDefaultValidator_set(PyObject *val) { | |
131 | ||
132 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
133 | return 1; | |
134 | } | |
135 | ||
136 | static PyObject *_wrap_wxDefaultValidator_get() { | |
137 | PyObject * pyobj; | |
138 | char ptemp[128]; | |
139 | ||
140 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
141 | pyobj = PyString_FromString(ptemp); | |
142 | return pyobj; | |
143 | } | |
144 | ||
145 | static void *SwigwxControlTowxWindow(void *ptr) { | |
146 | wxControl *src; | |
147 | wxWindow *dest; | |
148 | src = (wxControl *) ptr; | |
149 | dest = (wxWindow *) src; | |
150 | return (void *) dest; | |
151 | } | |
152 | ||
153 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
154 | wxControl *src; | |
155 | wxEvtHandler *dest; | |
156 | src = (wxControl *) ptr; | |
157 | dest = (wxEvtHandler *) src; | |
158 | return (void *) dest; | |
159 | } | |
160 | ||
161 | static void *SwigwxControlTowxObject(void *ptr) { | |
162 | wxControl *src; | |
163 | wxObject *dest; | |
164 | src = (wxControl *) ptr; | |
165 | dest = (wxObject *) src; | |
166 | return (void *) dest; | |
167 | } | |
168 | ||
169 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
170 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
171 | PyObject * _resultobj; | |
172 | wxControl * _result; | |
173 | wxWindow * _arg0; | |
174 | wxWindowID _arg1; | |
175 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
176 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
177 | long _arg4 = (long ) 0; | |
178 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
179 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; | |
180 | PyObject * _argo0 = 0; | |
181 | wxPoint temp; | |
182 | PyObject * _obj2 = 0; | |
183 | wxSize temp0; | |
184 | PyObject * _obj3 = 0; | |
185 | PyObject * _argo5 = 0; | |
186 | PyObject * _obj6 = 0; | |
187 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
188 | char _ptemp[128]; | |
189 | ||
190 | self = self; | |
191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
192 | return NULL; | |
193 | if (_argo0) { | |
194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
197 | return NULL; | |
198 | } | |
199 | } | |
200 | if (_obj2) | |
201 | { | |
202 | _arg2 = &temp; | |
203 | if (! wxPoint_helper(_obj2, &_arg2)) | |
204 | return NULL; | |
205 | } | |
206 | if (_obj3) | |
207 | { | |
208 | _arg3 = &temp0; | |
209 | if (! wxSize_helper(_obj3, &_arg3)) | |
210 | return NULL; | |
211 | } | |
212 | if (_argo5) { | |
213 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
214 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
216 | return NULL; | |
217 | } | |
218 | } | |
219 | if (_obj6) | |
220 | { | |
221 | _arg6 = wxString_in_helper(_obj6); | |
222 | if (_arg6 == NULL) | |
223 | return NULL; | |
224 | } | |
225 | { | |
226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
227 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
228 | ||
229 | wxPyEndAllowThreads(__tstate); | |
230 | if (PyErr_Occurred()) return NULL; | |
231 | } if (_result) { | |
232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
233 | _resultobj = Py_BuildValue("s",_ptemp); | |
234 | } else { | |
235 | Py_INCREF(Py_None); | |
236 | _resultobj = Py_None; | |
237 | } | |
238 | { | |
239 | if (_obj6) | |
240 | delete _arg6; | |
241 | } | |
242 | return _resultobj; | |
243 | } | |
244 | ||
245 | #define new_wxPreControl() (new wxControl()) | |
246 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | wxControl * _result; | |
249 | char *_kwnames[] = { NULL }; | |
250 | char _ptemp[128]; | |
251 | ||
252 | self = self; | |
253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
254 | return NULL; | |
255 | { | |
256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
257 | _result = (wxControl *)new_wxPreControl(); | |
258 | ||
259 | wxPyEndAllowThreads(__tstate); | |
260 | if (PyErr_Occurred()) return NULL; | |
261 | } if (_result) { | |
262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
263 | _resultobj = Py_BuildValue("s",_ptemp); | |
264 | } else { | |
265 | Py_INCREF(Py_None); | |
266 | _resultobj = Py_None; | |
267 | } | |
268 | return _resultobj; | |
269 | } | |
270 | ||
271 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
272 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
273 | PyObject * _resultobj; | |
274 | bool _result; | |
275 | wxControl * _arg0; | |
276 | wxWindow * _arg1; | |
277 | wxWindowID _arg2; | |
278 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
279 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
280 | long _arg5 = (long ) 0; | |
281 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
282 | wxString * _arg7 = (wxString *) &wxPyControlNameStr; | |
283 | PyObject * _argo0 = 0; | |
284 | PyObject * _argo1 = 0; | |
285 | wxPoint temp; | |
286 | PyObject * _obj3 = 0; | |
287 | wxSize temp0; | |
288 | PyObject * _obj4 = 0; | |
289 | PyObject * _argo6 = 0; | |
290 | PyObject * _obj7 = 0; | |
291 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
292 | ||
293 | self = self; | |
294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
295 | return NULL; | |
296 | if (_argo0) { | |
297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
300 | return NULL; | |
301 | } | |
302 | } | |
303 | if (_argo1) { | |
304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
307 | return NULL; | |
308 | } | |
309 | } | |
310 | if (_obj3) | |
311 | { | |
312 | _arg3 = &temp; | |
313 | if (! wxPoint_helper(_obj3, &_arg3)) | |
314 | return NULL; | |
315 | } | |
316 | if (_obj4) | |
317 | { | |
318 | _arg4 = &temp0; | |
319 | if (! wxSize_helper(_obj4, &_arg4)) | |
320 | return NULL; | |
321 | } | |
322 | if (_argo6) { | |
323 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
324 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
326 | return NULL; | |
327 | } | |
328 | } | |
329 | if (_obj7) | |
330 | { | |
331 | _arg7 = wxString_in_helper(_obj7); | |
332 | if (_arg7 == NULL) | |
333 | return NULL; | |
334 | } | |
335 | { | |
336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
337 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
338 | ||
339 | wxPyEndAllowThreads(__tstate); | |
340 | if (PyErr_Occurred()) return NULL; | |
341 | } _resultobj = Py_BuildValue("i",_result); | |
342 | { | |
343 | if (_obj7) | |
344 | delete _arg7; | |
345 | } | |
346 | return _resultobj; | |
347 | } | |
348 | ||
349 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
350 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
351 | PyObject * _resultobj; | |
352 | wxControl * _arg0; | |
353 | wxCommandEvent * _arg1; | |
354 | PyObject * _argo0 = 0; | |
355 | PyObject * _argo1 = 0; | |
356 | char *_kwnames[] = { "self","event", NULL }; | |
357 | ||
358 | self = self; | |
359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
360 | return NULL; | |
361 | if (_argo0) { | |
362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
365 | return NULL; | |
366 | } | |
367 | } | |
368 | if (_argo1) { | |
369 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
370 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
372 | return NULL; | |
373 | } | |
374 | } | |
375 | { | |
376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
377 | wxControl_Command(_arg0,*_arg1); | |
378 | ||
379 | wxPyEndAllowThreads(__tstate); | |
380 | if (PyErr_Occurred()) return NULL; | |
381 | } Py_INCREF(Py_None); | |
382 | _resultobj = Py_None; | |
383 | return _resultobj; | |
384 | } | |
385 | ||
386 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
387 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
388 | PyObject * _resultobj; | |
389 | wxString * _result; | |
390 | wxControl * _arg0; | |
391 | PyObject * _argo0 = 0; | |
392 | char *_kwnames[] = { "self", NULL }; | |
393 | ||
394 | self = self; | |
395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) | |
396 | return NULL; | |
397 | if (_argo0) { | |
398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); | |
401 | return NULL; | |
402 | } | |
403 | } | |
404 | { | |
405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
406 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
407 | ||
408 | wxPyEndAllowThreads(__tstate); | |
409 | if (PyErr_Occurred()) return NULL; | |
410 | }{ | |
411 | #if wxUSE_UNICODE | |
412 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
413 | #else | |
414 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
415 | #endif | |
416 | } | |
417 | { | |
418 | delete _result; | |
419 | } | |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
424 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | wxControl * _arg0; | |
427 | wxString * _arg1; | |
428 | PyObject * _argo0 = 0; | |
429 | PyObject * _obj1 = 0; | |
430 | char *_kwnames[] = { "self","label", NULL }; | |
431 | ||
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) | |
434 | return NULL; | |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
443 | _arg1 = wxString_in_helper(_obj1); | |
444 | if (_arg1 == NULL) | |
445 | return NULL; | |
446 | } | |
447 | { | |
448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
449 | wxControl_SetLabel(_arg0,*_arg1); | |
450 | ||
451 | wxPyEndAllowThreads(__tstate); | |
452 | if (PyErr_Occurred()) return NULL; | |
453 | } Py_INCREF(Py_None); | |
454 | _resultobj = Py_None; | |
455 | { | |
456 | if (_obj1) | |
457 | delete _arg1; | |
458 | } | |
459 | return _resultobj; | |
460 | } | |
461 | ||
462 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { | |
463 | wxControlWithItems *src; | |
464 | wxControl *dest; | |
465 | src = (wxControlWithItems *) ptr; | |
466 | dest = (wxControl *) src; | |
467 | return (void *) dest; | |
468 | } | |
469 | ||
470 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
471 | wxControlWithItems *src; | |
472 | wxWindow *dest; | |
473 | src = (wxControlWithItems *) ptr; | |
474 | dest = (wxWindow *) src; | |
475 | return (void *) dest; | |
476 | } | |
477 | ||
478 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
479 | wxControlWithItems *src; | |
480 | wxEvtHandler *dest; | |
481 | src = (wxControlWithItems *) ptr; | |
482 | dest = (wxEvtHandler *) src; | |
483 | return (void *) dest; | |
484 | } | |
485 | ||
486 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
487 | wxControlWithItems *src; | |
488 | wxObject *dest; | |
489 | src = (wxControlWithItems *) ptr; | |
490 | dest = (wxObject *) src; | |
491 | return (void *) dest; | |
492 | } | |
493 | ||
494 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
495 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
496 | PyObject * _resultobj; | |
497 | wxControlWithItems * _arg0; | |
498 | int _arg1; | |
499 | PyObject * _argo0 = 0; | |
500 | char *_kwnames[] = { "self","n", NULL }; | |
501 | ||
502 | self = self; | |
503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
504 | return NULL; | |
505 | if (_argo0) { | |
506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
509 | return NULL; | |
510 | } | |
511 | } | |
512 | { | |
513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
514 | wxControlWithItems_Delete(_arg0,_arg1); | |
515 | ||
516 | wxPyEndAllowThreads(__tstate); | |
517 | if (PyErr_Occurred()) return NULL; | |
518 | } Py_INCREF(Py_None); | |
519 | _resultobj = Py_None; | |
520 | return _resultobj; | |
521 | } | |
522 | ||
523 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
524 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
525 | PyObject * _resultobj; | |
526 | int _result; | |
527 | wxControlWithItems * _arg0; | |
528 | PyObject * _argo0 = 0; | |
529 | char *_kwnames[] = { "self", NULL }; | |
530 | ||
531 | self = self; | |
532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
533 | return NULL; | |
534 | if (_argo0) { | |
535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
538 | return NULL; | |
539 | } | |
540 | } | |
541 | { | |
542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
543 | _result = (int )wxControlWithItems_GetCount(_arg0); | |
544 | ||
545 | wxPyEndAllowThreads(__tstate); | |
546 | if (PyErr_Occurred()) return NULL; | |
547 | } _resultobj = Py_BuildValue("i",_result); | |
548 | return _resultobj; | |
549 | } | |
550 | ||
551 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
552 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
553 | PyObject * _resultobj; | |
554 | wxString * _result; | |
555 | wxControlWithItems * _arg0; | |
556 | int _arg1; | |
557 | PyObject * _argo0 = 0; | |
558 | char *_kwnames[] = { "self","n", NULL }; | |
559 | ||
560 | self = self; | |
561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
562 | return NULL; | |
563 | if (_argo0) { | |
564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
567 | return NULL; | |
568 | } | |
569 | } | |
570 | { | |
571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
572 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); | |
573 | ||
574 | wxPyEndAllowThreads(__tstate); | |
575 | if (PyErr_Occurred()) return NULL; | |
576 | }{ | |
577 | #if wxUSE_UNICODE | |
578 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
579 | #else | |
580 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
581 | #endif | |
582 | } | |
583 | { | |
584 | delete _result; | |
585 | } | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
590 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxControlWithItems * _arg0; | |
593 | int _arg1; | |
594 | wxString * _arg2; | |
595 | PyObject * _argo0 = 0; | |
596 | PyObject * _obj2 = 0; | |
597 | char *_kwnames[] = { "self","n","s", NULL }; | |
598 | ||
599 | self = self; | |
600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
601 | return NULL; | |
602 | if (_argo0) { | |
603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
606 | return NULL; | |
607 | } | |
608 | } | |
609 | { | |
610 | _arg2 = wxString_in_helper(_obj2); | |
611 | if (_arg2 == NULL) | |
612 | return NULL; | |
613 | } | |
614 | { | |
615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
616 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); | |
617 | ||
618 | wxPyEndAllowThreads(__tstate); | |
619 | if (PyErr_Occurred()) return NULL; | |
620 | } Py_INCREF(Py_None); | |
621 | _resultobj = Py_None; | |
622 | { | |
623 | if (_obj2) | |
624 | delete _arg2; | |
625 | } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
629 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
630 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
631 | PyObject * _resultobj; | |
632 | int _result; | |
633 | wxControlWithItems * _arg0; | |
634 | wxString * _arg1; | |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _obj1 = 0; | |
637 | char *_kwnames[] = { "self","s", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
650 | _arg1 = wxString_in_helper(_obj1); | |
651 | if (_arg1 == NULL) | |
652 | return NULL; | |
653 | } | |
654 | { | |
655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
656 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); | |
657 | ||
658 | wxPyEndAllowThreads(__tstate); | |
659 | if (PyErr_Occurred()) return NULL; | |
660 | } _resultobj = Py_BuildValue("i",_result); | |
661 | { | |
662 | if (_obj1) | |
663 | delete _arg1; | |
664 | } | |
665 | return _resultobj; | |
666 | } | |
667 | ||
668 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
669 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
670 | PyObject * _resultobj; | |
671 | wxControlWithItems * _arg0; | |
672 | int _arg1; | |
673 | PyObject * _argo0 = 0; | |
674 | char *_kwnames[] = { "self","n", NULL }; | |
675 | ||
676 | self = self; | |
677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
678 | return NULL; | |
679 | if (_argo0) { | |
680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
683 | return NULL; | |
684 | } | |
685 | } | |
686 | { | |
687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
688 | wxControlWithItems_Select(_arg0,_arg1); | |
689 | ||
690 | wxPyEndAllowThreads(__tstate); | |
691 | if (PyErr_Occurred()) return NULL; | |
692 | } Py_INCREF(Py_None); | |
693 | _resultobj = Py_None; | |
694 | return _resultobj; | |
695 | } | |
696 | ||
697 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
698 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
699 | PyObject * _resultobj; | |
700 | int _result; | |
701 | wxControlWithItems * _arg0; | |
702 | PyObject * _argo0 = 0; | |
703 | char *_kwnames[] = { "self", NULL }; | |
704 | ||
705 | self = self; | |
706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
707 | return NULL; | |
708 | if (_argo0) { | |
709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
712 | return NULL; | |
713 | } | |
714 | } | |
715 | { | |
716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
717 | _result = (int )wxControlWithItems_GetSelection(_arg0); | |
718 | ||
719 | wxPyEndAllowThreads(__tstate); | |
720 | if (PyErr_Occurred()) return NULL; | |
721 | } _resultobj = Py_BuildValue("i",_result); | |
722 | return _resultobj; | |
723 | } | |
724 | ||
725 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
726 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
727 | PyObject * _resultobj; | |
728 | wxString * _result; | |
729 | wxControlWithItems * _arg0; | |
730 | PyObject * _argo0 = 0; | |
731 | char *_kwnames[] = { "self", NULL }; | |
732 | ||
733 | self = self; | |
734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
735 | return NULL; | |
736 | if (_argo0) { | |
737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
740 | return NULL; | |
741 | } | |
742 | } | |
743 | { | |
744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
745 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); | |
746 | ||
747 | wxPyEndAllowThreads(__tstate); | |
748 | if (PyErr_Occurred()) return NULL; | |
749 | }{ | |
750 | #if wxUSE_UNICODE | |
751 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
752 | #else | |
753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
754 | #endif | |
755 | } | |
756 | { | |
757 | delete _result; | |
758 | } | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
763 | if (clientData) { | |
764 | wxPyClientData* data = new wxPyClientData(clientData); | |
765 | self->Append(item, data); | |
766 | } else | |
767 | self->Append(item); | |
768 | } | |
769 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
770 | PyObject * _resultobj; | |
771 | wxControlWithItems * _arg0; | |
772 | wxString * _arg1; | |
773 | PyObject * _arg2 = (PyObject *) NULL; | |
774 | PyObject * _argo0 = 0; | |
775 | PyObject * _obj1 = 0; | |
776 | PyObject * _obj2 = 0; | |
777 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
778 | ||
779 | self = self; | |
780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
781 | return NULL; | |
782 | if (_argo0) { | |
783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
786 | return NULL; | |
787 | } | |
788 | } | |
789 | { | |
790 | _arg1 = wxString_in_helper(_obj1); | |
791 | if (_arg1 == NULL) | |
792 | return NULL; | |
793 | } | |
794 | if (_obj2) | |
795 | { | |
796 | _arg2 = _obj2; | |
797 | } | |
798 | { | |
799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
800 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); | |
801 | ||
802 | wxPyEndAllowThreads(__tstate); | |
803 | if (PyErr_Occurred()) return NULL; | |
804 | } Py_INCREF(Py_None); | |
805 | _resultobj = Py_None; | |
806 | { | |
807 | if (_obj1) | |
808 | delete _arg1; | |
809 | } | |
810 | return _resultobj; | |
811 | } | |
812 | ||
813 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
814 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
815 | if (data) { | |
816 | Py_INCREF(data->m_obj); | |
817 | return data->m_obj; | |
818 | } else { | |
819 | Py_INCREF(Py_None); | |
820 | return Py_None; | |
821 | } | |
822 | } | |
823 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | PyObject * _result; | |
826 | wxControlWithItems * _arg0; | |
827 | int _arg1; | |
828 | PyObject * _argo0 = 0; | |
829 | char *_kwnames[] = { "self","n", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
843 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); | |
844 | ||
845 | wxPyEndAllowThreads(__tstate); | |
846 | if (PyErr_Occurred()) return NULL; | |
847 | }{ | |
848 | _resultobj = _result; | |
849 | } | |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
854 | wxPyClientData* data = new wxPyClientData(clientData); | |
855 | self->SetClientObject(n, data); | |
856 | } | |
857 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
858 | PyObject * _resultobj; | |
859 | wxControlWithItems * _arg0; | |
860 | int _arg1; | |
861 | PyObject * _arg2; | |
862 | PyObject * _argo0 = 0; | |
863 | PyObject * _obj2 = 0; | |
864 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
865 | ||
866 | self = self; | |
867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
868 | return NULL; | |
869 | if (_argo0) { | |
870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
873 | return NULL; | |
874 | } | |
875 | } | |
876 | { | |
877 | _arg2 = _obj2; | |
878 | } | |
879 | { | |
880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
881 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); | |
882 | ||
883 | wxPyEndAllowThreads(__tstate); | |
884 | if (PyErr_Occurred()) return NULL; | |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
890 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
891 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
892 | PyObject * _resultobj; | |
893 | wxControlWithItems * _arg0; | |
894 | wxArrayString * _arg1; | |
895 | PyObject * _argo0 = 0; | |
896 | PyObject * _obj1 = 0; | |
897 | char *_kwnames[] = { "self","strings", NULL }; | |
898 | ||
899 | self = self; | |
900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
901 | return NULL; | |
902 | if (_argo0) { | |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | { | |
910 | if (! PySequence_Check(_obj1)) { | |
911 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
912 | return NULL; | |
913 | } | |
914 | _arg1 = new wxArrayString; | |
915 | int i, len=PySequence_Length(_obj1); | |
916 | for (i=0; i<len; i++) { | |
917 | PyObject* item = PySequence_GetItem(_obj1, i); | |
918 | #if wxUSE_UNICODE | |
919 | PyObject* str = PyObject_Unicode(item); | |
920 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
921 | #else | |
922 | PyObject* str = PyObject_Str(item); | |
923 | _arg1->Add(PyString_AsString(str)); | |
924 | #endif | |
925 | Py_DECREF(item); | |
926 | Py_DECREF(str); | |
927 | } | |
928 | } | |
929 | { | |
930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
931 | wxControlWithItems_AppendItems(_arg0,*_arg1); | |
932 | ||
933 | wxPyEndAllowThreads(__tstate); | |
934 | if (PyErr_Occurred()) return NULL; | |
935 | } Py_INCREF(Py_None); | |
936 | _resultobj = Py_None; | |
937 | { | |
938 | if (_obj1) | |
939 | delete _arg1; | |
940 | } | |
941 | return _resultobj; | |
942 | } | |
943 | ||
944 | static void *SwigwxButtonTowxControl(void *ptr) { | |
945 | wxButton *src; | |
946 | wxControl *dest; | |
947 | src = (wxButton *) ptr; | |
948 | dest = (wxControl *) src; | |
949 | return (void *) dest; | |
950 | } | |
951 | ||
952 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
953 | wxButton *src; | |
954 | wxWindow *dest; | |
955 | src = (wxButton *) ptr; | |
956 | dest = (wxWindow *) src; | |
957 | return (void *) dest; | |
958 | } | |
959 | ||
960 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
961 | wxButton *src; | |
962 | wxEvtHandler *dest; | |
963 | src = (wxButton *) ptr; | |
964 | dest = (wxEvtHandler *) src; | |
965 | return (void *) dest; | |
966 | } | |
967 | ||
968 | static void *SwigwxButtonTowxObject(void *ptr) { | |
969 | wxButton *src; | |
970 | wxObject *dest; | |
971 | src = (wxButton *) ptr; | |
972 | dest = (wxObject *) src; | |
973 | return (void *) dest; | |
974 | } | |
975 | ||
976 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
977 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
978 | PyObject * _resultobj; | |
979 | wxButton * _result; | |
980 | wxWindow * _arg0; | |
981 | wxWindowID _arg1; | |
982 | wxString * _arg2; | |
983 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
984 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
985 | long _arg5 = (long ) 0; | |
986 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
987 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; | |
988 | PyObject * _argo0 = 0; | |
989 | PyObject * _obj2 = 0; | |
990 | wxPoint temp; | |
991 | PyObject * _obj3 = 0; | |
992 | wxSize temp0; | |
993 | PyObject * _obj4 = 0; | |
994 | PyObject * _argo6 = 0; | |
995 | PyObject * _obj7 = 0; | |
996 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
997 | char _ptemp[128]; | |
998 | ||
999 | self = self; | |
1000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
1001 | return NULL; | |
1002 | if (_argo0) { | |
1003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); | |
1006 | return NULL; | |
1007 | } | |
1008 | } | |
1009 | { | |
1010 | _arg2 = wxString_in_helper(_obj2); | |
1011 | if (_arg2 == NULL) | |
1012 | return NULL; | |
1013 | } | |
1014 | if (_obj3) | |
1015 | { | |
1016 | _arg3 = &temp; | |
1017 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1018 | return NULL; | |
1019 | } | |
1020 | if (_obj4) | |
1021 | { | |
1022 | _arg4 = &temp0; | |
1023 | if (! wxSize_helper(_obj4, &_arg4)) | |
1024 | return NULL; | |
1025 | } | |
1026 | if (_argo6) { | |
1027 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1028 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); | |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
1033 | if (_obj7) | |
1034 | { | |
1035 | _arg7 = wxString_in_helper(_obj7); | |
1036 | if (_arg7 == NULL) | |
1037 | return NULL; | |
1038 | } | |
1039 | { | |
1040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1041 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1042 | ||
1043 | wxPyEndAllowThreads(__tstate); | |
1044 | if (PyErr_Occurred()) return NULL; | |
1045 | } if (_result) { | |
1046 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1047 | _resultobj = Py_BuildValue("s",_ptemp); | |
1048 | } else { | |
1049 | Py_INCREF(Py_None); | |
1050 | _resultobj = Py_None; | |
1051 | } | |
1052 | { | |
1053 | if (_obj2) | |
1054 | delete _arg2; | |
1055 | } | |
1056 | { | |
1057 | if (_obj7) | |
1058 | delete _arg7; | |
1059 | } | |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define new_wxPreButton() (new wxButton()) | |
1064 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | wxButton * _result; | |
1067 | char *_kwnames[] = { NULL }; | |
1068 | char _ptemp[128]; | |
1069 | ||
1070 | self = self; | |
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1072 | return NULL; | |
1073 | { | |
1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1075 | _result = (wxButton *)new_wxPreButton(); | |
1076 | ||
1077 | wxPyEndAllowThreads(__tstate); | |
1078 | if (PyErr_Occurred()) return NULL; | |
1079 | } if (_result) { | |
1080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1081 | _resultobj = Py_BuildValue("s",_ptemp); | |
1082 | } else { | |
1083 | Py_INCREF(Py_None); | |
1084 | _resultobj = Py_None; | |
1085 | } | |
1086 | return _resultobj; | |
1087 | } | |
1088 | ||
1089 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1090 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1091 | PyObject * _resultobj; | |
1092 | bool _result; | |
1093 | wxButton * _arg0; | |
1094 | wxWindow * _arg1; | |
1095 | wxWindowID _arg2; | |
1096 | wxString * _arg3; | |
1097 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1098 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1099 | long _arg6 = (long ) 0; | |
1100 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1101 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; | |
1102 | PyObject * _argo0 = 0; | |
1103 | PyObject * _argo1 = 0; | |
1104 | PyObject * _obj3 = 0; | |
1105 | wxPoint temp; | |
1106 | PyObject * _obj4 = 0; | |
1107 | wxSize temp0; | |
1108 | PyObject * _obj5 = 0; | |
1109 | PyObject * _argo7 = 0; | |
1110 | PyObject * _obj8 = 0; | |
1111 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1112 | ||
1113 | self = self; | |
1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
1115 | return NULL; | |
1116 | if (_argo0) { | |
1117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1120 | return NULL; | |
1121 | } | |
1122 | } | |
1123 | if (_argo1) { | |
1124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1127 | return NULL; | |
1128 | } | |
1129 | } | |
1130 | { | |
1131 | _arg3 = wxString_in_helper(_obj3); | |
1132 | if (_arg3 == NULL) | |
1133 | return NULL; | |
1134 | } | |
1135 | if (_obj4) | |
1136 | { | |
1137 | _arg4 = &temp; | |
1138 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1139 | return NULL; | |
1140 | } | |
1141 | if (_obj5) | |
1142 | { | |
1143 | _arg5 = &temp0; | |
1144 | if (! wxSize_helper(_obj5, &_arg5)) | |
1145 | return NULL; | |
1146 | } | |
1147 | if (_argo7) { | |
1148 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1149 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1151 | return NULL; | |
1152 | } | |
1153 | } | |
1154 | if (_obj8) | |
1155 | { | |
1156 | _arg8 = wxString_in_helper(_obj8); | |
1157 | if (_arg8 == NULL) | |
1158 | return NULL; | |
1159 | } | |
1160 | { | |
1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1162 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
1165 | if (PyErr_Occurred()) return NULL; | |
1166 | } _resultobj = Py_BuildValue("i",_result); | |
1167 | { | |
1168 | if (_obj3) | |
1169 | delete _arg3; | |
1170 | } | |
1171 | { | |
1172 | if (_obj8) | |
1173 | delete _arg8; | |
1174 | } | |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
1179 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | wxButton * _arg0; | |
1182 | PyObject * _argo0 = 0; | |
1183 | char *_kwnames[] = { "self", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
1196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1197 | wxButton_SetDefault(_arg0); | |
1198 | ||
1199 | wxPyEndAllowThreads(__tstate); | |
1200 | if (PyErr_Occurred()) return NULL; | |
1201 | } Py_INCREF(Py_None); | |
1202 | _resultobj = Py_None; | |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
1206 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1207 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject * _resultobj; | |
1209 | wxButton * _arg0; | |
1210 | wxColour * _arg1; | |
1211 | PyObject * _argo0 = 0; | |
1212 | wxColour temp; | |
1213 | PyObject * _obj1 = 0; | |
1214 | char *_kwnames[] = { "self","colour", NULL }; | |
1215 | ||
1216 | self = self; | |
1217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1218 | return NULL; | |
1219 | if (_argo0) { | |
1220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1223 | return NULL; | |
1224 | } | |
1225 | } | |
1226 | { | |
1227 | _arg1 = &temp; | |
1228 | if (! wxColour_helper(_obj1, &_arg1)) | |
1229 | return NULL; | |
1230 | } | |
1231 | { | |
1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1233 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
1234 | ||
1235 | wxPyEndAllowThreads(__tstate); | |
1236 | if (PyErr_Occurred()) return NULL; | |
1237 | } Py_INCREF(Py_None); | |
1238 | _resultobj = Py_None; | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1243 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | wxButton * _arg0; | |
1246 | wxColour * _arg1; | |
1247 | PyObject * _argo0 = 0; | |
1248 | wxColour temp; | |
1249 | PyObject * _obj1 = 0; | |
1250 | char *_kwnames[] = { "self","colour", NULL }; | |
1251 | ||
1252 | self = self; | |
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
1254 | return NULL; | |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
1263 | _arg1 = &temp; | |
1264 | if (! wxColour_helper(_obj1, &_arg1)) | |
1265 | return NULL; | |
1266 | } | |
1267 | { | |
1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1269 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
1270 | ||
1271 | wxPyEndAllowThreads(__tstate); | |
1272 | if (PyErr_Occurred()) return NULL; | |
1273 | } Py_INCREF(Py_None); | |
1274 | _resultobj = Py_None; | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
1278 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1279 | PyObject * _resultobj; | |
1280 | wxSize * _result; | |
1281 | char *_kwnames[] = { NULL }; | |
1282 | char _ptemp[128]; | |
1283 | ||
1284 | self = self; | |
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1286 | return NULL; | |
1287 | { | |
1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1289 | _result = new wxSize (wxButton::GetDefaultSize()); | |
1290 | ||
1291 | wxPyEndAllowThreads(__tstate); | |
1292 | if (PyErr_Occurred()) return NULL; | |
1293 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1294 | _resultobj = Py_BuildValue("s",_ptemp); | |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1299 | wxBitmapButton *src; | |
1300 | wxButton *dest; | |
1301 | src = (wxBitmapButton *) ptr; | |
1302 | dest = (wxButton *) src; | |
1303 | return (void *) dest; | |
1304 | } | |
1305 | ||
1306 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1307 | wxBitmapButton *src; | |
1308 | wxControl *dest; | |
1309 | src = (wxBitmapButton *) ptr; | |
1310 | dest = (wxControl *) src; | |
1311 | return (void *) dest; | |
1312 | } | |
1313 | ||
1314 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1315 | wxBitmapButton *src; | |
1316 | wxWindow *dest; | |
1317 | src = (wxBitmapButton *) ptr; | |
1318 | dest = (wxWindow *) src; | |
1319 | return (void *) dest; | |
1320 | } | |
1321 | ||
1322 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1323 | wxBitmapButton *src; | |
1324 | wxEvtHandler *dest; | |
1325 | src = (wxBitmapButton *) ptr; | |
1326 | dest = (wxEvtHandler *) src; | |
1327 | return (void *) dest; | |
1328 | } | |
1329 | ||
1330 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1331 | wxBitmapButton *src; | |
1332 | wxObject *dest; | |
1333 | src = (wxBitmapButton *) ptr; | |
1334 | dest = (wxObject *) src; | |
1335 | return (void *) dest; | |
1336 | } | |
1337 | ||
1338 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1339 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1340 | PyObject * _resultobj; | |
1341 | wxBitmapButton * _result; | |
1342 | wxWindow * _arg0; | |
1343 | wxWindowID _arg1; | |
1344 | wxBitmap * _arg2; | |
1345 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1346 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1347 | long _arg5 = (long ) wxBU_AUTODRAW; | |
1348 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1349 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; | |
1350 | PyObject * _argo0 = 0; | |
1351 | PyObject * _argo2 = 0; | |
1352 | wxPoint temp; | |
1353 | PyObject * _obj3 = 0; | |
1354 | wxSize temp0; | |
1355 | PyObject * _obj4 = 0; | |
1356 | PyObject * _argo6 = 0; | |
1357 | PyObject * _obj7 = 0; | |
1358 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1359 | char _ptemp[128]; | |
1360 | ||
1361 | self = self; | |
1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
1363 | return NULL; | |
1364 | if (_argo0) { | |
1365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); | |
1368 | return NULL; | |
1369 | } | |
1370 | } | |
1371 | if (_argo2) { | |
1372 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | if (_obj3) | |
1379 | { | |
1380 | _arg3 = &temp; | |
1381 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1382 | return NULL; | |
1383 | } | |
1384 | if (_obj4) | |
1385 | { | |
1386 | _arg4 = &temp0; | |
1387 | if (! wxSize_helper(_obj4, &_arg4)) | |
1388 | return NULL; | |
1389 | } | |
1390 | if (_argo6) { | |
1391 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | if (_obj7) | |
1398 | { | |
1399 | _arg7 = wxString_in_helper(_obj7); | |
1400 | if (_arg7 == NULL) | |
1401 | return NULL; | |
1402 | } | |
1403 | { | |
1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1405 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1406 | ||
1407 | wxPyEndAllowThreads(__tstate); | |
1408 | if (PyErr_Occurred()) return NULL; | |
1409 | } if (_result) { | |
1410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1411 | _resultobj = Py_BuildValue("s",_ptemp); | |
1412 | } else { | |
1413 | Py_INCREF(Py_None); | |
1414 | _resultobj = Py_None; | |
1415 | } | |
1416 | { | |
1417 | if (_obj7) | |
1418 | delete _arg7; | |
1419 | } | |
1420 | return _resultobj; | |
1421 | } | |
1422 | ||
1423 | #define new_wxPreBitmapButton() (new wxBitmapButton()) | |
1424 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1425 | PyObject * _resultobj; | |
1426 | wxBitmapButton * _result; | |
1427 | char *_kwnames[] = { NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1432 | return NULL; | |
1433 | { | |
1434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1435 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); | |
1436 | ||
1437 | wxPyEndAllowThreads(__tstate); | |
1438 | if (PyErr_Occurred()) return NULL; | |
1439 | } if (_result) { | |
1440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1441 | _resultobj = Py_BuildValue("s",_ptemp); | |
1442 | } else { | |
1443 | Py_INCREF(Py_None); | |
1444 | _resultobj = Py_None; | |
1445 | } | |
1446 | return _resultobj; | |
1447 | } | |
1448 | ||
1449 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1450 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1451 | PyObject * _resultobj; | |
1452 | bool _result; | |
1453 | wxBitmapButton * _arg0; | |
1454 | wxWindow * _arg1; | |
1455 | wxWindowID _arg2; | |
1456 | wxBitmap * _arg3; | |
1457 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1458 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1459 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1460 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1461 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; | |
1462 | PyObject * _argo0 = 0; | |
1463 | PyObject * _argo1 = 0; | |
1464 | PyObject * _argo3 = 0; | |
1465 | wxPoint temp; | |
1466 | PyObject * _obj4 = 0; | |
1467 | wxSize temp0; | |
1468 | PyObject * _obj5 = 0; | |
1469 | PyObject * _argo7 = 0; | |
1470 | PyObject * _obj8 = 0; | |
1471 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1472 | ||
1473 | self = self; | |
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
1475 | return NULL; | |
1476 | if (_argo0) { | |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | if (_argo1) { | |
1484 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1485 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1487 | return NULL; | |
1488 | } | |
1489 | } | |
1490 | if (_argo3) { | |
1491 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
1497 | if (_obj4) | |
1498 | { | |
1499 | _arg4 = &temp; | |
1500 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1501 | return NULL; | |
1502 | } | |
1503 | if (_obj5) | |
1504 | { | |
1505 | _arg5 = &temp0; | |
1506 | if (! wxSize_helper(_obj5, &_arg5)) | |
1507 | return NULL; | |
1508 | } | |
1509 | if (_argo7) { | |
1510 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1511 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1513 | return NULL; | |
1514 | } | |
1515 | } | |
1516 | if (_obj8) | |
1517 | { | |
1518 | _arg8 = wxString_in_helper(_obj8); | |
1519 | if (_arg8 == NULL) | |
1520 | return NULL; | |
1521 | } | |
1522 | { | |
1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1524 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
1525 | ||
1526 | wxPyEndAllowThreads(__tstate); | |
1527 | if (PyErr_Occurred()) return NULL; | |
1528 | } _resultobj = Py_BuildValue("i",_result); | |
1529 | { | |
1530 | if (_obj8) | |
1531 | delete _arg8; | |
1532 | } | |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
1537 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | wxBitmap * _result; | |
1540 | wxBitmapButton * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | char _ptemp[128]; | |
1544 | ||
1545 | self = self; | |
1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) | |
1547 | return NULL; | |
1548 | if (_argo0) { | |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); | |
1552 | return NULL; | |
1553 | } | |
1554 | } | |
1555 | { | |
1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1557 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); | |
1558 | ||
1559 | wxPyEndAllowThreads(__tstate); | |
1560 | if (PyErr_Occurred()) return NULL; | |
1561 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1562 | _resultobj = Py_BuildValue("s",_ptemp); | |
1563 | return _resultobj; | |
1564 | } | |
1565 | ||
1566 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
1567 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | wxBitmap * _result; | |
1570 | wxBitmapButton * _arg0; | |
1571 | PyObject * _argo0 = 0; | |
1572 | char *_kwnames[] = { "self", NULL }; | |
1573 | char _ptemp[128]; | |
1574 | ||
1575 | self = self; | |
1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) | |
1577 | return NULL; | |
1578 | if (_argo0) { | |
1579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1582 | return NULL; | |
1583 | } | |
1584 | } | |
1585 | { | |
1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1587 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); | |
1588 | ||
1589 | wxPyEndAllowThreads(__tstate); | |
1590 | if (PyErr_Occurred()) return NULL; | |
1591 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1592 | _resultobj = Py_BuildValue("s",_ptemp); | |
1593 | return _resultobj; | |
1594 | } | |
1595 | ||
1596 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
1597 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject * _resultobj; | |
1599 | wxBitmap * _result; | |
1600 | wxBitmapButton * _arg0; | |
1601 | PyObject * _argo0 = 0; | |
1602 | char *_kwnames[] = { "self", NULL }; | |
1603 | char _ptemp[128]; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) return NULL; | |
1621 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1622 | _resultobj = Py_BuildValue("s",_ptemp); | |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
1627 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1628 | PyObject * _resultobj; | |
1629 | wxBitmap * _result; | |
1630 | wxBitmapButton * _arg0; | |
1631 | PyObject * _argo0 = 0; | |
1632 | char *_kwnames[] = { "self", NULL }; | |
1633 | char _ptemp[128]; | |
1634 | ||
1635 | self = self; | |
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) | |
1637 | return NULL; | |
1638 | if (_argo0) { | |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); | |
1642 | return NULL; | |
1643 | } | |
1644 | } | |
1645 | { | |
1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1647 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); | |
1648 | ||
1649 | wxPyEndAllowThreads(__tstate); | |
1650 | if (PyErr_Occurred()) return NULL; | |
1651 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1652 | _resultobj = Py_BuildValue("s",_ptemp); | |
1653 | return _resultobj; | |
1654 | } | |
1655 | ||
1656 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
1657 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject * _resultobj; | |
1659 | wxBitmapButton * _arg0; | |
1660 | wxBitmap * _arg1; | |
1661 | PyObject * _argo0 = 0; | |
1662 | PyObject * _argo1 = 0; | |
1663 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1664 | ||
1665 | self = self; | |
1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) | |
1667 | return NULL; | |
1668 | if (_argo0) { | |
1669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1672 | return NULL; | |
1673 | } | |
1674 | } | |
1675 | if (_argo1) { | |
1676 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); | |
1679 | return NULL; | |
1680 | } | |
1681 | } | |
1682 | { | |
1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1684 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
1685 | ||
1686 | wxPyEndAllowThreads(__tstate); | |
1687 | if (PyErr_Occurred()) return NULL; | |
1688 | } Py_INCREF(Py_None); | |
1689 | _resultobj = Py_None; | |
1690 | return _resultobj; | |
1691 | } | |
1692 | ||
1693 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
1694 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1695 | PyObject * _resultobj; | |
1696 | wxBitmapButton * _arg0; | |
1697 | wxBitmap * _arg1; | |
1698 | PyObject * _argo0 = 0; | |
1699 | PyObject * _argo1 = 0; | |
1700 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1701 | ||
1702 | self = self; | |
1703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) | |
1704 | return NULL; | |
1705 | if (_argo0) { | |
1706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); | |
1709 | return NULL; | |
1710 | } | |
1711 | } | |
1712 | if (_argo1) { | |
1713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1721 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
1722 | ||
1723 | wxPyEndAllowThreads(__tstate); | |
1724 | if (PyErr_Occurred()) return NULL; | |
1725 | } Py_INCREF(Py_None); | |
1726 | _resultobj = Py_None; | |
1727 | return _resultobj; | |
1728 | } | |
1729 | ||
1730 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
1731 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject * _resultobj; | |
1733 | wxBitmapButton * _arg0; | |
1734 | wxBitmap * _arg1; | |
1735 | PyObject * _argo0 = 0; | |
1736 | PyObject * _argo1 = 0; | |
1737 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1738 | ||
1739 | self = self; | |
1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) | |
1741 | return NULL; | |
1742 | if (_argo0) { | |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); | |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
1749 | if (_argo1) { | |
1750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); | |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
1756 | { | |
1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1758 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
1759 | ||
1760 | wxPyEndAllowThreads(__tstate); | |
1761 | if (PyErr_Occurred()) return NULL; | |
1762 | } Py_INCREF(Py_None); | |
1763 | _resultobj = Py_None; | |
1764 | return _resultobj; | |
1765 | } | |
1766 | ||
1767 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
1768 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject * _resultobj; | |
1770 | wxBitmapButton * _arg0; | |
1771 | wxBitmap * _arg1; | |
1772 | PyObject * _argo0 = 0; | |
1773 | PyObject * _argo1 = 0; | |
1774 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | if (_argo1) { | |
1787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); | |
1790 | return NULL; | |
1791 | } | |
1792 | } | |
1793 | { | |
1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1795 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
1796 | ||
1797 | wxPyEndAllowThreads(__tstate); | |
1798 | if (PyErr_Occurred()) return NULL; | |
1799 | } Py_INCREF(Py_None); | |
1800 | _resultobj = Py_None; | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
1804 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
1805 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject * _resultobj; | |
1807 | wxBitmapButton * _arg0; | |
1808 | int _arg1; | |
1809 | int _arg2; | |
1810 | PyObject * _argo0 = 0; | |
1811 | char *_kwnames[] = { "self","x","y", NULL }; | |
1812 | ||
1813 | self = self; | |
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1815 | return NULL; | |
1816 | if (_argo0) { | |
1817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1820 | return NULL; | |
1821 | } | |
1822 | } | |
1823 | { | |
1824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1825 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1826 | ||
1827 | wxPyEndAllowThreads(__tstate); | |
1828 | if (PyErr_Occurred()) return NULL; | |
1829 | } Py_INCREF(Py_None); | |
1830 | _resultobj = Py_None; | |
1831 | return _resultobj; | |
1832 | } | |
1833 | ||
1834 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1835 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1836 | PyObject * _resultobj; | |
1837 | int _result; | |
1838 | wxBitmapButton * _arg0; | |
1839 | PyObject * _argo0 = 0; | |
1840 | char *_kwnames[] = { "self", NULL }; | |
1841 | ||
1842 | self = self; | |
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1844 | return NULL; | |
1845 | if (_argo0) { | |
1846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1849 | return NULL; | |
1850 | } | |
1851 | } | |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) return NULL; | |
1858 | } _resultobj = Py_BuildValue("i",_result); | |
1859 | return _resultobj; | |
1860 | } | |
1861 | ||
1862 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1863 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1864 | PyObject * _resultobj; | |
1865 | int _result; | |
1866 | wxBitmapButton * _arg0; | |
1867 | PyObject * _argo0 = 0; | |
1868 | char *_kwnames[] = { "self", NULL }; | |
1869 | ||
1870 | self = self; | |
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1872 | return NULL; | |
1873 | if (_argo0) { | |
1874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1877 | return NULL; | |
1878 | } | |
1879 | } | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) return NULL; | |
1886 | } _resultobj = Py_BuildValue("i",_result); | |
1887 | return _resultobj; | |
1888 | } | |
1889 | ||
1890 | static void *SwigwxCheckBoxTowxControl(void *ptr) { | |
1891 | wxCheckBox *src; | |
1892 | wxControl *dest; | |
1893 | src = (wxCheckBox *) ptr; | |
1894 | dest = (wxControl *) src; | |
1895 | return (void *) dest; | |
1896 | } | |
1897 | ||
1898 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1899 | wxCheckBox *src; | |
1900 | wxWindow *dest; | |
1901 | src = (wxCheckBox *) ptr; | |
1902 | dest = (wxWindow *) src; | |
1903 | return (void *) dest; | |
1904 | } | |
1905 | ||
1906 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1907 | wxCheckBox *src; | |
1908 | wxEvtHandler *dest; | |
1909 | src = (wxCheckBox *) ptr; | |
1910 | dest = (wxEvtHandler *) src; | |
1911 | return (void *) dest; | |
1912 | } | |
1913 | ||
1914 | static void *SwigwxCheckBoxTowxObject(void *ptr) { | |
1915 | wxCheckBox *src; | |
1916 | wxObject *dest; | |
1917 | src = (wxCheckBox *) ptr; | |
1918 | dest = (wxObject *) src; | |
1919 | return (void *) dest; | |
1920 | } | |
1921 | ||
1922 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1923 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1924 | PyObject * _resultobj; | |
1925 | wxCheckBox * _result; | |
1926 | wxWindow * _arg0; | |
1927 | wxWindowID _arg1; | |
1928 | wxString * _arg2; | |
1929 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1930 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1931 | long _arg5 = (long ) 0; | |
1932 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1933 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; | |
1934 | PyObject * _argo0 = 0; | |
1935 | PyObject * _obj2 = 0; | |
1936 | wxPoint temp; | |
1937 | PyObject * _obj3 = 0; | |
1938 | wxSize temp0; | |
1939 | PyObject * _obj4 = 0; | |
1940 | PyObject * _argo6 = 0; | |
1941 | PyObject * _obj7 = 0; | |
1942 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; | |
1943 | char _ptemp[128]; | |
1944 | ||
1945 | self = self; | |
1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
1947 | return NULL; | |
1948 | if (_argo0) { | |
1949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); | |
1952 | return NULL; | |
1953 | } | |
1954 | } | |
1955 | { | |
1956 | _arg2 = wxString_in_helper(_obj2); | |
1957 | if (_arg2 == NULL) | |
1958 | return NULL; | |
1959 | } | |
1960 | if (_obj3) | |
1961 | { | |
1962 | _arg3 = &temp; | |
1963 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1964 | return NULL; | |
1965 | } | |
1966 | if (_obj4) | |
1967 | { | |
1968 | _arg4 = &temp0; | |
1969 | if (! wxSize_helper(_obj4, &_arg4)) | |
1970 | return NULL; | |
1971 | } | |
1972 | if (_argo6) { | |
1973 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); | |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
1979 | if (_obj7) | |
1980 | { | |
1981 | _arg7 = wxString_in_helper(_obj7); | |
1982 | if (_arg7 == NULL) | |
1983 | return NULL; | |
1984 | } | |
1985 | { | |
1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1987 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1988 | ||
1989 | wxPyEndAllowThreads(__tstate); | |
1990 | if (PyErr_Occurred()) return NULL; | |
1991 | } if (_result) { | |
1992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1993 | _resultobj = Py_BuildValue("s",_ptemp); | |
1994 | } else { | |
1995 | Py_INCREF(Py_None); | |
1996 | _resultobj = Py_None; | |
1997 | } | |
1998 | { | |
1999 | if (_obj2) | |
2000 | delete _arg2; | |
2001 | } | |
2002 | { | |
2003 | if (_obj7) | |
2004 | delete _arg7; | |
2005 | } | |
2006 | return _resultobj; | |
2007 | } | |
2008 | ||
2009 | #define new_wxPreCheckBox() (new wxCheckBox()) | |
2010 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2011 | PyObject * _resultobj; | |
2012 | wxCheckBox * _result; | |
2013 | char *_kwnames[] = { NULL }; | |
2014 | char _ptemp[128]; | |
2015 | ||
2016 | self = self; | |
2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2018 | return NULL; | |
2019 | { | |
2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2021 | _result = (wxCheckBox *)new_wxPreCheckBox(); | |
2022 | ||
2023 | wxPyEndAllowThreads(__tstate); | |
2024 | if (PyErr_Occurred()) return NULL; | |
2025 | } if (_result) { | |
2026 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2027 | _resultobj = Py_BuildValue("s",_ptemp); | |
2028 | } else { | |
2029 | Py_INCREF(Py_None); | |
2030 | _resultobj = Py_None; | |
2031 | } | |
2032 | return _resultobj; | |
2033 | } | |
2034 | ||
2035 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2036 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject * _resultobj; | |
2038 | bool _result; | |
2039 | wxCheckBox * _arg0; | |
2040 | wxWindow * _arg1; | |
2041 | wxWindowID _arg2; | |
2042 | wxString * _arg3; | |
2043 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2044 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2045 | long _arg6 = (long ) 0; | |
2046 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2047 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; | |
2048 | PyObject * _argo0 = 0; | |
2049 | PyObject * _argo1 = 0; | |
2050 | PyObject * _obj3 = 0; | |
2051 | wxPoint temp; | |
2052 | PyObject * _obj4 = 0; | |
2053 | wxSize temp0; | |
2054 | PyObject * _obj5 = 0; | |
2055 | PyObject * _argo7 = 0; | |
2056 | PyObject * _obj8 = 0; | |
2057 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2058 | ||
2059 | self = self; | |
2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
2061 | return NULL; | |
2062 | if (_argo0) { | |
2063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2066 | return NULL; | |
2067 | } | |
2068 | } | |
2069 | if (_argo1) { | |
2070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2073 | return NULL; | |
2074 | } | |
2075 | } | |
2076 | { | |
2077 | _arg3 = wxString_in_helper(_obj3); | |
2078 | if (_arg3 == NULL) | |
2079 | return NULL; | |
2080 | } | |
2081 | if (_obj4) | |
2082 | { | |
2083 | _arg4 = &temp; | |
2084 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2085 | return NULL; | |
2086 | } | |
2087 | if (_obj5) | |
2088 | { | |
2089 | _arg5 = &temp0; | |
2090 | if (! wxSize_helper(_obj5, &_arg5)) | |
2091 | return NULL; | |
2092 | } | |
2093 | if (_argo7) { | |
2094 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
2100 | if (_obj8) | |
2101 | { | |
2102 | _arg8 = wxString_in_helper(_obj8); | |
2103 | if (_arg8 == NULL) | |
2104 | return NULL; | |
2105 | } | |
2106 | { | |
2107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2108 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
2109 | ||
2110 | wxPyEndAllowThreads(__tstate); | |
2111 | if (PyErr_Occurred()) return NULL; | |
2112 | } _resultobj = Py_BuildValue("i",_result); | |
2113 | { | |
2114 | if (_obj3) | |
2115 | delete _arg3; | |
2116 | } | |
2117 | { | |
2118 | if (_obj8) | |
2119 | delete _arg8; | |
2120 | } | |
2121 | return _resultobj; | |
2122 | } | |
2123 | ||
2124 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2125 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject * _resultobj; | |
2127 | bool _result; | |
2128 | wxCheckBox * _arg0; | |
2129 | PyObject * _argo0 = 0; | |
2130 | char *_kwnames[] = { "self", NULL }; | |
2131 | ||
2132 | self = self; | |
2133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) | |
2134 | return NULL; | |
2135 | if (_argo0) { | |
2136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); | |
2139 | return NULL; | |
2140 | } | |
2141 | } | |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) return NULL; | |
2148 | } _resultobj = Py_BuildValue("i",_result); | |
2149 | return _resultobj; | |
2150 | } | |
2151 | ||
2152 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2153 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2154 | PyObject * _resultobj; | |
2155 | wxCheckBox * _arg0; | |
2156 | bool _arg1; | |
2157 | PyObject * _argo0 = 0; | |
2158 | int tempbool1; | |
2159 | char *_kwnames[] = { "self","state", NULL }; | |
2160 | ||
2161 | self = self; | |
2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) | |
2163 | return NULL; | |
2164 | if (_argo0) { | |
2165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); | |
2168 | return NULL; | |
2169 | } | |
2170 | } | |
2171 | _arg1 = (bool ) tempbool1; | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | wxCheckBox_SetValue(_arg0,_arg1); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) return NULL; | |
2178 | } Py_INCREF(Py_None); | |
2179 | _resultobj = Py_None; | |
2180 | return _resultobj; | |
2181 | } | |
2182 | ||
2183 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { | |
2184 | wxChoice *src; | |
2185 | wxControlWithItems *dest; | |
2186 | src = (wxChoice *) ptr; | |
2187 | dest = (wxControlWithItems *) src; | |
2188 | return (void *) dest; | |
2189 | } | |
2190 | ||
2191 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
2192 | wxChoice *src; | |
2193 | wxControl *dest; | |
2194 | src = (wxChoice *) ptr; | |
2195 | dest = (wxControl *) src; | |
2196 | return (void *) dest; | |
2197 | } | |
2198 | ||
2199 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2200 | wxChoice *src; | |
2201 | wxWindow *dest; | |
2202 | src = (wxChoice *) ptr; | |
2203 | dest = (wxWindow *) src; | |
2204 | return (void *) dest; | |
2205 | } | |
2206 | ||
2207 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2208 | wxChoice *src; | |
2209 | wxEvtHandler *dest; | |
2210 | src = (wxChoice *) ptr; | |
2211 | dest = (wxEvtHandler *) src; | |
2212 | return (void *) dest; | |
2213 | } | |
2214 | ||
2215 | static void *SwigwxChoiceTowxObject(void *ptr) { | |
2216 | wxChoice *src; | |
2217 | wxObject *dest; | |
2218 | src = (wxChoice *) ptr; | |
2219 | dest = (wxObject *) src; | |
2220 | return (void *) dest; | |
2221 | } | |
2222 | ||
2223 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2224 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject * _resultobj; | |
2226 | wxChoice * _result; | |
2227 | wxWindow * _arg0; | |
2228 | wxWindowID _arg1; | |
2229 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2230 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2231 | int _arg4 = (int ) 0; | |
2232 | wxString * _arg5 = (wxString *) NULL; | |
2233 | long _arg6 = (long ) 0; | |
2234 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2235 | wxString * _arg8 = (wxString *) &wxPyChoiceNameStr; | |
2236 | PyObject * _argo0 = 0; | |
2237 | wxPoint temp; | |
2238 | PyObject * _obj2 = 0; | |
2239 | wxSize temp0; | |
2240 | PyObject * _obj3 = 0; | |
2241 | PyObject * _obj5 = 0; | |
2242 | PyObject * _argo7 = 0; | |
2243 | PyObject * _obj8 = 0; | |
2244 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
2245 | char _ptemp[128]; | |
2246 | ||
2247 | self = self; | |
2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
2249 | return NULL; | |
2250 | if (_argo0) { | |
2251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); | |
2254 | return NULL; | |
2255 | } | |
2256 | } | |
2257 | if (_obj2) | |
2258 | { | |
2259 | _arg2 = &temp; | |
2260 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2261 | return NULL; | |
2262 | } | |
2263 | if (_obj3) | |
2264 | { | |
2265 | _arg3 = &temp0; | |
2266 | if (! wxSize_helper(_obj3, &_arg3)) | |
2267 | return NULL; | |
2268 | } | |
2269 | if (_obj5) | |
2270 | { | |
2271 | _arg5 = wxString_LIST_helper(_obj5); | |
2272 | if (_arg5 == NULL) { | |
2273 | return NULL; | |
2274 | } | |
2275 | } | |
2276 | if (_argo7) { | |
2277 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); | |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
2283 | if (_obj8) | |
2284 | { | |
2285 | _arg8 = wxString_in_helper(_obj8); | |
2286 | if (_arg8 == NULL) | |
2287 | return NULL; | |
2288 | } | |
2289 | { | |
2290 | if (_obj5) { | |
2291 | _arg4 = PyList_Size(_obj5); | |
2292 | } | |
2293 | else { | |
2294 | _arg4 = 0; | |
2295 | } | |
2296 | } | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) return NULL; | |
2303 | } if (_result) { | |
2304 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2305 | _resultobj = Py_BuildValue("s",_ptemp); | |
2306 | } else { | |
2307 | Py_INCREF(Py_None); | |
2308 | _resultobj = Py_None; | |
2309 | } | |
2310 | { | |
2311 | delete [] _arg5; | |
2312 | } | |
2313 | { | |
2314 | if (_obj8) | |
2315 | delete _arg8; | |
2316 | } | |
2317 | return _resultobj; | |
2318 | } | |
2319 | ||
2320 | #define new_wxPreChoice() (new wxChoice()) | |
2321 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject * _resultobj; | |
2323 | wxChoice * _result; | |
2324 | char *_kwnames[] = { NULL }; | |
2325 | char _ptemp[128]; | |
2326 | ||
2327 | self = self; | |
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) | |
2329 | return NULL; | |
2330 | { | |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2332 | _result = (wxChoice *)new_wxPreChoice(); | |
2333 | ||
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) return NULL; | |
2336 | } if (_result) { | |
2337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2338 | _resultobj = Py_BuildValue("s",_ptemp); | |
2339 | } else { | |
2340 | Py_INCREF(Py_None); | |
2341 | _resultobj = Py_None; | |
2342 | } | |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
2346 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2347 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2348 | PyObject * _resultobj; | |
2349 | bool _result; | |
2350 | wxChoice * _arg0; | |
2351 | wxWindow * _arg1; | |
2352 | wxWindowID _arg2; | |
2353 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2354 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2355 | int _arg5 = (int ) 0; | |
2356 | wxString * _arg6 = (wxString *) NULL; | |
2357 | long _arg7 = (long ) 0; | |
2358 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2359 | wxString * _arg9 = (wxString *) &wxPyChoiceNameStr; | |
2360 | PyObject * _argo0 = 0; | |
2361 | PyObject * _argo1 = 0; | |
2362 | wxPoint temp; | |
2363 | PyObject * _obj3 = 0; | |
2364 | wxSize temp0; | |
2365 | PyObject * _obj4 = 0; | |
2366 | PyObject * _obj6 = 0; | |
2367 | PyObject * _argo8 = 0; | |
2368 | PyObject * _obj9 = 0; | |
2369 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2370 | ||
2371 | self = self; | |
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
2373 | return NULL; | |
2374 | if (_argo0) { | |
2375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2378 | return NULL; | |
2379 | } | |
2380 | } | |
2381 | if (_argo1) { | |
2382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2385 | return NULL; | |
2386 | } | |
2387 | } | |
2388 | if (_obj3) | |
2389 | { | |
2390 | _arg3 = &temp; | |
2391 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2392 | return NULL; | |
2393 | } | |
2394 | if (_obj4) | |
2395 | { | |
2396 | _arg4 = &temp0; | |
2397 | if (! wxSize_helper(_obj4, &_arg4)) | |
2398 | return NULL; | |
2399 | } | |
2400 | if (_obj6) | |
2401 | { | |
2402 | _arg6 = wxString_LIST_helper(_obj6); | |
2403 | if (_arg6 == NULL) { | |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
2407 | if (_argo8) { | |
2408 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2411 | return NULL; | |
2412 | } | |
2413 | } | |
2414 | if (_obj9) | |
2415 | { | |
2416 | _arg9 = wxString_in_helper(_obj9); | |
2417 | if (_arg9 == NULL) | |
2418 | return NULL; | |
2419 | } | |
2420 | { | |
2421 | if (_obj6) { | |
2422 | _arg5 = PyList_Size(_obj6); | |
2423 | } | |
2424 | else { | |
2425 | _arg5 = 0; | |
2426 | } | |
2427 | } | |
2428 | { | |
2429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2430 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
2431 | ||
2432 | wxPyEndAllowThreads(__tstate); | |
2433 | if (PyErr_Occurred()) return NULL; | |
2434 | } _resultobj = Py_BuildValue("i",_result); | |
2435 | { | |
2436 | delete [] _arg6; | |
2437 | } | |
2438 | { | |
2439 | if (_obj9) | |
2440 | delete _arg9; | |
2441 | } | |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
2445 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
2446 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2447 | PyObject * _resultobj; | |
2448 | wxChoice * _arg0; | |
2449 | PyObject * _argo0 = 0; | |
2450 | char *_kwnames[] = { "self", NULL }; | |
2451 | ||
2452 | self = self; | |
2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) | |
2454 | return NULL; | |
2455 | if (_argo0) { | |
2456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); | |
2459 | return NULL; | |
2460 | } | |
2461 | } | |
2462 | { | |
2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2464 | wxChoice_Clear(_arg0); | |
2465 | ||
2466 | wxPyEndAllowThreads(__tstate); | |
2467 | if (PyErr_Occurred()) return NULL; | |
2468 | } Py_INCREF(Py_None); | |
2469 | _resultobj = Py_None; | |
2470 | return _resultobj; | |
2471 | } | |
2472 | ||
2473 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
2474 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2475 | PyObject * _resultobj; | |
2476 | int _result; | |
2477 | wxChoice * _arg0; | |
2478 | PyObject * _argo0 = 0; | |
2479 | char *_kwnames[] = { "self", NULL }; | |
2480 | ||
2481 | self = self; | |
2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) | |
2483 | return NULL; | |
2484 | if (_argo0) { | |
2485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); | |
2488 | return NULL; | |
2489 | } | |
2490 | } | |
2491 | { | |
2492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2493 | _result = (int )wxChoice_GetColumns(_arg0); | |
2494 | ||
2495 | wxPyEndAllowThreads(__tstate); | |
2496 | if (PyErr_Occurred()) return NULL; | |
2497 | } _resultobj = Py_BuildValue("i",_result); | |
2498 | return _resultobj; | |
2499 | } | |
2500 | ||
2501 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
2502 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject * _resultobj; | |
2504 | wxChoice * _arg0; | |
2505 | int _arg1 = (int ) 1; | |
2506 | PyObject * _argo0 = 0; | |
2507 | char *_kwnames[] = { "self","n", NULL }; | |
2508 | ||
2509 | self = self; | |
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) | |
2511 | return NULL; | |
2512 | if (_argo0) { | |
2513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); | |
2516 | return NULL; | |
2517 | } | |
2518 | } | |
2519 | { | |
2520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2521 | wxChoice_SetColumns(_arg0,_arg1); | |
2522 | ||
2523 | wxPyEndAllowThreads(__tstate); | |
2524 | if (PyErr_Occurred()) return NULL; | |
2525 | } Py_INCREF(Py_None); | |
2526 | _resultobj = Py_None; | |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
2530 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
2531 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject * _resultobj; | |
2533 | wxChoice * _arg0; | |
2534 | int _arg1; | |
2535 | PyObject * _argo0 = 0; | |
2536 | char *_kwnames[] = { "self","n", NULL }; | |
2537 | ||
2538 | self = self; | |
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2540 | return NULL; | |
2541 | if (_argo0) { | |
2542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); | |
2545 | return NULL; | |
2546 | } | |
2547 | } | |
2548 | { | |
2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2550 | wxChoice_SetSelection(_arg0,_arg1); | |
2551 | ||
2552 | wxPyEndAllowThreads(__tstate); | |
2553 | if (PyErr_Occurred()) return NULL; | |
2554 | } Py_INCREF(Py_None); | |
2555 | _resultobj = Py_None; | |
2556 | return _resultobj; | |
2557 | } | |
2558 | ||
2559 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
2560 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject * _resultobj; | |
2562 | wxChoice * _arg0; | |
2563 | wxString * _arg1; | |
2564 | PyObject * _argo0 = 0; | |
2565 | PyObject * _obj1 = 0; | |
2566 | char *_kwnames[] = { "self","string", NULL }; | |
2567 | ||
2568 | self = self; | |
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
2570 | return NULL; | |
2571 | if (_argo0) { | |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); | |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
2578 | { | |
2579 | _arg1 = wxString_in_helper(_obj1); | |
2580 | if (_arg1 == NULL) | |
2581 | return NULL; | |
2582 | } | |
2583 | { | |
2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2585 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
2586 | ||
2587 | wxPyEndAllowThreads(__tstate); | |
2588 | if (PyErr_Occurred()) return NULL; | |
2589 | } Py_INCREF(Py_None); | |
2590 | _resultobj = Py_None; | |
2591 | { | |
2592 | if (_obj1) | |
2593 | delete _arg1; | |
2594 | } | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
2598 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
2599 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2600 | PyObject * _resultobj; | |
2601 | wxChoice * _arg0; | |
2602 | int _arg1; | |
2603 | wxString * _arg2; | |
2604 | PyObject * _argo0 = 0; | |
2605 | PyObject * _obj2 = 0; | |
2606 | char *_kwnames[] = { "self","n","s", NULL }; | |
2607 | ||
2608 | self = self; | |
2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2610 | return NULL; | |
2611 | if (_argo0) { | |
2612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2615 | return NULL; | |
2616 | } | |
2617 | } | |
2618 | { | |
2619 | _arg2 = wxString_in_helper(_obj2); | |
2620 | if (_arg2 == NULL) | |
2621 | return NULL; | |
2622 | } | |
2623 | { | |
2624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2625 | wxChoice_SetString(_arg0,_arg1,*_arg2); | |
2626 | ||
2627 | wxPyEndAllowThreads(__tstate); | |
2628 | if (PyErr_Occurred()) return NULL; | |
2629 | } Py_INCREF(Py_None); | |
2630 | _resultobj = Py_None; | |
2631 | { | |
2632 | if (_obj2) | |
2633 | delete _arg2; | |
2634 | } | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
2638 | static void *SwigwxComboBoxTowxControl(void *ptr) { | |
2639 | wxComboBox *src; | |
2640 | wxControl *dest; | |
2641 | src = (wxComboBox *) ptr; | |
2642 | dest = (wxControl *) src; | |
2643 | return (void *) dest; | |
2644 | } | |
2645 | ||
2646 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2647 | wxComboBox *src; | |
2648 | wxWindow *dest; | |
2649 | src = (wxComboBox *) ptr; | |
2650 | dest = (wxWindow *) src; | |
2651 | return (void *) dest; | |
2652 | } | |
2653 | ||
2654 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2655 | wxComboBox *src; | |
2656 | wxEvtHandler *dest; | |
2657 | src = (wxComboBox *) ptr; | |
2658 | dest = (wxEvtHandler *) src; | |
2659 | return (void *) dest; | |
2660 | } | |
2661 | ||
2662 | static void *SwigwxComboBoxTowxObject(void *ptr) { | |
2663 | wxComboBox *src; | |
2664 | wxObject *dest; | |
2665 | src = (wxComboBox *) ptr; | |
2666 | dest = (wxObject *) src; | |
2667 | return (void *) dest; | |
2668 | } | |
2669 | ||
2670 | #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)) | |
2671 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2672 | PyObject * _resultobj; | |
2673 | wxComboBox * _result; | |
2674 | wxWindow * _arg0; | |
2675 | wxWindowID _arg1; | |
2676 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
2677 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2678 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2679 | int _arg5 = (int ) 0; | |
2680 | wxString * _arg6 = (wxString *) NULL; | |
2681 | long _arg7 = (long ) 0; | |
2682 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2683 | wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr; | |
2684 | PyObject * _argo0 = 0; | |
2685 | PyObject * _obj2 = 0; | |
2686 | wxPoint temp; | |
2687 | PyObject * _obj3 = 0; | |
2688 | wxSize temp0; | |
2689 | PyObject * _obj4 = 0; | |
2690 | PyObject * _obj6 = 0; | |
2691 | PyObject * _argo8 = 0; | |
2692 | PyObject * _obj9 = 0; | |
2693 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2694 | char _ptemp[128]; | |
2695 | ||
2696 | self = self; | |
2697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
2698 | return NULL; | |
2699 | if (_argo0) { | |
2700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); | |
2703 | return NULL; | |
2704 | } | |
2705 | } | |
2706 | if (_obj2) | |
2707 | { | |
2708 | _arg2 = wxString_in_helper(_obj2); | |
2709 | if (_arg2 == NULL) | |
2710 | return NULL; | |
2711 | } | |
2712 | if (_obj3) | |
2713 | { | |
2714 | _arg3 = &temp; | |
2715 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2716 | return NULL; | |
2717 | } | |
2718 | if (_obj4) | |
2719 | { | |
2720 | _arg4 = &temp0; | |
2721 | if (! wxSize_helper(_obj4, &_arg4)) | |
2722 | return NULL; | |
2723 | } | |
2724 | if (_obj6) | |
2725 | { | |
2726 | _arg6 = wxString_LIST_helper(_obj6); | |
2727 | if (_arg6 == NULL) { | |
2728 | return NULL; | |
2729 | } | |
2730 | } | |
2731 | if (_argo8) { | |
2732 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2733 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); | |
2735 | return NULL; | |
2736 | } | |
2737 | } | |
2738 | if (_obj9) | |
2739 | { | |
2740 | _arg9 = wxString_in_helper(_obj9); | |
2741 | if (_arg9 == NULL) | |
2742 | return NULL; | |
2743 | } | |
2744 | { | |
2745 | if (_obj6) { | |
2746 | _arg5 = PyList_Size(_obj6); | |
2747 | } | |
2748 | else { | |
2749 | _arg5 = 0; | |
2750 | } | |
2751 | } | |
2752 | { | |
2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2754 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
2755 | ||
2756 | wxPyEndAllowThreads(__tstate); | |
2757 | if (PyErr_Occurred()) return NULL; | |
2758 | } if (_result) { | |
2759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2760 | _resultobj = Py_BuildValue("s",_ptemp); | |
2761 | } else { | |
2762 | Py_INCREF(Py_None); | |
2763 | _resultobj = Py_None; | |
2764 | } | |
2765 | { | |
2766 | if (_obj2) | |
2767 | delete _arg2; | |
2768 | } | |
2769 | { | |
2770 | delete [] _arg6; | |
2771 | } | |
2772 | { | |
2773 | if (_obj9) | |
2774 | delete _arg9; | |
2775 | } | |
2776 | return _resultobj; | |
2777 | } | |
2778 | ||
2779 | #define new_wxPreComboBox() (new wxComboBox()) | |
2780 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject * _resultobj; | |
2782 | wxComboBox * _result; | |
2783 | char *_kwnames[] = { NULL }; | |
2784 | char _ptemp[128]; | |
2785 | ||
2786 | self = self; | |
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2788 | return NULL; | |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2791 | _result = (wxComboBox *)new_wxPreComboBox(); | |
2792 | ||
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) return NULL; | |
2795 | } if (_result) { | |
2796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2797 | _resultobj = Py_BuildValue("s",_ptemp); | |
2798 | } else { | |
2799 | Py_INCREF(Py_None); | |
2800 | _resultobj = Py_None; | |
2801 | } | |
2802 | return _resultobj; | |
2803 | } | |
2804 | ||
2805 | #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)) | |
2806 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2807 | PyObject * _resultobj; | |
2808 | bool _result; | |
2809 | wxComboBox * _arg0; | |
2810 | wxWindow * _arg1; | |
2811 | wxWindowID _arg2; | |
2812 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
2813 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2814 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2815 | int _arg6 = (int ) 0; | |
2816 | wxString * _arg7 = (wxString *) NULL; | |
2817 | long _arg8 = (long ) 0; | |
2818 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2819 | wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr; | |
2820 | PyObject * _argo0 = 0; | |
2821 | PyObject * _argo1 = 0; | |
2822 | PyObject * _obj3 = 0; | |
2823 | wxPoint temp; | |
2824 | PyObject * _obj4 = 0; | |
2825 | wxSize temp0; | |
2826 | PyObject * _obj5 = 0; | |
2827 | PyObject * _obj7 = 0; | |
2828 | PyObject * _argo9 = 0; | |
2829 | PyObject * _obj10 = 0; | |
2830 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2831 | ||
2832 | self = self; | |
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10)) | |
2834 | return NULL; | |
2835 | if (_argo0) { | |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | if (_argo1) { | |
2843 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2844 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2846 | return NULL; | |
2847 | } | |
2848 | } | |
2849 | if (_obj3) | |
2850 | { | |
2851 | _arg3 = wxString_in_helper(_obj3); | |
2852 | if (_arg3 == NULL) | |
2853 | return NULL; | |
2854 | } | |
2855 | if (_obj4) | |
2856 | { | |
2857 | _arg4 = &temp; | |
2858 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2859 | return NULL; | |
2860 | } | |
2861 | if (_obj5) | |
2862 | { | |
2863 | _arg5 = &temp0; | |
2864 | if (! wxSize_helper(_obj5, &_arg5)) | |
2865 | return NULL; | |
2866 | } | |
2867 | if (_obj7) | |
2868 | { | |
2869 | _arg7 = wxString_LIST_helper(_obj7); | |
2870 | if (_arg7 == NULL) { | |
2871 | return NULL; | |
2872 | } | |
2873 | } | |
2874 | if (_argo9) { | |
2875 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2876 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2878 | return NULL; | |
2879 | } | |
2880 | } | |
2881 | if (_obj10) | |
2882 | { | |
2883 | _arg10 = wxString_in_helper(_obj10); | |
2884 | if (_arg10 == NULL) | |
2885 | return NULL; | |
2886 | } | |
2887 | { | |
2888 | if (_obj7) { | |
2889 | _arg6 = PyList_Size(_obj7); | |
2890 | } | |
2891 | else { | |
2892 | _arg6 = 0; | |
2893 | } | |
2894 | } | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) return NULL; | |
2901 | } _resultobj = Py_BuildValue("i",_result); | |
2902 | { | |
2903 | if (_obj3) | |
2904 | delete _arg3; | |
2905 | } | |
2906 | { | |
2907 | delete [] _arg7; | |
2908 | } | |
2909 | { | |
2910 | if (_obj10) | |
2911 | delete _arg10; | |
2912 | } | |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
2917 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2918 | PyObject * _resultobj; | |
2919 | wxComboBox * _arg0; | |
2920 | PyObject * _argo0 = 0; | |
2921 | char *_kwnames[] = { "self", NULL }; | |
2922 | ||
2923 | self = self; | |
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) | |
2925 | return NULL; | |
2926 | if (_argo0) { | |
2927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); | |
2930 | return NULL; | |
2931 | } | |
2932 | } | |
2933 | { | |
2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2935 | wxComboBox_Copy(_arg0); | |
2936 | ||
2937 | wxPyEndAllowThreads(__tstate); | |
2938 | if (PyErr_Occurred()) return NULL; | |
2939 | } Py_INCREF(Py_None); | |
2940 | _resultobj = Py_None; | |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
2945 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | wxComboBox * _arg0; | |
2948 | PyObject * _argo0 = 0; | |
2949 | char *_kwnames[] = { "self", NULL }; | |
2950 | ||
2951 | self = self; | |
2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) | |
2953 | return NULL; | |
2954 | if (_argo0) { | |
2955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); | |
2958 | return NULL; | |
2959 | } | |
2960 | } | |
2961 | { | |
2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2963 | wxComboBox_Cut(_arg0); | |
2964 | ||
2965 | wxPyEndAllowThreads(__tstate); | |
2966 | if (PyErr_Occurred()) return NULL; | |
2967 | } Py_INCREF(Py_None); | |
2968 | _resultobj = Py_None; | |
2969 | return _resultobj; | |
2970 | } | |
2971 | ||
2972 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
2973 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject * _resultobj; | |
2975 | long _result; | |
2976 | wxComboBox * _arg0; | |
2977 | PyObject * _argo0 = 0; | |
2978 | char *_kwnames[] = { "self", NULL }; | |
2979 | ||
2980 | self = self; | |
2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) | |
2982 | return NULL; | |
2983 | if (_argo0) { | |
2984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); | |
2987 | return NULL; | |
2988 | } | |
2989 | } | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) return NULL; | |
2996 | } _resultobj = Py_BuildValue("l",_result); | |
2997 | return _resultobj; | |
2998 | } | |
2999 | ||
3000 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
3001 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3002 | PyObject * _resultobj; | |
3003 | long _result; | |
3004 | wxComboBox * _arg0; | |
3005 | PyObject * _argo0 = 0; | |
3006 | char *_kwnames[] = { "self", NULL }; | |
3007 | ||
3008 | self = self; | |
3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) | |
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_GetLastPosition. Expected _wxComboBox_p."); | |
3015 | return NULL; | |
3016 | } | |
3017 | } | |
3018 | { | |
3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3020 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
3021 | ||
3022 | wxPyEndAllowThreads(__tstate); | |
3023 | if (PyErr_Occurred()) return NULL; | |
3024 | } _resultobj = Py_BuildValue("l",_result); | |
3025 | return _resultobj; | |
3026 | } | |
3027 | ||
3028 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
3029 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3030 | PyObject * _resultobj; | |
3031 | wxString * _result; | |
3032 | wxComboBox * _arg0; | |
3033 | PyObject * _argo0 = 0; | |
3034 | char *_kwnames[] = { "self", NULL }; | |
3035 | ||
3036 | self = self; | |
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) | |
3038 | return NULL; | |
3039 | if (_argo0) { | |
3040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); | |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
3046 | { | |
3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3048 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
3049 | ||
3050 | wxPyEndAllowThreads(__tstate); | |
3051 | if (PyErr_Occurred()) return NULL; | |
3052 | }{ | |
3053 | #if wxUSE_UNICODE | |
3054 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3055 | #else | |
3056 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3057 | #endif | |
3058 | } | |
3059 | { | |
3060 | delete _result; | |
3061 | } | |
3062 | return _resultobj; | |
3063 | } | |
3064 | ||
3065 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
3066 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3067 | PyObject * _resultobj; | |
3068 | wxComboBox * _arg0; | |
3069 | PyObject * _argo0 = 0; | |
3070 | char *_kwnames[] = { "self", NULL }; | |
3071 | ||
3072 | self = self; | |
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) | |
3074 | return NULL; | |
3075 | if (_argo0) { | |
3076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); | |
3079 | return NULL; | |
3080 | } | |
3081 | } | |
3082 | { | |
3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3084 | wxComboBox_Paste(_arg0); | |
3085 | ||
3086 | wxPyEndAllowThreads(__tstate); | |
3087 | if (PyErr_Occurred()) return NULL; | |
3088 | } Py_INCREF(Py_None); | |
3089 | _resultobj = Py_None; | |
3090 | return _resultobj; | |
3091 | } | |
3092 | ||
3093 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
3094 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3095 | PyObject * _resultobj; | |
3096 | wxComboBox * _arg0; | |
3097 | long _arg1; | |
3098 | long _arg2; | |
3099 | wxString * _arg3; | |
3100 | PyObject * _argo0 = 0; | |
3101 | PyObject * _obj3 = 0; | |
3102 | char *_kwnames[] = { "self","from","to","text", NULL }; | |
3103 | ||
3104 | self = self; | |
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
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_Replace. Expected _wxComboBox_p."); | |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
3114 | { | |
3115 | _arg3 = wxString_in_helper(_obj3); | |
3116 | if (_arg3 == NULL) | |
3117 | return NULL; | |
3118 | } | |
3119 | { | |
3120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3121 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
3122 | ||
3123 | wxPyEndAllowThreads(__tstate); | |
3124 | if (PyErr_Occurred()) return NULL; | |
3125 | } Py_INCREF(Py_None); | |
3126 | _resultobj = Py_None; | |
3127 | { | |
3128 | if (_obj3) | |
3129 | delete _arg3; | |
3130 | } | |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
3135 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3136 | PyObject * _resultobj; | |
3137 | wxComboBox * _arg0; | |
3138 | long _arg1; | |
3139 | long _arg2; | |
3140 | PyObject * _argo0 = 0; | |
3141 | char *_kwnames[] = { "self","from","to", NULL }; | |
3142 | ||
3143 | self = self; | |
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3145 | return NULL; | |
3146 | if (_argo0) { | |
3147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); | |
3150 | return NULL; | |
3151 | } | |
3152 | } | |
3153 | { | |
3154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3155 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
3156 | ||
3157 | wxPyEndAllowThreads(__tstate); | |
3158 | if (PyErr_Occurred()) return NULL; | |
3159 | } Py_INCREF(Py_None); | |
3160 | _resultobj = Py_None; | |
3161 | return _resultobj; | |
3162 | } | |
3163 | ||
3164 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
3165 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3166 | PyObject * _resultobj; | |
3167 | wxComboBox * _arg0; | |
3168 | long _arg1; | |
3169 | PyObject * _argo0 = 0; | |
3170 | char *_kwnames[] = { "self","pos", NULL }; | |
3171 | ||
3172 | self = self; | |
3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
3174 | return NULL; | |
3175 | if (_argo0) { | |
3176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); | |
3179 | return NULL; | |
3180 | } | |
3181 | } | |
3182 | { | |
3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3184 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) return NULL; | |
3188 | } Py_INCREF(Py_None); | |
3189 | _resultobj = Py_None; | |
3190 | return _resultobj; | |
3191 | } | |
3192 | ||
3193 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
3194 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3195 | PyObject * _resultobj; | |
3196 | wxComboBox * _arg0; | |
3197 | PyObject * _argo0 = 0; | |
3198 | char *_kwnames[] = { "self", NULL }; | |
3199 | ||
3200 | self = self; | |
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) | |
3202 | return NULL; | |
3203 | if (_argo0) { | |
3204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); | |
3207 | return NULL; | |
3208 | } | |
3209 | } | |
3210 | { | |
3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3212 | wxComboBox_SetInsertionPointEnd(_arg0); | |
3213 | ||
3214 | wxPyEndAllowThreads(__tstate); | |
3215 | if (PyErr_Occurred()) return NULL; | |
3216 | } Py_INCREF(Py_None); | |
3217 | _resultobj = Py_None; | |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
3221 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3222 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3223 | PyObject * _resultobj; | |
3224 | wxComboBox * _arg0; | |
3225 | int _arg1; | |
3226 | PyObject * _argo0 = 0; | |
3227 | char *_kwnames[] = { "self","n", NULL }; | |
3228 | ||
3229 | self = self; | |
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3231 | return NULL; | |
3232 | if (_argo0) { | |
3233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3236 | return NULL; | |
3237 | } | |
3238 | } | |
3239 | { | |
3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3241 | wxComboBox_SetSelection(_arg0,_arg1); | |
3242 | ||
3243 | wxPyEndAllowThreads(__tstate); | |
3244 | if (PyErr_Occurred()) return NULL; | |
3245 | } Py_INCREF(Py_None); | |
3246 | _resultobj = Py_None; | |
3247 | return _resultobj; | |
3248 | } | |
3249 | ||
3250 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
3251 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject * _resultobj; | |
3253 | wxComboBox * _arg0; | |
3254 | long _arg1; | |
3255 | long _arg2; | |
3256 | PyObject * _argo0 = 0; | |
3257 | char *_kwnames[] = { "self","from","to", NULL }; | |
3258 | ||
3259 | self = self; | |
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3261 | return NULL; | |
3262 | if (_argo0) { | |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); | |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
3269 | { | |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3271 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
3272 | ||
3273 | wxPyEndAllowThreads(__tstate); | |
3274 | if (PyErr_Occurred()) return NULL; | |
3275 | } Py_INCREF(Py_None); | |
3276 | _resultobj = Py_None; | |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3281 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject * _resultobj; | |
3283 | wxComboBox * _arg0; | |
3284 | wxString * _arg1; | |
3285 | PyObject * _argo0 = 0; | |
3286 | PyObject * _obj1 = 0; | |
3287 | char *_kwnames[] = { "self","text", NULL }; | |
3288 | ||
3289 | self = self; | |
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) | |
3291 | return NULL; | |
3292 | if (_argo0) { | |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); | |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
3299 | { | |
3300 | _arg1 = wxString_in_helper(_obj1); | |
3301 | if (_arg1 == NULL) | |
3302 | return NULL; | |
3303 | } | |
3304 | { | |
3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3306 | wxComboBox_SetValue(_arg0,*_arg1); | |
3307 | ||
3308 | wxPyEndAllowThreads(__tstate); | |
3309 | if (PyErr_Occurred()) return NULL; | |
3310 | } Py_INCREF(Py_None); | |
3311 | _resultobj = Py_None; | |
3312 | { | |
3313 | if (_obj1) | |
3314 | delete _arg1; | |
3315 | } | |
3316 | return _resultobj; | |
3317 | } | |
3318 | ||
3319 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
3320 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3321 | PyObject * _resultobj; | |
3322 | wxComboBox * _arg0; | |
3323 | bool _arg1; | |
3324 | PyObject * _argo0 = 0; | |
3325 | int tempbool1; | |
3326 | char *_kwnames[] = { "self","editable", NULL }; | |
3327 | ||
3328 | self = self; | |
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3330 | return NULL; | |
3331 | if (_argo0) { | |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3335 | return NULL; | |
3336 | } | |
3337 | } | |
3338 | _arg1 = (bool ) tempbool1; | |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | wxComboBox_SetEditable(_arg0,_arg1); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) return NULL; | |
3345 | } Py_INCREF(Py_None); | |
3346 | _resultobj = Py_None; | |
3347 | return _resultobj; | |
3348 | } | |
3349 | ||
3350 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) | |
3351 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject * _resultobj; | |
3353 | wxComboBox * _arg0; | |
3354 | PyObject * _argo0 = 0; | |
3355 | char *_kwnames[] = { "self", NULL }; | |
3356 | ||
3357 | self = self; | |
3358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) | |
3359 | return NULL; | |
3360 | if (_argo0) { | |
3361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); | |
3364 | return NULL; | |
3365 | } | |
3366 | } | |
3367 | { | |
3368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3369 | wxComboBox_Clear(_arg0); | |
3370 | ||
3371 | wxPyEndAllowThreads(__tstate); | |
3372 | if (PyErr_Occurred()) return NULL; | |
3373 | } Py_INCREF(Py_None); | |
3374 | _resultobj = Py_None; | |
3375 | return _resultobj; | |
3376 | } | |
3377 | ||
3378 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
3379 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject * _resultobj; | |
3381 | wxComboBox * _arg0; | |
3382 | int _arg1; | |
3383 | PyObject * _argo0 = 0; | |
3384 | char *_kwnames[] = { "self","n", NULL }; | |
3385 | ||
3386 | self = self; | |
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) | |
3388 | return NULL; | |
3389 | if (_argo0) { | |
3390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); | |
3393 | return NULL; | |
3394 | } | |
3395 | } | |
3396 | { | |
3397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3398 | wxComboBox_Delete(_arg0,_arg1); | |
3399 | ||
3400 | wxPyEndAllowThreads(__tstate); | |
3401 | if (PyErr_Occurred()) return NULL; | |
3402 | } Py_INCREF(Py_None); | |
3403 | _resultobj = Py_None; | |
3404 | return _resultobj; | |
3405 | } | |
3406 | ||
3407 | #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
3408 | static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject * _resultobj; | |
3410 | int _result; | |
3411 | wxComboBox * _arg0; | |
3412 | PyObject * _argo0 = 0; | |
3413 | char *_kwnames[] = { "self", NULL }; | |
3414 | ||
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | { | |
3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3427 | _result = (int )wxComboBox_GetCount(_arg0); | |
3428 | ||
3429 | wxPyEndAllowThreads(__tstate); | |
3430 | if (PyErr_Occurred()) return NULL; | |
3431 | } _resultobj = Py_BuildValue("i",_result); | |
3432 | return _resultobj; | |
3433 | } | |
3434 | ||
3435 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
3436 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject * _resultobj; | |
3438 | wxString * _result; | |
3439 | wxComboBox * _arg0; | |
3440 | int _arg1; | |
3441 | PyObject * _argo0 = 0; | |
3442 | char *_kwnames[] = { "self","n", NULL }; | |
3443 | ||
3444 | self = self; | |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) | |
3446 | return NULL; | |
3447 | if (_argo0) { | |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); | |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | { | |
3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3456 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); | |
3457 | ||
3458 | wxPyEndAllowThreads(__tstate); | |
3459 | if (PyErr_Occurred()) return NULL; | |
3460 | }{ | |
3461 | #if wxUSE_UNICODE | |
3462 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3463 | #else | |
3464 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3465 | #endif | |
3466 | } | |
3467 | { | |
3468 | delete _result; | |
3469 | } | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
3473 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
3474 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | int _result; | |
3477 | wxComboBox * _arg0; | |
3478 | wxString * _arg1; | |
3479 | PyObject * _argo0 = 0; | |
3480 | PyObject * _obj1 = 0; | |
3481 | char *_kwnames[] = { "self","s", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | { | |
3494 | _arg1 = wxString_in_helper(_obj1); | |
3495 | if (_arg1 == NULL) | |
3496 | return NULL; | |
3497 | } | |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); | |
3501 | ||
3502 | wxPyEndAllowThreads(__tstate); | |
3503 | if (PyErr_Occurred()) return NULL; | |
3504 | } _resultobj = Py_BuildValue("i",_result); | |
3505 | { | |
3506 | if (_obj1) | |
3507 | delete _arg1; | |
3508 | } | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
3512 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3513 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | int _result; | |
3516 | wxComboBox * _arg0; | |
3517 | PyObject * _argo0 = 0; | |
3518 | char *_kwnames[] = { "self", NULL }; | |
3519 | ||
3520 | self = self; | |
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) | |
3522 | return NULL; | |
3523 | if (_argo0) { | |
3524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); | |
3527 | return NULL; | |
3528 | } | |
3529 | } | |
3530 | { | |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | _result = (int )wxComboBox_GetSelection(_arg0); | |
3533 | ||
3534 | wxPyEndAllowThreads(__tstate); | |
3535 | if (PyErr_Occurred()) return NULL; | |
3536 | } _resultobj = Py_BuildValue("i",_result); | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
3540 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
3541 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
3543 | wxString * _result; | |
3544 | wxComboBox * _arg0; | |
3545 | PyObject * _argo0 = 0; | |
3546 | char *_kwnames[] = { "self", NULL }; | |
3547 | ||
3548 | self = self; | |
3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) | |
3550 | return NULL; | |
3551 | if (_argo0) { | |
3552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); | |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
3558 | { | |
3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3560 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); | |
3561 | ||
3562 | wxPyEndAllowThreads(__tstate); | |
3563 | if (PyErr_Occurred()) return NULL; | |
3564 | }{ | |
3565 | #if wxUSE_UNICODE | |
3566 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3567 | #else | |
3568 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3569 | #endif | |
3570 | } | |
3571 | { | |
3572 | delete _result; | |
3573 | } | |
3574 | return _resultobj; | |
3575 | } | |
3576 | ||
3577 | static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) { | |
3578 | if (clientData) { | |
3579 | wxPyClientData* data = new wxPyClientData(clientData); | |
3580 | self->Append(item, data); | |
3581 | } else | |
3582 | self->Append(item); | |
3583 | } | |
3584 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject * _resultobj; | |
3586 | wxComboBox * _arg0; | |
3587 | wxString * _arg1; | |
3588 | PyObject * _arg2 = (PyObject *) NULL; | |
3589 | PyObject * _argo0 = 0; | |
3590 | PyObject * _obj1 = 0; | |
3591 | PyObject * _obj2 = 0; | |
3592 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
3593 | ||
3594 | self = self; | |
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3596 | return NULL; | |
3597 | if (_argo0) { | |
3598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); | |
3601 | return NULL; | |
3602 | } | |
3603 | } | |
3604 | { | |
3605 | _arg1 = wxString_in_helper(_obj1); | |
3606 | if (_arg1 == NULL) | |
3607 | return NULL; | |
3608 | } | |
3609 | if (_obj2) | |
3610 | { | |
3611 | _arg2 = _obj2; | |
3612 | } | |
3613 | { | |
3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3615 | wxComboBox_Append(_arg0,*_arg1,_arg2); | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) return NULL; | |
3619 | } Py_INCREF(Py_None); | |
3620 | _resultobj = Py_None; | |
3621 | { | |
3622 | if (_obj1) | |
3623 | delete _arg1; | |
3624 | } | |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { | |
3629 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
3630 | if (data) { | |
3631 | Py_INCREF(data->m_obj); | |
3632 | return data->m_obj; | |
3633 | } else { | |
3634 | Py_INCREF(Py_None); | |
3635 | return Py_None; | |
3636 | } | |
3637 | } | |
3638 | static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject * _resultobj; | |
3640 | PyObject * _result; | |
3641 | wxComboBox * _arg0; | |
3642 | int _arg1; | |
3643 | PyObject * _argo0 = 0; | |
3644 | char *_kwnames[] = { "self","n", NULL }; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1)) | |
3648 | return NULL; | |
3649 | if (_argo0) { | |
3650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p."); | |
3653 | return NULL; | |
3654 | } | |
3655 | } | |
3656 | { | |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) return NULL; | |
3662 | }{ | |
3663 | _resultobj = _result; | |
3664 | } | |
3665 | return _resultobj; | |
3666 | } | |
3667 | ||
3668 | static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { | |
3669 | wxPyClientData* data = new wxPyClientData(clientData); | |
3670 | self->SetClientObject(n, data); | |
3671 | } | |
3672 | static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject * _resultobj; | |
3674 | wxComboBox * _arg0; | |
3675 | int _arg1; | |
3676 | PyObject * _arg2; | |
3677 | PyObject * _argo0 = 0; | |
3678 | PyObject * _obj2 = 0; | |
3679 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
3680 | ||
3681 | self = self; | |
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3683 | return NULL; | |
3684 | if (_argo0) { | |
3685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p."); | |
3688 | return NULL; | |
3689 | } | |
3690 | } | |
3691 | { | |
3692 | _arg2 = _obj2; | |
3693 | } | |
3694 | { | |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | wxComboBox_SetClientData(_arg0,_arg1,_arg2); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) return NULL; | |
3700 | } Py_INCREF(Py_None); | |
3701 | _resultobj = Py_None; | |
3702 | return _resultobj; | |
3703 | } | |
3704 | ||
3705 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
3706 | wxGauge *src; | |
3707 | wxControl *dest; | |
3708 | src = (wxGauge *) ptr; | |
3709 | dest = (wxControl *) src; | |
3710 | return (void *) dest; | |
3711 | } | |
3712 | ||
3713 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3714 | wxGauge *src; | |
3715 | wxWindow *dest; | |
3716 | src = (wxGauge *) ptr; | |
3717 | dest = (wxWindow *) src; | |
3718 | return (void *) dest; | |
3719 | } | |
3720 | ||
3721 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3722 | wxGauge *src; | |
3723 | wxEvtHandler *dest; | |
3724 | src = (wxGauge *) ptr; | |
3725 | dest = (wxEvtHandler *) src; | |
3726 | return (void *) dest; | |
3727 | } | |
3728 | ||
3729 | static void *SwigwxGaugeTowxObject(void *ptr) { | |
3730 | wxGauge *src; | |
3731 | wxObject *dest; | |
3732 | src = (wxGauge *) ptr; | |
3733 | dest = (wxObject *) src; | |
3734 | return (void *) dest; | |
3735 | } | |
3736 | ||
3737 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3738 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3739 | PyObject * _resultobj; | |
3740 | wxGauge * _result; | |
3741 | wxWindow * _arg0; | |
3742 | wxWindowID _arg1; | |
3743 | int _arg2; | |
3744 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3745 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3746 | long _arg5 = (long ) wxGA_HORIZONTAL; | |
3747 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3748 | wxString * _arg7 = (wxString *) &wxPyGaugeNameStr; | |
3749 | PyObject * _argo0 = 0; | |
3750 | wxPoint temp; | |
3751 | PyObject * _obj3 = 0; | |
3752 | wxSize temp0; | |
3753 | PyObject * _obj4 = 0; | |
3754 | PyObject * _argo6 = 0; | |
3755 | PyObject * _obj7 = 0; | |
3756 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; | |
3757 | char _ptemp[128]; | |
3758 | ||
3759 | self = self; | |
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
3761 | return NULL; | |
3762 | if (_argo0) { | |
3763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); | |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
3769 | if (_obj3) | |
3770 | { | |
3771 | _arg3 = &temp; | |
3772 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3773 | return NULL; | |
3774 | } | |
3775 | if (_obj4) | |
3776 | { | |
3777 | _arg4 = &temp0; | |
3778 | if (! wxSize_helper(_obj4, &_arg4)) | |
3779 | return NULL; | |
3780 | } | |
3781 | if (_argo6) { | |
3782 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); | |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
3788 | if (_obj7) | |
3789 | { | |
3790 | _arg7 = wxString_in_helper(_obj7); | |
3791 | if (_arg7 == NULL) | |
3792 | return NULL; | |
3793 | } | |
3794 | { | |
3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3796 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
3797 | ||
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) return NULL; | |
3800 | } if (_result) { | |
3801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3802 | _resultobj = Py_BuildValue("s",_ptemp); | |
3803 | } else { | |
3804 | Py_INCREF(Py_None); | |
3805 | _resultobj = Py_None; | |
3806 | } | |
3807 | { | |
3808 | if (_obj7) | |
3809 | delete _arg7; | |
3810 | } | |
3811 | return _resultobj; | |
3812 | } | |
3813 | ||
3814 | #define new_wxPreGauge() (new wxGauge()) | |
3815 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject * _resultobj; | |
3817 | wxGauge * _result; | |
3818 | char *_kwnames[] = { NULL }; | |
3819 | char _ptemp[128]; | |
3820 | ||
3821 | self = self; | |
3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3823 | return NULL; | |
3824 | { | |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3826 | _result = (wxGauge *)new_wxPreGauge(); | |
3827 | ||
3828 | wxPyEndAllowThreads(__tstate); | |
3829 | if (PyErr_Occurred()) return NULL; | |
3830 | } if (_result) { | |
3831 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3832 | _resultobj = Py_BuildValue("s",_ptemp); | |
3833 | } else { | |
3834 | Py_INCREF(Py_None); | |
3835 | _resultobj = Py_None; | |
3836 | } | |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3841 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject * _resultobj; | |
3843 | bool _result; | |
3844 | wxGauge * _arg0; | |
3845 | wxWindow * _arg1; | |
3846 | wxWindowID _arg2; | |
3847 | int _arg3; | |
3848 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3849 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3850 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3851 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3852 | wxString * _arg8 = (wxString *) &wxPyGaugeNameStr; | |
3853 | PyObject * _argo0 = 0; | |
3854 | PyObject * _argo1 = 0; | |
3855 | wxPoint temp; | |
3856 | PyObject * _obj4 = 0; | |
3857 | wxSize temp0; | |
3858 | PyObject * _obj5 = 0; | |
3859 | PyObject * _argo7 = 0; | |
3860 | PyObject * _obj8 = 0; | |
3861 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3862 | ||
3863 | self = self; | |
3864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
3865 | return NULL; | |
3866 | if (_argo0) { | |
3867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3870 | return NULL; | |
3871 | } | |
3872 | } | |
3873 | if (_argo1) { | |
3874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3877 | return NULL; | |
3878 | } | |
3879 | } | |
3880 | if (_obj4) | |
3881 | { | |
3882 | _arg4 = &temp; | |
3883 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3884 | return NULL; | |
3885 | } | |
3886 | if (_obj5) | |
3887 | { | |
3888 | _arg5 = &temp0; | |
3889 | if (! wxSize_helper(_obj5, &_arg5)) | |
3890 | return NULL; | |
3891 | } | |
3892 | if (_argo7) { | |
3893 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3894 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3896 | return NULL; | |
3897 | } | |
3898 | } | |
3899 | if (_obj8) | |
3900 | { | |
3901 | _arg8 = wxString_in_helper(_obj8); | |
3902 | if (_arg8 == NULL) | |
3903 | return NULL; | |
3904 | } | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
3908 | ||
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) return NULL; | |
3911 | } _resultobj = Py_BuildValue("i",_result); | |
3912 | { | |
3913 | if (_obj8) | |
3914 | delete _arg8; | |
3915 | } | |
3916 | return _resultobj; | |
3917 | } | |
3918 | ||
3919 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
3920 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3921 | PyObject * _resultobj; | |
3922 | int _result; | |
3923 | wxGauge * _arg0; | |
3924 | PyObject * _argo0 = 0; | |
3925 | char *_kwnames[] = { "self", NULL }; | |
3926 | ||
3927 | self = self; | |
3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) | |
3929 | return NULL; | |
3930 | if (_argo0) { | |
3931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); | |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
3937 | { | |
3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3939 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
3940 | ||
3941 | wxPyEndAllowThreads(__tstate); | |
3942 | if (PyErr_Occurred()) return NULL; | |
3943 | } _resultobj = Py_BuildValue("i",_result); | |
3944 | return _resultobj; | |
3945 | } | |
3946 | ||
3947 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
3948 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3949 | PyObject * _resultobj; | |
3950 | int _result; | |
3951 | wxGauge * _arg0; | |
3952 | PyObject * _argo0 = 0; | |
3953 | char *_kwnames[] = { "self", NULL }; | |
3954 | ||
3955 | self = self; | |
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) | |
3957 | return NULL; | |
3958 | if (_argo0) { | |
3959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); | |
3962 | return NULL; | |
3963 | } | |
3964 | } | |
3965 | { | |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | _result = (int )wxGauge_GetRange(_arg0); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) return NULL; | |
3971 | } _resultobj = Py_BuildValue("i",_result); | |
3972 | return _resultobj; | |
3973 | } | |
3974 | ||
3975 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
3976 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3977 | PyObject * _resultobj; | |
3978 | int _result; | |
3979 | wxGauge * _arg0; | |
3980 | PyObject * _argo0 = 0; | |
3981 | char *_kwnames[] = { "self", NULL }; | |
3982 | ||
3983 | self = self; | |
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) | |
3985 | return NULL; | |
3986 | if (_argo0) { | |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); | |
3990 | return NULL; | |
3991 | } | |
3992 | } | |
3993 | { | |
3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3995 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
3996 | ||
3997 | wxPyEndAllowThreads(__tstate); | |
3998 | if (PyErr_Occurred()) return NULL; | |
3999 | } _resultobj = Py_BuildValue("i",_result); | |
4000 | return _resultobj; | |
4001 | } | |
4002 | ||
4003 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
4004 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4005 | PyObject * _resultobj; | |
4006 | int _result; | |
4007 | wxGauge * _arg0; | |
4008 | PyObject * _argo0 = 0; | |
4009 | char *_kwnames[] = { "self", NULL }; | |
4010 | ||
4011 | self = self; | |
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) | |
4013 | return NULL; | |
4014 | if (_argo0) { | |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); | |
4018 | return NULL; | |
4019 | } | |
4020 | } | |
4021 | { | |
4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4023 | _result = (int )wxGauge_GetValue(_arg0); | |
4024 | ||
4025 | wxPyEndAllowThreads(__tstate); | |
4026 | if (PyErr_Occurred()) return NULL; | |
4027 | } _resultobj = Py_BuildValue("i",_result); | |
4028 | return _resultobj; | |
4029 | } | |
4030 | ||
4031 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
4032 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4033 | PyObject * _resultobj; | |
4034 | wxGauge * _arg0; | |
4035 | int _arg1; | |
4036 | PyObject * _argo0 = 0; | |
4037 | char *_kwnames[] = { "self","width", NULL }; | |
4038 | ||
4039 | self = self; | |
4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) | |
4041 | return NULL; | |
4042 | if (_argo0) { | |
4043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); | |
4046 | return NULL; | |
4047 | } | |
4048 | } | |
4049 | { | |
4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4051 | wxGauge_SetBezelFace(_arg0,_arg1); | |
4052 | ||
4053 | wxPyEndAllowThreads(__tstate); | |
4054 | if (PyErr_Occurred()) return NULL; | |
4055 | } Py_INCREF(Py_None); | |
4056 | _resultobj = Py_None; | |
4057 | return _resultobj; | |
4058 | } | |
4059 | ||
4060 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
4061 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4062 | PyObject * _resultobj; | |
4063 | wxGauge * _arg0; | |
4064 | int _arg1; | |
4065 | PyObject * _argo0 = 0; | |
4066 | char *_kwnames[] = { "self","range", NULL }; | |
4067 | ||
4068 | self = self; | |
4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) | |
4070 | return NULL; | |
4071 | if (_argo0) { | |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); | |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
4078 | { | |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4080 | wxGauge_SetRange(_arg0,_arg1); | |
4081 | ||
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) return NULL; | |
4084 | } Py_INCREF(Py_None); | |
4085 | _resultobj = Py_None; | |
4086 | return _resultobj; | |
4087 | } | |
4088 | ||
4089 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
4090 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4091 | PyObject * _resultobj; | |
4092 | wxGauge * _arg0; | |
4093 | int _arg1; | |
4094 | PyObject * _argo0 = 0; | |
4095 | char *_kwnames[] = { "self","width", NULL }; | |
4096 | ||
4097 | self = self; | |
4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) | |
4099 | return NULL; | |
4100 | if (_argo0) { | |
4101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); | |
4104 | return NULL; | |
4105 | } | |
4106 | } | |
4107 | { | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
4110 | ||
4111 | wxPyEndAllowThreads(__tstate); | |
4112 | if (PyErr_Occurred()) return NULL; | |
4113 | } Py_INCREF(Py_None); | |
4114 | _resultobj = Py_None; | |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
4118 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
4119 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120 | PyObject * _resultobj; | |
4121 | wxGauge * _arg0; | |
4122 | int _arg1; | |
4123 | PyObject * _argo0 = 0; | |
4124 | char *_kwnames[] = { "self","pos", NULL }; | |
4125 | ||
4126 | self = self; | |
4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) | |
4128 | return NULL; | |
4129 | if (_argo0) { | |
4130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); | |
4133 | return NULL; | |
4134 | } | |
4135 | } | |
4136 | { | |
4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4138 | wxGauge_SetValue(_arg0,_arg1); | |
4139 | ||
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) return NULL; | |
4142 | } Py_INCREF(Py_None); | |
4143 | _resultobj = Py_None; | |
4144 | return _resultobj; | |
4145 | } | |
4146 | ||
4147 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
4148 | wxStaticBox *src; | |
4149 | wxControl *dest; | |
4150 | src = (wxStaticBox *) ptr; | |
4151 | dest = (wxControl *) src; | |
4152 | return (void *) dest; | |
4153 | } | |
4154 | ||
4155 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
4156 | wxStaticBox *src; | |
4157 | wxWindow *dest; | |
4158 | src = (wxStaticBox *) ptr; | |
4159 | dest = (wxWindow *) src; | |
4160 | return (void *) dest; | |
4161 | } | |
4162 | ||
4163 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
4164 | wxStaticBox *src; | |
4165 | wxEvtHandler *dest; | |
4166 | src = (wxStaticBox *) ptr; | |
4167 | dest = (wxEvtHandler *) src; | |
4168 | return (void *) dest; | |
4169 | } | |
4170 | ||
4171 | static void *SwigwxStaticBoxTowxObject(void *ptr) { | |
4172 | wxStaticBox *src; | |
4173 | wxObject *dest; | |
4174 | src = (wxStaticBox *) ptr; | |
4175 | dest = (wxObject *) src; | |
4176 | return (void *) dest; | |
4177 | } | |
4178 | ||
4179 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4180 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject * _resultobj; | |
4182 | wxStaticBox * _result; | |
4183 | wxWindow * _arg0; | |
4184 | wxWindowID _arg1; | |
4185 | wxString * _arg2; | |
4186 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4187 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4188 | long _arg5 = (long ) 0; | |
4189 | wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr; | |
4190 | PyObject * _argo0 = 0; | |
4191 | PyObject * _obj2 = 0; | |
4192 | wxPoint temp; | |
4193 | PyObject * _obj3 = 0; | |
4194 | wxSize temp0; | |
4195 | PyObject * _obj4 = 0; | |
4196 | PyObject * _obj6 = 0; | |
4197 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4198 | char _ptemp[128]; | |
4199 | ||
4200 | self = self; | |
4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4202 | return NULL; | |
4203 | if (_argo0) { | |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); | |
4207 | return NULL; | |
4208 | } | |
4209 | } | |
4210 | { | |
4211 | _arg2 = wxString_in_helper(_obj2); | |
4212 | if (_arg2 == NULL) | |
4213 | return NULL; | |
4214 | } | |
4215 | if (_obj3) | |
4216 | { | |
4217 | _arg3 = &temp; | |
4218 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4219 | return NULL; | |
4220 | } | |
4221 | if (_obj4) | |
4222 | { | |
4223 | _arg4 = &temp0; | |
4224 | if (! wxSize_helper(_obj4, &_arg4)) | |
4225 | return NULL; | |
4226 | } | |
4227 | if (_obj6) | |
4228 | { | |
4229 | _arg6 = wxString_in_helper(_obj6); | |
4230 | if (_arg6 == NULL) | |
4231 | return NULL; | |
4232 | } | |
4233 | { | |
4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4235 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4236 | ||
4237 | wxPyEndAllowThreads(__tstate); | |
4238 | if (PyErr_Occurred()) return NULL; | |
4239 | } if (_result) { | |
4240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4241 | _resultobj = Py_BuildValue("s",_ptemp); | |
4242 | } else { | |
4243 | Py_INCREF(Py_None); | |
4244 | _resultobj = Py_None; | |
4245 | } | |
4246 | { | |
4247 | if (_obj2) | |
4248 | delete _arg2; | |
4249 | } | |
4250 | { | |
4251 | if (_obj6) | |
4252 | delete _arg6; | |
4253 | } | |
4254 | return _resultobj; | |
4255 | } | |
4256 | ||
4257 | #define new_wxPreStaticBox() (new wxStaticBox()) | |
4258 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4259 | PyObject * _resultobj; | |
4260 | wxStaticBox * _result; | |
4261 | char *_kwnames[] = { NULL }; | |
4262 | char _ptemp[128]; | |
4263 | ||
4264 | self = self; | |
4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
4266 | return NULL; | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | _result = (wxStaticBox *)new_wxPreStaticBox(); | |
4270 | ||
4271 | wxPyEndAllowThreads(__tstate); | |
4272 | if (PyErr_Occurred()) return NULL; | |
4273 | } if (_result) { | |
4274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4275 | _resultobj = Py_BuildValue("s",_ptemp); | |
4276 | } else { | |
4277 | Py_INCREF(Py_None); | |
4278 | _resultobj = Py_None; | |
4279 | } | |
4280 | return _resultobj; | |
4281 | } | |
4282 | ||
4283 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4284 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject * _resultobj; | |
4286 | bool _result; | |
4287 | wxStaticBox * _arg0; | |
4288 | wxWindow * _arg1; | |
4289 | wxWindowID _arg2; | |
4290 | wxString * _arg3; | |
4291 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4292 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4293 | long _arg6 = (long ) 0; | |
4294 | wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr; | |
4295 | PyObject * _argo0 = 0; | |
4296 | PyObject * _argo1 = 0; | |
4297 | PyObject * _obj3 = 0; | |
4298 | wxPoint temp; | |
4299 | PyObject * _obj4 = 0; | |
4300 | wxSize temp0; | |
4301 | PyObject * _obj5 = 0; | |
4302 | PyObject * _obj7 = 0; | |
4303 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4304 | ||
4305 | self = self; | |
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
4307 | return NULL; | |
4308 | if (_argo0) { | |
4309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4312 | return NULL; | |
4313 | } | |
4314 | } | |
4315 | if (_argo1) { | |
4316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4319 | return NULL; | |
4320 | } | |
4321 | } | |
4322 | { | |
4323 | _arg3 = wxString_in_helper(_obj3); | |
4324 | if (_arg3 == NULL) | |
4325 | return NULL; | |
4326 | } | |
4327 | if (_obj4) | |
4328 | { | |
4329 | _arg4 = &temp; | |
4330 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4331 | return NULL; | |
4332 | } | |
4333 | if (_obj5) | |
4334 | { | |
4335 | _arg5 = &temp0; | |
4336 | if (! wxSize_helper(_obj5, &_arg5)) | |
4337 | return NULL; | |
4338 | } | |
4339 | if (_obj7) | |
4340 | { | |
4341 | _arg7 = wxString_in_helper(_obj7); | |
4342 | if (_arg7 == NULL) | |
4343 | return NULL; | |
4344 | } | |
4345 | { | |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4347 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) return NULL; | |
4351 | } _resultobj = Py_BuildValue("i",_result); | |
4352 | { | |
4353 | if (_obj3) | |
4354 | delete _arg3; | |
4355 | } | |
4356 | { | |
4357 | if (_obj7) | |
4358 | delete _arg7; | |
4359 | } | |
4360 | return _resultobj; | |
4361 | } | |
4362 | ||
4363 | static void *SwigwxStaticLineTowxControl(void *ptr) { | |
4364 | wxStaticLine *src; | |
4365 | wxControl *dest; | |
4366 | src = (wxStaticLine *) ptr; | |
4367 | dest = (wxControl *) src; | |
4368 | return (void *) dest; | |
4369 | } | |
4370 | ||
4371 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4372 | wxStaticLine *src; | |
4373 | wxWindow *dest; | |
4374 | src = (wxStaticLine *) ptr; | |
4375 | dest = (wxWindow *) src; | |
4376 | return (void *) dest; | |
4377 | } | |
4378 | ||
4379 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4380 | wxStaticLine *src; | |
4381 | wxEvtHandler *dest; | |
4382 | src = (wxStaticLine *) ptr; | |
4383 | dest = (wxEvtHandler *) src; | |
4384 | return (void *) dest; | |
4385 | } | |
4386 | ||
4387 | static void *SwigwxStaticLineTowxObject(void *ptr) { | |
4388 | wxStaticLine *src; | |
4389 | wxObject *dest; | |
4390 | src = (wxStaticLine *) ptr; | |
4391 | dest = (wxObject *) src; | |
4392 | return (void *) dest; | |
4393 | } | |
4394 | ||
4395 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4396 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject * _resultobj; | |
4398 | wxStaticLine * _result; | |
4399 | wxWindow * _arg0; | |
4400 | wxWindowID _arg1; | |
4401 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4402 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4403 | long _arg4 = (long ) wxLI_HORIZONTAL; | |
4404 | wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr; | |
4405 | PyObject * _argo0 = 0; | |
4406 | wxPoint temp; | |
4407 | PyObject * _obj2 = 0; | |
4408 | wxSize temp0; | |
4409 | PyObject * _obj3 = 0; | |
4410 | PyObject * _obj5 = 0; | |
4411 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
4412 | char _ptemp[128]; | |
4413 | ||
4414 | self = self; | |
4415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
4416 | return NULL; | |
4417 | if (_argo0) { | |
4418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); | |
4421 | return NULL; | |
4422 | } | |
4423 | } | |
4424 | if (_obj2) | |
4425 | { | |
4426 | _arg2 = &temp; | |
4427 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4428 | return NULL; | |
4429 | } | |
4430 | if (_obj3) | |
4431 | { | |
4432 | _arg3 = &temp0; | |
4433 | if (! wxSize_helper(_obj3, &_arg3)) | |
4434 | return NULL; | |
4435 | } | |
4436 | if (_obj5) | |
4437 | { | |
4438 | _arg5 = wxString_in_helper(_obj5); | |
4439 | if (_arg5 == NULL) | |
4440 | return NULL; | |
4441 | } | |
4442 | { | |
4443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4444 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
4445 | ||
4446 | wxPyEndAllowThreads(__tstate); | |
4447 | if (PyErr_Occurred()) return NULL; | |
4448 | } if (_result) { | |
4449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4450 | _resultobj = Py_BuildValue("s",_ptemp); | |
4451 | } else { | |
4452 | Py_INCREF(Py_None); | |
4453 | _resultobj = Py_None; | |
4454 | } | |
4455 | { | |
4456 | if (_obj5) | |
4457 | delete _arg5; | |
4458 | } | |
4459 | return _resultobj; | |
4460 | } | |
4461 | ||
4462 | #define new_wxPreStaticLine() (new wxStaticLine()) | |
4463 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject * _resultobj; | |
4465 | wxStaticLine * _result; | |
4466 | char *_kwnames[] = { NULL }; | |
4467 | char _ptemp[128]; | |
4468 | ||
4469 | self = self; | |
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4471 | return NULL; | |
4472 | { | |
4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4474 | _result = (wxStaticLine *)new_wxPreStaticLine(); | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) return NULL; | |
4478 | } if (_result) { | |
4479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4480 | _resultobj = Py_BuildValue("s",_ptemp); | |
4481 | } else { | |
4482 | Py_INCREF(Py_None); | |
4483 | _resultobj = Py_None; | |
4484 | } | |
4485 | return _resultobj; | |
4486 | } | |
4487 | ||
4488 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4489 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject * _resultobj; | |
4491 | bool _result; | |
4492 | wxStaticLine * _arg0; | |
4493 | wxWindow * _arg1; | |
4494 | wxWindowID _arg2; | |
4495 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4496 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4497 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4498 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; | |
4499 | PyObject * _argo0 = 0; | |
4500 | PyObject * _argo1 = 0; | |
4501 | wxPoint temp; | |
4502 | PyObject * _obj3 = 0; | |
4503 | wxSize temp0; | |
4504 | PyObject * _obj4 = 0; | |
4505 | PyObject * _obj6 = 0; | |
4506 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4507 | ||
4508 | self = self; | |
4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4510 | return NULL; | |
4511 | if (_argo0) { | |
4512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4515 | return NULL; | |
4516 | } | |
4517 | } | |
4518 | if (_argo1) { | |
4519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
4525 | if (_obj3) | |
4526 | { | |
4527 | _arg3 = &temp; | |
4528 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4529 | return NULL; | |
4530 | } | |
4531 | if (_obj4) | |
4532 | { | |
4533 | _arg4 = &temp0; | |
4534 | if (! wxSize_helper(_obj4, &_arg4)) | |
4535 | return NULL; | |
4536 | } | |
4537 | if (_obj6) | |
4538 | { | |
4539 | _arg6 = wxString_in_helper(_obj6); | |
4540 | if (_arg6 == NULL) | |
4541 | return NULL; | |
4542 | } | |
4543 | { | |
4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4545 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4546 | ||
4547 | wxPyEndAllowThreads(__tstate); | |
4548 | if (PyErr_Occurred()) return NULL; | |
4549 | } _resultobj = Py_BuildValue("i",_result); | |
4550 | { | |
4551 | if (_obj6) | |
4552 | delete _arg6; | |
4553 | } | |
4554 | return _resultobj; | |
4555 | } | |
4556 | ||
4557 | static void *SwigwxStaticTextTowxControl(void *ptr) { | |
4558 | wxStaticText *src; | |
4559 | wxControl *dest; | |
4560 | src = (wxStaticText *) ptr; | |
4561 | dest = (wxControl *) src; | |
4562 | return (void *) dest; | |
4563 | } | |
4564 | ||
4565 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4566 | wxStaticText *src; | |
4567 | wxWindow *dest; | |
4568 | src = (wxStaticText *) ptr; | |
4569 | dest = (wxWindow *) src; | |
4570 | return (void *) dest; | |
4571 | } | |
4572 | ||
4573 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4574 | wxStaticText *src; | |
4575 | wxEvtHandler *dest; | |
4576 | src = (wxStaticText *) ptr; | |
4577 | dest = (wxEvtHandler *) src; | |
4578 | return (void *) dest; | |
4579 | } | |
4580 | ||
4581 | static void *SwigwxStaticTextTowxObject(void *ptr) { | |
4582 | wxStaticText *src; | |
4583 | wxObject *dest; | |
4584 | src = (wxStaticText *) ptr; | |
4585 | dest = (wxObject *) src; | |
4586 | return (void *) dest; | |
4587 | } | |
4588 | ||
4589 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4590 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject * _resultobj; | |
4592 | wxStaticText * _result; | |
4593 | wxWindow * _arg0; | |
4594 | wxWindowID _arg1; | |
4595 | wxString * _arg2; | |
4596 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4597 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4598 | long _arg5 = (long ) 0; | |
4599 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; | |
4600 | PyObject * _argo0 = 0; | |
4601 | PyObject * _obj2 = 0; | |
4602 | wxPoint temp; | |
4603 | PyObject * _obj3 = 0; | |
4604 | wxSize temp0; | |
4605 | PyObject * _obj4 = 0; | |
4606 | PyObject * _obj6 = 0; | |
4607 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4608 | char _ptemp[128]; | |
4609 | ||
4610 | self = self; | |
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4612 | return NULL; | |
4613 | if (_argo0) { | |
4614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); | |
4617 | return NULL; | |
4618 | } | |
4619 | } | |
4620 | { | |
4621 | _arg2 = wxString_in_helper(_obj2); | |
4622 | if (_arg2 == NULL) | |
4623 | return NULL; | |
4624 | } | |
4625 | if (_obj3) | |
4626 | { | |
4627 | _arg3 = &temp; | |
4628 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4629 | return NULL; | |
4630 | } | |
4631 | if (_obj4) | |
4632 | { | |
4633 | _arg4 = &temp0; | |
4634 | if (! wxSize_helper(_obj4, &_arg4)) | |
4635 | return NULL; | |
4636 | } | |
4637 | if (_obj6) | |
4638 | { | |
4639 | _arg6 = wxString_in_helper(_obj6); | |
4640 | if (_arg6 == NULL) | |
4641 | return NULL; | |
4642 | } | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4646 | ||
4647 | wxPyEndAllowThreads(__tstate); | |
4648 | if (PyErr_Occurred()) return NULL; | |
4649 | } if (_result) { | |
4650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4651 | _resultobj = Py_BuildValue("s",_ptemp); | |
4652 | } else { | |
4653 | Py_INCREF(Py_None); | |
4654 | _resultobj = Py_None; | |
4655 | } | |
4656 | { | |
4657 | if (_obj2) | |
4658 | delete _arg2; | |
4659 | } | |
4660 | { | |
4661 | if (_obj6) | |
4662 | delete _arg6; | |
4663 | } | |
4664 | return _resultobj; | |
4665 | } | |
4666 | ||
4667 | #define new_wxPreStaticText() (new wxStaticText()) | |
4668 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4669 | PyObject * _resultobj; | |
4670 | wxStaticText * _result; | |
4671 | char *_kwnames[] = { NULL }; | |
4672 | char _ptemp[128]; | |
4673 | ||
4674 | self = self; | |
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4676 | return NULL; | |
4677 | { | |
4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4679 | _result = (wxStaticText *)new_wxPreStaticText(); | |
4680 | ||
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) return NULL; | |
4683 | } if (_result) { | |
4684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4685 | _resultobj = Py_BuildValue("s",_ptemp); | |
4686 | } else { | |
4687 | Py_INCREF(Py_None); | |
4688 | _resultobj = Py_None; | |
4689 | } | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4694 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | bool _result; | |
4697 | wxStaticText * _arg0; | |
4698 | wxWindow * _arg1; | |
4699 | wxWindowID _arg2; | |
4700 | wxString * _arg3; | |
4701 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4702 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4703 | long _arg6 = (long ) 0; | |
4704 | wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr; | |
4705 | PyObject * _argo0 = 0; | |
4706 | PyObject * _argo1 = 0; | |
4707 | PyObject * _obj3 = 0; | |
4708 | wxPoint temp; | |
4709 | PyObject * _obj4 = 0; | |
4710 | wxSize temp0; | |
4711 | PyObject * _obj5 = 0; | |
4712 | PyObject * _obj7 = 0; | |
4713 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4714 | ||
4715 | self = self; | |
4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
4717 | return NULL; | |
4718 | if (_argo0) { | |
4719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4722 | return NULL; | |
4723 | } | |
4724 | } | |
4725 | if (_argo1) { | |
4726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4729 | return NULL; | |
4730 | } | |
4731 | } | |
4732 | { | |
4733 | _arg3 = wxString_in_helper(_obj3); | |
4734 | if (_arg3 == NULL) | |
4735 | return NULL; | |
4736 | } | |
4737 | if (_obj4) | |
4738 | { | |
4739 | _arg4 = &temp; | |
4740 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4741 | return NULL; | |
4742 | } | |
4743 | if (_obj5) | |
4744 | { | |
4745 | _arg5 = &temp0; | |
4746 | if (! wxSize_helper(_obj5, &_arg5)) | |
4747 | return NULL; | |
4748 | } | |
4749 | if (_obj7) | |
4750 | { | |
4751 | _arg7 = wxString_in_helper(_obj7); | |
4752 | if (_arg7 == NULL) | |
4753 | return NULL; | |
4754 | } | |
4755 | { | |
4756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4757 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
4758 | ||
4759 | wxPyEndAllowThreads(__tstate); | |
4760 | if (PyErr_Occurred()) return NULL; | |
4761 | } _resultobj = Py_BuildValue("i",_result); | |
4762 | { | |
4763 | if (_obj3) | |
4764 | delete _arg3; | |
4765 | } | |
4766 | { | |
4767 | if (_obj7) | |
4768 | delete _arg7; | |
4769 | } | |
4770 | return _resultobj; | |
4771 | } | |
4772 | ||
4773 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
4774 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject * _resultobj; | |
4776 | wxString * _result; | |
4777 | wxStaticText * _arg0; | |
4778 | PyObject * _argo0 = 0; | |
4779 | char *_kwnames[] = { "self", NULL }; | |
4780 | ||
4781 | self = self; | |
4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) | |
4783 | return NULL; | |
4784 | if (_argo0) { | |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); | |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
4791 | { | |
4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4793 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
4794 | ||
4795 | wxPyEndAllowThreads(__tstate); | |
4796 | if (PyErr_Occurred()) return NULL; | |
4797 | }{ | |
4798 | #if wxUSE_UNICODE | |
4799 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4800 | #else | |
4801 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4802 | #endif | |
4803 | } | |
4804 | { | |
4805 | delete _result; | |
4806 | } | |
4807 | return _resultobj; | |
4808 | } | |
4809 | ||
4810 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
4811 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4812 | PyObject * _resultobj; | |
4813 | wxStaticText * _arg0; | |
4814 | wxString * _arg1; | |
4815 | PyObject * _argo0 = 0; | |
4816 | PyObject * _obj1 = 0; | |
4817 | char *_kwnames[] = { "self","label", NULL }; | |
4818 | ||
4819 | self = self; | |
4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) | |
4821 | return NULL; | |
4822 | if (_argo0) { | |
4823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); | |
4826 | return NULL; | |
4827 | } | |
4828 | } | |
4829 | { | |
4830 | _arg1 = wxString_in_helper(_obj1); | |
4831 | if (_arg1 == NULL) | |
4832 | return NULL; | |
4833 | } | |
4834 | { | |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4836 | wxStaticText_SetLabel(_arg0,*_arg1); | |
4837 | ||
4838 | wxPyEndAllowThreads(__tstate); | |
4839 | if (PyErr_Occurred()) return NULL; | |
4840 | } Py_INCREF(Py_None); | |
4841 | _resultobj = Py_None; | |
4842 | { | |
4843 | if (_obj1) | |
4844 | delete _arg1; | |
4845 | } | |
4846 | return _resultobj; | |
4847 | } | |
4848 | ||
4849 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { | |
4850 | wxListBox *src; | |
4851 | wxControlWithItems *dest; | |
4852 | src = (wxListBox *) ptr; | |
4853 | dest = (wxControlWithItems *) src; | |
4854 | return (void *) dest; | |
4855 | } | |
4856 | ||
4857 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
4858 | wxListBox *src; | |
4859 | wxControl *dest; | |
4860 | src = (wxListBox *) ptr; | |
4861 | dest = (wxControl *) src; | |
4862 | return (void *) dest; | |
4863 | } | |
4864 | ||
4865 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4866 | wxListBox *src; | |
4867 | wxWindow *dest; | |
4868 | src = (wxListBox *) ptr; | |
4869 | dest = (wxWindow *) src; | |
4870 | return (void *) dest; | |
4871 | } | |
4872 | ||
4873 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4874 | wxListBox *src; | |
4875 | wxEvtHandler *dest; | |
4876 | src = (wxListBox *) ptr; | |
4877 | dest = (wxEvtHandler *) src; | |
4878 | return (void *) dest; | |
4879 | } | |
4880 | ||
4881 | static void *SwigwxListBoxTowxObject(void *ptr) { | |
4882 | wxListBox *src; | |
4883 | wxObject *dest; | |
4884 | src = (wxListBox *) ptr; | |
4885 | dest = (wxObject *) src; | |
4886 | return (void *) dest; | |
4887 | } | |
4888 | ||
4889 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4890 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject * _resultobj; | |
4892 | wxListBox * _result; | |
4893 | wxWindow * _arg0; | |
4894 | wxWindowID _arg1; | |
4895 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4896 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4897 | int _arg4; | |
4898 | wxString * _arg5 = (wxString *) NULL; | |
4899 | long _arg6 = (long ) 0; | |
4900 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4901 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; | |
4902 | PyObject * _argo0 = 0; | |
4903 | wxPoint temp; | |
4904 | PyObject * _obj2 = 0; | |
4905 | wxSize temp0; | |
4906 | PyObject * _obj3 = 0; | |
4907 | PyObject * _obj5 = 0; | |
4908 | PyObject * _argo7 = 0; | |
4909 | PyObject * _obj8 = 0; | |
4910 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4911 | char _ptemp[128]; | |
4912 | ||
4913 | self = self; | |
4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
4915 | return NULL; | |
4916 | if (_argo0) { | |
4917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4920 | return NULL; | |
4921 | } | |
4922 | } | |
4923 | if (_obj2) | |
4924 | { | |
4925 | _arg2 = &temp; | |
4926 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4927 | return NULL; | |
4928 | } | |
4929 | if (_obj3) | |
4930 | { | |
4931 | _arg3 = &temp0; | |
4932 | if (! wxSize_helper(_obj3, &_arg3)) | |
4933 | return NULL; | |
4934 | } | |
4935 | if (_obj5) | |
4936 | { | |
4937 | _arg5 = wxString_LIST_helper(_obj5); | |
4938 | if (_arg5 == NULL) { | |
4939 | return NULL; | |
4940 | } | |
4941 | } | |
4942 | if (_argo7) { | |
4943 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4944 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4946 | return NULL; | |
4947 | } | |
4948 | } | |
4949 | if (_obj8) | |
4950 | { | |
4951 | _arg8 = wxString_in_helper(_obj8); | |
4952 | if (_arg8 == NULL) | |
4953 | return NULL; | |
4954 | } | |
4955 | { | |
4956 | if (_obj5) { | |
4957 | _arg4 = PyList_Size(_obj5); | |
4958 | } | |
4959 | else { | |
4960 | _arg4 = 0; | |
4961 | } | |
4962 | } | |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) return NULL; | |
4969 | } if (_result) { | |
4970 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4971 | _resultobj = Py_BuildValue("s",_ptemp); | |
4972 | } else { | |
4973 | Py_INCREF(Py_None); | |
4974 | _resultobj = Py_None; | |
4975 | } | |
4976 | { | |
4977 | delete [] _arg5; | |
4978 | } | |
4979 | { | |
4980 | if (_obj8) | |
4981 | delete _arg8; | |
4982 | } | |
4983 | return _resultobj; | |
4984 | } | |
4985 | ||
4986 | #define new_wxPreListBox() (new wxListBox()) | |
4987 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4988 | PyObject * _resultobj; | |
4989 | wxListBox * _result; | |
4990 | char *_kwnames[] = { NULL }; | |
4991 | char _ptemp[128]; | |
4992 | ||
4993 | self = self; | |
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4995 | return NULL; | |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | _result = (wxListBox *)new_wxPreListBox(); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) return NULL; | |
5002 | } if (_result) { | |
5003 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
5004 | _resultobj = Py_BuildValue("s",_ptemp); | |
5005 | } else { | |
5006 | Py_INCREF(Py_None); | |
5007 | _resultobj = Py_None; | |
5008 | } | |
5009 | return _resultobj; | |
5010 | } | |
5011 | ||
5012 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5013 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5014 | PyObject * _resultobj; | |
5015 | bool _result; | |
5016 | wxListBox * _arg0; | |
5017 | wxWindow * _arg1; | |
5018 | wxWindowID _arg2; | |
5019 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5020 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5021 | int _arg5; | |
5022 | wxString * _arg6 = (wxString *) NULL; | |
5023 | long _arg7 = (long ) 0; | |
5024 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5025 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; | |
5026 | PyObject * _argo0 = 0; | |
5027 | PyObject * _argo1 = 0; | |
5028 | wxPoint temp; | |
5029 | PyObject * _obj3 = 0; | |
5030 | wxSize temp0; | |
5031 | PyObject * _obj4 = 0; | |
5032 | PyObject * _obj6 = 0; | |
5033 | PyObject * _argo8 = 0; | |
5034 | PyObject * _obj9 = 0; | |
5035 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5036 | ||
5037 | self = self; | |
5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
5039 | return NULL; | |
5040 | if (_argo0) { | |
5041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
5044 | return NULL; | |
5045 | } | |
5046 | } | |
5047 | if (_argo1) { | |
5048 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5049 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
5051 | return NULL; | |
5052 | } | |
5053 | } | |
5054 | if (_obj3) | |
5055 | { | |
5056 | _arg3 = &temp; | |
5057 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5058 | return NULL; | |
5059 | } | |
5060 | if (_obj4) | |
5061 | { | |
5062 | _arg4 = &temp0; | |
5063 | if (! wxSize_helper(_obj4, &_arg4)) | |
5064 | return NULL; | |
5065 | } | |
5066 | if (_obj6) | |
5067 | { | |
5068 | _arg6 = wxString_LIST_helper(_obj6); | |
5069 | if (_arg6 == NULL) { | |
5070 | return NULL; | |
5071 | } | |
5072 | } | |
5073 | if (_argo8) { | |
5074 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
5077 | return NULL; | |
5078 | } | |
5079 | } | |
5080 | if (_obj9) | |
5081 | { | |
5082 | _arg9 = wxString_in_helper(_obj9); | |
5083 | if (_arg9 == NULL) | |
5084 | return NULL; | |
5085 | } | |
5086 | { | |
5087 | if (_obj6) { | |
5088 | _arg5 = PyList_Size(_obj6); | |
5089 | } | |
5090 | else { | |
5091 | _arg5 = 0; | |
5092 | } | |
5093 | } | |
5094 | { | |
5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5096 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
5097 | ||
5098 | wxPyEndAllowThreads(__tstate); | |
5099 | if (PyErr_Occurred()) return NULL; | |
5100 | } _resultobj = Py_BuildValue("i",_result); | |
5101 | { | |
5102 | delete [] _arg6; | |
5103 | } | |
5104 | { | |
5105 | if (_obj9) | |
5106 | delete _arg9; | |
5107 | } | |
5108 | return _resultobj; | |
5109 | } | |
5110 | ||
5111 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
5112 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject * _resultobj; | |
5114 | wxListBox * _arg0; | |
5115 | PyObject * _argo0 = 0; | |
5116 | char *_kwnames[] = { "self", NULL }; | |
5117 | ||
5118 | self = self; | |
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) | |
5120 | return NULL; | |
5121 | if (_argo0) { | |
5122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); | |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | wxListBox_Clear(_arg0); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) return NULL; | |
5134 | } Py_INCREF(Py_None); | |
5135 | _resultobj = Py_None; | |
5136 | return _resultobj; | |
5137 | } | |
5138 | ||
5139 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
5140 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5141 | PyObject * _resultobj; | |
5142 | wxListBox * _arg0; | |
5143 | int _arg1; | |
5144 | PyObject * _argo0 = 0; | |
5145 | char *_kwnames[] = { "self","n", NULL }; | |
5146 | ||
5147 | self = self; | |
5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) | |
5149 | return NULL; | |
5150 | if (_argo0) { | |
5151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); | |
5154 | return NULL; | |
5155 | } | |
5156 | } | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | wxListBox_Deselect(_arg0,_arg1); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) return NULL; | |
5163 | } Py_INCREF(Py_None); | |
5164 | _resultobj = Py_None; | |
5165 | return _resultobj; | |
5166 | } | |
5167 | ||
5168 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
5169 | wxArrayInt lst; | |
5170 | self->GetSelections(lst); | |
5171 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
5172 | for(size_t i=0; i<lst.GetCount(); i++) { | |
5173 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
5174 | } | |
5175 | return tup; | |
5176 | } | |
5177 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5178 | PyObject * _resultobj; | |
5179 | PyObject * _result; | |
5180 | wxListBox * _arg0; | |
5181 | PyObject * _argo0 = 0; | |
5182 | char *_kwnames[] = { "self", NULL }; | |
5183 | ||
5184 | self = self; | |
5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) | |
5186 | return NULL; | |
5187 | if (_argo0) { | |
5188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); | |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) return NULL; | |
5200 | }{ | |
5201 | _resultobj = _result; | |
5202 | } | |
5203 | return _resultobj; | |
5204 | } | |
5205 | ||
5206 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5207 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5208 | PyObject * _resultobj; | |
5209 | wxListBox * _arg0; | |
5210 | int _arg1; | |
5211 | wxString * _arg2; | |
5212 | int _arg3; | |
5213 | PyObject * _argo0 = 0; | |
5214 | PyObject * _obj2 = 0; | |
5215 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5216 | ||
5217 | self = self; | |
5218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5219 | return NULL; | |
5220 | if (_argo0) { | |
5221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
5227 | { | |
5228 | _arg2 = wxString_LIST_helper(_obj2); | |
5229 | if (_arg2 == NULL) { | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
5234 | if (_obj2) { | |
5235 | _arg1 = PyList_Size(_obj2); | |
5236 | } | |
5237 | else { | |
5238 | _arg1 = 0; | |
5239 | } | |
5240 | } | |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) return NULL; | |
5247 | } Py_INCREF(Py_None); | |
5248 | _resultobj = Py_None; | |
5249 | { | |
5250 | delete [] _arg2; | |
5251 | } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
5255 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5256 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject * _resultobj; | |
5258 | bool _result; | |
5259 | wxListBox * _arg0; | |
5260 | int _arg1; | |
5261 | PyObject * _argo0 = 0; | |
5262 | char *_kwnames[] = { "self","n", NULL }; | |
5263 | ||
5264 | self = self; | |
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5266 | return NULL; | |
5267 | if (_argo0) { | |
5268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
5271 | return NULL; | |
5272 | } | |
5273 | } | |
5274 | { | |
5275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5276 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); | |
5277 | ||
5278 | wxPyEndAllowThreads(__tstate); | |
5279 | if (PyErr_Occurred()) return NULL; | |
5280 | } _resultobj = Py_BuildValue("i",_result); | |
5281 | return _resultobj; | |
5282 | } | |
5283 | ||
5284 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
5285 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5286 | PyObject * _resultobj; | |
5287 | bool _result; | |
5288 | wxListBox * _arg0; | |
5289 | int _arg1; | |
5290 | PyObject * _argo0 = 0; | |
5291 | char *_kwnames[] = { "self","n", NULL }; | |
5292 | ||
5293 | self = self; | |
5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) | |
5295 | return NULL; | |
5296 | if (_argo0) { | |
5297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); | |
5300 | return NULL; | |
5301 | } | |
5302 | } | |
5303 | { | |
5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5305 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
5306 | ||
5307 | wxPyEndAllowThreads(__tstate); | |
5308 | if (PyErr_Occurred()) return NULL; | |
5309 | } _resultobj = Py_BuildValue("i",_result); | |
5310 | return _resultobj; | |
5311 | } | |
5312 | ||
5313 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
5314 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject * _resultobj; | |
5316 | wxListBox * _arg0; | |
5317 | int _arg1; | |
5318 | wxString * _arg2; | |
5319 | PyObject * _argo0 = 0; | |
5320 | PyObject * _obj2 = 0; | |
5321 | char *_kwnames[] = { "self","choices", NULL }; | |
5322 | ||
5323 | self = self; | |
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) | |
5325 | return NULL; | |
5326 | if (_argo0) { | |
5327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); | |
5330 | return NULL; | |
5331 | } | |
5332 | } | |
5333 | if (_obj2) | |
5334 | { | |
5335 | _arg2 = wxString_LIST_helper(_obj2); | |
5336 | if (_arg2 == NULL) { | |
5337 | return NULL; | |
5338 | } | |
5339 | } | |
5340 | { | |
5341 | if (_obj2) { | |
5342 | _arg1 = PyList_Size(_obj2); | |
5343 | } | |
5344 | else { | |
5345 | _arg1 = 0; | |
5346 | } | |
5347 | } | |
5348 | { | |
5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5350 | wxListBox_Set(_arg0,_arg1,_arg2); | |
5351 | ||
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) return NULL; | |
5354 | } Py_INCREF(Py_None); | |
5355 | _resultobj = Py_None; | |
5356 | { | |
5357 | delete [] _arg2; | |
5358 | } | |
5359 | return _resultobj; | |
5360 | } | |
5361 | ||
5362 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
5363 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5364 | PyObject * _resultobj; | |
5365 | wxListBox * _arg0; | |
5366 | int _arg1; | |
5367 | PyObject * _argo0 = 0; | |
5368 | char *_kwnames[] = { "self","n", NULL }; | |
5369 | ||
5370 | self = self; | |
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) | |
5372 | return NULL; | |
5373 | if (_argo0) { | |
5374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); | |
5377 | return NULL; | |
5378 | } | |
5379 | } | |
5380 | { | |
5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5382 | wxListBox_SetFirstItem(_arg0,_arg1); | |
5383 | ||
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) return NULL; | |
5386 | } Py_INCREF(Py_None); | |
5387 | _resultobj = Py_None; | |
5388 | return _resultobj; | |
5389 | } | |
5390 | ||
5391 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
5392 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5393 | PyObject * _resultobj; | |
5394 | wxListBox * _arg0; | |
5395 | wxString * _arg1; | |
5396 | PyObject * _argo0 = 0; | |
5397 | PyObject * _obj1 = 0; | |
5398 | char *_kwnames[] = { "self","string", NULL }; | |
5399 | ||
5400 | self = self; | |
5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) | |
5402 | return NULL; | |
5403 | if (_argo0) { | |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); | |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
5410 | { | |
5411 | _arg1 = wxString_in_helper(_obj1); | |
5412 | if (_arg1 == NULL) | |
5413 | return NULL; | |
5414 | } | |
5415 | { | |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
5418 | ||
5419 | wxPyEndAllowThreads(__tstate); | |
5420 | if (PyErr_Occurred()) return NULL; | |
5421 | } Py_INCREF(Py_None); | |
5422 | _resultobj = Py_None; | |
5423 | { | |
5424 | if (_obj1) | |
5425 | delete _arg1; | |
5426 | } | |
5427 | return _resultobj; | |
5428 | } | |
5429 | ||
5430 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
5431 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5432 | PyObject * _resultobj; | |
5433 | wxListBox * _arg0; | |
5434 | int _arg1; | |
5435 | bool _arg2 = (bool ) TRUE; | |
5436 | PyObject * _argo0 = 0; | |
5437 | int tempbool2 = (int) TRUE; | |
5438 | char *_kwnames[] = { "self","n","select", NULL }; | |
5439 | ||
5440 | self = self; | |
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5442 | return NULL; | |
5443 | if (_argo0) { | |
5444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); | |
5447 | return NULL; | |
5448 | } | |
5449 | } | |
5450 | _arg2 = (bool ) tempbool2; | |
5451 | { | |
5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5453 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
5454 | ||
5455 | wxPyEndAllowThreads(__tstate); | |
5456 | if (PyErr_Occurred()) return NULL; | |
5457 | } Py_INCREF(Py_None); | |
5458 | _resultobj = Py_None; | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
5462 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
5463 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5464 | PyObject * _resultobj; | |
5465 | wxListBox * _arg0; | |
5466 | int _arg1; | |
5467 | wxString * _arg2; | |
5468 | PyObject * _argo0 = 0; | |
5469 | PyObject * _obj2 = 0; | |
5470 | char *_kwnames[] = { "self","n","string", NULL }; | |
5471 | ||
5472 | self = self; | |
5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5474 | return NULL; | |
5475 | if (_argo0) { | |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); | |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
5482 | { | |
5483 | _arg2 = wxString_in_helper(_obj2); | |
5484 | if (_arg2 == NULL) | |
5485 | return NULL; | |
5486 | } | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) return NULL; | |
5493 | } Py_INCREF(Py_None); | |
5494 | _resultobj = Py_None; | |
5495 | { | |
5496 | if (_obj2) | |
5497 | delete _arg2; | |
5498 | } | |
5499 | return _resultobj; | |
5500 | } | |
5501 | ||
5502 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
5503 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5504 | PyObject * _resultobj; | |
5505 | wxListBox * _arg0; | |
5506 | wxString * _arg1; | |
5507 | bool _arg2 = (bool ) TRUE; | |
5508 | PyObject * _argo0 = 0; | |
5509 | PyObject * _obj1 = 0; | |
5510 | int tempbool2 = (int) TRUE; | |
5511 | char *_kwnames[] = { "self","string","select", NULL }; | |
5512 | ||
5513 | self = self; | |
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
5515 | return NULL; | |
5516 | if (_argo0) { | |
5517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); | |
5520 | return NULL; | |
5521 | } | |
5522 | } | |
5523 | { | |
5524 | _arg1 = wxString_in_helper(_obj1); | |
5525 | if (_arg1 == NULL) | |
5526 | return NULL; | |
5527 | } | |
5528 | _arg2 = (bool ) tempbool2; | |
5529 | { | |
5530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5531 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
5532 | ||
5533 | wxPyEndAllowThreads(__tstate); | |
5534 | if (PyErr_Occurred()) return NULL; | |
5535 | } Py_INCREF(Py_None); | |
5536 | _resultobj = Py_None; | |
5537 | { | |
5538 | if (_obj1) | |
5539 | delete _arg1; | |
5540 | } | |
5541 | return _resultobj; | |
5542 | } | |
5543 | ||
5544 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { | |
5545 | wxCheckListBox *src; | |
5546 | wxListBox *dest; | |
5547 | src = (wxCheckListBox *) ptr; | |
5548 | dest = (wxListBox *) src; | |
5549 | return (void *) dest; | |
5550 | } | |
5551 | ||
5552 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { | |
5553 | wxCheckListBox *src; | |
5554 | wxControlWithItems *dest; | |
5555 | src = (wxCheckListBox *) ptr; | |
5556 | dest = (wxControlWithItems *) src; | |
5557 | return (void *) dest; | |
5558 | } | |
5559 | ||
5560 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
5561 | wxCheckListBox *src; | |
5562 | wxControl *dest; | |
5563 | src = (wxCheckListBox *) ptr; | |
5564 | dest = (wxControl *) src; | |
5565 | return (void *) dest; | |
5566 | } | |
5567 | ||
5568 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5569 | wxCheckListBox *src; | |
5570 | wxWindow *dest; | |
5571 | src = (wxCheckListBox *) ptr; | |
5572 | dest = (wxWindow *) src; | |
5573 | return (void *) dest; | |
5574 | } | |
5575 | ||
5576 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5577 | wxCheckListBox *src; | |
5578 | wxEvtHandler *dest; | |
5579 | src = (wxCheckListBox *) ptr; | |
5580 | dest = (wxEvtHandler *) src; | |
5581 | return (void *) dest; | |
5582 | } | |
5583 | ||
5584 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { | |
5585 | wxCheckListBox *src; | |
5586 | wxObject *dest; | |
5587 | src = (wxCheckListBox *) ptr; | |
5588 | dest = (wxObject *) src; | |
5589 | return (void *) dest; | |
5590 | } | |
5591 | ||
5592 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5593 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject * _resultobj; | |
5595 | wxCheckListBox * _result; | |
5596 | wxWindow * _arg0; | |
5597 | wxWindowID _arg1; | |
5598 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5599 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5600 | int _arg4 = (int ) 0; | |
5601 | wxString * _arg5 = (wxString *) NULL; | |
5602 | long _arg6 = (long ) 0; | |
5603 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5604 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; | |
5605 | PyObject * _argo0 = 0; | |
5606 | wxPoint temp; | |
5607 | PyObject * _obj2 = 0; | |
5608 | wxSize temp0; | |
5609 | PyObject * _obj3 = 0; | |
5610 | PyObject * _obj5 = 0; | |
5611 | PyObject * _argo7 = 0; | |
5612 | PyObject * _obj8 = 0; | |
5613 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
5614 | char _ptemp[128]; | |
5615 | ||
5616 | self = self; | |
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
5618 | return NULL; | |
5619 | if (_argo0) { | |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); | |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
5626 | if (_obj2) | |
5627 | { | |
5628 | _arg2 = &temp; | |
5629 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5630 | return NULL; | |
5631 | } | |
5632 | if (_obj3) | |
5633 | { | |
5634 | _arg3 = &temp0; | |
5635 | if (! wxSize_helper(_obj3, &_arg3)) | |
5636 | return NULL; | |
5637 | } | |
5638 | if (_obj5) | |
5639 | { | |
5640 | _arg5 = wxString_LIST_helper(_obj5); | |
5641 | if (_arg5 == NULL) { | |
5642 | return NULL; | |
5643 | } | |
5644 | } | |
5645 | if (_argo7) { | |
5646 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5647 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); | |
5649 | return NULL; | |
5650 | } | |
5651 | } | |
5652 | if (_obj8) | |
5653 | { | |
5654 | _arg8 = wxString_in_helper(_obj8); | |
5655 | if (_arg8 == NULL) | |
5656 | return NULL; | |
5657 | } | |
5658 | { | |
5659 | if (_obj5) { | |
5660 | _arg4 = PyList_Size(_obj5); | |
5661 | } | |
5662 | else { | |
5663 | _arg4 = 0; | |
5664 | } | |
5665 | } | |
5666 | { | |
5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5668 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
5669 | ||
5670 | wxPyEndAllowThreads(__tstate); | |
5671 | if (PyErr_Occurred()) return NULL; | |
5672 | } if (_result) { | |
5673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5674 | _resultobj = Py_BuildValue("s",_ptemp); | |
5675 | } else { | |
5676 | Py_INCREF(Py_None); | |
5677 | _resultobj = Py_None; | |
5678 | } | |
5679 | { | |
5680 | delete [] _arg5; | |
5681 | } | |
5682 | { | |
5683 | if (_obj8) | |
5684 | delete _arg8; | |
5685 | } | |
5686 | return _resultobj; | |
5687 | } | |
5688 | ||
5689 | #define new_wxPreCheckListBox() (new wxCheckListBox()) | |
5690 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5691 | PyObject * _resultobj; | |
5692 | wxCheckListBox * _result; | |
5693 | char *_kwnames[] = { NULL }; | |
5694 | char _ptemp[128]; | |
5695 | ||
5696 | self = self; | |
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5698 | return NULL; | |
5699 | { | |
5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5701 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); | |
5702 | ||
5703 | wxPyEndAllowThreads(__tstate); | |
5704 | if (PyErr_Occurred()) return NULL; | |
5705 | } if (_result) { | |
5706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5707 | _resultobj = Py_BuildValue("s",_ptemp); | |
5708 | } else { | |
5709 | Py_INCREF(Py_None); | |
5710 | _resultobj = Py_None; | |
5711 | } | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5716 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | bool _result; | |
5719 | wxCheckListBox * _arg0; | |
5720 | wxWindow * _arg1; | |
5721 | wxWindowID _arg2; | |
5722 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5723 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5724 | int _arg5 = (int ) 0; | |
5725 | wxString * _arg6 = (wxString *) NULL; | |
5726 | long _arg7 = (long ) 0; | |
5727 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5728 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; | |
5729 | PyObject * _argo0 = 0; | |
5730 | PyObject * _argo1 = 0; | |
5731 | wxPoint temp; | |
5732 | PyObject * _obj3 = 0; | |
5733 | wxSize temp0; | |
5734 | PyObject * _obj4 = 0; | |
5735 | PyObject * _obj6 = 0; | |
5736 | PyObject * _argo8 = 0; | |
5737 | PyObject * _obj9 = 0; | |
5738 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5739 | ||
5740 | self = self; | |
5741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
5742 | return NULL; | |
5743 | if (_argo0) { | |
5744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5747 | return NULL; | |
5748 | } | |
5749 | } | |
5750 | if (_argo1) { | |
5751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5754 | return NULL; | |
5755 | } | |
5756 | } | |
5757 | if (_obj3) | |
5758 | { | |
5759 | _arg3 = &temp; | |
5760 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5761 | return NULL; | |
5762 | } | |
5763 | if (_obj4) | |
5764 | { | |
5765 | _arg4 = &temp0; | |
5766 | if (! wxSize_helper(_obj4, &_arg4)) | |
5767 | return NULL; | |
5768 | } | |
5769 | if (_obj6) | |
5770 | { | |
5771 | _arg6 = wxString_LIST_helper(_obj6); | |
5772 | if (_arg6 == NULL) { | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | if (_argo8) { | |
5777 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5778 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5780 | return NULL; | |
5781 | } | |
5782 | } | |
5783 | if (_obj9) | |
5784 | { | |
5785 | _arg9 = wxString_in_helper(_obj9); | |
5786 | if (_arg9 == NULL) | |
5787 | return NULL; | |
5788 | } | |
5789 | { | |
5790 | if (_obj6) { | |
5791 | _arg5 = PyList_Size(_obj6); | |
5792 | } | |
5793 | else { | |
5794 | _arg5 = 0; | |
5795 | } | |
5796 | } | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) return NULL; | |
5803 | } _resultobj = Py_BuildValue("i",_result); | |
5804 | { | |
5805 | delete [] _arg6; | |
5806 | } | |
5807 | { | |
5808 | if (_obj9) | |
5809 | delete _arg9; | |
5810 | } | |
5811 | return _resultobj; | |
5812 | } | |
5813 | ||
5814 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5815 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5816 | PyObject * _resultobj; | |
5817 | bool _result; | |
5818 | wxCheckListBox * _arg0; | |
5819 | int _arg1; | |
5820 | PyObject * _argo0 = 0; | |
5821 | char *_kwnames[] = { "self","uiIndex", NULL }; | |
5822 | ||
5823 | self = self; | |
5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5825 | return NULL; | |
5826 | if (_argo0) { | |
5827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); | |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
5833 | { | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
5836 | ||
5837 | wxPyEndAllowThreads(__tstate); | |
5838 | if (PyErr_Occurred()) return NULL; | |
5839 | } _resultobj = Py_BuildValue("i",_result); | |
5840 | return _resultobj; | |
5841 | } | |
5842 | ||
5843 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5844 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5845 | PyObject * _resultobj; | |
5846 | wxCheckListBox * _arg0; | |
5847 | int _arg1; | |
5848 | int _arg2 = (int ) TRUE; | |
5849 | PyObject * _argo0 = 0; | |
5850 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; | |
5851 | ||
5852 | self = self; | |
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5854 | return NULL; | |
5855 | if (_argo0) { | |
5856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); | |
5859 | return NULL; | |
5860 | } | |
5861 | } | |
5862 | { | |
5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5864 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
5865 | ||
5866 | wxPyEndAllowThreads(__tstate); | |
5867 | if (PyErr_Occurred()) return NULL; | |
5868 | } Py_INCREF(Py_None); | |
5869 | _resultobj = Py_None; | |
5870 | return _resultobj; | |
5871 | } | |
5872 | ||
5873 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5874 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5875 | PyObject * _resultobj; | |
5876 | wxCheckListBox * _arg0; | |
5877 | int _arg1; | |
5878 | wxString * _arg2; | |
5879 | int _arg3; | |
5880 | PyObject * _argo0 = 0; | |
5881 | PyObject * _obj2 = 0; | |
5882 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5883 | ||
5884 | self = self; | |
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5886 | return NULL; | |
5887 | if (_argo0) { | |
5888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5891 | return NULL; | |
5892 | } | |
5893 | } | |
5894 | { | |
5895 | _arg2 = wxString_LIST_helper(_obj2); | |
5896 | if (_arg2 == NULL) { | |
5897 | return NULL; | |
5898 | } | |
5899 | } | |
5900 | { | |
5901 | if (_obj2) { | |
5902 | _arg1 = PyList_Size(_obj2); | |
5903 | } | |
5904 | else { | |
5905 | _arg1 = 0; | |
5906 | } | |
5907 | } | |
5908 | { | |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) return NULL; | |
5914 | } Py_INCREF(Py_None); | |
5915 | _resultobj = Py_None; | |
5916 | { | |
5917 | delete [] _arg2; | |
5918 | } | |
5919 | return _resultobj; | |
5920 | } | |
5921 | ||
5922 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) | |
5923 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject * _resultobj; | |
5925 | int _result; | |
5926 | wxCheckListBox * _arg0; | |
5927 | PyObject * _argo0 = 0; | |
5928 | char *_kwnames[] = { "self", NULL }; | |
5929 | ||
5930 | self = self; | |
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) | |
5932 | return NULL; | |
5933 | if (_argo0) { | |
5934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); | |
5937 | return NULL; | |
5938 | } | |
5939 | } | |
5940 | { | |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
5943 | ||
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) return NULL; | |
5946 | } _resultobj = Py_BuildValue("i",_result); | |
5947 | return _resultobj; | |
5948 | } | |
5949 | ||
5950 | #define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) | |
5951 | static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5952 | PyObject * _resultobj; | |
5953 | int _result; | |
5954 | wxCheckListBox * _arg0; | |
5955 | wxPoint * _arg1; | |
5956 | PyObject * _argo0 = 0; | |
5957 | wxPoint temp; | |
5958 | PyObject * _obj1 = 0; | |
5959 | char *_kwnames[] = { "self","pt", NULL }; | |
5960 | ||
5961 | self = self; | |
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1)) | |
5963 | return NULL; | |
5964 | if (_argo0) { | |
5965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p."); | |
5968 | return NULL; | |
5969 | } | |
5970 | } | |
5971 | { | |
5972 | _arg1 = &temp; | |
5973 | if (! wxPoint_helper(_obj1, &_arg1)) | |
5974 | return NULL; | |
5975 | } | |
5976 | { | |
5977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5978 | _result = (int )wxCheckListBox_HitTest(_arg0,*_arg1); | |
5979 | ||
5980 | wxPyEndAllowThreads(__tstate); | |
5981 | if (PyErr_Occurred()) return NULL; | |
5982 | } _resultobj = Py_BuildValue("i",_result); | |
5983 | return _resultobj; | |
5984 | } | |
5985 | ||
5986 | #define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
5987 | static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject * _resultobj; | |
5989 | int _result; | |
5990 | wxCheckListBox * _arg0; | |
5991 | wxCoord _arg1; | |
5992 | wxCoord _arg2; | |
5993 | PyObject * _argo0 = 0; | |
5994 | char *_kwnames[] = { "self","x","y", NULL }; | |
5995 | ||
5996 | self = self; | |
5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5998 | return NULL; | |
5999 | if (_argo0) { | |
6000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
6002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p."); | |
6003 | return NULL; | |
6004 | } | |
6005 | } | |
6006 | { | |
6007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6008 | _result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2); | |
6009 | ||
6010 | wxPyEndAllowThreads(__tstate); | |
6011 | if (PyErr_Occurred()) return NULL; | |
6012 | } _resultobj = Py_BuildValue("i",_result); | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
6016 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) | |
6017 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | wxTextAttr * _result; | |
6020 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
6021 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
6022 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
6023 | wxColour temp; | |
6024 | PyObject * _obj0 = 0; | |
6025 | wxColour temp0; | |
6026 | PyObject * _obj1 = 0; | |
6027 | PyObject * _argo2 = 0; | |
6028 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
6029 | char _ptemp[128]; | |
6030 | ||
6031 | self = self; | |
6032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
6033 | return NULL; | |
6034 | if (_obj0) | |
6035 | { | |
6036 | _arg0 = &temp; | |
6037 | if (! wxColour_helper(_obj0, &_arg0)) | |
6038 | return NULL; | |
6039 | } | |
6040 | if (_obj1) | |
6041 | { | |
6042 | _arg1 = &temp0; | |
6043 | if (! wxColour_helper(_obj1, &_arg1)) | |
6044 | return NULL; | |
6045 | } | |
6046 | if (_argo2) { | |
6047 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6048 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
6050 | return NULL; | |
6051 | } | |
6052 | } | |
6053 | { | |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6055 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) return NULL; | |
6059 | } if (_result) { | |
6060 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6061 | _resultobj = Py_BuildValue("s",_ptemp); | |
6062 | } else { | |
6063 | Py_INCREF(Py_None); | |
6064 | _resultobj = Py_None; | |
6065 | } | |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
6069 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
6070 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject * _resultobj; | |
6072 | wxTextAttr * _arg0; | |
6073 | PyObject * _argo0 = 0; | |
6074 | char *_kwnames[] = { "self", NULL }; | |
6075 | ||
6076 | self = self; | |
6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
6078 | return NULL; | |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | delete_wxTextAttr(_arg0); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) return NULL; | |
6092 | } Py_INCREF(Py_None); | |
6093 | _resultobj = Py_None; | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
6097 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
6098 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject * _resultobj; | |
6100 | wxTextAttr * _arg0; | |
6101 | wxColour * _arg1; | |
6102 | PyObject * _argo0 = 0; | |
6103 | wxColour temp; | |
6104 | PyObject * _obj1 = 0; | |
6105 | char *_kwnames[] = { "self","colText", NULL }; | |
6106 | ||
6107 | self = self; | |
6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
6109 | return NULL; | |
6110 | if (_argo0) { | |
6111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
6114 | return NULL; | |
6115 | } | |
6116 | } | |
6117 | { | |
6118 | _arg1 = &temp; | |
6119 | if (! wxColour_helper(_obj1, &_arg1)) | |
6120 | return NULL; | |
6121 | } | |
6122 | { | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | wxTextAttr_SetTextColour(_arg0,*_arg1); | |
6125 | ||
6126 | wxPyEndAllowThreads(__tstate); | |
6127 | if (PyErr_Occurred()) return NULL; | |
6128 | } Py_INCREF(Py_None); | |
6129 | _resultobj = Py_None; | |
6130 | return _resultobj; | |
6131 | } | |
6132 | ||
6133 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
6134 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6135 | PyObject * _resultobj; | |
6136 | wxTextAttr * _arg0; | |
6137 | wxColour * _arg1; | |
6138 | PyObject * _argo0 = 0; | |
6139 | wxColour temp; | |
6140 | PyObject * _obj1 = 0; | |
6141 | char *_kwnames[] = { "self","colBack", NULL }; | |
6142 | ||
6143 | self = self; | |
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
6145 | return NULL; | |
6146 | if (_argo0) { | |
6147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
6150 | return NULL; | |
6151 | } | |
6152 | } | |
6153 | { | |
6154 | _arg1 = &temp; | |
6155 | if (! wxColour_helper(_obj1, &_arg1)) | |
6156 | return NULL; | |
6157 | } | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); | |
6161 | ||
6162 | wxPyEndAllowThreads(__tstate); | |
6163 | if (PyErr_Occurred()) return NULL; | |
6164 | } Py_INCREF(Py_None); | |
6165 | _resultobj = Py_None; | |
6166 | return _resultobj; | |
6167 | } | |
6168 | ||
6169 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
6170 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6171 | PyObject * _resultobj; | |
6172 | wxTextAttr * _arg0; | |
6173 | wxFont * _arg1; | |
6174 | PyObject * _argo0 = 0; | |
6175 | PyObject * _argo1 = 0; | |
6176 | char *_kwnames[] = { "self","font", NULL }; | |
6177 | ||
6178 | self = self; | |
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
6180 | return NULL; | |
6181 | if (_argo0) { | |
6182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
6185 | return NULL; | |
6186 | } | |
6187 | } | |
6188 | if (_argo1) { | |
6189 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6190 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
6191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
6192 | return NULL; | |
6193 | } | |
6194 | } | |
6195 | { | |
6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6197 | wxTextAttr_SetFont(_arg0,*_arg1); | |
6198 | ||
6199 | wxPyEndAllowThreads(__tstate); | |
6200 | if (PyErr_Occurred()) return NULL; | |
6201 | } Py_INCREF(Py_None); | |
6202 | _resultobj = Py_None; | |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
6207 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject * _resultobj; | |
6209 | bool _result; | |
6210 | wxTextAttr * _arg0; | |
6211 | PyObject * _argo0 = 0; | |
6212 | char *_kwnames[] = { "self", NULL }; | |
6213 | ||
6214 | self = self; | |
6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
6216 | return NULL; | |
6217 | if (_argo0) { | |
6218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
6221 | return NULL; | |
6222 | } | |
6223 | } | |
6224 | { | |
6225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6226 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
6227 | ||
6228 | wxPyEndAllowThreads(__tstate); | |
6229 | if (PyErr_Occurred()) return NULL; | |
6230 | } _resultobj = Py_BuildValue("i",_result); | |
6231 | return _resultobj; | |
6232 | } | |
6233 | ||
6234 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
6235 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6236 | PyObject * _resultobj; | |
6237 | bool _result; | |
6238 | wxTextAttr * _arg0; | |
6239 | PyObject * _argo0 = 0; | |
6240 | char *_kwnames[] = { "self", NULL }; | |
6241 | ||
6242 | self = self; | |
6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
6244 | return NULL; | |
6245 | if (_argo0) { | |
6246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
6249 | return NULL; | |
6250 | } | |
6251 | } | |
6252 | { | |
6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6254 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
6255 | ||
6256 | wxPyEndAllowThreads(__tstate); | |
6257 | if (PyErr_Occurred()) return NULL; | |
6258 | } _resultobj = Py_BuildValue("i",_result); | |
6259 | return _resultobj; | |
6260 | } | |
6261 | ||
6262 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
6263 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6264 | PyObject * _resultobj; | |
6265 | bool _result; | |
6266 | wxTextAttr * _arg0; | |
6267 | PyObject * _argo0 = 0; | |
6268 | char *_kwnames[] = { "self", NULL }; | |
6269 | ||
6270 | self = self; | |
6271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
6272 | return NULL; | |
6273 | if (_argo0) { | |
6274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
6277 | return NULL; | |
6278 | } | |
6279 | } | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) return NULL; | |
6286 | } _resultobj = Py_BuildValue("i",_result); | |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
6290 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
6291 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject * _resultobj; | |
6293 | wxColour * _result; | |
6294 | wxTextAttr * _arg0; | |
6295 | PyObject * _argo0 = 0; | |
6296 | char *_kwnames[] = { "self", NULL }; | |
6297 | char _ptemp[128]; | |
6298 | ||
6299 | self = self; | |
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
6301 | return NULL; | |
6302 | if (_argo0) { | |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) return NULL; | |
6315 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6316 | _resultobj = Py_BuildValue("s",_ptemp); | |
6317 | return _resultobj; | |
6318 | } | |
6319 | ||
6320 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6321 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6322 | PyObject * _resultobj; | |
6323 | wxColour * _result; | |
6324 | wxTextAttr * _arg0; | |
6325 | PyObject * _argo0 = 0; | |
6326 | char *_kwnames[] = { "self", NULL }; | |
6327 | char _ptemp[128]; | |
6328 | ||
6329 | self = self; | |
6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6331 | return NULL; | |
6332 | if (_argo0) { | |
6333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
6336 | return NULL; | |
6337 | } | |
6338 | } | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) return NULL; | |
6345 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6346 | _resultobj = Py_BuildValue("s",_ptemp); | |
6347 | return _resultobj; | |
6348 | } | |
6349 | ||
6350 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6351 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6352 | PyObject * _resultobj; | |
6353 | wxFont * _result; | |
6354 | wxTextAttr * _arg0; | |
6355 | PyObject * _argo0 = 0; | |
6356 | char *_kwnames[] = { "self", NULL }; | |
6357 | char _ptemp[128]; | |
6358 | ||
6359 | self = self; | |
6360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
6361 | return NULL; | |
6362 | if (_argo0) { | |
6363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
6366 | return NULL; | |
6367 | } | |
6368 | } | |
6369 | { | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) return NULL; | |
6375 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
6376 | _resultobj = Py_BuildValue("s",_ptemp); | |
6377 | return _resultobj; | |
6378 | } | |
6379 | ||
6380 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) | |
6381 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6382 | PyObject * _resultobj; | |
6383 | bool _result; | |
6384 | wxTextAttr * _arg0; | |
6385 | PyObject * _argo0 = 0; | |
6386 | char *_kwnames[] = { "self", NULL }; | |
6387 | ||
6388 | self = self; | |
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6390 | return NULL; | |
6391 | if (_argo0) { | |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6395 | return NULL; | |
6396 | } | |
6397 | } | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | _result = (bool )wxTextAttr_IsDefault(_arg0); | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) return NULL; | |
6404 | } _resultobj = Py_BuildValue("i",_result); | |
6405 | return _resultobj; | |
6406 | } | |
6407 | ||
6408 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject * _resultobj; | |
6410 | wxTextAttr * _result; | |
6411 | wxTextAttr * _arg0; | |
6412 | wxTextAttr * _arg1; | |
6413 | wxTextCtrl * _arg2; | |
6414 | PyObject * _argo0 = 0; | |
6415 | PyObject * _argo1 = 0; | |
6416 | PyObject * _argo2 = 0; | |
6417 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6418 | char _ptemp[128]; | |
6419 | ||
6420 | self = self; | |
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6422 | return NULL; | |
6423 | if (_argo0) { | |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6427 | return NULL; | |
6428 | } | |
6429 | } | |
6430 | if (_argo1) { | |
6431 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6432 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6434 | return NULL; | |
6435 | } | |
6436 | } | |
6437 | if (_argo2) { | |
6438 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6439 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6441 | return NULL; | |
6442 | } | |
6443 | } | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) return NULL; | |
6450 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6451 | _resultobj = Py_BuildValue("s",_ptemp); | |
6452 | return _resultobj; | |
6453 | } | |
6454 | ||
6455 | static void *SwigwxTextCtrlTowxControl(void *ptr) { | |
6456 | wxTextCtrl *src; | |
6457 | wxControl *dest; | |
6458 | src = (wxTextCtrl *) ptr; | |
6459 | dest = (wxControl *) src; | |
6460 | return (void *) dest; | |
6461 | } | |
6462 | ||
6463 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6464 | wxTextCtrl *src; | |
6465 | wxWindow *dest; | |
6466 | src = (wxTextCtrl *) ptr; | |
6467 | dest = (wxWindow *) src; | |
6468 | return (void *) dest; | |
6469 | } | |
6470 | ||
6471 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6472 | wxTextCtrl *src; | |
6473 | wxEvtHandler *dest; | |
6474 | src = (wxTextCtrl *) ptr; | |
6475 | dest = (wxEvtHandler *) src; | |
6476 | return (void *) dest; | |
6477 | } | |
6478 | ||
6479 | static void *SwigwxTextCtrlTowxObject(void *ptr) { | |
6480 | wxTextCtrl *src; | |
6481 | wxObject *dest; | |
6482 | src = (wxTextCtrl *) ptr; | |
6483 | dest = (wxObject *) src; | |
6484 | return (void *) dest; | |
6485 | } | |
6486 | ||
6487 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6488 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject * _resultobj; | |
6490 | wxTextCtrl * _result; | |
6491 | wxWindow * _arg0; | |
6492 | wxWindowID _arg1; | |
6493 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
6494 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6495 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6496 | long _arg5 = (long ) 0; | |
6497 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6498 | wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr; | |
6499 | PyObject * _argo0 = 0; | |
6500 | PyObject * _obj2 = 0; | |
6501 | wxPoint temp; | |
6502 | PyObject * _obj3 = 0; | |
6503 | wxSize temp0; | |
6504 | PyObject * _obj4 = 0; | |
6505 | PyObject * _argo6 = 0; | |
6506 | PyObject * _obj7 = 0; | |
6507 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; | |
6508 | char _ptemp[128]; | |
6509 | ||
6510 | self = self; | |
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
6512 | return NULL; | |
6513 | if (_argo0) { | |
6514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
6520 | if (_obj2) | |
6521 | { | |
6522 | _arg2 = wxString_in_helper(_obj2); | |
6523 | if (_arg2 == NULL) | |
6524 | return NULL; | |
6525 | } | |
6526 | if (_obj3) | |
6527 | { | |
6528 | _arg3 = &temp; | |
6529 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6530 | return NULL; | |
6531 | } | |
6532 | if (_obj4) | |
6533 | { | |
6534 | _arg4 = &temp0; | |
6535 | if (! wxSize_helper(_obj4, &_arg4)) | |
6536 | return NULL; | |
6537 | } | |
6538 | if (_argo6) { | |
6539 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | if (_obj7) | |
6546 | { | |
6547 | _arg7 = wxString_in_helper(_obj7); | |
6548 | if (_arg7 == NULL) | |
6549 | return NULL; | |
6550 | } | |
6551 | { | |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6553 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
6554 | ||
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) return NULL; | |
6557 | } if (_result) { | |
6558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6559 | _resultobj = Py_BuildValue("s",_ptemp); | |
6560 | } else { | |
6561 | Py_INCREF(Py_None); | |
6562 | _resultobj = Py_None; | |
6563 | } | |
6564 | { | |
6565 | if (_obj2) | |
6566 | delete _arg2; | |
6567 | } | |
6568 | { | |
6569 | if (_obj7) | |
6570 | delete _arg7; | |
6571 | } | |
6572 | return _resultobj; | |
6573 | } | |
6574 | ||
6575 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6576 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6577 | PyObject * _resultobj; | |
6578 | wxTextCtrl * _result; | |
6579 | char *_kwnames[] = { NULL }; | |
6580 | char _ptemp[128]; | |
6581 | ||
6582 | self = self; | |
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6584 | return NULL; | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) return NULL; | |
6591 | } if (_result) { | |
6592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6593 | _resultobj = Py_BuildValue("s",_ptemp); | |
6594 | } else { | |
6595 | Py_INCREF(Py_None); | |
6596 | _resultobj = Py_None; | |
6597 | } | |
6598 | return _resultobj; | |
6599 | } | |
6600 | ||
6601 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6602 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6603 | PyObject * _resultobj; | |
6604 | bool _result; | |
6605 | wxTextCtrl * _arg0; | |
6606 | wxWindow * _arg1; | |
6607 | wxWindowID _arg2; | |
6608 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
6609 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6610 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6611 | long _arg6 = (long ) 0; | |
6612 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6613 | wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr; | |
6614 | PyObject * _argo0 = 0; | |
6615 | PyObject * _argo1 = 0; | |
6616 | PyObject * _obj3 = 0; | |
6617 | wxPoint temp; | |
6618 | PyObject * _obj4 = 0; | |
6619 | wxSize temp0; | |
6620 | PyObject * _obj5 = 0; | |
6621 | PyObject * _argo7 = 0; | |
6622 | PyObject * _obj8 = 0; | |
6623 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6624 | ||
6625 | self = self; | |
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
6627 | return NULL; | |
6628 | if (_argo0) { | |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6632 | return NULL; | |
6633 | } | |
6634 | } | |
6635 | if (_argo1) { | |
6636 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
6642 | if (_obj3) | |
6643 | { | |
6644 | _arg3 = wxString_in_helper(_obj3); | |
6645 | if (_arg3 == NULL) | |
6646 | return NULL; | |
6647 | } | |
6648 | if (_obj4) | |
6649 | { | |
6650 | _arg4 = &temp; | |
6651 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6652 | return NULL; | |
6653 | } | |
6654 | if (_obj5) | |
6655 | { | |
6656 | _arg5 = &temp0; | |
6657 | if (! wxSize_helper(_obj5, &_arg5)) | |
6658 | return NULL; | |
6659 | } | |
6660 | if (_argo7) { | |
6661 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6662 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6664 | return NULL; | |
6665 | } | |
6666 | } | |
6667 | if (_obj8) | |
6668 | { | |
6669 | _arg8 = wxString_in_helper(_obj8); | |
6670 | if (_arg8 == NULL) | |
6671 | return NULL; | |
6672 | } | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) return NULL; | |
6679 | } _resultobj = Py_BuildValue("i",_result); | |
6680 | { | |
6681 | if (_obj3) | |
6682 | delete _arg3; | |
6683 | } | |
6684 | { | |
6685 | if (_obj8) | |
6686 | delete _arg8; | |
6687 | } | |
6688 | return _resultobj; | |
6689 | } | |
6690 | ||
6691 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
6692 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6693 | PyObject * _resultobj; | |
6694 | wxString * _result; | |
6695 | wxTextCtrl * _arg0; | |
6696 | PyObject * _argo0 = 0; | |
6697 | char *_kwnames[] = { "self", NULL }; | |
6698 | ||
6699 | self = self; | |
6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) | |
6701 | return NULL; | |
6702 | if (_argo0) { | |
6703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); | |
6706 | return NULL; | |
6707 | } | |
6708 | } | |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) return NULL; | |
6715 | }{ | |
6716 | #if wxUSE_UNICODE | |
6717 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6718 | #else | |
6719 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6720 | #endif | |
6721 | } | |
6722 | { | |
6723 | delete _result; | |
6724 | } | |
6725 | return _resultobj; | |
6726 | } | |
6727 | ||
6728 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
6729 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject * _resultobj; | |
6731 | wxTextCtrl * _arg0; | |
6732 | wxString * _arg1; | |
6733 | PyObject * _argo0 = 0; | |
6734 | PyObject * _obj1 = 0; | |
6735 | char *_kwnames[] = { "self","value", NULL }; | |
6736 | ||
6737 | self = self; | |
6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) | |
6739 | return NULL; | |
6740 | if (_argo0) { | |
6741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); | |
6744 | return NULL; | |
6745 | } | |
6746 | } | |
6747 | { | |
6748 | _arg1 = wxString_in_helper(_obj1); | |
6749 | if (_arg1 == NULL) | |
6750 | return NULL; | |
6751 | } | |
6752 | { | |
6753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6754 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
6755 | ||
6756 | wxPyEndAllowThreads(__tstate); | |
6757 | if (PyErr_Occurred()) return NULL; | |
6758 | } Py_INCREF(Py_None); | |
6759 | _resultobj = Py_None; | |
6760 | { | |
6761 | if (_obj1) | |
6762 | delete _arg1; | |
6763 | } | |
6764 | return _resultobj; | |
6765 | } | |
6766 | ||
6767 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) | |
6768 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6769 | PyObject * _resultobj; | |
6770 | wxString * _result; | |
6771 | wxTextCtrl * _arg0; | |
6772 | long _arg1; | |
6773 | long _arg2; | |
6774 | PyObject * _argo0 = 0; | |
6775 | char *_kwnames[] = { "self","from","to", NULL }; | |
6776 | ||
6777 | self = self; | |
6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6779 | return NULL; | |
6780 | if (_argo0) { | |
6781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6784 | return NULL; | |
6785 | } | |
6786 | } | |
6787 | { | |
6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6789 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) return NULL; | |
6793 | }{ | |
6794 | #if wxUSE_UNICODE | |
6795 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6796 | #else | |
6797 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6798 | #endif | |
6799 | } | |
6800 | { | |
6801 | delete _result; | |
6802 | } | |
6803 | return _resultobj; | |
6804 | } | |
6805 | ||
6806 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
6807 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject * _resultobj; | |
6809 | int _result; | |
6810 | wxTextCtrl * _arg0; | |
6811 | long _arg1; | |
6812 | PyObject * _argo0 = 0; | |
6813 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6814 | ||
6815 | self = self; | |
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) | |
6817 | return NULL; | |
6818 | if (_argo0) { | |
6819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); | |
6822 | return NULL; | |
6823 | } | |
6824 | } | |
6825 | { | |
6826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6827 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
6828 | ||
6829 | wxPyEndAllowThreads(__tstate); | |
6830 | if (PyErr_Occurred()) return NULL; | |
6831 | } _resultobj = Py_BuildValue("i",_result); | |
6832 | return _resultobj; | |
6833 | } | |
6834 | ||
6835 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
6836 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6837 | PyObject * _resultobj; | |
6838 | wxString * _result; | |
6839 | wxTextCtrl * _arg0; | |
6840 | long _arg1; | |
6841 | PyObject * _argo0 = 0; | |
6842 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6843 | ||
6844 | self = self; | |
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) | |
6846 | return NULL; | |
6847 | if (_argo0) { | |
6848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6856 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
6859 | if (PyErr_Occurred()) return NULL; | |
6860 | }{ | |
6861 | #if wxUSE_UNICODE | |
6862 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6863 | #else | |
6864 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6865 | #endif | |
6866 | } | |
6867 | { | |
6868 | delete _result; | |
6869 | } | |
6870 | return _resultobj; | |
6871 | } | |
6872 | ||
6873 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
6874 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6875 | PyObject * _resultobj; | |
6876 | int _result; | |
6877 | wxTextCtrl * _arg0; | |
6878 | PyObject * _argo0 = 0; | |
6879 | char *_kwnames[] = { "self", NULL }; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6893 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
6896 | if (PyErr_Occurred()) return NULL; | |
6897 | } _resultobj = Py_BuildValue("i",_result); | |
6898 | return _resultobj; | |
6899 | } | |
6900 | ||
6901 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
6902 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject * _resultobj; | |
6904 | bool _result; | |
6905 | wxTextCtrl * _arg0; | |
6906 | PyObject * _argo0 = 0; | |
6907 | char *_kwnames[] = { "self", NULL }; | |
6908 | ||
6909 | self = self; | |
6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) | |
6911 | return NULL; | |
6912 | if (_argo0) { | |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); | |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) return NULL; | |
6925 | } _resultobj = Py_BuildValue("i",_result); | |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
6929 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
6930 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject * _resultobj; | |
6932 | bool _result; | |
6933 | wxTextCtrl * _arg0; | |
6934 | PyObject * _argo0 = 0; | |
6935 | char *_kwnames[] = { "self", NULL }; | |
6936 | ||
6937 | self = self; | |
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) | |
6939 | return NULL; | |
6940 | if (_argo0) { | |
6941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); | |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
6947 | { | |
6948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6949 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
6950 | ||
6951 | wxPyEndAllowThreads(__tstate); | |
6952 | if (PyErr_Occurred()) return NULL; | |
6953 | } _resultobj = Py_BuildValue("i",_result); | |
6954 | return _resultobj; | |
6955 | } | |
6956 | ||
6957 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
6958 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject * _resultobj; | |
6960 | wxTextCtrl * _arg0; | |
6961 | long * _arg1; | |
6962 | long temp; | |
6963 | long * _arg2; | |
6964 | long temp0; | |
6965 | PyObject * _argo0 = 0; | |
6966 | char *_kwnames[] = { "self", NULL }; | |
6967 | ||
6968 | self = self; | |
6969 | { | |
6970 | _arg1 = &temp; | |
6971 | } | |
6972 | { | |
6973 | _arg2 = &temp0; | |
6974 | } | |
6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_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_GetSelection. Expected _wxTextCtrl_p."); | |
6981 | return NULL; | |
6982 | } | |
6983 | } | |
6984 | { | |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) return NULL; | |
6990 | } Py_INCREF(Py_None); | |
6991 | _resultobj = Py_None; | |
6992 | { | |
6993 | PyObject *o; | |
6994 | o = PyInt_FromLong((long) (*_arg1)); | |
6995 | _resultobj = t_output_helper(_resultobj, o); | |
6996 | } | |
6997 | { | |
6998 | PyObject *o; | |
6999 | o = PyInt_FromLong((long) (*_arg2)); | |
7000 | _resultobj = t_output_helper(_resultobj, o); | |
7001 | } | |
7002 | return _resultobj; | |
7003 | } | |
7004 | ||
7005 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
7006 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7007 | PyObject * _resultobj; | |
7008 | wxString * _result; | |
7009 | wxTextCtrl * _arg0; | |
7010 | PyObject * _argo0 = 0; | |
7011 | char *_kwnames[] = { "self", NULL }; | |
7012 | ||
7013 | self = self; | |
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
7015 | return NULL; | |
7016 | if (_argo0) { | |
7017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
7020 | return NULL; | |
7021 | } | |
7022 | } | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) return NULL; | |
7029 | }{ | |
7030 | #if wxUSE_UNICODE | |
7031 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7032 | #else | |
7033 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7034 | #endif | |
7035 | } | |
7036 | { | |
7037 | delete _result; | |
7038 | } | |
7039 | return _resultobj; | |
7040 | } | |
7041 | ||
7042 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
7043 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7044 | PyObject * _resultobj; | |
7045 | wxTextCtrl * _arg0; | |
7046 | PyObject * _argo0 = 0; | |
7047 | char *_kwnames[] = { "self", NULL }; | |
7048 | ||
7049 | self = self; | |
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) | |
7051 | return NULL; | |
7052 | if (_argo0) { | |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); | |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | wxTextCtrl_Clear(_arg0); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) return NULL; | |
7065 | } Py_INCREF(Py_None); | |
7066 | _resultobj = Py_None; | |
7067 | return _resultobj; | |
7068 | } | |
7069 | ||
7070 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
7071 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject * _resultobj; | |
7073 | wxTextCtrl * _arg0; | |
7074 | long _arg1; | |
7075 | long _arg2; | |
7076 | wxString * _arg3; | |
7077 | PyObject * _argo0 = 0; | |
7078 | PyObject * _obj3 = 0; | |
7079 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
7080 | ||
7081 | self = self; | |
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
7083 | return NULL; | |
7084 | if (_argo0) { | |
7085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); | |
7088 | return NULL; | |
7089 | } | |
7090 | } | |
7091 | { | |
7092 | _arg3 = wxString_in_helper(_obj3); | |
7093 | if (_arg3 == NULL) | |
7094 | return NULL; | |
7095 | } | |
7096 | { | |
7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7098 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7099 | ||
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) return NULL; | |
7102 | } Py_INCREF(Py_None); | |
7103 | _resultobj = Py_None; | |
7104 | { | |
7105 | if (_obj3) | |
7106 | delete _arg3; | |
7107 | } | |
7108 | return _resultobj; | |
7109 | } | |
7110 | ||
7111 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
7112 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject * _resultobj; | |
7114 | wxTextCtrl * _arg0; | |
7115 | long _arg1; | |
7116 | long _arg2; | |
7117 | PyObject * _argo0 = 0; | |
7118 | char *_kwnames[] = { "self","from","to", NULL }; | |
7119 | ||
7120 | self = self; | |
7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7122 | return NULL; | |
7123 | if (_argo0) { | |
7124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); | |
7127 | return NULL; | |
7128 | } | |
7129 | } | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) return NULL; | |
7136 | } Py_INCREF(Py_None); | |
7137 | _resultobj = Py_None; | |
7138 | return _resultobj; | |
7139 | } | |
7140 | ||
7141 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
7142 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7143 | PyObject * _resultobj; | |
7144 | bool _result; | |
7145 | wxTextCtrl * _arg0; | |
7146 | wxString * _arg1; | |
7147 | PyObject * _argo0 = 0; | |
7148 | PyObject * _obj1 = 0; | |
7149 | char *_kwnames[] = { "self","file", NULL }; | |
7150 | ||
7151 | self = self; | |
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) | |
7153 | return NULL; | |
7154 | if (_argo0) { | |
7155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); | |
7158 | return NULL; | |
7159 | } | |
7160 | } | |
7161 | { | |
7162 | _arg1 = wxString_in_helper(_obj1); | |
7163 | if (_arg1 == NULL) | |
7164 | return NULL; | |
7165 | } | |
7166 | { | |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
7169 | ||
7170 | wxPyEndAllowThreads(__tstate); | |
7171 | if (PyErr_Occurred()) return NULL; | |
7172 | } _resultobj = Py_BuildValue("i",_result); | |
7173 | { | |
7174 | if (_obj1) | |
7175 | delete _arg1; | |
7176 | } | |
7177 | return _resultobj; | |
7178 | } | |
7179 | ||
7180 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
7181 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject * _resultobj; | |
7183 | bool _result; | |
7184 | wxTextCtrl * _arg0; | |
7185 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
7186 | PyObject * _argo0 = 0; | |
7187 | PyObject * _obj1 = 0; | |
7188 | char *_kwnames[] = { "self","file", NULL }; | |
7189 | ||
7190 | self = self; | |
7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) | |
7192 | return NULL; | |
7193 | if (_argo0) { | |
7194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); | |
7197 | return NULL; | |
7198 | } | |
7199 | } | |
7200 | if (_obj1) | |
7201 | { | |
7202 | _arg1 = wxString_in_helper(_obj1); | |
7203 | if (_arg1 == NULL) | |
7204 | return NULL; | |
7205 | } | |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
7209 | ||
7210 | wxPyEndAllowThreads(__tstate); | |
7211 | if (PyErr_Occurred()) return NULL; | |
7212 | } _resultobj = Py_BuildValue("i",_result); | |
7213 | { | |
7214 | if (_obj1) | |
7215 | delete _arg1; | |
7216 | } | |
7217 | return _resultobj; | |
7218 | } | |
7219 | ||
7220 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
7221 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject * _resultobj; | |
7223 | wxTextCtrl * _arg0; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_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_DiscardEdits. Expected _wxTextCtrl_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | wxTextCtrl_DiscardEdits(_arg0); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) return NULL; | |
7243 | } Py_INCREF(Py_None); | |
7244 | _resultobj = Py_None; | |
7245 | return _resultobj; | |
7246 | } | |
7247 | ||
7248 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) | |
7249 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7250 | PyObject * _resultobj; | |
7251 | wxTextCtrl * _arg0; | |
7252 | unsigned long _arg1; | |
7253 | PyObject * _argo0 = 0; | |
7254 | char *_kwnames[] = { "self","len", NULL }; | |
7255 | ||
7256 | self = self; | |
7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) | |
7258 | return NULL; | |
7259 | if (_argo0) { | |
7260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); | |
7263 | return NULL; | |
7264 | } | |
7265 | } | |
7266 | { | |
7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7268 | wxTextCtrl_SetMaxLength(_arg0,_arg1); | |
7269 | ||
7270 | wxPyEndAllowThreads(__tstate); | |
7271 | if (PyErr_Occurred()) return NULL; | |
7272 | } Py_INCREF(Py_None); | |
7273 | _resultobj = Py_None; | |
7274 | return _resultobj; | |
7275 | } | |
7276 | ||
7277 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
7278 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject * _resultobj; | |
7280 | wxTextCtrl * _arg0; | |
7281 | wxString * _arg1; | |
7282 | PyObject * _argo0 = 0; | |
7283 | PyObject * _obj1 = 0; | |
7284 | char *_kwnames[] = { "self","text", NULL }; | |
7285 | ||
7286 | self = self; | |
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) | |
7288 | return NULL; | |
7289 | if (_argo0) { | |
7290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); | |
7293 | return NULL; | |
7294 | } | |
7295 | } | |
7296 | { | |
7297 | _arg1 = wxString_in_helper(_obj1); | |
7298 | if (_arg1 == NULL) | |
7299 | return NULL; | |
7300 | } | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) return NULL; | |
7307 | } Py_INCREF(Py_None); | |
7308 | _resultobj = Py_None; | |
7309 | { | |
7310 | if (_obj1) | |
7311 | delete _arg1; | |
7312 | } | |
7313 | return _resultobj; | |
7314 | } | |
7315 | ||
7316 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
7317 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7318 | PyObject * _resultobj; | |
7319 | wxTextCtrl * _arg0; | |
7320 | wxString * _arg1; | |
7321 | PyObject * _argo0 = 0; | |
7322 | PyObject * _obj1 = 0; | |
7323 | char *_kwnames[] = { "self","text", NULL }; | |
7324 | ||
7325 | self = self; | |
7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) | |
7327 | return NULL; | |
7328 | if (_argo0) { | |
7329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); | |
7332 | return NULL; | |
7333 | } | |
7334 | } | |
7335 | { | |
7336 | _arg1 = wxString_in_helper(_obj1); | |
7337 | if (_arg1 == NULL) | |
7338 | return NULL; | |
7339 | } | |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) return NULL; | |
7346 | } Py_INCREF(Py_None); | |
7347 | _resultobj = Py_None; | |
7348 | { | |
7349 | if (_obj1) | |
7350 | delete _arg1; | |
7351 | } | |
7352 | return _resultobj; | |
7353 | } | |
7354 | ||
7355 | #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0)) | |
7356 | static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject * _resultobj; | |
7358 | bool _result; | |
7359 | wxTextCtrl * _arg0; | |
7360 | wxKeyEvent * _arg1; | |
7361 | PyObject * _argo0 = 0; | |
7362 | PyObject * _argo1 = 0; | |
7363 | char *_kwnames[] = { "self","event", NULL }; | |
7364 | ||
7365 | self = self; | |
7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1)) | |
7367 | return NULL; | |
7368 | if (_argo0) { | |
7369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | if (_argo1) { | |
7376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { | |
7378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p."); | |
7379 | return NULL; | |
7380 | } | |
7381 | } | |
7382 | { | |
7383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7384 | _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1); | |
7385 | ||
7386 | wxPyEndAllowThreads(__tstate); | |
7387 | if (PyErr_Occurred()) return NULL; | |
7388 | } _resultobj = Py_BuildValue("i",_result); | |
7389 | return _resultobj; | |
7390 | } | |
7391 | ||
7392 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) | |
7393 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7394 | PyObject * _resultobj; | |
7395 | bool _result; | |
7396 | wxTextCtrl * _arg0; | |
7397 | long _arg1; | |
7398 | long _arg2; | |
7399 | wxTextAttr * _arg3; | |
7400 | PyObject * _argo0 = 0; | |
7401 | PyObject * _argo3 = 0; | |
7402 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
7403 | ||
7404 | self = self; | |
7405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
7406 | return NULL; | |
7407 | if (_argo0) { | |
7408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
7411 | return NULL; | |
7412 | } | |
7413 | } | |
7414 | if (_argo3) { | |
7415 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7416 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
7417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
7418 | return NULL; | |
7419 | } | |
7420 | } | |
7421 | { | |
7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7423 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
7424 | ||
7425 | wxPyEndAllowThreads(__tstate); | |
7426 | if (PyErr_Occurred()) return NULL; | |
7427 | } _resultobj = Py_BuildValue("i",_result); | |
7428 | return _resultobj; | |
7429 | } | |
7430 | ||
7431 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
7432 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7433 | PyObject * _resultobj; | |
7434 | bool _result; | |
7435 | wxTextCtrl * _arg0; | |
7436 | wxTextAttr * _arg1; | |
7437 | PyObject * _argo0 = 0; | |
7438 | PyObject * _argo1 = 0; | |
7439 | char *_kwnames[] = { "self","style", NULL }; | |
7440 | ||
7441 | self = self; | |
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
7443 | return NULL; | |
7444 | if (_argo0) { | |
7445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
7448 | return NULL; | |
7449 | } | |
7450 | } | |
7451 | if (_argo1) { | |
7452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
7454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
7455 | return NULL; | |
7456 | } | |
7457 | } | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) return NULL; | |
7464 | } _resultobj = Py_BuildValue("i",_result); | |
7465 | return _resultobj; | |
7466 | } | |
7467 | ||
7468 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
7469 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7470 | PyObject * _resultobj; | |
7471 | wxTextAttr * _result; | |
7472 | wxTextCtrl * _arg0; | |
7473 | PyObject * _argo0 = 0; | |
7474 | char *_kwnames[] = { "self", NULL }; | |
7475 | char _ptemp[128]; | |
7476 | ||
7477 | self = self; | |
7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
7479 | return NULL; | |
7480 | if (_argo0) { | |
7481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
7484 | return NULL; | |
7485 | } | |
7486 | } | |
7487 | { | |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
7490 | _result = (wxTextAttr *) &_result_ref; | |
7491 | ||
7492 | wxPyEndAllowThreads(__tstate); | |
7493 | if (PyErr_Occurred()) return NULL; | |
7494 | } if (_result) { | |
7495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7496 | _resultobj = Py_BuildValue("s",_ptemp); | |
7497 | } else { | |
7498 | Py_INCREF(Py_None); | |
7499 | _resultobj = Py_None; | |
7500 | } | |
7501 | return _resultobj; | |
7502 | } | |
7503 | ||
7504 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
7505 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7506 | PyObject * _resultobj; | |
7507 | long _result; | |
7508 | wxTextCtrl * _arg0; | |
7509 | long _arg1; | |
7510 | long _arg2; | |
7511 | PyObject * _argo0 = 0; | |
7512 | char *_kwnames[] = { "self","x","y", NULL }; | |
7513 | ||
7514 | self = self; | |
7515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7516 | return NULL; | |
7517 | if (_argo0) { | |
7518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); | |
7521 | return NULL; | |
7522 | } | |
7523 | } | |
7524 | { | |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) return NULL; | |
7530 | } _resultobj = Py_BuildValue("l",_result); | |
7531 | return _resultobj; | |
7532 | } | |
7533 | ||
7534 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
7535 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7536 | PyObject * _resultobj; | |
7537 | wxTextCtrl * _arg0; | |
7538 | long _arg1; | |
7539 | long * _arg2; | |
7540 | long temp; | |
7541 | long * _arg3; | |
7542 | long temp0; | |
7543 | PyObject * _argo0 = 0; | |
7544 | char *_kwnames[] = { "self","pos", NULL }; | |
7545 | ||
7546 | self = self; | |
7547 | { | |
7548 | _arg2 = &temp; | |
7549 | } | |
7550 | { | |
7551 | _arg3 = &temp0; | |
7552 | } | |
7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
7554 | return NULL; | |
7555 | if (_argo0) { | |
7556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); | |
7559 | return NULL; | |
7560 | } | |
7561 | } | |
7562 | { | |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
7565 | ||
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) return NULL; | |
7568 | } Py_INCREF(Py_None); | |
7569 | _resultobj = Py_None; | |
7570 | { | |
7571 | PyObject *o; | |
7572 | o = PyInt_FromLong((long) (*_arg2)); | |
7573 | _resultobj = t_output_helper(_resultobj, o); | |
7574 | } | |
7575 | { | |
7576 | PyObject *o; | |
7577 | o = PyInt_FromLong((long) (*_arg3)); | |
7578 | _resultobj = t_output_helper(_resultobj, o); | |
7579 | } | |
7580 | return _resultobj; | |
7581 | } | |
7582 | ||
7583 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
7584 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject * _resultobj; | |
7586 | wxTextCtrl * _arg0; | |
7587 | long _arg1; | |
7588 | PyObject * _argo0 = 0; | |
7589 | char *_kwnames[] = { "self","pos", NULL }; | |
7590 | ||
7591 | self = self; | |
7592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) | |
7593 | return NULL; | |
7594 | if (_argo0) { | |
7595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); | |
7598 | return NULL; | |
7599 | } | |
7600 | } | |
7601 | { | |
7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7603 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
7604 | ||
7605 | wxPyEndAllowThreads(__tstate); | |
7606 | if (PyErr_Occurred()) return NULL; | |
7607 | } Py_INCREF(Py_None); | |
7608 | _resultobj = Py_None; | |
7609 | return _resultobj; | |
7610 | } | |
7611 | ||
7612 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
7613 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7614 | PyObject * _resultobj; | |
7615 | wxTextCtrl * _arg0; | |
7616 | PyObject * _argo0 = 0; | |
7617 | char *_kwnames[] = { "self", NULL }; | |
7618 | ||
7619 | self = self; | |
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) | |
7621 | return NULL; | |
7622 | if (_argo0) { | |
7623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); | |
7626 | return NULL; | |
7627 | } | |
7628 | } | |
7629 | { | |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | wxTextCtrl_Copy(_arg0); | |
7632 | ||
7633 | wxPyEndAllowThreads(__tstate); | |
7634 | if (PyErr_Occurred()) return NULL; | |
7635 | } Py_INCREF(Py_None); | |
7636 | _resultobj = Py_None; | |
7637 | return _resultobj; | |
7638 | } | |
7639 | ||
7640 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
7641 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7642 | PyObject * _resultobj; | |
7643 | wxTextCtrl * _arg0; | |
7644 | PyObject * _argo0 = 0; | |
7645 | char *_kwnames[] = { "self", NULL }; | |
7646 | ||
7647 | self = self; | |
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) | |
7649 | return NULL; | |
7650 | if (_argo0) { | |
7651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); | |
7654 | return NULL; | |
7655 | } | |
7656 | } | |
7657 | { | |
7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7659 | wxTextCtrl_Cut(_arg0); | |
7660 | ||
7661 | wxPyEndAllowThreads(__tstate); | |
7662 | if (PyErr_Occurred()) return NULL; | |
7663 | } Py_INCREF(Py_None); | |
7664 | _resultobj = Py_None; | |
7665 | return _resultobj; | |
7666 | } | |
7667 | ||
7668 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
7669 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7670 | PyObject * _resultobj; | |
7671 | wxTextCtrl * _arg0; | |
7672 | PyObject * _argo0 = 0; | |
7673 | char *_kwnames[] = { "self", NULL }; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | wxTextCtrl_Paste(_arg0); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) return NULL; | |
7691 | } Py_INCREF(Py_None); | |
7692 | _resultobj = Py_None; | |
7693 | return _resultobj; | |
7694 | } | |
7695 | ||
7696 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) | |
7697 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject * _resultobj; | |
7699 | bool _result; | |
7700 | wxTextCtrl * _arg0; | |
7701 | PyObject * _argo0 = 0; | |
7702 | char *_kwnames[] = { "self", NULL }; | |
7703 | ||
7704 | self = self; | |
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) | |
7706 | return NULL; | |
7707 | if (_argo0) { | |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); | |
7711 | return NULL; | |
7712 | } | |
7713 | } | |
7714 | { | |
7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7716 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
7717 | ||
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) return NULL; | |
7720 | } _resultobj = Py_BuildValue("i",_result); | |
7721 | return _resultobj; | |
7722 | } | |
7723 | ||
7724 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
7725 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject * _resultobj; | |
7727 | bool _result; | |
7728 | wxTextCtrl * _arg0; | |
7729 | PyObject * _argo0 = 0; | |
7730 | char *_kwnames[] = { "self", NULL }; | |
7731 | ||
7732 | self = self; | |
7733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) | |
7734 | return NULL; | |
7735 | if (_argo0) { | |
7736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); | |
7739 | return NULL; | |
7740 | } | |
7741 | } | |
7742 | { | |
7743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7744 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
7745 | ||
7746 | wxPyEndAllowThreads(__tstate); | |
7747 | if (PyErr_Occurred()) return NULL; | |
7748 | } _resultobj = Py_BuildValue("i",_result); | |
7749 | return _resultobj; | |
7750 | } | |
7751 | ||
7752 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
7753 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject * _resultobj; | |
7755 | bool _result; | |
7756 | wxTextCtrl * _arg0; | |
7757 | PyObject * _argo0 = 0; | |
7758 | char *_kwnames[] = { "self", NULL }; | |
7759 | ||
7760 | self = self; | |
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) | |
7762 | return NULL; | |
7763 | if (_argo0) { | |
7764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); | |
7767 | return NULL; | |
7768 | } | |
7769 | } | |
7770 | { | |
7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7772 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) return NULL; | |
7776 | } _resultobj = Py_BuildValue("i",_result); | |
7777 | return _resultobj; | |
7778 | } | |
7779 | ||
7780 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) | |
7781 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7782 | PyObject * _resultobj; | |
7783 | wxTextCtrl * _arg0; | |
7784 | PyObject * _argo0 = 0; | |
7785 | char *_kwnames[] = { "self", NULL }; | |
7786 | ||
7787 | self = self; | |
7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
7789 | return NULL; | |
7790 | if (_argo0) { | |
7791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
7794 | return NULL; | |
7795 | } | |
7796 | } | |
7797 | { | |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | wxTextCtrl_Undo(_arg0); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) return NULL; | |
7803 | } Py_INCREF(Py_None); | |
7804 | _resultobj = Py_None; | |
7805 | return _resultobj; | |
7806 | } | |
7807 | ||
7808 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
7809 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7810 | PyObject * _resultobj; | |
7811 | wxTextCtrl * _arg0; | |
7812 | PyObject * _argo0 = 0; | |
7813 | char *_kwnames[] = { "self", NULL }; | |
7814 | ||
7815 | self = self; | |
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
7817 | return NULL; | |
7818 | if (_argo0) { | |
7819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
7822 | return NULL; | |
7823 | } | |
7824 | } | |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | wxTextCtrl_Redo(_arg0); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) return NULL; | |
7831 | } Py_INCREF(Py_None); | |
7832 | _resultobj = Py_None; | |
7833 | return _resultobj; | |
7834 | } | |
7835 | ||
7836 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
7837 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7838 | PyObject * _resultobj; | |
7839 | bool _result; | |
7840 | wxTextCtrl * _arg0; | |
7841 | PyObject * _argo0 = 0; | |
7842 | char *_kwnames[] = { "self", NULL }; | |
7843 | ||
7844 | self = self; | |
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) | |
7846 | return NULL; | |
7847 | if (_argo0) { | |
7848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); | |
7851 | return NULL; | |
7852 | } | |
7853 | } | |
7854 | { | |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) return NULL; | |
7860 | } _resultobj = Py_BuildValue("i",_result); | |
7861 | return _resultobj; | |
7862 | } | |
7863 | ||
7864 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
7865 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7866 | PyObject * _resultobj; | |
7867 | bool _result; | |
7868 | wxTextCtrl * _arg0; | |
7869 | PyObject * _argo0 = 0; | |
7870 | char *_kwnames[] = { "self", NULL }; | |
7871 | ||
7872 | self = self; | |
7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) | |
7874 | return NULL; | |
7875 | if (_argo0) { | |
7876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); | |
7879 | return NULL; | |
7880 | } | |
7881 | } | |
7882 | { | |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) return NULL; | |
7888 | } _resultobj = Py_BuildValue("i",_result); | |
7889 | return _resultobj; | |
7890 | } | |
7891 | ||
7892 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
7893 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject * _resultobj; | |
7895 | wxTextCtrl * _arg0; | |
7896 | long _arg1; | |
7897 | PyObject * _argo0 = 0; | |
7898 | char *_kwnames[] = { "self","pos", NULL }; | |
7899 | ||
7900 | self = self; | |
7901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
7902 | return NULL; | |
7903 | if (_argo0) { | |
7904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); | |
7907 | return NULL; | |
7908 | } | |
7909 | } | |
7910 | { | |
7911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7912 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
7913 | ||
7914 | wxPyEndAllowThreads(__tstate); | |
7915 | if (PyErr_Occurred()) return NULL; | |
7916 | } Py_INCREF(Py_None); | |
7917 | _resultobj = Py_None; | |
7918 | return _resultobj; | |
7919 | } | |
7920 | ||
7921 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
7922 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7923 | PyObject * _resultobj; | |
7924 | wxTextCtrl * _arg0; | |
7925 | PyObject * _argo0 = 0; | |
7926 | char *_kwnames[] = { "self", NULL }; | |
7927 | ||
7928 | self = self; | |
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) | |
7930 | return NULL; | |
7931 | if (_argo0) { | |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); | |
7935 | return NULL; | |
7936 | } | |
7937 | } | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) return NULL; | |
7944 | } Py_INCREF(Py_None); | |
7945 | _resultobj = Py_None; | |
7946 | return _resultobj; | |
7947 | } | |
7948 | ||
7949 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
7950 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7951 | PyObject * _resultobj; | |
7952 | long _result; | |
7953 | wxTextCtrl * _arg0; | |
7954 | PyObject * _argo0 = 0; | |
7955 | char *_kwnames[] = { "self", NULL }; | |
7956 | ||
7957 | self = self; | |
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) | |
7959 | return NULL; | |
7960 | if (_argo0) { | |
7961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); | |
7964 | return NULL; | |
7965 | } | |
7966 | } | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) return NULL; | |
7973 | } _resultobj = Py_BuildValue("l",_result); | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
7978 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7979 | PyObject * _resultobj; | |
7980 | long _result; | |
7981 | wxTextCtrl * _arg0; | |
7982 | PyObject * _argo0 = 0; | |
7983 | char *_kwnames[] = { "self", NULL }; | |
7984 | ||
7985 | self = self; | |
7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) | |
7987 | return NULL; | |
7988 | if (_argo0) { | |
7989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); | |
7992 | return NULL; | |
7993 | } | |
7994 | } | |
7995 | { | |
7996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7997 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
7998 | ||
7999 | wxPyEndAllowThreads(__tstate); | |
8000 | if (PyErr_Occurred()) return NULL; | |
8001 | } _resultobj = Py_BuildValue("l",_result); | |
8002 | return _resultobj; | |
8003 | } | |
8004 | ||
8005 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
8006 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject * _resultobj; | |
8008 | wxTextCtrl * _arg0; | |
8009 | long _arg1; | |
8010 | long _arg2; | |
8011 | PyObject * _argo0 = 0; | |
8012 | char *_kwnames[] = { "self","from","to", NULL }; | |
8013 | ||
8014 | self = self; | |
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8016 | return NULL; | |
8017 | if (_argo0) { | |
8018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
8021 | return NULL; | |
8022 | } | |
8023 | } | |
8024 | { | |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) return NULL; | |
8030 | } Py_INCREF(Py_None); | |
8031 | _resultobj = Py_None; | |
8032 | return _resultobj; | |
8033 | } | |
8034 | ||
8035 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) | |
8036 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8037 | PyObject * _resultobj; | |
8038 | wxTextCtrl * _arg0; | |
8039 | PyObject * _argo0 = 0; | |
8040 | char *_kwnames[] = { "self", NULL }; | |
8041 | ||
8042 | self = self; | |
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) | |
8044 | return NULL; | |
8045 | if (_argo0) { | |
8046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); | |
8049 | return NULL; | |
8050 | } | |
8051 | } | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | wxTextCtrl_SelectAll(_arg0); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) return NULL; | |
8058 | } Py_INCREF(Py_None); | |
8059 | _resultobj = Py_None; | |
8060 | return _resultobj; | |
8061 | } | |
8062 | ||
8063 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
8064 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8065 | PyObject * _resultobj; | |
8066 | wxTextCtrl * _arg0; | |
8067 | bool _arg1; | |
8068 | PyObject * _argo0 = 0; | |
8069 | int tempbool1; | |
8070 | char *_kwnames[] = { "self","editable", NULL }; | |
8071 | ||
8072 | self = self; | |
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
8074 | return NULL; | |
8075 | if (_argo0) { | |
8076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); | |
8079 | return NULL; | |
8080 | } | |
8081 | } | |
8082 | _arg1 = (bool ) tempbool1; | |
8083 | { | |
8084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8085 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
8086 | ||
8087 | wxPyEndAllowThreads(__tstate); | |
8088 | if (PyErr_Occurred()) return NULL; | |
8089 | } Py_INCREF(Py_None); | |
8090 | _resultobj = Py_None; | |
8091 | return _resultobj; | |
8092 | } | |
8093 | ||
8094 | #define wxTextCtrl_IsSingleLine(_swigobj) (_swigobj->IsSingleLine()) | |
8095 | static PyObject *_wrap_wxTextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject * _resultobj; | |
8097 | bool _result; | |
8098 | wxTextCtrl * _arg0; | |
8099 | PyObject * _argo0 = 0; | |
8100 | char *_kwnames[] = { "self", NULL }; | |
8101 | ||
8102 | self = self; | |
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsSingleLine",_kwnames,&_argo0)) | |
8104 | return NULL; | |
8105 | if (_argo0) { | |
8106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsSingleLine. Expected _wxTextCtrl_p."); | |
8109 | return NULL; | |
8110 | } | |
8111 | } | |
8112 | { | |
8113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8114 | _result = (bool )wxTextCtrl_IsSingleLine(_arg0); | |
8115 | ||
8116 | wxPyEndAllowThreads(__tstate); | |
8117 | if (PyErr_Occurred()) return NULL; | |
8118 | } _resultobj = Py_BuildValue("i",_result); | |
8119 | return _resultobj; | |
8120 | } | |
8121 | ||
8122 | #define wxTextCtrl_IsMultiLine(_swigobj) (_swigobj->IsMultiLine()) | |
8123 | static PyObject *_wrap_wxTextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8124 | PyObject * _resultobj; | |
8125 | bool _result; | |
8126 | wxTextCtrl * _arg0; | |
8127 | PyObject * _argo0 = 0; | |
8128 | char *_kwnames[] = { "self", NULL }; | |
8129 | ||
8130 | self = self; | |
8131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsMultiLine",_kwnames,&_argo0)) | |
8132 | return NULL; | |
8133 | if (_argo0) { | |
8134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsMultiLine. Expected _wxTextCtrl_p."); | |
8137 | return NULL; | |
8138 | } | |
8139 | } | |
8140 | { | |
8141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8142 | _result = (bool )wxTextCtrl_IsMultiLine(_arg0); | |
8143 | ||
8144 | wxPyEndAllowThreads(__tstate); | |
8145 | if (PyErr_Occurred()) return NULL; | |
8146 | } _resultobj = Py_BuildValue("i",_result); | |
8147 | return _resultobj; | |
8148 | } | |
8149 | ||
8150 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
8151 | self->AppendText(text); | |
8152 | } | |
8153 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8154 | PyObject * _resultobj; | |
8155 | wxTextCtrl * _arg0; | |
8156 | wxString * _arg1; | |
8157 | PyObject * _argo0 = 0; | |
8158 | PyObject * _obj1 = 0; | |
8159 | char *_kwnames[] = { "self","text", NULL }; | |
8160 | ||
8161 | self = self; | |
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
8163 | return NULL; | |
8164 | if (_argo0) { | |
8165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
8168 | return NULL; | |
8169 | } | |
8170 | } | |
8171 | { | |
8172 | _arg1 = wxString_in_helper(_obj1); | |
8173 | if (_arg1 == NULL) | |
8174 | return NULL; | |
8175 | } | |
8176 | { | |
8177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8178 | wxTextCtrl_write(_arg0,*_arg1); | |
8179 | ||
8180 | wxPyEndAllowThreads(__tstate); | |
8181 | if (PyErr_Occurred()) return NULL; | |
8182 | } Py_INCREF(Py_None); | |
8183 | _resultobj = Py_None; | |
8184 | { | |
8185 | if (_obj1) | |
8186 | delete _arg1; | |
8187 | } | |
8188 | return _resultobj; | |
8189 | } | |
8190 | ||
8191 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { | |
8192 | return self->GetValue().Mid(from, to - from); | |
8193 | } | |
8194 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8195 | PyObject * _resultobj; | |
8196 | wxString * _result; | |
8197 | wxTextCtrl * _arg0; | |
8198 | long _arg1; | |
8199 | long _arg2; | |
8200 | PyObject * _argo0 = 0; | |
8201 | char *_kwnames[] = { "self","from","to", NULL }; | |
8202 | ||
8203 | self = self; | |
8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8205 | return NULL; | |
8206 | if (_argo0) { | |
8207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
8210 | return NULL; | |
8211 | } | |
8212 | } | |
8213 | { | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) return NULL; | |
8219 | }{ | |
8220 | #if wxUSE_UNICODE | |
8221 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8222 | #else | |
8223 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8224 | #endif | |
8225 | } | |
8226 | { | |
8227 | delete _result; | |
8228 | } | |
8229 | return _resultobj; | |
8230 | } | |
8231 | ||
8232 | static void *SwigwxScrollBarTowxControl(void *ptr) { | |
8233 | wxScrollBar *src; | |
8234 | wxControl *dest; | |
8235 | src = (wxScrollBar *) ptr; | |
8236 | dest = (wxControl *) src; | |
8237 | return (void *) dest; | |
8238 | } | |
8239 | ||
8240 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
8241 | wxScrollBar *src; | |
8242 | wxWindow *dest; | |
8243 | src = (wxScrollBar *) ptr; | |
8244 | dest = (wxWindow *) src; | |
8245 | return (void *) dest; | |
8246 | } | |
8247 | ||
8248 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
8249 | wxScrollBar *src; | |
8250 | wxEvtHandler *dest; | |
8251 | src = (wxScrollBar *) ptr; | |
8252 | dest = (wxEvtHandler *) src; | |
8253 | return (void *) dest; | |
8254 | } | |
8255 | ||
8256 | static void *SwigwxScrollBarTowxObject(void *ptr) { | |
8257 | wxScrollBar *src; | |
8258 | wxObject *dest; | |
8259 | src = (wxScrollBar *) ptr; | |
8260 | dest = (wxObject *) src; | |
8261 | return (void *) dest; | |
8262 | } | |
8263 | ||
8264 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8265 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8266 | PyObject * _resultobj; | |
8267 | wxScrollBar * _result; | |
8268 | wxWindow * _arg0; | |
8269 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8270 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8271 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8272 | long _arg4 = (long ) wxSB_HORIZONTAL; | |
8273 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
8274 | wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr; | |
8275 | PyObject * _argo0 = 0; | |
8276 | wxPoint temp; | |
8277 | PyObject * _obj2 = 0; | |
8278 | wxSize temp0; | |
8279 | PyObject * _obj3 = 0; | |
8280 | PyObject * _argo5 = 0; | |
8281 | PyObject * _obj6 = 0; | |
8282 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
8283 | char _ptemp[128]; | |
8284 | ||
8285 | self = self; | |
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
8287 | return NULL; | |
8288 | if (_argo0) { | |
8289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); | |
8292 | return NULL; | |
8293 | } | |
8294 | } | |
8295 | if (_obj2) | |
8296 | { | |
8297 | _arg2 = &temp; | |
8298 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8299 | return NULL; | |
8300 | } | |
8301 | if (_obj3) | |
8302 | { | |
8303 | _arg3 = &temp0; | |
8304 | if (! wxSize_helper(_obj3, &_arg3)) | |
8305 | return NULL; | |
8306 | } | |
8307 | if (_argo5) { | |
8308 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8309 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); | |
8311 | return NULL; | |
8312 | } | |
8313 | } | |
8314 | if (_obj6) | |
8315 | { | |
8316 | _arg6 = wxString_in_helper(_obj6); | |
8317 | if (_arg6 == NULL) | |
8318 | return NULL; | |
8319 | } | |
8320 | { | |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) return NULL; | |
8326 | } if (_result) { | |
8327 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8328 | _resultobj = Py_BuildValue("s",_ptemp); | |
8329 | } else { | |
8330 | Py_INCREF(Py_None); | |
8331 | _resultobj = Py_None; | |
8332 | } | |
8333 | { | |
8334 | if (_obj6) | |
8335 | delete _arg6; | |
8336 | } | |
8337 | return _resultobj; | |
8338 | } | |
8339 | ||
8340 | #define new_wxPreScrollBar() (new wxScrollBar()) | |
8341 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8342 | PyObject * _resultobj; | |
8343 | wxScrollBar * _result; | |
8344 | char *_kwnames[] = { NULL }; | |
8345 | char _ptemp[128]; | |
8346 | ||
8347 | self = self; | |
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
8349 | return NULL; | |
8350 | { | |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | _result = (wxScrollBar *)new_wxPreScrollBar(); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) return NULL; | |
8356 | } if (_result) { | |
8357 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8358 | _resultobj = Py_BuildValue("s",_ptemp); | |
8359 | } else { | |
8360 | Py_INCREF(Py_None); | |
8361 | _resultobj = Py_None; | |
8362 | } | |
8363 | return _resultobj; | |
8364 | } | |
8365 | ||
8366 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8367 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8368 | PyObject * _resultobj; | |
8369 | bool _result; | |
8370 | wxScrollBar * _arg0; | |
8371 | wxWindow * _arg1; | |
8372 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8373 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8374 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8375 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
8376 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
8377 | wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr; | |
8378 | PyObject * _argo0 = 0; | |
8379 | PyObject * _argo1 = 0; | |
8380 | wxPoint temp; | |
8381 | PyObject * _obj3 = 0; | |
8382 | wxSize temp0; | |
8383 | PyObject * _obj4 = 0; | |
8384 | PyObject * _argo6 = 0; | |
8385 | PyObject * _obj7 = 0; | |
8386 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
8387 | ||
8388 | self = self; | |
8389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
8390 | return NULL; | |
8391 | if (_argo0) { | |
8392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | if (_argo1) { | |
8399 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | if (_obj3) | |
8406 | { | |
8407 | _arg3 = &temp; | |
8408 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8409 | return NULL; | |
8410 | } | |
8411 | if (_obj4) | |
8412 | { | |
8413 | _arg4 = &temp0; | |
8414 | if (! wxSize_helper(_obj4, &_arg4)) | |
8415 | return NULL; | |
8416 | } | |
8417 | if (_argo6) { | |
8418 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8419 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
8421 | return NULL; | |
8422 | } | |
8423 | } | |
8424 | if (_obj7) | |
8425 | { | |
8426 | _arg7 = wxString_in_helper(_obj7); | |
8427 | if (_arg7 == NULL) | |
8428 | return NULL; | |
8429 | } | |
8430 | { | |
8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8432 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
8433 | ||
8434 | wxPyEndAllowThreads(__tstate); | |
8435 | if (PyErr_Occurred()) return NULL; | |
8436 | } _resultobj = Py_BuildValue("i",_result); | |
8437 | { | |
8438 | if (_obj7) | |
8439 | delete _arg7; | |
8440 | } | |
8441 | return _resultobj; | |
8442 | } | |
8443 | ||
8444 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
8445 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject * _resultobj; | |
8447 | int _result; | |
8448 | wxScrollBar * _arg0; | |
8449 | PyObject * _argo0 = 0; | |
8450 | char *_kwnames[] = { "self", NULL }; | |
8451 | ||
8452 | self = self; | |
8453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) | |
8454 | return NULL; | |
8455 | if (_argo0) { | |
8456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); | |
8459 | return NULL; | |
8460 | } | |
8461 | } | |
8462 | { | |
8463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8464 | _result = (int )wxScrollBar_GetRange(_arg0); | |
8465 | ||
8466 | wxPyEndAllowThreads(__tstate); | |
8467 | if (PyErr_Occurred()) return NULL; | |
8468 | } _resultobj = Py_BuildValue("i",_result); | |
8469 | return _resultobj; | |
8470 | } | |
8471 | ||
8472 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
8473 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8474 | PyObject * _resultobj; | |
8475 | int _result; | |
8476 | wxScrollBar * _arg0; | |
8477 | PyObject * _argo0 = 0; | |
8478 | char *_kwnames[] = { "self", NULL }; | |
8479 | ||
8480 | self = self; | |
8481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) | |
8482 | return NULL; | |
8483 | if (_argo0) { | |
8484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); | |
8487 | return NULL; | |
8488 | } | |
8489 | } | |
8490 | { | |
8491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8492 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
8493 | ||
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) return NULL; | |
8496 | } _resultobj = Py_BuildValue("i",_result); | |
8497 | return _resultobj; | |
8498 | } | |
8499 | ||
8500 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) | |
8501 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8502 | PyObject * _resultobj; | |
8503 | int _result; | |
8504 | wxScrollBar * _arg0; | |
8505 | PyObject * _argo0 = 0; | |
8506 | char *_kwnames[] = { "self", NULL }; | |
8507 | ||
8508 | self = self; | |
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) | |
8510 | return NULL; | |
8511 | if (_argo0) { | |
8512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); | |
8515 | return NULL; | |
8516 | } | |
8517 | } | |
8518 | { | |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) return NULL; | |
8524 | } _resultobj = Py_BuildValue("i",_result); | |
8525 | return _resultobj; | |
8526 | } | |
8527 | ||
8528 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
8529 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8530 | PyObject * _resultobj; | |
8531 | int _result; | |
8532 | wxScrollBar * _arg0; | |
8533 | PyObject * _argo0 = 0; | |
8534 | char *_kwnames[] = { "self", NULL }; | |
8535 | ||
8536 | self = self; | |
8537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) | |
8538 | return NULL; | |
8539 | if (_argo0) { | |
8540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); | |
8543 | return NULL; | |
8544 | } | |
8545 | } | |
8546 | { | |
8547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8548 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
8549 | ||
8550 | wxPyEndAllowThreads(__tstate); | |
8551 | if (PyErr_Occurred()) return NULL; | |
8552 | } _resultobj = Py_BuildValue("i",_result); | |
8553 | return _resultobj; | |
8554 | } | |
8555 | ||
8556 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) | |
8557 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8558 | PyObject * _resultobj; | |
8559 | bool _result; | |
8560 | wxScrollBar * _arg0; | |
8561 | PyObject * _argo0 = 0; | |
8562 | char *_kwnames[] = { "self", NULL }; | |
8563 | ||
8564 | self = self; | |
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
8566 | return NULL; | |
8567 | if (_argo0) { | |
8568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
8571 | return NULL; | |
8572 | } | |
8573 | } | |
8574 | { | |
8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8576 | _result = (bool )wxScrollBar_IsVertical(_arg0); | |
8577 | ||
8578 | wxPyEndAllowThreads(__tstate); | |
8579 | if (PyErr_Occurred()) return NULL; | |
8580 | } _resultobj = Py_BuildValue("i",_result); | |
8581 | return _resultobj; | |
8582 | } | |
8583 | ||
8584 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) | |
8585 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject * _resultobj; | |
8587 | wxScrollBar * _arg0; | |
8588 | int _arg1; | |
8589 | PyObject * _argo0 = 0; | |
8590 | char *_kwnames[] = { "self","viewStart", NULL }; | |
8591 | ||
8592 | self = self; | |
8593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) | |
8594 | return NULL; | |
8595 | if (_argo0) { | |
8596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); | |
8599 | return NULL; | |
8600 | } | |
8601 | } | |
8602 | { | |
8603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8604 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
8605 | ||
8606 | wxPyEndAllowThreads(__tstate); | |
8607 | if (PyErr_Occurred()) return NULL; | |
8608 | } Py_INCREF(Py_None); | |
8609 | _resultobj = Py_None; | |
8610 | return _resultobj; | |
8611 | } | |
8612 | ||
8613 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8614 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject * _resultobj; | |
8616 | wxScrollBar * _arg0; | |
8617 | int _arg1; | |
8618 | int _arg2; | |
8619 | int _arg3; | |
8620 | int _arg4; | |
8621 | bool _arg5 = (bool ) TRUE; | |
8622 | PyObject * _argo0 = 0; | |
8623 | int tempbool5 = (int) TRUE; | |
8624 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; | |
8625 | ||
8626 | self = self; | |
8627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) | |
8628 | return NULL; | |
8629 | if (_argo0) { | |
8630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); | |
8633 | return NULL; | |
8634 | } | |
8635 | } | |
8636 | _arg5 = (bool ) tempbool5; | |
8637 | { | |
8638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8639 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
8640 | ||
8641 | wxPyEndAllowThreads(__tstate); | |
8642 | if (PyErr_Occurred()) return NULL; | |
8643 | } Py_INCREF(Py_None); | |
8644 | _resultobj = Py_None; | |
8645 | return _resultobj; | |
8646 | } | |
8647 | ||
8648 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8649 | wxSpinButton *src; | |
8650 | wxControl *dest; | |
8651 | src = (wxSpinButton *) ptr; | |
8652 | dest = (wxControl *) src; | |
8653 | return (void *) dest; | |
8654 | } | |
8655 | ||
8656 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8657 | wxSpinButton *src; | |
8658 | wxWindow *dest; | |
8659 | src = (wxSpinButton *) ptr; | |
8660 | dest = (wxWindow *) src; | |
8661 | return (void *) dest; | |
8662 | } | |
8663 | ||
8664 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8665 | wxSpinButton *src; | |
8666 | wxEvtHandler *dest; | |
8667 | src = (wxSpinButton *) ptr; | |
8668 | dest = (wxEvtHandler *) src; | |
8669 | return (void *) dest; | |
8670 | } | |
8671 | ||
8672 | static void *SwigwxSpinButtonTowxObject(void *ptr) { | |
8673 | wxSpinButton *src; | |
8674 | wxObject *dest; | |
8675 | src = (wxSpinButton *) ptr; | |
8676 | dest = (wxObject *) src; | |
8677 | return (void *) dest; | |
8678 | } | |
8679 | ||
8680 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8681 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8682 | PyObject * _resultobj; | |
8683 | wxSpinButton * _result; | |
8684 | wxWindow * _arg0; | |
8685 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8686 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8687 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8688 | long _arg4 = (long ) wxSP_HORIZONTAL; | |
8689 | wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME; | |
8690 | PyObject * _argo0 = 0; | |
8691 | wxPoint temp; | |
8692 | PyObject * _obj2 = 0; | |
8693 | wxSize temp0; | |
8694 | PyObject * _obj3 = 0; | |
8695 | PyObject * _obj5 = 0; | |
8696 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
8697 | char _ptemp[128]; | |
8698 | ||
8699 | self = self; | |
8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
8701 | return NULL; | |
8702 | if (_argo0) { | |
8703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); | |
8706 | return NULL; | |
8707 | } | |
8708 | } | |
8709 | if (_obj2) | |
8710 | { | |
8711 | _arg2 = &temp; | |
8712 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8713 | return NULL; | |
8714 | } | |
8715 | if (_obj3) | |
8716 | { | |
8717 | _arg3 = &temp0; | |
8718 | if (! wxSize_helper(_obj3, &_arg3)) | |
8719 | return NULL; | |
8720 | } | |
8721 | if (_obj5) | |
8722 | { | |
8723 | _arg5 = wxString_in_helper(_obj5); | |
8724 | if (_arg5 == NULL) | |
8725 | return NULL; | |
8726 | } | |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) return NULL; | |
8733 | } if (_result) { | |
8734 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8735 | _resultobj = Py_BuildValue("s",_ptemp); | |
8736 | } else { | |
8737 | Py_INCREF(Py_None); | |
8738 | _resultobj = Py_None; | |
8739 | } | |
8740 | { | |
8741 | if (_obj5) | |
8742 | delete _arg5; | |
8743 | } | |
8744 | return _resultobj; | |
8745 | } | |
8746 | ||
8747 | #define new_wxPreSpinButton() (new wxSpinButton()) | |
8748 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8749 | PyObject * _resultobj; | |
8750 | wxSpinButton * _result; | |
8751 | char *_kwnames[] = { NULL }; | |
8752 | char _ptemp[128]; | |
8753 | ||
8754 | self = self; | |
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8756 | return NULL; | |
8757 | { | |
8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8759 | _result = (wxSpinButton *)new_wxPreSpinButton(); | |
8760 | ||
8761 | wxPyEndAllowThreads(__tstate); | |
8762 | if (PyErr_Occurred()) return NULL; | |
8763 | } if (_result) { | |
8764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8765 | _resultobj = Py_BuildValue("s",_ptemp); | |
8766 | } else { | |
8767 | Py_INCREF(Py_None); | |
8768 | _resultobj = Py_None; | |
8769 | } | |
8770 | return _resultobj; | |
8771 | } | |
8772 | ||
8773 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8774 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8775 | PyObject * _resultobj; | |
8776 | bool _result; | |
8777 | wxSpinButton * _arg0; | |
8778 | wxWindow * _arg1; | |
8779 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8780 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8781 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8782 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8783 | wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME; | |
8784 | PyObject * _argo0 = 0; | |
8785 | PyObject * _argo1 = 0; | |
8786 | wxPoint temp; | |
8787 | PyObject * _obj3 = 0; | |
8788 | wxSize temp0; | |
8789 | PyObject * _obj4 = 0; | |
8790 | PyObject * _obj6 = 0; | |
8791 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8792 | ||
8793 | self = self; | |
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
8795 | return NULL; | |
8796 | if (_argo0) { | |
8797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8800 | return NULL; | |
8801 | } | |
8802 | } | |
8803 | if (_argo1) { | |
8804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8807 | return NULL; | |
8808 | } | |
8809 | } | |
8810 | if (_obj3) | |
8811 | { | |
8812 | _arg3 = &temp; | |
8813 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8814 | return NULL; | |
8815 | } | |
8816 | if (_obj4) | |
8817 | { | |
8818 | _arg4 = &temp0; | |
8819 | if (! wxSize_helper(_obj4, &_arg4)) | |
8820 | return NULL; | |
8821 | } | |
8822 | if (_obj6) | |
8823 | { | |
8824 | _arg6 = wxString_in_helper(_obj6); | |
8825 | if (_arg6 == NULL) | |
8826 | return NULL; | |
8827 | } | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
8831 | ||
8832 | wxPyEndAllowThreads(__tstate); | |
8833 | if (PyErr_Occurred()) return NULL; | |
8834 | } _resultobj = Py_BuildValue("i",_result); | |
8835 | { | |
8836 | if (_obj6) | |
8837 | delete _arg6; | |
8838 | } | |
8839 | return _resultobj; | |
8840 | } | |
8841 | ||
8842 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
8843 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject * _resultobj; | |
8845 | int _result; | |
8846 | wxSpinButton * _arg0; | |
8847 | PyObject * _argo0 = 0; | |
8848 | char *_kwnames[] = { "self", NULL }; | |
8849 | ||
8850 | self = self; | |
8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) | |
8852 | return NULL; | |
8853 | if (_argo0) { | |
8854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); | |
8857 | return NULL; | |
8858 | } | |
8859 | } | |
8860 | { | |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | _result = (int )wxSpinButton_GetMax(_arg0); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) return NULL; | |
8866 | } _resultobj = Py_BuildValue("i",_result); | |
8867 | return _resultobj; | |
8868 | } | |
8869 | ||
8870 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
8871 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject * _resultobj; | |
8873 | int _result; | |
8874 | wxSpinButton * _arg0; | |
8875 | PyObject * _argo0 = 0; | |
8876 | char *_kwnames[] = { "self", NULL }; | |
8877 | ||
8878 | self = self; | |
8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) | |
8880 | return NULL; | |
8881 | if (_argo0) { | |
8882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); | |
8885 | return NULL; | |
8886 | } | |
8887 | } | |
8888 | { | |
8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8890 | _result = (int )wxSpinButton_GetMin(_arg0); | |
8891 | ||
8892 | wxPyEndAllowThreads(__tstate); | |
8893 | if (PyErr_Occurred()) return NULL; | |
8894 | } _resultobj = Py_BuildValue("i",_result); | |
8895 | return _resultobj; | |
8896 | } | |
8897 | ||
8898 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8899 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject * _resultobj; | |
8901 | int _result; | |
8902 | wxSpinButton * _arg0; | |
8903 | PyObject * _argo0 = 0; | |
8904 | char *_kwnames[] = { "self", NULL }; | |
8905 | ||
8906 | self = self; | |
8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) | |
8908 | return NULL; | |
8909 | if (_argo0) { | |
8910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); | |
8913 | return NULL; | |
8914 | } | |
8915 | } | |
8916 | { | |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | _result = (int )wxSpinButton_GetValue(_arg0); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) return NULL; | |
8922 | } _resultobj = Py_BuildValue("i",_result); | |
8923 | return _resultobj; | |
8924 | } | |
8925 | ||
8926 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8927 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8928 | PyObject * _resultobj; | |
8929 | wxSpinButton * _arg0; | |
8930 | int _arg1; | |
8931 | int _arg2; | |
8932 | PyObject * _argo0 = 0; | |
8933 | char *_kwnames[] = { "self","min","max", NULL }; | |
8934 | ||
8935 | self = self; | |
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8937 | return NULL; | |
8938 | if (_argo0) { | |
8939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); | |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
8945 | { | |
8946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8947 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
8948 | ||
8949 | wxPyEndAllowThreads(__tstate); | |
8950 | if (PyErr_Occurred()) return NULL; | |
8951 | } Py_INCREF(Py_None); | |
8952 | _resultobj = Py_None; | |
8953 | return _resultobj; | |
8954 | } | |
8955 | ||
8956 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8957 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8958 | PyObject * _resultobj; | |
8959 | wxSpinButton * _arg0; | |
8960 | int _arg1; | |
8961 | PyObject * _argo0 = 0; | |
8962 | char *_kwnames[] = { "self","value", NULL }; | |
8963 | ||
8964 | self = self; | |
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) | |
8966 | return NULL; | |
8967 | if (_argo0) { | |
8968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); | |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
8974 | { | |
8975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8976 | wxSpinButton_SetValue(_arg0,_arg1); | |
8977 | ||
8978 | wxPyEndAllowThreads(__tstate); | |
8979 | if (PyErr_Occurred()) return NULL; | |
8980 | } Py_INCREF(Py_None); | |
8981 | _resultobj = Py_None; | |
8982 | return _resultobj; | |
8983 | } | |
8984 | ||
8985 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8986 | wxStaticBitmap *src; | |
8987 | wxControl *dest; | |
8988 | src = (wxStaticBitmap *) ptr; | |
8989 | dest = (wxControl *) src; | |
8990 | return (void *) dest; | |
8991 | } | |
8992 | ||
8993 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8994 | wxStaticBitmap *src; | |
8995 | wxWindow *dest; | |
8996 | src = (wxStaticBitmap *) ptr; | |
8997 | dest = (wxWindow *) src; | |
8998 | return (void *) dest; | |
8999 | } | |
9000 | ||
9001 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
9002 | wxStaticBitmap *src; | |
9003 | wxEvtHandler *dest; | |
9004 | src = (wxStaticBitmap *) ptr; | |
9005 | dest = (wxEvtHandler *) src; | |
9006 | return (void *) dest; | |
9007 | } | |
9008 | ||
9009 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { | |
9010 | wxStaticBitmap *src; | |
9011 | wxObject *dest; | |
9012 | src = (wxStaticBitmap *) ptr; | |
9013 | dest = (wxObject *) src; | |
9014 | return (void *) dest; | |
9015 | } | |
9016 | ||
9017 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
9018 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9019 | PyObject * _resultobj; | |
9020 | wxStaticBitmap * _result; | |
9021 | wxWindow * _arg0; | |
9022 | wxWindowID _arg1; | |
9023 | wxBitmap * _arg2; | |
9024 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9025 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9026 | long _arg5 = (long ) 0; | |
9027 | wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr; | |
9028 | PyObject * _argo0 = 0; | |
9029 | PyObject * _argo2 = 0; | |
9030 | wxPoint temp; | |
9031 | PyObject * _obj3 = 0; | |
9032 | wxSize temp0; | |
9033 | PyObject * _obj4 = 0; | |
9034 | PyObject * _obj6 = 0; | |
9035 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
9036 | char _ptemp[128]; | |
9037 | ||
9038 | self = self; | |
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
9040 | return NULL; | |
9041 | if (_argo0) { | |
9042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
9045 | return NULL; | |
9046 | } | |
9047 | } | |
9048 | if (_argo2) { | |
9049 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9050 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
9052 | return NULL; | |
9053 | } | |
9054 | } | |
9055 | if (_obj3) | |
9056 | { | |
9057 | _arg3 = &temp; | |
9058 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9059 | return NULL; | |
9060 | } | |
9061 | if (_obj4) | |
9062 | { | |
9063 | _arg4 = &temp0; | |
9064 | if (! wxSize_helper(_obj4, &_arg4)) | |
9065 | return NULL; | |
9066 | } | |
9067 | if (_obj6) | |
9068 | { | |
9069 | _arg6 = wxString_in_helper(_obj6); | |
9070 | if (_arg6 == NULL) | |
9071 | return NULL; | |
9072 | } | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) return NULL; | |
9079 | } if (_result) { | |
9080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9081 | _resultobj = Py_BuildValue("s",_ptemp); | |
9082 | } else { | |
9083 | Py_INCREF(Py_None); | |
9084 | _resultobj = Py_None; | |
9085 | } | |
9086 | { | |
9087 | if (_obj6) | |
9088 | delete _arg6; | |
9089 | } | |
9090 | return _resultobj; | |
9091 | } | |
9092 | ||
9093 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
9094 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject * _resultobj; | |
9096 | wxStaticBitmap * _result; | |
9097 | char *_kwnames[] = { NULL }; | |
9098 | char _ptemp[128]; | |
9099 | ||
9100 | self = self; | |
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
9102 | return NULL; | |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) return NULL; | |
9109 | } if (_result) { | |
9110 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9111 | _resultobj = Py_BuildValue("s",_ptemp); | |
9112 | } else { | |
9113 | Py_INCREF(Py_None); | |
9114 | _resultobj = Py_None; | |
9115 | } | |
9116 | return _resultobj; | |
9117 | } | |
9118 | ||
9119 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
9120 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9121 | PyObject * _resultobj; | |
9122 | bool _result; | |
9123 | wxStaticBitmap * _arg0; | |
9124 | wxWindow * _arg1; | |
9125 | wxWindowID _arg2; | |
9126 | wxBitmap * _arg3; | |
9127 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9128 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9129 | long _arg6 = (long ) 0; | |
9130 | wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr; | |
9131 | PyObject * _argo0 = 0; | |
9132 | PyObject * _argo1 = 0; | |
9133 | PyObject * _argo3 = 0; | |
9134 | wxPoint temp; | |
9135 | PyObject * _obj4 = 0; | |
9136 | wxSize temp0; | |
9137 | PyObject * _obj5 = 0; | |
9138 | PyObject * _obj7 = 0; | |
9139 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
9140 | ||
9141 | self = self; | |
9142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
9143 | return NULL; | |
9144 | if (_argo0) { | |
9145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
9148 | return NULL; | |
9149 | } | |
9150 | } | |
9151 | if (_argo1) { | |
9152 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9153 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
9155 | return NULL; | |
9156 | } | |
9157 | } | |
9158 | if (_argo3) { | |
9159 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9160 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
9161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
9162 | return NULL; | |
9163 | } | |
9164 | } | |
9165 | if (_obj4) | |
9166 | { | |
9167 | _arg4 = &temp; | |
9168 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9169 | return NULL; | |
9170 | } | |
9171 | if (_obj5) | |
9172 | { | |
9173 | _arg5 = &temp0; | |
9174 | if (! wxSize_helper(_obj5, &_arg5)) | |
9175 | return NULL; | |
9176 | } | |
9177 | if (_obj7) | |
9178 | { | |
9179 | _arg7 = wxString_in_helper(_obj7); | |
9180 | if (_arg7 == NULL) | |
9181 | return NULL; | |
9182 | } | |
9183 | { | |
9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9185 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
9186 | ||
9187 | wxPyEndAllowThreads(__tstate); | |
9188 | if (PyErr_Occurred()) return NULL; | |
9189 | } _resultobj = Py_BuildValue("i",_result); | |
9190 | { | |
9191 | if (_obj7) | |
9192 | delete _arg7; | |
9193 | } | |
9194 | return _resultobj; | |
9195 | } | |
9196 | ||
9197 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
9198 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject * _resultobj; | |
9200 | wxBitmap * _result; | |
9201 | wxStaticBitmap * _arg0; | |
9202 | PyObject * _argo0 = 0; | |
9203 | char *_kwnames[] = { "self", NULL }; | |
9204 | char _ptemp[128]; | |
9205 | ||
9206 | self = self; | |
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) | |
9208 | return NULL; | |
9209 | if (_argo0) { | |
9210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); | |
9213 | return NULL; | |
9214 | } | |
9215 | } | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) return NULL; | |
9222 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9223 | _resultobj = Py_BuildValue("s",_ptemp); | |
9224 | return _resultobj; | |
9225 | } | |
9226 | ||
9227 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
9228 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9229 | PyObject * _resultobj; | |
9230 | wxStaticBitmap * _arg0; | |
9231 | wxBitmap * _arg1; | |
9232 | PyObject * _argo0 = 0; | |
9233 | PyObject * _argo1 = 0; | |
9234 | char *_kwnames[] = { "self","bitmap", NULL }; | |
9235 | ||
9236 | self = self; | |
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
9238 | return NULL; | |
9239 | if (_argo0) { | |
9240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); | |
9243 | return NULL; | |
9244 | } | |
9245 | } | |
9246 | if (_argo1) { | |
9247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); | |
9250 | return NULL; | |
9251 | } | |
9252 | } | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) return NULL; | |
9259 | } Py_INCREF(Py_None); | |
9260 | _resultobj = Py_None; | |
9261 | return _resultobj; | |
9262 | } | |
9263 | ||
9264 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
9265 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9266 | PyObject * _resultobj; | |
9267 | wxStaticBitmap * _arg0; | |
9268 | wxIcon * _arg1; | |
9269 | PyObject * _argo0 = 0; | |
9270 | PyObject * _argo1 = 0; | |
9271 | char *_kwnames[] = { "self","icon", NULL }; | |
9272 | ||
9273 | self = self; | |
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) | |
9275 | return NULL; | |
9276 | if (_argo0) { | |
9277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); | |
9280 | return NULL; | |
9281 | } | |
9282 | } | |
9283 | if (_argo1) { | |
9284 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9285 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); | |
9287 | return NULL; | |
9288 | } | |
9289 | } | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
9293 | ||
9294 | wxPyEndAllowThreads(__tstate); | |
9295 | if (PyErr_Occurred()) return NULL; | |
9296 | } Py_INCREF(Py_None); | |
9297 | _resultobj = Py_None; | |
9298 | return _resultobj; | |
9299 | } | |
9300 | ||
9301 | static void *SwigwxRadioBoxTowxControl(void *ptr) { | |
9302 | wxRadioBox *src; | |
9303 | wxControl *dest; | |
9304 | src = (wxRadioBox *) ptr; | |
9305 | dest = (wxControl *) src; | |
9306 | return (void *) dest; | |
9307 | } | |
9308 | ||
9309 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
9310 | wxRadioBox *src; | |
9311 | wxWindow *dest; | |
9312 | src = (wxRadioBox *) ptr; | |
9313 | dest = (wxWindow *) src; | |
9314 | return (void *) dest; | |
9315 | } | |
9316 | ||
9317 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
9318 | wxRadioBox *src; | |
9319 | wxEvtHandler *dest; | |
9320 | src = (wxRadioBox *) ptr; | |
9321 | dest = (wxEvtHandler *) src; | |
9322 | return (void *) dest; | |
9323 | } | |
9324 | ||
9325 | static void *SwigwxRadioBoxTowxObject(void *ptr) { | |
9326 | wxRadioBox *src; | |
9327 | wxObject *dest; | |
9328 | src = (wxRadioBox *) ptr; | |
9329 | dest = (wxObject *) src; | |
9330 | return (void *) dest; | |
9331 | } | |
9332 | ||
9333 | #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)) | |
9334 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9335 | PyObject * _resultobj; | |
9336 | wxRadioBox * _result; | |
9337 | wxWindow * _arg0; | |
9338 | wxWindowID _arg1; | |
9339 | wxString * _arg2; | |
9340 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9341 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9342 | int _arg5 = (int ) 0; | |
9343 | wxString * _arg6 = (wxString *) NULL; | |
9344 | int _arg7 = (int ) 0; | |
9345 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
9346 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9347 | wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr; | |
9348 | PyObject * _argo0 = 0; | |
9349 | PyObject * _obj2 = 0; | |
9350 | wxPoint temp; | |
9351 | PyObject * _obj3 = 0; | |
9352 | wxSize temp0; | |
9353 | PyObject * _obj4 = 0; | |
9354 | PyObject * _obj6 = 0; | |
9355 | PyObject * _argo9 = 0; | |
9356 | PyObject * _obj10 = 0; | |
9357 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
9358 | char _ptemp[128]; | |
9359 | ||
9360 | self = self; | |
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10)) | |
9362 | return NULL; | |
9363 | if (_argo0) { | |
9364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); | |
9367 | return NULL; | |
9368 | } | |
9369 | } | |
9370 | { | |
9371 | _arg2 = wxString_in_helper(_obj2); | |
9372 | if (_arg2 == NULL) | |
9373 | return NULL; | |
9374 | } | |
9375 | if (_obj3) | |
9376 | { | |
9377 | _arg3 = &temp; | |
9378 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9379 | return NULL; | |
9380 | } | |
9381 | if (_obj4) | |
9382 | { | |
9383 | _arg4 = &temp0; | |
9384 | if (! wxSize_helper(_obj4, &_arg4)) | |
9385 | return NULL; | |
9386 | } | |
9387 | if (_obj6) | |
9388 | { | |
9389 | _arg6 = wxString_LIST_helper(_obj6); | |
9390 | if (_arg6 == NULL) { | |
9391 | return NULL; | |
9392 | } | |
9393 | } | |
9394 | if (_argo9) { | |
9395 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9396 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); | |
9398 | return NULL; | |
9399 | } | |
9400 | } | |
9401 | if (_obj10) | |
9402 | { | |
9403 | _arg10 = wxString_in_helper(_obj10); | |
9404 | if (_arg10 == NULL) | |
9405 | return NULL; | |
9406 | } | |
9407 | { | |
9408 | if (_obj6) { | |
9409 | _arg5 = PyList_Size(_obj6); | |
9410 | } | |
9411 | else { | |
9412 | _arg5 = 0; | |
9413 | } | |
9414 | } | |
9415 | { | |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); | |
9418 | ||
9419 | wxPyEndAllowThreads(__tstate); | |
9420 | if (PyErr_Occurred()) return NULL; | |
9421 | } if (_result) { | |
9422 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9423 | _resultobj = Py_BuildValue("s",_ptemp); | |
9424 | } else { | |
9425 | Py_INCREF(Py_None); | |
9426 | _resultobj = Py_None; | |
9427 | } | |
9428 | { | |
9429 | if (_obj2) | |
9430 | delete _arg2; | |
9431 | } | |
9432 | { | |
9433 | delete [] _arg6; | |
9434 | } | |
9435 | { | |
9436 | if (_obj10) | |
9437 | delete _arg10; | |
9438 | } | |
9439 | return _resultobj; | |
9440 | } | |
9441 | ||
9442 | #define new_wxPreRadioBox() (new wxRadioBox()) | |
9443 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9444 | PyObject * _resultobj; | |
9445 | wxRadioBox * _result; | |
9446 | char *_kwnames[] = { NULL }; | |
9447 | char _ptemp[128]; | |
9448 | ||
9449 | self = self; | |
9450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
9451 | return NULL; | |
9452 | { | |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | _result = (wxRadioBox *)new_wxPreRadioBox(); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) return NULL; | |
9458 | } if (_result) { | |
9459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9460 | _resultobj = Py_BuildValue("s",_ptemp); | |
9461 | } else { | |
9462 | Py_INCREF(Py_None); | |
9463 | _resultobj = Py_None; | |
9464 | } | |
9465 | return _resultobj; | |
9466 | } | |
9467 | ||
9468 | #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)) | |
9469 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject * _resultobj; | |
9471 | bool _result; | |
9472 | wxRadioBox * _arg0; | |
9473 | wxWindow * _arg1; | |
9474 | wxWindowID _arg2; | |
9475 | wxString * _arg3; | |
9476 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9477 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9478 | int _arg6 = (int ) 0; | |
9479 | wxString * _arg7 = (wxString *) NULL; | |
9480 | int _arg8 = (int ) 0; | |
9481 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
9482 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
9483 | wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr; | |
9484 | PyObject * _argo0 = 0; | |
9485 | PyObject * _argo1 = 0; | |
9486 | PyObject * _obj3 = 0; | |
9487 | wxPoint temp; | |
9488 | PyObject * _obj4 = 0; | |
9489 | wxSize temp0; | |
9490 | PyObject * _obj5 = 0; | |
9491 | PyObject * _obj7 = 0; | |
9492 | PyObject * _argo10 = 0; | |
9493 | PyObject * _obj11 = 0; | |
9494 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
9495 | ||
9496 | self = self; | |
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11)) | |
9498 | return NULL; | |
9499 | if (_argo0) { | |
9500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
9503 | return NULL; | |
9504 | } | |
9505 | } | |
9506 | if (_argo1) { | |
9507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
9510 | return NULL; | |
9511 | } | |
9512 | } | |
9513 | { | |
9514 | _arg3 = wxString_in_helper(_obj3); | |
9515 | if (_arg3 == NULL) | |
9516 | return NULL; | |
9517 | } | |
9518 | if (_obj4) | |
9519 | { | |
9520 | _arg4 = &temp; | |
9521 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9522 | return NULL; | |
9523 | } | |
9524 | if (_obj5) | |
9525 | { | |
9526 | _arg5 = &temp0; | |
9527 | if (! wxSize_helper(_obj5, &_arg5)) | |
9528 | return NULL; | |
9529 | } | |
9530 | if (_obj7) | |
9531 | { | |
9532 | _arg7 = wxString_LIST_helper(_obj7); | |
9533 | if (_arg7 == NULL) { | |
9534 | return NULL; | |
9535 | } | |
9536 | } | |
9537 | if (_argo10) { | |
9538 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
9539 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
9540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
9541 | return NULL; | |
9542 | } | |
9543 | } | |
9544 | if (_obj11) | |
9545 | { | |
9546 | _arg11 = wxString_in_helper(_obj11); | |
9547 | if (_arg11 == NULL) | |
9548 | return NULL; | |
9549 | } | |
9550 | { | |
9551 | if (_obj7) { | |
9552 | _arg6 = PyList_Size(_obj7); | |
9553 | } | |
9554 | else { | |
9555 | _arg6 = 0; | |
9556 | } | |
9557 | } | |
9558 | { | |
9559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9560 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11); | |
9561 | ||
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) return NULL; | |
9564 | } _resultobj = Py_BuildValue("i",_result); | |
9565 | { | |
9566 | if (_obj3) | |
9567 | delete _arg3; | |
9568 | } | |
9569 | { | |
9570 | delete [] _arg7; | |
9571 | } | |
9572 | { | |
9573 | if (_obj11) | |
9574 | delete _arg11; | |
9575 | } | |
9576 | return _resultobj; | |
9577 | } | |
9578 | ||
9579 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9580 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject * _resultobj; | |
9582 | wxRadioBox * _arg0; | |
9583 | bool _arg1; | |
9584 | PyObject * _argo0 = 0; | |
9585 | int tempbool1; | |
9586 | char *_kwnames[] = { "self","enable", NULL }; | |
9587 | ||
9588 | self = self; | |
9589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) | |
9590 | return NULL; | |
9591 | if (_argo0) { | |
9592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); | |
9595 | return NULL; | |
9596 | } | |
9597 | } | |
9598 | _arg1 = (bool ) tempbool1; | |
9599 | { | |
9600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9601 | wxRadioBox_Enable(_arg0,_arg1); | |
9602 | ||
9603 | wxPyEndAllowThreads(__tstate); | |
9604 | if (PyErr_Occurred()) return NULL; | |
9605 | } Py_INCREF(Py_None); | |
9606 | _resultobj = Py_None; | |
9607 | return _resultobj; | |
9608 | } | |
9609 | ||
9610 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9611 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | wxRadioBox * _arg0; | |
9614 | int _arg1; | |
9615 | bool _arg2; | |
9616 | PyObject * _argo0 = 0; | |
9617 | int tempbool2; | |
9618 | char *_kwnames[] = { "self","n","enable", NULL }; | |
9619 | ||
9620 | self = self; | |
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9622 | return NULL; | |
9623 | if (_argo0) { | |
9624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); | |
9627 | return NULL; | |
9628 | } | |
9629 | } | |
9630 | _arg2 = (bool ) tempbool2; | |
9631 | { | |
9632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9633 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
9634 | ||
9635 | wxPyEndAllowThreads(__tstate); | |
9636 | if (PyErr_Occurred()) return NULL; | |
9637 | } Py_INCREF(Py_None); | |
9638 | _resultobj = Py_None; | |
9639 | return _resultobj; | |
9640 | } | |
9641 | ||
9642 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
9643 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9644 | PyObject * _resultobj; | |
9645 | int _result; | |
9646 | wxRadioBox * _arg0; | |
9647 | wxString * _arg1; | |
9648 | PyObject * _argo0 = 0; | |
9649 | PyObject * _obj1 = 0; | |
9650 | char *_kwnames[] = { "self","string", NULL }; | |
9651 | ||
9652 | self = self; | |
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) | |
9654 | return NULL; | |
9655 | if (_argo0) { | |
9656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); | |
9659 | return NULL; | |
9660 | } | |
9661 | } | |
9662 | { | |
9663 | _arg1 = wxString_in_helper(_obj1); | |
9664 | if (_arg1 == NULL) | |
9665 | return NULL; | |
9666 | } | |
9667 | { | |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) return NULL; | |
9673 | } _resultobj = Py_BuildValue("i",_result); | |
9674 | { | |
9675 | if (_obj1) | |
9676 | delete _arg1; | |
9677 | } | |
9678 | return _resultobj; | |
9679 | } | |
9680 | ||
9681 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
9682 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject * _resultobj; | |
9684 | wxString * _result; | |
9685 | wxRadioBox * _arg0; | |
9686 | int _arg1; | |
9687 | PyObject * _argo0 = 0; | |
9688 | char *_kwnames[] = { "self","n", NULL }; | |
9689 | ||
9690 | self = self; | |
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) | |
9692 | return NULL; | |
9693 | if (_argo0) { | |
9694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); | |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
9700 | { | |
9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9702 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
9703 | ||
9704 | wxPyEndAllowThreads(__tstate); | |
9705 | if (PyErr_Occurred()) return NULL; | |
9706 | }{ | |
9707 | #if wxUSE_UNICODE | |
9708 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9709 | #else | |
9710 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9711 | #endif | |
9712 | } | |
9713 | { | |
9714 | delete _result; | |
9715 | } | |
9716 | return _resultobj; | |
9717 | } | |
9718 | ||
9719 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
9720 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9721 | PyObject * _resultobj; | |
9722 | wxString * _result; | |
9723 | wxRadioBox * _arg0; | |
9724 | int _arg1; | |
9725 | PyObject * _argo0 = 0; | |
9726 | char *_kwnames[] = { "self","item", NULL }; | |
9727 | ||
9728 | self = self; | |
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) | |
9730 | return NULL; | |
9731 | if (_argo0) { | |
9732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); | |
9735 | return NULL; | |
9736 | } | |
9737 | } | |
9738 | { | |
9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9740 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); | |
9741 | ||
9742 | wxPyEndAllowThreads(__tstate); | |
9743 | if (PyErr_Occurred()) return NULL; | |
9744 | }{ | |
9745 | #if wxUSE_UNICODE | |
9746 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9747 | #else | |
9748 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9749 | #endif | |
9750 | } | |
9751 | { | |
9752 | delete _result; | |
9753 | } | |
9754 | return _resultobj; | |
9755 | } | |
9756 | ||
9757 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
9758 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9759 | PyObject * _resultobj; | |
9760 | wxRadioBox * _arg0; | |
9761 | int _arg1; | |
9762 | wxString * _arg2; | |
9763 | PyObject * _argo0 = 0; | |
9764 | PyObject * _obj2 = 0; | |
9765 | char *_kwnames[] = { "self","item","label", NULL }; | |
9766 | ||
9767 | self = self; | |
9768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9769 | return NULL; | |
9770 | if (_argo0) { | |
9771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); | |
9774 | return NULL; | |
9775 | } | |
9776 | } | |
9777 | { | |
9778 | _arg2 = wxString_in_helper(_obj2); | |
9779 | if (_arg2 == NULL) | |
9780 | return NULL; | |
9781 | } | |
9782 | { | |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); | |
9785 | ||
9786 | wxPyEndAllowThreads(__tstate); | |
9787 | if (PyErr_Occurred()) return NULL; | |
9788 | } Py_INCREF(Py_None); | |
9789 | _resultobj = Py_None; | |
9790 | { | |
9791 | if (_obj2) | |
9792 | delete _arg2; | |
9793 | } | |
9794 | return _resultobj; | |
9795 | } | |
9796 | ||
9797 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
9798 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9799 | PyObject * _resultobj; | |
9800 | int _result; | |
9801 | wxRadioBox * _arg0; | |
9802 | PyObject * _argo0 = 0; | |
9803 | char *_kwnames[] = { "self", NULL }; | |
9804 | ||
9805 | self = self; | |
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) | |
9807 | return NULL; | |
9808 | if (_argo0) { | |
9809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); | |
9812 | return NULL; | |
9813 | } | |
9814 | } | |
9815 | { | |
9816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9817 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
9818 | ||
9819 | wxPyEndAllowThreads(__tstate); | |
9820 | if (PyErr_Occurred()) return NULL; | |
9821 | } _resultobj = Py_BuildValue("i",_result); | |
9822 | return _resultobj; | |
9823 | } | |
9824 | ||
9825 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
9826 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9827 | PyObject * _resultobj; | |
9828 | wxString * _result; | |
9829 | wxRadioBox * _arg0; | |
9830 | PyObject * _argo0 = 0; | |
9831 | char *_kwnames[] = { "self", NULL }; | |
9832 | ||
9833 | self = self; | |
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) | |
9835 | return NULL; | |
9836 | if (_argo0) { | |
9837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); | |
9840 | return NULL; | |
9841 | } | |
9842 | } | |
9843 | { | |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) return NULL; | |
9849 | }{ | |
9850 | #if wxUSE_UNICODE | |
9851 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9852 | #else | |
9853 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9854 | #endif | |
9855 | } | |
9856 | { | |
9857 | delete _result; | |
9858 | } | |
9859 | return _resultobj; | |
9860 | } | |
9861 | ||
9862 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
9863 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9864 | PyObject * _resultobj; | |
9865 | int _result; | |
9866 | wxRadioBox * _arg0; | |
9867 | PyObject * _argo0 = 0; | |
9868 | char *_kwnames[] = { "self", NULL }; | |
9869 | ||
9870 | self = self; | |
9871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) | |
9872 | return NULL; | |
9873 | if (_argo0) { | |
9874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); | |
9877 | return NULL; | |
9878 | } | |
9879 | } | |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | _result = (int )wxRadioBox_GetCount(_arg0); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) return NULL; | |
9886 | } _resultobj = Py_BuildValue("i",_result); | |
9887 | return _resultobj; | |
9888 | } | |
9889 | ||
9890 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
9891 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9892 | PyObject * _resultobj; | |
9893 | wxRadioBox * _arg0; | |
9894 | int _arg1; | |
9895 | PyObject * _argo0 = 0; | |
9896 | char *_kwnames[] = { "self","n", NULL }; | |
9897 | ||
9898 | self = self; | |
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
9900 | return NULL; | |
9901 | if (_argo0) { | |
9902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); | |
9905 | return NULL; | |
9906 | } | |
9907 | } | |
9908 | { | |
9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9910 | wxRadioBox_SetSelection(_arg0,_arg1); | |
9911 | ||
9912 | wxPyEndAllowThreads(__tstate); | |
9913 | if (PyErr_Occurred()) return NULL; | |
9914 | } Py_INCREF(Py_None); | |
9915 | _resultobj = Py_None; | |
9916 | return _resultobj; | |
9917 | } | |
9918 | ||
9919 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
9920 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9921 | PyObject * _resultobj; | |
9922 | wxRadioBox * _arg0; | |
9923 | wxString * _arg1; | |
9924 | PyObject * _argo0 = 0; | |
9925 | PyObject * _obj1 = 0; | |
9926 | char *_kwnames[] = { "self","string", NULL }; | |
9927 | ||
9928 | self = self; | |
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
9930 | return NULL; | |
9931 | if (_argo0) { | |
9932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); | |
9935 | return NULL; | |
9936 | } | |
9937 | } | |
9938 | { | |
9939 | _arg1 = wxString_in_helper(_obj1); | |
9940 | if (_arg1 == NULL) | |
9941 | return NULL; | |
9942 | } | |
9943 | { | |
9944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9945 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
9946 | ||
9947 | wxPyEndAllowThreads(__tstate); | |
9948 | if (PyErr_Occurred()) return NULL; | |
9949 | } Py_INCREF(Py_None); | |
9950 | _resultobj = Py_None; | |
9951 | { | |
9952 | if (_obj1) | |
9953 | delete _arg1; | |
9954 | } | |
9955 | return _resultobj; | |
9956 | } | |
9957 | ||
9958 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
9959 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject * _resultobj; | |
9961 | wxRadioBox * _arg0; | |
9962 | bool _arg1; | |
9963 | PyObject * _argo0 = 0; | |
9964 | int tempbool1; | |
9965 | char *_kwnames[] = { "self","show", NULL }; | |
9966 | ||
9967 | self = self; | |
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) | |
9969 | return NULL; | |
9970 | if (_argo0) { | |
9971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); | |
9974 | return NULL; | |
9975 | } | |
9976 | } | |
9977 | _arg1 = (bool ) tempbool1; | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | wxRadioBox_Show(_arg0,_arg1); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) return NULL; | |
9984 | } Py_INCREF(Py_None); | |
9985 | _resultobj = Py_None; | |
9986 | return _resultobj; | |
9987 | } | |
9988 | ||
9989 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
9990 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9991 | PyObject * _resultobj; | |
9992 | wxRadioBox * _arg0; | |
9993 | int _arg1; | |
9994 | bool _arg2; | |
9995 | PyObject * _argo0 = 0; | |
9996 | int tempbool2; | |
9997 | char *_kwnames[] = { "self","item","show", NULL }; | |
9998 | ||
9999 | self = self; | |
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10001 | return NULL; | |
10002 | if (_argo0) { | |
10003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
10005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); | |
10006 | return NULL; | |
10007 | } | |
10008 | } | |
10009 | _arg2 = (bool ) tempbool2; | |
10010 | { | |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
10013 | ||
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) return NULL; | |
10016 | } Py_INCREF(Py_None); | |
10017 | _resultobj = Py_None; | |
10018 | return _resultobj; | |
10019 | } | |
10020 | ||
10021 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
10022 | wxRadioButton *src; | |
10023 | wxControl *dest; | |
10024 | src = (wxRadioButton *) ptr; | |
10025 | dest = (wxControl *) src; | |
10026 | return (void *) dest; | |
10027 | } | |
10028 | ||
10029 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
10030 | wxRadioButton *src; | |
10031 | wxWindow *dest; | |
10032 | src = (wxRadioButton *) ptr; | |
10033 | dest = (wxWindow *) src; | |
10034 | return (void *) dest; | |
10035 | } | |
10036 | ||
10037 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
10038 | wxRadioButton *src; | |
10039 | wxEvtHandler *dest; | |
10040 | src = (wxRadioButton *) ptr; | |
10041 | dest = (wxEvtHandler *) src; | |
10042 | return (void *) dest; | |
10043 | } | |
10044 | ||
10045 | static void *SwigwxRadioButtonTowxObject(void *ptr) { | |
10046 | wxRadioButton *src; | |
10047 | wxObject *dest; | |
10048 | src = (wxRadioButton *) ptr; | |
10049 | dest = (wxObject *) src; | |
10050 | return (void *) dest; | |
10051 | } | |
10052 | ||
10053 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10054 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10055 | PyObject * _resultobj; | |
10056 | wxRadioButton * _result; | |
10057 | wxWindow * _arg0; | |
10058 | wxWindowID _arg1; | |
10059 | wxString * _arg2; | |
10060 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10061 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10062 | long _arg5 = (long ) 0; | |
10063 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10064 | wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr; | |
10065 | PyObject * _argo0 = 0; | |
10066 | PyObject * _obj2 = 0; | |
10067 | wxPoint temp; | |
10068 | PyObject * _obj3 = 0; | |
10069 | wxSize temp0; | |
10070 | PyObject * _obj4 = 0; | |
10071 | PyObject * _argo6 = 0; | |
10072 | PyObject * _obj7 = 0; | |
10073 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10074 | char _ptemp[128]; | |
10075 | ||
10076 | self = self; | |
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
10078 | return NULL; | |
10079 | if (_argo0) { | |
10080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); | |
10083 | return NULL; | |
10084 | } | |
10085 | } | |
10086 | { | |
10087 | _arg2 = wxString_in_helper(_obj2); | |
10088 | if (_arg2 == NULL) | |
10089 | return NULL; | |
10090 | } | |
10091 | if (_obj3) | |
10092 | { | |
10093 | _arg3 = &temp; | |
10094 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10095 | return NULL; | |
10096 | } | |
10097 | if (_obj4) | |
10098 | { | |
10099 | _arg4 = &temp0; | |
10100 | if (! wxSize_helper(_obj4, &_arg4)) | |
10101 | return NULL; | |
10102 | } | |
10103 | if (_argo6) { | |
10104 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
10105 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
10107 | return NULL; | |
10108 | } | |
10109 | } | |
10110 | if (_obj7) | |
10111 | { | |
10112 | _arg7 = wxString_in_helper(_obj7); | |
10113 | if (_arg7 == NULL) | |
10114 | return NULL; | |
10115 | } | |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
10119 | ||
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) return NULL; | |
10122 | } if (_result) { | |
10123 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10124 | _resultobj = Py_BuildValue("s",_ptemp); | |
10125 | } else { | |
10126 | Py_INCREF(Py_None); | |
10127 | _resultobj = Py_None; | |
10128 | } | |
10129 | { | |
10130 | if (_obj2) | |
10131 | delete _arg2; | |
10132 | } | |
10133 | { | |
10134 | if (_obj7) | |
10135 | delete _arg7; | |
10136 | } | |
10137 | return _resultobj; | |
10138 | } | |
10139 | ||
10140 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
10141 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject * _resultobj; | |
10143 | wxRadioButton * _result; | |
10144 | char *_kwnames[] = { NULL }; | |
10145 | char _ptemp[128]; | |
10146 | ||
10147 | self = self; | |
10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
10149 | return NULL; | |
10150 | { | |
10151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10152 | _result = (wxRadioButton *)new_wxPreRadioButton(); | |
10153 | ||
10154 | wxPyEndAllowThreads(__tstate); | |
10155 | if (PyErr_Occurred()) return NULL; | |
10156 | } if (_result) { | |
10157 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10158 | _resultobj = Py_BuildValue("s",_ptemp); | |
10159 | } else { | |
10160 | Py_INCREF(Py_None); | |
10161 | _resultobj = Py_None; | |
10162 | } | |
10163 | return _resultobj; | |
10164 | } | |
10165 | ||
10166 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10167 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject * _resultobj; | |
10169 | bool _result; | |
10170 | wxRadioButton * _arg0; | |
10171 | wxWindow * _arg1; | |
10172 | wxWindowID _arg2; | |
10173 | wxString * _arg3; | |
10174 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10175 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10176 | long _arg6 = (long ) 0; | |
10177 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10178 | wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr; | |
10179 | PyObject * _argo0 = 0; | |
10180 | PyObject * _argo1 = 0; | |
10181 | PyObject * _obj3 = 0; | |
10182 | wxPoint temp; | |
10183 | PyObject * _obj4 = 0; | |
10184 | wxSize temp0; | |
10185 | PyObject * _obj5 = 0; | |
10186 | PyObject * _argo7 = 0; | |
10187 | PyObject * _obj8 = 0; | |
10188 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10189 | ||
10190 | self = self; | |
10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
10192 | return NULL; | |
10193 | if (_argo0) { | |
10194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
10197 | return NULL; | |
10198 | } | |
10199 | } | |
10200 | if (_argo1) { | |
10201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
10204 | return NULL; | |
10205 | } | |
10206 | } | |
10207 | { | |
10208 | _arg3 = wxString_in_helper(_obj3); | |
10209 | if (_arg3 == NULL) | |
10210 | return NULL; | |
10211 | } | |
10212 | if (_obj4) | |
10213 | { | |
10214 | _arg4 = &temp; | |
10215 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10216 | return NULL; | |
10217 | } | |
10218 | if (_obj5) | |
10219 | { | |
10220 | _arg5 = &temp0; | |
10221 | if (! wxSize_helper(_obj5, &_arg5)) | |
10222 | return NULL; | |
10223 | } | |
10224 | if (_argo7) { | |
10225 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10226 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
10228 | return NULL; | |
10229 | } | |
10230 | } | |
10231 | if (_obj8) | |
10232 | { | |
10233 | _arg8 = wxString_in_helper(_obj8); | |
10234 | if (_arg8 == NULL) | |
10235 | return NULL; | |
10236 | } | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) return NULL; | |
10243 | } _resultobj = Py_BuildValue("i",_result); | |
10244 | { | |
10245 | if (_obj3) | |
10246 | delete _arg3; | |
10247 | } | |
10248 | { | |
10249 | if (_obj8) | |
10250 | delete _arg8; | |
10251 | } | |
10252 | return _resultobj; | |
10253 | } | |
10254 | ||
10255 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
10256 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10257 | PyObject * _resultobj; | |
10258 | bool _result; | |
10259 | wxRadioButton * _arg0; | |
10260 | PyObject * _argo0 = 0; | |
10261 | char *_kwnames[] = { "self", NULL }; | |
10262 | ||
10263 | self = self; | |
10264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) | |
10265 | return NULL; | |
10266 | if (_argo0) { | |
10267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); | |
10270 | return NULL; | |
10271 | } | |
10272 | } | |
10273 | { | |
10274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10275 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
10276 | ||
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) return NULL; | |
10279 | } _resultobj = Py_BuildValue("i",_result); | |
10280 | return _resultobj; | |
10281 | } | |
10282 | ||
10283 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10284 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject * _resultobj; | |
10286 | wxRadioButton * _arg0; | |
10287 | bool _arg1; | |
10288 | PyObject * _argo0 = 0; | |
10289 | int tempbool1; | |
10290 | char *_kwnames[] = { "self","value", NULL }; | |
10291 | ||
10292 | self = self; | |
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10294 | return NULL; | |
10295 | if (_argo0) { | |
10296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); | |
10299 | return NULL; | |
10300 | } | |
10301 | } | |
10302 | _arg1 = (bool ) tempbool1; | |
10303 | { | |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | wxRadioButton_SetValue(_arg0,_arg1); | |
10306 | ||
10307 | wxPyEndAllowThreads(__tstate); | |
10308 | if (PyErr_Occurred()) return NULL; | |
10309 | } Py_INCREF(Py_None); | |
10310 | _resultobj = Py_None; | |
10311 | return _resultobj; | |
10312 | } | |
10313 | ||
10314 | static void *SwigwxSliderTowxControl(void *ptr) { | |
10315 | wxSlider *src; | |
10316 | wxControl *dest; | |
10317 | src = (wxSlider *) ptr; | |
10318 | dest = (wxControl *) src; | |
10319 | return (void *) dest; | |
10320 | } | |
10321 | ||
10322 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
10323 | wxSlider *src; | |
10324 | wxWindow *dest; | |
10325 | src = (wxSlider *) ptr; | |
10326 | dest = (wxWindow *) src; | |
10327 | return (void *) dest; | |
10328 | } | |
10329 | ||
10330 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
10331 | wxSlider *src; | |
10332 | wxEvtHandler *dest; | |
10333 | src = (wxSlider *) ptr; | |
10334 | dest = (wxEvtHandler *) src; | |
10335 | return (void *) dest; | |
10336 | } | |
10337 | ||
10338 | static void *SwigwxSliderTowxObject(void *ptr) { | |
10339 | wxSlider *src; | |
10340 | wxObject *dest; | |
10341 | src = (wxSlider *) ptr; | |
10342 | dest = (wxObject *) src; | |
10343 | return (void *) dest; | |
10344 | } | |
10345 | ||
10346 | #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)) | |
10347 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject * _resultobj; | |
10349 | wxSlider * _result; | |
10350 | wxWindow * _arg0; | |
10351 | wxWindowID _arg1; | |
10352 | int _arg2; | |
10353 | int _arg3; | |
10354 | int _arg4; | |
10355 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
10356 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
10357 | long _arg7 = (long ) wxSL_HORIZONTAL; | |
10358 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
10359 | wxString * _arg9 = (wxString *) &wxPySliderNameStr; | |
10360 | PyObject * _argo0 = 0; | |
10361 | wxPoint temp; | |
10362 | PyObject * _obj5 = 0; | |
10363 | wxSize temp0; | |
10364 | PyObject * _obj6 = 0; | |
10365 | PyObject * _argo8 = 0; | |
10366 | PyObject * _obj9 = 0; | |
10367 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
10368 | char _ptemp[128]; | |
10369 | ||
10370 | self = self; | |
10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9)) | |
10372 | return NULL; | |
10373 | if (_argo0) { | |
10374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); | |
10377 | return NULL; | |
10378 | } | |
10379 | } | |
10380 | if (_obj5) | |
10381 | { | |
10382 | _arg5 = &temp; | |
10383 | if (! wxPoint_helper(_obj5, &_arg5)) | |
10384 | return NULL; | |
10385 | } | |
10386 | if (_obj6) | |
10387 | { | |
10388 | _arg6 = &temp0; | |
10389 | if (! wxSize_helper(_obj6, &_arg6)) | |
10390 | return NULL; | |
10391 | } | |
10392 | if (_argo8) { | |
10393 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
10394 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
10395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); | |
10396 | return NULL; | |
10397 | } | |
10398 | } | |
10399 | if (_obj9) | |
10400 | { | |
10401 | _arg9 = wxString_in_helper(_obj9); | |
10402 | if (_arg9 == NULL) | |
10403 | return NULL; | |
10404 | } | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) return NULL; | |
10411 | } if (_result) { | |
10412 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10413 | _resultobj = Py_BuildValue("s",_ptemp); | |
10414 | } else { | |
10415 | Py_INCREF(Py_None); | |
10416 | _resultobj = Py_None; | |
10417 | } | |
10418 | { | |
10419 | if (_obj9) | |
10420 | delete _arg9; | |
10421 | } | |
10422 | return _resultobj; | |
10423 | } | |
10424 | ||
10425 | #define new_wxPreSlider() (new wxSlider()) | |
10426 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject * _resultobj; | |
10428 | wxSlider * _result; | |
10429 | char *_kwnames[] = { NULL }; | |
10430 | char _ptemp[128]; | |
10431 | ||
10432 | self = self; | |
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
10434 | return NULL; | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | _result = (wxSlider *)new_wxPreSlider(); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) return NULL; | |
10441 | } if (_result) { | |
10442 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10443 | _resultobj = Py_BuildValue("s",_ptemp); | |
10444 | } else { | |
10445 | Py_INCREF(Py_None); | |
10446 | _resultobj = Py_None; | |
10447 | } | |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
10451 | #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)) | |
10452 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | bool _result; | |
10455 | wxSlider * _arg0; | |
10456 | wxWindow * _arg1; | |
10457 | wxWindowID _arg2; | |
10458 | int _arg3; | |
10459 | int _arg4; | |
10460 | int _arg5; | |
10461 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
10462 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
10463 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
10464 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
10465 | wxString * _arg10 = (wxString *) &wxPySliderNameStr; | |
10466 | PyObject * _argo0 = 0; | |
10467 | PyObject * _argo1 = 0; | |
10468 | wxPoint temp; | |
10469 | PyObject * _obj6 = 0; | |
10470 | wxSize temp0; | |
10471 | PyObject * _obj7 = 0; | |
10472 | PyObject * _argo9 = 0; | |
10473 | PyObject * _obj10 = 0; | |
10474 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
10475 | ||
10476 | self = self; | |
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10)) | |
10478 | return NULL; | |
10479 | if (_argo0) { | |
10480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
10483 | return NULL; | |
10484 | } | |
10485 | } | |
10486 | if (_argo1) { | |
10487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
10490 | return NULL; | |
10491 | } | |
10492 | } | |
10493 | if (_obj6) | |
10494 | { | |
10495 | _arg6 = &temp; | |
10496 | if (! wxPoint_helper(_obj6, &_arg6)) | |
10497 | return NULL; | |
10498 | } | |
10499 | if (_obj7) | |
10500 | { | |
10501 | _arg7 = &temp0; | |
10502 | if (! wxSize_helper(_obj7, &_arg7)) | |
10503 | return NULL; | |
10504 | } | |
10505 | if (_argo9) { | |
10506 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
10507 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
10508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
10509 | return NULL; | |
10510 | } | |
10511 | } | |
10512 | if (_obj10) | |
10513 | { | |
10514 | _arg10 = wxString_in_helper(_obj10); | |
10515 | if (_arg10 == NULL) | |
10516 | return NULL; | |
10517 | } | |
10518 | { | |
10519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10520 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10); | |
10521 | ||
10522 | wxPyEndAllowThreads(__tstate); | |
10523 | if (PyErr_Occurred()) return NULL; | |
10524 | } _resultobj = Py_BuildValue("i",_result); | |
10525 | { | |
10526 | if (_obj10) | |
10527 | delete _arg10; | |
10528 | } | |
10529 | return _resultobj; | |
10530 | } | |
10531 | ||
10532 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
10533 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject * _resultobj; | |
10535 | wxSlider * _arg0; | |
10536 | PyObject * _argo0 = 0; | |
10537 | char *_kwnames[] = { "self", NULL }; | |
10538 | ||
10539 | self = self; | |
10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) | |
10541 | return NULL; | |
10542 | if (_argo0) { | |
10543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); | |
10546 | return NULL; | |
10547 | } | |
10548 | } | |
10549 | { | |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | wxSlider_ClearSel(_arg0); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) return NULL; | |
10555 | } Py_INCREF(Py_None); | |
10556 | _resultobj = Py_None; | |
10557 | return _resultobj; | |
10558 | } | |
10559 | ||
10560 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
10561 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10562 | PyObject * _resultobj; | |
10563 | wxSlider * _arg0; | |
10564 | PyObject * _argo0 = 0; | |
10565 | char *_kwnames[] = { "self", NULL }; | |
10566 | ||
10567 | self = self; | |
10568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) | |
10569 | return NULL; | |
10570 | if (_argo0) { | |
10571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); | |
10574 | return NULL; | |
10575 | } | |
10576 | } | |
10577 | { | |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | wxSlider_ClearTicks(_arg0); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) return NULL; | |
10583 | } Py_INCREF(Py_None); | |
10584 | _resultobj = Py_None; | |
10585 | return _resultobj; | |
10586 | } | |
10587 | ||
10588 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
10589 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10590 | PyObject * _resultobj; | |
10591 | int _result; | |
10592 | wxSlider * _arg0; | |
10593 | PyObject * _argo0 = 0; | |
10594 | char *_kwnames[] = { "self", NULL }; | |
10595 | ||
10596 | self = self; | |
10597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) | |
10598 | return NULL; | |
10599 | if (_argo0) { | |
10600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); | |
10603 | return NULL; | |
10604 | } | |
10605 | } | |
10606 | { | |
10607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10608 | _result = (int )wxSlider_GetLineSize(_arg0); | |
10609 | ||
10610 | wxPyEndAllowThreads(__tstate); | |
10611 | if (PyErr_Occurred()) return NULL; | |
10612 | } _resultobj = Py_BuildValue("i",_result); | |
10613 | return _resultobj; | |
10614 | } | |
10615 | ||
10616 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
10617 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10618 | PyObject * _resultobj; | |
10619 | int _result; | |
10620 | wxSlider * _arg0; | |
10621 | PyObject * _argo0 = 0; | |
10622 | char *_kwnames[] = { "self", NULL }; | |
10623 | ||
10624 | self = self; | |
10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) | |
10626 | return NULL; | |
10627 | if (_argo0) { | |
10628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); | |
10631 | return NULL; | |
10632 | } | |
10633 | } | |
10634 | { | |
10635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10636 | _result = (int )wxSlider_GetMax(_arg0); | |
10637 | ||
10638 | wxPyEndAllowThreads(__tstate); | |
10639 | if (PyErr_Occurred()) return NULL; | |
10640 | } _resultobj = Py_BuildValue("i",_result); | |
10641 | return _resultobj; | |
10642 | } | |
10643 | ||
10644 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
10645 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10646 | PyObject * _resultobj; | |
10647 | int _result; | |
10648 | wxSlider * _arg0; | |
10649 | PyObject * _argo0 = 0; | |
10650 | char *_kwnames[] = { "self", NULL }; | |
10651 | ||
10652 | self = self; | |
10653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) | |
10654 | return NULL; | |
10655 | if (_argo0) { | |
10656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); | |
10659 | return NULL; | |
10660 | } | |
10661 | } | |
10662 | { | |
10663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10664 | _result = (int )wxSlider_GetMin(_arg0); | |
10665 | ||
10666 | wxPyEndAllowThreads(__tstate); | |
10667 | if (PyErr_Occurred()) return NULL; | |
10668 | } _resultobj = Py_BuildValue("i",_result); | |
10669 | return _resultobj; | |
10670 | } | |
10671 | ||
10672 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
10673 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10674 | PyObject * _resultobj; | |
10675 | int _result; | |
10676 | wxSlider * _arg0; | |
10677 | PyObject * _argo0 = 0; | |
10678 | char *_kwnames[] = { "self", NULL }; | |
10679 | ||
10680 | self = self; | |
10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) | |
10682 | return NULL; | |
10683 | if (_argo0) { | |
10684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); | |
10687 | return NULL; | |
10688 | } | |
10689 | } | |
10690 | { | |
10691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10692 | _result = (int )wxSlider_GetPageSize(_arg0); | |
10693 | ||
10694 | wxPyEndAllowThreads(__tstate); | |
10695 | if (PyErr_Occurred()) return NULL; | |
10696 | } _resultobj = Py_BuildValue("i",_result); | |
10697 | return _resultobj; | |
10698 | } | |
10699 | ||
10700 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
10701 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10702 | PyObject * _resultobj; | |
10703 | int _result; | |
10704 | wxSlider * _arg0; | |
10705 | PyObject * _argo0 = 0; | |
10706 | char *_kwnames[] = { "self", NULL }; | |
10707 | ||
10708 | self = self; | |
10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) | |
10710 | return NULL; | |
10711 | if (_argo0) { | |
10712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); | |
10715 | return NULL; | |
10716 | } | |
10717 | } | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) return NULL; | |
10724 | } _resultobj = Py_BuildValue("i",_result); | |
10725 | return _resultobj; | |
10726 | } | |
10727 | ||
10728 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
10729 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject * _resultobj; | |
10731 | int _result; | |
10732 | wxSlider * _arg0; | |
10733 | PyObject * _argo0 = 0; | |
10734 | char *_kwnames[] = { "self", NULL }; | |
10735 | ||
10736 | self = self; | |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) | |
10738 | return NULL; | |
10739 | if (_argo0) { | |
10740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); | |
10743 | return NULL; | |
10744 | } | |
10745 | } | |
10746 | { | |
10747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10748 | _result = (int )wxSlider_GetSelStart(_arg0); | |
10749 | ||
10750 | wxPyEndAllowThreads(__tstate); | |
10751 | if (PyErr_Occurred()) return NULL; | |
10752 | } _resultobj = Py_BuildValue("i",_result); | |
10753 | return _resultobj; | |
10754 | } | |
10755 | ||
10756 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
10757 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject * _resultobj; | |
10759 | int _result; | |
10760 | wxSlider * _arg0; | |
10761 | PyObject * _argo0 = 0; | |
10762 | char *_kwnames[] = { "self", NULL }; | |
10763 | ||
10764 | self = self; | |
10765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) | |
10766 | return NULL; | |
10767 | if (_argo0) { | |
10768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); | |
10771 | return NULL; | |
10772 | } | |
10773 | } | |
10774 | { | |
10775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10776 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
10777 | ||
10778 | wxPyEndAllowThreads(__tstate); | |
10779 | if (PyErr_Occurred()) return NULL; | |
10780 | } _resultobj = Py_BuildValue("i",_result); | |
10781 | return _resultobj; | |
10782 | } | |
10783 | ||
10784 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
10785 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10786 | PyObject * _resultobj; | |
10787 | int _result; | |
10788 | wxSlider * _arg0; | |
10789 | PyObject * _argo0 = 0; | |
10790 | char *_kwnames[] = { "self", NULL }; | |
10791 | ||
10792 | self = self; | |
10793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) | |
10794 | return NULL; | |
10795 | if (_argo0) { | |
10796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); | |
10799 | return NULL; | |
10800 | } | |
10801 | } | |
10802 | { | |
10803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10804 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
10805 | ||
10806 | wxPyEndAllowThreads(__tstate); | |
10807 | if (PyErr_Occurred()) return NULL; | |
10808 | } _resultobj = Py_BuildValue("i",_result); | |
10809 | return _resultobj; | |
10810 | } | |
10811 | ||
10812 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
10813 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10814 | PyObject * _resultobj; | |
10815 | int _result; | |
10816 | wxSlider * _arg0; | |
10817 | PyObject * _argo0 = 0; | |
10818 | char *_kwnames[] = { "self", NULL }; | |
10819 | ||
10820 | self = self; | |
10821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) | |
10822 | return NULL; | |
10823 | if (_argo0) { | |
10824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); | |
10827 | return NULL; | |
10828 | } | |
10829 | } | |
10830 | { | |
10831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10832 | _result = (int )wxSlider_GetValue(_arg0); | |
10833 | ||
10834 | wxPyEndAllowThreads(__tstate); | |
10835 | if (PyErr_Occurred()) return NULL; | |
10836 | } _resultobj = Py_BuildValue("i",_result); | |
10837 | return _resultobj; | |
10838 | } | |
10839 | ||
10840 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10841 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10842 | PyObject * _resultobj; | |
10843 | wxSlider * _arg0; | |
10844 | int _arg1; | |
10845 | int _arg2; | |
10846 | PyObject * _argo0 = 0; | |
10847 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; | |
10848 | ||
10849 | self = self; | |
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10851 | return NULL; | |
10852 | if (_argo0) { | |
10853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); | |
10856 | return NULL; | |
10857 | } | |
10858 | } | |
10859 | { | |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) return NULL; | |
10865 | } Py_INCREF(Py_None); | |
10866 | _resultobj = Py_None; | |
10867 | return _resultobj; | |
10868 | } | |
10869 | ||
10870 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
10871 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10872 | PyObject * _resultobj; | |
10873 | wxSlider * _arg0; | |
10874 | int _arg1; | |
10875 | int _arg2; | |
10876 | PyObject * _argo0 = 0; | |
10877 | char *_kwnames[] = { "self","n","pos", NULL }; | |
10878 | ||
10879 | self = self; | |
10880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10881 | return NULL; | |
10882 | if (_argo0) { | |
10883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); | |
10886 | return NULL; | |
10887 | } | |
10888 | } | |
10889 | { | |
10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10891 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
10892 | ||
10893 | wxPyEndAllowThreads(__tstate); | |
10894 | if (PyErr_Occurred()) return NULL; | |
10895 | } Py_INCREF(Py_None); | |
10896 | _resultobj = Py_None; | |
10897 | return _resultobj; | |
10898 | } | |
10899 | ||
10900 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
10901 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10902 | PyObject * _resultobj; | |
10903 | wxSlider * _arg0; | |
10904 | int _arg1; | |
10905 | PyObject * _argo0 = 0; | |
10906 | char *_kwnames[] = { "self","lineSize", NULL }; | |
10907 | ||
10908 | self = self; | |
10909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) | |
10910 | return NULL; | |
10911 | if (_argo0) { | |
10912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); | |
10915 | return NULL; | |
10916 | } | |
10917 | } | |
10918 | { | |
10919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10920 | wxSlider_SetLineSize(_arg0,_arg1); | |
10921 | ||
10922 | wxPyEndAllowThreads(__tstate); | |
10923 | if (PyErr_Occurred()) return NULL; | |
10924 | } Py_INCREF(Py_None); | |
10925 | _resultobj = Py_None; | |
10926 | return _resultobj; | |
10927 | } | |
10928 | ||
10929 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
10930 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10931 | PyObject * _resultobj; | |
10932 | wxSlider * _arg0; | |
10933 | int _arg1; | |
10934 | PyObject * _argo0 = 0; | |
10935 | char *_kwnames[] = { "self","pageSize", NULL }; | |
10936 | ||
10937 | self = self; | |
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) | |
10939 | return NULL; | |
10940 | if (_argo0) { | |
10941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); | |
10944 | return NULL; | |
10945 | } | |
10946 | } | |
10947 | { | |
10948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10949 | wxSlider_SetPageSize(_arg0,_arg1); | |
10950 | ||
10951 | wxPyEndAllowThreads(__tstate); | |
10952 | if (PyErr_Occurred()) return NULL; | |
10953 | } Py_INCREF(Py_None); | |
10954 | _resultobj = Py_None; | |
10955 | return _resultobj; | |
10956 | } | |
10957 | ||
10958 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
10959 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject * _resultobj; | |
10961 | wxSlider * _arg0; | |
10962 | int _arg1; | |
10963 | int _arg2; | |
10964 | PyObject * _argo0 = 0; | |
10965 | char *_kwnames[] = { "self","startPos","endPos", NULL }; | |
10966 | ||
10967 | self = self; | |
10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10969 | return NULL; | |
10970 | if (_argo0) { | |
10971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); | |
10974 | return NULL; | |
10975 | } | |
10976 | } | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) return NULL; | |
10983 | } Py_INCREF(Py_None); | |
10984 | _resultobj = Py_None; | |
10985 | return _resultobj; | |
10986 | } | |
10987 | ||
10988 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
10989 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject * _resultobj; | |
10991 | wxSlider * _arg0; | |
10992 | int _arg1; | |
10993 | PyObject * _argo0 = 0; | |
10994 | char *_kwnames[] = { "self","len", NULL }; | |
10995 | ||
10996 | self = self; | |
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) | |
10998 | return NULL; | |
10999 | if (_argo0) { | |
11000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
11002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); | |
11003 | return NULL; | |
11004 | } | |
11005 | } | |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11008 | wxSlider_SetThumbLength(_arg0,_arg1); | |
11009 | ||
11010 | wxPyEndAllowThreads(__tstate); | |
11011 | if (PyErr_Occurred()) return NULL; | |
11012 | } Py_INCREF(Py_None); | |
11013 | _resultobj = Py_None; | |
11014 | return _resultobj; | |
11015 | } | |
11016 | ||
11017 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
11018 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject * _resultobj; | |
11020 | wxSlider * _arg0; | |
11021 | int _arg1; | |
11022 | PyObject * _argo0 = 0; | |
11023 | char *_kwnames[] = { "self","tickPos", NULL }; | |
11024 | ||
11025 | self = self; | |
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) | |
11027 | return NULL; | |
11028 | if (_argo0) { | |
11029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
11031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); | |
11032 | return NULL; | |
11033 | } | |
11034 | } | |
11035 | { | |
11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11037 | wxSlider_SetTick(_arg0,_arg1); | |
11038 | ||
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) return NULL; | |
11041 | } Py_INCREF(Py_None); | |
11042 | _resultobj = Py_None; | |
11043 | return _resultobj; | |
11044 | } | |
11045 | ||
11046 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11047 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject * _resultobj; | |
11049 | wxSlider * _arg0; | |
11050 | int _arg1; | |
11051 | PyObject * _argo0 = 0; | |
11052 | char *_kwnames[] = { "self","value", NULL }; | |
11053 | ||
11054 | self = self; | |
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) | |
11056 | return NULL; | |
11057 | if (_argo0) { | |
11058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
11060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); | |
11061 | return NULL; | |
11062 | } | |
11063 | } | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | wxSlider_SetValue(_arg0,_arg1); | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) return NULL; | |
11070 | } Py_INCREF(Py_None); | |
11071 | _resultobj = Py_None; | |
11072 | return _resultobj; | |
11073 | } | |
11074 | ||
11075 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { | |
11076 | wxSpinCtrl *src; | |
11077 | wxSpinButton *dest; | |
11078 | src = (wxSpinCtrl *) ptr; | |
11079 | dest = (wxSpinButton *) src; | |
11080 | return (void *) dest; | |
11081 | } | |
11082 | ||
11083 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
11084 | wxSpinCtrl *src; | |
11085 | wxControl *dest; | |
11086 | src = (wxSpinCtrl *) ptr; | |
11087 | dest = (wxControl *) src; | |
11088 | return (void *) dest; | |
11089 | } | |
11090 | ||
11091 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
11092 | wxSpinCtrl *src; | |
11093 | wxWindow *dest; | |
11094 | src = (wxSpinCtrl *) ptr; | |
11095 | dest = (wxWindow *) src; | |
11096 | return (void *) dest; | |
11097 | } | |
11098 | ||
11099 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
11100 | wxSpinCtrl *src; | |
11101 | wxEvtHandler *dest; | |
11102 | src = (wxSpinCtrl *) ptr; | |
11103 | dest = (wxEvtHandler *) src; | |
11104 | return (void *) dest; | |
11105 | } | |
11106 | ||
11107 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { | |
11108 | wxSpinCtrl *src; | |
11109 | wxObject *dest; | |
11110 | src = (wxSpinCtrl *) ptr; | |
11111 | dest = (wxObject *) src; | |
11112 | return (void *) dest; | |
11113 | } | |
11114 | ||
11115 | #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)) | |
11116 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11117 | PyObject * _resultobj; | |
11118 | wxSpinCtrl * _result; | |
11119 | wxWindow * _arg0; | |
11120 | wxWindowID _arg1 = (wxWindowID ) -1; | |
11121 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11122 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11123 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11124 | long _arg5 = (long ) wxSP_ARROW_KEYS; | |
11125 | int _arg6 = (int ) 0; | |
11126 | int _arg7 = (int ) 100; | |
11127 | int _arg8 = (int ) 0; | |
11128 | wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr; | |
11129 | PyObject * _argo0 = 0; | |
11130 | PyObject * _obj2 = 0; | |
11131 | wxPoint temp; | |
11132 | PyObject * _obj3 = 0; | |
11133 | wxSize temp0; | |
11134 | PyObject * _obj4 = 0; | |
11135 | PyObject * _obj9 = 0; | |
11136 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
11137 | char _ptemp[128]; | |
11138 | ||
11139 | self = self; | |
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9)) | |
11141 | return NULL; | |
11142 | if (_argo0) { | |
11143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
11146 | return NULL; | |
11147 | } | |
11148 | } | |
11149 | if (_obj2) | |
11150 | { | |
11151 | _arg2 = wxString_in_helper(_obj2); | |
11152 | if (_arg2 == NULL) | |
11153 | return NULL; | |
11154 | } | |
11155 | if (_obj3) | |
11156 | { | |
11157 | _arg3 = &temp; | |
11158 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11159 | return NULL; | |
11160 | } | |
11161 | if (_obj4) | |
11162 | { | |
11163 | _arg4 = &temp0; | |
11164 | if (! wxSize_helper(_obj4, &_arg4)) | |
11165 | return NULL; | |
11166 | } | |
11167 | if (_obj9) | |
11168 | { | |
11169 | _arg9 = wxString_in_helper(_obj9); | |
11170 | if (_arg9 == NULL) | |
11171 | return NULL; | |
11172 | } | |
11173 | { | |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9); | |
11176 | ||
11177 | wxPyEndAllowThreads(__tstate); | |
11178 | if (PyErr_Occurred()) return NULL; | |
11179 | } if (_result) { | |
11180 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11181 | _resultobj = Py_BuildValue("s",_ptemp); | |
11182 | } else { | |
11183 | Py_INCREF(Py_None); | |
11184 | _resultobj = Py_None; | |
11185 | } | |
11186 | { | |
11187 | if (_obj2) | |
11188 | delete _arg2; | |
11189 | } | |
11190 | { | |
11191 | if (_obj9) | |
11192 | delete _arg9; | |
11193 | } | |
11194 | return _resultobj; | |
11195 | } | |
11196 | ||
11197 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) | |
11198 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject * _resultobj; | |
11200 | wxSpinCtrl * _result; | |
11201 | char *_kwnames[] = { NULL }; | |
11202 | char _ptemp[128]; | |
11203 | ||
11204 | self = self; | |
11205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
11206 | return NULL; | |
11207 | { | |
11208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11209 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); | |
11210 | ||
11211 | wxPyEndAllowThreads(__tstate); | |
11212 | if (PyErr_Occurred()) return NULL; | |
11213 | } if (_result) { | |
11214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11215 | _resultobj = Py_BuildValue("s",_ptemp); | |
11216 | } else { | |
11217 | Py_INCREF(Py_None); | |
11218 | _resultobj = Py_None; | |
11219 | } | |
11220 | return _resultobj; | |
11221 | } | |
11222 | ||
11223 | #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)) | |
11224 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11225 | PyObject * _resultobj; | |
11226 | bool _result; | |
11227 | wxSpinCtrl * _arg0; | |
11228 | wxWindow * _arg1; | |
11229 | wxWindowID _arg2 = (wxWindowID ) -1; | |
11230 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
11231 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11232 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11233 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
11234 | int _arg7 = (int ) 0; | |
11235 | int _arg8 = (int ) 100; | |
11236 | int _arg9 = (int ) 0; | |
11237 | wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr; | |
11238 | PyObject * _argo0 = 0; | |
11239 | PyObject * _argo1 = 0; | |
11240 | PyObject * _obj3 = 0; | |
11241 | wxPoint temp; | |
11242 | PyObject * _obj4 = 0; | |
11243 | wxSize temp0; | |
11244 | PyObject * _obj5 = 0; | |
11245 | PyObject * _obj10 = 0; | |
11246 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
11247 | ||
11248 | self = self; | |
11249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10)) | |
11250 | return NULL; | |
11251 | if (_argo0) { | |
11252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
11255 | return NULL; | |
11256 | } | |
11257 | } | |
11258 | if (_argo1) { | |
11259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
11262 | return NULL; | |
11263 | } | |
11264 | } | |
11265 | if (_obj3) | |
11266 | { | |
11267 | _arg3 = wxString_in_helper(_obj3); | |
11268 | if (_arg3 == NULL) | |
11269 | return NULL; | |
11270 | } | |
11271 | if (_obj4) | |
11272 | { | |
11273 | _arg4 = &temp; | |
11274 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11275 | return NULL; | |
11276 | } | |
11277 | if (_obj5) | |
11278 | { | |
11279 | _arg5 = &temp0; | |
11280 | if (! wxSize_helper(_obj5, &_arg5)) | |
11281 | return NULL; | |
11282 | } | |
11283 | if (_obj10) | |
11284 | { | |
11285 | _arg10 = wxString_in_helper(_obj10); | |
11286 | if (_arg10 == NULL) | |
11287 | return NULL; | |
11288 | } | |
11289 | { | |
11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11291 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10); | |
11292 | ||
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) return NULL; | |
11295 | } _resultobj = Py_BuildValue("i",_result); | |
11296 | { | |
11297 | if (_obj3) | |
11298 | delete _arg3; | |
11299 | } | |
11300 | { | |
11301 | if (_obj10) | |
11302 | delete _arg10; | |
11303 | } | |
11304 | return _resultobj; | |
11305 | } | |
11306 | ||
11307 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) | |
11308 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject * _resultobj; | |
11310 | int _result; | |
11311 | wxSpinCtrl * _arg0; | |
11312 | PyObject * _argo0 = 0; | |
11313 | char *_kwnames[] = { "self", NULL }; | |
11314 | ||
11315 | self = self; | |
11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
11317 | return NULL; | |
11318 | if (_argo0) { | |
11319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
11322 | return NULL; | |
11323 | } | |
11324 | } | |
11325 | { | |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
11328 | ||
11329 | wxPyEndAllowThreads(__tstate); | |
11330 | if (PyErr_Occurred()) return NULL; | |
11331 | } _resultobj = Py_BuildValue("i",_result); | |
11332 | return _resultobj; | |
11333 | } | |
11334 | ||
11335 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
11336 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11337 | PyObject * _resultobj; | |
11338 | int _result; | |
11339 | wxSpinCtrl * _arg0; | |
11340 | PyObject * _argo0 = 0; | |
11341 | char *_kwnames[] = { "self", NULL }; | |
11342 | ||
11343 | self = self; | |
11344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
11345 | return NULL; | |
11346 | if (_argo0) { | |
11347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
11350 | return NULL; | |
11351 | } | |
11352 | } | |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) return NULL; | |
11359 | } _resultobj = Py_BuildValue("i",_result); | |
11360 | return _resultobj; | |
11361 | } | |
11362 | ||
11363 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
11364 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11365 | PyObject * _resultobj; | |
11366 | int _result; | |
11367 | wxSpinCtrl * _arg0; | |
11368 | PyObject * _argo0 = 0; | |
11369 | char *_kwnames[] = { "self", NULL }; | |
11370 | ||
11371 | self = self; | |
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
11373 | return NULL; | |
11374 | if (_argo0) { | |
11375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
11378 | return NULL; | |
11379 | } | |
11380 | } | |
11381 | { | |
11382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11383 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
11384 | ||
11385 | wxPyEndAllowThreads(__tstate); | |
11386 | if (PyErr_Occurred()) return NULL; | |
11387 | } _resultobj = Py_BuildValue("i",_result); | |
11388 | return _resultobj; | |
11389 | } | |
11390 | ||
11391 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
11392 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11393 | PyObject * _resultobj; | |
11394 | wxSpinCtrl * _arg0; | |
11395 | int _arg1; | |
11396 | int _arg2; | |
11397 | PyObject * _argo0 = 0; | |
11398 | char *_kwnames[] = { "self","min","max", NULL }; | |
11399 | ||
11400 | self = self; | |
11401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11402 | return NULL; | |
11403 | if (_argo0) { | |
11404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
11407 | return NULL; | |
11408 | } | |
11409 | } | |
11410 | { | |
11411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11412 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
11413 | ||
11414 | wxPyEndAllowThreads(__tstate); | |
11415 | if (PyErr_Occurred()) return NULL; | |
11416 | } Py_INCREF(Py_None); | |
11417 | _resultobj = Py_None; | |
11418 | return _resultobj; | |
11419 | } | |
11420 | ||
11421 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11422 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11423 | PyObject * _resultobj; | |
11424 | wxSpinCtrl * _arg0; | |
11425 | int _arg1; | |
11426 | PyObject * _argo0 = 0; | |
11427 | char *_kwnames[] = { "self","value", NULL }; | |
11428 | ||
11429 | self = self; | |
11430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
11431 | return NULL; | |
11432 | if (_argo0) { | |
11433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
11436 | return NULL; | |
11437 | } | |
11438 | } | |
11439 | { | |
11440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11441 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
11442 | ||
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) return NULL; | |
11445 | } Py_INCREF(Py_None); | |
11446 | _resultobj = Py_None; | |
11447 | return _resultobj; | |
11448 | } | |
11449 | ||
11450 | static void *SwigwxToggleButtonTowxControl(void *ptr) { | |
11451 | wxToggleButton *src; | |
11452 | wxControl *dest; | |
11453 | src = (wxToggleButton *) ptr; | |
11454 | dest = (wxControl *) src; | |
11455 | return (void *) dest; | |
11456 | } | |
11457 | ||
11458 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
11459 | wxToggleButton *src; | |
11460 | wxWindow *dest; | |
11461 | src = (wxToggleButton *) ptr; | |
11462 | dest = (wxWindow *) src; | |
11463 | return (void *) dest; | |
11464 | } | |
11465 | ||
11466 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
11467 | wxToggleButton *src; | |
11468 | wxEvtHandler *dest; | |
11469 | src = (wxToggleButton *) ptr; | |
11470 | dest = (wxEvtHandler *) src; | |
11471 | return (void *) dest; | |
11472 | } | |
11473 | ||
11474 | static void *SwigwxToggleButtonTowxObject(void *ptr) { | |
11475 | wxToggleButton *src; | |
11476 | wxObject *dest; | |
11477 | src = (wxToggleButton *) ptr; | |
11478 | dest = (wxObject *) src; | |
11479 | return (void *) dest; | |
11480 | } | |
11481 | ||
11482 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11483 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11484 | PyObject * _resultobj; | |
11485 | wxToggleButton * _result; | |
11486 | wxWindow * _arg0; | |
11487 | wxWindowID _arg1; | |
11488 | wxString * _arg2; | |
11489 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11490 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11491 | long _arg5 = (long ) 0; | |
11492 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
11493 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; | |
11494 | PyObject * _argo0 = 0; | |
11495 | PyObject * _obj2 = 0; | |
11496 | wxPoint temp; | |
11497 | PyObject * _obj3 = 0; | |
11498 | wxSize temp0; | |
11499 | PyObject * _obj4 = 0; | |
11500 | PyObject * _argo6 = 0; | |
11501 | PyObject * _obj7 = 0; | |
11502 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
11503 | char _ptemp[128]; | |
11504 | ||
11505 | self = self; | |
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
11507 | return NULL; | |
11508 | if (_argo0) { | |
11509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
11512 | return NULL; | |
11513 | } | |
11514 | } | |
11515 | { | |
11516 | _arg2 = wxString_in_helper(_obj2); | |
11517 | if (_arg2 == NULL) | |
11518 | return NULL; | |
11519 | } | |
11520 | if (_obj3) | |
11521 | { | |
11522 | _arg3 = &temp; | |
11523 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11524 | return NULL; | |
11525 | } | |
11526 | if (_obj4) | |
11527 | { | |
11528 | _arg4 = &temp0; | |
11529 | if (! wxSize_helper(_obj4, &_arg4)) | |
11530 | return NULL; | |
11531 | } | |
11532 | if (_argo6) { | |
11533 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
11534 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
11535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
11536 | return NULL; | |
11537 | } | |
11538 | } | |
11539 | if (_obj7) | |
11540 | { | |
11541 | _arg7 = wxString_in_helper(_obj7); | |
11542 | if (_arg7 == NULL) | |
11543 | return NULL; | |
11544 | } | |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
11548 | ||
11549 | wxPyEndAllowThreads(__tstate); | |
11550 | if (PyErr_Occurred()) return NULL; | |
11551 | } if (_result) { | |
11552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11553 | _resultobj = Py_BuildValue("s",_ptemp); | |
11554 | } else { | |
11555 | Py_INCREF(Py_None); | |
11556 | _resultobj = Py_None; | |
11557 | } | |
11558 | { | |
11559 | if (_obj2) | |
11560 | delete _arg2; | |
11561 | } | |
11562 | { | |
11563 | if (_obj7) | |
11564 | delete _arg7; | |
11565 | } | |
11566 | return _resultobj; | |
11567 | } | |
11568 | ||
11569 | #define new_wxPreToggleButton() (new wxToggleButton()) | |
11570 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11571 | PyObject * _resultobj; | |
11572 | wxToggleButton * _result; | |
11573 | char *_kwnames[] = { NULL }; | |
11574 | char _ptemp[128]; | |
11575 | ||
11576 | self = self; | |
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
11578 | return NULL; | |
11579 | { | |
11580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11581 | _result = (wxToggleButton *)new_wxPreToggleButton(); | |
11582 | ||
11583 | wxPyEndAllowThreads(__tstate); | |
11584 | if (PyErr_Occurred()) return NULL; | |
11585 | } if (_result) { | |
11586 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11587 | _resultobj = Py_BuildValue("s",_ptemp); | |
11588 | } else { | |
11589 | Py_INCREF(Py_None); | |
11590 | _resultobj = Py_None; | |
11591 | } | |
11592 | return _resultobj; | |
11593 | } | |
11594 | ||
11595 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11596 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11597 | PyObject * _resultobj; | |
11598 | bool _result; | |
11599 | wxToggleButton * _arg0; | |
11600 | wxWindow * _arg1; | |
11601 | wxWindowID _arg2; | |
11602 | wxString * _arg3; | |
11603 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11604 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11605 | long _arg6 = (long ) 0; | |
11606 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
11607 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; | |
11608 | PyObject * _argo0 = 0; | |
11609 | PyObject * _argo1 = 0; | |
11610 | PyObject * _obj3 = 0; | |
11611 | wxPoint temp; | |
11612 | PyObject * _obj4 = 0; | |
11613 | wxSize temp0; | |
11614 | PyObject * _obj5 = 0; | |
11615 | PyObject * _argo7 = 0; | |
11616 | PyObject * _obj8 = 0; | |
11617 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
11618 | ||
11619 | self = self; | |
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
11621 | return NULL; | |
11622 | if (_argo0) { | |
11623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
11626 | return NULL; | |
11627 | } | |
11628 | } | |
11629 | if (_argo1) { | |
11630 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11631 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11633 | return NULL; | |
11634 | } | |
11635 | } | |
11636 | { | |
11637 | _arg3 = wxString_in_helper(_obj3); | |
11638 | if (_arg3 == NULL) | |
11639 | return NULL; | |
11640 | } | |
11641 | if (_obj4) | |
11642 | { | |
11643 | _arg4 = &temp; | |
11644 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11645 | return NULL; | |
11646 | } | |
11647 | if (_obj5) | |
11648 | { | |
11649 | _arg5 = &temp0; | |
11650 | if (! wxSize_helper(_obj5, &_arg5)) | |
11651 | return NULL; | |
11652 | } | |
11653 | if (_argo7) { | |
11654 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
11655 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11657 | return NULL; | |
11658 | } | |
11659 | } | |
11660 | if (_obj8) | |
11661 | { | |
11662 | _arg8 = wxString_in_helper(_obj8); | |
11663 | if (_arg8 == NULL) | |
11664 | return NULL; | |
11665 | } | |
11666 | { | |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) return NULL; | |
11672 | } _resultobj = Py_BuildValue("i",_result); | |
11673 | { | |
11674 | if (_obj3) | |
11675 | delete _arg3; | |
11676 | } | |
11677 | { | |
11678 | if (_obj8) | |
11679 | delete _arg8; | |
11680 | } | |
11681 | return _resultobj; | |
11682 | } | |
11683 | ||
11684 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11685 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11686 | PyObject * _resultobj; | |
11687 | wxToggleButton * _arg0; | |
11688 | bool _arg1; | |
11689 | PyObject * _argo0 = 0; | |
11690 | int tempbool1; | |
11691 | char *_kwnames[] = { "self","value", NULL }; | |
11692 | ||
11693 | self = self; | |
11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11695 | return NULL; | |
11696 | if (_argo0) { | |
11697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11700 | return NULL; | |
11701 | } | |
11702 | } | |
11703 | _arg1 = (bool ) tempbool1; | |
11704 | { | |
11705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11706 | wxToggleButton_SetValue(_arg0,_arg1); | |
11707 | ||
11708 | wxPyEndAllowThreads(__tstate); | |
11709 | if (PyErr_Occurred()) return NULL; | |
11710 | } Py_INCREF(Py_None); | |
11711 | _resultobj = Py_None; | |
11712 | return _resultobj; | |
11713 | } | |
11714 | ||
11715 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11716 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11717 | PyObject * _resultobj; | |
11718 | bool _result; | |
11719 | wxToggleButton * _arg0; | |
11720 | PyObject * _argo0 = 0; | |
11721 | char *_kwnames[] = { "self", NULL }; | |
11722 | ||
11723 | self = self; | |
11724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11725 | return NULL; | |
11726 | if (_argo0) { | |
11727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11730 | return NULL; | |
11731 | } | |
11732 | } | |
11733 | { | |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) return NULL; | |
11739 | } _resultobj = Py_BuildValue("i",_result); | |
11740 | return _resultobj; | |
11741 | } | |
11742 | ||
11743 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11744 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11745 | PyObject * _resultobj; | |
11746 | wxToggleButton * _arg0; | |
11747 | wxString * _arg1; | |
11748 | PyObject * _argo0 = 0; | |
11749 | PyObject * _obj1 = 0; | |
11750 | char *_kwnames[] = { "self","label", NULL }; | |
11751 | ||
11752 | self = self; | |
11753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11754 | return NULL; | |
11755 | if (_argo0) { | |
11756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11759 | return NULL; | |
11760 | } | |
11761 | } | |
11762 | { | |
11763 | _arg1 = wxString_in_helper(_obj1); | |
11764 | if (_arg1 == NULL) | |
11765 | return NULL; | |
11766 | } | |
11767 | { | |
11768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11769 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
11770 | ||
11771 | wxPyEndAllowThreads(__tstate); | |
11772 | if (PyErr_Occurred()) return NULL; | |
11773 | } Py_INCREF(Py_None); | |
11774 | _resultobj = Py_None; | |
11775 | { | |
11776 | if (_obj1) | |
11777 | delete _arg1; | |
11778 | } | |
11779 | return _resultobj; | |
11780 | } | |
11781 | ||
11782 | static PyMethodDef controlscMethods[] = { | |
11783 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11786 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11787 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11788 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11791 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11792 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11793 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11794 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11801 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11804 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11805 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11806 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11807 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11808 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11809 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11810 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11811 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11812 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
11819 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11820 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11821 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11822 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11823 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11825 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11826 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11830 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11831 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
11832 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, | |
11833 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11836 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11837 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11842 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11843 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11845 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11846 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11848 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11849 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11850 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11851 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11852 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11854 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11855 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11858 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11859 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11860 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11862 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
11863 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11864 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11865 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11866 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
11867 | { "wxTextCtrl_IsMultiLine", (PyCFunction) _wrap_wxTextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
11868 | { "wxTextCtrl_IsSingleLine", (PyCFunction) _wrap_wxTextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
11869 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11870 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11871 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11872 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11873 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11874 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11875 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11876 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11877 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
11878 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
11879 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
11880 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
11881 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11882 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
11883 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11884 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11885 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11886 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11887 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
11888 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
11889 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11890 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
11893 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
11894 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11900 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11921 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11923 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11924 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11925 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11926 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11927 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11928 | { "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
11929 | { "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
11930 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11932 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
11933 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11934 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11935 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11936 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11937 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11938 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11939 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
11944 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11945 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11946 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
11947 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11950 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
11952 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11953 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
11955 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11956 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
11958 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11959 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11960 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11961 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11962 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11963 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11964 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11965 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11966 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11967 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11968 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11969 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11970 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11971 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
11972 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
11973 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
11974 | { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11975 | { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11976 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
11977 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11978 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11979 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11980 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11981 | { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11982 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11983 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11984 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11985 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11986 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11987 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11988 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11989 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11990 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11991 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11992 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11993 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11994 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11995 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11996 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11997 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11998 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11999 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
12000 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
12001 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
12002 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12003 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12004 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
12005 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
12006 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12007 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, | |
12008 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
12009 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
12010 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
12011 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12012 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
12013 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
12014 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
12015 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
12016 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
12017 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
12018 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
12019 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
12020 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
12021 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
12022 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
12023 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
12024 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
12025 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
12026 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
12027 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
12028 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
12029 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
12030 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12031 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12032 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
12033 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
12034 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
12035 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
12036 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
12037 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
12038 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
12039 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
12040 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12041 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12042 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
12043 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
12044 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
12045 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
12046 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
12047 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
12048 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
12049 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
12050 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
12051 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, | |
12052 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
12053 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, | |
12054 | { NULL, NULL } | |
12055 | }; | |
12056 | #ifdef __cplusplus | |
12057 | } | |
12058 | #endif | |
12059 | /* | |
12060 | * This table is used by the pointer type-checker | |
12061 | */ | |
12062 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
12063 | { "_signed_long","_long",0}, | |
12064 | { "_wxPrintQuality","_wxCoord",0}, | |
12065 | { "_wxPrintQuality","_int",0}, | |
12066 | { "_wxPrintQuality","_signed_int",0}, | |
12067 | { "_wxPrintQuality","_unsigned_int",0}, | |
12068 | { "_wxPrintQuality","_wxWindowID",0}, | |
12069 | { "_wxPrintQuality","_uint",0}, | |
12070 | { "_wxPrintQuality","_EBool",0}, | |
12071 | { "_wxPrintQuality","_size_t",0}, | |
12072 | { "_wxPrintQuality","_time_t",0}, | |
12073 | { "_byte","_unsigned_char",0}, | |
12074 | { "_long","_unsigned_long",0}, | |
12075 | { "_long","_signed_long",0}, | |
12076 | { "_size_t","_wxCoord",0}, | |
12077 | { "_size_t","_wxPrintQuality",0}, | |
12078 | { "_size_t","_time_t",0}, | |
12079 | { "_size_t","_unsigned_int",0}, | |
12080 | { "_size_t","_int",0}, | |
12081 | { "_size_t","_wxWindowID",0}, | |
12082 | { "_size_t","_uint",0}, | |
12083 | { "_uint","_wxCoord",0}, | |
12084 | { "_uint","_wxPrintQuality",0}, | |
12085 | { "_uint","_time_t",0}, | |
12086 | { "_uint","_size_t",0}, | |
12087 | { "_uint","_unsigned_int",0}, | |
12088 | { "_uint","_int",0}, | |
12089 | { "_uint","_wxWindowID",0}, | |
12090 | { "_wxChar","_char",0}, | |
12091 | { "_char","_wxChar",0}, | |
12092 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
12093 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
12094 | { "_EBool","_wxCoord",0}, | |
12095 | { "_EBool","_wxPrintQuality",0}, | |
12096 | { "_EBool","_signed_int",0}, | |
12097 | { "_EBool","_int",0}, | |
12098 | { "_EBool","_wxWindowID",0}, | |
12099 | { "_unsigned_long","_long",0}, | |
12100 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
12101 | { "_signed_int","_wxCoord",0}, | |
12102 | { "_signed_int","_wxPrintQuality",0}, | |
12103 | { "_signed_int","_EBool",0}, | |
12104 | { "_signed_int","_wxWindowID",0}, | |
12105 | { "_signed_int","_int",0}, | |
12106 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
12107 | { "_WXTYPE","_short",0}, | |
12108 | { "_WXTYPE","_signed_short",0}, | |
12109 | { "_WXTYPE","_unsigned_short",0}, | |
12110 | { "_unsigned_short","_WXTYPE",0}, | |
12111 | { "_unsigned_short","_short",0}, | |
12112 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
12113 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
12114 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
12115 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
12116 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
12117 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
12118 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
12119 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
12120 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
12121 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
12122 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
12123 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
12124 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
12125 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
12126 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
12127 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
12128 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
12129 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
12130 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
12131 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
12132 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
12133 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
12134 | { "_signed_short","_WXTYPE",0}, | |
12135 | { "_signed_short","_short",0}, | |
12136 | { "_unsigned_char","_byte",0}, | |
12137 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
12138 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
12139 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
12140 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
12141 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
12142 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
12143 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
12144 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
12145 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
12146 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
12147 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
12148 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
12149 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
12150 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
12151 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
12152 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
12153 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
12154 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
12155 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
12156 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
12157 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
12158 | { "_unsigned_int","_wxCoord",0}, | |
12159 | { "_unsigned_int","_wxPrintQuality",0}, | |
12160 | { "_unsigned_int","_time_t",0}, | |
12161 | { "_unsigned_int","_size_t",0}, | |
12162 | { "_unsigned_int","_uint",0}, | |
12163 | { "_unsigned_int","_wxWindowID",0}, | |
12164 | { "_unsigned_int","_int",0}, | |
12165 | { "_short","_WXTYPE",0}, | |
12166 | { "_short","_unsigned_short",0}, | |
12167 | { "_short","_signed_short",0}, | |
12168 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
12169 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
12170 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
12171 | { "_wxWindowID","_wxCoord",0}, | |
12172 | { "_wxWindowID","_wxPrintQuality",0}, | |
12173 | { "_wxWindowID","_time_t",0}, | |
12174 | { "_wxWindowID","_size_t",0}, | |
12175 | { "_wxWindowID","_EBool",0}, | |
12176 | { "_wxWindowID","_uint",0}, | |
12177 | { "_wxWindowID","_int",0}, | |
12178 | { "_wxWindowID","_signed_int",0}, | |
12179 | { "_wxWindowID","_unsigned_int",0}, | |
12180 | { "_int","_wxCoord",0}, | |
12181 | { "_int","_wxPrintQuality",0}, | |
12182 | { "_int","_time_t",0}, | |
12183 | { "_int","_size_t",0}, | |
12184 | { "_int","_EBool",0}, | |
12185 | { "_int","_uint",0}, | |
12186 | { "_int","_wxWindowID",0}, | |
12187 | { "_int","_unsigned_int",0}, | |
12188 | { "_int","_signed_int",0}, | |
12189 | { "_time_t","_wxCoord",0}, | |
12190 | { "_time_t","_wxPrintQuality",0}, | |
12191 | { "_time_t","_unsigned_int",0}, | |
12192 | { "_time_t","_int",0}, | |
12193 | { "_time_t","_wxWindowID",0}, | |
12194 | { "_time_t","_uint",0}, | |
12195 | { "_time_t","_size_t",0}, | |
12196 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
12197 | { "_wxCoord","_int",0}, | |
12198 | { "_wxCoord","_signed_int",0}, | |
12199 | { "_wxCoord","_unsigned_int",0}, | |
12200 | { "_wxCoord","_wxWindowID",0}, | |
12201 | { "_wxCoord","_uint",0}, | |
12202 | { "_wxCoord","_EBool",0}, | |
12203 | { "_wxCoord","_size_t",0}, | |
12204 | { "_wxCoord","_time_t",0}, | |
12205 | { "_wxCoord","_wxPrintQuality",0}, | |
12206 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
12207 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
12208 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
12209 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
12210 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
12211 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
12212 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
12213 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
12214 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
12215 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
12216 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
12217 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
12218 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
12219 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
12220 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
12221 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
12222 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
12223 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
12224 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
12225 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
12226 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
12227 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
12228 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
12229 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
12230 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
12231 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
12232 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
12233 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
12234 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
12235 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
12236 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
12237 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
12238 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
12239 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
12240 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
12241 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
12242 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
12243 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
12244 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
12245 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
12246 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
12247 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
12248 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
12249 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
12250 | {0,0,0}}; | |
12251 | ||
12252 | static PyObject *SWIG_globals; | |
12253 | #ifdef __cplusplus | |
12254 | extern "C" | |
12255 | #endif | |
12256 | SWIGEXPORT(void) initcontrolsc() { | |
12257 | PyObject *m, *d; | |
12258 | SWIG_globals = SWIG_newvarlink(); | |
12259 | m = Py_InitModule("controlsc", controlscMethods); | |
12260 | d = PyModule_GetDict(m); | |
12261 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
12262 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
12263 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
12264 | { | |
12265 | int i; | |
12266 | for (i = 0; _swig_mapping[i].n1; i++) | |
12267 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12268 | } | |
12269 | } |