]>
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 "Python.h" | |
23 | ||
24 | #include <string.h> | |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
29 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
30 | # else | |
31 | # if defined(__BORLANDC__) | |
32 | # define SWIGEXPORT(a) a _export | |
33 | # else | |
34 | # define SWIGEXPORT(a) a | |
35 | # endif | |
36 | # endif | |
37 | #else | |
38 | # define SWIGEXPORT(a) a | |
39 | #endif | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | extern void SWIG_MakePtr(char *, void *, char *); | |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #define SWIG_init initcontrolsc | |
54 | ||
55 | #define SWIG_name "controlsc" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include <wx/slider.h> | |
59 | #include <wx/spinbutt.h> | |
60 | #include <wx/spinctrl.h> | |
61 | #include <wx/dynarray.h> | |
62 | #include <wx/statline.h> | |
63 | #include <wx/tglbtn.h> | |
64 | ||
65 | #ifdef __WXMSW__ | |
66 | #if wxUSE_OWNER_DRAWN | |
67 | #include <wx/checklst.h> | |
68 | #endif | |
69 | #endif | |
70 | ||
71 | #ifdef __WXGTK__ | |
72 | #include <wx/checklst.h> | |
73 | #endif | |
74 | ||
75 | ||
76 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
77 | PyObject* o2; | |
78 | PyObject* o3; | |
79 | ||
80 | if (!target) { | |
81 | target = o; | |
82 | } else if (target == Py_None) { | |
83 | Py_DECREF(Py_None); | |
84 | target = o; | |
85 | } else { | |
86 | if (!PyTuple_Check(target)) { | |
87 | o2 = target; | |
88 | target = PyTuple_New(1); | |
89 | PyTuple_SetItem(target, 0, o2); | |
90 | } | |
91 | o3 = PyTuple_New(1); | |
92 | PyTuple_SetItem(o3, 0, o); | |
93 | ||
94 | o2 = target; | |
95 | target = PySequence_Concat(o2, o3); | |
96 | Py_DECREF(o2); | |
97 | Py_DECREF(o3); | |
98 | } | |
99 | return target; | |
100 | } | |
101 | ||
102 | //#define DECLARE_DEF_STRING(name) static wxString* wxPy##name | |
103 | ||
104 | // Put some wx default wxChar* values into wxStrings. | |
105 | DECLARE_DEF_STRING(ControlNameStr); | |
106 | DECLARE_DEF_STRING(ButtonNameStr); | |
107 | DECLARE_DEF_STRING(CheckBoxNameStr); | |
108 | DECLARE_DEF_STRING(ChoiceNameStr); | |
109 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
110 | DECLARE_DEF_STRING(GaugeNameStr); | |
111 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
112 | DECLARE_DEF_STRING(StaticTextNameStr); | |
113 | DECLARE_DEF_STRING(ListBoxNameStr); | |
114 | DECLARE_DEF_STRING(TextCtrlNameStr); | |
115 | DECLARE_DEF_STRING(ScrollBarNameStr); | |
116 | DECLARE_DEF_STRING(SPIN_BUTTON_NAME); | |
117 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
118 | DECLARE_DEF_STRING(RadioBoxNameStr); | |
119 | DECLARE_DEF_STRING(RadioButtonNameStr); | |
120 | DECLARE_DEF_STRING(SliderNameStr); | |
121 | ||
122 | wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl"); | |
123 | DECLARE_DEF_STRING(SpinCtrlNameStr); | |
124 | ||
125 | static const wxString wxPyEmptyString(wxT("")); | |
126 | #ifdef __cplusplus | |
127 | extern "C" { | |
128 | #endif | |
129 | static int _wrap_wxDefaultValidator_set(PyObject *val) { | |
130 | ||
131 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
132 | return 1; | |
133 | } | |
134 | ||
135 | static PyObject *_wrap_wxDefaultValidator_get() { | |
136 | PyObject * pyobj; | |
137 | char ptemp[128]; | |
138 | ||
139 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
140 | pyobj = PyString_FromString(ptemp); | |
141 | return pyobj; | |
142 | } | |
143 | ||
144 | static void *SwigwxControlTowxWindow(void *ptr) { | |
145 | wxControl *src; | |
146 | wxWindow *dest; | |
147 | src = (wxControl *) ptr; | |
148 | dest = (wxWindow *) src; | |
149 | return (void *) dest; | |
150 | } | |
151 | ||
152 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
153 | wxControl *src; | |
154 | wxEvtHandler *dest; | |
155 | src = (wxControl *) ptr; | |
156 | dest = (wxEvtHandler *) src; | |
157 | return (void *) dest; | |
158 | } | |
159 | ||
160 | static void *SwigwxControlTowxObject(void *ptr) { | |
161 | wxControl *src; | |
162 | wxObject *dest; | |
163 | src = (wxControl *) ptr; | |
164 | dest = (wxObject *) src; | |
165 | return (void *) dest; | |
166 | } | |
167 | ||
168 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
169 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
170 | PyObject * _resultobj; | |
171 | wxControl * _result; | |
172 | wxWindow * _arg0; | |
173 | wxWindowID _arg1; | |
174 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
175 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
176 | long _arg4 = (long ) 0; | |
177 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
178 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; | |
179 | PyObject * _argo0 = 0; | |
180 | wxPoint temp; | |
181 | PyObject * _obj2 = 0; | |
182 | wxSize temp0; | |
183 | PyObject * _obj3 = 0; | |
184 | PyObject * _argo5 = 0; | |
185 | PyObject * _obj6 = 0; | |
186 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
187 | char _ptemp[128]; | |
188 | ||
189 | self = self; | |
190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
191 | return NULL; | |
192 | if (_argo0) { | |
193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | if (_obj2) | |
200 | { | |
201 | _arg2 = &temp; | |
202 | if (! wxPoint_helper(_obj2, &_arg2)) | |
203 | return NULL; | |
204 | } | |
205 | if (_obj3) | |
206 | { | |
207 | _arg3 = &temp0; | |
208 | if (! wxSize_helper(_obj3, &_arg3)) | |
209 | return NULL; | |
210 | } | |
211 | if (_argo5) { | |
212 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
214 | return NULL; | |
215 | } | |
216 | } | |
217 | if (_obj6) | |
218 | { | |
219 | _arg6 = wxString_in_helper(_obj6); | |
220 | if (_arg6 == NULL) | |
221 | return NULL; | |
222 | } | |
223 | { | |
224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
225 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
226 | ||
227 | wxPyEndAllowThreads(__tstate); | |
228 | if (PyErr_Occurred()) return NULL; | |
229 | } if (_result) { | |
230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
231 | _resultobj = Py_BuildValue("s",_ptemp); | |
232 | } else { | |
233 | Py_INCREF(Py_None); | |
234 | _resultobj = Py_None; | |
235 | } | |
236 | { | |
237 | if (_obj6) | |
238 | delete _arg6; | |
239 | } | |
240 | return _resultobj; | |
241 | } | |
242 | ||
243 | #define new_wxPreControl() (new wxControl()) | |
244 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
245 | PyObject * _resultobj; | |
246 | wxControl * _result; | |
247 | char *_kwnames[] = { NULL }; | |
248 | char _ptemp[128]; | |
249 | ||
250 | self = self; | |
251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
252 | return NULL; | |
253 | { | |
254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
255 | _result = (wxControl *)new_wxPreControl(); | |
256 | ||
257 | wxPyEndAllowThreads(__tstate); | |
258 | if (PyErr_Occurred()) return NULL; | |
259 | } if (_result) { | |
260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
261 | _resultobj = Py_BuildValue("s",_ptemp); | |
262 | } else { | |
263 | Py_INCREF(Py_None); | |
264 | _resultobj = Py_None; | |
265 | } | |
266 | return _resultobj; | |
267 | } | |
268 | ||
269 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
270 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
271 | PyObject * _resultobj; | |
272 | bool _result; | |
273 | wxControl * _arg0; | |
274 | wxWindow * _arg1; | |
275 | wxWindowID _arg2; | |
276 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
277 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
278 | long _arg5 = (long ) 0; | |
279 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
280 | wxString * _arg7 = (wxString *) &wxPyControlNameStr; | |
281 | PyObject * _argo0 = 0; | |
282 | PyObject * _argo1 = 0; | |
283 | wxPoint temp; | |
284 | PyObject * _obj3 = 0; | |
285 | wxSize temp0; | |
286 | PyObject * _obj4 = 0; | |
287 | PyObject * _argo6 = 0; | |
288 | PyObject * _obj7 = 0; | |
289 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
293 | return NULL; | |
294 | if (_argo0) { | |
295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
298 | return NULL; | |
299 | } | |
300 | } | |
301 | if (_argo1) { | |
302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
305 | return NULL; | |
306 | } | |
307 | } | |
308 | if (_obj3) | |
309 | { | |
310 | _arg3 = &temp; | |
311 | if (! wxPoint_helper(_obj3, &_arg3)) | |
312 | return NULL; | |
313 | } | |
314 | if (_obj4) | |
315 | { | |
316 | _arg4 = &temp0; | |
317 | if (! wxSize_helper(_obj4, &_arg4)) | |
318 | return NULL; | |
319 | } | |
320 | if (_argo6) { | |
321 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
323 | return NULL; | |
324 | } | |
325 | } | |
326 | if (_obj7) | |
327 | { | |
328 | _arg7 = wxString_in_helper(_obj7); | |
329 | if (_arg7 == NULL) | |
330 | return NULL; | |
331 | } | |
332 | { | |
333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
334 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
335 | ||
336 | wxPyEndAllowThreads(__tstate); | |
337 | if (PyErr_Occurred()) return NULL; | |
338 | } _resultobj = Py_BuildValue("i",_result); | |
339 | { | |
340 | if (_obj7) | |
341 | delete _arg7; | |
342 | } | |
343 | return _resultobj; | |
344 | } | |
345 | ||
346 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
347 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
348 | PyObject * _resultobj; | |
349 | wxControl * _arg0; | |
350 | wxCommandEvent * _arg1; | |
351 | PyObject * _argo0 = 0; | |
352 | PyObject * _argo1 = 0; | |
353 | char *_kwnames[] = { "self","event", NULL }; | |
354 | ||
355 | self = self; | |
356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
357 | return NULL; | |
358 | if (_argo0) { | |
359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
362 | return NULL; | |
363 | } | |
364 | } | |
365 | if (_argo1) { | |
366 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
368 | return NULL; | |
369 | } | |
370 | } | |
371 | { | |
372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
373 | wxControl_Command(_arg0,*_arg1); | |
374 | ||
375 | wxPyEndAllowThreads(__tstate); | |
376 | if (PyErr_Occurred()) return NULL; | |
377 | } Py_INCREF(Py_None); | |
378 | _resultobj = Py_None; | |
379 | return _resultobj; | |
380 | } | |
381 | ||
382 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
383 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
384 | PyObject * _resultobj; | |
385 | wxString * _result; | |
386 | wxControl * _arg0; | |
387 | PyObject * _argo0 = 0; | |
388 | char *_kwnames[] = { "self", NULL }; | |
389 | ||
390 | self = self; | |
391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) | |
392 | return NULL; | |
393 | if (_argo0) { | |
394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); | |
397 | return NULL; | |
398 | } | |
399 | } | |
400 | { | |
401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
402 | _result = new wxString (wxControl_GetLabel(_arg0)); | |
403 | ||
404 | wxPyEndAllowThreads(__tstate); | |
405 | if (PyErr_Occurred()) return NULL; | |
406 | }{ | |
407 | #if wxUSE_UNICODE | |
408 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
409 | #else | |
410 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
411 | #endif | |
412 | } | |
413 | { | |
414 | delete _result; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
419 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
420 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
421 | PyObject * _resultobj; | |
422 | wxControl * _arg0; | |
423 | wxString * _arg1; | |
424 | PyObject * _argo0 = 0; | |
425 | PyObject * _obj1 = 0; | |
426 | char *_kwnames[] = { "self","label", NULL }; | |
427 | ||
428 | self = self; | |
429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) | |
430 | return NULL; | |
431 | if (_argo0) { | |
432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); | |
435 | return NULL; | |
436 | } | |
437 | } | |
438 | { | |
439 | _arg1 = wxString_in_helper(_obj1); | |
440 | if (_arg1 == NULL) | |
441 | return NULL; | |
442 | } | |
443 | { | |
444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
445 | wxControl_SetLabel(_arg0,*_arg1); | |
446 | ||
447 | wxPyEndAllowThreads(__tstate); | |
448 | if (PyErr_Occurred()) return NULL; | |
449 | } Py_INCREF(Py_None); | |
450 | _resultobj = Py_None; | |
451 | { | |
452 | if (_obj1) | |
453 | delete _arg1; | |
454 | } | |
455 | return _resultobj; | |
456 | } | |
457 | ||
458 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { | |
459 | wxControlWithItems *src; | |
460 | wxControl *dest; | |
461 | src = (wxControlWithItems *) ptr; | |
462 | dest = (wxControl *) src; | |
463 | return (void *) dest; | |
464 | } | |
465 | ||
466 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
467 | wxControlWithItems *src; | |
468 | wxWindow *dest; | |
469 | src = (wxControlWithItems *) ptr; | |
470 | dest = (wxWindow *) src; | |
471 | return (void *) dest; | |
472 | } | |
473 | ||
474 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
475 | wxControlWithItems *src; | |
476 | wxEvtHandler *dest; | |
477 | src = (wxControlWithItems *) ptr; | |
478 | dest = (wxEvtHandler *) src; | |
479 | return (void *) dest; | |
480 | } | |
481 | ||
482 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
483 | wxControlWithItems *src; | |
484 | wxObject *dest; | |
485 | src = (wxControlWithItems *) ptr; | |
486 | dest = (wxObject *) src; | |
487 | return (void *) dest; | |
488 | } | |
489 | ||
490 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
491 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
492 | PyObject * _resultobj; | |
493 | wxControlWithItems * _arg0; | |
494 | int _arg1; | |
495 | PyObject * _argo0 = 0; | |
496 | char *_kwnames[] = { "self","n", NULL }; | |
497 | ||
498 | self = self; | |
499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
500 | return NULL; | |
501 | if (_argo0) { | |
502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
505 | return NULL; | |
506 | } | |
507 | } | |
508 | { | |
509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
510 | wxControlWithItems_Delete(_arg0,_arg1); | |
511 | ||
512 | wxPyEndAllowThreads(__tstate); | |
513 | if (PyErr_Occurred()) return NULL; | |
514 | } Py_INCREF(Py_None); | |
515 | _resultobj = Py_None; | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
520 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | int _result; | |
523 | wxControlWithItems * _arg0; | |
524 | PyObject * _argo0 = 0; | |
525 | char *_kwnames[] = { "self", NULL }; | |
526 | ||
527 | self = self; | |
528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
529 | return NULL; | |
530 | if (_argo0) { | |
531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
534 | return NULL; | |
535 | } | |
536 | } | |
537 | { | |
538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
539 | _result = (int )wxControlWithItems_GetCount(_arg0); | |
540 | ||
541 | wxPyEndAllowThreads(__tstate); | |
542 | if (PyErr_Occurred()) return NULL; | |
543 | } _resultobj = Py_BuildValue("i",_result); | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
548 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxString * _result; | |
551 | wxControlWithItems * _arg0; | |
552 | int _arg1; | |
553 | PyObject * _argo0 = 0; | |
554 | char *_kwnames[] = { "self","n", NULL }; | |
555 | ||
556 | self = self; | |
557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
558 | return NULL; | |
559 | if (_argo0) { | |
560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
563 | return NULL; | |
564 | } | |
565 | } | |
566 | { | |
567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
568 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); | |
569 | ||
570 | wxPyEndAllowThreads(__tstate); | |
571 | if (PyErr_Occurred()) return NULL; | |
572 | }{ | |
573 | #if wxUSE_UNICODE | |
574 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
575 | #else | |
576 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
577 | #endif | |
578 | } | |
579 | { | |
580 | delete _result; | |
581 | } | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
586 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject * _resultobj; | |
588 | wxControlWithItems * _arg0; | |
589 | int _arg1; | |
590 | wxString * _arg2; | |
591 | PyObject * _argo0 = 0; | |
592 | PyObject * _obj2 = 0; | |
593 | char *_kwnames[] = { "self","n","s", NULL }; | |
594 | ||
595 | self = self; | |
596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
597 | return NULL; | |
598 | if (_argo0) { | |
599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | { | |
606 | _arg2 = wxString_in_helper(_obj2); | |
607 | if (_arg2 == NULL) | |
608 | return NULL; | |
609 | } | |
610 | { | |
611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
612 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); | |
613 | ||
614 | wxPyEndAllowThreads(__tstate); | |
615 | if (PyErr_Occurred()) return NULL; | |
616 | } Py_INCREF(Py_None); | |
617 | _resultobj = Py_None; | |
618 | { | |
619 | if (_obj2) | |
620 | delete _arg2; | |
621 | } | |
622 | return _resultobj; | |
623 | } | |
624 | ||
625 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
626 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
627 | PyObject * _resultobj; | |
628 | int _result; | |
629 | wxControlWithItems * _arg0; | |
630 | wxString * _arg1; | |
631 | PyObject * _argo0 = 0; | |
632 | PyObject * _obj1 = 0; | |
633 | char *_kwnames[] = { "self","s", NULL }; | |
634 | ||
635 | self = self; | |
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
637 | return NULL; | |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
642 | return NULL; | |
643 | } | |
644 | } | |
645 | { | |
646 | _arg1 = wxString_in_helper(_obj1); | |
647 | if (_arg1 == NULL) | |
648 | return NULL; | |
649 | } | |
650 | { | |
651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
652 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); | |
653 | ||
654 | wxPyEndAllowThreads(__tstate); | |
655 | if (PyErr_Occurred()) return NULL; | |
656 | } _resultobj = Py_BuildValue("i",_result); | |
657 | { | |
658 | if (_obj1) | |
659 | delete _arg1; | |
660 | } | |
661 | return _resultobj; | |
662 | } | |
663 | ||
664 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
665 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
666 | PyObject * _resultobj; | |
667 | wxControlWithItems * _arg0; | |
668 | int _arg1; | |
669 | PyObject * _argo0 = 0; | |
670 | char *_kwnames[] = { "self","n", NULL }; | |
671 | ||
672 | self = self; | |
673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
674 | return NULL; | |
675 | if (_argo0) { | |
676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
679 | return NULL; | |
680 | } | |
681 | } | |
682 | { | |
683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
684 | wxControlWithItems_Select(_arg0,_arg1); | |
685 | ||
686 | wxPyEndAllowThreads(__tstate); | |
687 | if (PyErr_Occurred()) return NULL; | |
688 | } Py_INCREF(Py_None); | |
689 | _resultobj = Py_None; | |
690 | return _resultobj; | |
691 | } | |
692 | ||
693 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
694 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
695 | PyObject * _resultobj; | |
696 | int _result; | |
697 | wxControlWithItems * _arg0; | |
698 | PyObject * _argo0 = 0; | |
699 | char *_kwnames[] = { "self", NULL }; | |
700 | ||
701 | self = self; | |
702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
703 | return NULL; | |
704 | if (_argo0) { | |
705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
708 | return NULL; | |
709 | } | |
710 | } | |
711 | { | |
712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
713 | _result = (int )wxControlWithItems_GetSelection(_arg0); | |
714 | ||
715 | wxPyEndAllowThreads(__tstate); | |
716 | if (PyErr_Occurred()) return NULL; | |
717 | } _resultobj = Py_BuildValue("i",_result); | |
718 | return _resultobj; | |
719 | } | |
720 | ||
721 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
722 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
723 | PyObject * _resultobj; | |
724 | wxString * _result; | |
725 | wxControlWithItems * _arg0; | |
726 | PyObject * _argo0 = 0; | |
727 | char *_kwnames[] = { "self", NULL }; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
731 | return NULL; | |
732 | if (_argo0) { | |
733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
736 | return NULL; | |
737 | } | |
738 | } | |
739 | { | |
740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
741 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); | |
742 | ||
743 | wxPyEndAllowThreads(__tstate); | |
744 | if (PyErr_Occurred()) return NULL; | |
745 | }{ | |
746 | #if wxUSE_UNICODE | |
747 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
748 | #else | |
749 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
750 | #endif | |
751 | } | |
752 | { | |
753 | delete _result; | |
754 | } | |
755 | return _resultobj; | |
756 | } | |
757 | ||
758 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
759 | if (clientData) { | |
760 | wxPyClientData* data = new wxPyClientData(clientData); | |
761 | self->Append(item, data); | |
762 | } else | |
763 | self->Append(item); | |
764 | } | |
765 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
766 | PyObject * _resultobj; | |
767 | wxControlWithItems * _arg0; | |
768 | wxString * _arg1; | |
769 | PyObject * _arg2 = (PyObject *) NULL; | |
770 | PyObject * _argo0 = 0; | |
771 | PyObject * _obj1 = 0; | |
772 | PyObject * _obj2 = 0; | |
773 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
774 | ||
775 | self = self; | |
776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
777 | return NULL; | |
778 | if (_argo0) { | |
779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
782 | return NULL; | |
783 | } | |
784 | } | |
785 | { | |
786 | _arg1 = wxString_in_helper(_obj1); | |
787 | if (_arg1 == NULL) | |
788 | return NULL; | |
789 | } | |
790 | if (_obj2) | |
791 | { | |
792 | _arg2 = _obj2; | |
793 | } | |
794 | { | |
795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
796 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); | |
797 | ||
798 | wxPyEndAllowThreads(__tstate); | |
799 | if (PyErr_Occurred()) return NULL; | |
800 | } Py_INCREF(Py_None); | |
801 | _resultobj = Py_None; | |
802 | { | |
803 | if (_obj1) | |
804 | delete _arg1; | |
805 | } | |
806 | return _resultobj; | |
807 | } | |
808 | ||
809 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
810 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
811 | if (data) { | |
812 | Py_INCREF(data->m_obj); | |
813 | return data->m_obj; | |
814 | } else { | |
815 | Py_INCREF(Py_None); | |
816 | return Py_None; | |
817 | } | |
818 | } | |
819 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
820 | PyObject * _resultobj; | |
821 | PyObject * _result; | |
822 | wxControlWithItems * _arg0; | |
823 | int _arg1; | |
824 | PyObject * _argo0 = 0; | |
825 | char *_kwnames[] = { "self","n", NULL }; | |
826 | ||
827 | self = self; | |
828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
829 | return NULL; | |
830 | if (_argo0) { | |
831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
834 | return NULL; | |
835 | } | |
836 | } | |
837 | { | |
838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
839 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); | |
840 | ||
841 | wxPyEndAllowThreads(__tstate); | |
842 | if (PyErr_Occurred()) return NULL; | |
843 | }{ | |
844 | _resultobj = _result; | |
845 | } | |
846 | return _resultobj; | |
847 | } | |
848 | ||
849 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
850 | wxPyClientData* data = new wxPyClientData(clientData); | |
851 | self->SetClientObject(n, data); | |
852 | } | |
853 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
854 | PyObject * _resultobj; | |
855 | wxControlWithItems * _arg0; | |
856 | int _arg1; | |
857 | PyObject * _arg2; | |
858 | PyObject * _argo0 = 0; | |
859 | PyObject * _obj2 = 0; | |
860 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
861 | ||
862 | self = self; | |
863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
864 | return NULL; | |
865 | if (_argo0) { | |
866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
869 | return NULL; | |
870 | } | |
871 | } | |
872 | { | |
873 | _arg2 = _obj2; | |
874 | } | |
875 | { | |
876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
877 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); | |
878 | ||
879 | wxPyEndAllowThreads(__tstate); | |
880 | if (PyErr_Occurred()) return NULL; | |
881 | } Py_INCREF(Py_None); | |
882 | _resultobj = Py_None; | |
883 | return _resultobj; | |
884 | } | |
885 | ||
886 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
887 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
888 | PyObject * _resultobj; | |
889 | wxControlWithItems * _arg0; | |
890 | wxArrayString * _arg1; | |
891 | PyObject * _argo0 = 0; | |
892 | PyObject * _obj1 = 0; | |
893 | char *_kwnames[] = { "self","strings", NULL }; | |
894 | ||
895 | self = self; | |
896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
897 | return NULL; | |
898 | if (_argo0) { | |
899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | { | |
906 | if (! PySequence_Check(_obj1)) { | |
907 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
908 | return NULL; | |
909 | } | |
910 | _arg1 = new wxArrayString; | |
911 | int i, len=PySequence_Length(_obj1); | |
912 | for (i=0; i<len; i++) { | |
913 | PyObject* item = PySequence_GetItem(_obj1, i); | |
914 | #if wxUSE_UNICODE | |
915 | PyObject* str = PyObject_Unicode(item); | |
916 | #else | |
917 | PyObject* str = PyObject_Str(item); | |
918 | #endif | |
919 | _arg1->Add(Py2wxString(str)); | |
920 | Py_DECREF(item); | |
921 | Py_DECREF(str); | |
922 | } | |
923 | } | |
924 | { | |
925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
926 | wxControlWithItems_AppendItems(_arg0,*_arg1); | |
927 | ||
928 | wxPyEndAllowThreads(__tstate); | |
929 | if (PyErr_Occurred()) return NULL; | |
930 | } Py_INCREF(Py_None); | |
931 | _resultobj = Py_None; | |
932 | { | |
933 | if (_obj1) | |
934 | delete _arg1; | |
935 | } | |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | static void *SwigwxButtonTowxControl(void *ptr) { | |
940 | wxButton *src; | |
941 | wxControl *dest; | |
942 | src = (wxButton *) ptr; | |
943 | dest = (wxControl *) src; | |
944 | return (void *) dest; | |
945 | } | |
946 | ||
947 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
948 | wxButton *src; | |
949 | wxWindow *dest; | |
950 | src = (wxButton *) ptr; | |
951 | dest = (wxWindow *) src; | |
952 | return (void *) dest; | |
953 | } | |
954 | ||
955 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
956 | wxButton *src; | |
957 | wxEvtHandler *dest; | |
958 | src = (wxButton *) ptr; | |
959 | dest = (wxEvtHandler *) src; | |
960 | return (void *) dest; | |
961 | } | |
962 | ||
963 | static void *SwigwxButtonTowxObject(void *ptr) { | |
964 | wxButton *src; | |
965 | wxObject *dest; | |
966 | src = (wxButton *) ptr; | |
967 | dest = (wxObject *) src; | |
968 | return (void *) dest; | |
969 | } | |
970 | ||
971 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
972 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
973 | PyObject * _resultobj; | |
974 | wxButton * _result; | |
975 | wxWindow * _arg0; | |
976 | wxWindowID _arg1; | |
977 | wxString * _arg2; | |
978 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
979 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
980 | long _arg5 = (long ) 0; | |
981 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
982 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; | |
983 | PyObject * _argo0 = 0; | |
984 | PyObject * _obj2 = 0; | |
985 | wxPoint temp; | |
986 | PyObject * _obj3 = 0; | |
987 | wxSize temp0; | |
988 | PyObject * _obj4 = 0; | |
989 | PyObject * _argo6 = 0; | |
990 | PyObject * _obj7 = 0; | |
991 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
992 | char _ptemp[128]; | |
993 | ||
994 | self = self; | |
995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
996 | return NULL; | |
997 | if (_argo0) { | |
998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); | |
1001 | return NULL; | |
1002 | } | |
1003 | } | |
1004 | { | |
1005 | _arg2 = wxString_in_helper(_obj2); | |
1006 | if (_arg2 == NULL) | |
1007 | return NULL; | |
1008 | } | |
1009 | if (_obj3) | |
1010 | { | |
1011 | _arg3 = &temp; | |
1012 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1013 | return NULL; | |
1014 | } | |
1015 | if (_obj4) | |
1016 | { | |
1017 | _arg4 = &temp0; | |
1018 | if (! wxSize_helper(_obj4, &_arg4)) | |
1019 | return NULL; | |
1020 | } | |
1021 | if (_argo6) { | |
1022 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); | |
1024 | return NULL; | |
1025 | } | |
1026 | } | |
1027 | if (_obj7) | |
1028 | { | |
1029 | _arg7 = wxString_in_helper(_obj7); | |
1030 | if (_arg7 == NULL) | |
1031 | return NULL; | |
1032 | } | |
1033 | { | |
1034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1035 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1036 | ||
1037 | wxPyEndAllowThreads(__tstate); | |
1038 | if (PyErr_Occurred()) return NULL; | |
1039 | } if (_result) { | |
1040 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1041 | _resultobj = Py_BuildValue("s",_ptemp); | |
1042 | } else { | |
1043 | Py_INCREF(Py_None); | |
1044 | _resultobj = Py_None; | |
1045 | } | |
1046 | { | |
1047 | if (_obj2) | |
1048 | delete _arg2; | |
1049 | } | |
1050 | { | |
1051 | if (_obj7) | |
1052 | delete _arg7; | |
1053 | } | |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
1057 | #define new_wxPreButton() (new wxButton()) | |
1058 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1059 | PyObject * _resultobj; | |
1060 | wxButton * _result; | |
1061 | char *_kwnames[] = { NULL }; | |
1062 | char _ptemp[128]; | |
1063 | ||
1064 | self = self; | |
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1066 | return NULL; | |
1067 | { | |
1068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1069 | _result = (wxButton *)new_wxPreButton(); | |
1070 | ||
1071 | wxPyEndAllowThreads(__tstate); | |
1072 | if (PyErr_Occurred()) return NULL; | |
1073 | } if (_result) { | |
1074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1075 | _resultobj = Py_BuildValue("s",_ptemp); | |
1076 | } else { | |
1077 | Py_INCREF(Py_None); | |
1078 | _resultobj = Py_None; | |
1079 | } | |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1084 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1085 | PyObject * _resultobj; | |
1086 | bool _result; | |
1087 | wxButton * _arg0; | |
1088 | wxWindow * _arg1; | |
1089 | wxWindowID _arg2; | |
1090 | wxString * _arg3; | |
1091 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1092 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1093 | long _arg6 = (long ) 0; | |
1094 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1095 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; | |
1096 | PyObject * _argo0 = 0; | |
1097 | PyObject * _argo1 = 0; | |
1098 | PyObject * _obj3 = 0; | |
1099 | wxPoint temp; | |
1100 | PyObject * _obj4 = 0; | |
1101 | wxSize temp0; | |
1102 | PyObject * _obj5 = 0; | |
1103 | PyObject * _argo7 = 0; | |
1104 | PyObject * _obj8 = 0; | |
1105 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | if (_argo1) { | |
1118 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1119 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1121 | return NULL; | |
1122 | } | |
1123 | } | |
1124 | { | |
1125 | _arg3 = wxString_in_helper(_obj3); | |
1126 | if (_arg3 == NULL) | |
1127 | return NULL; | |
1128 | } | |
1129 | if (_obj4) | |
1130 | { | |
1131 | _arg4 = &temp; | |
1132 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1133 | return NULL; | |
1134 | } | |
1135 | if (_obj5) | |
1136 | { | |
1137 | _arg5 = &temp0; | |
1138 | if (! wxSize_helper(_obj5, &_arg5)) | |
1139 | return NULL; | |
1140 | } | |
1141 | if (_argo7) { | |
1142 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1144 | return NULL; | |
1145 | } | |
1146 | } | |
1147 | if (_obj8) | |
1148 | { | |
1149 | _arg8 = wxString_in_helper(_obj8); | |
1150 | if (_arg8 == NULL) | |
1151 | return NULL; | |
1152 | } | |
1153 | { | |
1154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1155 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
1156 | ||
1157 | wxPyEndAllowThreads(__tstate); | |
1158 | if (PyErr_Occurred()) return NULL; | |
1159 | } _resultobj = Py_BuildValue("i",_result); | |
1160 | { | |
1161 | if (_obj3) | |
1162 | delete _arg3; | |
1163 | } | |
1164 | { | |
1165 | if (_obj8) | |
1166 | delete _arg8; | |
1167 | } | |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
1171 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) | |
1172 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject * _resultobj; | |
1174 | wxButton * _arg0; | |
1175 | PyObject * _argo0 = 0; | |
1176 | char *_kwnames[] = { "self", NULL }; | |
1177 | ||
1178 | self = self; | |
1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) | |
1180 | return NULL; | |
1181 | if (_argo0) { | |
1182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); | |
1185 | return NULL; | |
1186 | } | |
1187 | } | |
1188 | { | |
1189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1190 | wxButton_SetDefault(_arg0); | |
1191 | ||
1192 | wxPyEndAllowThreads(__tstate); | |
1193 | if (PyErr_Occurred()) return NULL; | |
1194 | } Py_INCREF(Py_None); | |
1195 | _resultobj = Py_None; | |
1196 | return _resultobj; | |
1197 | } | |
1198 | ||
1199 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1200 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1201 | PyObject * _resultobj; | |
1202 | wxButton * _arg0; | |
1203 | wxColour * _arg1; | |
1204 | PyObject * _argo0 = 0; | |
1205 | wxColour temp; | |
1206 | PyObject * _obj1 = 0; | |
1207 | char *_kwnames[] = { "self","colour", NULL }; | |
1208 | ||
1209 | self = self; | |
1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1211 | return NULL; | |
1212 | if (_argo0) { | |
1213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1216 | return NULL; | |
1217 | } | |
1218 | } | |
1219 | { | |
1220 | _arg1 = &temp; | |
1221 | if (! wxColour_helper(_obj1, &_arg1)) | |
1222 | return NULL; | |
1223 | } | |
1224 | { | |
1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1226 | wxButton_SetBackgroundColour(_arg0,*_arg1); | |
1227 | ||
1228 | wxPyEndAllowThreads(__tstate); | |
1229 | if (PyErr_Occurred()) return NULL; | |
1230 | } Py_INCREF(Py_None); | |
1231 | _resultobj = Py_None; | |
1232 | return _resultobj; | |
1233 | } | |
1234 | ||
1235 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1236 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1237 | PyObject * _resultobj; | |
1238 | wxButton * _arg0; | |
1239 | wxColour * _arg1; | |
1240 | PyObject * _argo0 = 0; | |
1241 | wxColour temp; | |
1242 | PyObject * _obj1 = 0; | |
1243 | char *_kwnames[] = { "self","colour", NULL }; | |
1244 | ||
1245 | self = self; | |
1246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
1247 | return NULL; | |
1248 | if (_argo0) { | |
1249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1252 | return NULL; | |
1253 | } | |
1254 | } | |
1255 | { | |
1256 | _arg1 = &temp; | |
1257 | if (! wxColour_helper(_obj1, &_arg1)) | |
1258 | return NULL; | |
1259 | } | |
1260 | { | |
1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1262 | wxButton_SetForegroundColour(_arg0,*_arg1); | |
1263 | ||
1264 | wxPyEndAllowThreads(__tstate); | |
1265 | if (PyErr_Occurred()) return NULL; | |
1266 | } Py_INCREF(Py_None); | |
1267 | _resultobj = Py_None; | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
1271 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | wxSize * _result; | |
1274 | char *_kwnames[] = { NULL }; | |
1275 | char _ptemp[128]; | |
1276 | ||
1277 | self = self; | |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1279 | return NULL; | |
1280 | { | |
1281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1282 | _result = new wxSize (wxButton::GetDefaultSize()); | |
1283 | ||
1284 | wxPyEndAllowThreads(__tstate); | |
1285 | if (PyErr_Occurred()) return NULL; | |
1286 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1287 | _resultobj = Py_BuildValue("s",_ptemp); | |
1288 | return _resultobj; | |
1289 | } | |
1290 | ||
1291 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1292 | wxBitmapButton *src; | |
1293 | wxButton *dest; | |
1294 | src = (wxBitmapButton *) ptr; | |
1295 | dest = (wxButton *) src; | |
1296 | return (void *) dest; | |
1297 | } | |
1298 | ||
1299 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1300 | wxBitmapButton *src; | |
1301 | wxControl *dest; | |
1302 | src = (wxBitmapButton *) ptr; | |
1303 | dest = (wxControl *) src; | |
1304 | return (void *) dest; | |
1305 | } | |
1306 | ||
1307 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1308 | wxBitmapButton *src; | |
1309 | wxWindow *dest; | |
1310 | src = (wxBitmapButton *) ptr; | |
1311 | dest = (wxWindow *) src; | |
1312 | return (void *) dest; | |
1313 | } | |
1314 | ||
1315 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1316 | wxBitmapButton *src; | |
1317 | wxEvtHandler *dest; | |
1318 | src = (wxBitmapButton *) ptr; | |
1319 | dest = (wxEvtHandler *) src; | |
1320 | return (void *) dest; | |
1321 | } | |
1322 | ||
1323 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1324 | wxBitmapButton *src; | |
1325 | wxObject *dest; | |
1326 | src = (wxBitmapButton *) ptr; | |
1327 | dest = (wxObject *) src; | |
1328 | return (void *) dest; | |
1329 | } | |
1330 | ||
1331 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1332 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1333 | PyObject * _resultobj; | |
1334 | wxBitmapButton * _result; | |
1335 | wxWindow * _arg0; | |
1336 | wxWindowID _arg1; | |
1337 | wxBitmap * _arg2; | |
1338 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1339 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1340 | long _arg5 = (long ) wxBU_AUTODRAW; | |
1341 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1342 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; | |
1343 | PyObject * _argo0 = 0; | |
1344 | PyObject * _argo2 = 0; | |
1345 | wxPoint temp; | |
1346 | PyObject * _obj3 = 0; | |
1347 | wxSize temp0; | |
1348 | PyObject * _obj4 = 0; | |
1349 | PyObject * _argo6 = 0; | |
1350 | PyObject * _obj7 = 0; | |
1351 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1352 | char _ptemp[128]; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
1356 | return NULL; | |
1357 | if (_argo0) { | |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); | |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
1364 | if (_argo2) { | |
1365 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); | |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
1370 | if (_obj3) | |
1371 | { | |
1372 | _arg3 = &temp; | |
1373 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1374 | return NULL; | |
1375 | } | |
1376 | if (_obj4) | |
1377 | { | |
1378 | _arg4 = &temp0; | |
1379 | if (! wxSize_helper(_obj4, &_arg4)) | |
1380 | return NULL; | |
1381 | } | |
1382 | if (_argo6) { | |
1383 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); | |
1385 | return NULL; | |
1386 | } | |
1387 | } | |
1388 | if (_obj7) | |
1389 | { | |
1390 | _arg7 = wxString_in_helper(_obj7); | |
1391 | if (_arg7 == NULL) | |
1392 | return NULL; | |
1393 | } | |
1394 | { | |
1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1396 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1397 | ||
1398 | wxPyEndAllowThreads(__tstate); | |
1399 | if (PyErr_Occurred()) return NULL; | |
1400 | } if (_result) { | |
1401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1402 | _resultobj = Py_BuildValue("s",_ptemp); | |
1403 | } else { | |
1404 | Py_INCREF(Py_None); | |
1405 | _resultobj = Py_None; | |
1406 | } | |
1407 | { | |
1408 | if (_obj7) | |
1409 | delete _arg7; | |
1410 | } | |
1411 | return _resultobj; | |
1412 | } | |
1413 | ||
1414 | #define new_wxPreBitmapButton() (new wxBitmapButton()) | |
1415 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1416 | PyObject * _resultobj; | |
1417 | wxBitmapButton * _result; | |
1418 | char *_kwnames[] = { NULL }; | |
1419 | char _ptemp[128]; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1423 | return NULL; | |
1424 | { | |
1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1426 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); | |
1427 | ||
1428 | wxPyEndAllowThreads(__tstate); | |
1429 | if (PyErr_Occurred()) return NULL; | |
1430 | } if (_result) { | |
1431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1432 | _resultobj = Py_BuildValue("s",_ptemp); | |
1433 | } else { | |
1434 | Py_INCREF(Py_None); | |
1435 | _resultobj = Py_None; | |
1436 | } | |
1437 | return _resultobj; | |
1438 | } | |
1439 | ||
1440 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1441 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1442 | PyObject * _resultobj; | |
1443 | bool _result; | |
1444 | wxBitmapButton * _arg0; | |
1445 | wxWindow * _arg1; | |
1446 | wxWindowID _arg2; | |
1447 | wxBitmap * _arg3; | |
1448 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1449 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1450 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1451 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
1452 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; | |
1453 | PyObject * _argo0 = 0; | |
1454 | PyObject * _argo1 = 0; | |
1455 | PyObject * _argo3 = 0; | |
1456 | wxPoint temp; | |
1457 | PyObject * _obj4 = 0; | |
1458 | wxSize temp0; | |
1459 | PyObject * _obj5 = 0; | |
1460 | PyObject * _argo7 = 0; | |
1461 | PyObject * _obj8 = 0; | |
1462 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; | |
1463 | ||
1464 | self = self; | |
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
1466 | return NULL; | |
1467 | if (_argo0) { | |
1468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1471 | return NULL; | |
1472 | } | |
1473 | } | |
1474 | if (_argo1) { | |
1475 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1478 | return NULL; | |
1479 | } | |
1480 | } | |
1481 | if (_argo3) { | |
1482 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | if (_obj4) | |
1488 | { | |
1489 | _arg4 = &temp; | |
1490 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1491 | return NULL; | |
1492 | } | |
1493 | if (_obj5) | |
1494 | { | |
1495 | _arg5 = &temp0; | |
1496 | if (! wxSize_helper(_obj5, &_arg5)) | |
1497 | return NULL; | |
1498 | } | |
1499 | if (_argo7) { | |
1500 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1502 | return NULL; | |
1503 | } | |
1504 | } | |
1505 | if (_obj8) | |
1506 | { | |
1507 | _arg8 = wxString_in_helper(_obj8); | |
1508 | if (_arg8 == NULL) | |
1509 | return NULL; | |
1510 | } | |
1511 | { | |
1512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1513 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
1514 | ||
1515 | wxPyEndAllowThreads(__tstate); | |
1516 | if (PyErr_Occurred()) return NULL; | |
1517 | } _resultobj = Py_BuildValue("i",_result); | |
1518 | { | |
1519 | if (_obj8) | |
1520 | delete _arg8; | |
1521 | } | |
1522 | return _resultobj; | |
1523 | } | |
1524 | ||
1525 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) | |
1526 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1527 | PyObject * _resultobj; | |
1528 | wxBitmap * _result; | |
1529 | wxBitmapButton * _arg0; | |
1530 | PyObject * _argo0 = 0; | |
1531 | char *_kwnames[] = { "self", NULL }; | |
1532 | char _ptemp[128]; | |
1533 | ||
1534 | self = self; | |
1535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) | |
1536 | return NULL; | |
1537 | if (_argo0) { | |
1538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); | |
1541 | return NULL; | |
1542 | } | |
1543 | } | |
1544 | { | |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1546 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) return NULL; | |
1550 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1551 | _resultobj = Py_BuildValue("s",_ptemp); | |
1552 | return _resultobj; | |
1553 | } | |
1554 | ||
1555 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) | |
1556 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1557 | PyObject * _resultobj; | |
1558 | wxBitmap * _result; | |
1559 | wxBitmapButton * _arg0; | |
1560 | PyObject * _argo0 = 0; | |
1561 | char *_kwnames[] = { "self", NULL }; | |
1562 | char _ptemp[128]; | |
1563 | ||
1564 | self = self; | |
1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) | |
1566 | return NULL; | |
1567 | if (_argo0) { | |
1568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1571 | return NULL; | |
1572 | } | |
1573 | } | |
1574 | { | |
1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1576 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); | |
1577 | ||
1578 | wxPyEndAllowThreads(__tstate); | |
1579 | if (PyErr_Occurred()) return NULL; | |
1580 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1581 | _resultobj = Py_BuildValue("s",_ptemp); | |
1582 | return _resultobj; | |
1583 | } | |
1584 | ||
1585 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
1586 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject * _resultobj; | |
1588 | wxBitmap * _result; | |
1589 | wxBitmapButton * _arg0; | |
1590 | PyObject * _argo0 = 0; | |
1591 | char *_kwnames[] = { "self", NULL }; | |
1592 | char _ptemp[128]; | |
1593 | ||
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) | |
1596 | return NULL; | |
1597 | if (_argo0) { | |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); | |
1601 | return NULL; | |
1602 | } | |
1603 | } | |
1604 | { | |
1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1606 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); | |
1607 | ||
1608 | wxPyEndAllowThreads(__tstate); | |
1609 | if (PyErr_Occurred()) return NULL; | |
1610 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1611 | _resultobj = Py_BuildValue("s",_ptemp); | |
1612 | return _resultobj; | |
1613 | } | |
1614 | ||
1615 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
1616 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | wxBitmap * _result; | |
1619 | wxBitmapButton * _arg0; | |
1620 | PyObject * _argo0 = 0; | |
1621 | char *_kwnames[] = { "self", NULL }; | |
1622 | char _ptemp[128]; | |
1623 | ||
1624 | self = self; | |
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) | |
1626 | return NULL; | |
1627 | if (_argo0) { | |
1628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); | |
1631 | return NULL; | |
1632 | } | |
1633 | } | |
1634 | { | |
1635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1636 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); | |
1637 | ||
1638 | wxPyEndAllowThreads(__tstate); | |
1639 | if (PyErr_Occurred()) return NULL; | |
1640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1641 | _resultobj = Py_BuildValue("s",_ptemp); | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
1646 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject * _resultobj; | |
1648 | wxBitmapButton * _arg0; | |
1649 | wxBitmap * _arg1; | |
1650 | PyObject * _argo0 = 0; | |
1651 | PyObject * _argo1 = 0; | |
1652 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1653 | ||
1654 | self = self; | |
1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) | |
1656 | return NULL; | |
1657 | if (_argo0) { | |
1658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); | |
1661 | return NULL; | |
1662 | } | |
1663 | } | |
1664 | if (_argo1) { | |
1665 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); | |
1667 | return NULL; | |
1668 | } | |
1669 | } | |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) return NULL; | |
1676 | } Py_INCREF(Py_None); | |
1677 | _resultobj = Py_None; | |
1678 | return _resultobj; | |
1679 | } | |
1680 | ||
1681 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
1682 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1683 | PyObject * _resultobj; | |
1684 | wxBitmapButton * _arg0; | |
1685 | wxBitmap * _arg1; | |
1686 | PyObject * _argo0 = 0; | |
1687 | PyObject * _argo1 = 0; | |
1688 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1689 | ||
1690 | self = self; | |
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) | |
1692 | return NULL; | |
1693 | if (_argo0) { | |
1694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); | |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
1700 | if (_argo1) { | |
1701 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); | |
1703 | return NULL; | |
1704 | } | |
1705 | } | |
1706 | { | |
1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1708 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); | |
1709 | ||
1710 | wxPyEndAllowThreads(__tstate); | |
1711 | if (PyErr_Occurred()) return NULL; | |
1712 | } Py_INCREF(Py_None); | |
1713 | _resultobj = Py_None; | |
1714 | return _resultobj; | |
1715 | } | |
1716 | ||
1717 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
1718 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1719 | PyObject * _resultobj; | |
1720 | wxBitmapButton * _arg0; | |
1721 | wxBitmap * _arg1; | |
1722 | PyObject * _argo0 = 0; | |
1723 | PyObject * _argo1 = 0; | |
1724 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1725 | ||
1726 | self = self; | |
1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) | |
1728 | return NULL; | |
1729 | if (_argo0) { | |
1730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); | |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
1736 | if (_argo1) { | |
1737 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); | |
1739 | return NULL; | |
1740 | } | |
1741 | } | |
1742 | { | |
1743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1744 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); | |
1745 | ||
1746 | wxPyEndAllowThreads(__tstate); | |
1747 | if (PyErr_Occurred()) return NULL; | |
1748 | } Py_INCREF(Py_None); | |
1749 | _resultobj = Py_None; | |
1750 | return _resultobj; | |
1751 | } | |
1752 | ||
1753 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) | |
1754 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1755 | PyObject * _resultobj; | |
1756 | wxBitmapButton * _arg0; | |
1757 | wxBitmap * _arg1; | |
1758 | PyObject * _argo0 = 0; | |
1759 | PyObject * _argo1 = 0; | |
1760 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1761 | ||
1762 | self = self; | |
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) | |
1764 | return NULL; | |
1765 | if (_argo0) { | |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); | |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
1772 | if (_argo1) { | |
1773 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); | |
1775 | return NULL; | |
1776 | } | |
1777 | } | |
1778 | { | |
1779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1780 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); | |
1781 | ||
1782 | wxPyEndAllowThreads(__tstate); | |
1783 | if (PyErr_Occurred()) return NULL; | |
1784 | } Py_INCREF(Py_None); | |
1785 | _resultobj = Py_None; | |
1786 | return _resultobj; | |
1787 | } | |
1788 | ||
1789 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
1790 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject * _resultobj; | |
1792 | wxBitmapButton * _arg0; | |
1793 | int _arg1; | |
1794 | int _arg2; | |
1795 | PyObject * _argo0 = 0; | |
1796 | char *_kwnames[] = { "self","x","y", NULL }; | |
1797 | ||
1798 | self = self; | |
1799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1800 | return NULL; | |
1801 | if (_argo0) { | |
1802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1805 | return NULL; | |
1806 | } | |
1807 | } | |
1808 | { | |
1809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1810 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); | |
1811 | ||
1812 | wxPyEndAllowThreads(__tstate); | |
1813 | if (PyErr_Occurred()) return NULL; | |
1814 | } Py_INCREF(Py_None); | |
1815 | _resultobj = Py_None; | |
1816 | return _resultobj; | |
1817 | } | |
1818 | ||
1819 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1820 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject * _resultobj; | |
1822 | int _result; | |
1823 | wxBitmapButton * _arg0; | |
1824 | PyObject * _argo0 = 0; | |
1825 | char *_kwnames[] = { "self", NULL }; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1829 | return NULL; | |
1830 | if (_argo0) { | |
1831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1834 | return NULL; | |
1835 | } | |
1836 | } | |
1837 | { | |
1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1839 | _result = (int )wxBitmapButton_GetMarginX(_arg0); | |
1840 | ||
1841 | wxPyEndAllowThreads(__tstate); | |
1842 | if (PyErr_Occurred()) return NULL; | |
1843 | } _resultobj = Py_BuildValue("i",_result); | |
1844 | return _resultobj; | |
1845 | } | |
1846 | ||
1847 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1848 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject * _resultobj; | |
1850 | int _result; | |
1851 | wxBitmapButton * _arg0; | |
1852 | PyObject * _argo0 = 0; | |
1853 | char *_kwnames[] = { "self", NULL }; | |
1854 | ||
1855 | self = self; | |
1856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1857 | return NULL; | |
1858 | if (_argo0) { | |
1859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1862 | return NULL; | |
1863 | } | |
1864 | } | |
1865 | { | |
1866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1867 | _result = (int )wxBitmapButton_GetMarginY(_arg0); | |
1868 | ||
1869 | wxPyEndAllowThreads(__tstate); | |
1870 | if (PyErr_Occurred()) return NULL; | |
1871 | } _resultobj = Py_BuildValue("i",_result); | |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
1875 | static void *SwigwxCheckBoxTowxControl(void *ptr) { | |
1876 | wxCheckBox *src; | |
1877 | wxControl *dest; | |
1878 | src = (wxCheckBox *) ptr; | |
1879 | dest = (wxControl *) src; | |
1880 | return (void *) dest; | |
1881 | } | |
1882 | ||
1883 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1884 | wxCheckBox *src; | |
1885 | wxWindow *dest; | |
1886 | src = (wxCheckBox *) ptr; | |
1887 | dest = (wxWindow *) src; | |
1888 | return (void *) dest; | |
1889 | } | |
1890 | ||
1891 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1892 | wxCheckBox *src; | |
1893 | wxEvtHandler *dest; | |
1894 | src = (wxCheckBox *) ptr; | |
1895 | dest = (wxEvtHandler *) src; | |
1896 | return (void *) dest; | |
1897 | } | |
1898 | ||
1899 | static void *SwigwxCheckBoxTowxObject(void *ptr) { | |
1900 | wxCheckBox *src; | |
1901 | wxObject *dest; | |
1902 | src = (wxCheckBox *) ptr; | |
1903 | dest = (wxObject *) src; | |
1904 | return (void *) dest; | |
1905 | } | |
1906 | ||
1907 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1908 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject * _resultobj; | |
1910 | wxCheckBox * _result; | |
1911 | wxWindow * _arg0; | |
1912 | wxWindowID _arg1; | |
1913 | wxString * _arg2; | |
1914 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1915 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1916 | long _arg5 = (long ) 0; | |
1917 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
1918 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; | |
1919 | PyObject * _argo0 = 0; | |
1920 | PyObject * _obj2 = 0; | |
1921 | wxPoint temp; | |
1922 | PyObject * _obj3 = 0; | |
1923 | wxSize temp0; | |
1924 | PyObject * _obj4 = 0; | |
1925 | PyObject * _argo6 = 0; | |
1926 | PyObject * _obj7 = 0; | |
1927 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; | |
1928 | char _ptemp[128]; | |
1929 | ||
1930 | self = self; | |
1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
1932 | return NULL; | |
1933 | if (_argo0) { | |
1934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); | |
1937 | return NULL; | |
1938 | } | |
1939 | } | |
1940 | { | |
1941 | _arg2 = wxString_in_helper(_obj2); | |
1942 | if (_arg2 == NULL) | |
1943 | return NULL; | |
1944 | } | |
1945 | if (_obj3) | |
1946 | { | |
1947 | _arg3 = &temp; | |
1948 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1949 | return NULL; | |
1950 | } | |
1951 | if (_obj4) | |
1952 | { | |
1953 | _arg4 = &temp0; | |
1954 | if (! wxSize_helper(_obj4, &_arg4)) | |
1955 | return NULL; | |
1956 | } | |
1957 | if (_argo6) { | |
1958 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
1959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); | |
1960 | return NULL; | |
1961 | } | |
1962 | } | |
1963 | if (_obj7) | |
1964 | { | |
1965 | _arg7 = wxString_in_helper(_obj7); | |
1966 | if (_arg7 == NULL) | |
1967 | return NULL; | |
1968 | } | |
1969 | { | |
1970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1971 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
1972 | ||
1973 | wxPyEndAllowThreads(__tstate); | |
1974 | if (PyErr_Occurred()) return NULL; | |
1975 | } if (_result) { | |
1976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1977 | _resultobj = Py_BuildValue("s",_ptemp); | |
1978 | } else { | |
1979 | Py_INCREF(Py_None); | |
1980 | _resultobj = Py_None; | |
1981 | } | |
1982 | { | |
1983 | if (_obj2) | |
1984 | delete _arg2; | |
1985 | } | |
1986 | { | |
1987 | if (_obj7) | |
1988 | delete _arg7; | |
1989 | } | |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
1993 | #define new_wxPreCheckBox() (new wxCheckBox()) | |
1994 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject * _resultobj; | |
1996 | wxCheckBox * _result; | |
1997 | char *_kwnames[] = { NULL }; | |
1998 | char _ptemp[128]; | |
1999 | ||
2000 | self = self; | |
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2002 | return NULL; | |
2003 | { | |
2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2005 | _result = (wxCheckBox *)new_wxPreCheckBox(); | |
2006 | ||
2007 | wxPyEndAllowThreads(__tstate); | |
2008 | if (PyErr_Occurred()) return NULL; | |
2009 | } if (_result) { | |
2010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2011 | _resultobj = Py_BuildValue("s",_ptemp); | |
2012 | } else { | |
2013 | Py_INCREF(Py_None); | |
2014 | _resultobj = Py_None; | |
2015 | } | |
2016 | return _resultobj; | |
2017 | } | |
2018 | ||
2019 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2020 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2021 | PyObject * _resultobj; | |
2022 | bool _result; | |
2023 | wxCheckBox * _arg0; | |
2024 | wxWindow * _arg1; | |
2025 | wxWindowID _arg2; | |
2026 | wxString * _arg3; | |
2027 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2028 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2029 | long _arg6 = (long ) 0; | |
2030 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2031 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; | |
2032 | PyObject * _argo0 = 0; | |
2033 | PyObject * _argo1 = 0; | |
2034 | PyObject * _obj3 = 0; | |
2035 | wxPoint temp; | |
2036 | PyObject * _obj4 = 0; | |
2037 | wxSize temp0; | |
2038 | PyObject * _obj5 = 0; | |
2039 | PyObject * _argo7 = 0; | |
2040 | PyObject * _obj8 = 0; | |
2041 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; | |
2042 | ||
2043 | self = self; | |
2044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
2045 | return NULL; | |
2046 | if (_argo0) { | |
2047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2050 | return NULL; | |
2051 | } | |
2052 | } | |
2053 | if (_argo1) { | |
2054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2057 | return NULL; | |
2058 | } | |
2059 | } | |
2060 | { | |
2061 | _arg3 = wxString_in_helper(_obj3); | |
2062 | if (_arg3 == NULL) | |
2063 | return NULL; | |
2064 | } | |
2065 | if (_obj4) | |
2066 | { | |
2067 | _arg4 = &temp; | |
2068 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2069 | return NULL; | |
2070 | } | |
2071 | if (_obj5) | |
2072 | { | |
2073 | _arg5 = &temp0; | |
2074 | if (! wxSize_helper(_obj5, &_arg5)) | |
2075 | return NULL; | |
2076 | } | |
2077 | if (_argo7) { | |
2078 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2080 | return NULL; | |
2081 | } | |
2082 | } | |
2083 | if (_obj8) | |
2084 | { | |
2085 | _arg8 = wxString_in_helper(_obj8); | |
2086 | if (_arg8 == NULL) | |
2087 | return NULL; | |
2088 | } | |
2089 | { | |
2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2091 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
2092 | ||
2093 | wxPyEndAllowThreads(__tstate); | |
2094 | if (PyErr_Occurred()) return NULL; | |
2095 | } _resultobj = Py_BuildValue("i",_result); | |
2096 | { | |
2097 | if (_obj3) | |
2098 | delete _arg3; | |
2099 | } | |
2100 | { | |
2101 | if (_obj8) | |
2102 | delete _arg8; | |
2103 | } | |
2104 | return _resultobj; | |
2105 | } | |
2106 | ||
2107 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
2108 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject * _resultobj; | |
2110 | bool _result; | |
2111 | wxCheckBox * _arg0; | |
2112 | PyObject * _argo0 = 0; | |
2113 | char *_kwnames[] = { "self", NULL }; | |
2114 | ||
2115 | self = self; | |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) | |
2117 | return NULL; | |
2118 | if (_argo0) { | |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); | |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
2125 | { | |
2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2127 | _result = (bool )wxCheckBox_GetValue(_arg0); | |
2128 | ||
2129 | wxPyEndAllowThreads(__tstate); | |
2130 | if (PyErr_Occurred()) return NULL; | |
2131 | } _resultobj = Py_BuildValue("i",_result); | |
2132 | return _resultobj; | |
2133 | } | |
2134 | ||
2135 | #define wxCheckBox_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
2136 | static PyObject *_wrap_wxCheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | bool _result; | |
2139 | wxCheckBox * _arg0; | |
2140 | PyObject * _argo0 = 0; | |
2141 | char *_kwnames[] = { "self", NULL }; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_IsChecked",_kwnames,&_argo0)) | |
2145 | return NULL; | |
2146 | if (_argo0) { | |
2147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_IsChecked. Expected _wxCheckBox_p."); | |
2150 | return NULL; | |
2151 | } | |
2152 | } | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | _result = (bool )wxCheckBox_IsChecked(_arg0); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) return NULL; | |
2159 | } _resultobj = Py_BuildValue("i",_result); | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
2163 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2164 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2165 | PyObject * _resultobj; | |
2166 | wxCheckBox * _arg0; | |
2167 | bool _arg1; | |
2168 | PyObject * _argo0 = 0; | |
2169 | int tempbool1; | |
2170 | char *_kwnames[] = { "self","state", NULL }; | |
2171 | ||
2172 | self = self; | |
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) | |
2174 | return NULL; | |
2175 | if (_argo0) { | |
2176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); | |
2179 | return NULL; | |
2180 | } | |
2181 | } | |
2182 | _arg1 = (bool ) tempbool1; | |
2183 | { | |
2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2185 | wxCheckBox_SetValue(_arg0,_arg1); | |
2186 | ||
2187 | wxPyEndAllowThreads(__tstate); | |
2188 | if (PyErr_Occurred()) return NULL; | |
2189 | } Py_INCREF(Py_None); | |
2190 | _resultobj = Py_None; | |
2191 | return _resultobj; | |
2192 | } | |
2193 | ||
2194 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { | |
2195 | wxChoice *src; | |
2196 | wxControlWithItems *dest; | |
2197 | src = (wxChoice *) ptr; | |
2198 | dest = (wxControlWithItems *) src; | |
2199 | return (void *) dest; | |
2200 | } | |
2201 | ||
2202 | static void *SwigwxChoiceTowxControl(void *ptr) { | |
2203 | wxChoice *src; | |
2204 | wxControl *dest; | |
2205 | src = (wxChoice *) ptr; | |
2206 | dest = (wxControl *) src; | |
2207 | return (void *) dest; | |
2208 | } | |
2209 | ||
2210 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2211 | wxChoice *src; | |
2212 | wxWindow *dest; | |
2213 | src = (wxChoice *) ptr; | |
2214 | dest = (wxWindow *) src; | |
2215 | return (void *) dest; | |
2216 | } | |
2217 | ||
2218 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2219 | wxChoice *src; | |
2220 | wxEvtHandler *dest; | |
2221 | src = (wxChoice *) ptr; | |
2222 | dest = (wxEvtHandler *) src; | |
2223 | return (void *) dest; | |
2224 | } | |
2225 | ||
2226 | static void *SwigwxChoiceTowxObject(void *ptr) { | |
2227 | wxChoice *src; | |
2228 | wxObject *dest; | |
2229 | src = (wxChoice *) ptr; | |
2230 | dest = (wxObject *) src; | |
2231 | return (void *) dest; | |
2232 | } | |
2233 | ||
2234 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2235 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2236 | PyObject * _resultobj; | |
2237 | wxChoice * _result; | |
2238 | wxWindow * _arg0; | |
2239 | wxWindowID _arg1; | |
2240 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2241 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2242 | int _arg4 = (int ) 0; | |
2243 | wxString * _arg5 = (wxString *) NULL; | |
2244 | long _arg6 = (long ) 0; | |
2245 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
2246 | wxString * _arg8 = (wxString *) &wxPyChoiceNameStr; | |
2247 | PyObject * _argo0 = 0; | |
2248 | wxPoint temp; | |
2249 | PyObject * _obj2 = 0; | |
2250 | wxSize temp0; | |
2251 | PyObject * _obj3 = 0; | |
2252 | PyObject * _obj5 = 0; | |
2253 | PyObject * _argo7 = 0; | |
2254 | PyObject * _obj8 = 0; | |
2255 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
2256 | char _ptemp[128]; | |
2257 | ||
2258 | self = self; | |
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
2260 | return NULL; | |
2261 | if (_argo0) { | |
2262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); | |
2265 | return NULL; | |
2266 | } | |
2267 | } | |
2268 | if (_obj2) | |
2269 | { | |
2270 | _arg2 = &temp; | |
2271 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2272 | return NULL; | |
2273 | } | |
2274 | if (_obj3) | |
2275 | { | |
2276 | _arg3 = &temp0; | |
2277 | if (! wxSize_helper(_obj3, &_arg3)) | |
2278 | return NULL; | |
2279 | } | |
2280 | if (_obj5) | |
2281 | { | |
2282 | _arg5 = wxString_LIST_helper(_obj5); | |
2283 | if (_arg5 == NULL) { | |
2284 | return NULL; | |
2285 | } | |
2286 | } | |
2287 | if (_argo7) { | |
2288 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); | |
2290 | return NULL; | |
2291 | } | |
2292 | } | |
2293 | if (_obj8) | |
2294 | { | |
2295 | _arg8 = wxString_in_helper(_obj8); | |
2296 | if (_arg8 == NULL) | |
2297 | return NULL; | |
2298 | } | |
2299 | { | |
2300 | if (_obj5) { | |
2301 | _arg4 = PyList_Size(_obj5); | |
2302 | } | |
2303 | else { | |
2304 | _arg4 = 0; | |
2305 | } | |
2306 | } | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) return NULL; | |
2313 | } if (_result) { | |
2314 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2315 | _resultobj = Py_BuildValue("s",_ptemp); | |
2316 | } else { | |
2317 | Py_INCREF(Py_None); | |
2318 | _resultobj = Py_None; | |
2319 | } | |
2320 | { | |
2321 | delete [] _arg5; | |
2322 | } | |
2323 | { | |
2324 | if (_obj8) | |
2325 | delete _arg8; | |
2326 | } | |
2327 | return _resultobj; | |
2328 | } | |
2329 | ||
2330 | #define new_wxPreChoice() (new wxChoice()) | |
2331 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2332 | PyObject * _resultobj; | |
2333 | wxChoice * _result; | |
2334 | char *_kwnames[] = { NULL }; | |
2335 | char _ptemp[128]; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) | |
2339 | return NULL; | |
2340 | { | |
2341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2342 | _result = (wxChoice *)new_wxPreChoice(); | |
2343 | ||
2344 | wxPyEndAllowThreads(__tstate); | |
2345 | if (PyErr_Occurred()) return NULL; | |
2346 | } if (_result) { | |
2347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2348 | _resultobj = Py_BuildValue("s",_ptemp); | |
2349 | } else { | |
2350 | Py_INCREF(Py_None); | |
2351 | _resultobj = Py_None; | |
2352 | } | |
2353 | return _resultobj; | |
2354 | } | |
2355 | ||
2356 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2357 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2358 | PyObject * _resultobj; | |
2359 | bool _result; | |
2360 | wxChoice * _arg0; | |
2361 | wxWindow * _arg1; | |
2362 | wxWindowID _arg2; | |
2363 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2364 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2365 | int _arg5 = (int ) 0; | |
2366 | wxString * _arg6 = (wxString *) NULL; | |
2367 | long _arg7 = (long ) 0; | |
2368 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2369 | wxString * _arg9 = (wxString *) &wxPyChoiceNameStr; | |
2370 | PyObject * _argo0 = 0; | |
2371 | PyObject * _argo1 = 0; | |
2372 | wxPoint temp; | |
2373 | PyObject * _obj3 = 0; | |
2374 | wxSize temp0; | |
2375 | PyObject * _obj4 = 0; | |
2376 | PyObject * _obj6 = 0; | |
2377 | PyObject * _argo8 = 0; | |
2378 | PyObject * _obj9 = 0; | |
2379 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
2380 | ||
2381 | self = self; | |
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
2383 | return NULL; | |
2384 | if (_argo0) { | |
2385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2388 | return NULL; | |
2389 | } | |
2390 | } | |
2391 | if (_argo1) { | |
2392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2395 | return NULL; | |
2396 | } | |
2397 | } | |
2398 | if (_obj3) | |
2399 | { | |
2400 | _arg3 = &temp; | |
2401 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2402 | return NULL; | |
2403 | } | |
2404 | if (_obj4) | |
2405 | { | |
2406 | _arg4 = &temp0; | |
2407 | if (! wxSize_helper(_obj4, &_arg4)) | |
2408 | return NULL; | |
2409 | } | |
2410 | if (_obj6) | |
2411 | { | |
2412 | _arg6 = wxString_LIST_helper(_obj6); | |
2413 | if (_arg6 == NULL) { | |
2414 | return NULL; | |
2415 | } | |
2416 | } | |
2417 | if (_argo8) { | |
2418 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
2423 | if (_obj9) | |
2424 | { | |
2425 | _arg9 = wxString_in_helper(_obj9); | |
2426 | if (_arg9 == NULL) | |
2427 | return NULL; | |
2428 | } | |
2429 | { | |
2430 | if (_obj6) { | |
2431 | _arg5 = PyList_Size(_obj6); | |
2432 | } | |
2433 | else { | |
2434 | _arg5 = 0; | |
2435 | } | |
2436 | } | |
2437 | { | |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2439 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
2440 | ||
2441 | wxPyEndAllowThreads(__tstate); | |
2442 | if (PyErr_Occurred()) return NULL; | |
2443 | } _resultobj = Py_BuildValue("i",_result); | |
2444 | { | |
2445 | delete [] _arg6; | |
2446 | } | |
2447 | { | |
2448 | if (_obj9) | |
2449 | delete _arg9; | |
2450 | } | |
2451 | return _resultobj; | |
2452 | } | |
2453 | ||
2454 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) | |
2455 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2456 | PyObject * _resultobj; | |
2457 | wxChoice * _arg0; | |
2458 | PyObject * _argo0 = 0; | |
2459 | char *_kwnames[] = { "self", NULL }; | |
2460 | ||
2461 | self = self; | |
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) | |
2463 | return NULL; | |
2464 | if (_argo0) { | |
2465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); | |
2468 | return NULL; | |
2469 | } | |
2470 | } | |
2471 | { | |
2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2473 | wxChoice_Clear(_arg0); | |
2474 | ||
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) return NULL; | |
2477 | } Py_INCREF(Py_None); | |
2478 | _resultobj = Py_None; | |
2479 | return _resultobj; | |
2480 | } | |
2481 | ||
2482 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) | |
2483 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject * _resultobj; | |
2485 | int _result; | |
2486 | wxChoice * _arg0; | |
2487 | PyObject * _argo0 = 0; | |
2488 | char *_kwnames[] = { "self", NULL }; | |
2489 | ||
2490 | self = self; | |
2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) | |
2492 | return NULL; | |
2493 | if (_argo0) { | |
2494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); | |
2497 | return NULL; | |
2498 | } | |
2499 | } | |
2500 | { | |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | _result = (int )wxChoice_GetColumns(_arg0); | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) return NULL; | |
2506 | } _resultobj = Py_BuildValue("i",_result); | |
2507 | return _resultobj; | |
2508 | } | |
2509 | ||
2510 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
2511 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2512 | PyObject * _resultobj; | |
2513 | wxChoice * _arg0; | |
2514 | int _arg1 = (int ) 1; | |
2515 | PyObject * _argo0 = 0; | |
2516 | char *_kwnames[] = { "self","n", NULL }; | |
2517 | ||
2518 | self = self; | |
2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) | |
2520 | return NULL; | |
2521 | if (_argo0) { | |
2522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); | |
2525 | return NULL; | |
2526 | } | |
2527 | } | |
2528 | { | |
2529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2530 | wxChoice_SetColumns(_arg0,_arg1); | |
2531 | ||
2532 | wxPyEndAllowThreads(__tstate); | |
2533 | if (PyErr_Occurred()) return NULL; | |
2534 | } Py_INCREF(Py_None); | |
2535 | _resultobj = Py_None; | |
2536 | return _resultobj; | |
2537 | } | |
2538 | ||
2539 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
2540 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject * _resultobj; | |
2542 | wxChoice * _arg0; | |
2543 | int _arg1; | |
2544 | PyObject * _argo0 = 0; | |
2545 | char *_kwnames[] = { "self","n", NULL }; | |
2546 | ||
2547 | self = self; | |
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2549 | return NULL; | |
2550 | if (_argo0) { | |
2551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); | |
2554 | return NULL; | |
2555 | } | |
2556 | } | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | wxChoice_SetSelection(_arg0,_arg1); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) return NULL; | |
2563 | } Py_INCREF(Py_None); | |
2564 | _resultobj = Py_None; | |
2565 | return _resultobj; | |
2566 | } | |
2567 | ||
2568 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
2569 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2570 | PyObject * _resultobj; | |
2571 | wxChoice * _arg0; | |
2572 | wxString * _arg1; | |
2573 | PyObject * _argo0 = 0; | |
2574 | PyObject * _obj1 = 0; | |
2575 | char *_kwnames[] = { "self","string", NULL }; | |
2576 | ||
2577 | self = self; | |
2578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
2579 | return NULL; | |
2580 | if (_argo0) { | |
2581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); | |
2584 | return NULL; | |
2585 | } | |
2586 | } | |
2587 | { | |
2588 | _arg1 = wxString_in_helper(_obj1); | |
2589 | if (_arg1 == NULL) | |
2590 | return NULL; | |
2591 | } | |
2592 | { | |
2593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2594 | wxChoice_SetStringSelection(_arg0,*_arg1); | |
2595 | ||
2596 | wxPyEndAllowThreads(__tstate); | |
2597 | if (PyErr_Occurred()) return NULL; | |
2598 | } Py_INCREF(Py_None); | |
2599 | _resultobj = Py_None; | |
2600 | { | |
2601 | if (_obj1) | |
2602 | delete _arg1; | |
2603 | } | |
2604 | return _resultobj; | |
2605 | } | |
2606 | ||
2607 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
2608 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject * _resultobj; | |
2610 | wxChoice * _arg0; | |
2611 | int _arg1; | |
2612 | wxString * _arg2; | |
2613 | PyObject * _argo0 = 0; | |
2614 | PyObject * _obj2 = 0; | |
2615 | char *_kwnames[] = { "self","n","s", NULL }; | |
2616 | ||
2617 | self = self; | |
2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2619 | return NULL; | |
2620 | if (_argo0) { | |
2621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
2627 | { | |
2628 | _arg2 = wxString_in_helper(_obj2); | |
2629 | if (_arg2 == NULL) | |
2630 | return NULL; | |
2631 | } | |
2632 | { | |
2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2634 | wxChoice_SetString(_arg0,_arg1,*_arg2); | |
2635 | ||
2636 | wxPyEndAllowThreads(__tstate); | |
2637 | if (PyErr_Occurred()) return NULL; | |
2638 | } Py_INCREF(Py_None); | |
2639 | _resultobj = Py_None; | |
2640 | { | |
2641 | if (_obj2) | |
2642 | delete _arg2; | |
2643 | } | |
2644 | return _resultobj; | |
2645 | } | |
2646 | ||
2647 | static void *SwigwxComboBoxTowxControl(void *ptr) { | |
2648 | wxComboBox *src; | |
2649 | wxControl *dest; | |
2650 | src = (wxComboBox *) ptr; | |
2651 | dest = (wxControl *) src; | |
2652 | return (void *) dest; | |
2653 | } | |
2654 | ||
2655 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2656 | wxComboBox *src; | |
2657 | wxWindow *dest; | |
2658 | src = (wxComboBox *) ptr; | |
2659 | dest = (wxWindow *) src; | |
2660 | return (void *) dest; | |
2661 | } | |
2662 | ||
2663 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2664 | wxComboBox *src; | |
2665 | wxEvtHandler *dest; | |
2666 | src = (wxComboBox *) ptr; | |
2667 | dest = (wxEvtHandler *) src; | |
2668 | return (void *) dest; | |
2669 | } | |
2670 | ||
2671 | static void *SwigwxComboBoxTowxObject(void *ptr) { | |
2672 | wxComboBox *src; | |
2673 | wxObject *dest; | |
2674 | src = (wxComboBox *) ptr; | |
2675 | dest = (wxObject *) src; | |
2676 | return (void *) dest; | |
2677 | } | |
2678 | ||
2679 | #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)) | |
2680 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2681 | PyObject * _resultobj; | |
2682 | wxComboBox * _result; | |
2683 | wxWindow * _arg0; | |
2684 | wxWindowID _arg1; | |
2685 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
2686 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2687 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2688 | int _arg5 = (int ) 0; | |
2689 | wxString * _arg6 = (wxString *) NULL; | |
2690 | long _arg7 = (long ) 0; | |
2691 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
2692 | wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr; | |
2693 | PyObject * _argo0 = 0; | |
2694 | PyObject * _obj2 = 0; | |
2695 | wxPoint temp; | |
2696 | PyObject * _obj3 = 0; | |
2697 | wxSize temp0; | |
2698 | PyObject * _obj4 = 0; | |
2699 | PyObject * _obj6 = 0; | |
2700 | PyObject * _argo8 = 0; | |
2701 | PyObject * _obj9 = 0; | |
2702 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2703 | char _ptemp[128]; | |
2704 | ||
2705 | self = self; | |
2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
2707 | return NULL; | |
2708 | if (_argo0) { | |
2709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); | |
2712 | return NULL; | |
2713 | } | |
2714 | } | |
2715 | if (_obj2) | |
2716 | { | |
2717 | _arg2 = wxString_in_helper(_obj2); | |
2718 | if (_arg2 == NULL) | |
2719 | return NULL; | |
2720 | } | |
2721 | if (_obj3) | |
2722 | { | |
2723 | _arg3 = &temp; | |
2724 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2725 | return NULL; | |
2726 | } | |
2727 | if (_obj4) | |
2728 | { | |
2729 | _arg4 = &temp0; | |
2730 | if (! wxSize_helper(_obj4, &_arg4)) | |
2731 | return NULL; | |
2732 | } | |
2733 | if (_obj6) | |
2734 | { | |
2735 | _arg6 = wxString_LIST_helper(_obj6); | |
2736 | if (_arg6 == NULL) { | |
2737 | return NULL; | |
2738 | } | |
2739 | } | |
2740 | if (_argo8) { | |
2741 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); | |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
2746 | if (_obj9) | |
2747 | { | |
2748 | _arg9 = wxString_in_helper(_obj9); | |
2749 | if (_arg9 == NULL) | |
2750 | return NULL; | |
2751 | } | |
2752 | { | |
2753 | if (_obj6) { | |
2754 | _arg5 = PyList_Size(_obj6); | |
2755 | } | |
2756 | else { | |
2757 | _arg5 = 0; | |
2758 | } | |
2759 | } | |
2760 | { | |
2761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2762 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
2763 | ||
2764 | wxPyEndAllowThreads(__tstate); | |
2765 | if (PyErr_Occurred()) return NULL; | |
2766 | } if (_result) { | |
2767 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2768 | _resultobj = Py_BuildValue("s",_ptemp); | |
2769 | } else { | |
2770 | Py_INCREF(Py_None); | |
2771 | _resultobj = Py_None; | |
2772 | } | |
2773 | { | |
2774 | if (_obj2) | |
2775 | delete _arg2; | |
2776 | } | |
2777 | { | |
2778 | delete [] _arg6; | |
2779 | } | |
2780 | { | |
2781 | if (_obj9) | |
2782 | delete _arg9; | |
2783 | } | |
2784 | return _resultobj; | |
2785 | } | |
2786 | ||
2787 | #define new_wxPreComboBox() (new wxComboBox()) | |
2788 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject * _resultobj; | |
2790 | wxComboBox * _result; | |
2791 | char *_kwnames[] = { NULL }; | |
2792 | char _ptemp[128]; | |
2793 | ||
2794 | self = self; | |
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2796 | return NULL; | |
2797 | { | |
2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2799 | _result = (wxComboBox *)new_wxPreComboBox(); | |
2800 | ||
2801 | wxPyEndAllowThreads(__tstate); | |
2802 | if (PyErr_Occurred()) return NULL; | |
2803 | } if (_result) { | |
2804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2805 | _resultobj = Py_BuildValue("s",_ptemp); | |
2806 | } else { | |
2807 | Py_INCREF(Py_None); | |
2808 | _resultobj = Py_None; | |
2809 | } | |
2810 | return _resultobj; | |
2811 | } | |
2812 | ||
2813 | #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)) | |
2814 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2815 | PyObject * _resultobj; | |
2816 | bool _result; | |
2817 | wxComboBox * _arg0; | |
2818 | wxWindow * _arg1; | |
2819 | wxWindowID _arg2; | |
2820 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
2821 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2822 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2823 | int _arg6 = (int ) 0; | |
2824 | wxString * _arg7 = (wxString *) NULL; | |
2825 | long _arg8 = (long ) 0; | |
2826 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
2827 | wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr; | |
2828 | PyObject * _argo0 = 0; | |
2829 | PyObject * _argo1 = 0; | |
2830 | PyObject * _obj3 = 0; | |
2831 | wxPoint temp; | |
2832 | PyObject * _obj4 = 0; | |
2833 | wxSize temp0; | |
2834 | PyObject * _obj5 = 0; | |
2835 | PyObject * _obj7 = 0; | |
2836 | PyObject * _argo9 = 0; | |
2837 | PyObject * _obj10 = 0; | |
2838 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; | |
2839 | ||
2840 | self = self; | |
2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10)) | |
2842 | return NULL; | |
2843 | if (_argo0) { | |
2844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2847 | return NULL; | |
2848 | } | |
2849 | } | |
2850 | if (_argo1) { | |
2851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | if (_obj3) | |
2858 | { | |
2859 | _arg3 = wxString_in_helper(_obj3); | |
2860 | if (_arg3 == NULL) | |
2861 | return NULL; | |
2862 | } | |
2863 | if (_obj4) | |
2864 | { | |
2865 | _arg4 = &temp; | |
2866 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2867 | return NULL; | |
2868 | } | |
2869 | if (_obj5) | |
2870 | { | |
2871 | _arg5 = &temp0; | |
2872 | if (! wxSize_helper(_obj5, &_arg5)) | |
2873 | return NULL; | |
2874 | } | |
2875 | if (_obj7) | |
2876 | { | |
2877 | _arg7 = wxString_LIST_helper(_obj7); | |
2878 | if (_arg7 == NULL) { | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | if (_argo9) { | |
2883 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2885 | return NULL; | |
2886 | } | |
2887 | } | |
2888 | if (_obj10) | |
2889 | { | |
2890 | _arg10 = wxString_in_helper(_obj10); | |
2891 | if (_arg10 == NULL) | |
2892 | return NULL; | |
2893 | } | |
2894 | { | |
2895 | if (_obj7) { | |
2896 | _arg6 = PyList_Size(_obj7); | |
2897 | } | |
2898 | else { | |
2899 | _arg6 = 0; | |
2900 | } | |
2901 | } | |
2902 | { | |
2903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2904 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); | |
2905 | ||
2906 | wxPyEndAllowThreads(__tstate); | |
2907 | if (PyErr_Occurred()) return NULL; | |
2908 | } _resultobj = Py_BuildValue("i",_result); | |
2909 | { | |
2910 | if (_obj3) | |
2911 | delete _arg3; | |
2912 | } | |
2913 | { | |
2914 | delete [] _arg7; | |
2915 | } | |
2916 | { | |
2917 | if (_obj10) | |
2918 | delete _arg10; | |
2919 | } | |
2920 | return _resultobj; | |
2921 | } | |
2922 | ||
2923 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) | |
2924 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2925 | PyObject * _resultobj; | |
2926 | wxComboBox * _arg0; | |
2927 | PyObject * _argo0 = 0; | |
2928 | char *_kwnames[] = { "self", NULL }; | |
2929 | ||
2930 | self = self; | |
2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) | |
2932 | return NULL; | |
2933 | if (_argo0) { | |
2934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); | |
2937 | return NULL; | |
2938 | } | |
2939 | } | |
2940 | { | |
2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2942 | wxComboBox_Copy(_arg0); | |
2943 | ||
2944 | wxPyEndAllowThreads(__tstate); | |
2945 | if (PyErr_Occurred()) return NULL; | |
2946 | } Py_INCREF(Py_None); | |
2947 | _resultobj = Py_None; | |
2948 | return _resultobj; | |
2949 | } | |
2950 | ||
2951 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
2952 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject * _resultobj; | |
2954 | wxComboBox * _arg0; | |
2955 | PyObject * _argo0 = 0; | |
2956 | char *_kwnames[] = { "self", NULL }; | |
2957 | ||
2958 | self = self; | |
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) | |
2960 | return NULL; | |
2961 | if (_argo0) { | |
2962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); | |
2965 | return NULL; | |
2966 | } | |
2967 | } | |
2968 | { | |
2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2970 | wxComboBox_Cut(_arg0); | |
2971 | ||
2972 | wxPyEndAllowThreads(__tstate); | |
2973 | if (PyErr_Occurred()) return NULL; | |
2974 | } Py_INCREF(Py_None); | |
2975 | _resultobj = Py_None; | |
2976 | return _resultobj; | |
2977 | } | |
2978 | ||
2979 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
2980 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2981 | PyObject * _resultobj; | |
2982 | long _result; | |
2983 | wxComboBox * _arg0; | |
2984 | PyObject * _argo0 = 0; | |
2985 | char *_kwnames[] = { "self", NULL }; | |
2986 | ||
2987 | self = self; | |
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) | |
2989 | return NULL; | |
2990 | if (_argo0) { | |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); | |
2994 | return NULL; | |
2995 | } | |
2996 | } | |
2997 | { | |
2998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2999 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); | |
3000 | ||
3001 | wxPyEndAllowThreads(__tstate); | |
3002 | if (PyErr_Occurred()) return NULL; | |
3003 | } _resultobj = Py_BuildValue("l",_result); | |
3004 | return _resultobj; | |
3005 | } | |
3006 | ||
3007 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
3008 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject * _resultobj; | |
3010 | long _result; | |
3011 | wxComboBox * _arg0; | |
3012 | PyObject * _argo0 = 0; | |
3013 | char *_kwnames[] = { "self", NULL }; | |
3014 | ||
3015 | self = self; | |
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) | |
3017 | return NULL; | |
3018 | if (_argo0) { | |
3019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); | |
3022 | return NULL; | |
3023 | } | |
3024 | } | |
3025 | { | |
3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3027 | _result = (long )wxComboBox_GetLastPosition(_arg0); | |
3028 | ||
3029 | wxPyEndAllowThreads(__tstate); | |
3030 | if (PyErr_Occurred()) return NULL; | |
3031 | } _resultobj = Py_BuildValue("l",_result); | |
3032 | return _resultobj; | |
3033 | } | |
3034 | ||
3035 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
3036 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject * _resultobj; | |
3038 | wxString * _result; | |
3039 | wxComboBox * _arg0; | |
3040 | PyObject * _argo0 = 0; | |
3041 | char *_kwnames[] = { "self", NULL }; | |
3042 | ||
3043 | self = self; | |
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) | |
3045 | return NULL; | |
3046 | if (_argo0) { | |
3047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); | |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
3053 | { | |
3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3055 | _result = new wxString (wxComboBox_GetValue(_arg0)); | |
3056 | ||
3057 | wxPyEndAllowThreads(__tstate); | |
3058 | if (PyErr_Occurred()) return NULL; | |
3059 | }{ | |
3060 | #if wxUSE_UNICODE | |
3061 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
3062 | #else | |
3063 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3064 | #endif | |
3065 | } | |
3066 | { | |
3067 | delete _result; | |
3068 | } | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) | |
3073 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxComboBox * _arg0; | |
3076 | PyObject * _argo0 = 0; | |
3077 | char *_kwnames[] = { "self", NULL }; | |
3078 | ||
3079 | self = self; | |
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) | |
3081 | return NULL; | |
3082 | if (_argo0) { | |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); | |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
3089 | { | |
3090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3091 | wxComboBox_Paste(_arg0); | |
3092 | ||
3093 | wxPyEndAllowThreads(__tstate); | |
3094 | if (PyErr_Occurred()) return NULL; | |
3095 | } Py_INCREF(Py_None); | |
3096 | _resultobj = Py_None; | |
3097 | return _resultobj; | |
3098 | } | |
3099 | ||
3100 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
3101 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3102 | PyObject * _resultobj; | |
3103 | wxComboBox * _arg0; | |
3104 | long _arg1; | |
3105 | long _arg2; | |
3106 | wxString * _arg3; | |
3107 | PyObject * _argo0 = 0; | |
3108 | PyObject * _obj3 = 0; | |
3109 | char *_kwnames[] = { "self","from","to","text", NULL }; | |
3110 | ||
3111 | self = self; | |
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3113 | return NULL; | |
3114 | if (_argo0) { | |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
3122 | _arg3 = wxString_in_helper(_obj3); | |
3123 | if (_arg3 == NULL) | |
3124 | return NULL; | |
3125 | } | |
3126 | { | |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) return NULL; | |
3132 | } Py_INCREF(Py_None); | |
3133 | _resultobj = Py_None; | |
3134 | { | |
3135 | if (_obj3) | |
3136 | delete _arg3; | |
3137 | } | |
3138 | return _resultobj; | |
3139 | } | |
3140 | ||
3141 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
3142 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | wxComboBox * _arg0; | |
3145 | long _arg1; | |
3146 | long _arg2; | |
3147 | PyObject * _argo0 = 0; | |
3148 | char *_kwnames[] = { "self","from","to", NULL }; | |
3149 | ||
3150 | self = self; | |
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3152 | return NULL; | |
3153 | if (_argo0) { | |
3154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); | |
3157 | return NULL; | |
3158 | } | |
3159 | } | |
3160 | { | |
3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3162 | wxComboBox_Remove(_arg0,_arg1,_arg2); | |
3163 | ||
3164 | wxPyEndAllowThreads(__tstate); | |
3165 | if (PyErr_Occurred()) return NULL; | |
3166 | } Py_INCREF(Py_None); | |
3167 | _resultobj = Py_None; | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
3172 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3173 | PyObject * _resultobj; | |
3174 | wxComboBox * _arg0; | |
3175 | long _arg1; | |
3176 | PyObject * _argo0 = 0; | |
3177 | char *_kwnames[] = { "self","pos", NULL }; | |
3178 | ||
3179 | self = self; | |
3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
3181 | return NULL; | |
3182 | if (_argo0) { | |
3183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); | |
3186 | return NULL; | |
3187 | } | |
3188 | } | |
3189 | { | |
3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3191 | wxComboBox_SetInsertionPoint(_arg0,_arg1); | |
3192 | ||
3193 | wxPyEndAllowThreads(__tstate); | |
3194 | if (PyErr_Occurred()) return NULL; | |
3195 | } Py_INCREF(Py_None); | |
3196 | _resultobj = Py_None; | |
3197 | return _resultobj; | |
3198 | } | |
3199 | ||
3200 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
3201 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3202 | PyObject * _resultobj; | |
3203 | wxComboBox * _arg0; | |
3204 | PyObject * _argo0 = 0; | |
3205 | char *_kwnames[] = { "self", NULL }; | |
3206 | ||
3207 | self = self; | |
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) | |
3209 | return NULL; | |
3210 | if (_argo0) { | |
3211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); | |
3214 | return NULL; | |
3215 | } | |
3216 | } | |
3217 | { | |
3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3219 | wxComboBox_SetInsertionPointEnd(_arg0); | |
3220 | ||
3221 | wxPyEndAllowThreads(__tstate); | |
3222 | if (PyErr_Occurred()) return NULL; | |
3223 | } Py_INCREF(Py_None); | |
3224 | _resultobj = Py_None; | |
3225 | return _resultobj; | |
3226 | } | |
3227 | ||
3228 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3229 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject * _resultobj; | |
3231 | wxComboBox * _arg0; | |
3232 | int _arg1; | |
3233 | PyObject * _argo0 = 0; | |
3234 | char *_kwnames[] = { "self","n", NULL }; | |
3235 | ||
3236 | self = self; | |
3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3238 | return NULL; | |
3239 | if (_argo0) { | |
3240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3243 | return NULL; | |
3244 | } | |
3245 | } | |
3246 | { | |
3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3248 | wxComboBox_SetSelection(_arg0,_arg1); | |
3249 | ||
3250 | wxPyEndAllowThreads(__tstate); | |
3251 | if (PyErr_Occurred()) return NULL; | |
3252 | } Py_INCREF(Py_None); | |
3253 | _resultobj = Py_None; | |
3254 | return _resultobj; | |
3255 | } | |
3256 | ||
3257 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
3258 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject * _resultobj; | |
3260 | wxComboBox * _arg0; | |
3261 | long _arg1; | |
3262 | long _arg2; | |
3263 | PyObject * _argo0 = 0; | |
3264 | char *_kwnames[] = { "self","from","to", NULL }; | |
3265 | ||
3266 | self = self; | |
3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3268 | return NULL; | |
3269 | if (_argo0) { | |
3270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); | |
3273 | return NULL; | |
3274 | } | |
3275 | } | |
3276 | { | |
3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3278 | wxComboBox_SetMark(_arg0,_arg1,_arg2); | |
3279 | ||
3280 | wxPyEndAllowThreads(__tstate); | |
3281 | if (PyErr_Occurred()) return NULL; | |
3282 | } Py_INCREF(Py_None); | |
3283 | _resultobj = Py_None; | |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
3287 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
3288 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject * _resultobj; | |
3290 | wxComboBox * _arg0; | |
3291 | wxString * _arg1; | |
3292 | PyObject * _argo0 = 0; | |
3293 | PyObject * _obj1 = 0; | |
3294 | char *_kwnames[] = { "self","text", NULL }; | |
3295 | ||
3296 | self = self; | |
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) | |
3298 | return NULL; | |
3299 | if (_argo0) { | |
3300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); | |
3303 | return NULL; | |
3304 | } | |
3305 | } | |
3306 | { | |
3307 | _arg1 = wxString_in_helper(_obj1); | |
3308 | if (_arg1 == NULL) | |
3309 | return NULL; | |
3310 | } | |
3311 | { | |
3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3313 | wxComboBox_SetValue(_arg0,*_arg1); | |
3314 | ||
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) return NULL; | |
3317 | } Py_INCREF(Py_None); | |
3318 | _resultobj = Py_None; | |
3319 | { | |
3320 | if (_obj1) | |
3321 | delete _arg1; | |
3322 | } | |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
3327 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject * _resultobj; | |
3329 | wxComboBox * _arg0; | |
3330 | bool _arg1; | |
3331 | PyObject * _argo0 = 0; | |
3332 | int tempbool1; | |
3333 | char *_kwnames[] = { "self","editable", NULL }; | |
3334 | ||
3335 | self = self; | |
3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3337 | return NULL; | |
3338 | if (_argo0) { | |
3339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3342 | return NULL; | |
3343 | } | |
3344 | } | |
3345 | _arg1 = (bool ) tempbool1; | |
3346 | { | |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3348 | wxComboBox_SetEditable(_arg0,_arg1); | |
3349 | ||
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) return NULL; | |
3352 | } Py_INCREF(Py_None); | |
3353 | _resultobj = Py_None; | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
3357 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) | |
3358 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3359 | PyObject * _resultobj; | |
3360 | wxComboBox * _arg0; | |
3361 | PyObject * _argo0 = 0; | |
3362 | char *_kwnames[] = { "self", NULL }; | |
3363 | ||
3364 | self = self; | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) | |
3366 | return NULL; | |
3367 | if (_argo0) { | |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); | |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
3374 | { | |
3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3376 | wxComboBox_Clear(_arg0); | |
3377 | ||
3378 | wxPyEndAllowThreads(__tstate); | |
3379 | if (PyErr_Occurred()) return NULL; | |
3380 | } Py_INCREF(Py_None); | |
3381 | _resultobj = Py_None; | |
3382 | return _resultobj; | |
3383 | } | |
3384 | ||
3385 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
3386 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3387 | PyObject * _resultobj; | |
3388 | wxComboBox * _arg0; | |
3389 | int _arg1; | |
3390 | PyObject * _argo0 = 0; | |
3391 | char *_kwnames[] = { "self","n", NULL }; | |
3392 | ||
3393 | self = self; | |
3394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) | |
3395 | return NULL; | |
3396 | if (_argo0) { | |
3397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); | |
3400 | return NULL; | |
3401 | } | |
3402 | } | |
3403 | { | |
3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3405 | wxComboBox_Delete(_arg0,_arg1); | |
3406 | ||
3407 | wxPyEndAllowThreads(__tstate); | |
3408 | if (PyErr_Occurred()) return NULL; | |
3409 | } Py_INCREF(Py_None); | |
3410 | _resultobj = Py_None; | |
3411 | return _resultobj; | |
3412 | } | |
3413 | ||
3414 | #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
3415 | static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject * _resultobj; | |
3417 | int _result; | |
3418 | wxComboBox * _arg0; | |
3419 | PyObject * _argo0 = 0; | |
3420 | char *_kwnames[] = { "self", NULL }; | |
3421 | ||
3422 | self = self; | |
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0)) | |
3424 | return NULL; | |
3425 | if (_argo0) { | |
3426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p."); | |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
3432 | { | |
3433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3434 | _result = (int )wxComboBox_GetCount(_arg0); | |
3435 | ||
3436 | wxPyEndAllowThreads(__tstate); | |
3437 | if (PyErr_Occurred()) return NULL; | |
3438 | } _resultobj = Py_BuildValue("i",_result); | |
3439 | return _resultobj; | |
3440 | } | |
3441 | ||
3442 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
3443 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxString * _result; | |
3446 | wxComboBox * _arg0; | |
3447 | int _arg1; | |
3448 | PyObject * _argo0 = 0; | |
3449 | char *_kwnames[] = { "self","n", NULL }; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) | |
3453 | return NULL; | |
3454 | if (_argo0) { | |
3455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | { | |
3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3463 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); | |
3464 | ||
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) return NULL; | |
3467 | }{ | |
3468 | #if wxUSE_UNICODE | |
3469 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
3470 | #else | |
3471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3472 | #endif | |
3473 | } | |
3474 | { | |
3475 | delete _result; | |
3476 | } | |
3477 | return _resultobj; | |
3478 | } | |
3479 | ||
3480 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
3481 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3482 | PyObject * _resultobj; | |
3483 | int _result; | |
3484 | wxComboBox * _arg0; | |
3485 | wxString * _arg1; | |
3486 | PyObject * _argo0 = 0; | |
3487 | PyObject * _obj1 = 0; | |
3488 | char *_kwnames[] = { "self","s", NULL }; | |
3489 | ||
3490 | self = self; | |
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) | |
3492 | return NULL; | |
3493 | if (_argo0) { | |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); | |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
3500 | { | |
3501 | _arg1 = wxString_in_helper(_obj1); | |
3502 | if (_arg1 == NULL) | |
3503 | return NULL; | |
3504 | } | |
3505 | { | |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) return NULL; | |
3511 | } _resultobj = Py_BuildValue("i",_result); | |
3512 | { | |
3513 | if (_obj1) | |
3514 | delete _arg1; | |
3515 | } | |
3516 | return _resultobj; | |
3517 | } | |
3518 | ||
3519 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3520 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject * _resultobj; | |
3522 | int _result; | |
3523 | wxComboBox * _arg0; | |
3524 | PyObject * _argo0 = 0; | |
3525 | char *_kwnames[] = { "self", NULL }; | |
3526 | ||
3527 | self = self; | |
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) | |
3529 | return NULL; | |
3530 | if (_argo0) { | |
3531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); | |
3534 | return NULL; | |
3535 | } | |
3536 | } | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | _result = (int )wxComboBox_GetSelection(_arg0); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) return NULL; | |
3543 | } _resultobj = Py_BuildValue("i",_result); | |
3544 | return _resultobj; | |
3545 | } | |
3546 | ||
3547 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
3548 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject * _resultobj; | |
3550 | wxString * _result; | |
3551 | wxComboBox * _arg0; | |
3552 | PyObject * _argo0 = 0; | |
3553 | char *_kwnames[] = { "self", NULL }; | |
3554 | ||
3555 | self = self; | |
3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) | |
3557 | return NULL; | |
3558 | if (_argo0) { | |
3559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); | |
3562 | return NULL; | |
3563 | } | |
3564 | } | |
3565 | { | |
3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3567 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); | |
3568 | ||
3569 | wxPyEndAllowThreads(__tstate); | |
3570 | if (PyErr_Occurred()) return NULL; | |
3571 | }{ | |
3572 | #if wxUSE_UNICODE | |
3573 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
3574 | #else | |
3575 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3576 | #endif | |
3577 | } | |
3578 | { | |
3579 | delete _result; | |
3580 | } | |
3581 | return _resultobj; | |
3582 | } | |
3583 | ||
3584 | static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) { | |
3585 | if (clientData) { | |
3586 | wxPyClientData* data = new wxPyClientData(clientData); | |
3587 | self->Append(item, data); | |
3588 | } else | |
3589 | self->Append(item); | |
3590 | } | |
3591 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3592 | PyObject * _resultobj; | |
3593 | wxComboBox * _arg0; | |
3594 | wxString * _arg1; | |
3595 | PyObject * _arg2 = (PyObject *) NULL; | |
3596 | PyObject * _argo0 = 0; | |
3597 | PyObject * _obj1 = 0; | |
3598 | PyObject * _obj2 = 0; | |
3599 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
3600 | ||
3601 | self = self; | |
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3603 | return NULL; | |
3604 | if (_argo0) { | |
3605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); | |
3608 | return NULL; | |
3609 | } | |
3610 | } | |
3611 | { | |
3612 | _arg1 = wxString_in_helper(_obj1); | |
3613 | if (_arg1 == NULL) | |
3614 | return NULL; | |
3615 | } | |
3616 | if (_obj2) | |
3617 | { | |
3618 | _arg2 = _obj2; | |
3619 | } | |
3620 | { | |
3621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3622 | wxComboBox_Append(_arg0,*_arg1,_arg2); | |
3623 | ||
3624 | wxPyEndAllowThreads(__tstate); | |
3625 | if (PyErr_Occurred()) return NULL; | |
3626 | } Py_INCREF(Py_None); | |
3627 | _resultobj = Py_None; | |
3628 | { | |
3629 | if (_obj1) | |
3630 | delete _arg1; | |
3631 | } | |
3632 | return _resultobj; | |
3633 | } | |
3634 | ||
3635 | static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { | |
3636 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
3637 | if (data) { | |
3638 | Py_INCREF(data->m_obj); | |
3639 | return data->m_obj; | |
3640 | } else { | |
3641 | Py_INCREF(Py_None); | |
3642 | return Py_None; | |
3643 | } | |
3644 | } | |
3645 | static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3646 | PyObject * _resultobj; | |
3647 | PyObject * _result; | |
3648 | wxComboBox * _arg0; | |
3649 | int _arg1; | |
3650 | PyObject * _argo0 = 0; | |
3651 | char *_kwnames[] = { "self","n", NULL }; | |
3652 | ||
3653 | self = self; | |
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1)) | |
3655 | return NULL; | |
3656 | if (_argo0) { | |
3657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p."); | |
3660 | return NULL; | |
3661 | } | |
3662 | } | |
3663 | { | |
3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3665 | _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1); | |
3666 | ||
3667 | wxPyEndAllowThreads(__tstate); | |
3668 | if (PyErr_Occurred()) return NULL; | |
3669 | }{ | |
3670 | _resultobj = _result; | |
3671 | } | |
3672 | return _resultobj; | |
3673 | } | |
3674 | ||
3675 | static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { | |
3676 | wxPyClientData* data = new wxPyClientData(clientData); | |
3677 | self->SetClientObject(n, data); | |
3678 | } | |
3679 | static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3680 | PyObject * _resultobj; | |
3681 | wxComboBox * _arg0; | |
3682 | int _arg1; | |
3683 | PyObject * _arg2; | |
3684 | PyObject * _argo0 = 0; | |
3685 | PyObject * _obj2 = 0; | |
3686 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
3687 | ||
3688 | self = self; | |
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3690 | return NULL; | |
3691 | if (_argo0) { | |
3692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p."); | |
3695 | return NULL; | |
3696 | } | |
3697 | } | |
3698 | { | |
3699 | _arg2 = _obj2; | |
3700 | } | |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | wxComboBox_SetClientData(_arg0,_arg1,_arg2); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) return NULL; | |
3707 | } Py_INCREF(Py_None); | |
3708 | _resultobj = Py_None; | |
3709 | return _resultobj; | |
3710 | } | |
3711 | ||
3712 | static void *SwigwxGaugeTowxControl(void *ptr) { | |
3713 | wxGauge *src; | |
3714 | wxControl *dest; | |
3715 | src = (wxGauge *) ptr; | |
3716 | dest = (wxControl *) src; | |
3717 | return (void *) dest; | |
3718 | } | |
3719 | ||
3720 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3721 | wxGauge *src; | |
3722 | wxWindow *dest; | |
3723 | src = (wxGauge *) ptr; | |
3724 | dest = (wxWindow *) src; | |
3725 | return (void *) dest; | |
3726 | } | |
3727 | ||
3728 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3729 | wxGauge *src; | |
3730 | wxEvtHandler *dest; | |
3731 | src = (wxGauge *) ptr; | |
3732 | dest = (wxEvtHandler *) src; | |
3733 | return (void *) dest; | |
3734 | } | |
3735 | ||
3736 | static void *SwigwxGaugeTowxObject(void *ptr) { | |
3737 | wxGauge *src; | |
3738 | wxObject *dest; | |
3739 | src = (wxGauge *) ptr; | |
3740 | dest = (wxObject *) src; | |
3741 | return (void *) dest; | |
3742 | } | |
3743 | ||
3744 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3745 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3746 | PyObject * _resultobj; | |
3747 | wxGauge * _result; | |
3748 | wxWindow * _arg0; | |
3749 | wxWindowID _arg1; | |
3750 | int _arg2; | |
3751 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3752 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3753 | long _arg5 = (long ) wxGA_HORIZONTAL; | |
3754 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3755 | wxString * _arg7 = (wxString *) &wxPyGaugeNameStr; | |
3756 | PyObject * _argo0 = 0; | |
3757 | wxPoint temp; | |
3758 | PyObject * _obj3 = 0; | |
3759 | wxSize temp0; | |
3760 | PyObject * _obj4 = 0; | |
3761 | PyObject * _argo6 = 0; | |
3762 | PyObject * _obj7 = 0; | |
3763 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; | |
3764 | char _ptemp[128]; | |
3765 | ||
3766 | self = self; | |
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
3768 | return NULL; | |
3769 | if (_argo0) { | |
3770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); | |
3773 | return NULL; | |
3774 | } | |
3775 | } | |
3776 | if (_obj3) | |
3777 | { | |
3778 | _arg3 = &temp; | |
3779 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3780 | return NULL; | |
3781 | } | |
3782 | if (_obj4) | |
3783 | { | |
3784 | _arg4 = &temp0; | |
3785 | if (! wxSize_helper(_obj4, &_arg4)) | |
3786 | return NULL; | |
3787 | } | |
3788 | if (_argo6) { | |
3789 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); | |
3791 | return NULL; | |
3792 | } | |
3793 | } | |
3794 | if (_obj7) | |
3795 | { | |
3796 | _arg7 = wxString_in_helper(_obj7); | |
3797 | if (_arg7 == NULL) | |
3798 | return NULL; | |
3799 | } | |
3800 | { | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
3803 | ||
3804 | wxPyEndAllowThreads(__tstate); | |
3805 | if (PyErr_Occurred()) return NULL; | |
3806 | } if (_result) { | |
3807 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3808 | _resultobj = Py_BuildValue("s",_ptemp); | |
3809 | } else { | |
3810 | Py_INCREF(Py_None); | |
3811 | _resultobj = Py_None; | |
3812 | } | |
3813 | { | |
3814 | if (_obj7) | |
3815 | delete _arg7; | |
3816 | } | |
3817 | return _resultobj; | |
3818 | } | |
3819 | ||
3820 | #define new_wxPreGauge() (new wxGauge()) | |
3821 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3822 | PyObject * _resultobj; | |
3823 | wxGauge * _result; | |
3824 | char *_kwnames[] = { NULL }; | |
3825 | char _ptemp[128]; | |
3826 | ||
3827 | self = self; | |
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3829 | return NULL; | |
3830 | { | |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | _result = (wxGauge *)new_wxPreGauge(); | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) return NULL; | |
3836 | } if (_result) { | |
3837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3838 | _resultobj = Py_BuildValue("s",_ptemp); | |
3839 | } else { | |
3840 | Py_INCREF(Py_None); | |
3841 | _resultobj = Py_None; | |
3842 | } | |
3843 | return _resultobj; | |
3844 | } | |
3845 | ||
3846 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3847 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject * _resultobj; | |
3849 | bool _result; | |
3850 | wxGauge * _arg0; | |
3851 | wxWindow * _arg1; | |
3852 | wxWindowID _arg2; | |
3853 | int _arg3; | |
3854 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3855 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3856 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3857 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
3858 | wxString * _arg8 = (wxString *) &wxPyGaugeNameStr; | |
3859 | PyObject * _argo0 = 0; | |
3860 | PyObject * _argo1 = 0; | |
3861 | wxPoint temp; | |
3862 | PyObject * _obj4 = 0; | |
3863 | wxSize temp0; | |
3864 | PyObject * _obj5 = 0; | |
3865 | PyObject * _argo7 = 0; | |
3866 | PyObject * _obj8 = 0; | |
3867 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; | |
3868 | ||
3869 | self = self; | |
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
3871 | return NULL; | |
3872 | if (_argo0) { | |
3873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3876 | return NULL; | |
3877 | } | |
3878 | } | |
3879 | if (_argo1) { | |
3880 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3881 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3883 | return NULL; | |
3884 | } | |
3885 | } | |
3886 | if (_obj4) | |
3887 | { | |
3888 | _arg4 = &temp; | |
3889 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3890 | return NULL; | |
3891 | } | |
3892 | if (_obj5) | |
3893 | { | |
3894 | _arg5 = &temp0; | |
3895 | if (! wxSize_helper(_obj5, &_arg5)) | |
3896 | return NULL; | |
3897 | } | |
3898 | if (_argo7) { | |
3899 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | if (_obj8) | |
3905 | { | |
3906 | _arg8 = wxString_in_helper(_obj8); | |
3907 | if (_arg8 == NULL) | |
3908 | return NULL; | |
3909 | } | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) return NULL; | |
3916 | } _resultobj = Py_BuildValue("i",_result); | |
3917 | { | |
3918 | if (_obj8) | |
3919 | delete _arg8; | |
3920 | } | |
3921 | return _resultobj; | |
3922 | } | |
3923 | ||
3924 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) | |
3925 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject * _resultobj; | |
3927 | int _result; | |
3928 | wxGauge * _arg0; | |
3929 | PyObject * _argo0 = 0; | |
3930 | char *_kwnames[] = { "self", NULL }; | |
3931 | ||
3932 | self = self; | |
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) | |
3934 | return NULL; | |
3935 | if (_argo0) { | |
3936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); | |
3939 | return NULL; | |
3940 | } | |
3941 | } | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | _result = (int )wxGauge_GetBezelFace(_arg0); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) return NULL; | |
3948 | } _resultobj = Py_BuildValue("i",_result); | |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
3952 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
3953 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject * _resultobj; | |
3955 | int _result; | |
3956 | wxGauge * _arg0; | |
3957 | PyObject * _argo0 = 0; | |
3958 | char *_kwnames[] = { "self", NULL }; | |
3959 | ||
3960 | self = self; | |
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) | |
3962 | return NULL; | |
3963 | if (_argo0) { | |
3964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); | |
3967 | return NULL; | |
3968 | } | |
3969 | } | |
3970 | { | |
3971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3972 | _result = (int )wxGauge_GetRange(_arg0); | |
3973 | ||
3974 | wxPyEndAllowThreads(__tstate); | |
3975 | if (PyErr_Occurred()) return NULL; | |
3976 | } _resultobj = Py_BuildValue("i",_result); | |
3977 | return _resultobj; | |
3978 | } | |
3979 | ||
3980 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
3981 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject * _resultobj; | |
3983 | int _result; | |
3984 | wxGauge * _arg0; | |
3985 | PyObject * _argo0 = 0; | |
3986 | char *_kwnames[] = { "self", NULL }; | |
3987 | ||
3988 | self = self; | |
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) | |
3990 | return NULL; | |
3991 | if (_argo0) { | |
3992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); | |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
3998 | { | |
3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4000 | _result = (int )wxGauge_GetShadowWidth(_arg0); | |
4001 | ||
4002 | wxPyEndAllowThreads(__tstate); | |
4003 | if (PyErr_Occurred()) return NULL; | |
4004 | } _resultobj = Py_BuildValue("i",_result); | |
4005 | return _resultobj; | |
4006 | } | |
4007 | ||
4008 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
4009 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4010 | PyObject * _resultobj; | |
4011 | int _result; | |
4012 | wxGauge * _arg0; | |
4013 | PyObject * _argo0 = 0; | |
4014 | char *_kwnames[] = { "self", NULL }; | |
4015 | ||
4016 | self = self; | |
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) | |
4018 | return NULL; | |
4019 | if (_argo0) { | |
4020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); | |
4023 | return NULL; | |
4024 | } | |
4025 | } | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | _result = (int )wxGauge_GetValue(_arg0); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) return NULL; | |
4032 | } _resultobj = Py_BuildValue("i",_result); | |
4033 | return _resultobj; | |
4034 | } | |
4035 | ||
4036 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
4037 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4038 | PyObject * _resultobj; | |
4039 | wxGauge * _arg0; | |
4040 | int _arg1; | |
4041 | PyObject * _argo0 = 0; | |
4042 | char *_kwnames[] = { "self","width", NULL }; | |
4043 | ||
4044 | self = self; | |
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) | |
4046 | return NULL; | |
4047 | if (_argo0) { | |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | wxGauge_SetBezelFace(_arg0,_arg1); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) return NULL; | |
4060 | } Py_INCREF(Py_None); | |
4061 | _resultobj = Py_None; | |
4062 | return _resultobj; | |
4063 | } | |
4064 | ||
4065 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
4066 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject * _resultobj; | |
4068 | wxGauge * _arg0; | |
4069 | int _arg1; | |
4070 | PyObject * _argo0 = 0; | |
4071 | char *_kwnames[] = { "self","range", NULL }; | |
4072 | ||
4073 | self = self; | |
4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) | |
4075 | return NULL; | |
4076 | if (_argo0) { | |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); | |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | wxGauge_SetRange(_arg0,_arg1); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) return NULL; | |
4089 | } Py_INCREF(Py_None); | |
4090 | _resultobj = Py_None; | |
4091 | return _resultobj; | |
4092 | } | |
4093 | ||
4094 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
4095 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4096 | PyObject * _resultobj; | |
4097 | wxGauge * _arg0; | |
4098 | int _arg1; | |
4099 | PyObject * _argo0 = 0; | |
4100 | char *_kwnames[] = { "self","width", NULL }; | |
4101 | ||
4102 | self = self; | |
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) | |
4104 | return NULL; | |
4105 | if (_argo0) { | |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); | |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4114 | wxGauge_SetShadowWidth(_arg0,_arg1); | |
4115 | ||
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) return NULL; | |
4118 | } Py_INCREF(Py_None); | |
4119 | _resultobj = Py_None; | |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
4124 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject * _resultobj; | |
4126 | wxGauge * _arg0; | |
4127 | int _arg1; | |
4128 | PyObject * _argo0 = 0; | |
4129 | char *_kwnames[] = { "self","pos", NULL }; | |
4130 | ||
4131 | self = self; | |
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) | |
4133 | return NULL; | |
4134 | if (_argo0) { | |
4135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
4137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); | |
4138 | return NULL; | |
4139 | } | |
4140 | } | |
4141 | { | |
4142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4143 | wxGauge_SetValue(_arg0,_arg1); | |
4144 | ||
4145 | wxPyEndAllowThreads(__tstate); | |
4146 | if (PyErr_Occurred()) return NULL; | |
4147 | } Py_INCREF(Py_None); | |
4148 | _resultobj = Py_None; | |
4149 | return _resultobj; | |
4150 | } | |
4151 | ||
4152 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
4153 | wxStaticBox *src; | |
4154 | wxControl *dest; | |
4155 | src = (wxStaticBox *) ptr; | |
4156 | dest = (wxControl *) src; | |
4157 | return (void *) dest; | |
4158 | } | |
4159 | ||
4160 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
4161 | wxStaticBox *src; | |
4162 | wxWindow *dest; | |
4163 | src = (wxStaticBox *) ptr; | |
4164 | dest = (wxWindow *) src; | |
4165 | return (void *) dest; | |
4166 | } | |
4167 | ||
4168 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
4169 | wxStaticBox *src; | |
4170 | wxEvtHandler *dest; | |
4171 | src = (wxStaticBox *) ptr; | |
4172 | dest = (wxEvtHandler *) src; | |
4173 | return (void *) dest; | |
4174 | } | |
4175 | ||
4176 | static void *SwigwxStaticBoxTowxObject(void *ptr) { | |
4177 | wxStaticBox *src; | |
4178 | wxObject *dest; | |
4179 | src = (wxStaticBox *) ptr; | |
4180 | dest = (wxObject *) src; | |
4181 | return (void *) dest; | |
4182 | } | |
4183 | ||
4184 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4185 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject * _resultobj; | |
4187 | wxStaticBox * _result; | |
4188 | wxWindow * _arg0; | |
4189 | wxWindowID _arg1; | |
4190 | wxString * _arg2; | |
4191 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4192 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4193 | long _arg5 = (long ) 0; | |
4194 | wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr; | |
4195 | PyObject * _argo0 = 0; | |
4196 | PyObject * _obj2 = 0; | |
4197 | wxPoint temp; | |
4198 | PyObject * _obj3 = 0; | |
4199 | wxSize temp0; | |
4200 | PyObject * _obj4 = 0; | |
4201 | PyObject * _obj6 = 0; | |
4202 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4203 | char _ptemp[128]; | |
4204 | ||
4205 | self = self; | |
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4207 | return NULL; | |
4208 | if (_argo0) { | |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); | |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
4215 | { | |
4216 | _arg2 = wxString_in_helper(_obj2); | |
4217 | if (_arg2 == NULL) | |
4218 | return NULL; | |
4219 | } | |
4220 | if (_obj3) | |
4221 | { | |
4222 | _arg3 = &temp; | |
4223 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4224 | return NULL; | |
4225 | } | |
4226 | if (_obj4) | |
4227 | { | |
4228 | _arg4 = &temp0; | |
4229 | if (! wxSize_helper(_obj4, &_arg4)) | |
4230 | return NULL; | |
4231 | } | |
4232 | if (_obj6) | |
4233 | { | |
4234 | _arg6 = wxString_in_helper(_obj6); | |
4235 | if (_arg6 == NULL) | |
4236 | return NULL; | |
4237 | } | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) return NULL; | |
4244 | } if (_result) { | |
4245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4246 | _resultobj = Py_BuildValue("s",_ptemp); | |
4247 | } else { | |
4248 | Py_INCREF(Py_None); | |
4249 | _resultobj = Py_None; | |
4250 | } | |
4251 | { | |
4252 | if (_obj2) | |
4253 | delete _arg2; | |
4254 | } | |
4255 | { | |
4256 | if (_obj6) | |
4257 | delete _arg6; | |
4258 | } | |
4259 | return _resultobj; | |
4260 | } | |
4261 | ||
4262 | #define new_wxPreStaticBox() (new wxStaticBox()) | |
4263 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4264 | PyObject * _resultobj; | |
4265 | wxStaticBox * _result; | |
4266 | char *_kwnames[] = { NULL }; | |
4267 | char _ptemp[128]; | |
4268 | ||
4269 | self = self; | |
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
4271 | return NULL; | |
4272 | { | |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | _result = (wxStaticBox *)new_wxPreStaticBox(); | |
4275 | ||
4276 | wxPyEndAllowThreads(__tstate); | |
4277 | if (PyErr_Occurred()) return NULL; | |
4278 | } if (_result) { | |
4279 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4280 | _resultobj = Py_BuildValue("s",_ptemp); | |
4281 | } else { | |
4282 | Py_INCREF(Py_None); | |
4283 | _resultobj = Py_None; | |
4284 | } | |
4285 | return _resultobj; | |
4286 | } | |
4287 | ||
4288 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4289 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4290 | PyObject * _resultobj; | |
4291 | bool _result; | |
4292 | wxStaticBox * _arg0; | |
4293 | wxWindow * _arg1; | |
4294 | wxWindowID _arg2; | |
4295 | wxString * _arg3; | |
4296 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4297 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4298 | long _arg6 = (long ) 0; | |
4299 | wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr; | |
4300 | PyObject * _argo0 = 0; | |
4301 | PyObject * _argo1 = 0; | |
4302 | PyObject * _obj3 = 0; | |
4303 | wxPoint temp; | |
4304 | PyObject * _obj4 = 0; | |
4305 | wxSize temp0; | |
4306 | PyObject * _obj5 = 0; | |
4307 | PyObject * _obj7 = 0; | |
4308 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4309 | ||
4310 | self = self; | |
4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
4312 | return NULL; | |
4313 | if (_argo0) { | |
4314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4317 | return NULL; | |
4318 | } | |
4319 | } | |
4320 | if (_argo1) { | |
4321 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4322 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4324 | return NULL; | |
4325 | } | |
4326 | } | |
4327 | { | |
4328 | _arg3 = wxString_in_helper(_obj3); | |
4329 | if (_arg3 == NULL) | |
4330 | return NULL; | |
4331 | } | |
4332 | if (_obj4) | |
4333 | { | |
4334 | _arg4 = &temp; | |
4335 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4336 | return NULL; | |
4337 | } | |
4338 | if (_obj5) | |
4339 | { | |
4340 | _arg5 = &temp0; | |
4341 | if (! wxSize_helper(_obj5, &_arg5)) | |
4342 | return NULL; | |
4343 | } | |
4344 | if (_obj7) | |
4345 | { | |
4346 | _arg7 = wxString_in_helper(_obj7); | |
4347 | if (_arg7 == NULL) | |
4348 | return NULL; | |
4349 | } | |
4350 | { | |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4352 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) return NULL; | |
4356 | } _resultobj = Py_BuildValue("i",_result); | |
4357 | { | |
4358 | if (_obj3) | |
4359 | delete _arg3; | |
4360 | } | |
4361 | { | |
4362 | if (_obj7) | |
4363 | delete _arg7; | |
4364 | } | |
4365 | return _resultobj; | |
4366 | } | |
4367 | ||
4368 | static void *SwigwxStaticLineTowxControl(void *ptr) { | |
4369 | wxStaticLine *src; | |
4370 | wxControl *dest; | |
4371 | src = (wxStaticLine *) ptr; | |
4372 | dest = (wxControl *) src; | |
4373 | return (void *) dest; | |
4374 | } | |
4375 | ||
4376 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4377 | wxStaticLine *src; | |
4378 | wxWindow *dest; | |
4379 | src = (wxStaticLine *) ptr; | |
4380 | dest = (wxWindow *) src; | |
4381 | return (void *) dest; | |
4382 | } | |
4383 | ||
4384 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4385 | wxStaticLine *src; | |
4386 | wxEvtHandler *dest; | |
4387 | src = (wxStaticLine *) ptr; | |
4388 | dest = (wxEvtHandler *) src; | |
4389 | return (void *) dest; | |
4390 | } | |
4391 | ||
4392 | static void *SwigwxStaticLineTowxObject(void *ptr) { | |
4393 | wxStaticLine *src; | |
4394 | wxObject *dest; | |
4395 | src = (wxStaticLine *) ptr; | |
4396 | dest = (wxObject *) src; | |
4397 | return (void *) dest; | |
4398 | } | |
4399 | ||
4400 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4401 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4402 | PyObject * _resultobj; | |
4403 | wxStaticLine * _result; | |
4404 | wxWindow * _arg0; | |
4405 | wxWindowID _arg1; | |
4406 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4407 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4408 | long _arg4 = (long ) wxLI_HORIZONTAL; | |
4409 | wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr; | |
4410 | PyObject * _argo0 = 0; | |
4411 | wxPoint temp; | |
4412 | PyObject * _obj2 = 0; | |
4413 | wxSize temp0; | |
4414 | PyObject * _obj3 = 0; | |
4415 | PyObject * _obj5 = 0; | |
4416 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
4417 | char _ptemp[128]; | |
4418 | ||
4419 | self = self; | |
4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
4421 | return NULL; | |
4422 | if (_argo0) { | |
4423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); | |
4426 | return NULL; | |
4427 | } | |
4428 | } | |
4429 | if (_obj2) | |
4430 | { | |
4431 | _arg2 = &temp; | |
4432 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4433 | return NULL; | |
4434 | } | |
4435 | if (_obj3) | |
4436 | { | |
4437 | _arg3 = &temp0; | |
4438 | if (! wxSize_helper(_obj3, &_arg3)) | |
4439 | return NULL; | |
4440 | } | |
4441 | if (_obj5) | |
4442 | { | |
4443 | _arg5 = wxString_in_helper(_obj5); | |
4444 | if (_arg5 == NULL) | |
4445 | return NULL; | |
4446 | } | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) return NULL; | |
4453 | } if (_result) { | |
4454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4455 | _resultobj = Py_BuildValue("s",_ptemp); | |
4456 | } else { | |
4457 | Py_INCREF(Py_None); | |
4458 | _resultobj = Py_None; | |
4459 | } | |
4460 | { | |
4461 | if (_obj5) | |
4462 | delete _arg5; | |
4463 | } | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define new_wxPreStaticLine() (new wxStaticLine()) | |
4468 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | wxStaticLine * _result; | |
4471 | char *_kwnames[] = { NULL }; | |
4472 | char _ptemp[128]; | |
4473 | ||
4474 | self = self; | |
4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4476 | return NULL; | |
4477 | { | |
4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4479 | _result = (wxStaticLine *)new_wxPreStaticLine(); | |
4480 | ||
4481 | wxPyEndAllowThreads(__tstate); | |
4482 | if (PyErr_Occurred()) return NULL; | |
4483 | } if (_result) { | |
4484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4485 | _resultobj = Py_BuildValue("s",_ptemp); | |
4486 | } else { | |
4487 | Py_INCREF(Py_None); | |
4488 | _resultobj = Py_None; | |
4489 | } | |
4490 | return _resultobj; | |
4491 | } | |
4492 | ||
4493 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4494 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4495 | PyObject * _resultobj; | |
4496 | bool _result; | |
4497 | wxStaticLine * _arg0; | |
4498 | wxWindow * _arg1; | |
4499 | wxWindowID _arg2; | |
4500 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4501 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4502 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
4503 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; | |
4504 | PyObject * _argo0 = 0; | |
4505 | PyObject * _argo1 = 0; | |
4506 | wxPoint temp; | |
4507 | PyObject * _obj3 = 0; | |
4508 | wxSize temp0; | |
4509 | PyObject * _obj4 = 0; | |
4510 | PyObject * _obj6 = 0; | |
4511 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4512 | ||
4513 | self = self; | |
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4515 | return NULL; | |
4516 | if (_argo0) { | |
4517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4520 | return NULL; | |
4521 | } | |
4522 | } | |
4523 | if (_argo1) { | |
4524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4527 | return NULL; | |
4528 | } | |
4529 | } | |
4530 | if (_obj3) | |
4531 | { | |
4532 | _arg3 = &temp; | |
4533 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4534 | return NULL; | |
4535 | } | |
4536 | if (_obj4) | |
4537 | { | |
4538 | _arg4 = &temp0; | |
4539 | if (! wxSize_helper(_obj4, &_arg4)) | |
4540 | return NULL; | |
4541 | } | |
4542 | if (_obj6) | |
4543 | { | |
4544 | _arg6 = wxString_in_helper(_obj6); | |
4545 | if (_arg6 == NULL) | |
4546 | return NULL; | |
4547 | } | |
4548 | { | |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) return NULL; | |
4554 | } _resultobj = Py_BuildValue("i",_result); | |
4555 | { | |
4556 | if (_obj6) | |
4557 | delete _arg6; | |
4558 | } | |
4559 | return _resultobj; | |
4560 | } | |
4561 | ||
4562 | static void *SwigwxStaticTextTowxControl(void *ptr) { | |
4563 | wxStaticText *src; | |
4564 | wxControl *dest; | |
4565 | src = (wxStaticText *) ptr; | |
4566 | dest = (wxControl *) src; | |
4567 | return (void *) dest; | |
4568 | } | |
4569 | ||
4570 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4571 | wxStaticText *src; | |
4572 | wxWindow *dest; | |
4573 | src = (wxStaticText *) ptr; | |
4574 | dest = (wxWindow *) src; | |
4575 | return (void *) dest; | |
4576 | } | |
4577 | ||
4578 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4579 | wxStaticText *src; | |
4580 | wxEvtHandler *dest; | |
4581 | src = (wxStaticText *) ptr; | |
4582 | dest = (wxEvtHandler *) src; | |
4583 | return (void *) dest; | |
4584 | } | |
4585 | ||
4586 | static void *SwigwxStaticTextTowxObject(void *ptr) { | |
4587 | wxStaticText *src; | |
4588 | wxObject *dest; | |
4589 | src = (wxStaticText *) ptr; | |
4590 | dest = (wxObject *) src; | |
4591 | return (void *) dest; | |
4592 | } | |
4593 | ||
4594 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4595 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject * _resultobj; | |
4597 | wxStaticText * _result; | |
4598 | wxWindow * _arg0; | |
4599 | wxWindowID _arg1; | |
4600 | wxString * _arg2; | |
4601 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4602 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4603 | long _arg5 = (long ) 0; | |
4604 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; | |
4605 | PyObject * _argo0 = 0; | |
4606 | PyObject * _obj2 = 0; | |
4607 | wxPoint temp; | |
4608 | PyObject * _obj3 = 0; | |
4609 | wxSize temp0; | |
4610 | PyObject * _obj4 = 0; | |
4611 | PyObject * _obj6 = 0; | |
4612 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; | |
4613 | char _ptemp[128]; | |
4614 | ||
4615 | self = self; | |
4616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4617 | return NULL; | |
4618 | if (_argo0) { | |
4619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); | |
4622 | return NULL; | |
4623 | } | |
4624 | } | |
4625 | { | |
4626 | _arg2 = wxString_in_helper(_obj2); | |
4627 | if (_arg2 == NULL) | |
4628 | return NULL; | |
4629 | } | |
4630 | if (_obj3) | |
4631 | { | |
4632 | _arg3 = &temp; | |
4633 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4634 | return NULL; | |
4635 | } | |
4636 | if (_obj4) | |
4637 | { | |
4638 | _arg4 = &temp0; | |
4639 | if (! wxSize_helper(_obj4, &_arg4)) | |
4640 | return NULL; | |
4641 | } | |
4642 | if (_obj6) | |
4643 | { | |
4644 | _arg6 = wxString_in_helper(_obj6); | |
4645 | if (_arg6 == NULL) | |
4646 | return NULL; | |
4647 | } | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) return NULL; | |
4654 | } if (_result) { | |
4655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4656 | _resultobj = Py_BuildValue("s",_ptemp); | |
4657 | } else { | |
4658 | Py_INCREF(Py_None); | |
4659 | _resultobj = Py_None; | |
4660 | } | |
4661 | { | |
4662 | if (_obj2) | |
4663 | delete _arg2; | |
4664 | } | |
4665 | { | |
4666 | if (_obj6) | |
4667 | delete _arg6; | |
4668 | } | |
4669 | return _resultobj; | |
4670 | } | |
4671 | ||
4672 | #define new_wxPreStaticText() (new wxStaticText()) | |
4673 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4674 | PyObject * _resultobj; | |
4675 | wxStaticText * _result; | |
4676 | char *_kwnames[] = { NULL }; | |
4677 | char _ptemp[128]; | |
4678 | ||
4679 | self = self; | |
4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4681 | return NULL; | |
4682 | { | |
4683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4684 | _result = (wxStaticText *)new_wxPreStaticText(); | |
4685 | ||
4686 | wxPyEndAllowThreads(__tstate); | |
4687 | if (PyErr_Occurred()) return NULL; | |
4688 | } if (_result) { | |
4689 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4690 | _resultobj = Py_BuildValue("s",_ptemp); | |
4691 | } else { | |
4692 | Py_INCREF(Py_None); | |
4693 | _resultobj = Py_None; | |
4694 | } | |
4695 | return _resultobj; | |
4696 | } | |
4697 | ||
4698 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4699 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject * _resultobj; | |
4701 | bool _result; | |
4702 | wxStaticText * _arg0; | |
4703 | wxWindow * _arg1; | |
4704 | wxWindowID _arg2; | |
4705 | wxString * _arg3; | |
4706 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4707 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4708 | long _arg6 = (long ) 0; | |
4709 | wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr; | |
4710 | PyObject * _argo0 = 0; | |
4711 | PyObject * _argo1 = 0; | |
4712 | PyObject * _obj3 = 0; | |
4713 | wxPoint temp; | |
4714 | PyObject * _obj4 = 0; | |
4715 | wxSize temp0; | |
4716 | PyObject * _obj5 = 0; | |
4717 | PyObject * _obj7 = 0; | |
4718 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; | |
4719 | ||
4720 | self = self; | |
4721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
4722 | return NULL; | |
4723 | if (_argo0) { | |
4724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4727 | return NULL; | |
4728 | } | |
4729 | } | |
4730 | if (_argo1) { | |
4731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4734 | return NULL; | |
4735 | } | |
4736 | } | |
4737 | { | |
4738 | _arg3 = wxString_in_helper(_obj3); | |
4739 | if (_arg3 == NULL) | |
4740 | return NULL; | |
4741 | } | |
4742 | if (_obj4) | |
4743 | { | |
4744 | _arg4 = &temp; | |
4745 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4746 | return NULL; | |
4747 | } | |
4748 | if (_obj5) | |
4749 | { | |
4750 | _arg5 = &temp0; | |
4751 | if (! wxSize_helper(_obj5, &_arg5)) | |
4752 | return NULL; | |
4753 | } | |
4754 | if (_obj7) | |
4755 | { | |
4756 | _arg7 = wxString_in_helper(_obj7); | |
4757 | if (_arg7 == NULL) | |
4758 | return NULL; | |
4759 | } | |
4760 | { | |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) return NULL; | |
4766 | } _resultobj = Py_BuildValue("i",_result); | |
4767 | { | |
4768 | if (_obj3) | |
4769 | delete _arg3; | |
4770 | } | |
4771 | { | |
4772 | if (_obj7) | |
4773 | delete _arg7; | |
4774 | } | |
4775 | return _resultobj; | |
4776 | } | |
4777 | ||
4778 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
4779 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject * _resultobj; | |
4781 | wxString * _result; | |
4782 | wxStaticText * _arg0; | |
4783 | PyObject * _argo0 = 0; | |
4784 | char *_kwnames[] = { "self", NULL }; | |
4785 | ||
4786 | self = self; | |
4787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) | |
4788 | return NULL; | |
4789 | if (_argo0) { | |
4790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); | |
4793 | return NULL; | |
4794 | } | |
4795 | } | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | _result = new wxString (wxStaticText_GetLabel(_arg0)); | |
4799 | ||
4800 | wxPyEndAllowThreads(__tstate); | |
4801 | if (PyErr_Occurred()) return NULL; | |
4802 | }{ | |
4803 | #if wxUSE_UNICODE | |
4804 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
4805 | #else | |
4806 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4807 | #endif | |
4808 | } | |
4809 | { | |
4810 | delete _result; | |
4811 | } | |
4812 | return _resultobj; | |
4813 | } | |
4814 | ||
4815 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
4816 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4817 | PyObject * _resultobj; | |
4818 | wxStaticText * _arg0; | |
4819 | wxString * _arg1; | |
4820 | PyObject * _argo0 = 0; | |
4821 | PyObject * _obj1 = 0; | |
4822 | char *_kwnames[] = { "self","label", NULL }; | |
4823 | ||
4824 | self = self; | |
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) | |
4826 | return NULL; | |
4827 | if (_argo0) { | |
4828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); | |
4831 | return NULL; | |
4832 | } | |
4833 | } | |
4834 | { | |
4835 | _arg1 = wxString_in_helper(_obj1); | |
4836 | if (_arg1 == NULL) | |
4837 | return NULL; | |
4838 | } | |
4839 | { | |
4840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4841 | wxStaticText_SetLabel(_arg0,*_arg1); | |
4842 | ||
4843 | wxPyEndAllowThreads(__tstate); | |
4844 | if (PyErr_Occurred()) return NULL; | |
4845 | } Py_INCREF(Py_None); | |
4846 | _resultobj = Py_None; | |
4847 | { | |
4848 | if (_obj1) | |
4849 | delete _arg1; | |
4850 | } | |
4851 | return _resultobj; | |
4852 | } | |
4853 | ||
4854 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { | |
4855 | wxListBox *src; | |
4856 | wxControlWithItems *dest; | |
4857 | src = (wxListBox *) ptr; | |
4858 | dest = (wxControlWithItems *) src; | |
4859 | return (void *) dest; | |
4860 | } | |
4861 | ||
4862 | static void *SwigwxListBoxTowxControl(void *ptr) { | |
4863 | wxListBox *src; | |
4864 | wxControl *dest; | |
4865 | src = (wxListBox *) ptr; | |
4866 | dest = (wxControl *) src; | |
4867 | return (void *) dest; | |
4868 | } | |
4869 | ||
4870 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4871 | wxListBox *src; | |
4872 | wxWindow *dest; | |
4873 | src = (wxListBox *) ptr; | |
4874 | dest = (wxWindow *) src; | |
4875 | return (void *) dest; | |
4876 | } | |
4877 | ||
4878 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4879 | wxListBox *src; | |
4880 | wxEvtHandler *dest; | |
4881 | src = (wxListBox *) ptr; | |
4882 | dest = (wxEvtHandler *) src; | |
4883 | return (void *) dest; | |
4884 | } | |
4885 | ||
4886 | static void *SwigwxListBoxTowxObject(void *ptr) { | |
4887 | wxListBox *src; | |
4888 | wxObject *dest; | |
4889 | src = (wxListBox *) ptr; | |
4890 | dest = (wxObject *) src; | |
4891 | return (void *) dest; | |
4892 | } | |
4893 | ||
4894 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
4895 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject * _resultobj; | |
4897 | wxListBox * _result; | |
4898 | wxWindow * _arg0; | |
4899 | wxWindowID _arg1; | |
4900 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4901 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4902 | int _arg4; | |
4903 | wxString * _arg5 = (wxString *) NULL; | |
4904 | long _arg6 = (long ) 0; | |
4905 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
4906 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; | |
4907 | PyObject * _argo0 = 0; | |
4908 | wxPoint temp; | |
4909 | PyObject * _obj2 = 0; | |
4910 | wxSize temp0; | |
4911 | PyObject * _obj3 = 0; | |
4912 | PyObject * _obj5 = 0; | |
4913 | PyObject * _argo7 = 0; | |
4914 | PyObject * _obj8 = 0; | |
4915 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
4916 | char _ptemp[128]; | |
4917 | ||
4918 | self = self; | |
4919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
4920 | return NULL; | |
4921 | if (_argo0) { | |
4922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4925 | return NULL; | |
4926 | } | |
4927 | } | |
4928 | if (_obj2) | |
4929 | { | |
4930 | _arg2 = &temp; | |
4931 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4932 | return NULL; | |
4933 | } | |
4934 | if (_obj3) | |
4935 | { | |
4936 | _arg3 = &temp0; | |
4937 | if (! wxSize_helper(_obj3, &_arg3)) | |
4938 | return NULL; | |
4939 | } | |
4940 | if (_obj5) | |
4941 | { | |
4942 | _arg5 = wxString_LIST_helper(_obj5); | |
4943 | if (_arg5 == NULL) { | |
4944 | return NULL; | |
4945 | } | |
4946 | } | |
4947 | if (_argo7) { | |
4948 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4950 | return NULL; | |
4951 | } | |
4952 | } | |
4953 | if (_obj8) | |
4954 | { | |
4955 | _arg8 = wxString_in_helper(_obj8); | |
4956 | if (_arg8 == NULL) | |
4957 | return NULL; | |
4958 | } | |
4959 | { | |
4960 | if (_obj5) { | |
4961 | _arg4 = PyList_Size(_obj5); | |
4962 | } | |
4963 | else { | |
4964 | _arg4 = 0; | |
4965 | } | |
4966 | } | |
4967 | { | |
4968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4969 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
4970 | ||
4971 | wxPyEndAllowThreads(__tstate); | |
4972 | if (PyErr_Occurred()) return NULL; | |
4973 | } if (_result) { | |
4974 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4975 | _resultobj = Py_BuildValue("s",_ptemp); | |
4976 | } else { | |
4977 | Py_INCREF(Py_None); | |
4978 | _resultobj = Py_None; | |
4979 | } | |
4980 | { | |
4981 | delete [] _arg5; | |
4982 | } | |
4983 | { | |
4984 | if (_obj8) | |
4985 | delete _arg8; | |
4986 | } | |
4987 | return _resultobj; | |
4988 | } | |
4989 | ||
4990 | #define new_wxPreListBox() (new wxListBox()) | |
4991 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4992 | PyObject * _resultobj; | |
4993 | wxListBox * _result; | |
4994 | char *_kwnames[] = { NULL }; | |
4995 | char _ptemp[128]; | |
4996 | ||
4997 | self = self; | |
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4999 | return NULL; | |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | _result = (wxListBox *)new_wxPreListBox(); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) return NULL; | |
5006 | } if (_result) { | |
5007 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
5008 | _resultobj = Py_BuildValue("s",_ptemp); | |
5009 | } else { | |
5010 | Py_INCREF(Py_None); | |
5011 | _resultobj = Py_None; | |
5012 | } | |
5013 | return _resultobj; | |
5014 | } | |
5015 | ||
5016 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5017 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5018 | PyObject * _resultobj; | |
5019 | bool _result; | |
5020 | wxListBox * _arg0; | |
5021 | wxWindow * _arg1; | |
5022 | wxWindowID _arg2; | |
5023 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5024 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5025 | int _arg5; | |
5026 | wxString * _arg6 = (wxString *) NULL; | |
5027 | long _arg7 = (long ) 0; | |
5028 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5029 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; | |
5030 | PyObject * _argo0 = 0; | |
5031 | PyObject * _argo1 = 0; | |
5032 | wxPoint temp; | |
5033 | PyObject * _obj3 = 0; | |
5034 | wxSize temp0; | |
5035 | PyObject * _obj4 = 0; | |
5036 | PyObject * _obj6 = 0; | |
5037 | PyObject * _argo8 = 0; | |
5038 | PyObject * _obj9 = 0; | |
5039 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5040 | ||
5041 | self = self; | |
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
5043 | return NULL; | |
5044 | if (_argo0) { | |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | if (_argo1) { | |
5052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
5055 | return NULL; | |
5056 | } | |
5057 | } | |
5058 | if (_obj3) | |
5059 | { | |
5060 | _arg3 = &temp; | |
5061 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5062 | return NULL; | |
5063 | } | |
5064 | if (_obj4) | |
5065 | { | |
5066 | _arg4 = &temp0; | |
5067 | if (! wxSize_helper(_obj4, &_arg4)) | |
5068 | return NULL; | |
5069 | } | |
5070 | if (_obj6) | |
5071 | { | |
5072 | _arg6 = wxString_LIST_helper(_obj6); | |
5073 | if (_arg6 == NULL) { | |
5074 | return NULL; | |
5075 | } | |
5076 | } | |
5077 | if (_argo8) { | |
5078 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | if (_obj9) | |
5084 | { | |
5085 | _arg9 = wxString_in_helper(_obj9); | |
5086 | if (_arg9 == NULL) | |
5087 | return NULL; | |
5088 | } | |
5089 | { | |
5090 | if (_obj6) { | |
5091 | _arg5 = PyList_Size(_obj6); | |
5092 | } | |
5093 | else { | |
5094 | _arg5 = 0; | |
5095 | } | |
5096 | } | |
5097 | { | |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) return NULL; | |
5103 | } _resultobj = Py_BuildValue("i",_result); | |
5104 | { | |
5105 | delete [] _arg6; | |
5106 | } | |
5107 | { | |
5108 | if (_obj9) | |
5109 | delete _arg9; | |
5110 | } | |
5111 | return _resultobj; | |
5112 | } | |
5113 | ||
5114 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) | |
5115 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5116 | PyObject * _resultobj; | |
5117 | wxListBox * _arg0; | |
5118 | PyObject * _argo0 = 0; | |
5119 | char *_kwnames[] = { "self", NULL }; | |
5120 | ||
5121 | self = self; | |
5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) | |
5123 | return NULL; | |
5124 | if (_argo0) { | |
5125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); | |
5128 | return NULL; | |
5129 | } | |
5130 | } | |
5131 | { | |
5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5133 | wxListBox_Clear(_arg0); | |
5134 | ||
5135 | wxPyEndAllowThreads(__tstate); | |
5136 | if (PyErr_Occurred()) return NULL; | |
5137 | } Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | return _resultobj; | |
5140 | } | |
5141 | ||
5142 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) | |
5143 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5144 | PyObject * _resultobj; | |
5145 | wxListBox * _arg0; | |
5146 | int _arg1; | |
5147 | PyObject * _argo0 = 0; | |
5148 | char *_kwnames[] = { "self","n", NULL }; | |
5149 | ||
5150 | self = self; | |
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) | |
5152 | return NULL; | |
5153 | if (_argo0) { | |
5154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); | |
5157 | return NULL; | |
5158 | } | |
5159 | } | |
5160 | { | |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | wxListBox_Deselect(_arg0,_arg1); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) return NULL; | |
5166 | } Py_INCREF(Py_None); | |
5167 | _resultobj = Py_None; | |
5168 | return _resultobj; | |
5169 | } | |
5170 | ||
5171 | static PyObject * wxListBox_GetSelections(wxListBox *self) { | |
5172 | wxArrayInt lst; | |
5173 | self->GetSelections(lst); | |
5174 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
5175 | for(size_t i=0; i<lst.GetCount(); i++) { | |
5176 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
5177 | } | |
5178 | return tup; | |
5179 | } | |
5180 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5181 | PyObject * _resultobj; | |
5182 | PyObject * _result; | |
5183 | wxListBox * _arg0; | |
5184 | PyObject * _argo0 = 0; | |
5185 | char *_kwnames[] = { "self", NULL }; | |
5186 | ||
5187 | self = self; | |
5188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) | |
5189 | return NULL; | |
5190 | if (_argo0) { | |
5191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); | |
5194 | return NULL; | |
5195 | } | |
5196 | } | |
5197 | { | |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | _result = (PyObject *)wxListBox_GetSelections(_arg0); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) return NULL; | |
5203 | }{ | |
5204 | _resultobj = _result; | |
5205 | } | |
5206 | return _resultobj; | |
5207 | } | |
5208 | ||
5209 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5210 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5211 | PyObject * _resultobj; | |
5212 | wxListBox * _arg0; | |
5213 | int _arg1; | |
5214 | wxString * _arg2; | |
5215 | int _arg3; | |
5216 | PyObject * _argo0 = 0; | |
5217 | PyObject * _obj2 = 0; | |
5218 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5219 | ||
5220 | self = self; | |
5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5222 | return NULL; | |
5223 | if (_argo0) { | |
5224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
5227 | return NULL; | |
5228 | } | |
5229 | } | |
5230 | { | |
5231 | _arg2 = wxString_LIST_helper(_obj2); | |
5232 | if (_arg2 == NULL) { | |
5233 | return NULL; | |
5234 | } | |
5235 | } | |
5236 | { | |
5237 | if (_obj2) { | |
5238 | _arg1 = PyList_Size(_obj2); | |
5239 | } | |
5240 | else { | |
5241 | _arg1 = 0; | |
5242 | } | |
5243 | } | |
5244 | { | |
5245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5246 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5247 | ||
5248 | wxPyEndAllowThreads(__tstate); | |
5249 | if (PyErr_Occurred()) return NULL; | |
5250 | } Py_INCREF(Py_None); | |
5251 | _resultobj = Py_None; | |
5252 | { | |
5253 | delete [] _arg2; | |
5254 | } | |
5255 | return _resultobj; | |
5256 | } | |
5257 | ||
5258 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5259 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject * _resultobj; | |
5261 | bool _result; | |
5262 | wxListBox * _arg0; | |
5263 | int _arg1; | |
5264 | PyObject * _argo0 = 0; | |
5265 | char *_kwnames[] = { "self","n", NULL }; | |
5266 | ||
5267 | self = self; | |
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5269 | return NULL; | |
5270 | if (_argo0) { | |
5271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); | |
5274 | return NULL; | |
5275 | } | |
5276 | } | |
5277 | { | |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5279 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); | |
5280 | ||
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) return NULL; | |
5283 | } _resultobj = Py_BuildValue("i",_result); | |
5284 | return _resultobj; | |
5285 | } | |
5286 | ||
5287 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
5288 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject * _resultobj; | |
5290 | bool _result; | |
5291 | wxListBox * _arg0; | |
5292 | int _arg1; | |
5293 | PyObject * _argo0 = 0; | |
5294 | char *_kwnames[] = { "self","n", NULL }; | |
5295 | ||
5296 | self = self; | |
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) | |
5298 | return NULL; | |
5299 | if (_argo0) { | |
5300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); | |
5303 | return NULL; | |
5304 | } | |
5305 | } | |
5306 | { | |
5307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5308 | _result = (bool )wxListBox_Selected(_arg0,_arg1); | |
5309 | ||
5310 | wxPyEndAllowThreads(__tstate); | |
5311 | if (PyErr_Occurred()) return NULL; | |
5312 | } _resultobj = Py_BuildValue("i",_result); | |
5313 | return _resultobj; | |
5314 | } | |
5315 | ||
5316 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
5317 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject * _resultobj; | |
5319 | wxListBox * _arg0; | |
5320 | int _arg1; | |
5321 | wxString * _arg2; | |
5322 | PyObject * _argo0 = 0; | |
5323 | PyObject * _obj2 = 0; | |
5324 | char *_kwnames[] = { "self","choices", NULL }; | |
5325 | ||
5326 | self = self; | |
5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) | |
5328 | return NULL; | |
5329 | if (_argo0) { | |
5330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); | |
5333 | return NULL; | |
5334 | } | |
5335 | } | |
5336 | if (_obj2) | |
5337 | { | |
5338 | _arg2 = wxString_LIST_helper(_obj2); | |
5339 | if (_arg2 == NULL) { | |
5340 | return NULL; | |
5341 | } | |
5342 | } | |
5343 | { | |
5344 | if (_obj2) { | |
5345 | _arg1 = PyList_Size(_obj2); | |
5346 | } | |
5347 | else { | |
5348 | _arg1 = 0; | |
5349 | } | |
5350 | } | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | wxListBox_Set(_arg0,_arg1,_arg2); | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) return NULL; | |
5357 | } Py_INCREF(Py_None); | |
5358 | _resultobj = Py_None; | |
5359 | { | |
5360 | delete [] _arg2; | |
5361 | } | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
5365 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
5366 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | wxListBox * _arg0; | |
5369 | int _arg1; | |
5370 | PyObject * _argo0 = 0; | |
5371 | char *_kwnames[] = { "self","n", NULL }; | |
5372 | ||
5373 | self = self; | |
5374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) | |
5375 | return NULL; | |
5376 | if (_argo0) { | |
5377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); | |
5380 | return NULL; | |
5381 | } | |
5382 | } | |
5383 | { | |
5384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5385 | wxListBox_SetFirstItem(_arg0,_arg1); | |
5386 | ||
5387 | wxPyEndAllowThreads(__tstate); | |
5388 | if (PyErr_Occurred()) return NULL; | |
5389 | } Py_INCREF(Py_None); | |
5390 | _resultobj = Py_None; | |
5391 | return _resultobj; | |
5392 | } | |
5393 | ||
5394 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
5395 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5396 | PyObject * _resultobj; | |
5397 | wxListBox * _arg0; | |
5398 | wxString * _arg1; | |
5399 | PyObject * _argo0 = 0; | |
5400 | PyObject * _obj1 = 0; | |
5401 | char *_kwnames[] = { "self","string", NULL }; | |
5402 | ||
5403 | self = self; | |
5404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) | |
5405 | return NULL; | |
5406 | if (_argo0) { | |
5407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); | |
5410 | return NULL; | |
5411 | } | |
5412 | } | |
5413 | { | |
5414 | _arg1 = wxString_in_helper(_obj1); | |
5415 | if (_arg1 == NULL) | |
5416 | return NULL; | |
5417 | } | |
5418 | { | |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | wxListBox_SetFirstItemStr(_arg0,*_arg1); | |
5421 | ||
5422 | wxPyEndAllowThreads(__tstate); | |
5423 | if (PyErr_Occurred()) return NULL; | |
5424 | } Py_INCREF(Py_None); | |
5425 | _resultobj = Py_None; | |
5426 | { | |
5427 | if (_obj1) | |
5428 | delete _arg1; | |
5429 | } | |
5430 | return _resultobj; | |
5431 | } | |
5432 | ||
5433 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
5434 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5435 | PyObject * _resultobj; | |
5436 | wxListBox * _arg0; | |
5437 | int _arg1; | |
5438 | bool _arg2 = (bool ) TRUE; | |
5439 | PyObject * _argo0 = 0; | |
5440 | int tempbool2 = (int) TRUE; | |
5441 | char *_kwnames[] = { "self","n","select", NULL }; | |
5442 | ||
5443 | self = self; | |
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5445 | return NULL; | |
5446 | if (_argo0) { | |
5447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); | |
5450 | return NULL; | |
5451 | } | |
5452 | } | |
5453 | _arg2 = (bool ) tempbool2; | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | wxListBox_SetSelection(_arg0,_arg1,_arg2); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) return NULL; | |
5460 | } Py_INCREF(Py_None); | |
5461 | _resultobj = Py_None; | |
5462 | return _resultobj; | |
5463 | } | |
5464 | ||
5465 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
5466 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5467 | PyObject * _resultobj; | |
5468 | wxListBox * _arg0; | |
5469 | int _arg1; | |
5470 | wxString * _arg2; | |
5471 | PyObject * _argo0 = 0; | |
5472 | PyObject * _obj2 = 0; | |
5473 | char *_kwnames[] = { "self","n","string", NULL }; | |
5474 | ||
5475 | self = self; | |
5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5477 | return NULL; | |
5478 | if (_argo0) { | |
5479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); | |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
5485 | { | |
5486 | _arg2 = wxString_in_helper(_obj2); | |
5487 | if (_arg2 == NULL) | |
5488 | return NULL; | |
5489 | } | |
5490 | { | |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | wxListBox_SetString(_arg0,_arg1,*_arg2); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) return NULL; | |
5496 | } Py_INCREF(Py_None); | |
5497 | _resultobj = Py_None; | |
5498 | { | |
5499 | if (_obj2) | |
5500 | delete _arg2; | |
5501 | } | |
5502 | return _resultobj; | |
5503 | } | |
5504 | ||
5505 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
5506 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5507 | PyObject * _resultobj; | |
5508 | wxListBox * _arg0; | |
5509 | wxString * _arg1; | |
5510 | bool _arg2 = (bool ) TRUE; | |
5511 | PyObject * _argo0 = 0; | |
5512 | PyObject * _obj1 = 0; | |
5513 | int tempbool2 = (int) TRUE; | |
5514 | char *_kwnames[] = { "self","string","select", NULL }; | |
5515 | ||
5516 | self = self; | |
5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
5518 | return NULL; | |
5519 | if (_argo0) { | |
5520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); | |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
5526 | { | |
5527 | _arg1 = wxString_in_helper(_obj1); | |
5528 | if (_arg1 == NULL) | |
5529 | return NULL; | |
5530 | } | |
5531 | _arg2 = (bool ) tempbool2; | |
5532 | { | |
5533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5534 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); | |
5535 | ||
5536 | wxPyEndAllowThreads(__tstate); | |
5537 | if (PyErr_Occurred()) return NULL; | |
5538 | } Py_INCREF(Py_None); | |
5539 | _resultobj = Py_None; | |
5540 | { | |
5541 | if (_obj1) | |
5542 | delete _arg1; | |
5543 | } | |
5544 | return _resultobj; | |
5545 | } | |
5546 | ||
5547 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { | |
5548 | wxCheckListBox *src; | |
5549 | wxListBox *dest; | |
5550 | src = (wxCheckListBox *) ptr; | |
5551 | dest = (wxListBox *) src; | |
5552 | return (void *) dest; | |
5553 | } | |
5554 | ||
5555 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { | |
5556 | wxCheckListBox *src; | |
5557 | wxControlWithItems *dest; | |
5558 | src = (wxCheckListBox *) ptr; | |
5559 | dest = (wxControlWithItems *) src; | |
5560 | return (void *) dest; | |
5561 | } | |
5562 | ||
5563 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { | |
5564 | wxCheckListBox *src; | |
5565 | wxControl *dest; | |
5566 | src = (wxCheckListBox *) ptr; | |
5567 | dest = (wxControl *) src; | |
5568 | return (void *) dest; | |
5569 | } | |
5570 | ||
5571 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5572 | wxCheckListBox *src; | |
5573 | wxWindow *dest; | |
5574 | src = (wxCheckListBox *) ptr; | |
5575 | dest = (wxWindow *) src; | |
5576 | return (void *) dest; | |
5577 | } | |
5578 | ||
5579 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5580 | wxCheckListBox *src; | |
5581 | wxEvtHandler *dest; | |
5582 | src = (wxCheckListBox *) ptr; | |
5583 | dest = (wxEvtHandler *) src; | |
5584 | return (void *) dest; | |
5585 | } | |
5586 | ||
5587 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { | |
5588 | wxCheckListBox *src; | |
5589 | wxObject *dest; | |
5590 | src = (wxCheckListBox *) ptr; | |
5591 | dest = (wxObject *) src; | |
5592 | return (void *) dest; | |
5593 | } | |
5594 | ||
5595 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5596 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5597 | PyObject * _resultobj; | |
5598 | wxCheckListBox * _result; | |
5599 | wxWindow * _arg0; | |
5600 | wxWindowID _arg1; | |
5601 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5602 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5603 | int _arg4 = (int ) 0; | |
5604 | wxString * _arg5 = (wxString *) NULL; | |
5605 | long _arg6 = (long ) 0; | |
5606 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
5607 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; | |
5608 | PyObject * _argo0 = 0; | |
5609 | wxPoint temp; | |
5610 | PyObject * _obj2 = 0; | |
5611 | wxSize temp0; | |
5612 | PyObject * _obj3 = 0; | |
5613 | PyObject * _obj5 = 0; | |
5614 | PyObject * _argo7 = 0; | |
5615 | PyObject * _obj8 = 0; | |
5616 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; | |
5617 | char _ptemp[128]; | |
5618 | ||
5619 | self = self; | |
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) | |
5621 | return NULL; | |
5622 | if (_argo0) { | |
5623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); | |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
5629 | if (_obj2) | |
5630 | { | |
5631 | _arg2 = &temp; | |
5632 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5633 | return NULL; | |
5634 | } | |
5635 | if (_obj3) | |
5636 | { | |
5637 | _arg3 = &temp0; | |
5638 | if (! wxSize_helper(_obj3, &_arg3)) | |
5639 | return NULL; | |
5640 | } | |
5641 | if (_obj5) | |
5642 | { | |
5643 | _arg5 = wxString_LIST_helper(_obj5); | |
5644 | if (_arg5 == NULL) { | |
5645 | return NULL; | |
5646 | } | |
5647 | } | |
5648 | if (_argo7) { | |
5649 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
5650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); | |
5651 | return NULL; | |
5652 | } | |
5653 | } | |
5654 | if (_obj8) | |
5655 | { | |
5656 | _arg8 = wxString_in_helper(_obj8); | |
5657 | if (_arg8 == NULL) | |
5658 | return NULL; | |
5659 | } | |
5660 | { | |
5661 | if (_obj5) { | |
5662 | _arg4 = PyList_Size(_obj5); | |
5663 | } | |
5664 | else { | |
5665 | _arg4 = 0; | |
5666 | } | |
5667 | } | |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) return NULL; | |
5674 | } if (_result) { | |
5675 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5676 | _resultobj = Py_BuildValue("s",_ptemp); | |
5677 | } else { | |
5678 | Py_INCREF(Py_None); | |
5679 | _resultobj = Py_None; | |
5680 | } | |
5681 | { | |
5682 | delete [] _arg5; | |
5683 | } | |
5684 | { | |
5685 | if (_obj8) | |
5686 | delete _arg8; | |
5687 | } | |
5688 | return _resultobj; | |
5689 | } | |
5690 | ||
5691 | #define new_wxPreCheckListBox() (new wxCheckListBox()) | |
5692 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject * _resultobj; | |
5694 | wxCheckListBox * _result; | |
5695 | char *_kwnames[] = { NULL }; | |
5696 | char _ptemp[128]; | |
5697 | ||
5698 | self = self; | |
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5700 | return NULL; | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) return NULL; | |
5707 | } if (_result) { | |
5708 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5709 | _resultobj = Py_BuildValue("s",_ptemp); | |
5710 | } else { | |
5711 | Py_INCREF(Py_None); | |
5712 | _resultobj = Py_None; | |
5713 | } | |
5714 | return _resultobj; | |
5715 | } | |
5716 | ||
5717 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5718 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5719 | PyObject * _resultobj; | |
5720 | bool _result; | |
5721 | wxCheckListBox * _arg0; | |
5722 | wxWindow * _arg1; | |
5723 | wxWindowID _arg2; | |
5724 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5725 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5726 | int _arg5 = (int ) 0; | |
5727 | wxString * _arg6 = (wxString *) NULL; | |
5728 | long _arg7 = (long ) 0; | |
5729 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
5730 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; | |
5731 | PyObject * _argo0 = 0; | |
5732 | PyObject * _argo1 = 0; | |
5733 | wxPoint temp; | |
5734 | PyObject * _obj3 = 0; | |
5735 | wxSize temp0; | |
5736 | PyObject * _obj4 = 0; | |
5737 | PyObject * _obj6 = 0; | |
5738 | PyObject * _argo8 = 0; | |
5739 | PyObject * _obj9 = 0; | |
5740 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; | |
5741 | ||
5742 | self = self; | |
5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) | |
5744 | return NULL; | |
5745 | if (_argo0) { | |
5746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5749 | return NULL; | |
5750 | } | |
5751 | } | |
5752 | if (_argo1) { | |
5753 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5754 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5756 | return NULL; | |
5757 | } | |
5758 | } | |
5759 | if (_obj3) | |
5760 | { | |
5761 | _arg3 = &temp; | |
5762 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5763 | return NULL; | |
5764 | } | |
5765 | if (_obj4) | |
5766 | { | |
5767 | _arg4 = &temp0; | |
5768 | if (! wxSize_helper(_obj4, &_arg4)) | |
5769 | return NULL; | |
5770 | } | |
5771 | if (_obj6) | |
5772 | { | |
5773 | _arg6 = wxString_LIST_helper(_obj6); | |
5774 | if (_arg6 == NULL) { | |
5775 | return NULL; | |
5776 | } | |
5777 | } | |
5778 | if (_argo8) { | |
5779 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5781 | return NULL; | |
5782 | } | |
5783 | } | |
5784 | if (_obj9) | |
5785 | { | |
5786 | _arg9 = wxString_in_helper(_obj9); | |
5787 | if (_arg9 == NULL) | |
5788 | return NULL; | |
5789 | } | |
5790 | { | |
5791 | if (_obj6) { | |
5792 | _arg5 = PyList_Size(_obj6); | |
5793 | } | |
5794 | else { | |
5795 | _arg5 = 0; | |
5796 | } | |
5797 | } | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) return NULL; | |
5804 | } _resultobj = Py_BuildValue("i",_result); | |
5805 | { | |
5806 | delete [] _arg6; | |
5807 | } | |
5808 | { | |
5809 | if (_obj9) | |
5810 | delete _arg9; | |
5811 | } | |
5812 | return _resultobj; | |
5813 | } | |
5814 | ||
5815 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5816 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5817 | PyObject * _resultobj; | |
5818 | bool _result; | |
5819 | wxCheckListBox * _arg0; | |
5820 | int _arg1; | |
5821 | PyObject * _argo0 = 0; | |
5822 | char *_kwnames[] = { "self","uiIndex", NULL }; | |
5823 | ||
5824 | self = self; | |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5826 | return NULL; | |
5827 | if (_argo0) { | |
5828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); | |
5831 | return NULL; | |
5832 | } | |
5833 | } | |
5834 | { | |
5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5836 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); | |
5837 | ||
5838 | wxPyEndAllowThreads(__tstate); | |
5839 | if (PyErr_Occurred()) return NULL; | |
5840 | } _resultobj = Py_BuildValue("i",_result); | |
5841 | return _resultobj; | |
5842 | } | |
5843 | ||
5844 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5845 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5846 | PyObject * _resultobj; | |
5847 | wxCheckListBox * _arg0; | |
5848 | int _arg1; | |
5849 | int _arg2 = (int ) TRUE; | |
5850 | PyObject * _argo0 = 0; | |
5851 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; | |
5852 | ||
5853 | self = self; | |
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5855 | return NULL; | |
5856 | if (_argo0) { | |
5857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); | |
5860 | return NULL; | |
5861 | } | |
5862 | } | |
5863 | { | |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | wxCheckListBox_Check(_arg0,_arg1,_arg2); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) return NULL; | |
5869 | } Py_INCREF(Py_None); | |
5870 | _resultobj = Py_None; | |
5871 | return _resultobj; | |
5872 | } | |
5873 | ||
5874 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) | |
5875 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject * _resultobj; | |
5877 | wxCheckListBox * _arg0; | |
5878 | int _arg1; | |
5879 | wxString * _arg2; | |
5880 | int _arg3; | |
5881 | PyObject * _argo0 = 0; | |
5882 | PyObject * _obj2 = 0; | |
5883 | char *_kwnames[] = { "self","choices","pos", NULL }; | |
5884 | ||
5885 | self = self; | |
5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5887 | return NULL; | |
5888 | if (_argo0) { | |
5889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5892 | return NULL; | |
5893 | } | |
5894 | } | |
5895 | { | |
5896 | _arg2 = wxString_LIST_helper(_obj2); | |
5897 | if (_arg2 == NULL) { | |
5898 | return NULL; | |
5899 | } | |
5900 | } | |
5901 | { | |
5902 | if (_obj2) { | |
5903 | _arg1 = PyList_Size(_obj2); | |
5904 | } | |
5905 | else { | |
5906 | _arg1 = 0; | |
5907 | } | |
5908 | } | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) return NULL; | |
5915 | } Py_INCREF(Py_None); | |
5916 | _resultobj = Py_None; | |
5917 | { | |
5918 | delete [] _arg2; | |
5919 | } | |
5920 | return _resultobj; | |
5921 | } | |
5922 | ||
5923 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) | |
5924 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5925 | PyObject * _resultobj; | |
5926 | int _result; | |
5927 | wxCheckListBox * _arg0; | |
5928 | PyObject * _argo0 = 0; | |
5929 | char *_kwnames[] = { "self", NULL }; | |
5930 | ||
5931 | self = self; | |
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) | |
5933 | return NULL; | |
5934 | if (_argo0) { | |
5935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); | |
5938 | return NULL; | |
5939 | } | |
5940 | } | |
5941 | { | |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); | |
5944 | ||
5945 | wxPyEndAllowThreads(__tstate); | |
5946 | if (PyErr_Occurred()) return NULL; | |
5947 | } _resultobj = Py_BuildValue("i",_result); | |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
5951 | #define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) | |
5952 | static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject * _resultobj; | |
5954 | int _result; | |
5955 | wxCheckListBox * _arg0; | |
5956 | wxPoint * _arg1; | |
5957 | PyObject * _argo0 = 0; | |
5958 | wxPoint temp; | |
5959 | PyObject * _obj1 = 0; | |
5960 | char *_kwnames[] = { "self","pt", NULL }; | |
5961 | ||
5962 | self = self; | |
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1)) | |
5964 | return NULL; | |
5965 | if (_argo0) { | |
5966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p."); | |
5969 | return NULL; | |
5970 | } | |
5971 | } | |
5972 | { | |
5973 | _arg1 = &temp; | |
5974 | if (! wxPoint_helper(_obj1, &_arg1)) | |
5975 | return NULL; | |
5976 | } | |
5977 | { | |
5978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5979 | _result = (int )wxCheckListBox_HitTest(_arg0,*_arg1); | |
5980 | ||
5981 | wxPyEndAllowThreads(__tstate); | |
5982 | if (PyErr_Occurred()) return NULL; | |
5983 | } _resultobj = Py_BuildValue("i",_result); | |
5984 | return _resultobj; | |
5985 | } | |
5986 | ||
5987 | #define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
5988 | static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject * _resultobj; | |
5990 | int _result; | |
5991 | wxCheckListBox * _arg0; | |
5992 | wxCoord _arg1; | |
5993 | wxCoord _arg2; | |
5994 | PyObject * _argo0 = 0; | |
5995 | char *_kwnames[] = { "self","x","y", NULL }; | |
5996 | ||
5997 | self = self; | |
5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5999 | return NULL; | |
6000 | if (_argo0) { | |
6001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p."); | |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
6007 | { | |
6008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6009 | _result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2); | |
6010 | ||
6011 | wxPyEndAllowThreads(__tstate); | |
6012 | if (PyErr_Occurred()) return NULL; | |
6013 | } _resultobj = Py_BuildValue("i",_result); | |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) | |
6018 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject * _resultobj; | |
6020 | wxTextAttr * _result; | |
6021 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
6022 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
6023 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
6024 | wxColour temp; | |
6025 | PyObject * _obj0 = 0; | |
6026 | wxColour temp0; | |
6027 | PyObject * _obj1 = 0; | |
6028 | PyObject * _argo2 = 0; | |
6029 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
6030 | char _ptemp[128]; | |
6031 | ||
6032 | self = self; | |
6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
6034 | return NULL; | |
6035 | if (_obj0) | |
6036 | { | |
6037 | _arg0 = &temp; | |
6038 | if (! wxColour_helper(_obj0, &_arg0)) | |
6039 | return NULL; | |
6040 | } | |
6041 | if (_obj1) | |
6042 | { | |
6043 | _arg1 = &temp0; | |
6044 | if (! wxColour_helper(_obj1, &_arg1)) | |
6045 | return NULL; | |
6046 | } | |
6047 | if (_argo2) { | |
6048 | 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 (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
6194 | { | |
6195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6196 | wxTextAttr_SetFont(_arg0,*_arg1); | |
6197 | ||
6198 | wxPyEndAllowThreads(__tstate); | |
6199 | if (PyErr_Occurred()) return NULL; | |
6200 | } Py_INCREF(Py_None); | |
6201 | _resultobj = Py_None; | |
6202 | return _resultobj; | |
6203 | } | |
6204 | ||
6205 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
6206 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6207 | PyObject * _resultobj; | |
6208 | bool _result; | |
6209 | wxTextAttr * _arg0; | |
6210 | PyObject * _argo0 = 0; | |
6211 | char *_kwnames[] = { "self", NULL }; | |
6212 | ||
6213 | self = self; | |
6214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
6215 | return NULL; | |
6216 | if (_argo0) { | |
6217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
6220 | return NULL; | |
6221 | } | |
6222 | } | |
6223 | { | |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | _result = (bool )wxTextAttr_HasTextColour(_arg0); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) return NULL; | |
6229 | } _resultobj = Py_BuildValue("i",_result); | |
6230 | return _resultobj; | |
6231 | } | |
6232 | ||
6233 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
6234 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject * _resultobj; | |
6236 | bool _result; | |
6237 | wxTextAttr * _arg0; | |
6238 | PyObject * _argo0 = 0; | |
6239 | char *_kwnames[] = { "self", NULL }; | |
6240 | ||
6241 | self = self; | |
6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
6243 | return NULL; | |
6244 | if (_argo0) { | |
6245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
6248 | return NULL; | |
6249 | } | |
6250 | } | |
6251 | { | |
6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6253 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); | |
6254 | ||
6255 | wxPyEndAllowThreads(__tstate); | |
6256 | if (PyErr_Occurred()) return NULL; | |
6257 | } _resultobj = Py_BuildValue("i",_result); | |
6258 | return _resultobj; | |
6259 | } | |
6260 | ||
6261 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
6262 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6263 | PyObject * _resultobj; | |
6264 | bool _result; | |
6265 | wxTextAttr * _arg0; | |
6266 | PyObject * _argo0 = 0; | |
6267 | char *_kwnames[] = { "self", NULL }; | |
6268 | ||
6269 | self = self; | |
6270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
6271 | return NULL; | |
6272 | if (_argo0) { | |
6273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
6276 | return NULL; | |
6277 | } | |
6278 | } | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | _result = (bool )wxTextAttr_HasFont(_arg0); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) return NULL; | |
6285 | } _resultobj = Py_BuildValue("i",_result); | |
6286 | return _resultobj; | |
6287 | } | |
6288 | ||
6289 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
6290 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6291 | PyObject * _resultobj; | |
6292 | wxColour * _result; | |
6293 | wxTextAttr * _arg0; | |
6294 | PyObject * _argo0 = 0; | |
6295 | char *_kwnames[] = { "self", NULL }; | |
6296 | char _ptemp[128]; | |
6297 | ||
6298 | self = self; | |
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
6300 | return NULL; | |
6301 | if (_argo0) { | |
6302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
6308 | { | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); | |
6311 | ||
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) return NULL; | |
6314 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6315 | _resultobj = Py_BuildValue("s",_ptemp); | |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
6319 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6320 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6321 | PyObject * _resultobj; | |
6322 | wxColour * _result; | |
6323 | wxTextAttr * _arg0; | |
6324 | PyObject * _argo0 = 0; | |
6325 | char *_kwnames[] = { "self", NULL }; | |
6326 | char _ptemp[128]; | |
6327 | ||
6328 | self = self; | |
6329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6330 | return NULL; | |
6331 | if (_argo0) { | |
6332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
6335 | return NULL; | |
6336 | } | |
6337 | } | |
6338 | { | |
6339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6340 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); | |
6341 | ||
6342 | wxPyEndAllowThreads(__tstate); | |
6343 | if (PyErr_Occurred()) return NULL; | |
6344 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
6345 | _resultobj = Py_BuildValue("s",_ptemp); | |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
6349 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6350 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | wxFont * _result; | |
6353 | wxTextAttr * _arg0; | |
6354 | PyObject * _argo0 = 0; | |
6355 | char *_kwnames[] = { "self", NULL }; | |
6356 | char _ptemp[128]; | |
6357 | ||
6358 | self = self; | |
6359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
6360 | return NULL; | |
6361 | if (_argo0) { | |
6362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
6365 | return NULL; | |
6366 | } | |
6367 | } | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) return NULL; | |
6374 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
6375 | _resultobj = Py_BuildValue("s",_ptemp); | |
6376 | return _resultobj; | |
6377 | } | |
6378 | ||
6379 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) | |
6380 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6381 | PyObject * _resultobj; | |
6382 | bool _result; | |
6383 | wxTextAttr * _arg0; | |
6384 | PyObject * _argo0 = 0; | |
6385 | char *_kwnames[] = { "self", NULL }; | |
6386 | ||
6387 | self = self; | |
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6389 | return NULL; | |
6390 | if (_argo0) { | |
6391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6394 | return NULL; | |
6395 | } | |
6396 | } | |
6397 | { | |
6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6399 | _result = (bool )wxTextAttr_IsDefault(_arg0); | |
6400 | ||
6401 | wxPyEndAllowThreads(__tstate); | |
6402 | if (PyErr_Occurred()) return NULL; | |
6403 | } _resultobj = Py_BuildValue("i",_result); | |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
6407 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6408 | PyObject * _resultobj; | |
6409 | wxTextAttr * _result; | |
6410 | wxTextAttr * _arg0; | |
6411 | wxTextAttr * _arg1; | |
6412 | wxTextCtrl * _arg2; | |
6413 | PyObject * _argo0 = 0; | |
6414 | PyObject * _argo1 = 0; | |
6415 | PyObject * _argo2 = 0; | |
6416 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6417 | char _ptemp[128]; | |
6418 | ||
6419 | self = self; | |
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6421 | return NULL; | |
6422 | if (_argo0) { | |
6423 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6425 | return NULL; | |
6426 | } | |
6427 | } | |
6428 | if (_argo1) { | |
6429 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6431 | return NULL; | |
6432 | } | |
6433 | } | |
6434 | if (_argo2) { | |
6435 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6436 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6438 | return NULL; | |
6439 | } | |
6440 | } | |
6441 | { | |
6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6443 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); | |
6444 | ||
6445 | wxPyEndAllowThreads(__tstate); | |
6446 | if (PyErr_Occurred()) return NULL; | |
6447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6448 | _resultobj = Py_BuildValue("s",_ptemp); | |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
6452 | static void *SwigwxTextCtrlTowxControl(void *ptr) { | |
6453 | wxTextCtrl *src; | |
6454 | wxControl *dest; | |
6455 | src = (wxTextCtrl *) ptr; | |
6456 | dest = (wxControl *) src; | |
6457 | return (void *) dest; | |
6458 | } | |
6459 | ||
6460 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6461 | wxTextCtrl *src; | |
6462 | wxWindow *dest; | |
6463 | src = (wxTextCtrl *) ptr; | |
6464 | dest = (wxWindow *) src; | |
6465 | return (void *) dest; | |
6466 | } | |
6467 | ||
6468 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6469 | wxTextCtrl *src; | |
6470 | wxEvtHandler *dest; | |
6471 | src = (wxTextCtrl *) ptr; | |
6472 | dest = (wxEvtHandler *) src; | |
6473 | return (void *) dest; | |
6474 | } | |
6475 | ||
6476 | static void *SwigwxTextCtrlTowxObject(void *ptr) { | |
6477 | wxTextCtrl *src; | |
6478 | wxObject *dest; | |
6479 | src = (wxTextCtrl *) ptr; | |
6480 | dest = (wxObject *) src; | |
6481 | return (void *) dest; | |
6482 | } | |
6483 | ||
6484 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6485 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject * _resultobj; | |
6487 | wxTextCtrl * _result; | |
6488 | wxWindow * _arg0; | |
6489 | wxWindowID _arg1; | |
6490 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
6491 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6492 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6493 | long _arg5 = (long ) 0; | |
6494 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6495 | wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr; | |
6496 | PyObject * _argo0 = 0; | |
6497 | PyObject * _obj2 = 0; | |
6498 | wxPoint temp; | |
6499 | PyObject * _obj3 = 0; | |
6500 | wxSize temp0; | |
6501 | PyObject * _obj4 = 0; | |
6502 | PyObject * _argo6 = 0; | |
6503 | PyObject * _obj7 = 0; | |
6504 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; | |
6505 | char _ptemp[128]; | |
6506 | ||
6507 | self = self; | |
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
6509 | return NULL; | |
6510 | if (_argo0) { | |
6511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); | |
6514 | return NULL; | |
6515 | } | |
6516 | } | |
6517 | if (_obj2) | |
6518 | { | |
6519 | _arg2 = wxString_in_helper(_obj2); | |
6520 | if (_arg2 == NULL) | |
6521 | return NULL; | |
6522 | } | |
6523 | if (_obj3) | |
6524 | { | |
6525 | _arg3 = &temp; | |
6526 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6527 | return NULL; | |
6528 | } | |
6529 | if (_obj4) | |
6530 | { | |
6531 | _arg4 = &temp0; | |
6532 | if (! wxSize_helper(_obj4, &_arg4)) | |
6533 | return NULL; | |
6534 | } | |
6535 | if (_argo6) { | |
6536 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); | |
6538 | return NULL; | |
6539 | } | |
6540 | } | |
6541 | if (_obj7) | |
6542 | { | |
6543 | _arg7 = wxString_in_helper(_obj7); | |
6544 | if (_arg7 == NULL) | |
6545 | return NULL; | |
6546 | } | |
6547 | { | |
6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6549 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
6550 | ||
6551 | wxPyEndAllowThreads(__tstate); | |
6552 | if (PyErr_Occurred()) return NULL; | |
6553 | } if (_result) { | |
6554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6555 | _resultobj = Py_BuildValue("s",_ptemp); | |
6556 | } else { | |
6557 | Py_INCREF(Py_None); | |
6558 | _resultobj = Py_None; | |
6559 | } | |
6560 | { | |
6561 | if (_obj2) | |
6562 | delete _arg2; | |
6563 | } | |
6564 | { | |
6565 | if (_obj7) | |
6566 | delete _arg7; | |
6567 | } | |
6568 | return _resultobj; | |
6569 | } | |
6570 | ||
6571 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6572 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject * _resultobj; | |
6574 | wxTextCtrl * _result; | |
6575 | char *_kwnames[] = { NULL }; | |
6576 | char _ptemp[128]; | |
6577 | ||
6578 | self = self; | |
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6580 | return NULL; | |
6581 | { | |
6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6583 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); | |
6584 | ||
6585 | wxPyEndAllowThreads(__tstate); | |
6586 | if (PyErr_Occurred()) return NULL; | |
6587 | } if (_result) { | |
6588 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6589 | _resultobj = Py_BuildValue("s",_ptemp); | |
6590 | } else { | |
6591 | Py_INCREF(Py_None); | |
6592 | _resultobj = Py_None; | |
6593 | } | |
6594 | return _resultobj; | |
6595 | } | |
6596 | ||
6597 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6598 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject * _resultobj; | |
6600 | bool _result; | |
6601 | wxTextCtrl * _arg0; | |
6602 | wxWindow * _arg1; | |
6603 | wxWindowID _arg2; | |
6604 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
6605 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
6606 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6607 | long _arg6 = (long ) 0; | |
6608 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
6609 | wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr; | |
6610 | PyObject * _argo0 = 0; | |
6611 | PyObject * _argo1 = 0; | |
6612 | PyObject * _obj3 = 0; | |
6613 | wxPoint temp; | |
6614 | PyObject * _obj4 = 0; | |
6615 | wxSize temp0; | |
6616 | PyObject * _obj5 = 0; | |
6617 | PyObject * _argo7 = 0; | |
6618 | PyObject * _obj8 = 0; | |
6619 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; | |
6620 | ||
6621 | self = self; | |
6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
6623 | return NULL; | |
6624 | if (_argo0) { | |
6625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6628 | return NULL; | |
6629 | } | |
6630 | } | |
6631 | if (_argo1) { | |
6632 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6633 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6635 | return NULL; | |
6636 | } | |
6637 | } | |
6638 | if (_obj3) | |
6639 | { | |
6640 | _arg3 = wxString_in_helper(_obj3); | |
6641 | if (_arg3 == NULL) | |
6642 | return NULL; | |
6643 | } | |
6644 | if (_obj4) | |
6645 | { | |
6646 | _arg4 = &temp; | |
6647 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6648 | return NULL; | |
6649 | } | |
6650 | if (_obj5) | |
6651 | { | |
6652 | _arg5 = &temp0; | |
6653 | if (! wxSize_helper(_obj5, &_arg5)) | |
6654 | return NULL; | |
6655 | } | |
6656 | if (_argo7) { | |
6657 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6659 | return NULL; | |
6660 | } | |
6661 | } | |
6662 | if (_obj8) | |
6663 | { | |
6664 | _arg8 = wxString_in_helper(_obj8); | |
6665 | if (_arg8 == NULL) | |
6666 | return NULL; | |
6667 | } | |
6668 | { | |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) return NULL; | |
6674 | } _resultobj = Py_BuildValue("i",_result); | |
6675 | { | |
6676 | if (_obj3) | |
6677 | delete _arg3; | |
6678 | } | |
6679 | { | |
6680 | if (_obj8) | |
6681 | delete _arg8; | |
6682 | } | |
6683 | return _resultobj; | |
6684 | } | |
6685 | ||
6686 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
6687 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject * _resultobj; | |
6689 | wxString * _result; | |
6690 | wxTextCtrl * _arg0; | |
6691 | PyObject * _argo0 = 0; | |
6692 | char *_kwnames[] = { "self", NULL }; | |
6693 | ||
6694 | self = self; | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6706 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); | |
6707 | ||
6708 | wxPyEndAllowThreads(__tstate); | |
6709 | if (PyErr_Occurred()) return NULL; | |
6710 | }{ | |
6711 | #if wxUSE_UNICODE | |
6712 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
6713 | #else | |
6714 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6715 | #endif | |
6716 | } | |
6717 | { | |
6718 | delete _result; | |
6719 | } | |
6720 | return _resultobj; | |
6721 | } | |
6722 | ||
6723 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
6724 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6725 | PyObject * _resultobj; | |
6726 | wxTextCtrl * _arg0; | |
6727 | wxString * _arg1; | |
6728 | PyObject * _argo0 = 0; | |
6729 | PyObject * _obj1 = 0; | |
6730 | char *_kwnames[] = { "self","value", NULL }; | |
6731 | ||
6732 | self = self; | |
6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) | |
6734 | return NULL; | |
6735 | if (_argo0) { | |
6736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); | |
6739 | return NULL; | |
6740 | } | |
6741 | } | |
6742 | { | |
6743 | _arg1 = wxString_in_helper(_obj1); | |
6744 | if (_arg1 == NULL) | |
6745 | return NULL; | |
6746 | } | |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | wxTextCtrl_SetValue(_arg0,*_arg1); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) return NULL; | |
6753 | } Py_INCREF(Py_None); | |
6754 | _resultobj = Py_None; | |
6755 | { | |
6756 | if (_obj1) | |
6757 | delete _arg1; | |
6758 | } | |
6759 | return _resultobj; | |
6760 | } | |
6761 | ||
6762 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) | |
6763 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6764 | PyObject * _resultobj; | |
6765 | wxString * _result; | |
6766 | wxTextCtrl * _arg0; | |
6767 | long _arg1; | |
6768 | long _arg2; | |
6769 | PyObject * _argo0 = 0; | |
6770 | char *_kwnames[] = { "self","from","to", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | { | |
6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6784 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); | |
6785 | ||
6786 | wxPyEndAllowThreads(__tstate); | |
6787 | if (PyErr_Occurred()) return NULL; | |
6788 | }{ | |
6789 | #if wxUSE_UNICODE | |
6790 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
6791 | #else | |
6792 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6793 | #endif | |
6794 | } | |
6795 | { | |
6796 | delete _result; | |
6797 | } | |
6798 | return _resultobj; | |
6799 | } | |
6800 | ||
6801 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) | |
6802 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6803 | PyObject * _resultobj; | |
6804 | int _result; | |
6805 | wxTextCtrl * _arg0; | |
6806 | long _arg1; | |
6807 | PyObject * _argo0 = 0; | |
6808 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6809 | ||
6810 | self = self; | |
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) | |
6812 | return NULL; | |
6813 | if (_argo0) { | |
6814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); | |
6817 | return NULL; | |
6818 | } | |
6819 | } | |
6820 | { | |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); | |
6823 | ||
6824 | wxPyEndAllowThreads(__tstate); | |
6825 | if (PyErr_Occurred()) return NULL; | |
6826 | } _resultobj = Py_BuildValue("i",_result); | |
6827 | return _resultobj; | |
6828 | } | |
6829 | ||
6830 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) | |
6831 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6832 | PyObject * _resultobj; | |
6833 | wxString * _result; | |
6834 | wxTextCtrl * _arg0; | |
6835 | long _arg1; | |
6836 | PyObject * _argo0 = 0; | |
6837 | char *_kwnames[] = { "self","lineNo", NULL }; | |
6838 | ||
6839 | self = self; | |
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) | |
6841 | return NULL; | |
6842 | if (_argo0) { | |
6843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); | |
6846 | return NULL; | |
6847 | } | |
6848 | } | |
6849 | { | |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6851 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
6854 | if (PyErr_Occurred()) return NULL; | |
6855 | }{ | |
6856 | #if wxUSE_UNICODE | |
6857 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
6858 | #else | |
6859 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6860 | #endif | |
6861 | } | |
6862 | { | |
6863 | delete _result; | |
6864 | } | |
6865 | return _resultobj; | |
6866 | } | |
6867 | ||
6868 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) | |
6869 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6870 | PyObject * _resultobj; | |
6871 | int _result; | |
6872 | wxTextCtrl * _arg0; | |
6873 | PyObject * _argo0 = 0; | |
6874 | char *_kwnames[] = { "self", NULL }; | |
6875 | ||
6876 | self = self; | |
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) | |
6878 | return NULL; | |
6879 | if (_argo0) { | |
6880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); | |
6883 | return NULL; | |
6884 | } | |
6885 | } | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) return NULL; | |
6892 | } _resultobj = Py_BuildValue("i",_result); | |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) | |
6897 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6898 | PyObject * _resultobj; | |
6899 | bool _result; | |
6900 | wxTextCtrl * _arg0; | |
6901 | PyObject * _argo0 = 0; | |
6902 | char *_kwnames[] = { "self", NULL }; | |
6903 | ||
6904 | self = self; | |
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) | |
6906 | return NULL; | |
6907 | if (_argo0) { | |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); | |
6911 | return NULL; | |
6912 | } | |
6913 | } | |
6914 | { | |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | _result = (bool )wxTextCtrl_IsModified(_arg0); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) return NULL; | |
6920 | } _resultobj = Py_BuildValue("i",_result); | |
6921 | return _resultobj; | |
6922 | } | |
6923 | ||
6924 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) | |
6925 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6926 | PyObject * _resultobj; | |
6927 | bool _result; | |
6928 | wxTextCtrl * _arg0; | |
6929 | PyObject * _argo0 = 0; | |
6930 | char *_kwnames[] = { "self", NULL }; | |
6931 | ||
6932 | self = self; | |
6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) | |
6934 | return NULL; | |
6935 | if (_argo0) { | |
6936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); | |
6939 | return NULL; | |
6940 | } | |
6941 | } | |
6942 | { | |
6943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6944 | _result = (bool )wxTextCtrl_IsEditable(_arg0); | |
6945 | ||
6946 | wxPyEndAllowThreads(__tstate); | |
6947 | if (PyErr_Occurred()) return NULL; | |
6948 | } _resultobj = Py_BuildValue("i",_result); | |
6949 | return _resultobj; | |
6950 | } | |
6951 | ||
6952 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) | |
6953 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6954 | PyObject * _resultobj; | |
6955 | wxTextCtrl * _arg0; | |
6956 | long * _arg1; | |
6957 | long temp; | |
6958 | long * _arg2; | |
6959 | long temp0; | |
6960 | PyObject * _argo0 = 0; | |
6961 | char *_kwnames[] = { "self", NULL }; | |
6962 | ||
6963 | self = self; | |
6964 | { | |
6965 | _arg1 = &temp; | |
6966 | } | |
6967 | { | |
6968 | _arg2 = &temp0; | |
6969 | } | |
6970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
6971 | return NULL; | |
6972 | if (_argo0) { | |
6973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); | |
6976 | return NULL; | |
6977 | } | |
6978 | } | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); | |
6982 | ||
6983 | wxPyEndAllowThreads(__tstate); | |
6984 | if (PyErr_Occurred()) return NULL; | |
6985 | } Py_INCREF(Py_None); | |
6986 | _resultobj = Py_None; | |
6987 | { | |
6988 | PyObject *o; | |
6989 | o = PyInt_FromLong((long) (*_arg1)); | |
6990 | _resultobj = t_output_helper(_resultobj, o); | |
6991 | } | |
6992 | { | |
6993 | PyObject *o; | |
6994 | o = PyInt_FromLong((long) (*_arg2)); | |
6995 | _resultobj = t_output_helper(_resultobj, o); | |
6996 | } | |
6997 | return _resultobj; | |
6998 | } | |
6999 | ||
7000 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
7001 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7002 | PyObject * _resultobj; | |
7003 | wxString * _result; | |
7004 | wxTextCtrl * _arg0; | |
7005 | PyObject * _argo0 = 0; | |
7006 | char *_kwnames[] = { "self", NULL }; | |
7007 | ||
7008 | self = self; | |
7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
7010 | return NULL; | |
7011 | if (_argo0) { | |
7012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
7015 | return NULL; | |
7016 | } | |
7017 | } | |
7018 | { | |
7019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7020 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); | |
7021 | ||
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) return NULL; | |
7024 | }{ | |
7025 | #if wxUSE_UNICODE | |
7026 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
7027 | #else | |
7028 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7029 | #endif | |
7030 | } | |
7031 | { | |
7032 | delete _result; | |
7033 | } | |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
7037 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) | |
7038 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7039 | PyObject * _resultobj; | |
7040 | wxTextCtrl * _arg0; | |
7041 | PyObject * _argo0 = 0; | |
7042 | char *_kwnames[] = { "self", NULL }; | |
7043 | ||
7044 | self = self; | |
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) | |
7046 | return NULL; | |
7047 | if (_argo0) { | |
7048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); | |
7051 | return NULL; | |
7052 | } | |
7053 | } | |
7054 | { | |
7055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7056 | wxTextCtrl_Clear(_arg0); | |
7057 | ||
7058 | wxPyEndAllowThreads(__tstate); | |
7059 | if (PyErr_Occurred()) return NULL; | |
7060 | } Py_INCREF(Py_None); | |
7061 | _resultobj = Py_None; | |
7062 | return _resultobj; | |
7063 | } | |
7064 | ||
7065 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
7066 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7067 | PyObject * _resultobj; | |
7068 | wxTextCtrl * _arg0; | |
7069 | long _arg1; | |
7070 | long _arg2; | |
7071 | wxString * _arg3; | |
7072 | PyObject * _argo0 = 0; | |
7073 | PyObject * _obj3 = 0; | |
7074 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
7075 | ||
7076 | self = self; | |
7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
7078 | return NULL; | |
7079 | if (_argo0) { | |
7080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); | |
7083 | return NULL; | |
7084 | } | |
7085 | } | |
7086 | { | |
7087 | _arg3 = wxString_in_helper(_obj3); | |
7088 | if (_arg3 == NULL) | |
7089 | return NULL; | |
7090 | } | |
7091 | { | |
7092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7093 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7094 | ||
7095 | wxPyEndAllowThreads(__tstate); | |
7096 | if (PyErr_Occurred()) return NULL; | |
7097 | } Py_INCREF(Py_None); | |
7098 | _resultobj = Py_None; | |
7099 | { | |
7100 | if (_obj3) | |
7101 | delete _arg3; | |
7102 | } | |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
7107 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | wxTextCtrl * _arg0; | |
7110 | long _arg1; | |
7111 | long _arg2; | |
7112 | PyObject * _argo0 = 0; | |
7113 | char *_kwnames[] = { "self","from","to", NULL }; | |
7114 | ||
7115 | self = self; | |
7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7117 | return NULL; | |
7118 | if (_argo0) { | |
7119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); | |
7122 | return NULL; | |
7123 | } | |
7124 | } | |
7125 | { | |
7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7127 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); | |
7128 | ||
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) return NULL; | |
7131 | } Py_INCREF(Py_None); | |
7132 | _resultobj = Py_None; | |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
7136 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
7137 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7138 | PyObject * _resultobj; | |
7139 | bool _result; | |
7140 | wxTextCtrl * _arg0; | |
7141 | wxString * _arg1; | |
7142 | PyObject * _argo0 = 0; | |
7143 | PyObject * _obj1 = 0; | |
7144 | char *_kwnames[] = { "self","file", NULL }; | |
7145 | ||
7146 | self = self; | |
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) | |
7148 | return NULL; | |
7149 | if (_argo0) { | |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); | |
7153 | return NULL; | |
7154 | } | |
7155 | } | |
7156 | { | |
7157 | _arg1 = wxString_in_helper(_obj1); | |
7158 | if (_arg1 == NULL) | |
7159 | return NULL; | |
7160 | } | |
7161 | { | |
7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7163 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); | |
7164 | ||
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) return NULL; | |
7167 | } _resultobj = Py_BuildValue("i",_result); | |
7168 | { | |
7169 | if (_obj1) | |
7170 | delete _arg1; | |
7171 | } | |
7172 | return _resultobj; | |
7173 | } | |
7174 | ||
7175 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) | |
7176 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject * _resultobj; | |
7178 | bool _result; | |
7179 | wxTextCtrl * _arg0; | |
7180 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
7181 | PyObject * _argo0 = 0; | |
7182 | PyObject * _obj1 = 0; | |
7183 | char *_kwnames[] = { "self","file", NULL }; | |
7184 | ||
7185 | self = self; | |
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) | |
7187 | return NULL; | |
7188 | if (_argo0) { | |
7189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); | |
7192 | return NULL; | |
7193 | } | |
7194 | } | |
7195 | if (_obj1) | |
7196 | { | |
7197 | _arg1 = wxString_in_helper(_obj1); | |
7198 | if (_arg1 == NULL) | |
7199 | return NULL; | |
7200 | } | |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) return NULL; | |
7207 | } _resultobj = Py_BuildValue("i",_result); | |
7208 | { | |
7209 | if (_obj1) | |
7210 | delete _arg1; | |
7211 | } | |
7212 | return _resultobj; | |
7213 | } | |
7214 | ||
7215 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) | |
7216 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7217 | PyObject * _resultobj; | |
7218 | wxTextCtrl * _arg0; | |
7219 | PyObject * _argo0 = 0; | |
7220 | char *_kwnames[] = { "self", NULL }; | |
7221 | ||
7222 | self = self; | |
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) | |
7224 | return NULL; | |
7225 | if (_argo0) { | |
7226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); | |
7229 | return NULL; | |
7230 | } | |
7231 | } | |
7232 | { | |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7234 | wxTextCtrl_DiscardEdits(_arg0); | |
7235 | ||
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) return NULL; | |
7238 | } Py_INCREF(Py_None); | |
7239 | _resultobj = Py_None; | |
7240 | return _resultobj; | |
7241 | } | |
7242 | ||
7243 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) | |
7244 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject * _resultobj; | |
7246 | wxTextCtrl * _arg0; | |
7247 | unsigned long _arg1; | |
7248 | PyObject * _argo0 = 0; | |
7249 | char *_kwnames[] = { "self","len", NULL }; | |
7250 | ||
7251 | self = self; | |
7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) | |
7253 | return NULL; | |
7254 | if (_argo0) { | |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); | |
7258 | return NULL; | |
7259 | } | |
7260 | } | |
7261 | { | |
7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7263 | wxTextCtrl_SetMaxLength(_arg0,_arg1); | |
7264 | ||
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) return NULL; | |
7267 | } Py_INCREF(Py_None); | |
7268 | _resultobj = Py_None; | |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
7272 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) | |
7273 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject * _resultobj; | |
7275 | wxTextCtrl * _arg0; | |
7276 | wxString * _arg1; | |
7277 | PyObject * _argo0 = 0; | |
7278 | PyObject * _obj1 = 0; | |
7279 | char *_kwnames[] = { "self","text", NULL }; | |
7280 | ||
7281 | self = self; | |
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) | |
7283 | return NULL; | |
7284 | if (_argo0) { | |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); | |
7288 | return NULL; | |
7289 | } | |
7290 | } | |
7291 | { | |
7292 | _arg1 = wxString_in_helper(_obj1); | |
7293 | if (_arg1 == NULL) | |
7294 | return NULL; | |
7295 | } | |
7296 | { | |
7297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7298 | wxTextCtrl_WriteText(_arg0,*_arg1); | |
7299 | ||
7300 | wxPyEndAllowThreads(__tstate); | |
7301 | if (PyErr_Occurred()) return NULL; | |
7302 | } Py_INCREF(Py_None); | |
7303 | _resultobj = Py_None; | |
7304 | { | |
7305 | if (_obj1) | |
7306 | delete _arg1; | |
7307 | } | |
7308 | return _resultobj; | |
7309 | } | |
7310 | ||
7311 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) | |
7312 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7313 | PyObject * _resultobj; | |
7314 | wxTextCtrl * _arg0; | |
7315 | wxString * _arg1; | |
7316 | PyObject * _argo0 = 0; | |
7317 | PyObject * _obj1 = 0; | |
7318 | char *_kwnames[] = { "self","text", NULL }; | |
7319 | ||
7320 | self = self; | |
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) | |
7322 | return NULL; | |
7323 | if (_argo0) { | |
7324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); | |
7327 | return NULL; | |
7328 | } | |
7329 | } | |
7330 | { | |
7331 | _arg1 = wxString_in_helper(_obj1); | |
7332 | if (_arg1 == NULL) | |
7333 | return NULL; | |
7334 | } | |
7335 | { | |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | wxTextCtrl_AppendText(_arg0,*_arg1); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) return NULL; | |
7341 | } Py_INCREF(Py_None); | |
7342 | _resultobj = Py_None; | |
7343 | { | |
7344 | if (_obj1) | |
7345 | delete _arg1; | |
7346 | } | |
7347 | return _resultobj; | |
7348 | } | |
7349 | ||
7350 | #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0)) | |
7351 | static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7352 | PyObject * _resultobj; | |
7353 | bool _result; | |
7354 | wxTextCtrl * _arg0; | |
7355 | wxKeyEvent * _arg1; | |
7356 | PyObject * _argo0 = 0; | |
7357 | PyObject * _argo1 = 0; | |
7358 | char *_kwnames[] = { "self","event", NULL }; | |
7359 | ||
7360 | self = self; | |
7361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1)) | |
7362 | return NULL; | |
7363 | if (_argo0) { | |
7364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p."); | |
7367 | return NULL; | |
7368 | } | |
7369 | } | |
7370 | if (_argo1) { | |
7371 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { | |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p."); | |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
7376 | { | |
7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7378 | _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1); | |
7379 | ||
7380 | wxPyEndAllowThreads(__tstate); | |
7381 | if (PyErr_Occurred()) return NULL; | |
7382 | } _resultobj = Py_BuildValue("i",_result); | |
7383 | return _resultobj; | |
7384 | } | |
7385 | ||
7386 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) | |
7387 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject * _resultobj; | |
7389 | bool _result; | |
7390 | wxTextCtrl * _arg0; | |
7391 | long _arg1; | |
7392 | long _arg2; | |
7393 | wxTextAttr * _arg3; | |
7394 | PyObject * _argo0 = 0; | |
7395 | PyObject * _argo3 = 0; | |
7396 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
7397 | ||
7398 | self = self; | |
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
7400 | return NULL; | |
7401 | if (_argo0) { | |
7402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); | |
7405 | return NULL; | |
7406 | } | |
7407 | } | |
7408 | if (_argo3) { | |
7409 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
7410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
7411 | return NULL; | |
7412 | } | |
7413 | } | |
7414 | { | |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) return NULL; | |
7420 | } _resultobj = Py_BuildValue("i",_result); | |
7421 | return _resultobj; | |
7422 | } | |
7423 | ||
7424 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) | |
7425 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject * _resultobj; | |
7427 | bool _result; | |
7428 | wxTextCtrl * _arg0; | |
7429 | wxTextAttr * _arg1; | |
7430 | PyObject * _argo0 = 0; | |
7431 | PyObject * _argo1 = 0; | |
7432 | char *_kwnames[] = { "self","style", NULL }; | |
7433 | ||
7434 | self = self; | |
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) | |
7436 | return NULL; | |
7437 | if (_argo0) { | |
7438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); | |
7441 | return NULL; | |
7442 | } | |
7443 | } | |
7444 | if (_argo1) { | |
7445 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
7447 | return NULL; | |
7448 | } | |
7449 | } | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) return NULL; | |
7456 | } _resultobj = Py_BuildValue("i",_result); | |
7457 | return _resultobj; | |
7458 | } | |
7459 | ||
7460 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) | |
7461 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject * _resultobj; | |
7463 | wxTextAttr * _result; | |
7464 | wxTextCtrl * _arg0; | |
7465 | PyObject * _argo0 = 0; | |
7466 | char *_kwnames[] = { "self", NULL }; | |
7467 | char _ptemp[128]; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); | |
7482 | _result = (wxTextAttr *) &_result_ref; | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) return NULL; | |
7486 | } if (_result) { | |
7487 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7488 | _resultobj = Py_BuildValue("s",_ptemp); | |
7489 | } else { | |
7490 | Py_INCREF(Py_None); | |
7491 | _resultobj = Py_None; | |
7492 | } | |
7493 | return _resultobj; | |
7494 | } | |
7495 | ||
7496 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) | |
7497 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7498 | PyObject * _resultobj; | |
7499 | long _result; | |
7500 | wxTextCtrl * _arg0; | |
7501 | long _arg1; | |
7502 | long _arg2; | |
7503 | PyObject * _argo0 = 0; | |
7504 | char *_kwnames[] = { "self","x","y", NULL }; | |
7505 | ||
7506 | self = self; | |
7507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7508 | return NULL; | |
7509 | if (_argo0) { | |
7510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); | |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) return NULL; | |
7522 | } _resultobj = Py_BuildValue("l",_result); | |
7523 | return _resultobj; | |
7524 | } | |
7525 | ||
7526 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) | |
7527 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject * _resultobj; | |
7529 | wxTextCtrl * _arg0; | |
7530 | long _arg1; | |
7531 | long * _arg2; | |
7532 | long temp; | |
7533 | long * _arg3; | |
7534 | long temp0; | |
7535 | PyObject * _argo0 = 0; | |
7536 | char *_kwnames[] = { "self","pos", NULL }; | |
7537 | ||
7538 | self = self; | |
7539 | { | |
7540 | _arg2 = &temp; | |
7541 | } | |
7542 | { | |
7543 | _arg3 = &temp0; | |
7544 | } | |
7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
7546 | return NULL; | |
7547 | if (_argo0) { | |
7548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); | |
7551 | return NULL; | |
7552 | } | |
7553 | } | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) return NULL; | |
7560 | } Py_INCREF(Py_None); | |
7561 | _resultobj = Py_None; | |
7562 | { | |
7563 | PyObject *o; | |
7564 | o = PyInt_FromLong((long) (*_arg2)); | |
7565 | _resultobj = t_output_helper(_resultobj, o); | |
7566 | } | |
7567 | { | |
7568 | PyObject *o; | |
7569 | o = PyInt_FromLong((long) (*_arg3)); | |
7570 | _resultobj = t_output_helper(_resultobj, o); | |
7571 | } | |
7572 | return _resultobj; | |
7573 | } | |
7574 | ||
7575 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
7576 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject * _resultobj; | |
7578 | wxTextCtrl * _arg0; | |
7579 | long _arg1; | |
7580 | PyObject * _argo0 = 0; | |
7581 | char *_kwnames[] = { "self","pos", NULL }; | |
7582 | ||
7583 | self = self; | |
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) | |
7585 | return NULL; | |
7586 | if (_argo0) { | |
7587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); | |
7590 | return NULL; | |
7591 | } | |
7592 | } | |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | wxTextCtrl_ShowPosition(_arg0,_arg1); | |
7596 | ||
7597 | wxPyEndAllowThreads(__tstate); | |
7598 | if (PyErr_Occurred()) return NULL; | |
7599 | } Py_INCREF(Py_None); | |
7600 | _resultobj = Py_None; | |
7601 | return _resultobj; | |
7602 | } | |
7603 | ||
7604 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) | |
7605 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject * _resultobj; | |
7607 | wxTextCtrl * _arg0; | |
7608 | PyObject * _argo0 = 0; | |
7609 | char *_kwnames[] = { "self", NULL }; | |
7610 | ||
7611 | self = self; | |
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) | |
7613 | return NULL; | |
7614 | if (_argo0) { | |
7615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); | |
7618 | return NULL; | |
7619 | } | |
7620 | } | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | wxTextCtrl_Copy(_arg0); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) return NULL; | |
7627 | } Py_INCREF(Py_None); | |
7628 | _resultobj = Py_None; | |
7629 | return _resultobj; | |
7630 | } | |
7631 | ||
7632 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) | |
7633 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7634 | PyObject * _resultobj; | |
7635 | wxTextCtrl * _arg0; | |
7636 | PyObject * _argo0 = 0; | |
7637 | char *_kwnames[] = { "self", NULL }; | |
7638 | ||
7639 | self = self; | |
7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) | |
7641 | return NULL; | |
7642 | if (_argo0) { | |
7643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); | |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
7650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7651 | wxTextCtrl_Cut(_arg0); | |
7652 | ||
7653 | wxPyEndAllowThreads(__tstate); | |
7654 | if (PyErr_Occurred()) return NULL; | |
7655 | } Py_INCREF(Py_None); | |
7656 | _resultobj = Py_None; | |
7657 | return _resultobj; | |
7658 | } | |
7659 | ||
7660 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) | |
7661 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject * _resultobj; | |
7663 | wxTextCtrl * _arg0; | |
7664 | PyObject * _argo0 = 0; | |
7665 | char *_kwnames[] = { "self", NULL }; | |
7666 | ||
7667 | self = self; | |
7668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) | |
7669 | return NULL; | |
7670 | if (_argo0) { | |
7671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); | |
7674 | return NULL; | |
7675 | } | |
7676 | } | |
7677 | { | |
7678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7679 | wxTextCtrl_Paste(_arg0); | |
7680 | ||
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) return NULL; | |
7683 | } Py_INCREF(Py_None); | |
7684 | _resultobj = Py_None; | |
7685 | return _resultobj; | |
7686 | } | |
7687 | ||
7688 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) | |
7689 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7690 | PyObject * _resultobj; | |
7691 | bool _result; | |
7692 | wxTextCtrl * _arg0; | |
7693 | PyObject * _argo0 = 0; | |
7694 | char *_kwnames[] = { "self", NULL }; | |
7695 | ||
7696 | self = self; | |
7697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) | |
7698 | return NULL; | |
7699 | if (_argo0) { | |
7700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); | |
7703 | return NULL; | |
7704 | } | |
7705 | } | |
7706 | { | |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | _result = (bool )wxTextCtrl_CanCopy(_arg0); | |
7709 | ||
7710 | wxPyEndAllowThreads(__tstate); | |
7711 | if (PyErr_Occurred()) return NULL; | |
7712 | } _resultobj = Py_BuildValue("i",_result); | |
7713 | return _resultobj; | |
7714 | } | |
7715 | ||
7716 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
7717 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7718 | PyObject * _resultobj; | |
7719 | bool _result; | |
7720 | wxTextCtrl * _arg0; | |
7721 | PyObject * _argo0 = 0; | |
7722 | char *_kwnames[] = { "self", NULL }; | |
7723 | ||
7724 | self = self; | |
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) | |
7726 | return NULL; | |
7727 | if (_argo0) { | |
7728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); | |
7731 | return NULL; | |
7732 | } | |
7733 | } | |
7734 | { | |
7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7736 | _result = (bool )wxTextCtrl_CanCut(_arg0); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) return NULL; | |
7740 | } _resultobj = Py_BuildValue("i",_result); | |
7741 | return _resultobj; | |
7742 | } | |
7743 | ||
7744 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
7745 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject * _resultobj; | |
7747 | bool _result; | |
7748 | wxTextCtrl * _arg0; | |
7749 | PyObject * _argo0 = 0; | |
7750 | char *_kwnames[] = { "self", NULL }; | |
7751 | ||
7752 | self = self; | |
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) | |
7754 | return NULL; | |
7755 | if (_argo0) { | |
7756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); | |
7759 | return NULL; | |
7760 | } | |
7761 | } | |
7762 | { | |
7763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7764 | _result = (bool )wxTextCtrl_CanPaste(_arg0); | |
7765 | ||
7766 | wxPyEndAllowThreads(__tstate); | |
7767 | if (PyErr_Occurred()) return NULL; | |
7768 | } _resultobj = Py_BuildValue("i",_result); | |
7769 | return _resultobj; | |
7770 | } | |
7771 | ||
7772 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) | |
7773 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject * _resultobj; | |
7775 | wxTextCtrl * _arg0; | |
7776 | PyObject * _argo0 = 0; | |
7777 | char *_kwnames[] = { "self", NULL }; | |
7778 | ||
7779 | self = self; | |
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) | |
7781 | return NULL; | |
7782 | if (_argo0) { | |
7783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); | |
7786 | return NULL; | |
7787 | } | |
7788 | } | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | wxTextCtrl_Undo(_arg0); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) return NULL; | |
7795 | } Py_INCREF(Py_None); | |
7796 | _resultobj = Py_None; | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
7800 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) | |
7801 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | wxTextCtrl * _arg0; | |
7804 | PyObject * _argo0 = 0; | |
7805 | char *_kwnames[] = { "self", NULL }; | |
7806 | ||
7807 | self = self; | |
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) | |
7809 | return NULL; | |
7810 | if (_argo0) { | |
7811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); | |
7814 | return NULL; | |
7815 | } | |
7816 | } | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | wxTextCtrl_Redo(_arg0); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) return NULL; | |
7823 | } Py_INCREF(Py_None); | |
7824 | _resultobj = Py_None; | |
7825 | return _resultobj; | |
7826 | } | |
7827 | ||
7828 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) | |
7829 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7830 | PyObject * _resultobj; | |
7831 | bool _result; | |
7832 | wxTextCtrl * _arg0; | |
7833 | PyObject * _argo0 = 0; | |
7834 | char *_kwnames[] = { "self", NULL }; | |
7835 | ||
7836 | self = self; | |
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) | |
7838 | return NULL; | |
7839 | if (_argo0) { | |
7840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); | |
7843 | return NULL; | |
7844 | } | |
7845 | } | |
7846 | { | |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | _result = (bool )wxTextCtrl_CanUndo(_arg0); | |
7849 | ||
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) return NULL; | |
7852 | } _resultobj = Py_BuildValue("i",_result); | |
7853 | return _resultobj; | |
7854 | } | |
7855 | ||
7856 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) | |
7857 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7858 | PyObject * _resultobj; | |
7859 | bool _result; | |
7860 | wxTextCtrl * _arg0; | |
7861 | PyObject * _argo0 = 0; | |
7862 | char *_kwnames[] = { "self", NULL }; | |
7863 | ||
7864 | self = self; | |
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) | |
7866 | return NULL; | |
7867 | if (_argo0) { | |
7868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); | |
7871 | return NULL; | |
7872 | } | |
7873 | } | |
7874 | { | |
7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7876 | _result = (bool )wxTextCtrl_CanRedo(_arg0); | |
7877 | ||
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) return NULL; | |
7880 | } _resultobj = Py_BuildValue("i",_result); | |
7881 | return _resultobj; | |
7882 | } | |
7883 | ||
7884 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
7885 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject * _resultobj; | |
7887 | wxTextCtrl * _arg0; | |
7888 | long _arg1; | |
7889 | PyObject * _argo0 = 0; | |
7890 | char *_kwnames[] = { "self","pos", NULL }; | |
7891 | ||
7892 | self = self; | |
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) | |
7894 | return NULL; | |
7895 | if (_argo0) { | |
7896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); | |
7899 | return NULL; | |
7900 | } | |
7901 | } | |
7902 | { | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); | |
7905 | ||
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) return NULL; | |
7908 | } Py_INCREF(Py_None); | |
7909 | _resultobj = Py_None; | |
7910 | return _resultobj; | |
7911 | } | |
7912 | ||
7913 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
7914 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject * _resultobj; | |
7916 | wxTextCtrl * _arg0; | |
7917 | PyObject * _argo0 = 0; | |
7918 | char *_kwnames[] = { "self", NULL }; | |
7919 | ||
7920 | self = self; | |
7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) | |
7922 | return NULL; | |
7923 | if (_argo0) { | |
7924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); | |
7927 | return NULL; | |
7928 | } | |
7929 | } | |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | wxTextCtrl_SetInsertionPointEnd(_arg0); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) return NULL; | |
7936 | } Py_INCREF(Py_None); | |
7937 | _resultobj = Py_None; | |
7938 | return _resultobj; | |
7939 | } | |
7940 | ||
7941 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) | |
7942 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7943 | PyObject * _resultobj; | |
7944 | long _result; | |
7945 | wxTextCtrl * _arg0; | |
7946 | PyObject * _argo0 = 0; | |
7947 | char *_kwnames[] = { "self", NULL }; | |
7948 | ||
7949 | self = self; | |
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) | |
7951 | return NULL; | |
7952 | if (_argo0) { | |
7953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); | |
7956 | return NULL; | |
7957 | } | |
7958 | } | |
7959 | { | |
7960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7961 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); | |
7962 | ||
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) return NULL; | |
7965 | } _resultobj = Py_BuildValue("l",_result); | |
7966 | return _resultobj; | |
7967 | } | |
7968 | ||
7969 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) | |
7970 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject * _resultobj; | |
7972 | long _result; | |
7973 | wxTextCtrl * _arg0; | |
7974 | PyObject * _argo0 = 0; | |
7975 | char *_kwnames[] = { "self", NULL }; | |
7976 | ||
7977 | self = self; | |
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) | |
7979 | return NULL; | |
7980 | if (_argo0) { | |
7981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); | |
7984 | return NULL; | |
7985 | } | |
7986 | } | |
7987 | { | |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); | |
7990 | ||
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) return NULL; | |
7993 | } _resultobj = Py_BuildValue("l",_result); | |
7994 | return _resultobj; | |
7995 | } | |
7996 | ||
7997 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7998 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7999 | PyObject * _resultobj; | |
8000 | wxTextCtrl * _arg0; | |
8001 | long _arg1; | |
8002 | long _arg2; | |
8003 | PyObject * _argo0 = 0; | |
8004 | char *_kwnames[] = { "self","from","to", NULL }; | |
8005 | ||
8006 | self = self; | |
8007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8008 | return NULL; | |
8009 | if (_argo0) { | |
8010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
8013 | return NULL; | |
8014 | } | |
8015 | } | |
8016 | { | |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) return NULL; | |
8022 | } Py_INCREF(Py_None); | |
8023 | _resultobj = Py_None; | |
8024 | return _resultobj; | |
8025 | } | |
8026 | ||
8027 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) | |
8028 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject * _resultobj; | |
8030 | wxTextCtrl * _arg0; | |
8031 | PyObject * _argo0 = 0; | |
8032 | char *_kwnames[] = { "self", NULL }; | |
8033 | ||
8034 | self = self; | |
8035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) | |
8036 | return NULL; | |
8037 | if (_argo0) { | |
8038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); | |
8041 | return NULL; | |
8042 | } | |
8043 | } | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | wxTextCtrl_SelectAll(_arg0); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) return NULL; | |
8050 | } Py_INCREF(Py_None); | |
8051 | _resultobj = Py_None; | |
8052 | return _resultobj; | |
8053 | } | |
8054 | ||
8055 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) | |
8056 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8057 | PyObject * _resultobj; | |
8058 | wxTextCtrl * _arg0; | |
8059 | bool _arg1; | |
8060 | PyObject * _argo0 = 0; | |
8061 | int tempbool1; | |
8062 | char *_kwnames[] = { "self","editable", NULL }; | |
8063 | ||
8064 | self = self; | |
8065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
8066 | return NULL; | |
8067 | if (_argo0) { | |
8068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); | |
8071 | return NULL; | |
8072 | } | |
8073 | } | |
8074 | _arg1 = (bool ) tempbool1; | |
8075 | { | |
8076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8077 | wxTextCtrl_SetEditable(_arg0,_arg1); | |
8078 | ||
8079 | wxPyEndAllowThreads(__tstate); | |
8080 | if (PyErr_Occurred()) return NULL; | |
8081 | } Py_INCREF(Py_None); | |
8082 | _resultobj = Py_None; | |
8083 | return _resultobj; | |
8084 | } | |
8085 | ||
8086 | #define wxTextCtrl_IsSingleLine(_swigobj) (_swigobj->IsSingleLine()) | |
8087 | static PyObject *_wrap_wxTextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject * _resultobj; | |
8089 | bool _result; | |
8090 | wxTextCtrl * _arg0; | |
8091 | PyObject * _argo0 = 0; | |
8092 | char *_kwnames[] = { "self", NULL }; | |
8093 | ||
8094 | self = self; | |
8095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsSingleLine",_kwnames,&_argo0)) | |
8096 | return NULL; | |
8097 | if (_argo0) { | |
8098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsSingleLine. Expected _wxTextCtrl_p."); | |
8101 | return NULL; | |
8102 | } | |
8103 | } | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | _result = (bool )wxTextCtrl_IsSingleLine(_arg0); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) return NULL; | |
8110 | } _resultobj = Py_BuildValue("i",_result); | |
8111 | return _resultobj; | |
8112 | } | |
8113 | ||
8114 | #define wxTextCtrl_IsMultiLine(_swigobj) (_swigobj->IsMultiLine()) | |
8115 | static PyObject *_wrap_wxTextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8116 | PyObject * _resultobj; | |
8117 | bool _result; | |
8118 | wxTextCtrl * _arg0; | |
8119 | PyObject * _argo0 = 0; | |
8120 | char *_kwnames[] = { "self", NULL }; | |
8121 | ||
8122 | self = self; | |
8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsMultiLine",_kwnames,&_argo0)) | |
8124 | return NULL; | |
8125 | if (_argo0) { | |
8126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsMultiLine. Expected _wxTextCtrl_p."); | |
8129 | return NULL; | |
8130 | } | |
8131 | } | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | _result = (bool )wxTextCtrl_IsMultiLine(_arg0); | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) return NULL; | |
8138 | } _resultobj = Py_BuildValue("i",_result); | |
8139 | return _resultobj; | |
8140 | } | |
8141 | ||
8142 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { | |
8143 | self->AppendText(text); | |
8144 | } | |
8145 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8146 | PyObject * _resultobj; | |
8147 | wxTextCtrl * _arg0; | |
8148 | wxString * _arg1; | |
8149 | PyObject * _argo0 = 0; | |
8150 | PyObject * _obj1 = 0; | |
8151 | char *_kwnames[] = { "self","text", NULL }; | |
8152 | ||
8153 | self = self; | |
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
8155 | return NULL; | |
8156 | if (_argo0) { | |
8157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
8160 | return NULL; | |
8161 | } | |
8162 | } | |
8163 | { | |
8164 | _arg1 = wxString_in_helper(_obj1); | |
8165 | if (_arg1 == NULL) | |
8166 | return NULL; | |
8167 | } | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | wxTextCtrl_write(_arg0,*_arg1); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) return NULL; | |
8174 | } Py_INCREF(Py_None); | |
8175 | _resultobj = Py_None; | |
8176 | { | |
8177 | if (_obj1) | |
8178 | delete _arg1; | |
8179 | } | |
8180 | return _resultobj; | |
8181 | } | |
8182 | ||
8183 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { | |
8184 | return self->GetValue().Mid(from, to - from); | |
8185 | } | |
8186 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject * _resultobj; | |
8188 | wxString * _result; | |
8189 | wxTextCtrl * _arg0; | |
8190 | long _arg1; | |
8191 | long _arg2; | |
8192 | PyObject * _argo0 = 0; | |
8193 | char *_kwnames[] = { "self","from","to", NULL }; | |
8194 | ||
8195 | self = self; | |
8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8197 | return NULL; | |
8198 | if (_argo0) { | |
8199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
8202 | return NULL; | |
8203 | } | |
8204 | } | |
8205 | { | |
8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8207 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); | |
8208 | ||
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) return NULL; | |
8211 | }{ | |
8212 | #if wxUSE_UNICODE | |
8213 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
8214 | #else | |
8215 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8216 | #endif | |
8217 | } | |
8218 | { | |
8219 | delete _result; | |
8220 | } | |
8221 | return _resultobj; | |
8222 | } | |
8223 | ||
8224 | static void *SwigwxScrollBarTowxControl(void *ptr) { | |
8225 | wxScrollBar *src; | |
8226 | wxControl *dest; | |
8227 | src = (wxScrollBar *) ptr; | |
8228 | dest = (wxControl *) src; | |
8229 | return (void *) dest; | |
8230 | } | |
8231 | ||
8232 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
8233 | wxScrollBar *src; | |
8234 | wxWindow *dest; | |
8235 | src = (wxScrollBar *) ptr; | |
8236 | dest = (wxWindow *) src; | |
8237 | return (void *) dest; | |
8238 | } | |
8239 | ||
8240 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
8241 | wxScrollBar *src; | |
8242 | wxEvtHandler *dest; | |
8243 | src = (wxScrollBar *) ptr; | |
8244 | dest = (wxEvtHandler *) src; | |
8245 | return (void *) dest; | |
8246 | } | |
8247 | ||
8248 | static void *SwigwxScrollBarTowxObject(void *ptr) { | |
8249 | wxScrollBar *src; | |
8250 | wxObject *dest; | |
8251 | src = (wxScrollBar *) ptr; | |
8252 | dest = (wxObject *) src; | |
8253 | return (void *) dest; | |
8254 | } | |
8255 | ||
8256 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8257 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8258 | PyObject * _resultobj; | |
8259 | wxScrollBar * _result; | |
8260 | wxWindow * _arg0; | |
8261 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8262 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8263 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8264 | long _arg4 = (long ) wxSB_HORIZONTAL; | |
8265 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
8266 | wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr; | |
8267 | PyObject * _argo0 = 0; | |
8268 | wxPoint temp; | |
8269 | PyObject * _obj2 = 0; | |
8270 | wxSize temp0; | |
8271 | PyObject * _obj3 = 0; | |
8272 | PyObject * _argo5 = 0; | |
8273 | PyObject * _obj6 = 0; | |
8274 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
8275 | char _ptemp[128]; | |
8276 | ||
8277 | self = self; | |
8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
8279 | return NULL; | |
8280 | if (_argo0) { | |
8281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); | |
8284 | return NULL; | |
8285 | } | |
8286 | } | |
8287 | if (_obj2) | |
8288 | { | |
8289 | _arg2 = &temp; | |
8290 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8291 | return NULL; | |
8292 | } | |
8293 | if (_obj3) | |
8294 | { | |
8295 | _arg3 = &temp0; | |
8296 | if (! wxSize_helper(_obj3, &_arg3)) | |
8297 | return NULL; | |
8298 | } | |
8299 | if (_argo5) { | |
8300 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); | |
8302 | return NULL; | |
8303 | } | |
8304 | } | |
8305 | if (_obj6) | |
8306 | { | |
8307 | _arg6 = wxString_in_helper(_obj6); | |
8308 | if (_arg6 == NULL) | |
8309 | return NULL; | |
8310 | } | |
8311 | { | |
8312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8313 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
8314 | ||
8315 | wxPyEndAllowThreads(__tstate); | |
8316 | if (PyErr_Occurred()) return NULL; | |
8317 | } if (_result) { | |
8318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8319 | _resultobj = Py_BuildValue("s",_ptemp); | |
8320 | } else { | |
8321 | Py_INCREF(Py_None); | |
8322 | _resultobj = Py_None; | |
8323 | } | |
8324 | { | |
8325 | if (_obj6) | |
8326 | delete _arg6; | |
8327 | } | |
8328 | return _resultobj; | |
8329 | } | |
8330 | ||
8331 | #define new_wxPreScrollBar() (new wxScrollBar()) | |
8332 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8333 | PyObject * _resultobj; | |
8334 | wxScrollBar * _result; | |
8335 | char *_kwnames[] = { NULL }; | |
8336 | char _ptemp[128]; | |
8337 | ||
8338 | self = self; | |
8339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
8340 | return NULL; | |
8341 | { | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | _result = (wxScrollBar *)new_wxPreScrollBar(); | |
8344 | ||
8345 | wxPyEndAllowThreads(__tstate); | |
8346 | if (PyErr_Occurred()) return NULL; | |
8347 | } if (_result) { | |
8348 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8349 | _resultobj = Py_BuildValue("s",_ptemp); | |
8350 | } else { | |
8351 | Py_INCREF(Py_None); | |
8352 | _resultobj = Py_None; | |
8353 | } | |
8354 | return _resultobj; | |
8355 | } | |
8356 | ||
8357 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8358 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8359 | PyObject * _resultobj; | |
8360 | bool _result; | |
8361 | wxScrollBar * _arg0; | |
8362 | wxWindow * _arg1; | |
8363 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8364 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8365 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8366 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
8367 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
8368 | wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr; | |
8369 | PyObject * _argo0 = 0; | |
8370 | PyObject * _argo1 = 0; | |
8371 | wxPoint temp; | |
8372 | PyObject * _obj3 = 0; | |
8373 | wxSize temp0; | |
8374 | PyObject * _obj4 = 0; | |
8375 | PyObject * _argo6 = 0; | |
8376 | PyObject * _obj7 = 0; | |
8377 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
8378 | ||
8379 | self = self; | |
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
8381 | return NULL; | |
8382 | if (_argo0) { | |
8383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | if (_argo1) { | |
8390 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8391 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
8393 | return NULL; | |
8394 | } | |
8395 | } | |
8396 | if (_obj3) | |
8397 | { | |
8398 | _arg3 = &temp; | |
8399 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8400 | return NULL; | |
8401 | } | |
8402 | if (_obj4) | |
8403 | { | |
8404 | _arg4 = &temp0; | |
8405 | if (! wxSize_helper(_obj4, &_arg4)) | |
8406 | return NULL; | |
8407 | } | |
8408 | if (_argo6) { | |
8409 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
8411 | return NULL; | |
8412 | } | |
8413 | } | |
8414 | if (_obj7) | |
8415 | { | |
8416 | _arg7 = wxString_in_helper(_obj7); | |
8417 | if (_arg7 == NULL) | |
8418 | return NULL; | |
8419 | } | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) return NULL; | |
8426 | } _resultobj = Py_BuildValue("i",_result); | |
8427 | { | |
8428 | if (_obj7) | |
8429 | delete _arg7; | |
8430 | } | |
8431 | return _resultobj; | |
8432 | } | |
8433 | ||
8434 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) | |
8435 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject * _resultobj; | |
8437 | int _result; | |
8438 | wxScrollBar * _arg0; | |
8439 | PyObject * _argo0 = 0; | |
8440 | char *_kwnames[] = { "self", NULL }; | |
8441 | ||
8442 | self = self; | |
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) | |
8444 | return NULL; | |
8445 | if (_argo0) { | |
8446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); | |
8449 | return NULL; | |
8450 | } | |
8451 | } | |
8452 | { | |
8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8454 | _result = (int )wxScrollBar_GetRange(_arg0); | |
8455 | ||
8456 | wxPyEndAllowThreads(__tstate); | |
8457 | if (PyErr_Occurred()) return NULL; | |
8458 | } _resultobj = Py_BuildValue("i",_result); | |
8459 | return _resultobj; | |
8460 | } | |
8461 | ||
8462 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
8463 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8464 | PyObject * _resultobj; | |
8465 | int _result; | |
8466 | wxScrollBar * _arg0; | |
8467 | PyObject * _argo0 = 0; | |
8468 | char *_kwnames[] = { "self", NULL }; | |
8469 | ||
8470 | self = self; | |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) | |
8472 | return NULL; | |
8473 | if (_argo0) { | |
8474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); | |
8477 | return NULL; | |
8478 | } | |
8479 | } | |
8480 | { | |
8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8482 | _result = (int )wxScrollBar_GetPageSize(_arg0); | |
8483 | ||
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) return NULL; | |
8486 | } _resultobj = Py_BuildValue("i",_result); | |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
8490 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) | |
8491 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject * _resultobj; | |
8493 | int _result; | |
8494 | wxScrollBar * _arg0; | |
8495 | PyObject * _argo0 = 0; | |
8496 | char *_kwnames[] = { "self", NULL }; | |
8497 | ||
8498 | self = self; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) | |
8500 | return NULL; | |
8501 | if (_argo0) { | |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); | |
8505 | return NULL; | |
8506 | } | |
8507 | } | |
8508 | { | |
8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8510 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); | |
8511 | ||
8512 | wxPyEndAllowThreads(__tstate); | |
8513 | if (PyErr_Occurred()) return NULL; | |
8514 | } _resultobj = Py_BuildValue("i",_result); | |
8515 | return _resultobj; | |
8516 | } | |
8517 | ||
8518 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
8519 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8520 | PyObject * _resultobj; | |
8521 | int _result; | |
8522 | wxScrollBar * _arg0; | |
8523 | PyObject * _argo0 = 0; | |
8524 | char *_kwnames[] = { "self", NULL }; | |
8525 | ||
8526 | self = self; | |
8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) | |
8528 | return NULL; | |
8529 | if (_argo0) { | |
8530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); | |
8533 | return NULL; | |
8534 | } | |
8535 | } | |
8536 | { | |
8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8538 | _result = (int )wxScrollBar_GetThumbSize(_arg0); | |
8539 | ||
8540 | wxPyEndAllowThreads(__tstate); | |
8541 | if (PyErr_Occurred()) return NULL; | |
8542 | } _resultobj = Py_BuildValue("i",_result); | |
8543 | return _resultobj; | |
8544 | } | |
8545 | ||
8546 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) | |
8547 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8548 | PyObject * _resultobj; | |
8549 | bool _result; | |
8550 | wxScrollBar * _arg0; | |
8551 | PyObject * _argo0 = 0; | |
8552 | char *_kwnames[] = { "self", NULL }; | |
8553 | ||
8554 | self = self; | |
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
8556 | return NULL; | |
8557 | if (_argo0) { | |
8558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
8561 | return NULL; | |
8562 | } | |
8563 | } | |
8564 | { | |
8565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8566 | _result = (bool )wxScrollBar_IsVertical(_arg0); | |
8567 | ||
8568 | wxPyEndAllowThreads(__tstate); | |
8569 | if (PyErr_Occurred()) return NULL; | |
8570 | } _resultobj = Py_BuildValue("i",_result); | |
8571 | return _resultobj; | |
8572 | } | |
8573 | ||
8574 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) | |
8575 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject * _resultobj; | |
8577 | wxScrollBar * _arg0; | |
8578 | int _arg1; | |
8579 | PyObject * _argo0 = 0; | |
8580 | char *_kwnames[] = { "self","viewStart", NULL }; | |
8581 | ||
8582 | self = self; | |
8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) | |
8584 | return NULL; | |
8585 | if (_argo0) { | |
8586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); | |
8589 | return NULL; | |
8590 | } | |
8591 | } | |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | wxScrollBar_SetThumbPosition(_arg0,_arg1); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) return NULL; | |
8598 | } Py_INCREF(Py_None); | |
8599 | _resultobj = Py_None; | |
8600 | return _resultobj; | |
8601 | } | |
8602 | ||
8603 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8604 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8605 | PyObject * _resultobj; | |
8606 | wxScrollBar * _arg0; | |
8607 | int _arg1; | |
8608 | int _arg2; | |
8609 | int _arg3; | |
8610 | int _arg4; | |
8611 | bool _arg5 = (bool ) TRUE; | |
8612 | PyObject * _argo0 = 0; | |
8613 | int tempbool5 = (int) TRUE; | |
8614 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; | |
8615 | ||
8616 | self = self; | |
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) | |
8618 | return NULL; | |
8619 | if (_argo0) { | |
8620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); | |
8623 | return NULL; | |
8624 | } | |
8625 | } | |
8626 | _arg5 = (bool ) tempbool5; | |
8627 | { | |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) return NULL; | |
8633 | } Py_INCREF(Py_None); | |
8634 | _resultobj = Py_None; | |
8635 | return _resultobj; | |
8636 | } | |
8637 | ||
8638 | static void *SwigwxSpinButtonTowxControl(void *ptr) { | |
8639 | wxSpinButton *src; | |
8640 | wxControl *dest; | |
8641 | src = (wxSpinButton *) ptr; | |
8642 | dest = (wxControl *) src; | |
8643 | return (void *) dest; | |
8644 | } | |
8645 | ||
8646 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8647 | wxSpinButton *src; | |
8648 | wxWindow *dest; | |
8649 | src = (wxSpinButton *) ptr; | |
8650 | dest = (wxWindow *) src; | |
8651 | return (void *) dest; | |
8652 | } | |
8653 | ||
8654 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8655 | wxSpinButton *src; | |
8656 | wxEvtHandler *dest; | |
8657 | src = (wxSpinButton *) ptr; | |
8658 | dest = (wxEvtHandler *) src; | |
8659 | return (void *) dest; | |
8660 | } | |
8661 | ||
8662 | static void *SwigwxSpinButtonTowxObject(void *ptr) { | |
8663 | wxSpinButton *src; | |
8664 | wxObject *dest; | |
8665 | src = (wxSpinButton *) ptr; | |
8666 | dest = (wxObject *) src; | |
8667 | return (void *) dest; | |
8668 | } | |
8669 | ||
8670 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8671 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8672 | PyObject * _resultobj; | |
8673 | wxSpinButton * _result; | |
8674 | wxWindow * _arg0; | |
8675 | wxWindowID _arg1 = (wxWindowID ) -1; | |
8676 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
8677 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
8678 | long _arg4 = (long ) wxSP_HORIZONTAL; | |
8679 | wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME; | |
8680 | PyObject * _argo0 = 0; | |
8681 | wxPoint temp; | |
8682 | PyObject * _obj2 = 0; | |
8683 | wxSize temp0; | |
8684 | PyObject * _obj3 = 0; | |
8685 | PyObject * _obj5 = 0; | |
8686 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
8687 | char _ptemp[128]; | |
8688 | ||
8689 | self = self; | |
8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
8691 | return NULL; | |
8692 | if (_argo0) { | |
8693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); | |
8696 | return NULL; | |
8697 | } | |
8698 | } | |
8699 | if (_obj2) | |
8700 | { | |
8701 | _arg2 = &temp; | |
8702 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8703 | return NULL; | |
8704 | } | |
8705 | if (_obj3) | |
8706 | { | |
8707 | _arg3 = &temp0; | |
8708 | if (! wxSize_helper(_obj3, &_arg3)) | |
8709 | return NULL; | |
8710 | } | |
8711 | if (_obj5) | |
8712 | { | |
8713 | _arg5 = wxString_in_helper(_obj5); | |
8714 | if (_arg5 == NULL) | |
8715 | return NULL; | |
8716 | } | |
8717 | { | |
8718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8719 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
8720 | ||
8721 | wxPyEndAllowThreads(__tstate); | |
8722 | if (PyErr_Occurred()) return NULL; | |
8723 | } if (_result) { | |
8724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8725 | _resultobj = Py_BuildValue("s",_ptemp); | |
8726 | } else { | |
8727 | Py_INCREF(Py_None); | |
8728 | _resultobj = Py_None; | |
8729 | } | |
8730 | { | |
8731 | if (_obj5) | |
8732 | delete _arg5; | |
8733 | } | |
8734 | return _resultobj; | |
8735 | } | |
8736 | ||
8737 | #define new_wxPreSpinButton() (new wxSpinButton()) | |
8738 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8739 | PyObject * _resultobj; | |
8740 | wxSpinButton * _result; | |
8741 | char *_kwnames[] = { NULL }; | |
8742 | char _ptemp[128]; | |
8743 | ||
8744 | self = self; | |
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8746 | return NULL; | |
8747 | { | |
8748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8749 | _result = (wxSpinButton *)new_wxPreSpinButton(); | |
8750 | ||
8751 | wxPyEndAllowThreads(__tstate); | |
8752 | if (PyErr_Occurred()) return NULL; | |
8753 | } if (_result) { | |
8754 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8755 | _resultobj = Py_BuildValue("s",_ptemp); | |
8756 | } else { | |
8757 | Py_INCREF(Py_None); | |
8758 | _resultobj = Py_None; | |
8759 | } | |
8760 | return _resultobj; | |
8761 | } | |
8762 | ||
8763 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8764 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8765 | PyObject * _resultobj; | |
8766 | bool _result; | |
8767 | wxSpinButton * _arg0; | |
8768 | wxWindow * _arg1; | |
8769 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8770 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8771 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8772 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
8773 | wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME; | |
8774 | PyObject * _argo0 = 0; | |
8775 | PyObject * _argo1 = 0; | |
8776 | wxPoint temp; | |
8777 | PyObject * _obj3 = 0; | |
8778 | wxSize temp0; | |
8779 | PyObject * _obj4 = 0; | |
8780 | PyObject * _obj6 = 0; | |
8781 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
8782 | ||
8783 | self = self; | |
8784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
8785 | return NULL; | |
8786 | if (_argo0) { | |
8787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8790 | return NULL; | |
8791 | } | |
8792 | } | |
8793 | if (_argo1) { | |
8794 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8795 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8797 | return NULL; | |
8798 | } | |
8799 | } | |
8800 | if (_obj3) | |
8801 | { | |
8802 | _arg3 = &temp; | |
8803 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8804 | return NULL; | |
8805 | } | |
8806 | if (_obj4) | |
8807 | { | |
8808 | _arg4 = &temp0; | |
8809 | if (! wxSize_helper(_obj4, &_arg4)) | |
8810 | return NULL; | |
8811 | } | |
8812 | if (_obj6) | |
8813 | { | |
8814 | _arg6 = wxString_in_helper(_obj6); | |
8815 | if (_arg6 == NULL) | |
8816 | return NULL; | |
8817 | } | |
8818 | { | |
8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8820 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
8821 | ||
8822 | wxPyEndAllowThreads(__tstate); | |
8823 | if (PyErr_Occurred()) return NULL; | |
8824 | } _resultobj = Py_BuildValue("i",_result); | |
8825 | { | |
8826 | if (_obj6) | |
8827 | delete _arg6; | |
8828 | } | |
8829 | return _resultobj; | |
8830 | } | |
8831 | ||
8832 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) | |
8833 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8834 | PyObject * _resultobj; | |
8835 | int _result; | |
8836 | wxSpinButton * _arg0; | |
8837 | PyObject * _argo0 = 0; | |
8838 | char *_kwnames[] = { "self", NULL }; | |
8839 | ||
8840 | self = self; | |
8841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) | |
8842 | return NULL; | |
8843 | if (_argo0) { | |
8844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); | |
8847 | return NULL; | |
8848 | } | |
8849 | } | |
8850 | { | |
8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8852 | _result = (int )wxSpinButton_GetMax(_arg0); | |
8853 | ||
8854 | wxPyEndAllowThreads(__tstate); | |
8855 | if (PyErr_Occurred()) return NULL; | |
8856 | } _resultobj = Py_BuildValue("i",_result); | |
8857 | return _resultobj; | |
8858 | } | |
8859 | ||
8860 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
8861 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8862 | PyObject * _resultobj; | |
8863 | int _result; | |
8864 | wxSpinButton * _arg0; | |
8865 | PyObject * _argo0 = 0; | |
8866 | char *_kwnames[] = { "self", NULL }; | |
8867 | ||
8868 | self = self; | |
8869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) | |
8870 | return NULL; | |
8871 | if (_argo0) { | |
8872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); | |
8875 | return NULL; | |
8876 | } | |
8877 | } | |
8878 | { | |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | _result = (int )wxSpinButton_GetMin(_arg0); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) return NULL; | |
8884 | } _resultobj = Py_BuildValue("i",_result); | |
8885 | return _resultobj; | |
8886 | } | |
8887 | ||
8888 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
8889 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8890 | PyObject * _resultobj; | |
8891 | int _result; | |
8892 | wxSpinButton * _arg0; | |
8893 | PyObject * _argo0 = 0; | |
8894 | char *_kwnames[] = { "self", NULL }; | |
8895 | ||
8896 | self = self; | |
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) | |
8898 | return NULL; | |
8899 | if (_argo0) { | |
8900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); | |
8903 | return NULL; | |
8904 | } | |
8905 | } | |
8906 | { | |
8907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8908 | _result = (int )wxSpinButton_GetValue(_arg0); | |
8909 | ||
8910 | wxPyEndAllowThreads(__tstate); | |
8911 | if (PyErr_Occurred()) return NULL; | |
8912 | } _resultobj = Py_BuildValue("i",_result); | |
8913 | return _resultobj; | |
8914 | } | |
8915 | ||
8916 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
8917 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject * _resultobj; | |
8919 | wxSpinButton * _arg0; | |
8920 | int _arg1; | |
8921 | int _arg2; | |
8922 | PyObject * _argo0 = 0; | |
8923 | char *_kwnames[] = { "self","min","max", NULL }; | |
8924 | ||
8925 | self = self; | |
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8927 | return NULL; | |
8928 | if (_argo0) { | |
8929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); | |
8932 | return NULL; | |
8933 | } | |
8934 | } | |
8935 | { | |
8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8937 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); | |
8938 | ||
8939 | wxPyEndAllowThreads(__tstate); | |
8940 | if (PyErr_Occurred()) return NULL; | |
8941 | } Py_INCREF(Py_None); | |
8942 | _resultobj = Py_None; | |
8943 | return _resultobj; | |
8944 | } | |
8945 | ||
8946 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
8947 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject * _resultobj; | |
8949 | wxSpinButton * _arg0; | |
8950 | int _arg1; | |
8951 | PyObject * _argo0 = 0; | |
8952 | char *_kwnames[] = { "self","value", NULL }; | |
8953 | ||
8954 | self = self; | |
8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) | |
8956 | return NULL; | |
8957 | if (_argo0) { | |
8958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); | |
8961 | return NULL; | |
8962 | } | |
8963 | } | |
8964 | { | |
8965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8966 | wxSpinButton_SetValue(_arg0,_arg1); | |
8967 | ||
8968 | wxPyEndAllowThreads(__tstate); | |
8969 | if (PyErr_Occurred()) return NULL; | |
8970 | } Py_INCREF(Py_None); | |
8971 | _resultobj = Py_None; | |
8972 | return _resultobj; | |
8973 | } | |
8974 | ||
8975 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { | |
8976 | wxStaticBitmap *src; | |
8977 | wxControl *dest; | |
8978 | src = (wxStaticBitmap *) ptr; | |
8979 | dest = (wxControl *) src; | |
8980 | return (void *) dest; | |
8981 | } | |
8982 | ||
8983 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8984 | wxStaticBitmap *src; | |
8985 | wxWindow *dest; | |
8986 | src = (wxStaticBitmap *) ptr; | |
8987 | dest = (wxWindow *) src; | |
8988 | return (void *) dest; | |
8989 | } | |
8990 | ||
8991 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8992 | wxStaticBitmap *src; | |
8993 | wxEvtHandler *dest; | |
8994 | src = (wxStaticBitmap *) ptr; | |
8995 | dest = (wxEvtHandler *) src; | |
8996 | return (void *) dest; | |
8997 | } | |
8998 | ||
8999 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { | |
9000 | wxStaticBitmap *src; | |
9001 | wxObject *dest; | |
9002 | src = (wxStaticBitmap *) ptr; | |
9003 | dest = (wxObject *) src; | |
9004 | return (void *) dest; | |
9005 | } | |
9006 | ||
9007 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
9008 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject * _resultobj; | |
9010 | wxStaticBitmap * _result; | |
9011 | wxWindow * _arg0; | |
9012 | wxWindowID _arg1; | |
9013 | wxBitmap * _arg2; | |
9014 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9015 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9016 | long _arg5 = (long ) 0; | |
9017 | wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr; | |
9018 | PyObject * _argo0 = 0; | |
9019 | PyObject * _argo2 = 0; | |
9020 | wxPoint temp; | |
9021 | PyObject * _obj3 = 0; | |
9022 | wxSize temp0; | |
9023 | PyObject * _obj4 = 0; | |
9024 | PyObject * _obj6 = 0; | |
9025 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; | |
9026 | char _ptemp[128]; | |
9027 | ||
9028 | self = self; | |
9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
9030 | return NULL; | |
9031 | if (_argo0) { | |
9032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
9035 | return NULL; | |
9036 | } | |
9037 | } | |
9038 | if (_argo2) { | |
9039 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
9044 | if (_obj3) | |
9045 | { | |
9046 | _arg3 = &temp; | |
9047 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9048 | return NULL; | |
9049 | } | |
9050 | if (_obj4) | |
9051 | { | |
9052 | _arg4 = &temp0; | |
9053 | if (! wxSize_helper(_obj4, &_arg4)) | |
9054 | return NULL; | |
9055 | } | |
9056 | if (_obj6) | |
9057 | { | |
9058 | _arg6 = wxString_in_helper(_obj6); | |
9059 | if (_arg6 == NULL) | |
9060 | return NULL; | |
9061 | } | |
9062 | { | |
9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9064 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
9065 | ||
9066 | wxPyEndAllowThreads(__tstate); | |
9067 | if (PyErr_Occurred()) return NULL; | |
9068 | } if (_result) { | |
9069 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9070 | _resultobj = Py_BuildValue("s",_ptemp); | |
9071 | } else { | |
9072 | Py_INCREF(Py_None); | |
9073 | _resultobj = Py_None; | |
9074 | } | |
9075 | { | |
9076 | if (_obj6) | |
9077 | delete _arg6; | |
9078 | } | |
9079 | return _resultobj; | |
9080 | } | |
9081 | ||
9082 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
9083 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9084 | PyObject * _resultobj; | |
9085 | wxStaticBitmap * _result; | |
9086 | char *_kwnames[] = { NULL }; | |
9087 | char _ptemp[128]; | |
9088 | ||
9089 | self = self; | |
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
9091 | return NULL; | |
9092 | { | |
9093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9094 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); | |
9095 | ||
9096 | wxPyEndAllowThreads(__tstate); | |
9097 | if (PyErr_Occurred()) return NULL; | |
9098 | } if (_result) { | |
9099 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9100 | _resultobj = Py_BuildValue("s",_ptemp); | |
9101 | } else { | |
9102 | Py_INCREF(Py_None); | |
9103 | _resultobj = Py_None; | |
9104 | } | |
9105 | return _resultobj; | |
9106 | } | |
9107 | ||
9108 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
9109 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9110 | PyObject * _resultobj; | |
9111 | bool _result; | |
9112 | wxStaticBitmap * _arg0; | |
9113 | wxWindow * _arg1; | |
9114 | wxWindowID _arg2; | |
9115 | wxBitmap * _arg3; | |
9116 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9117 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9118 | long _arg6 = (long ) 0; | |
9119 | wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr; | |
9120 | PyObject * _argo0 = 0; | |
9121 | PyObject * _argo1 = 0; | |
9122 | PyObject * _argo3 = 0; | |
9123 | wxPoint temp; | |
9124 | PyObject * _obj4 = 0; | |
9125 | wxSize temp0; | |
9126 | PyObject * _obj5 = 0; | |
9127 | PyObject * _obj7 = 0; | |
9128 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; | |
9129 | ||
9130 | self = self; | |
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7)) | |
9132 | return NULL; | |
9133 | if (_argo0) { | |
9134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
9137 | return NULL; | |
9138 | } | |
9139 | } | |
9140 | if (_argo1) { | |
9141 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9142 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
9144 | return NULL; | |
9145 | } | |
9146 | } | |
9147 | if (_argo3) { | |
9148 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
9153 | if (_obj4) | |
9154 | { | |
9155 | _arg4 = &temp; | |
9156 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9157 | return NULL; | |
9158 | } | |
9159 | if (_obj5) | |
9160 | { | |
9161 | _arg5 = &temp0; | |
9162 | if (! wxSize_helper(_obj5, &_arg5)) | |
9163 | return NULL; | |
9164 | } | |
9165 | if (_obj7) | |
9166 | { | |
9167 | _arg7 = wxString_in_helper(_obj7); | |
9168 | if (_arg7 == NULL) | |
9169 | return NULL; | |
9170 | } | |
9171 | { | |
9172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9173 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); | |
9174 | ||
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) return NULL; | |
9177 | } _resultobj = Py_BuildValue("i",_result); | |
9178 | { | |
9179 | if (_obj7) | |
9180 | delete _arg7; | |
9181 | } | |
9182 | return _resultobj; | |
9183 | } | |
9184 | ||
9185 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
9186 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9187 | PyObject * _resultobj; | |
9188 | wxBitmap * _result; | |
9189 | wxStaticBitmap * _arg0; | |
9190 | PyObject * _argo0 = 0; | |
9191 | char *_kwnames[] = { "self", NULL }; | |
9192 | char _ptemp[128]; | |
9193 | ||
9194 | self = self; | |
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) | |
9196 | return NULL; | |
9197 | if (_argo0) { | |
9198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); | |
9201 | return NULL; | |
9202 | } | |
9203 | } | |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) return NULL; | |
9210 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9211 | _resultobj = Py_BuildValue("s",_ptemp); | |
9212 | return _resultobj; | |
9213 | } | |
9214 | ||
9215 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
9216 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9217 | PyObject * _resultobj; | |
9218 | wxStaticBitmap * _arg0; | |
9219 | wxBitmap * _arg1; | |
9220 | PyObject * _argo0 = 0; | |
9221 | PyObject * _argo1 = 0; | |
9222 | char *_kwnames[] = { "self","bitmap", NULL }; | |
9223 | ||
9224 | self = self; | |
9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
9226 | return NULL; | |
9227 | if (_argo0) { | |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); | |
9231 | return NULL; | |
9232 | } | |
9233 | } | |
9234 | if (_argo1) { | |
9235 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); | |
9237 | return NULL; | |
9238 | } | |
9239 | } | |
9240 | { | |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) return NULL; | |
9246 | } Py_INCREF(Py_None); | |
9247 | _resultobj = Py_None; | |
9248 | return _resultobj; | |
9249 | } | |
9250 | ||
9251 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
9252 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9253 | PyObject * _resultobj; | |
9254 | wxStaticBitmap * _arg0; | |
9255 | wxIcon * _arg1; | |
9256 | PyObject * _argo0 = 0; | |
9257 | PyObject * _argo1 = 0; | |
9258 | char *_kwnames[] = { "self","icon", NULL }; | |
9259 | ||
9260 | self = self; | |
9261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) | |
9262 | return NULL; | |
9263 | if (_argo0) { | |
9264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
9266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); | |
9267 | return NULL; | |
9268 | } | |
9269 | } | |
9270 | if (_argo1) { | |
9271 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); | |
9273 | return NULL; | |
9274 | } | |
9275 | } | |
9276 | { | |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | wxStaticBitmap_SetIcon(_arg0,*_arg1); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) return NULL; | |
9282 | } Py_INCREF(Py_None); | |
9283 | _resultobj = Py_None; | |
9284 | return _resultobj; | |
9285 | } | |
9286 | ||
9287 | static void *SwigwxRadioBoxTowxControl(void *ptr) { | |
9288 | wxRadioBox *src; | |
9289 | wxControl *dest; | |
9290 | src = (wxRadioBox *) ptr; | |
9291 | dest = (wxControl *) src; | |
9292 | return (void *) dest; | |
9293 | } | |
9294 | ||
9295 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
9296 | wxRadioBox *src; | |
9297 | wxWindow *dest; | |
9298 | src = (wxRadioBox *) ptr; | |
9299 | dest = (wxWindow *) src; | |
9300 | return (void *) dest; | |
9301 | } | |
9302 | ||
9303 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
9304 | wxRadioBox *src; | |
9305 | wxEvtHandler *dest; | |
9306 | src = (wxRadioBox *) ptr; | |
9307 | dest = (wxEvtHandler *) src; | |
9308 | return (void *) dest; | |
9309 | } | |
9310 | ||
9311 | static void *SwigwxRadioBoxTowxObject(void *ptr) { | |
9312 | wxRadioBox *src; | |
9313 | wxObject *dest; | |
9314 | src = (wxRadioBox *) ptr; | |
9315 | dest = (wxObject *) src; | |
9316 | return (void *) dest; | |
9317 | } | |
9318 | ||
9319 | #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)) | |
9320 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject * _resultobj; | |
9322 | wxRadioBox * _result; | |
9323 | wxWindow * _arg0; | |
9324 | wxWindowID _arg1; | |
9325 | wxString * _arg2; | |
9326 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9327 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9328 | int _arg5 = (int ) 0; | |
9329 | wxString * _arg6 = (wxString *) NULL; | |
9330 | int _arg7 = (int ) 0; | |
9331 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
9332 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9333 | wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr; | |
9334 | PyObject * _argo0 = 0; | |
9335 | PyObject * _obj2 = 0; | |
9336 | wxPoint temp; | |
9337 | PyObject * _obj3 = 0; | |
9338 | wxSize temp0; | |
9339 | PyObject * _obj4 = 0; | |
9340 | PyObject * _obj6 = 0; | |
9341 | PyObject * _argo9 = 0; | |
9342 | PyObject * _obj10 = 0; | |
9343 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
9344 | char _ptemp[128]; | |
9345 | ||
9346 | self = self; | |
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10)) | |
9348 | return NULL; | |
9349 | if (_argo0) { | |
9350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); | |
9353 | return NULL; | |
9354 | } | |
9355 | } | |
9356 | { | |
9357 | _arg2 = wxString_in_helper(_obj2); | |
9358 | if (_arg2 == NULL) | |
9359 | return NULL; | |
9360 | } | |
9361 | if (_obj3) | |
9362 | { | |
9363 | _arg3 = &temp; | |
9364 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9365 | return NULL; | |
9366 | } | |
9367 | if (_obj4) | |
9368 | { | |
9369 | _arg4 = &temp0; | |
9370 | if (! wxSize_helper(_obj4, &_arg4)) | |
9371 | return NULL; | |
9372 | } | |
9373 | if (_obj6) | |
9374 | { | |
9375 | _arg6 = wxString_LIST_helper(_obj6); | |
9376 | if (_arg6 == NULL) { | |
9377 | return NULL; | |
9378 | } | |
9379 | } | |
9380 | if (_argo9) { | |
9381 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
9382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); | |
9383 | return NULL; | |
9384 | } | |
9385 | } | |
9386 | if (_obj10) | |
9387 | { | |
9388 | _arg10 = wxString_in_helper(_obj10); | |
9389 | if (_arg10 == NULL) | |
9390 | return NULL; | |
9391 | } | |
9392 | { | |
9393 | if (_obj6) { | |
9394 | _arg5 = PyList_Size(_obj6); | |
9395 | } | |
9396 | else { | |
9397 | _arg5 = 0; | |
9398 | } | |
9399 | } | |
9400 | { | |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9402 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); | |
9403 | ||
9404 | wxPyEndAllowThreads(__tstate); | |
9405 | if (PyErr_Occurred()) return NULL; | |
9406 | } if (_result) { | |
9407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9408 | _resultobj = Py_BuildValue("s",_ptemp); | |
9409 | } else { | |
9410 | Py_INCREF(Py_None); | |
9411 | _resultobj = Py_None; | |
9412 | } | |
9413 | { | |
9414 | if (_obj2) | |
9415 | delete _arg2; | |
9416 | } | |
9417 | { | |
9418 | delete [] _arg6; | |
9419 | } | |
9420 | { | |
9421 | if (_obj10) | |
9422 | delete _arg10; | |
9423 | } | |
9424 | return _resultobj; | |
9425 | } | |
9426 | ||
9427 | #define new_wxPreRadioBox() (new wxRadioBox()) | |
9428 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9429 | PyObject * _resultobj; | |
9430 | wxRadioBox * _result; | |
9431 | char *_kwnames[] = { NULL }; | |
9432 | char _ptemp[128]; | |
9433 | ||
9434 | self = self; | |
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
9436 | return NULL; | |
9437 | { | |
9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9439 | _result = (wxRadioBox *)new_wxPreRadioBox(); | |
9440 | ||
9441 | wxPyEndAllowThreads(__tstate); | |
9442 | if (PyErr_Occurred()) return NULL; | |
9443 | } if (_result) { | |
9444 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9445 | _resultobj = Py_BuildValue("s",_ptemp); | |
9446 | } else { | |
9447 | Py_INCREF(Py_None); | |
9448 | _resultobj = Py_None; | |
9449 | } | |
9450 | return _resultobj; | |
9451 | } | |
9452 | ||
9453 | #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)) | |
9454 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9455 | PyObject * _resultobj; | |
9456 | bool _result; | |
9457 | wxRadioBox * _arg0; | |
9458 | wxWindow * _arg1; | |
9459 | wxWindowID _arg2; | |
9460 | wxString * _arg3; | |
9461 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9462 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9463 | int _arg6 = (int ) 0; | |
9464 | wxString * _arg7 = (wxString *) NULL; | |
9465 | int _arg8 = (int ) 0; | |
9466 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
9467 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
9468 | wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr; | |
9469 | PyObject * _argo0 = 0; | |
9470 | PyObject * _argo1 = 0; | |
9471 | PyObject * _obj3 = 0; | |
9472 | wxPoint temp; | |
9473 | PyObject * _obj4 = 0; | |
9474 | wxSize temp0; | |
9475 | PyObject * _obj5 = 0; | |
9476 | PyObject * _obj7 = 0; | |
9477 | PyObject * _argo10 = 0; | |
9478 | PyObject * _obj11 = 0; | |
9479 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; | |
9480 | ||
9481 | self = self; | |
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11)) | |
9483 | return NULL; | |
9484 | if (_argo0) { | |
9485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
9488 | return NULL; | |
9489 | } | |
9490 | } | |
9491 | if (_argo1) { | |
9492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
9495 | return NULL; | |
9496 | } | |
9497 | } | |
9498 | { | |
9499 | _arg3 = wxString_in_helper(_obj3); | |
9500 | if (_arg3 == NULL) | |
9501 | return NULL; | |
9502 | } | |
9503 | if (_obj4) | |
9504 | { | |
9505 | _arg4 = &temp; | |
9506 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9507 | return NULL; | |
9508 | } | |
9509 | if (_obj5) | |
9510 | { | |
9511 | _arg5 = &temp0; | |
9512 | if (! wxSize_helper(_obj5, &_arg5)) | |
9513 | return NULL; | |
9514 | } | |
9515 | if (_obj7) | |
9516 | { | |
9517 | _arg7 = wxString_LIST_helper(_obj7); | |
9518 | if (_arg7 == NULL) { | |
9519 | return NULL; | |
9520 | } | |
9521 | } | |
9522 | if (_argo10) { | |
9523 | if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
9524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
9525 | return NULL; | |
9526 | } | |
9527 | } | |
9528 | if (_obj11) | |
9529 | { | |
9530 | _arg11 = wxString_in_helper(_obj11); | |
9531 | if (_arg11 == NULL) | |
9532 | return NULL; | |
9533 | } | |
9534 | { | |
9535 | if (_obj7) { | |
9536 | _arg6 = PyList_Size(_obj7); | |
9537 | } | |
9538 | else { | |
9539 | _arg6 = 0; | |
9540 | } | |
9541 | } | |
9542 | { | |
9543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9544 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11); | |
9545 | ||
9546 | wxPyEndAllowThreads(__tstate); | |
9547 | if (PyErr_Occurred()) return NULL; | |
9548 | } _resultobj = Py_BuildValue("i",_result); | |
9549 | { | |
9550 | if (_obj3) | |
9551 | delete _arg3; | |
9552 | } | |
9553 | { | |
9554 | delete [] _arg7; | |
9555 | } | |
9556 | { | |
9557 | if (_obj11) | |
9558 | delete _arg11; | |
9559 | } | |
9560 | return _resultobj; | |
9561 | } | |
9562 | ||
9563 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9564 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9565 | PyObject * _resultobj; | |
9566 | wxRadioBox * _arg0; | |
9567 | bool _arg1; | |
9568 | PyObject * _argo0 = 0; | |
9569 | int tempbool1; | |
9570 | char *_kwnames[] = { "self","enable", NULL }; | |
9571 | ||
9572 | self = self; | |
9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) | |
9574 | return NULL; | |
9575 | if (_argo0) { | |
9576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); | |
9579 | return NULL; | |
9580 | } | |
9581 | } | |
9582 | _arg1 = (bool ) tempbool1; | |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | wxRadioBox_Enable(_arg0,_arg1); | |
9586 | ||
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) return NULL; | |
9589 | } Py_INCREF(Py_None); | |
9590 | _resultobj = Py_None; | |
9591 | return _resultobj; | |
9592 | } | |
9593 | ||
9594 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9595 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9596 | PyObject * _resultobj; | |
9597 | wxRadioBox * _arg0; | |
9598 | int _arg1; | |
9599 | bool _arg2; | |
9600 | PyObject * _argo0 = 0; | |
9601 | int tempbool2; | |
9602 | char *_kwnames[] = { "self","n","enable", NULL }; | |
9603 | ||
9604 | self = self; | |
9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9606 | return NULL; | |
9607 | if (_argo0) { | |
9608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); | |
9611 | return NULL; | |
9612 | } | |
9613 | } | |
9614 | _arg2 = (bool ) tempbool2; | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) return NULL; | |
9621 | } Py_INCREF(Py_None); | |
9622 | _resultobj = Py_None; | |
9623 | return _resultobj; | |
9624 | } | |
9625 | ||
9626 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
9627 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9628 | PyObject * _resultobj; | |
9629 | int _result; | |
9630 | wxRadioBox * _arg0; | |
9631 | wxString * _arg1; | |
9632 | PyObject * _argo0 = 0; | |
9633 | PyObject * _obj1 = 0; | |
9634 | char *_kwnames[] = { "self","string", NULL }; | |
9635 | ||
9636 | self = self; | |
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) | |
9638 | return NULL; | |
9639 | if (_argo0) { | |
9640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); | |
9643 | return NULL; | |
9644 | } | |
9645 | } | |
9646 | { | |
9647 | _arg1 = wxString_in_helper(_obj1); | |
9648 | if (_arg1 == NULL) | |
9649 | return NULL; | |
9650 | } | |
9651 | { | |
9652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9653 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); | |
9654 | ||
9655 | wxPyEndAllowThreads(__tstate); | |
9656 | if (PyErr_Occurred()) return NULL; | |
9657 | } _resultobj = Py_BuildValue("i",_result); | |
9658 | { | |
9659 | if (_obj1) | |
9660 | delete _arg1; | |
9661 | } | |
9662 | return _resultobj; | |
9663 | } | |
9664 | ||
9665 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
9666 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject * _resultobj; | |
9668 | wxString * _result; | |
9669 | wxRadioBox * _arg0; | |
9670 | int _arg1; | |
9671 | PyObject * _argo0 = 0; | |
9672 | char *_kwnames[] = { "self","n", NULL }; | |
9673 | ||
9674 | self = self; | |
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) | |
9676 | return NULL; | |
9677 | if (_argo0) { | |
9678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); | |
9681 | return NULL; | |
9682 | } | |
9683 | } | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) return NULL; | |
9690 | }{ | |
9691 | #if wxUSE_UNICODE | |
9692 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
9693 | #else | |
9694 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9695 | #endif | |
9696 | } | |
9697 | { | |
9698 | delete _result; | |
9699 | } | |
9700 | return _resultobj; | |
9701 | } | |
9702 | ||
9703 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
9704 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9705 | PyObject * _resultobj; | |
9706 | wxRadioBox * _arg0; | |
9707 | int _arg1; | |
9708 | wxString * _arg2; | |
9709 | PyObject * _argo0 = 0; | |
9710 | PyObject * _obj2 = 0; | |
9711 | char *_kwnames[] = { "self","n","label", NULL }; | |
9712 | ||
9713 | self = self; | |
9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9715 | return NULL; | |
9716 | if (_argo0) { | |
9717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); | |
9720 | return NULL; | |
9721 | } | |
9722 | } | |
9723 | { | |
9724 | _arg2 = wxString_in_helper(_obj2); | |
9725 | if (_arg2 == NULL) | |
9726 | return NULL; | |
9727 | } | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) return NULL; | |
9734 | } Py_INCREF(Py_None); | |
9735 | _resultobj = Py_None; | |
9736 | { | |
9737 | if (_obj2) | |
9738 | delete _arg2; | |
9739 | } | |
9740 | return _resultobj; | |
9741 | } | |
9742 | ||
9743 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
9744 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9745 | PyObject * _resultobj; | |
9746 | int _result; | |
9747 | wxRadioBox * _arg0; | |
9748 | PyObject * _argo0 = 0; | |
9749 | char *_kwnames[] = { "self", NULL }; | |
9750 | ||
9751 | self = self; | |
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) | |
9753 | return NULL; | |
9754 | if (_argo0) { | |
9755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); | |
9758 | return NULL; | |
9759 | } | |
9760 | } | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | _result = (int )wxRadioBox_GetSelection(_arg0); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) return NULL; | |
9767 | } _resultobj = Py_BuildValue("i",_result); | |
9768 | return _resultobj; | |
9769 | } | |
9770 | ||
9771 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
9772 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject * _resultobj; | |
9774 | wxString * _result; | |
9775 | wxRadioBox * _arg0; | |
9776 | PyObject * _argo0 = 0; | |
9777 | char *_kwnames[] = { "self", NULL }; | |
9778 | ||
9779 | self = self; | |
9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) | |
9781 | return NULL; | |
9782 | if (_argo0) { | |
9783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); | |
9786 | return NULL; | |
9787 | } | |
9788 | } | |
9789 | { | |
9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9791 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); | |
9792 | ||
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) return NULL; | |
9795 | }{ | |
9796 | #if wxUSE_UNICODE | |
9797 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
9798 | #else | |
9799 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9800 | #endif | |
9801 | } | |
9802 | { | |
9803 | delete _result; | |
9804 | } | |
9805 | return _resultobj; | |
9806 | } | |
9807 | ||
9808 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
9809 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject * _resultobj; | |
9811 | int _result; | |
9812 | wxRadioBox * _arg0; | |
9813 | PyObject * _argo0 = 0; | |
9814 | char *_kwnames[] = { "self", NULL }; | |
9815 | ||
9816 | self = self; | |
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) | |
9818 | return NULL; | |
9819 | if (_argo0) { | |
9820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); | |
9823 | return NULL; | |
9824 | } | |
9825 | } | |
9826 | { | |
9827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9828 | _result = (int )wxRadioBox_GetCount(_arg0); | |
9829 | ||
9830 | wxPyEndAllowThreads(__tstate); | |
9831 | if (PyErr_Occurred()) return NULL; | |
9832 | } _resultobj = Py_BuildValue("i",_result); | |
9833 | return _resultobj; | |
9834 | } | |
9835 | ||
9836 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
9837 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9838 | PyObject * _resultobj; | |
9839 | wxRadioBox * _arg0; | |
9840 | int _arg1; | |
9841 | PyObject * _argo0 = 0; | |
9842 | char *_kwnames[] = { "self","n", NULL }; | |
9843 | ||
9844 | self = self; | |
9845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
9846 | return NULL; | |
9847 | if (_argo0) { | |
9848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); | |
9851 | return NULL; | |
9852 | } | |
9853 | } | |
9854 | { | |
9855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9856 | wxRadioBox_SetSelection(_arg0,_arg1); | |
9857 | ||
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) return NULL; | |
9860 | } Py_INCREF(Py_None); | |
9861 | _resultobj = Py_None; | |
9862 | return _resultobj; | |
9863 | } | |
9864 | ||
9865 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
9866 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9867 | PyObject * _resultobj; | |
9868 | wxRadioBox * _arg0; | |
9869 | wxString * _arg1; | |
9870 | PyObject * _argo0 = 0; | |
9871 | PyObject * _obj1 = 0; | |
9872 | char *_kwnames[] = { "self","string", NULL }; | |
9873 | ||
9874 | self = self; | |
9875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) | |
9876 | return NULL; | |
9877 | if (_argo0) { | |
9878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); | |
9881 | return NULL; | |
9882 | } | |
9883 | } | |
9884 | { | |
9885 | _arg1 = wxString_in_helper(_obj1); | |
9886 | if (_arg1 == NULL) | |
9887 | return NULL; | |
9888 | } | |
9889 | { | |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | wxRadioBox_SetStringSelection(_arg0,*_arg1); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) return NULL; | |
9895 | } Py_INCREF(Py_None); | |
9896 | _resultobj = Py_None; | |
9897 | { | |
9898 | if (_obj1) | |
9899 | delete _arg1; | |
9900 | } | |
9901 | return _resultobj; | |
9902 | } | |
9903 | ||
9904 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
9905 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9906 | PyObject * _resultobj; | |
9907 | wxRadioBox * _arg0; | |
9908 | bool _arg1; | |
9909 | PyObject * _argo0 = 0; | |
9910 | int tempbool1; | |
9911 | char *_kwnames[] = { "self","show", NULL }; | |
9912 | ||
9913 | self = self; | |
9914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) | |
9915 | return NULL; | |
9916 | if (_argo0) { | |
9917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); | |
9920 | return NULL; | |
9921 | } | |
9922 | } | |
9923 | _arg1 = (bool ) tempbool1; | |
9924 | { | |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | wxRadioBox_Show(_arg0,_arg1); | |
9927 | ||
9928 | wxPyEndAllowThreads(__tstate); | |
9929 | if (PyErr_Occurred()) return NULL; | |
9930 | } Py_INCREF(Py_None); | |
9931 | _resultobj = Py_None; | |
9932 | return _resultobj; | |
9933 | } | |
9934 | ||
9935 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
9936 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject * _resultobj; | |
9938 | wxRadioBox * _arg0; | |
9939 | int _arg1; | |
9940 | bool _arg2; | |
9941 | PyObject * _argo0 = 0; | |
9942 | int tempbool2; | |
9943 | char *_kwnames[] = { "self","item","show", NULL }; | |
9944 | ||
9945 | self = self; | |
9946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9947 | return NULL; | |
9948 | if (_argo0) { | |
9949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); | |
9952 | return NULL; | |
9953 | } | |
9954 | } | |
9955 | _arg2 = (bool ) tempbool2; | |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); | |
9959 | ||
9960 | wxPyEndAllowThreads(__tstate); | |
9961 | if (PyErr_Occurred()) return NULL; | |
9962 | } Py_INCREF(Py_None); | |
9963 | _resultobj = Py_None; | |
9964 | return _resultobj; | |
9965 | } | |
9966 | ||
9967 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9968 | wxRadioButton *src; | |
9969 | wxControl *dest; | |
9970 | src = (wxRadioButton *) ptr; | |
9971 | dest = (wxControl *) src; | |
9972 | return (void *) dest; | |
9973 | } | |
9974 | ||
9975 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9976 | wxRadioButton *src; | |
9977 | wxWindow *dest; | |
9978 | src = (wxRadioButton *) ptr; | |
9979 | dest = (wxWindow *) src; | |
9980 | return (void *) dest; | |
9981 | } | |
9982 | ||
9983 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9984 | wxRadioButton *src; | |
9985 | wxEvtHandler *dest; | |
9986 | src = (wxRadioButton *) ptr; | |
9987 | dest = (wxEvtHandler *) src; | |
9988 | return (void *) dest; | |
9989 | } | |
9990 | ||
9991 | static void *SwigwxRadioButtonTowxObject(void *ptr) { | |
9992 | wxRadioButton *src; | |
9993 | wxObject *dest; | |
9994 | src = (wxRadioButton *) ptr; | |
9995 | dest = (wxObject *) src; | |
9996 | return (void *) dest; | |
9997 | } | |
9998 | ||
9999 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10000 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10001 | PyObject * _resultobj; | |
10002 | wxRadioButton * _result; | |
10003 | wxWindow * _arg0; | |
10004 | wxWindowID _arg1; | |
10005 | wxString * _arg2; | |
10006 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10007 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10008 | long _arg5 = (long ) 0; | |
10009 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
10010 | wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr; | |
10011 | PyObject * _argo0 = 0; | |
10012 | PyObject * _obj2 = 0; | |
10013 | wxPoint temp; | |
10014 | PyObject * _obj3 = 0; | |
10015 | wxSize temp0; | |
10016 | PyObject * _obj4 = 0; | |
10017 | PyObject * _argo6 = 0; | |
10018 | PyObject * _obj7 = 0; | |
10019 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
10020 | char _ptemp[128]; | |
10021 | ||
10022 | self = self; | |
10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
10024 | return NULL; | |
10025 | if (_argo0) { | |
10026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); | |
10029 | return NULL; | |
10030 | } | |
10031 | } | |
10032 | { | |
10033 | _arg2 = wxString_in_helper(_obj2); | |
10034 | if (_arg2 == NULL) | |
10035 | return NULL; | |
10036 | } | |
10037 | if (_obj3) | |
10038 | { | |
10039 | _arg3 = &temp; | |
10040 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10041 | return NULL; | |
10042 | } | |
10043 | if (_obj4) | |
10044 | { | |
10045 | _arg4 = &temp0; | |
10046 | if (! wxSize_helper(_obj4, &_arg4)) | |
10047 | return NULL; | |
10048 | } | |
10049 | if (_argo6) { | |
10050 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
10051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
10052 | return NULL; | |
10053 | } | |
10054 | } | |
10055 | if (_obj7) | |
10056 | { | |
10057 | _arg7 = wxString_in_helper(_obj7); | |
10058 | if (_arg7 == NULL) | |
10059 | return NULL; | |
10060 | } | |
10061 | { | |
10062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10063 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
10064 | ||
10065 | wxPyEndAllowThreads(__tstate); | |
10066 | if (PyErr_Occurred()) return NULL; | |
10067 | } if (_result) { | |
10068 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10069 | _resultobj = Py_BuildValue("s",_ptemp); | |
10070 | } else { | |
10071 | Py_INCREF(Py_None); | |
10072 | _resultobj = Py_None; | |
10073 | } | |
10074 | { | |
10075 | if (_obj2) | |
10076 | delete _arg2; | |
10077 | } | |
10078 | { | |
10079 | if (_obj7) | |
10080 | delete _arg7; | |
10081 | } | |
10082 | return _resultobj; | |
10083 | } | |
10084 | ||
10085 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
10086 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10087 | PyObject * _resultobj; | |
10088 | wxRadioButton * _result; | |
10089 | char *_kwnames[] = { NULL }; | |
10090 | char _ptemp[128]; | |
10091 | ||
10092 | self = self; | |
10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
10094 | return NULL; | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | _result = (wxRadioButton *)new_wxPreRadioButton(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) return NULL; | |
10101 | } if (_result) { | |
10102 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10103 | _resultobj = Py_BuildValue("s",_ptemp); | |
10104 | } else { | |
10105 | Py_INCREF(Py_None); | |
10106 | _resultobj = Py_None; | |
10107 | } | |
10108 | return _resultobj; | |
10109 | } | |
10110 | ||
10111 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10112 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10113 | PyObject * _resultobj; | |
10114 | bool _result; | |
10115 | wxRadioButton * _arg0; | |
10116 | wxWindow * _arg1; | |
10117 | wxWindowID _arg2; | |
10118 | wxString * _arg3; | |
10119 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10120 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10121 | long _arg6 = (long ) 0; | |
10122 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
10123 | wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr; | |
10124 | PyObject * _argo0 = 0; | |
10125 | PyObject * _argo1 = 0; | |
10126 | PyObject * _obj3 = 0; | |
10127 | wxPoint temp; | |
10128 | PyObject * _obj4 = 0; | |
10129 | wxSize temp0; | |
10130 | PyObject * _obj5 = 0; | |
10131 | PyObject * _argo7 = 0; | |
10132 | PyObject * _obj8 = 0; | |
10133 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
10134 | ||
10135 | self = self; | |
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
10137 | return NULL; | |
10138 | if (_argo0) { | |
10139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
10142 | return NULL; | |
10143 | } | |
10144 | } | |
10145 | if (_argo1) { | |
10146 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10147 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
10149 | return NULL; | |
10150 | } | |
10151 | } | |
10152 | { | |
10153 | _arg3 = wxString_in_helper(_obj3); | |
10154 | if (_arg3 == NULL) | |
10155 | return NULL; | |
10156 | } | |
10157 | if (_obj4) | |
10158 | { | |
10159 | _arg4 = &temp; | |
10160 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10161 | return NULL; | |
10162 | } | |
10163 | if (_obj5) | |
10164 | { | |
10165 | _arg5 = &temp0; | |
10166 | if (! wxSize_helper(_obj5, &_arg5)) | |
10167 | return NULL; | |
10168 | } | |
10169 | if (_argo7) { | |
10170 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
10172 | return NULL; | |
10173 | } | |
10174 | } | |
10175 | if (_obj8) | |
10176 | { | |
10177 | _arg8 = wxString_in_helper(_obj8); | |
10178 | if (_arg8 == NULL) | |
10179 | return NULL; | |
10180 | } | |
10181 | { | |
10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10183 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
10184 | ||
10185 | wxPyEndAllowThreads(__tstate); | |
10186 | if (PyErr_Occurred()) return NULL; | |
10187 | } _resultobj = Py_BuildValue("i",_result); | |
10188 | { | |
10189 | if (_obj3) | |
10190 | delete _arg3; | |
10191 | } | |
10192 | { | |
10193 | if (_obj8) | |
10194 | delete _arg8; | |
10195 | } | |
10196 | return _resultobj; | |
10197 | } | |
10198 | ||
10199 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
10200 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10201 | PyObject * _resultobj; | |
10202 | bool _result; | |
10203 | wxRadioButton * _arg0; | |
10204 | PyObject * _argo0 = 0; | |
10205 | char *_kwnames[] = { "self", NULL }; | |
10206 | ||
10207 | self = self; | |
10208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) | |
10209 | return NULL; | |
10210 | if (_argo0) { | |
10211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); | |
10214 | return NULL; | |
10215 | } | |
10216 | } | |
10217 | { | |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | _result = (bool )wxRadioButton_GetValue(_arg0); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) return NULL; | |
10223 | } _resultobj = Py_BuildValue("i",_result); | |
10224 | return _resultobj; | |
10225 | } | |
10226 | ||
10227 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10228 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10229 | PyObject * _resultobj; | |
10230 | wxRadioButton * _arg0; | |
10231 | bool _arg1; | |
10232 | PyObject * _argo0 = 0; | |
10233 | int tempbool1; | |
10234 | char *_kwnames[] = { "self","value", NULL }; | |
10235 | ||
10236 | self = self; | |
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
10238 | return NULL; | |
10239 | if (_argo0) { | |
10240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); | |
10243 | return NULL; | |
10244 | } | |
10245 | } | |
10246 | _arg1 = (bool ) tempbool1; | |
10247 | { | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | wxRadioButton_SetValue(_arg0,_arg1); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) return NULL; | |
10253 | } Py_INCREF(Py_None); | |
10254 | _resultobj = Py_None; | |
10255 | return _resultobj; | |
10256 | } | |
10257 | ||
10258 | static void *SwigwxSliderTowxControl(void *ptr) { | |
10259 | wxSlider *src; | |
10260 | wxControl *dest; | |
10261 | src = (wxSlider *) ptr; | |
10262 | dest = (wxControl *) src; | |
10263 | return (void *) dest; | |
10264 | } | |
10265 | ||
10266 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
10267 | wxSlider *src; | |
10268 | wxWindow *dest; | |
10269 | src = (wxSlider *) ptr; | |
10270 | dest = (wxWindow *) src; | |
10271 | return (void *) dest; | |
10272 | } | |
10273 | ||
10274 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
10275 | wxSlider *src; | |
10276 | wxEvtHandler *dest; | |
10277 | src = (wxSlider *) ptr; | |
10278 | dest = (wxEvtHandler *) src; | |
10279 | return (void *) dest; | |
10280 | } | |
10281 | ||
10282 | static void *SwigwxSliderTowxObject(void *ptr) { | |
10283 | wxSlider *src; | |
10284 | wxObject *dest; | |
10285 | src = (wxSlider *) ptr; | |
10286 | dest = (wxObject *) src; | |
10287 | return (void *) dest; | |
10288 | } | |
10289 | ||
10290 | #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)) | |
10291 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject * _resultobj; | |
10293 | wxSlider * _result; | |
10294 | wxWindow * _arg0; | |
10295 | wxWindowID _arg1; | |
10296 | int _arg2; | |
10297 | int _arg3; | |
10298 | int _arg4; | |
10299 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
10300 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
10301 | long _arg7 = (long ) wxSL_HORIZONTAL; | |
10302 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
10303 | wxString * _arg9 = (wxString *) &wxPySliderNameStr; | |
10304 | PyObject * _argo0 = 0; | |
10305 | wxPoint temp; | |
10306 | PyObject * _obj5 = 0; | |
10307 | wxSize temp0; | |
10308 | PyObject * _obj6 = 0; | |
10309 | PyObject * _argo8 = 0; | |
10310 | PyObject * _obj9 = 0; | |
10311 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
10312 | char _ptemp[128]; | |
10313 | ||
10314 | self = self; | |
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9)) | |
10316 | return NULL; | |
10317 | if (_argo0) { | |
10318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); | |
10321 | return NULL; | |
10322 | } | |
10323 | } | |
10324 | if (_obj5) | |
10325 | { | |
10326 | _arg5 = &temp; | |
10327 | if (! wxPoint_helper(_obj5, &_arg5)) | |
10328 | return NULL; | |
10329 | } | |
10330 | if (_obj6) | |
10331 | { | |
10332 | _arg6 = &temp0; | |
10333 | if (! wxSize_helper(_obj6, &_arg6)) | |
10334 | return NULL; | |
10335 | } | |
10336 | if (_argo8) { | |
10337 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
10338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); | |
10339 | return NULL; | |
10340 | } | |
10341 | } | |
10342 | if (_obj9) | |
10343 | { | |
10344 | _arg9 = wxString_in_helper(_obj9); | |
10345 | if (_arg9 == NULL) | |
10346 | return NULL; | |
10347 | } | |
10348 | { | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) return NULL; | |
10354 | } if (_result) { | |
10355 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10356 | _resultobj = Py_BuildValue("s",_ptemp); | |
10357 | } else { | |
10358 | Py_INCREF(Py_None); | |
10359 | _resultobj = Py_None; | |
10360 | } | |
10361 | { | |
10362 | if (_obj9) | |
10363 | delete _arg9; | |
10364 | } | |
10365 | return _resultobj; | |
10366 | } | |
10367 | ||
10368 | #define new_wxPreSlider() (new wxSlider()) | |
10369 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject * _resultobj; | |
10371 | wxSlider * _result; | |
10372 | char *_kwnames[] = { NULL }; | |
10373 | char _ptemp[128]; | |
10374 | ||
10375 | self = self; | |
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
10377 | return NULL; | |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | _result = (wxSlider *)new_wxPreSlider(); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) return NULL; | |
10384 | } if (_result) { | |
10385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10386 | _resultobj = Py_BuildValue("s",_ptemp); | |
10387 | } else { | |
10388 | Py_INCREF(Py_None); | |
10389 | _resultobj = Py_None; | |
10390 | } | |
10391 | return _resultobj; | |
10392 | } | |
10393 | ||
10394 | #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)) | |
10395 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10396 | PyObject * _resultobj; | |
10397 | bool _result; | |
10398 | wxSlider * _arg0; | |
10399 | wxWindow * _arg1; | |
10400 | wxWindowID _arg2; | |
10401 | int _arg3; | |
10402 | int _arg4; | |
10403 | int _arg5; | |
10404 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
10405 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
10406 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
10407 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
10408 | wxString * _arg10 = (wxString *) &wxPySliderNameStr; | |
10409 | PyObject * _argo0 = 0; | |
10410 | PyObject * _argo1 = 0; | |
10411 | wxPoint temp; | |
10412 | PyObject * _obj6 = 0; | |
10413 | wxSize temp0; | |
10414 | PyObject * _obj7 = 0; | |
10415 | PyObject * _argo9 = 0; | |
10416 | PyObject * _obj10 = 0; | |
10417 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; | |
10418 | ||
10419 | self = self; | |
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10)) | |
10421 | return NULL; | |
10422 | if (_argo0) { | |
10423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
10426 | return NULL; | |
10427 | } | |
10428 | } | |
10429 | if (_argo1) { | |
10430 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10431 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
10433 | return NULL; | |
10434 | } | |
10435 | } | |
10436 | if (_obj6) | |
10437 | { | |
10438 | _arg6 = &temp; | |
10439 | if (! wxPoint_helper(_obj6, &_arg6)) | |
10440 | return NULL; | |
10441 | } | |
10442 | if (_obj7) | |
10443 | { | |
10444 | _arg7 = &temp0; | |
10445 | if (! wxSize_helper(_obj7, &_arg7)) | |
10446 | return NULL; | |
10447 | } | |
10448 | if (_argo9) { | |
10449 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
10450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
10451 | return NULL; | |
10452 | } | |
10453 | } | |
10454 | if (_obj10) | |
10455 | { | |
10456 | _arg10 = wxString_in_helper(_obj10); | |
10457 | if (_arg10 == NULL) | |
10458 | return NULL; | |
10459 | } | |
10460 | { | |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10); | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) return NULL; | |
10466 | } _resultobj = Py_BuildValue("i",_result); | |
10467 | { | |
10468 | if (_obj10) | |
10469 | delete _arg10; | |
10470 | } | |
10471 | return _resultobj; | |
10472 | } | |
10473 | ||
10474 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) | |
10475 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject * _resultobj; | |
10477 | wxSlider * _arg0; | |
10478 | PyObject * _argo0 = 0; | |
10479 | char *_kwnames[] = { "self", NULL }; | |
10480 | ||
10481 | self = self; | |
10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) | |
10483 | return NULL; | |
10484 | if (_argo0) { | |
10485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); | |
10488 | return NULL; | |
10489 | } | |
10490 | } | |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10493 | wxSlider_ClearSel(_arg0); | |
10494 | ||
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) return NULL; | |
10497 | } Py_INCREF(Py_None); | |
10498 | _resultobj = Py_None; | |
10499 | return _resultobj; | |
10500 | } | |
10501 | ||
10502 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
10503 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10504 | PyObject * _resultobj; | |
10505 | wxSlider * _arg0; | |
10506 | PyObject * _argo0 = 0; | |
10507 | char *_kwnames[] = { "self", NULL }; | |
10508 | ||
10509 | self = self; | |
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) | |
10511 | return NULL; | |
10512 | if (_argo0) { | |
10513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); | |
10516 | return NULL; | |
10517 | } | |
10518 | } | |
10519 | { | |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10521 | wxSlider_ClearTicks(_arg0); | |
10522 | ||
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) return NULL; | |
10525 | } Py_INCREF(Py_None); | |
10526 | _resultobj = Py_None; | |
10527 | return _resultobj; | |
10528 | } | |
10529 | ||
10530 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
10531 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10532 | PyObject * _resultobj; | |
10533 | int _result; | |
10534 | wxSlider * _arg0; | |
10535 | PyObject * _argo0 = 0; | |
10536 | char *_kwnames[] = { "self", NULL }; | |
10537 | ||
10538 | self = self; | |
10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) | |
10540 | return NULL; | |
10541 | if (_argo0) { | |
10542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); | |
10545 | return NULL; | |
10546 | } | |
10547 | } | |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | _result = (int )wxSlider_GetLineSize(_arg0); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) return NULL; | |
10554 | } _resultobj = Py_BuildValue("i",_result); | |
10555 | return _resultobj; | |
10556 | } | |
10557 | ||
10558 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
10559 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject * _resultobj; | |
10561 | int _result; | |
10562 | wxSlider * _arg0; | |
10563 | PyObject * _argo0 = 0; | |
10564 | char *_kwnames[] = { "self", NULL }; | |
10565 | ||
10566 | self = self; | |
10567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) | |
10568 | return NULL; | |
10569 | if (_argo0) { | |
10570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); | |
10573 | return NULL; | |
10574 | } | |
10575 | } | |
10576 | { | |
10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10578 | _result = (int )wxSlider_GetMax(_arg0); | |
10579 | ||
10580 | wxPyEndAllowThreads(__tstate); | |
10581 | if (PyErr_Occurred()) return NULL; | |
10582 | } _resultobj = Py_BuildValue("i",_result); | |
10583 | return _resultobj; | |
10584 | } | |
10585 | ||
10586 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
10587 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10588 | PyObject * _resultobj; | |
10589 | int _result; | |
10590 | wxSlider * _arg0; | |
10591 | PyObject * _argo0 = 0; | |
10592 | char *_kwnames[] = { "self", NULL }; | |
10593 | ||
10594 | self = self; | |
10595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) | |
10596 | return NULL; | |
10597 | if (_argo0) { | |
10598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); | |
10601 | return NULL; | |
10602 | } | |
10603 | } | |
10604 | { | |
10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10606 | _result = (int )wxSlider_GetMin(_arg0); | |
10607 | ||
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) return NULL; | |
10610 | } _resultobj = Py_BuildValue("i",_result); | |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
10614 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
10615 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | int _result; | |
10618 | wxSlider * _arg0; | |
10619 | PyObject * _argo0 = 0; | |
10620 | char *_kwnames[] = { "self", NULL }; | |
10621 | ||
10622 | self = self; | |
10623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) | |
10624 | return NULL; | |
10625 | if (_argo0) { | |
10626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); | |
10629 | return NULL; | |
10630 | } | |
10631 | } | |
10632 | { | |
10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10634 | _result = (int )wxSlider_GetPageSize(_arg0); | |
10635 | ||
10636 | wxPyEndAllowThreads(__tstate); | |
10637 | if (PyErr_Occurred()) return NULL; | |
10638 | } _resultobj = Py_BuildValue("i",_result); | |
10639 | return _resultobj; | |
10640 | } | |
10641 | ||
10642 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
10643 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject * _resultobj; | |
10645 | int _result; | |
10646 | wxSlider * _arg0; | |
10647 | PyObject * _argo0 = 0; | |
10648 | char *_kwnames[] = { "self", NULL }; | |
10649 | ||
10650 | self = self; | |
10651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) | |
10652 | return NULL; | |
10653 | if (_argo0) { | |
10654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); | |
10657 | return NULL; | |
10658 | } | |
10659 | } | |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | _result = (int )wxSlider_GetSelEnd(_arg0); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) return NULL; | |
10666 | } _resultobj = Py_BuildValue("i",_result); | |
10667 | return _resultobj; | |
10668 | } | |
10669 | ||
10670 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
10671 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10672 | PyObject * _resultobj; | |
10673 | int _result; | |
10674 | wxSlider * _arg0; | |
10675 | PyObject * _argo0 = 0; | |
10676 | char *_kwnames[] = { "self", NULL }; | |
10677 | ||
10678 | self = self; | |
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) | |
10680 | return NULL; | |
10681 | if (_argo0) { | |
10682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); | |
10685 | return NULL; | |
10686 | } | |
10687 | } | |
10688 | { | |
10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10690 | _result = (int )wxSlider_GetSelStart(_arg0); | |
10691 | ||
10692 | wxPyEndAllowThreads(__tstate); | |
10693 | if (PyErr_Occurred()) return NULL; | |
10694 | } _resultobj = Py_BuildValue("i",_result); | |
10695 | return _resultobj; | |
10696 | } | |
10697 | ||
10698 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
10699 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject * _resultobj; | |
10701 | int _result; | |
10702 | wxSlider * _arg0; | |
10703 | PyObject * _argo0 = 0; | |
10704 | char *_kwnames[] = { "self", NULL }; | |
10705 | ||
10706 | self = self; | |
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) | |
10708 | return NULL; | |
10709 | if (_argo0) { | |
10710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); | |
10713 | return NULL; | |
10714 | } | |
10715 | } | |
10716 | { | |
10717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10718 | _result = (int )wxSlider_GetThumbLength(_arg0); | |
10719 | ||
10720 | wxPyEndAllowThreads(__tstate); | |
10721 | if (PyErr_Occurred()) return NULL; | |
10722 | } _resultobj = Py_BuildValue("i",_result); | |
10723 | return _resultobj; | |
10724 | } | |
10725 | ||
10726 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
10727 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10728 | PyObject * _resultobj; | |
10729 | int _result; | |
10730 | wxSlider * _arg0; | |
10731 | PyObject * _argo0 = 0; | |
10732 | char *_kwnames[] = { "self", NULL }; | |
10733 | ||
10734 | self = self; | |
10735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) | |
10736 | return NULL; | |
10737 | if (_argo0) { | |
10738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); | |
10741 | return NULL; | |
10742 | } | |
10743 | } | |
10744 | { | |
10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10746 | _result = (int )wxSlider_GetTickFreq(_arg0); | |
10747 | ||
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) return NULL; | |
10750 | } _resultobj = Py_BuildValue("i",_result); | |
10751 | return _resultobj; | |
10752 | } | |
10753 | ||
10754 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
10755 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10756 | PyObject * _resultobj; | |
10757 | int _result; | |
10758 | wxSlider * _arg0; | |
10759 | PyObject * _argo0 = 0; | |
10760 | char *_kwnames[] = { "self", NULL }; | |
10761 | ||
10762 | self = self; | |
10763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) | |
10764 | return NULL; | |
10765 | if (_argo0) { | |
10766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); | |
10769 | return NULL; | |
10770 | } | |
10771 | } | |
10772 | { | |
10773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10774 | _result = (int )wxSlider_GetValue(_arg0); | |
10775 | ||
10776 | wxPyEndAllowThreads(__tstate); | |
10777 | if (PyErr_Occurred()) return NULL; | |
10778 | } _resultobj = Py_BuildValue("i",_result); | |
10779 | return _resultobj; | |
10780 | } | |
10781 | ||
10782 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
10783 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10784 | PyObject * _resultobj; | |
10785 | wxSlider * _arg0; | |
10786 | int _arg1; | |
10787 | int _arg2; | |
10788 | PyObject * _argo0 = 0; | |
10789 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; | |
10790 | ||
10791 | self = self; | |
10792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10793 | return NULL; | |
10794 | if (_argo0) { | |
10795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); | |
10798 | return NULL; | |
10799 | } | |
10800 | } | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | wxSlider_SetRange(_arg0,_arg1,_arg2); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) return NULL; | |
10807 | } Py_INCREF(Py_None); | |
10808 | _resultobj = Py_None; | |
10809 | return _resultobj; | |
10810 | } | |
10811 | ||
10812 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
10813 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10814 | PyObject * _resultobj; | |
10815 | wxSlider * _arg0; | |
10816 | int _arg1; | |
10817 | int _arg2; | |
10818 | PyObject * _argo0 = 0; | |
10819 | char *_kwnames[] = { "self","n","pos", NULL }; | |
10820 | ||
10821 | self = self; | |
10822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10823 | return NULL; | |
10824 | if (_argo0) { | |
10825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); | |
10828 | return NULL; | |
10829 | } | |
10830 | } | |
10831 | { | |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) return NULL; | |
10837 | } Py_INCREF(Py_None); | |
10838 | _resultobj = Py_None; | |
10839 | return _resultobj; | |
10840 | } | |
10841 | ||
10842 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
10843 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10844 | PyObject * _resultobj; | |
10845 | wxSlider * _arg0; | |
10846 | int _arg1; | |
10847 | PyObject * _argo0 = 0; | |
10848 | char *_kwnames[] = { "self","lineSize", NULL }; | |
10849 | ||
10850 | self = self; | |
10851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) | |
10852 | return NULL; | |
10853 | if (_argo0) { | |
10854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); | |
10857 | return NULL; | |
10858 | } | |
10859 | } | |
10860 | { | |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | wxSlider_SetLineSize(_arg0,_arg1); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) return NULL; | |
10866 | } Py_INCREF(Py_None); | |
10867 | _resultobj = Py_None; | |
10868 | return _resultobj; | |
10869 | } | |
10870 | ||
10871 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
10872 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10873 | PyObject * _resultobj; | |
10874 | wxSlider * _arg0; | |
10875 | int _arg1; | |
10876 | PyObject * _argo0 = 0; | |
10877 | char *_kwnames[] = { "self","pageSize", NULL }; | |
10878 | ||
10879 | self = self; | |
10880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) | |
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_SetPageSize. Expected _wxSlider_p."); | |
10886 | return NULL; | |
10887 | } | |
10888 | } | |
10889 | { | |
10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10891 | wxSlider_SetPageSize(_arg0,_arg1); | |
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_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
10901 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10902 | PyObject * _resultobj; | |
10903 | wxSlider * _arg0; | |
10904 | int _arg1; | |
10905 | int _arg2; | |
10906 | PyObject * _argo0 = 0; | |
10907 | char *_kwnames[] = { "self","startPos","endPos", NULL }; | |
10908 | ||
10909 | self = self; | |
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10911 | return NULL; | |
10912 | if (_argo0) { | |
10913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); | |
10916 | return NULL; | |
10917 | } | |
10918 | } | |
10919 | { | |
10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10921 | wxSlider_SetSelection(_arg0,_arg1,_arg2); | |
10922 | ||
10923 | wxPyEndAllowThreads(__tstate); | |
10924 | if (PyErr_Occurred()) return NULL; | |
10925 | } Py_INCREF(Py_None); | |
10926 | _resultobj = Py_None; | |
10927 | return _resultobj; | |
10928 | } | |
10929 | ||
10930 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
10931 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10932 | PyObject * _resultobj; | |
10933 | wxSlider * _arg0; | |
10934 | int _arg1; | |
10935 | PyObject * _argo0 = 0; | |
10936 | char *_kwnames[] = { "self","len", NULL }; | |
10937 | ||
10938 | self = self; | |
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) | |
10940 | return NULL; | |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); | |
10945 | return NULL; | |
10946 | } | |
10947 | } | |
10948 | { | |
10949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10950 | wxSlider_SetThumbLength(_arg0,_arg1); | |
10951 | ||
10952 | wxPyEndAllowThreads(__tstate); | |
10953 | if (PyErr_Occurred()) return NULL; | |
10954 | } Py_INCREF(Py_None); | |
10955 | _resultobj = Py_None; | |
10956 | return _resultobj; | |
10957 | } | |
10958 | ||
10959 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
10960 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10961 | PyObject * _resultobj; | |
10962 | wxSlider * _arg0; | |
10963 | int _arg1; | |
10964 | PyObject * _argo0 = 0; | |
10965 | char *_kwnames[] = { "self","tickPos", NULL }; | |
10966 | ||
10967 | self = self; | |
10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) | |
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_SetTick. Expected _wxSlider_p."); | |
10974 | return NULL; | |
10975 | } | |
10976 | } | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | wxSlider_SetTick(_arg0,_arg1); | |
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_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
10989 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject * _resultobj; | |
10991 | wxSlider * _arg0; | |
10992 | int _arg1; | |
10993 | PyObject * _argo0 = 0; | |
10994 | char *_kwnames[] = { "self","value", NULL }; | |
10995 | ||
10996 | self = self; | |
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_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_SetValue. Expected _wxSlider_p."); | |
11003 | return NULL; | |
11004 | } | |
11005 | } | |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11008 | wxSlider_SetValue(_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 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { | |
11018 | wxSpinCtrl *src; | |
11019 | wxSpinButton *dest; | |
11020 | src = (wxSpinCtrl *) ptr; | |
11021 | dest = (wxSpinButton *) src; | |
11022 | return (void *) dest; | |
11023 | } | |
11024 | ||
11025 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
11026 | wxSpinCtrl *src; | |
11027 | wxControl *dest; | |
11028 | src = (wxSpinCtrl *) ptr; | |
11029 | dest = (wxControl *) src; | |
11030 | return (void *) dest; | |
11031 | } | |
11032 | ||
11033 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
11034 | wxSpinCtrl *src; | |
11035 | wxWindow *dest; | |
11036 | src = (wxSpinCtrl *) ptr; | |
11037 | dest = (wxWindow *) src; | |
11038 | return (void *) dest; | |
11039 | } | |
11040 | ||
11041 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
11042 | wxSpinCtrl *src; | |
11043 | wxEvtHandler *dest; | |
11044 | src = (wxSpinCtrl *) ptr; | |
11045 | dest = (wxEvtHandler *) src; | |
11046 | return (void *) dest; | |
11047 | } | |
11048 | ||
11049 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { | |
11050 | wxSpinCtrl *src; | |
11051 | wxObject *dest; | |
11052 | src = (wxSpinCtrl *) ptr; | |
11053 | dest = (wxObject *) src; | |
11054 | return (void *) dest; | |
11055 | } | |
11056 | ||
11057 | #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)) | |
11058 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11059 | PyObject * _resultobj; | |
11060 | wxSpinCtrl * _result; | |
11061 | wxWindow * _arg0; | |
11062 | wxWindowID _arg1 = (wxWindowID ) -1; | |
11063 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11064 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11065 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11066 | long _arg5 = (long ) wxSP_ARROW_KEYS; | |
11067 | int _arg6 = (int ) 0; | |
11068 | int _arg7 = (int ) 100; | |
11069 | int _arg8 = (int ) 0; | |
11070 | wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr; | |
11071 | PyObject * _argo0 = 0; | |
11072 | PyObject * _obj2 = 0; | |
11073 | wxPoint temp; | |
11074 | PyObject * _obj3 = 0; | |
11075 | wxSize temp0; | |
11076 | PyObject * _obj4 = 0; | |
11077 | PyObject * _obj9 = 0; | |
11078 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
11079 | char _ptemp[128]; | |
11080 | ||
11081 | self = self; | |
11082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9)) | |
11083 | return NULL; | |
11084 | if (_argo0) { | |
11085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
11088 | return NULL; | |
11089 | } | |
11090 | } | |
11091 | if (_obj2) | |
11092 | { | |
11093 | _arg2 = wxString_in_helper(_obj2); | |
11094 | if (_arg2 == NULL) | |
11095 | return NULL; | |
11096 | } | |
11097 | if (_obj3) | |
11098 | { | |
11099 | _arg3 = &temp; | |
11100 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11101 | return NULL; | |
11102 | } | |
11103 | if (_obj4) | |
11104 | { | |
11105 | _arg4 = &temp0; | |
11106 | if (! wxSize_helper(_obj4, &_arg4)) | |
11107 | return NULL; | |
11108 | } | |
11109 | if (_obj9) | |
11110 | { | |
11111 | _arg9 = wxString_in_helper(_obj9); | |
11112 | if (_arg9 == NULL) | |
11113 | return NULL; | |
11114 | } | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) return NULL; | |
11121 | } if (_result) { | |
11122 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11123 | _resultobj = Py_BuildValue("s",_ptemp); | |
11124 | } else { | |
11125 | Py_INCREF(Py_None); | |
11126 | _resultobj = Py_None; | |
11127 | } | |
11128 | { | |
11129 | if (_obj2) | |
11130 | delete _arg2; | |
11131 | } | |
11132 | { | |
11133 | if (_obj9) | |
11134 | delete _arg9; | |
11135 | } | |
11136 | return _resultobj; | |
11137 | } | |
11138 | ||
11139 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) | |
11140 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11141 | PyObject * _resultobj; | |
11142 | wxSpinCtrl * _result; | |
11143 | char *_kwnames[] = { NULL }; | |
11144 | char _ptemp[128]; | |
11145 | ||
11146 | self = self; | |
11147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
11148 | return NULL; | |
11149 | { | |
11150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11151 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); | |
11152 | ||
11153 | wxPyEndAllowThreads(__tstate); | |
11154 | if (PyErr_Occurred()) return NULL; | |
11155 | } if (_result) { | |
11156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11157 | _resultobj = Py_BuildValue("s",_ptemp); | |
11158 | } else { | |
11159 | Py_INCREF(Py_None); | |
11160 | _resultobj = Py_None; | |
11161 | } | |
11162 | return _resultobj; | |
11163 | } | |
11164 | ||
11165 | #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)) | |
11166 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11167 | PyObject * _resultobj; | |
11168 | bool _result; | |
11169 | wxSpinCtrl * _arg0; | |
11170 | wxWindow * _arg1; | |
11171 | wxWindowID _arg2 = (wxWindowID ) -1; | |
11172 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
11173 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11174 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11175 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
11176 | int _arg7 = (int ) 0; | |
11177 | int _arg8 = (int ) 100; | |
11178 | int _arg9 = (int ) 0; | |
11179 | wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr; | |
11180 | PyObject * _argo0 = 0; | |
11181 | PyObject * _argo1 = 0; | |
11182 | PyObject * _obj3 = 0; | |
11183 | wxPoint temp; | |
11184 | PyObject * _obj4 = 0; | |
11185 | wxSize temp0; | |
11186 | PyObject * _obj5 = 0; | |
11187 | PyObject * _obj10 = 0; | |
11188 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; | |
11189 | ||
11190 | self = self; | |
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10)) | |
11192 | return NULL; | |
11193 | if (_argo0) { | |
11194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
11197 | return NULL; | |
11198 | } | |
11199 | } | |
11200 | if (_argo1) { | |
11201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
11204 | return NULL; | |
11205 | } | |
11206 | } | |
11207 | if (_obj3) | |
11208 | { | |
11209 | _arg3 = wxString_in_helper(_obj3); | |
11210 | if (_arg3 == NULL) | |
11211 | return NULL; | |
11212 | } | |
11213 | if (_obj4) | |
11214 | { | |
11215 | _arg4 = &temp; | |
11216 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11217 | return NULL; | |
11218 | } | |
11219 | if (_obj5) | |
11220 | { | |
11221 | _arg5 = &temp0; | |
11222 | if (! wxSize_helper(_obj5, &_arg5)) | |
11223 | return NULL; | |
11224 | } | |
11225 | if (_obj10) | |
11226 | { | |
11227 | _arg10 = wxString_in_helper(_obj10); | |
11228 | if (_arg10 == NULL) | |
11229 | return NULL; | |
11230 | } | |
11231 | { | |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10); | |
11234 | ||
11235 | wxPyEndAllowThreads(__tstate); | |
11236 | if (PyErr_Occurred()) return NULL; | |
11237 | } _resultobj = Py_BuildValue("i",_result); | |
11238 | { | |
11239 | if (_obj3) | |
11240 | delete _arg3; | |
11241 | } | |
11242 | { | |
11243 | if (_obj10) | |
11244 | delete _arg10; | |
11245 | } | |
11246 | return _resultobj; | |
11247 | } | |
11248 | ||
11249 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) | |
11250 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11251 | PyObject * _resultobj; | |
11252 | int _result; | |
11253 | wxSpinCtrl * _arg0; | |
11254 | PyObject * _argo0 = 0; | |
11255 | char *_kwnames[] = { "self", NULL }; | |
11256 | ||
11257 | self = self; | |
11258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
11259 | return NULL; | |
11260 | if (_argo0) { | |
11261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
11264 | return NULL; | |
11265 | } | |
11266 | } | |
11267 | { | |
11268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11269 | _result = (int )wxSpinCtrl_GetMax(_arg0); | |
11270 | ||
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) return NULL; | |
11273 | } _resultobj = Py_BuildValue("i",_result); | |
11274 | return _resultobj; | |
11275 | } | |
11276 | ||
11277 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
11278 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject * _resultobj; | |
11280 | int _result; | |
11281 | wxSpinCtrl * _arg0; | |
11282 | PyObject * _argo0 = 0; | |
11283 | char *_kwnames[] = { "self", NULL }; | |
11284 | ||
11285 | self = self; | |
11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
11287 | return NULL; | |
11288 | if (_argo0) { | |
11289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
11292 | return NULL; | |
11293 | } | |
11294 | } | |
11295 | { | |
11296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11297 | _result = (int )wxSpinCtrl_GetMin(_arg0); | |
11298 | ||
11299 | wxPyEndAllowThreads(__tstate); | |
11300 | if (PyErr_Occurred()) return NULL; | |
11301 | } _resultobj = Py_BuildValue("i",_result); | |
11302 | return _resultobj; | |
11303 | } | |
11304 | ||
11305 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
11306 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11307 | PyObject * _resultobj; | |
11308 | int _result; | |
11309 | wxSpinCtrl * _arg0; | |
11310 | PyObject * _argo0 = 0; | |
11311 | char *_kwnames[] = { "self", NULL }; | |
11312 | ||
11313 | self = self; | |
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
11315 | return NULL; | |
11316 | if (_argo0) { | |
11317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
11320 | return NULL; | |
11321 | } | |
11322 | } | |
11323 | { | |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | _result = (int )wxSpinCtrl_GetValue(_arg0); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) return NULL; | |
11329 | } _resultobj = Py_BuildValue("i",_result); | |
11330 | return _resultobj; | |
11331 | } | |
11332 | ||
11333 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
11334 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11335 | PyObject * _resultobj; | |
11336 | wxSpinCtrl * _arg0; | |
11337 | int _arg1; | |
11338 | int _arg2; | |
11339 | PyObject * _argo0 = 0; | |
11340 | char *_kwnames[] = { "self","min","max", NULL }; | |
11341 | ||
11342 | self = self; | |
11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11344 | return NULL; | |
11345 | if (_argo0) { | |
11346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
11349 | return NULL; | |
11350 | } | |
11351 | } | |
11352 | { | |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11354 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); | |
11355 | ||
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) return NULL; | |
11358 | } Py_INCREF(Py_None); | |
11359 | _resultobj = Py_None; | |
11360 | return _resultobj; | |
11361 | } | |
11362 | ||
11363 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11364 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11365 | PyObject * _resultobj; | |
11366 | wxSpinCtrl * _arg0; | |
11367 | int _arg1; | |
11368 | PyObject * _argo0 = 0; | |
11369 | char *_kwnames[] = { "self","value", NULL }; | |
11370 | ||
11371 | self = self; | |
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
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_SetValue. Expected _wxSpinCtrl_p."); | |
11378 | return NULL; | |
11379 | } | |
11380 | } | |
11381 | { | |
11382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11383 | wxSpinCtrl_SetValue(_arg0,_arg1); | |
11384 | ||
11385 | wxPyEndAllowThreads(__tstate); | |
11386 | if (PyErr_Occurred()) return NULL; | |
11387 | } Py_INCREF(Py_None); | |
11388 | _resultobj = Py_None; | |
11389 | return _resultobj; | |
11390 | } | |
11391 | ||
11392 | static void *SwigwxToggleButtonTowxControl(void *ptr) { | |
11393 | wxToggleButton *src; | |
11394 | wxControl *dest; | |
11395 | src = (wxToggleButton *) ptr; | |
11396 | dest = (wxControl *) src; | |
11397 | return (void *) dest; | |
11398 | } | |
11399 | ||
11400 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
11401 | wxToggleButton *src; | |
11402 | wxWindow *dest; | |
11403 | src = (wxToggleButton *) ptr; | |
11404 | dest = (wxWindow *) src; | |
11405 | return (void *) dest; | |
11406 | } | |
11407 | ||
11408 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
11409 | wxToggleButton *src; | |
11410 | wxEvtHandler *dest; | |
11411 | src = (wxToggleButton *) ptr; | |
11412 | dest = (wxEvtHandler *) src; | |
11413 | return (void *) dest; | |
11414 | } | |
11415 | ||
11416 | static void *SwigwxToggleButtonTowxObject(void *ptr) { | |
11417 | wxToggleButton *src; | |
11418 | wxObject *dest; | |
11419 | src = (wxToggleButton *) ptr; | |
11420 | dest = (wxObject *) src; | |
11421 | return (void *) dest; | |
11422 | } | |
11423 | ||
11424 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11425 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11426 | PyObject * _resultobj; | |
11427 | wxToggleButton * _result; | |
11428 | wxWindow * _arg0; | |
11429 | wxWindowID _arg1; | |
11430 | wxString * _arg2; | |
11431 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11432 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11433 | long _arg5 = (long ) 0; | |
11434 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
11435 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; | |
11436 | PyObject * _argo0 = 0; | |
11437 | PyObject * _obj2 = 0; | |
11438 | wxPoint temp; | |
11439 | PyObject * _obj3 = 0; | |
11440 | wxSize temp0; | |
11441 | PyObject * _obj4 = 0; | |
11442 | PyObject * _argo6 = 0; | |
11443 | PyObject * _obj7 = 0; | |
11444 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; | |
11445 | char _ptemp[128]; | |
11446 | ||
11447 | self = self; | |
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
11449 | return NULL; | |
11450 | if (_argo0) { | |
11451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
11454 | return NULL; | |
11455 | } | |
11456 | } | |
11457 | { | |
11458 | _arg2 = wxString_in_helper(_obj2); | |
11459 | if (_arg2 == NULL) | |
11460 | return NULL; | |
11461 | } | |
11462 | if (_obj3) | |
11463 | { | |
11464 | _arg3 = &temp; | |
11465 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11466 | return NULL; | |
11467 | } | |
11468 | if (_obj4) | |
11469 | { | |
11470 | _arg4 = &temp0; | |
11471 | if (! wxSize_helper(_obj4, &_arg4)) | |
11472 | return NULL; | |
11473 | } | |
11474 | if (_argo6) { | |
11475 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
11476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
11477 | return NULL; | |
11478 | } | |
11479 | } | |
11480 | if (_obj7) | |
11481 | { | |
11482 | _arg7 = wxString_in_helper(_obj7); | |
11483 | if (_arg7 == NULL) | |
11484 | return NULL; | |
11485 | } | |
11486 | { | |
11487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11488 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
11489 | ||
11490 | wxPyEndAllowThreads(__tstate); | |
11491 | if (PyErr_Occurred()) return NULL; | |
11492 | } if (_result) { | |
11493 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11494 | _resultobj = Py_BuildValue("s",_ptemp); | |
11495 | } else { | |
11496 | Py_INCREF(Py_None); | |
11497 | _resultobj = Py_None; | |
11498 | } | |
11499 | { | |
11500 | if (_obj2) | |
11501 | delete _arg2; | |
11502 | } | |
11503 | { | |
11504 | if (_obj7) | |
11505 | delete _arg7; | |
11506 | } | |
11507 | return _resultobj; | |
11508 | } | |
11509 | ||
11510 | #define new_wxPreToggleButton() (new wxToggleButton()) | |
11511 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11512 | PyObject * _resultobj; | |
11513 | wxToggleButton * _result; | |
11514 | char *_kwnames[] = { NULL }; | |
11515 | char _ptemp[128]; | |
11516 | ||
11517 | self = self; | |
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
11519 | return NULL; | |
11520 | { | |
11521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11522 | _result = (wxToggleButton *)new_wxPreToggleButton(); | |
11523 | ||
11524 | wxPyEndAllowThreads(__tstate); | |
11525 | if (PyErr_Occurred()) return NULL; | |
11526 | } if (_result) { | |
11527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11528 | _resultobj = Py_BuildValue("s",_ptemp); | |
11529 | } else { | |
11530 | Py_INCREF(Py_None); | |
11531 | _resultobj = Py_None; | |
11532 | } | |
11533 | return _resultobj; | |
11534 | } | |
11535 | ||
11536 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11537 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11538 | PyObject * _resultobj; | |
11539 | bool _result; | |
11540 | wxToggleButton * _arg0; | |
11541 | wxWindow * _arg1; | |
11542 | wxWindowID _arg2; | |
11543 | wxString * _arg3; | |
11544 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11545 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11546 | long _arg6 = (long ) 0; | |
11547 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
11548 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; | |
11549 | PyObject * _argo0 = 0; | |
11550 | PyObject * _argo1 = 0; | |
11551 | PyObject * _obj3 = 0; | |
11552 | wxPoint temp; | |
11553 | PyObject * _obj4 = 0; | |
11554 | wxSize temp0; | |
11555 | PyObject * _obj5 = 0; | |
11556 | PyObject * _argo7 = 0; | |
11557 | PyObject * _obj8 = 0; | |
11558 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; | |
11559 | ||
11560 | self = self; | |
11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) | |
11562 | return NULL; | |
11563 | if (_argo0) { | |
11564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
11567 | return NULL; | |
11568 | } | |
11569 | } | |
11570 | if (_argo1) { | |
11571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11574 | return NULL; | |
11575 | } | |
11576 | } | |
11577 | { | |
11578 | _arg3 = wxString_in_helper(_obj3); | |
11579 | if (_arg3 == NULL) | |
11580 | return NULL; | |
11581 | } | |
11582 | if (_obj4) | |
11583 | { | |
11584 | _arg4 = &temp; | |
11585 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11586 | return NULL; | |
11587 | } | |
11588 | if (_obj5) | |
11589 | { | |
11590 | _arg5 = &temp0; | |
11591 | if (! wxSize_helper(_obj5, &_arg5)) | |
11592 | return NULL; | |
11593 | } | |
11594 | if (_argo7) { | |
11595 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11597 | return NULL; | |
11598 | } | |
11599 | } | |
11600 | if (_obj8) | |
11601 | { | |
11602 | _arg8 = wxString_in_helper(_obj8); | |
11603 | if (_arg8 == NULL) | |
11604 | return NULL; | |
11605 | } | |
11606 | { | |
11607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11608 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); | |
11609 | ||
11610 | wxPyEndAllowThreads(__tstate); | |
11611 | if (PyErr_Occurred()) return NULL; | |
11612 | } _resultobj = Py_BuildValue("i",_result); | |
11613 | { | |
11614 | if (_obj3) | |
11615 | delete _arg3; | |
11616 | } | |
11617 | { | |
11618 | if (_obj8) | |
11619 | delete _arg8; | |
11620 | } | |
11621 | return _resultobj; | |
11622 | } | |
11623 | ||
11624 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11625 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject * _resultobj; | |
11627 | wxToggleButton * _arg0; | |
11628 | bool _arg1; | |
11629 | PyObject * _argo0 = 0; | |
11630 | int tempbool1; | |
11631 | char *_kwnames[] = { "self","value", NULL }; | |
11632 | ||
11633 | self = self; | |
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11635 | return NULL; | |
11636 | if (_argo0) { | |
11637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11640 | return NULL; | |
11641 | } | |
11642 | } | |
11643 | _arg1 = (bool ) tempbool1; | |
11644 | { | |
11645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11646 | wxToggleButton_SetValue(_arg0,_arg1); | |
11647 | ||
11648 | wxPyEndAllowThreads(__tstate); | |
11649 | if (PyErr_Occurred()) return NULL; | |
11650 | } Py_INCREF(Py_None); | |
11651 | _resultobj = Py_None; | |
11652 | return _resultobj; | |
11653 | } | |
11654 | ||
11655 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11656 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11657 | PyObject * _resultobj; | |
11658 | bool _result; | |
11659 | wxToggleButton * _arg0; | |
11660 | PyObject * _argo0 = 0; | |
11661 | char *_kwnames[] = { "self", NULL }; | |
11662 | ||
11663 | self = self; | |
11664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11665 | return NULL; | |
11666 | if (_argo0) { | |
11667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11670 | return NULL; | |
11671 | } | |
11672 | } | |
11673 | { | |
11674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11675 | _result = (bool )wxToggleButton_GetValue(_arg0); | |
11676 | ||
11677 | wxPyEndAllowThreads(__tstate); | |
11678 | if (PyErr_Occurred()) return NULL; | |
11679 | } _resultobj = Py_BuildValue("i",_result); | |
11680 | return _resultobj; | |
11681 | } | |
11682 | ||
11683 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11684 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11685 | PyObject * _resultobj; | |
11686 | wxToggleButton * _arg0; | |
11687 | wxString * _arg1; | |
11688 | PyObject * _argo0 = 0; | |
11689 | PyObject * _obj1 = 0; | |
11690 | char *_kwnames[] = { "self","label", NULL }; | |
11691 | ||
11692 | self = self; | |
11693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11694 | return NULL; | |
11695 | if (_argo0) { | |
11696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11699 | return NULL; | |
11700 | } | |
11701 | } | |
11702 | { | |
11703 | _arg1 = wxString_in_helper(_obj1); | |
11704 | if (_arg1 == NULL) | |
11705 | return NULL; | |
11706 | } | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | wxToggleButton_SetLabel(_arg0,*_arg1); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) return NULL; | |
11713 | } Py_INCREF(Py_None); | |
11714 | _resultobj = Py_None; | |
11715 | { | |
11716 | if (_obj1) | |
11717 | delete _arg1; | |
11718 | } | |
11719 | return _resultobj; | |
11720 | } | |
11721 | ||
11722 | static PyMethodDef controlscMethods[] = { | |
11723 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11731 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11732 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11737 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11739 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11740 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11741 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11742 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11743 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11744 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11745 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11746 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11749 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11750 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11753 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11754 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11755 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, | |
11759 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11760 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
11764 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11765 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11766 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11769 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11770 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11771 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11772 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11773 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11774 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11775 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11776 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11777 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11778 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
11779 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11781 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11782 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
11783 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11786 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11787 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11788 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11791 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11792 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
11793 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11794 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11801 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
11804 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11805 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
11806 | { "wxTextCtrl_IsMultiLine", (PyCFunction) _wrap_wxTextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
11807 | { "wxTextCtrl_IsSingleLine", (PyCFunction) _wrap_wxTextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
11808 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11809 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11810 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11811 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11812 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
11819 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
11820 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11821 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
11822 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11823 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11825 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11826 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11830 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11831 | { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
11832 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
11833 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
11836 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
11837 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11842 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11843 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
11845 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
11846 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
11848 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11849 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11850 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11851 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11852 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11854 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
11855 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11858 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11859 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11860 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11862 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11863 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11864 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11865 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11866 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11867 | { "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
11868 | { "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
11869 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
11870 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11871 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
11872 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11873 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11874 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11875 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
11876 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11877 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11878 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11879 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11880 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11881 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11882 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
11883 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11884 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
11885 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
11886 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
11887 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11888 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11889 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
11890 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11893 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
11894 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11900 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11921 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11923 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
11924 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11925 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11926 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11927 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11928 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11929 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11930 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
11932 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11933 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11934 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11935 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11936 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11937 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11938 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11939 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11944 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
11945 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11946 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, | |
11947 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11950 | { "wxCheckBox_IsChecked", (PyCFunction) _wrap_wxCheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11952 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
11953 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
11955 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
11956 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
11958 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11959 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11960 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11961 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11962 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11963 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11964 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11965 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
11966 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11967 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11968 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
11969 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
11970 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11971 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11972 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
11973 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
11974 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
11975 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, | |
11976 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
11977 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11978 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11979 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11980 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11981 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11982 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11983 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11984 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11985 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11986 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11987 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11988 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11989 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11990 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, | |
11991 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11992 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
11993 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, | |
11994 | { NULL, NULL } | |
11995 | }; | |
11996 | #ifdef __cplusplus | |
11997 | } | |
11998 | #endif | |
11999 | /* | |
12000 | * This table is used by the pointer type-checker | |
12001 | */ | |
12002 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
12003 | { "_signed_long","_long",0}, | |
12004 | { "_wxPrintQuality","_wxCoord",0}, | |
12005 | { "_wxPrintQuality","_int",0}, | |
12006 | { "_wxPrintQuality","_signed_int",0}, | |
12007 | { "_wxPrintQuality","_unsigned_int",0}, | |
12008 | { "_wxPrintQuality","_wxWindowID",0}, | |
12009 | { "_wxPrintQuality","_uint",0}, | |
12010 | { "_wxPrintQuality","_EBool",0}, | |
12011 | { "_wxPrintQuality","_size_t",0}, | |
12012 | { "_wxPrintQuality","_time_t",0}, | |
12013 | { "_byte","_unsigned_char",0}, | |
12014 | { "_long","_unsigned_long",0}, | |
12015 | { "_long","_signed_long",0}, | |
12016 | { "_size_t","_wxCoord",0}, | |
12017 | { "_size_t","_wxPrintQuality",0}, | |
12018 | { "_size_t","_time_t",0}, | |
12019 | { "_size_t","_unsigned_int",0}, | |
12020 | { "_size_t","_int",0}, | |
12021 | { "_size_t","_wxWindowID",0}, | |
12022 | { "_size_t","_uint",0}, | |
12023 | { "_uint","_wxCoord",0}, | |
12024 | { "_uint","_wxPrintQuality",0}, | |
12025 | { "_uint","_time_t",0}, | |
12026 | { "_uint","_size_t",0}, | |
12027 | { "_uint","_unsigned_int",0}, | |
12028 | { "_uint","_int",0}, | |
12029 | { "_uint","_wxWindowID",0}, | |
12030 | { "_wxChar","_char",0}, | |
12031 | { "_char","_wxChar",0}, | |
12032 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, | |
12033 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
12034 | { "_EBool","_wxCoord",0}, | |
12035 | { "_EBool","_wxPrintQuality",0}, | |
12036 | { "_EBool","_signed_int",0}, | |
12037 | { "_EBool","_int",0}, | |
12038 | { "_EBool","_wxWindowID",0}, | |
12039 | { "_unsigned_long","_long",0}, | |
12040 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
12041 | { "_signed_int","_wxCoord",0}, | |
12042 | { "_signed_int","_wxPrintQuality",0}, | |
12043 | { "_signed_int","_EBool",0}, | |
12044 | { "_signed_int","_wxWindowID",0}, | |
12045 | { "_signed_int","_int",0}, | |
12046 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, | |
12047 | { "_WXTYPE","_short",0}, | |
12048 | { "_WXTYPE","_signed_short",0}, | |
12049 | { "_WXTYPE","_unsigned_short",0}, | |
12050 | { "_unsigned_short","_WXTYPE",0}, | |
12051 | { "_unsigned_short","_short",0}, | |
12052 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, | |
12053 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, | |
12054 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, | |
12055 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, | |
12056 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, | |
12057 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, | |
12058 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, | |
12059 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, | |
12060 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, | |
12061 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, | |
12062 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, | |
12063 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, | |
12064 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, | |
12065 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, | |
12066 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, | |
12067 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, | |
12068 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, | |
12069 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, | |
12070 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, | |
12071 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, | |
12072 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, | |
12073 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, | |
12074 | { "_signed_short","_WXTYPE",0}, | |
12075 | { "_signed_short","_short",0}, | |
12076 | { "_unsigned_char","_byte",0}, | |
12077 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, | |
12078 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, | |
12079 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, | |
12080 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, | |
12081 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, | |
12082 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, | |
12083 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, | |
12084 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, | |
12085 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, | |
12086 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, | |
12087 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, | |
12088 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, | |
12089 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, | |
12090 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, | |
12091 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, | |
12092 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, | |
12093 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, | |
12094 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, | |
12095 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, | |
12096 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, | |
12097 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, | |
12098 | { "_unsigned_int","_wxCoord",0}, | |
12099 | { "_unsigned_int","_wxPrintQuality",0}, | |
12100 | { "_unsigned_int","_time_t",0}, | |
12101 | { "_unsigned_int","_size_t",0}, | |
12102 | { "_unsigned_int","_uint",0}, | |
12103 | { "_unsigned_int","_wxWindowID",0}, | |
12104 | { "_unsigned_int","_int",0}, | |
12105 | { "_short","_WXTYPE",0}, | |
12106 | { "_short","_unsigned_short",0}, | |
12107 | { "_short","_signed_short",0}, | |
12108 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, | |
12109 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, | |
12110 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, | |
12111 | { "_wxWindowID","_wxCoord",0}, | |
12112 | { "_wxWindowID","_wxPrintQuality",0}, | |
12113 | { "_wxWindowID","_time_t",0}, | |
12114 | { "_wxWindowID","_size_t",0}, | |
12115 | { "_wxWindowID","_EBool",0}, | |
12116 | { "_wxWindowID","_uint",0}, | |
12117 | { "_wxWindowID","_int",0}, | |
12118 | { "_wxWindowID","_signed_int",0}, | |
12119 | { "_wxWindowID","_unsigned_int",0}, | |
12120 | { "_int","_wxCoord",0}, | |
12121 | { "_int","_wxPrintQuality",0}, | |
12122 | { "_int","_time_t",0}, | |
12123 | { "_int","_size_t",0}, | |
12124 | { "_int","_EBool",0}, | |
12125 | { "_int","_uint",0}, | |
12126 | { "_int","_wxWindowID",0}, | |
12127 | { "_int","_unsigned_int",0}, | |
12128 | { "_int","_signed_int",0}, | |
12129 | { "_time_t","_wxCoord",0}, | |
12130 | { "_time_t","_wxPrintQuality",0}, | |
12131 | { "_time_t","_unsigned_int",0}, | |
12132 | { "_time_t","_int",0}, | |
12133 | { "_time_t","_wxWindowID",0}, | |
12134 | { "_time_t","_uint",0}, | |
12135 | { "_time_t","_size_t",0}, | |
12136 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, | |
12137 | { "_wxCoord","_int",0}, | |
12138 | { "_wxCoord","_signed_int",0}, | |
12139 | { "_wxCoord","_unsigned_int",0}, | |
12140 | { "_wxCoord","_wxWindowID",0}, | |
12141 | { "_wxCoord","_uint",0}, | |
12142 | { "_wxCoord","_EBool",0}, | |
12143 | { "_wxCoord","_size_t",0}, | |
12144 | { "_wxCoord","_time_t",0}, | |
12145 | { "_wxCoord","_wxPrintQuality",0}, | |
12146 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, | |
12147 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, | |
12148 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, | |
12149 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, | |
12150 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, | |
12151 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, | |
12152 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, | |
12153 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, | |
12154 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, | |
12155 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, | |
12156 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, | |
12157 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, | |
12158 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, | |
12159 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, | |
12160 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, | |
12161 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, | |
12162 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, | |
12163 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, | |
12164 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, | |
12165 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, | |
12166 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, | |
12167 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, | |
12168 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, | |
12169 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, | |
12170 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, | |
12171 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, | |
12172 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, | |
12173 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, | |
12174 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, | |
12175 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, | |
12176 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, | |
12177 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, | |
12178 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, | |
12179 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, | |
12180 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, | |
12181 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, | |
12182 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, | |
12183 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, | |
12184 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, | |
12185 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, | |
12186 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, | |
12187 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, | |
12188 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, | |
12189 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, | |
12190 | {0,0,0}}; | |
12191 | ||
12192 | static PyObject *SWIG_globals; | |
12193 | #ifdef __cplusplus | |
12194 | extern "C" | |
12195 | #endif | |
12196 | SWIGEXPORT(void) initcontrolsc() { | |
12197 | PyObject *m, *d; | |
12198 | SWIG_globals = SWIG_newvarlink(); | |
12199 | m = Py_InitModule("controlsc", controlscMethods); | |
12200 | d = PyModule_GetDict(m); | |
12201 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
12202 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
12203 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
12204 | { | |
12205 | int i; | |
12206 | for (i = 0; _swig_mapping[i].n1; i++) | |
12207 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12208 | } | |
12209 | } |