]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/controls.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initcontrolsc |
55 | ||
56 | #define SWIG_name "controlsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/slider.h> | |
62bd0874 | 60 | #include <wx/spinbutt.h> |
f6bcfd97 | 61 | #include <wx/spinctrl.h> |
ab9bc19b | 62 | #include <wx/dynarray.h> |
8bf5d46e | 63 | #include <wx/statline.h> |
7a446686 | 64 | #include <wx/tglbtn.h> |
70551f47 RD |
65 | |
66 | #ifdef __WXMSW__ | |
b26e2dc4 RD |
67 | #if wxUSE_OWNER_DRAWN |
68 | #include <wx/checklst.h> | |
69 | #endif | |
70551f47 RD |
70 | #endif |
71 | ||
c95e68d8 RD |
72 | #ifdef __WXGTK__ |
73 | #include <wx/checklst.h> | |
74 | #endif | |
75 | ||
d24a34bb | 76 | |
70551f47 RD |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
3bcd5e1c | 81 | if (!target) { |
70551f47 | 82 | target = o; |
3bcd5e1c | 83 | } else if (target == Py_None) { |
70551f47 RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
3bcd5e1c | 86 | } else { |
70551f47 RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
3bcd5e1c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
94 | |
95 | o2 = target; | |
3bcd5e1c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
70551f47 RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
9a74fcaf RD |
102 | |
103 | //#define DECLARE_DEF_STRING(name) static wxString* wxPy##name | |
104 | ||
105 | // Put some wx default wxChar* values into wxStrings. | |
106 | DECLARE_DEF_STRING(ControlNameStr); | |
107 | DECLARE_DEF_STRING(ButtonNameStr); | |
108 | DECLARE_DEF_STRING(CheckBoxNameStr); | |
109 | DECLARE_DEF_STRING(ChoiceNameStr); | |
110 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
111 | DECLARE_DEF_STRING(GaugeNameStr); | |
112 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
113 | DECLARE_DEF_STRING(StaticTextNameStr); | |
114 | DECLARE_DEF_STRING(ListBoxNameStr); | |
115 | DECLARE_DEF_STRING(TextCtrlNameStr); | |
116 | DECLARE_DEF_STRING(ScrollBarNameStr); | |
117 | DECLARE_DEF_STRING(SPIN_BUTTON_NAME); | |
118 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
119 | DECLARE_DEF_STRING(RadioBoxNameStr); | |
120 | DECLARE_DEF_STRING(RadioButtonNameStr); | |
121 | DECLARE_DEF_STRING(SliderNameStr); | |
122 | ||
123 | wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl"); | |
124 | DECLARE_DEF_STRING(SpinCtrlNameStr); | |
125 | ||
126 | static const wxString wxPyEmptyString(wxT("")); | |
2d091820 RD |
127 | #ifdef __cplusplus |
128 | extern "C" { | |
129 | #endif | |
37f6a977 RD |
130 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
131 | ||
132 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
133 | return 1; | |
134 | } | |
135 | ||
136 | static PyObject *_wrap_wxDefaultValidator_get() { | |
137 | PyObject * pyobj; | |
138 | char ptemp[128]; | |
139 | ||
140 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
141 | pyobj = PyString_FromString(ptemp); | |
142 | return pyobj; | |
143 | } | |
144 | ||
70551f47 RD |
145 | static void *SwigwxControlTowxWindow(void *ptr) { |
146 | wxControl *src; | |
147 | wxWindow *dest; | |
148 | src = (wxControl *) ptr; | |
149 | dest = (wxWindow *) src; | |
150 | return (void *) dest; | |
151 | } | |
152 | ||
153 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
154 | wxControl *src; | |
155 | wxEvtHandler *dest; | |
156 | src = (wxControl *) ptr; | |
157 | dest = (wxEvtHandler *) src; | |
158 | return (void *) dest; | |
159 | } | |
160 | ||
9df61a29 RD |
161 | static void *SwigwxControlTowxObject(void *ptr) { |
162 | wxControl *src; | |
163 | wxObject *dest; | |
164 | src = (wxControl *) ptr; | |
165 | dest = (wxObject *) src; | |
166 | return (void *) dest; | |
167 | } | |
168 | ||
ab2208b5 | 169 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
56f5d962 RD |
170 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
171 | PyObject * _resultobj; | |
172 | wxControl * _result; | |
ab2208b5 RD |
173 | wxWindow * _arg0; |
174 | wxWindowID _arg1; | |
b68dc582 RD |
175 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
176 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 177 | long _arg4 = (long ) 0; |
b68dc582 | 178 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 179 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; |
56f5d962 | 180 | PyObject * _argo0 = 0; |
56f5d962 | 181 | wxPoint temp; |
ab2208b5 | 182 | PyObject * _obj2 = 0; |
56f5d962 | 183 | wxSize temp0; |
ab2208b5 RD |
184 | PyObject * _obj3 = 0; |
185 | PyObject * _argo5 = 0; | |
9a74fcaf | 186 | PyObject * _obj6 = 0; |
ab2208b5 RD |
187 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
188 | char _ptemp[128]; | |
56f5d962 RD |
189 | |
190 | self = self; | |
9a74fcaf | 191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
56f5d962 RD |
192 | return NULL; |
193 | if (_argo0) { | |
194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
56f5d962 RD |
197 | return NULL; |
198 | } | |
199 | } | |
ab2208b5 | 200 | if (_obj2) |
56f5d962 | 201 | { |
ab2208b5 RD |
202 | _arg2 = &temp; |
203 | if (! wxPoint_helper(_obj2, &_arg2)) | |
56f5d962 RD |
204 | return NULL; |
205 | } | |
ab2208b5 | 206 | if (_obj3) |
56f5d962 | 207 | { |
ab2208b5 RD |
208 | _arg3 = &temp0; |
209 | if (! wxSize_helper(_obj3, &_arg3)) | |
56f5d962 RD |
210 | return NULL; |
211 | } | |
ab2208b5 RD |
212 | if (_argo5) { |
213 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
214 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); | |
56f5d962 RD |
216 | return NULL; |
217 | } | |
218 | } | |
9a74fcaf RD |
219 | if (_obj6) |
220 | { | |
221 | _arg6 = wxString_in_helper(_obj6); | |
222 | if (_arg6 == NULL) | |
223 | return NULL; | |
224 | } | |
56f5d962 | 225 | { |
474c48f9 | 226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 227 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
56f5d962 | 228 | |
474c48f9 | 229 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 230 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
231 | } if (_result) { |
232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
233 | _resultobj = Py_BuildValue("s",_ptemp); | |
234 | } else { | |
235 | Py_INCREF(Py_None); | |
236 | _resultobj = Py_None; | |
237 | } | |
9a74fcaf RD |
238 | { |
239 | if (_obj6) | |
240 | delete _arg6; | |
241 | } | |
56f5d962 RD |
242 | return _resultobj; |
243 | } | |
244 | ||
aa2a5b86 RD |
245 | #define new_wxPreControl() (new wxControl()) |
246 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | wxControl * _result; | |
249 | char *_kwnames[] = { NULL }; | |
250 | char _ptemp[128]; | |
251 | ||
252 | self = self; | |
253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
254 | return NULL; | |
255 | { | |
474c48f9 | 256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 257 | _result = (wxControl *)new_wxPreControl(); |
aa2a5b86 | 258 | |
474c48f9 | 259 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
260 | if (PyErr_Occurred()) return NULL; |
261 | } if (_result) { | |
262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
263 | _resultobj = Py_BuildValue("s",_ptemp); | |
264 | } else { | |
265 | Py_INCREF(Py_None); | |
266 | _resultobj = Py_None; | |
267 | } | |
268 | return _resultobj; | |
269 | } | |
270 | ||
271 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
272 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
273 | PyObject * _resultobj; | |
274 | bool _result; | |
275 | wxControl * _arg0; | |
276 | wxWindow * _arg1; | |
277 | wxWindowID _arg2; | |
278 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
279 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
280 | long _arg5 = (long ) 0; | |
281 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 282 | wxString * _arg7 = (wxString *) &wxPyControlNameStr; |
aa2a5b86 RD |
283 | PyObject * _argo0 = 0; |
284 | PyObject * _argo1 = 0; | |
285 | wxPoint temp; | |
286 | PyObject * _obj3 = 0; | |
287 | wxSize temp0; | |
288 | PyObject * _obj4 = 0; | |
289 | PyObject * _argo6 = 0; | |
9a74fcaf | 290 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
291 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
292 | ||
293 | self = self; | |
9a74fcaf | 294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
295 | return NULL; |
296 | if (_argo0) { | |
297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
300 | return NULL; | |
301 | } | |
302 | } | |
303 | if (_argo1) { | |
304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
307 | return NULL; | |
308 | } | |
309 | } | |
310 | if (_obj3) | |
311 | { | |
312 | _arg3 = &temp; | |
313 | if (! wxPoint_helper(_obj3, &_arg3)) | |
314 | return NULL; | |
315 | } | |
316 | if (_obj4) | |
317 | { | |
318 | _arg4 = &temp0; | |
319 | if (! wxSize_helper(_obj4, &_arg4)) | |
320 | return NULL; | |
321 | } | |
322 | if (_argo6) { | |
323 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
324 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); | |
326 | return NULL; | |
327 | } | |
328 | } | |
9a74fcaf RD |
329 | if (_obj7) |
330 | { | |
331 | _arg7 = wxString_in_helper(_obj7); | |
332 | if (_arg7 == NULL) | |
333 | return NULL; | |
334 | } | |
aa2a5b86 | 335 | { |
474c48f9 | 336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 337 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 338 | |
474c48f9 | 339 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
340 | if (PyErr_Occurred()) return NULL; |
341 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
342 | { |
343 | if (_obj7) | |
344 | delete _arg7; | |
345 | } | |
aa2a5b86 RD |
346 | return _resultobj; |
347 | } | |
348 | ||
56f5d962 RD |
349 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
350 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
351 | PyObject * _resultobj; | |
352 | wxControl * _arg0; | |
353 | wxCommandEvent * _arg1; | |
354 | PyObject * _argo0 = 0; | |
355 | PyObject * _argo1 = 0; | |
356 | char *_kwnames[] = { "self","event", NULL }; | |
357 | ||
358 | self = self; | |
359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
360 | return NULL; | |
361 | if (_argo0) { | |
362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
365 | return NULL; | |
366 | } | |
367 | } | |
368 | if (_argo1) { | |
369 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
370 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { | |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); | |
372 | return NULL; | |
373 | } | |
374 | } | |
375 | { | |
474c48f9 | 376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 377 | wxControl_Command(_arg0,*_arg1); |
56f5d962 | 378 | |
474c48f9 | 379 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 380 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
381 | } Py_INCREF(Py_None); |
382 | _resultobj = Py_None; | |
383 | return _resultobj; | |
384 | } | |
385 | ||
70551f47 | 386 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 387 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
388 | PyObject * _resultobj; |
389 | wxString * _result; | |
390 | wxControl * _arg0; | |
2d091820 | 391 | PyObject * _argo0 = 0; |
107e4716 | 392 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
393 | |
394 | self = self; | |
107e4716 | 395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
70551f47 | 396 | return NULL; |
2d091820 RD |
397 | if (_argo0) { |
398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
401 | return NULL; | |
402 | } | |
403 | } | |
70551f47 | 404 | { |
474c48f9 | 405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 406 | _result = new wxString (wxControl_GetLabel(_arg0)); |
ab9bc19b | 407 | |
474c48f9 | 408 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 409 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 410 | }{ |
c8bc7bb8 RD |
411 | #if wxUSE_UNICODE |
412 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
413 | #else | |
e02c03a4 | 414 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 415 | #endif |
70551f47 RD |
416 | } |
417 | { | |
418 | delete _result; | |
419 | } | |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 424 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
425 | PyObject * _resultobj; |
426 | wxControl * _arg0; | |
427 | wxString * _arg1; | |
2d091820 | 428 | PyObject * _argo0 = 0; |
70551f47 | 429 | PyObject * _obj1 = 0; |
107e4716 | 430 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
431 | |
432 | self = self; | |
107e4716 | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 434 | return NULL; |
2d091820 RD |
435 | if (_argo0) { |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
c8bc7bb8 RD |
443 | _arg1 = wxString_in_helper(_obj1); |
444 | if (_arg1 == NULL) | |
70551f47 | 445 | return NULL; |
70551f47 | 446 | } |
ab9bc19b | 447 | { |
474c48f9 | 448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 449 | wxControl_SetLabel(_arg0,*_arg1); |
ab9bc19b | 450 | |
474c48f9 | 451 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 452 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 453 | } Py_INCREF(Py_None); |
70551f47 RD |
454 | _resultobj = Py_None; |
455 | { | |
456 | if (_obj1) | |
457 | delete _arg1; | |
458 | } | |
459 | return _resultobj; | |
460 | } | |
461 | ||
65191ae8 RD |
462 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { |
463 | wxControlWithItems *src; | |
464 | wxControl *dest; | |
465 | src = (wxControlWithItems *) ptr; | |
466 | dest = (wxControl *) src; | |
467 | return (void *) dest; | |
468 | } | |
469 | ||
470 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
471 | wxControlWithItems *src; | |
472 | wxWindow *dest; | |
473 | src = (wxControlWithItems *) ptr; | |
474 | dest = (wxWindow *) src; | |
475 | return (void *) dest; | |
476 | } | |
477 | ||
478 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
479 | wxControlWithItems *src; | |
480 | wxEvtHandler *dest; | |
481 | src = (wxControlWithItems *) ptr; | |
482 | dest = (wxEvtHandler *) src; | |
483 | return (void *) dest; | |
484 | } | |
485 | ||
486 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
487 | wxControlWithItems *src; | |
488 | wxObject *dest; | |
489 | src = (wxControlWithItems *) ptr; | |
490 | dest = (wxObject *) src; | |
491 | return (void *) dest; | |
492 | } | |
493 | ||
494 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
495 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
496 | PyObject * _resultobj; | |
497 | wxControlWithItems * _arg0; | |
498 | int _arg1; | |
499 | PyObject * _argo0 = 0; | |
500 | char *_kwnames[] = { "self","n", NULL }; | |
501 | ||
502 | self = self; | |
503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
504 | return NULL; | |
505 | if (_argo0) { | |
506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
509 | return NULL; | |
510 | } | |
511 | } | |
512 | { | |
474c48f9 | 513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 514 | wxControlWithItems_Delete(_arg0,_arg1); |
65191ae8 | 515 | |
474c48f9 | 516 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
517 | if (PyErr_Occurred()) return NULL; |
518 | } Py_INCREF(Py_None); | |
519 | _resultobj = Py_None; | |
520 | return _resultobj; | |
521 | } | |
522 | ||
523 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
524 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
525 | PyObject * _resultobj; | |
526 | int _result; | |
527 | wxControlWithItems * _arg0; | |
528 | PyObject * _argo0 = 0; | |
529 | char *_kwnames[] = { "self", NULL }; | |
530 | ||
531 | self = self; | |
532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
533 | return NULL; | |
534 | if (_argo0) { | |
535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
538 | return NULL; | |
539 | } | |
540 | } | |
541 | { | |
474c48f9 | 542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 543 | _result = (int )wxControlWithItems_GetCount(_arg0); |
65191ae8 | 544 | |
474c48f9 | 545 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
546 | if (PyErr_Occurred()) return NULL; |
547 | } _resultobj = Py_BuildValue("i",_result); | |
548 | return _resultobj; | |
549 | } | |
550 | ||
551 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
552 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
553 | PyObject * _resultobj; | |
554 | wxString * _result; | |
555 | wxControlWithItems * _arg0; | |
556 | int _arg1; | |
557 | PyObject * _argo0 = 0; | |
558 | char *_kwnames[] = { "self","n", NULL }; | |
559 | ||
560 | self = self; | |
561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
562 | return NULL; | |
563 | if (_argo0) { | |
564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
567 | return NULL; | |
568 | } | |
569 | } | |
570 | { | |
474c48f9 | 571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 572 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
65191ae8 | 573 | |
474c48f9 | 574 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
575 | if (PyErr_Occurred()) return NULL; |
576 | }{ | |
c8bc7bb8 RD |
577 | #if wxUSE_UNICODE |
578 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
579 | #else | |
65191ae8 | 580 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 581 | #endif |
65191ae8 RD |
582 | } |
583 | { | |
584 | delete _result; | |
585 | } | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
590 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxControlWithItems * _arg0; | |
593 | int _arg1; | |
594 | wxString * _arg2; | |
595 | PyObject * _argo0 = 0; | |
596 | PyObject * _obj2 = 0; | |
597 | char *_kwnames[] = { "self","n","s", NULL }; | |
598 | ||
599 | self = self; | |
600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
601 | return NULL; | |
602 | if (_argo0) { | |
603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
606 | return NULL; | |
607 | } | |
608 | } | |
609 | { | |
c8bc7bb8 RD |
610 | _arg2 = wxString_in_helper(_obj2); |
611 | if (_arg2 == NULL) | |
65191ae8 | 612 | return NULL; |
65191ae8 RD |
613 | } |
614 | { | |
474c48f9 | 615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 616 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
65191ae8 | 617 | |
474c48f9 | 618 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
619 | if (PyErr_Occurred()) return NULL; |
620 | } Py_INCREF(Py_None); | |
621 | _resultobj = Py_None; | |
622 | { | |
623 | if (_obj2) | |
624 | delete _arg2; | |
625 | } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
629 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
630 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
631 | PyObject * _resultobj; | |
632 | int _result; | |
633 | wxControlWithItems * _arg0; | |
634 | wxString * _arg1; | |
635 | PyObject * _argo0 = 0; | |
636 | PyObject * _obj1 = 0; | |
637 | char *_kwnames[] = { "self","s", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
c8bc7bb8 RD |
650 | _arg1 = wxString_in_helper(_obj1); |
651 | if (_arg1 == NULL) | |
65191ae8 | 652 | return NULL; |
65191ae8 RD |
653 | } |
654 | { | |
474c48f9 | 655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 656 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
65191ae8 | 657 | |
474c48f9 | 658 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
659 | if (PyErr_Occurred()) return NULL; |
660 | } _resultobj = Py_BuildValue("i",_result); | |
661 | { | |
662 | if (_obj1) | |
663 | delete _arg1; | |
664 | } | |
665 | return _resultobj; | |
666 | } | |
667 | ||
668 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
669 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
670 | PyObject * _resultobj; | |
671 | wxControlWithItems * _arg0; | |
672 | int _arg1; | |
673 | PyObject * _argo0 = 0; | |
674 | char *_kwnames[] = { "self","n", NULL }; | |
675 | ||
676 | self = self; | |
677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
678 | return NULL; | |
679 | if (_argo0) { | |
680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
683 | return NULL; | |
684 | } | |
685 | } | |
686 | { | |
474c48f9 | 687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 688 | wxControlWithItems_Select(_arg0,_arg1); |
65191ae8 | 689 | |
474c48f9 | 690 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
691 | if (PyErr_Occurred()) return NULL; |
692 | } Py_INCREF(Py_None); | |
693 | _resultobj = Py_None; | |
694 | return _resultobj; | |
695 | } | |
696 | ||
697 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
698 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
699 | PyObject * _resultobj; | |
700 | int _result; | |
701 | wxControlWithItems * _arg0; | |
702 | PyObject * _argo0 = 0; | |
703 | char *_kwnames[] = { "self", NULL }; | |
704 | ||
705 | self = self; | |
706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
707 | return NULL; | |
708 | if (_argo0) { | |
709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
712 | return NULL; | |
713 | } | |
714 | } | |
715 | { | |
474c48f9 | 716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 717 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
65191ae8 | 718 | |
474c48f9 | 719 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
720 | if (PyErr_Occurred()) return NULL; |
721 | } _resultobj = Py_BuildValue("i",_result); | |
722 | return _resultobj; | |
723 | } | |
724 | ||
725 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
726 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
727 | PyObject * _resultobj; | |
728 | wxString * _result; | |
729 | wxControlWithItems * _arg0; | |
730 | PyObject * _argo0 = 0; | |
731 | char *_kwnames[] = { "self", NULL }; | |
732 | ||
733 | self = self; | |
734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
735 | return NULL; | |
736 | if (_argo0) { | |
737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
740 | return NULL; | |
741 | } | |
742 | } | |
743 | { | |
474c48f9 | 744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 745 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
65191ae8 | 746 | |
474c48f9 | 747 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
748 | if (PyErr_Occurred()) return NULL; |
749 | }{ | |
c8bc7bb8 RD |
750 | #if wxUSE_UNICODE |
751 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
752 | #else | |
65191ae8 | 753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 754 | #endif |
65191ae8 RD |
755 | } |
756 | { | |
757 | delete _result; | |
758 | } | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
763 | if (clientData) { | |
764 | wxPyClientData* data = new wxPyClientData(clientData); | |
765 | self->Append(item, data); | |
766 | } else | |
767 | self->Append(item); | |
768 | } | |
769 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
770 | PyObject * _resultobj; | |
771 | wxControlWithItems * _arg0; | |
772 | wxString * _arg1; | |
773 | PyObject * _arg2 = (PyObject *) NULL; | |
774 | PyObject * _argo0 = 0; | |
775 | PyObject * _obj1 = 0; | |
776 | PyObject * _obj2 = 0; | |
777 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
778 | ||
779 | self = self; | |
780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
781 | return NULL; | |
782 | if (_argo0) { | |
783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
786 | return NULL; | |
787 | } | |
788 | } | |
789 | { | |
c8bc7bb8 RD |
790 | _arg1 = wxString_in_helper(_obj1); |
791 | if (_arg1 == NULL) | |
65191ae8 | 792 | return NULL; |
65191ae8 RD |
793 | } |
794 | if (_obj2) | |
795 | { | |
796 | _arg2 = _obj2; | |
797 | } | |
798 | { | |
474c48f9 | 799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 800 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
65191ae8 | 801 | |
474c48f9 | 802 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
803 | if (PyErr_Occurred()) return NULL; |
804 | } Py_INCREF(Py_None); | |
805 | _resultobj = Py_None; | |
806 | { | |
807 | if (_obj1) | |
808 | delete _arg1; | |
809 | } | |
810 | return _resultobj; | |
811 | } | |
812 | ||
813 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
814 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
815 | if (data) { | |
816 | Py_INCREF(data->m_obj); | |
817 | return data->m_obj; | |
818 | } else { | |
819 | Py_INCREF(Py_None); | |
820 | return Py_None; | |
821 | } | |
822 | } | |
823 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | PyObject * _result; | |
826 | wxControlWithItems * _arg0; | |
827 | int _arg1; | |
828 | PyObject * _argo0 = 0; | |
829 | char *_kwnames[] = { "self","n", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
474c48f9 | 842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 843 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
65191ae8 | 844 | |
474c48f9 | 845 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
846 | if (PyErr_Occurred()) return NULL; |
847 | }{ | |
848 | _resultobj = _result; | |
849 | } | |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
854 | wxPyClientData* data = new wxPyClientData(clientData); | |
855 | self->SetClientObject(n, data); | |
856 | } | |
857 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
858 | PyObject * _resultobj; | |
859 | wxControlWithItems * _arg0; | |
860 | int _arg1; | |
861 | PyObject * _arg2; | |
862 | PyObject * _argo0 = 0; | |
863 | PyObject * _obj2 = 0; | |
864 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
865 | ||
866 | self = self; | |
867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
868 | return NULL; | |
869 | if (_argo0) { | |
870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
873 | return NULL; | |
874 | } | |
875 | } | |
876 | { | |
877 | _arg2 = _obj2; | |
878 | } | |
879 | { | |
474c48f9 | 880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 881 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
65191ae8 | 882 | |
474c48f9 | 883 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
884 | if (PyErr_Occurred()) return NULL; |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
85247b36 RD |
890 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
891 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
892 | PyObject * _resultobj; | |
893 | wxControlWithItems * _arg0; | |
894 | wxArrayString * _arg1; | |
895 | PyObject * _argo0 = 0; | |
896 | PyObject * _obj1 = 0; | |
897 | char *_kwnames[] = { "self","strings", NULL }; | |
898 | ||
899 | self = self; | |
900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
901 | return NULL; | |
902 | if (_argo0) { | |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | { | |
910 | if (! PySequence_Check(_obj1)) { | |
911 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
912 | return NULL; | |
913 | } | |
914 | _arg1 = new wxArrayString; | |
915 | int i, len=PySequence_Length(_obj1); | |
916 | for (i=0; i<len; i++) { | |
917 | PyObject* item = PySequence_GetItem(_obj1, i); | |
c8bc7bb8 RD |
918 | #if wxUSE_UNICODE |
919 | PyObject* str = PyObject_Unicode(item); | |
920 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
921 | #else | |
85247b36 RD |
922 | PyObject* str = PyObject_Str(item); |
923 | _arg1->Add(PyString_AsString(str)); | |
c8bc7bb8 | 924 | #endif |
85247b36 RD |
925 | Py_DECREF(item); |
926 | Py_DECREF(str); | |
927 | } | |
928 | } | |
929 | { | |
930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 931 | wxControlWithItems_AppendItems(_arg0,*_arg1); |
85247b36 RD |
932 | |
933 | wxPyEndAllowThreads(__tstate); | |
934 | if (PyErr_Occurred()) return NULL; | |
935 | } Py_INCREF(Py_None); | |
936 | _resultobj = Py_None; | |
937 | { | |
938 | if (_obj1) | |
939 | delete _arg1; | |
940 | } | |
941 | return _resultobj; | |
942 | } | |
943 | ||
70551f47 RD |
944 | static void *SwigwxButtonTowxControl(void *ptr) { |
945 | wxButton *src; | |
946 | wxControl *dest; | |
947 | src = (wxButton *) ptr; | |
948 | dest = (wxControl *) src; | |
949 | return (void *) dest; | |
950 | } | |
951 | ||
952 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
953 | wxButton *src; | |
954 | wxWindow *dest; | |
955 | src = (wxButton *) ptr; | |
956 | dest = (wxWindow *) src; | |
957 | return (void *) dest; | |
958 | } | |
959 | ||
960 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
961 | wxButton *src; | |
962 | wxEvtHandler *dest; | |
963 | src = (wxButton *) ptr; | |
964 | dest = (wxEvtHandler *) src; | |
965 | return (void *) dest; | |
966 | } | |
967 | ||
9df61a29 RD |
968 | static void *SwigwxButtonTowxObject(void *ptr) { |
969 | wxButton *src; | |
970 | wxObject *dest; | |
971 | src = (wxButton *) ptr; | |
972 | dest = (wxObject *) src; | |
973 | return (void *) dest; | |
974 | } | |
975 | ||
70551f47 | 976 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 977 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
978 | PyObject * _resultobj; |
979 | wxButton * _result; | |
980 | wxWindow * _arg0; | |
981 | wxWindowID _arg1; | |
982 | wxString * _arg2; | |
b68dc582 RD |
983 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
984 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 985 | long _arg5 = (long ) 0; |
b68dc582 | 986 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 987 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
2d091820 | 988 | PyObject * _argo0 = 0; |
70551f47 | 989 | PyObject * _obj2 = 0; |
37f6a977 RD |
990 | wxPoint temp; |
991 | PyObject * _obj3 = 0; | |
992 | wxSize temp0; | |
993 | PyObject * _obj4 = 0; | |
2d091820 | 994 | PyObject * _argo6 = 0; |
9a74fcaf | 995 | PyObject * _obj7 = 0; |
107e4716 | 996 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
997 | char _ptemp[128]; |
998 | ||
999 | self = self; | |
9a74fcaf | 1000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 1001 | return NULL; |
2d091820 RD |
1002 | if (_argo0) { |
1003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
1006 | return NULL; | |
1007 | } | |
1008 | } | |
1009 | { | |
c8bc7bb8 RD |
1010 | _arg2 = wxString_in_helper(_obj2); |
1011 | if (_arg2 == NULL) | |
70551f47 | 1012 | return NULL; |
70551f47 | 1013 | } |
37f6a977 RD |
1014 | if (_obj3) |
1015 | { | |
1016 | _arg3 = &temp; | |
1017 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1018 | return NULL; |
37f6a977 RD |
1019 | } |
1020 | if (_obj4) | |
1021 | { | |
1022 | _arg4 = &temp0; | |
1023 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1024 | return NULL; |
37f6a977 | 1025 | } |
2d091820 RD |
1026 | if (_argo6) { |
1027 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1028 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
9a74fcaf RD |
1033 | if (_obj7) |
1034 | { | |
1035 | _arg7 = wxString_in_helper(_obj7); | |
1036 | if (_arg7 == NULL) | |
1037 | return NULL; | |
1038 | } | |
ab9bc19b | 1039 | { |
474c48f9 | 1040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1041 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1042 | |
474c48f9 | 1043 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1044 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1045 | } if (_result) { |
1046 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1047 | _resultobj = Py_BuildValue("s",_ptemp); | |
1048 | } else { | |
1049 | Py_INCREF(Py_None); | |
1050 | _resultobj = Py_None; | |
1051 | } | |
70551f47 RD |
1052 | { |
1053 | if (_obj2) | |
1054 | delete _arg2; | |
9a74fcaf RD |
1055 | } |
1056 | { | |
1057 | if (_obj7) | |
1058 | delete _arg7; | |
70551f47 RD |
1059 | } |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
aa2a5b86 RD |
1063 | #define new_wxPreButton() (new wxButton()) |
1064 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | wxButton * _result; | |
1067 | char *_kwnames[] = { NULL }; | |
1068 | char _ptemp[128]; | |
1069 | ||
1070 | self = self; | |
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1072 | return NULL; | |
1073 | { | |
474c48f9 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | _result = (wxButton *)new_wxPreButton(); |
aa2a5b86 | 1076 | |
474c48f9 | 1077 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1078 | if (PyErr_Occurred()) return NULL; |
1079 | } if (_result) { | |
1080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1081 | _resultobj = Py_BuildValue("s",_ptemp); | |
1082 | } else { | |
1083 | Py_INCREF(Py_None); | |
1084 | _resultobj = Py_None; | |
1085 | } | |
1086 | return _resultobj; | |
1087 | } | |
1088 | ||
1089 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1090 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1091 | PyObject * _resultobj; | |
1092 | bool _result; | |
1093 | wxButton * _arg0; | |
1094 | wxWindow * _arg1; | |
1095 | wxWindowID _arg2; | |
1096 | wxString * _arg3; | |
1097 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1098 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1099 | long _arg6 = (long ) 0; | |
1100 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 1101 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
aa2a5b86 RD |
1102 | PyObject * _argo0 = 0; |
1103 | PyObject * _argo1 = 0; | |
1104 | PyObject * _obj3 = 0; | |
1105 | wxPoint temp; | |
1106 | PyObject * _obj4 = 0; | |
1107 | wxSize temp0; | |
1108 | PyObject * _obj5 = 0; | |
1109 | PyObject * _argo7 = 0; | |
9a74fcaf | 1110 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
1111 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
1112 | ||
1113 | self = self; | |
9a74fcaf | 1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
1115 | return NULL; |
1116 | if (_argo0) { | |
1117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1120 | return NULL; | |
1121 | } | |
1122 | } | |
1123 | if (_argo1) { | |
1124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1127 | return NULL; | |
1128 | } | |
1129 | } | |
1130 | { | |
c8bc7bb8 RD |
1131 | _arg3 = wxString_in_helper(_obj3); |
1132 | if (_arg3 == NULL) | |
aa2a5b86 | 1133 | return NULL; |
aa2a5b86 RD |
1134 | } |
1135 | if (_obj4) | |
1136 | { | |
1137 | _arg4 = &temp; | |
1138 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1139 | return NULL; | |
1140 | } | |
1141 | if (_obj5) | |
1142 | { | |
1143 | _arg5 = &temp0; | |
1144 | if (! wxSize_helper(_obj5, &_arg5)) | |
1145 | return NULL; | |
1146 | } | |
1147 | if (_argo7) { | |
1148 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1149 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); | |
1151 | return NULL; | |
1152 | } | |
1153 | } | |
9a74fcaf RD |
1154 | if (_obj8) |
1155 | { | |
1156 | _arg8 = wxString_in_helper(_obj8); | |
1157 | if (_arg8 == NULL) | |
1158 | return NULL; | |
1159 | } | |
aa2a5b86 | 1160 | { |
474c48f9 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1162 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 1163 | |
474c48f9 | 1164 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1165 | if (PyErr_Occurred()) return NULL; |
1166 | } _resultobj = Py_BuildValue("i",_result); | |
1167 | { | |
1168 | if (_obj3) | |
1169 | delete _arg3; | |
9a74fcaf RD |
1170 | } |
1171 | { | |
1172 | if (_obj8) | |
1173 | delete _arg8; | |
aa2a5b86 RD |
1174 | } |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
70551f47 | 1178 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
107e4716 | 1179 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1180 | PyObject * _resultobj; |
1181 | wxButton * _arg0; | |
2d091820 | 1182 | PyObject * _argo0 = 0; |
107e4716 | 1183 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1184 | |
1185 | self = self; | |
107e4716 | 1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
70551f47 | 1187 | return NULL; |
2d091820 RD |
1188 | if (_argo0) { |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
70551f47 RD |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
ab9bc19b | 1195 | { |
474c48f9 | 1196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1197 | wxButton_SetDefault(_arg0); |
ab9bc19b | 1198 | |
474c48f9 | 1199 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1200 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1201 | } Py_INCREF(Py_None); |
70551f47 RD |
1202 | _resultobj = Py_None; |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
ab2208b5 RD |
1206 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
1207 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject * _resultobj; | |
1209 | wxButton * _arg0; | |
1210 | wxColour * _arg1; | |
1211 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1212 | wxColour temp; |
1213 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1214 | char *_kwnames[] = { "self","colour", NULL }; |
1215 | ||
1216 | self = self; | |
f6bcfd97 | 1217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1218 | return NULL; |
1219 | if (_argo0) { | |
1220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1223 | return NULL; | |
1224 | } | |
1225 | } | |
f6bcfd97 BP |
1226 | { |
1227 | _arg1 = &temp; | |
1228 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1229 | return NULL; |
f6bcfd97 | 1230 | } |
ab2208b5 | 1231 | { |
474c48f9 | 1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1233 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
ab2208b5 | 1234 | |
474c48f9 | 1235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1236 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1237 | } Py_INCREF(Py_None); |
1238 | _resultobj = Py_None; | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1243 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | wxButton * _arg0; | |
1246 | wxColour * _arg1; | |
1247 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1248 | wxColour temp; |
1249 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1250 | char *_kwnames[] = { "self","colour", NULL }; |
1251 | ||
1252 | self = self; | |
f6bcfd97 | 1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1254 | return NULL; |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
f6bcfd97 BP |
1262 | { |
1263 | _arg1 = &temp; | |
1264 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1265 | return NULL; |
f6bcfd97 | 1266 | } |
ab2208b5 | 1267 | { |
474c48f9 | 1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1269 | wxButton_SetForegroundColour(_arg0,*_arg1); |
ab2208b5 | 1270 | |
474c48f9 | 1271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1272 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1273 | } Py_INCREF(Py_None); |
1274 | _resultobj = Py_None; | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
aa2a5b86 RD |
1278 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1279 | PyObject * _resultobj; | |
1280 | wxSize * _result; | |
1281 | char *_kwnames[] = { NULL }; | |
1282 | char _ptemp[128]; | |
1283 | ||
1284 | self = self; | |
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1286 | return NULL; | |
1287 | { | |
474c48f9 | 1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1289 | _result = new wxSize (wxButton::GetDefaultSize()); |
aa2a5b86 | 1290 | |
474c48f9 | 1291 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1292 | if (PyErr_Occurred()) return NULL; |
1293 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1294 | _resultobj = Py_BuildValue("s",_ptemp); | |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1299 | wxBitmapButton *src; | |
1300 | wxButton *dest; | |
1301 | src = (wxBitmapButton *) ptr; | |
1302 | dest = (wxButton *) src; | |
1303 | return (void *) dest; | |
1304 | } | |
1305 | ||
1306 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1307 | wxBitmapButton *src; | |
1308 | wxControl *dest; | |
1309 | src = (wxBitmapButton *) ptr; | |
1310 | dest = (wxControl *) src; | |
1311 | return (void *) dest; | |
1312 | } | |
1313 | ||
1314 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1315 | wxBitmapButton *src; | |
1316 | wxWindow *dest; | |
1317 | src = (wxBitmapButton *) ptr; | |
1318 | dest = (wxWindow *) src; | |
1319 | return (void *) dest; | |
1320 | } | |
1321 | ||
1322 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1323 | wxBitmapButton *src; | |
1324 | wxEvtHandler *dest; | |
1325 | src = (wxBitmapButton *) ptr; | |
1326 | dest = (wxEvtHandler *) src; | |
1327 | return (void *) dest; | |
1328 | } | |
1329 | ||
1330 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1331 | wxBitmapButton *src; | |
1332 | wxObject *dest; | |
1333 | src = (wxBitmapButton *) ptr; | |
1334 | dest = (wxObject *) src; | |
9df61a29 RD |
1335 | return (void *) dest; |
1336 | } | |
1337 | ||
70551f47 | 1338 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1339 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1340 | PyObject * _resultobj; |
1341 | wxBitmapButton * _result; | |
1342 | wxWindow * _arg0; | |
1343 | wxWindowID _arg1; | |
1344 | wxBitmap * _arg2; | |
b68dc582 RD |
1345 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1346 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1347 | long _arg5 = (long ) wxBU_AUTODRAW; |
b68dc582 | 1348 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 1349 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
2d091820 RD |
1350 | PyObject * _argo0 = 0; |
1351 | PyObject * _argo2 = 0; | |
37f6a977 RD |
1352 | wxPoint temp; |
1353 | PyObject * _obj3 = 0; | |
1354 | wxSize temp0; | |
1355 | PyObject * _obj4 = 0; | |
2d091820 | 1356 | PyObject * _argo6 = 0; |
9a74fcaf | 1357 | PyObject * _obj7 = 0; |
107e4716 | 1358 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
70551f47 RD |
1359 | char _ptemp[128]; |
1360 | ||
1361 | self = self; | |
9a74fcaf | 1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 1363 | return NULL; |
2d091820 RD |
1364 | if (_argo0) { |
1365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1368 | return NULL; | |
1369 | } | |
1370 | } | |
2d091820 RD |
1371 | if (_argo2) { |
1372 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
70551f47 RD |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
37f6a977 RD |
1378 | if (_obj3) |
1379 | { | |
1380 | _arg3 = &temp; | |
1381 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1382 | return NULL; |
37f6a977 RD |
1383 | } |
1384 | if (_obj4) | |
1385 | { | |
1386 | _arg4 = &temp0; | |
1387 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1388 | return NULL; |
37f6a977 | 1389 | } |
2d091820 RD |
1390 | if (_argo6) { |
1391 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
9a74fcaf RD |
1397 | if (_obj7) |
1398 | { | |
1399 | _arg7 = wxString_in_helper(_obj7); | |
1400 | if (_arg7 == NULL) | |
1401 | return NULL; | |
1402 | } | |
ab9bc19b | 1403 | { |
474c48f9 | 1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1405 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1406 | |
474c48f9 | 1407 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1408 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1409 | } if (_result) { |
1410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1411 | _resultobj = Py_BuildValue("s",_ptemp); | |
1412 | } else { | |
1413 | Py_INCREF(Py_None); | |
1414 | _resultobj = Py_None; | |
1415 | } | |
9a74fcaf RD |
1416 | { |
1417 | if (_obj7) | |
1418 | delete _arg7; | |
1419 | } | |
70551f47 RD |
1420 | return _resultobj; |
1421 | } | |
1422 | ||
aa2a5b86 RD |
1423 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1424 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1425 | PyObject * _resultobj; | |
1426 | wxBitmapButton * _result; | |
1427 | char *_kwnames[] = { NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1432 | return NULL; | |
1433 | { | |
474c48f9 | 1434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1435 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
aa2a5b86 | 1436 | |
474c48f9 | 1437 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1438 | if (PyErr_Occurred()) return NULL; |
1439 | } if (_result) { | |
1440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1441 | _resultobj = Py_BuildValue("s",_ptemp); | |
1442 | } else { | |
1443 | Py_INCREF(Py_None); | |
1444 | _resultobj = Py_None; | |
1445 | } | |
1446 | return _resultobj; | |
1447 | } | |
1448 | ||
1449 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1450 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1451 | PyObject * _resultobj; | |
1452 | bool _result; | |
1453 | wxBitmapButton * _arg0; | |
1454 | wxWindow * _arg1; | |
1455 | wxWindowID _arg2; | |
1456 | wxBitmap * _arg3; | |
1457 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1458 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1459 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1460 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 1461 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
aa2a5b86 RD |
1462 | PyObject * _argo0 = 0; |
1463 | PyObject * _argo1 = 0; | |
1464 | PyObject * _argo3 = 0; | |
1465 | wxPoint temp; | |
1466 | PyObject * _obj4 = 0; | |
1467 | wxSize temp0; | |
1468 | PyObject * _obj5 = 0; | |
1469 | PyObject * _argo7 = 0; | |
9a74fcaf | 1470 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
1471 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; |
1472 | ||
1473 | self = self; | |
9a74fcaf | 1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
1475 | return NULL; |
1476 | if (_argo0) { | |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | if (_argo1) { | |
1484 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1485 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1487 | return NULL; | |
1488 | } | |
1489 | } | |
1490 | if (_argo3) { | |
1491 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); | |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
1497 | if (_obj4) | |
1498 | { | |
1499 | _arg4 = &temp; | |
1500 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1501 | return NULL; | |
1502 | } | |
1503 | if (_obj5) | |
1504 | { | |
1505 | _arg5 = &temp0; | |
1506 | if (! wxSize_helper(_obj5, &_arg5)) | |
1507 | return NULL; | |
1508 | } | |
1509 | if (_argo7) { | |
1510 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
1511 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
1512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); | |
1513 | return NULL; | |
1514 | } | |
1515 | } | |
9a74fcaf RD |
1516 | if (_obj8) |
1517 | { | |
1518 | _arg8 = wxString_in_helper(_obj8); | |
1519 | if (_arg8 == NULL) | |
1520 | return NULL; | |
1521 | } | |
aa2a5b86 | 1522 | { |
474c48f9 | 1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1524 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 1525 | |
474c48f9 | 1526 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1527 | if (PyErr_Occurred()) return NULL; |
1528 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
1529 | { |
1530 | if (_obj8) | |
1531 | delete _arg8; | |
1532 | } | |
aa2a5b86 RD |
1533 | return _resultobj; |
1534 | } | |
1535 | ||
70551f47 | 1536 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
107e4716 | 1537 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1538 | PyObject * _resultobj; |
1539 | wxBitmap * _result; | |
1540 | wxBitmapButton * _arg0; | |
2d091820 | 1541 | PyObject * _argo0 = 0; |
107e4716 | 1542 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1543 | char _ptemp[128]; |
1544 | ||
1545 | self = self; | |
107e4716 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
70551f47 | 1547 | return NULL; |
2d091820 RD |
1548 | if (_argo0) { |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1552 | return NULL; | |
1553 | } | |
1554 | } | |
ab9bc19b | 1555 | { |
474c48f9 | 1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1557 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
ab9bc19b | 1558 | |
474c48f9 | 1559 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1560 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1561 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1562 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
1563 | return _resultobj; |
1564 | } | |
1565 | ||
c95e68d8 | 1566 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) |
107e4716 | 1567 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1568 | PyObject * _resultobj; |
1569 | wxBitmap * _result; | |
1570 | wxBitmapButton * _arg0; | |
2d091820 | 1571 | PyObject * _argo0 = 0; |
107e4716 | 1572 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1573 | char _ptemp[128]; |
1574 | ||
1575 | self = self; | |
107e4716 | 1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
c95e68d8 | 1577 | return NULL; |
2d091820 RD |
1578 | if (_argo0) { |
1579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1582 | return NULL; | |
1583 | } | |
1584 | } | |
ab9bc19b | 1585 | { |
474c48f9 | 1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1587 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
ab9bc19b | 1588 | |
474c48f9 | 1589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1590 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1591 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1592 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1593 | return _resultobj; |
1594 | } | |
1595 | ||
1596 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
107e4716 | 1597 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1598 | PyObject * _resultobj; |
1599 | wxBitmap * _result; | |
1600 | wxBitmapButton * _arg0; | |
2d091820 | 1601 | PyObject * _argo0 = 0; |
107e4716 | 1602 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1603 | char _ptemp[128]; |
1604 | ||
1605 | self = self; | |
107e4716 | 1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
c95e68d8 | 1607 | return NULL; |
2d091820 RD |
1608 | if (_argo0) { |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
ab9bc19b | 1615 | { |
474c48f9 | 1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1617 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
ab9bc19b | 1618 | |
474c48f9 | 1619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1620 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1621 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1622 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1623 | return _resultobj; |
1624 | } | |
1625 | ||
1626 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
107e4716 | 1627 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1628 | PyObject * _resultobj; |
1629 | wxBitmap * _result; | |
1630 | wxBitmapButton * _arg0; | |
2d091820 | 1631 | PyObject * _argo0 = 0; |
107e4716 | 1632 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1633 | char _ptemp[128]; |
1634 | ||
1635 | self = self; | |
107e4716 | 1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
c95e68d8 | 1637 | return NULL; |
2d091820 RD |
1638 | if (_argo0) { |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1642 | return NULL; | |
1643 | } | |
1644 | } | |
ab9bc19b | 1645 | { |
474c48f9 | 1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1647 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
ab9bc19b | 1648 | |
474c48f9 | 1649 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1650 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1651 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1652 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1653 | return _resultobj; |
1654 | } | |
1655 | ||
1656 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
107e4716 | 1657 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1658 | PyObject * _resultobj; |
1659 | wxBitmapButton * _arg0; | |
1660 | wxBitmap * _arg1; | |
2d091820 RD |
1661 | PyObject * _argo0 = 0; |
1662 | PyObject * _argo1 = 0; | |
107e4716 | 1663 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1664 | |
1665 | self = self; | |
107e4716 | 1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1667 | return NULL; |
2d091820 RD |
1668 | if (_argo0) { |
1669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1672 | return NULL; | |
1673 | } | |
1674 | } | |
2d091820 RD |
1675 | if (_argo1) { |
1676 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1679 | return NULL; | |
1680 | } | |
1681 | } | |
ab9bc19b | 1682 | { |
474c48f9 | 1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1684 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
ab9bc19b | 1685 | |
474c48f9 | 1686 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1687 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1688 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1689 | _resultobj = Py_None; |
1690 | return _resultobj; | |
1691 | } | |
1692 | ||
1693 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
107e4716 | 1694 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1695 | PyObject * _resultobj; |
1696 | wxBitmapButton * _arg0; | |
1697 | wxBitmap * _arg1; | |
2d091820 RD |
1698 | PyObject * _argo0 = 0; |
1699 | PyObject * _argo1 = 0; | |
107e4716 | 1700 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1701 | |
1702 | self = self; | |
107e4716 | 1703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1704 | return NULL; |
2d091820 RD |
1705 | if (_argo0) { |
1706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1709 | return NULL; | |
1710 | } | |
1711 | } | |
2d091820 RD |
1712 | if (_argo1) { |
1713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
ab9bc19b | 1719 | { |
474c48f9 | 1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1721 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
ab9bc19b | 1722 | |
474c48f9 | 1723 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1724 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1725 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1726 | _resultobj = Py_None; |
1727 | return _resultobj; | |
1728 | } | |
1729 | ||
1730 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
107e4716 | 1731 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1732 | PyObject * _resultobj; |
1733 | wxBitmapButton * _arg0; | |
1734 | wxBitmap * _arg1; | |
2d091820 RD |
1735 | PyObject * _argo0 = 0; |
1736 | PyObject * _argo1 = 0; | |
107e4716 | 1737 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1738 | |
1739 | self = self; | |
107e4716 | 1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1741 | return NULL; |
2d091820 RD |
1742 | if (_argo0) { |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
2d091820 RD |
1749 | if (_argo1) { |
1750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
ab9bc19b | 1756 | { |
474c48f9 | 1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1758 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
ab9bc19b | 1759 | |
474c48f9 | 1760 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1761 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1762 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1763 | _resultobj = Py_None; |
1764 | return _resultobj; | |
1765 | } | |
1766 | ||
70551f47 | 1767 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) |
107e4716 | 1768 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1769 | PyObject * _resultobj; |
1770 | wxBitmapButton * _arg0; | |
1771 | wxBitmap * _arg1; | |
2d091820 RD |
1772 | PyObject * _argo0 = 0; |
1773 | PyObject * _argo1 = 0; | |
107e4716 | 1774 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
1775 | |
1776 | self = self; | |
107e4716 | 1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
70551f47 | 1778 | return NULL; |
2d091820 RD |
1779 | if (_argo0) { |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
2d091820 RD |
1786 | if (_argo1) { |
1787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
1789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1790 | return NULL; | |
1791 | } | |
1792 | } | |
ab9bc19b | 1793 | { |
474c48f9 | 1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1795 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
ab9bc19b | 1796 | |
474c48f9 | 1797 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1798 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1799 | } Py_INCREF(Py_None); |
70551f47 RD |
1800 | _resultobj = Py_None; |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
f6bcfd97 BP |
1804 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1805 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject * _resultobj; | |
1807 | wxBitmapButton * _arg0; | |
1808 | int _arg1; | |
1809 | int _arg2; | |
1810 | PyObject * _argo0 = 0; | |
1811 | char *_kwnames[] = { "self","x","y", NULL }; | |
1812 | ||
1813 | self = self; | |
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1815 | return NULL; | |
1816 | if (_argo0) { | |
1817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1820 | return NULL; | |
1821 | } | |
1822 | } | |
1823 | { | |
474c48f9 | 1824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1825 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
f6bcfd97 | 1826 | |
474c48f9 | 1827 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1828 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1829 | } Py_INCREF(Py_None); |
1830 | _resultobj = Py_None; | |
1831 | return _resultobj; | |
1832 | } | |
1833 | ||
1834 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1835 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1836 | PyObject * _resultobj; | |
1837 | int _result; | |
1838 | wxBitmapButton * _arg0; | |
1839 | PyObject * _argo0 = 0; | |
1840 | char *_kwnames[] = { "self", NULL }; | |
1841 | ||
1842 | self = self; | |
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1844 | return NULL; | |
1845 | if (_argo0) { | |
1846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1849 | return NULL; | |
1850 | } | |
1851 | } | |
1852 | { | |
474c48f9 | 1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1854 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
f6bcfd97 | 1855 | |
474c48f9 | 1856 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1857 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1858 | } _resultobj = Py_BuildValue("i",_result); |
1859 | return _resultobj; | |
1860 | } | |
1861 | ||
1862 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1863 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1864 | PyObject * _resultobj; | |
1865 | int _result; | |
1866 | wxBitmapButton * _arg0; | |
1867 | PyObject * _argo0 = 0; | |
1868 | char *_kwnames[] = { "self", NULL }; | |
1869 | ||
1870 | self = self; | |
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1872 | return NULL; | |
1873 | if (_argo0) { | |
1874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1877 | return NULL; | |
1878 | } | |
1879 | } | |
1880 | { | |
474c48f9 | 1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1882 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
f6bcfd97 | 1883 | |
474c48f9 | 1884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1885 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1886 | } _resultobj = Py_BuildValue("i",_result); |
1887 | return _resultobj; | |
1888 | } | |
1889 | ||
70551f47 RD |
1890 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1891 | wxCheckBox *src; | |
1892 | wxControl *dest; | |
1893 | src = (wxCheckBox *) ptr; | |
1894 | dest = (wxControl *) src; | |
1895 | return (void *) dest; | |
1896 | } | |
1897 | ||
1898 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1899 | wxCheckBox *src; | |
1900 | wxWindow *dest; | |
1901 | src = (wxCheckBox *) ptr; | |
1902 | dest = (wxWindow *) src; | |
1903 | return (void *) dest; | |
1904 | } | |
1905 | ||
1906 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1907 | wxCheckBox *src; | |
1908 | wxEvtHandler *dest; | |
1909 | src = (wxCheckBox *) ptr; | |
1910 | dest = (wxEvtHandler *) src; | |
1911 | return (void *) dest; | |
1912 | } | |
1913 | ||
9df61a29 RD |
1914 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1915 | wxCheckBox *src; | |
1916 | wxObject *dest; | |
1917 | src = (wxCheckBox *) ptr; | |
1918 | dest = (wxObject *) src; | |
1919 | return (void *) dest; | |
1920 | } | |
1921 | ||
70551f47 | 1922 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1923 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1924 | PyObject * _resultobj; |
1925 | wxCheckBox * _result; | |
1926 | wxWindow * _arg0; | |
1927 | wxWindowID _arg1; | |
1928 | wxString * _arg2; | |
b68dc582 RD |
1929 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1930 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1931 | long _arg5 = (long ) 0; |
b68dc582 | 1932 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 1933 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
2d091820 | 1934 | PyObject * _argo0 = 0; |
70551f47 | 1935 | PyObject * _obj2 = 0; |
37f6a977 RD |
1936 | wxPoint temp; |
1937 | PyObject * _obj3 = 0; | |
1938 | wxSize temp0; | |
1939 | PyObject * _obj4 = 0; | |
2d091820 | 1940 | PyObject * _argo6 = 0; |
9a74fcaf | 1941 | PyObject * _obj7 = 0; |
107e4716 | 1942 | char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL }; |
70551f47 RD |
1943 | char _ptemp[128]; |
1944 | ||
1945 | self = self; | |
9a74fcaf | 1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 1947 | return NULL; |
2d091820 RD |
1948 | if (_argo0) { |
1949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1952 | return NULL; | |
1953 | } | |
1954 | } | |
1955 | { | |
c8bc7bb8 RD |
1956 | _arg2 = wxString_in_helper(_obj2); |
1957 | if (_arg2 == NULL) | |
70551f47 | 1958 | return NULL; |
70551f47 | 1959 | } |
37f6a977 RD |
1960 | if (_obj3) |
1961 | { | |
1962 | _arg3 = &temp; | |
1963 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1964 | return NULL; |
37f6a977 RD |
1965 | } |
1966 | if (_obj4) | |
1967 | { | |
1968 | _arg4 = &temp0; | |
1969 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1970 | return NULL; |
37f6a977 | 1971 | } |
2d091820 RD |
1972 | if (_argo6) { |
1973 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
9a74fcaf RD |
1979 | if (_obj7) |
1980 | { | |
1981 | _arg7 = wxString_in_helper(_obj7); | |
1982 | if (_arg7 == NULL) | |
1983 | return NULL; | |
1984 | } | |
ab9bc19b | 1985 | { |
474c48f9 | 1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1987 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1988 | |
474c48f9 | 1989 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1990 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1991 | } if (_result) { |
1992 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1993 | _resultobj = Py_BuildValue("s",_ptemp); | |
1994 | } else { | |
1995 | Py_INCREF(Py_None); | |
1996 | _resultobj = Py_None; | |
1997 | } | |
70551f47 RD |
1998 | { |
1999 | if (_obj2) | |
2000 | delete _arg2; | |
9a74fcaf RD |
2001 | } |
2002 | { | |
2003 | if (_obj7) | |
2004 | delete _arg7; | |
70551f47 RD |
2005 | } |
2006 | return _resultobj; | |
2007 | } | |
2008 | ||
aa2a5b86 RD |
2009 | #define new_wxPreCheckBox() (new wxCheckBox()) |
2010 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2011 | PyObject * _resultobj; | |
2012 | wxCheckBox * _result; | |
2013 | char *_kwnames[] = { NULL }; | |
2014 | char _ptemp[128]; | |
2015 | ||
2016 | self = self; | |
2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2018 | return NULL; | |
2019 | { | |
474c48f9 | 2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2021 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
aa2a5b86 | 2022 | |
474c48f9 | 2023 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2024 | if (PyErr_Occurred()) return NULL; |
2025 | } if (_result) { | |
2026 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2027 | _resultobj = Py_BuildValue("s",_ptemp); | |
2028 | } else { | |
2029 | Py_INCREF(Py_None); | |
2030 | _resultobj = Py_None; | |
2031 | } | |
2032 | return _resultobj; | |
2033 | } | |
2034 | ||
2035 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2036 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject * _resultobj; | |
2038 | bool _result; | |
2039 | wxCheckBox * _arg0; | |
2040 | wxWindow * _arg1; | |
2041 | wxWindowID _arg2; | |
2042 | wxString * _arg3; | |
2043 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2044 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2045 | long _arg6 = (long ) 0; | |
2046 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2047 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
aa2a5b86 RD |
2048 | PyObject * _argo0 = 0; |
2049 | PyObject * _argo1 = 0; | |
2050 | PyObject * _obj3 = 0; | |
2051 | wxPoint temp; | |
2052 | PyObject * _obj4 = 0; | |
2053 | wxSize temp0; | |
2054 | PyObject * _obj5 = 0; | |
2055 | PyObject * _argo7 = 0; | |
9a74fcaf | 2056 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
2057 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL }; |
2058 | ||
2059 | self = self; | |
9a74fcaf | 2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
2061 | return NULL; |
2062 | if (_argo0) { | |
2063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2066 | return NULL; | |
2067 | } | |
2068 | } | |
2069 | if (_argo1) { | |
2070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2073 | return NULL; | |
2074 | } | |
2075 | } | |
2076 | { | |
c8bc7bb8 RD |
2077 | _arg3 = wxString_in_helper(_obj3); |
2078 | if (_arg3 == NULL) | |
aa2a5b86 | 2079 | return NULL; |
aa2a5b86 RD |
2080 | } |
2081 | if (_obj4) | |
2082 | { | |
2083 | _arg4 = &temp; | |
2084 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2085 | return NULL; | |
2086 | } | |
2087 | if (_obj5) | |
2088 | { | |
2089 | _arg5 = &temp0; | |
2090 | if (! wxSize_helper(_obj5, &_arg5)) | |
2091 | return NULL; | |
2092 | } | |
2093 | if (_argo7) { | |
2094 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); | |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
9a74fcaf RD |
2100 | if (_obj8) |
2101 | { | |
2102 | _arg8 = wxString_in_helper(_obj8); | |
2103 | if (_arg8 == NULL) | |
2104 | return NULL; | |
2105 | } | |
aa2a5b86 | 2106 | { |
474c48f9 | 2107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2108 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 2109 | |
474c48f9 | 2110 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2111 | if (PyErr_Occurred()) return NULL; |
2112 | } _resultobj = Py_BuildValue("i",_result); | |
2113 | { | |
2114 | if (_obj3) | |
2115 | delete _arg3; | |
9a74fcaf RD |
2116 | } |
2117 | { | |
2118 | if (_obj8) | |
2119 | delete _arg8; | |
aa2a5b86 RD |
2120 | } |
2121 | return _resultobj; | |
2122 | } | |
2123 | ||
70551f47 | 2124 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 2125 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2126 | PyObject * _resultobj; |
2127 | bool _result; | |
2128 | wxCheckBox * _arg0; | |
2d091820 | 2129 | PyObject * _argo0 = 0; |
107e4716 | 2130 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2131 | |
2132 | self = self; | |
107e4716 | 2133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2134 | return NULL; |
2d091820 RD |
2135 | if (_argo0) { |
2136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2139 | return NULL; | |
2140 | } | |
2141 | } | |
ab9bc19b | 2142 | { |
474c48f9 | 2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2144 | _result = (bool )wxCheckBox_GetValue(_arg0); |
ab9bc19b | 2145 | |
474c48f9 | 2146 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2147 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2148 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2149 | return _resultobj; |
2150 | } | |
2151 | ||
2152 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2153 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2154 | PyObject * _resultobj; |
2155 | wxCheckBox * _arg0; | |
2156 | bool _arg1; | |
2d091820 | 2157 | PyObject * _argo0 = 0; |
70551f47 | 2158 | int tempbool1; |
107e4716 | 2159 | char *_kwnames[] = { "self","state", NULL }; |
70551f47 RD |
2160 | |
2161 | self = self; | |
107e4716 | 2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2163 | return NULL; |
2d091820 RD |
2164 | if (_argo0) { |
2165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2168 | return NULL; | |
2169 | } | |
2170 | } | |
2171 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2172 | { |
474c48f9 | 2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2174 | wxCheckBox_SetValue(_arg0,_arg1); |
ab9bc19b | 2175 | |
474c48f9 | 2176 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2177 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2178 | } Py_INCREF(Py_None); |
70551f47 RD |
2179 | _resultobj = Py_None; |
2180 | return _resultobj; | |
2181 | } | |
2182 | ||
65191ae8 RD |
2183 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2184 | wxChoice *src; | |
2185 | wxControlWithItems *dest; | |
2186 | src = (wxChoice *) ptr; | |
2187 | dest = (wxControlWithItems *) src; | |
2188 | return (void *) dest; | |
2189 | } | |
2190 | ||
70551f47 RD |
2191 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2192 | wxChoice *src; | |
2193 | wxControl *dest; | |
2194 | src = (wxChoice *) ptr; | |
2195 | dest = (wxControl *) src; | |
2196 | return (void *) dest; | |
2197 | } | |
2198 | ||
2199 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2200 | wxChoice *src; | |
2201 | wxWindow *dest; | |
2202 | src = (wxChoice *) ptr; | |
2203 | dest = (wxWindow *) src; | |
2204 | return (void *) dest; | |
2205 | } | |
2206 | ||
2207 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2208 | wxChoice *src; | |
2209 | wxEvtHandler *dest; | |
2210 | src = (wxChoice *) ptr; | |
2211 | dest = (wxEvtHandler *) src; | |
2212 | return (void *) dest; | |
2213 | } | |
2214 | ||
9df61a29 RD |
2215 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2216 | wxChoice *src; | |
2217 | wxObject *dest; | |
2218 | src = (wxChoice *) ptr; | |
2219 | dest = (wxObject *) src; | |
2220 | return (void *) dest; | |
2221 | } | |
2222 | ||
70551f47 | 2223 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 2224 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2225 | PyObject * _resultobj; |
2226 | wxChoice * _result; | |
2227 | wxWindow * _arg0; | |
2228 | wxWindowID _arg1; | |
b68dc582 RD |
2229 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2230 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2231 | int _arg4 = (int ) 0; |
2232 | wxString * _arg5 = (wxString *) NULL; | |
2233 | long _arg6 = (long ) 0; | |
b68dc582 | 2234 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2235 | wxString * _arg8 = (wxString *) &wxPyChoiceNameStr; |
2d091820 | 2236 | PyObject * _argo0 = 0; |
37f6a977 RD |
2237 | wxPoint temp; |
2238 | PyObject * _obj2 = 0; | |
2239 | wxSize temp0; | |
2240 | PyObject * _obj3 = 0; | |
70551f47 | 2241 | PyObject * _obj5 = 0; |
2d091820 | 2242 | PyObject * _argo7 = 0; |
9a74fcaf | 2243 | PyObject * _obj8 = 0; |
e02c03a4 | 2244 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2245 | char _ptemp[128]; |
2246 | ||
2247 | self = self; | |
9a74fcaf | 2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
70551f47 | 2249 | return NULL; |
2d091820 RD |
2250 | if (_argo0) { |
2251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2254 | return NULL; | |
2255 | } | |
2256 | } | |
37f6a977 RD |
2257 | if (_obj2) |
2258 | { | |
2259 | _arg2 = &temp; | |
2260 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 2261 | return NULL; |
37f6a977 RD |
2262 | } |
2263 | if (_obj3) | |
2264 | { | |
2265 | _arg3 = &temp0; | |
2266 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 2267 | return NULL; |
37f6a977 | 2268 | } |
70551f47 RD |
2269 | if (_obj5) |
2270 | { | |
2271 | _arg5 = wxString_LIST_helper(_obj5); | |
2272 | if (_arg5 == NULL) { | |
2273 | return NULL; | |
2274 | } | |
2275 | } | |
2d091820 RD |
2276 | if (_argo7) { |
2277 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
70551f47 RD |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
9a74fcaf RD |
2283 | if (_obj8) |
2284 | { | |
2285 | _arg8 = wxString_in_helper(_obj8); | |
2286 | if (_arg8 == NULL) | |
2287 | return NULL; | |
2288 | } | |
70551f47 | 2289 | { |
ab9bc19b RD |
2290 | if (_obj5) { |
2291 | _arg4 = PyList_Size(_obj5); | |
2292 | } | |
2293 | else { | |
2294 | _arg4 = 0; | |
2295 | } | |
70551f47 | 2296 | } |
ab9bc19b | 2297 | { |
474c48f9 | 2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2299 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 2300 | |
474c48f9 | 2301 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2302 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2303 | } if (_result) { |
2304 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2305 | _resultobj = Py_BuildValue("s",_ptemp); | |
2306 | } else { | |
2307 | Py_INCREF(Py_None); | |
2308 | _resultobj = Py_None; | |
2309 | } | |
70551f47 RD |
2310 | { |
2311 | delete [] _arg5; | |
9a74fcaf RD |
2312 | } |
2313 | { | |
2314 | if (_obj8) | |
2315 | delete _arg8; | |
70551f47 RD |
2316 | } |
2317 | return _resultobj; | |
2318 | } | |
2319 | ||
aa2a5b86 RD |
2320 | #define new_wxPreChoice() (new wxChoice()) |
2321 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2322 | PyObject * _resultobj; |
aa2a5b86 RD |
2323 | wxChoice * _result; |
2324 | char *_kwnames[] = { NULL }; | |
2325 | char _ptemp[128]; | |
70551f47 RD |
2326 | |
2327 | self = self; | |
aa2a5b86 RD |
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2329 | return NULL; | |
2330 | { | |
474c48f9 | 2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2332 | _result = (wxChoice *)new_wxPreChoice(); |
aa2a5b86 | 2333 | |
474c48f9 | 2334 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2335 | if (PyErr_Occurred()) return NULL; |
2336 | } if (_result) { | |
2337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2338 | _resultobj = Py_BuildValue("s",_ptemp); | |
2339 | } else { | |
2340 | Py_INCREF(Py_None); | |
2341 | _resultobj = Py_None; | |
2342 | } | |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
2346 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2347 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2348 | PyObject * _resultobj; | |
2349 | bool _result; | |
2350 | wxChoice * _arg0; | |
2351 | wxWindow * _arg1; | |
2352 | wxWindowID _arg2; | |
2353 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2354 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2355 | int _arg5 = (int ) 0; | |
2356 | wxString * _arg6 = (wxString *) NULL; | |
2357 | long _arg7 = (long ) 0; | |
2358 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2359 | wxString * _arg9 = (wxString *) &wxPyChoiceNameStr; |
aa2a5b86 RD |
2360 | PyObject * _argo0 = 0; |
2361 | PyObject * _argo1 = 0; | |
2362 | wxPoint temp; | |
2363 | PyObject * _obj3 = 0; | |
2364 | wxSize temp0; | |
2365 | PyObject * _obj4 = 0; | |
2366 | PyObject * _obj6 = 0; | |
2367 | PyObject * _argo8 = 0; | |
9a74fcaf | 2368 | PyObject * _obj9 = 0; |
aa2a5b86 RD |
2369 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
2370 | ||
2371 | self = self; | |
9a74fcaf | 2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
aa2a5b86 RD |
2373 | return NULL; |
2374 | if (_argo0) { | |
2375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2378 | return NULL; | |
2379 | } | |
2380 | } | |
2381 | if (_argo1) { | |
2382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2385 | return NULL; | |
2386 | } | |
2387 | } | |
2388 | if (_obj3) | |
2389 | { | |
2390 | _arg3 = &temp; | |
2391 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2392 | return NULL; | |
2393 | } | |
2394 | if (_obj4) | |
2395 | { | |
2396 | _arg4 = &temp0; | |
2397 | if (! wxSize_helper(_obj4, &_arg4)) | |
2398 | return NULL; | |
2399 | } | |
2400 | if (_obj6) | |
2401 | { | |
2402 | _arg6 = wxString_LIST_helper(_obj6); | |
2403 | if (_arg6 == NULL) { | |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
2407 | if (_argo8) { | |
2408 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); | |
2411 | return NULL; | |
2412 | } | |
2413 | } | |
9a74fcaf RD |
2414 | if (_obj9) |
2415 | { | |
2416 | _arg9 = wxString_in_helper(_obj9); | |
2417 | if (_arg9 == NULL) | |
2418 | return NULL; | |
2419 | } | |
aa2a5b86 RD |
2420 | { |
2421 | if (_obj6) { | |
65191ae8 RD |
2422 | _arg5 = PyList_Size(_obj6); |
2423 | } | |
2424 | else { | |
2425 | _arg5 = 0; | |
70551f47 | 2426 | } |
65191ae8 | 2427 | } |
70551f47 | 2428 | { |
474c48f9 | 2429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2430 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 2431 | |
474c48f9 | 2432 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2433 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2434 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 2435 | { |
65191ae8 | 2436 | delete [] _arg6; |
9a74fcaf RD |
2437 | } |
2438 | { | |
2439 | if (_obj9) | |
2440 | delete _arg9; | |
70551f47 RD |
2441 | } |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
65191ae8 RD |
2445 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2446 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2447 | PyObject * _resultobj; |
70551f47 | 2448 | wxChoice * _arg0; |
2d091820 | 2449 | PyObject * _argo0 = 0; |
107e4716 | 2450 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2451 | |
2452 | self = self; | |
65191ae8 | 2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
70551f47 | 2454 | return NULL; |
2d091820 RD |
2455 | if (_argo0) { |
2456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
70551f47 RD |
2459 | return NULL; |
2460 | } | |
2461 | } | |
70551f47 | 2462 | { |
474c48f9 | 2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2464 | wxChoice_Clear(_arg0); |
ab9bc19b | 2465 | |
474c48f9 | 2466 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2467 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
2468 | } Py_INCREF(Py_None); |
2469 | _resultobj = Py_None; | |
70551f47 RD |
2470 | return _resultobj; |
2471 | } | |
2472 | ||
65191ae8 RD |
2473 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2474 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2475 | PyObject * _resultobj; |
2476 | int _result; | |
2477 | wxChoice * _arg0; | |
2d091820 | 2478 | PyObject * _argo0 = 0; |
107e4716 | 2479 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2480 | |
2481 | self = self; | |
65191ae8 | 2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
70551f47 | 2483 | return NULL; |
2d091820 RD |
2484 | if (_argo0) { |
2485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
70551f47 RD |
2488 | return NULL; |
2489 | } | |
2490 | } | |
ab9bc19b | 2491 | { |
474c48f9 | 2492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2493 | _result = (int )wxChoice_GetColumns(_arg0); |
ab9bc19b | 2494 | |
474c48f9 | 2495 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2496 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2497 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2498 | return _resultobj; |
2499 | } | |
2500 | ||
2501 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
107e4716 | 2502 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2503 | PyObject * _resultobj; |
2504 | wxChoice * _arg0; | |
2d091820 RD |
2505 | int _arg1 = (int ) 1; |
2506 | PyObject * _argo0 = 0; | |
107e4716 | 2507 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2508 | |
2509 | self = self; | |
107e4716 | 2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2511 | return NULL; |
2d091820 RD |
2512 | if (_argo0) { |
2513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2516 | return NULL; | |
2517 | } | |
2518 | } | |
ab9bc19b | 2519 | { |
474c48f9 | 2520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2521 | wxChoice_SetColumns(_arg0,_arg1); |
ab9bc19b | 2522 | |
474c48f9 | 2523 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2524 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2525 | } Py_INCREF(Py_None); |
70551f47 RD |
2526 | _resultobj = Py_None; |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
2530 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 2531 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2532 | PyObject * _resultobj; |
2533 | wxChoice * _arg0; | |
2534 | int _arg1; | |
2d091820 | 2535 | PyObject * _argo0 = 0; |
107e4716 | 2536 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2537 | |
2538 | self = self; | |
107e4716 | 2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2540 | return NULL; |
2d091820 RD |
2541 | if (_argo0) { |
2542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2545 | return NULL; | |
2546 | } | |
2547 | } | |
ab9bc19b | 2548 | { |
474c48f9 | 2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2550 | wxChoice_SetSelection(_arg0,_arg1); |
ab9bc19b | 2551 | |
474c48f9 | 2552 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2553 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2554 | } Py_INCREF(Py_None); |
70551f47 RD |
2555 | _resultobj = Py_None; |
2556 | return _resultobj; | |
2557 | } | |
2558 | ||
2559 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 2560 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2561 | PyObject * _resultobj; |
2562 | wxChoice * _arg0; | |
2563 | wxString * _arg1; | |
2d091820 | 2564 | PyObject * _argo0 = 0; |
70551f47 | 2565 | PyObject * _obj1 = 0; |
107e4716 | 2566 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2567 | |
2568 | self = self; | |
107e4716 | 2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2570 | return NULL; |
2d091820 RD |
2571 | if (_argo0) { |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
2578 | { | |
c8bc7bb8 RD |
2579 | _arg1 = wxString_in_helper(_obj1); |
2580 | if (_arg1 == NULL) | |
2cd2fac8 | 2581 | return NULL; |
70551f47 | 2582 | } |
ab9bc19b | 2583 | { |
474c48f9 | 2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2585 | wxChoice_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 2586 | |
474c48f9 | 2587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2588 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2589 | } Py_INCREF(Py_None); |
70551f47 RD |
2590 | _resultobj = Py_None; |
2591 | { | |
2592 | if (_obj1) | |
2593 | delete _arg1; | |
2594 | } | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
2c8a649d RD |
2598 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2599 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2600 | PyObject * _resultobj; | |
2601 | wxChoice * _arg0; | |
2602 | int _arg1; | |
2603 | wxString * _arg2; | |
2604 | PyObject * _argo0 = 0; | |
2605 | PyObject * _obj2 = 0; | |
2606 | char *_kwnames[] = { "self","n","s", NULL }; | |
2607 | ||
2608 | self = self; | |
2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2610 | return NULL; | |
2611 | if (_argo0) { | |
2612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2615 | return NULL; | |
2616 | } | |
2617 | } | |
2618 | { | |
c8bc7bb8 RD |
2619 | _arg2 = wxString_in_helper(_obj2); |
2620 | if (_arg2 == NULL) | |
2c8a649d | 2621 | return NULL; |
2c8a649d RD |
2622 | } |
2623 | { | |
474c48f9 | 2624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2625 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
2c8a649d | 2626 | |
474c48f9 | 2627 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
2628 | if (PyErr_Occurred()) return NULL; |
2629 | } Py_INCREF(Py_None); | |
2630 | _resultobj = Py_None; | |
2631 | { | |
2632 | if (_obj2) | |
2633 | delete _arg2; | |
2634 | } | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
70551f47 RD |
2638 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2639 | wxComboBox *src; | |
2640 | wxControl *dest; | |
2641 | src = (wxComboBox *) ptr; | |
2642 | dest = (wxControl *) src; | |
2643 | return (void *) dest; | |
2644 | } | |
2645 | ||
2646 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2647 | wxComboBox *src; | |
2648 | wxWindow *dest; | |
2649 | src = (wxComboBox *) ptr; | |
2650 | dest = (wxWindow *) src; | |
2651 | return (void *) dest; | |
2652 | } | |
2653 | ||
2654 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2655 | wxComboBox *src; | |
2656 | wxEvtHandler *dest; | |
2657 | src = (wxComboBox *) ptr; | |
2658 | dest = (wxEvtHandler *) src; | |
2659 | return (void *) dest; | |
2660 | } | |
2661 | ||
9df61a29 RD |
2662 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2663 | wxComboBox *src; | |
2664 | wxObject *dest; | |
2665 | src = (wxComboBox *) ptr; | |
2666 | dest = (wxObject *) src; | |
2667 | return (void *) dest; | |
2668 | } | |
2669 | ||
70551f47 | 2670 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
107e4716 | 2671 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2672 | PyObject * _resultobj; |
2673 | wxComboBox * _result; | |
2674 | wxWindow * _arg0; | |
2675 | wxWindowID _arg1; | |
9a74fcaf | 2676 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
2677 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2678 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2679 | int _arg5 = (int ) 0; |
2680 | wxString * _arg6 = (wxString *) NULL; | |
2681 | long _arg7 = (long ) 0; | |
b68dc582 | 2682 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2683 | wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr; |
2d091820 | 2684 | PyObject * _argo0 = 0; |
9a74fcaf | 2685 | PyObject * _obj2 = 0; |
37f6a977 RD |
2686 | wxPoint temp; |
2687 | PyObject * _obj3 = 0; | |
2688 | wxSize temp0; | |
2689 | PyObject * _obj4 = 0; | |
70551f47 | 2690 | PyObject * _obj6 = 0; |
2d091820 | 2691 | PyObject * _argo8 = 0; |
9a74fcaf | 2692 | PyObject * _obj9 = 0; |
e02c03a4 | 2693 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2694 | char _ptemp[128]; |
2695 | ||
2696 | self = self; | |
9a74fcaf | 2697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 2698 | return NULL; |
2d091820 RD |
2699 | if (_argo0) { |
2700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2703 | return NULL; | |
2704 | } | |
2705 | } | |
9a74fcaf RD |
2706 | if (_obj2) |
2707 | { | |
2708 | _arg2 = wxString_in_helper(_obj2); | |
2709 | if (_arg2 == NULL) | |
2710 | return NULL; | |
2711 | } | |
37f6a977 RD |
2712 | if (_obj3) |
2713 | { | |
2714 | _arg3 = &temp; | |
2715 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 2716 | return NULL; |
37f6a977 RD |
2717 | } |
2718 | if (_obj4) | |
2719 | { | |
2720 | _arg4 = &temp0; | |
2721 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 2722 | return NULL; |
37f6a977 | 2723 | } |
70551f47 RD |
2724 | if (_obj6) |
2725 | { | |
2726 | _arg6 = wxString_LIST_helper(_obj6); | |
2727 | if (_arg6 == NULL) { | |
2728 | return NULL; | |
2729 | } | |
2730 | } | |
2d091820 RD |
2731 | if (_argo8) { |
2732 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
2733 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
2734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2735 | return NULL; | |
2736 | } | |
2737 | } | |
9a74fcaf RD |
2738 | if (_obj9) |
2739 | { | |
2740 | _arg9 = wxString_in_helper(_obj9); | |
2741 | if (_arg9 == NULL) | |
2742 | return NULL; | |
2743 | } | |
70551f47 | 2744 | { |
ab9bc19b RD |
2745 | if (_obj6) { |
2746 | _arg5 = PyList_Size(_obj6); | |
2747 | } | |
2748 | else { | |
2749 | _arg5 = 0; | |
2750 | } | |
70551f47 | 2751 | } |
ab9bc19b | 2752 | { |
474c48f9 | 2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2754 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 2755 | |
474c48f9 | 2756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2757 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2758 | } if (_result) { |
2759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2760 | _resultobj = Py_BuildValue("s",_ptemp); | |
2761 | } else { | |
2762 | Py_INCREF(Py_None); | |
2763 | _resultobj = Py_None; | |
2764 | } | |
9a74fcaf RD |
2765 | { |
2766 | if (_obj2) | |
2767 | delete _arg2; | |
2768 | } | |
70551f47 RD |
2769 | { |
2770 | delete [] _arg6; | |
9a74fcaf RD |
2771 | } |
2772 | { | |
2773 | if (_obj9) | |
2774 | delete _arg9; | |
70551f47 RD |
2775 | } |
2776 | return _resultobj; | |
2777 | } | |
2778 | ||
aa2a5b86 RD |
2779 | #define new_wxPreComboBox() (new wxComboBox()) |
2780 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject * _resultobj; | |
2782 | wxComboBox * _result; | |
2783 | char *_kwnames[] = { NULL }; | |
2784 | char _ptemp[128]; | |
2785 | ||
2786 | self = self; | |
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2788 | return NULL; | |
2789 | { | |
474c48f9 | 2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2791 | _result = (wxComboBox *)new_wxPreComboBox(); |
aa2a5b86 | 2792 | |
474c48f9 | 2793 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2794 | if (PyErr_Occurred()) return NULL; |
2795 | } if (_result) { | |
2796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2797 | _resultobj = Py_BuildValue("s",_ptemp); | |
2798 | } else { | |
2799 | Py_INCREF(Py_None); | |
2800 | _resultobj = Py_None; | |
2801 | } | |
2802 | return _resultobj; | |
2803 | } | |
2804 | ||
2805 | #define wxComboBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
2806 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2807 | PyObject * _resultobj; | |
2808 | bool _result; | |
2809 | wxComboBox * _arg0; | |
2810 | wxWindow * _arg1; | |
2811 | wxWindowID _arg2; | |
9a74fcaf | 2812 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
2813 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
2814 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2815 | int _arg6 = (int ) 0; | |
2816 | wxString * _arg7 = (wxString *) NULL; | |
2817 | long _arg8 = (long ) 0; | |
2818 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2819 | wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr; |
aa2a5b86 RD |
2820 | PyObject * _argo0 = 0; |
2821 | PyObject * _argo1 = 0; | |
9a74fcaf | 2822 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
2823 | wxPoint temp; |
2824 | PyObject * _obj4 = 0; | |
2825 | wxSize temp0; | |
2826 | PyObject * _obj5 = 0; | |
2827 | PyObject * _obj7 = 0; | |
2828 | PyObject * _argo9 = 0; | |
9a74fcaf | 2829 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
2830 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; |
2831 | ||
2832 | self = self; | |
9a74fcaf | 2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10)) |
aa2a5b86 RD |
2834 | return NULL; |
2835 | if (_argo0) { | |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | if (_argo1) { | |
2843 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2844 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2846 | return NULL; | |
2847 | } | |
2848 | } | |
9a74fcaf RD |
2849 | if (_obj3) |
2850 | { | |
2851 | _arg3 = wxString_in_helper(_obj3); | |
2852 | if (_arg3 == NULL) | |
2853 | return NULL; | |
2854 | } | |
aa2a5b86 RD |
2855 | if (_obj4) |
2856 | { | |
2857 | _arg4 = &temp; | |
2858 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2859 | return NULL; | |
2860 | } | |
2861 | if (_obj5) | |
2862 | { | |
2863 | _arg5 = &temp0; | |
2864 | if (! wxSize_helper(_obj5, &_arg5)) | |
2865 | return NULL; | |
2866 | } | |
2867 | if (_obj7) | |
2868 | { | |
2869 | _arg7 = wxString_LIST_helper(_obj7); | |
2870 | if (_arg7 == NULL) { | |
2871 | return NULL; | |
2872 | } | |
2873 | } | |
2874 | if (_argo9) { | |
2875 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
2876 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
2877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); | |
2878 | return NULL; | |
2879 | } | |
2880 | } | |
9a74fcaf RD |
2881 | if (_obj10) |
2882 | { | |
2883 | _arg10 = wxString_in_helper(_obj10); | |
2884 | if (_arg10 == NULL) | |
2885 | return NULL; | |
2886 | } | |
aa2a5b86 RD |
2887 | { |
2888 | if (_obj7) { | |
2889 | _arg6 = PyList_Size(_obj7); | |
2890 | } | |
2891 | else { | |
2892 | _arg6 = 0; | |
2893 | } | |
2894 | } | |
2895 | { | |
474c48f9 | 2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2897 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
aa2a5b86 | 2898 | |
474c48f9 | 2899 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2900 | if (PyErr_Occurred()) return NULL; |
2901 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
2902 | { |
2903 | if (_obj3) | |
2904 | delete _arg3; | |
2905 | } | |
aa2a5b86 RD |
2906 | { |
2907 | delete [] _arg7; | |
9a74fcaf RD |
2908 | } |
2909 | { | |
2910 | if (_obj10) | |
2911 | delete _arg10; | |
aa2a5b86 RD |
2912 | } |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
70551f47 | 2916 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
107e4716 | 2917 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2918 | PyObject * _resultobj; |
2919 | wxComboBox * _arg0; | |
2d091820 | 2920 | PyObject * _argo0 = 0; |
107e4716 | 2921 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2922 | |
2923 | self = self; | |
107e4716 | 2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
70551f47 | 2925 | return NULL; |
2d091820 RD |
2926 | if (_argo0) { |
2927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2930 | return NULL; | |
2931 | } | |
2932 | } | |
ab9bc19b | 2933 | { |
474c48f9 | 2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2935 | wxComboBox_Copy(_arg0); |
ab9bc19b | 2936 | |
474c48f9 | 2937 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2938 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2939 | } Py_INCREF(Py_None); |
70551f47 RD |
2940 | _resultobj = Py_None; |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 2945 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2946 | PyObject * _resultobj; |
2947 | wxComboBox * _arg0; | |
2d091820 | 2948 | PyObject * _argo0 = 0; |
107e4716 | 2949 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2950 | |
2951 | self = self; | |
107e4716 | 2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
70551f47 | 2953 | return NULL; |
2d091820 RD |
2954 | if (_argo0) { |
2955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2958 | return NULL; | |
2959 | } | |
2960 | } | |
ab9bc19b | 2961 | { |
474c48f9 | 2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2963 | wxComboBox_Cut(_arg0); |
ab9bc19b | 2964 | |
474c48f9 | 2965 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2966 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2967 | } Py_INCREF(Py_None); |
70551f47 RD |
2968 | _resultobj = Py_None; |
2969 | return _resultobj; | |
2970 | } | |
2971 | ||
70551f47 | 2972 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
107e4716 | 2973 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2974 | PyObject * _resultobj; |
2975 | long _result; | |
2976 | wxComboBox * _arg0; | |
2d091820 | 2977 | PyObject * _argo0 = 0; |
65191ae8 | 2978 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2979 | |
2980 | self = self; | |
65191ae8 | 2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 2982 | return NULL; |
2d091820 RD |
2983 | if (_argo0) { |
2984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
70551f47 RD |
2987 | return NULL; |
2988 | } | |
2989 | } | |
70551f47 | 2990 | { |
474c48f9 | 2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2992 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
ab9bc19b | 2993 | |
474c48f9 | 2994 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2995 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2996 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
2997 | return _resultobj; |
2998 | } | |
2999 | ||
65191ae8 RD |
3000 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
3001 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3002 | PyObject * _resultobj; |
65191ae8 | 3003 | long _result; |
70551f47 | 3004 | wxComboBox * _arg0; |
2d091820 | 3005 | PyObject * _argo0 = 0; |
107e4716 | 3006 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3007 | |
3008 | self = self; | |
65191ae8 | 3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 3010 | return NULL; |
2d091820 RD |
3011 | if (_argo0) { |
3012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 3014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
70551f47 RD |
3015 | return NULL; |
3016 | } | |
3017 | } | |
70551f47 | 3018 | { |
474c48f9 | 3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3020 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
ab9bc19b | 3021 | |
474c48f9 | 3022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3023 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 3024 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
3025 | return _resultobj; |
3026 | } | |
3027 | ||
3028 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 3029 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3030 | PyObject * _resultobj; |
3031 | wxString * _result; | |
3032 | wxComboBox * _arg0; | |
2d091820 | 3033 | PyObject * _argo0 = 0; |
107e4716 | 3034 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3035 | |
3036 | self = self; | |
107e4716 | 3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 3038 | return NULL; |
2d091820 RD |
3039 | if (_argo0) { |
3040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
70551f47 | 3046 | { |
474c48f9 | 3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3048 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
ab9bc19b | 3049 | |
474c48f9 | 3050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3051 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3052 | }{ |
c8bc7bb8 RD |
3053 | #if wxUSE_UNICODE |
3054 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3055 | #else | |
e02c03a4 | 3056 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3057 | #endif |
70551f47 RD |
3058 | } |
3059 | { | |
3060 | delete _result; | |
3061 | } | |
3062 | return _resultobj; | |
3063 | } | |
3064 | ||
70551f47 | 3065 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
107e4716 | 3066 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3067 | PyObject * _resultobj; |
3068 | wxComboBox * _arg0; | |
2d091820 | 3069 | PyObject * _argo0 = 0; |
107e4716 | 3070 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3071 | |
3072 | self = self; | |
107e4716 | 3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
70551f47 | 3074 | return NULL; |
2d091820 RD |
3075 | if (_argo0) { |
3076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
3079 | return NULL; | |
3080 | } | |
3081 | } | |
ab9bc19b | 3082 | { |
474c48f9 | 3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3084 | wxComboBox_Paste(_arg0); |
ab9bc19b | 3085 | |
474c48f9 | 3086 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3087 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3088 | } Py_INCREF(Py_None); |
70551f47 RD |
3089 | _resultobj = Py_None; |
3090 | return _resultobj; | |
3091 | } | |
3092 | ||
3093 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3094 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3095 | PyObject * _resultobj; |
3096 | wxComboBox * _arg0; | |
3097 | long _arg1; | |
3098 | long _arg2; | |
3099 | wxString * _arg3; | |
2d091820 | 3100 | PyObject * _argo0 = 0; |
70551f47 | 3101 | PyObject * _obj3 = 0; |
107e4716 | 3102 | char *_kwnames[] = { "self","from","to","text", NULL }; |
70551f47 RD |
3103 | |
3104 | self = self; | |
107e4716 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 3106 | return NULL; |
2d091820 RD |
3107 | if (_argo0) { |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
3114 | { | |
c8bc7bb8 RD |
3115 | _arg3 = wxString_in_helper(_obj3); |
3116 | if (_arg3 == NULL) | |
70551f47 | 3117 | return NULL; |
70551f47 | 3118 | } |
ab9bc19b | 3119 | { |
474c48f9 | 3120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3121 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 3122 | |
474c48f9 | 3123 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3124 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3125 | } Py_INCREF(Py_None); |
70551f47 RD |
3126 | _resultobj = Py_None; |
3127 | { | |
3128 | if (_obj3) | |
3129 | delete _arg3; | |
3130 | } | |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
107e4716 | 3135 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3136 | PyObject * _resultobj; |
3137 | wxComboBox * _arg0; | |
3138 | long _arg1; | |
3139 | long _arg2; | |
2d091820 | 3140 | PyObject * _argo0 = 0; |
107e4716 | 3141 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3142 | |
3143 | self = self; | |
107e4716 | 3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3145 | return NULL; |
2d091820 RD |
3146 | if (_argo0) { |
3147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3150 | return NULL; | |
3151 | } | |
3152 | } | |
ab9bc19b | 3153 | { |
474c48f9 | 3154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3155 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 3156 | |
474c48f9 | 3157 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3158 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3159 | } Py_INCREF(Py_None); |
70551f47 RD |
3160 | _resultobj = Py_None; |
3161 | return _resultobj; | |
3162 | } | |
3163 | ||
3164 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 3165 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3166 | PyObject * _resultobj; |
3167 | wxComboBox * _arg0; | |
3168 | long _arg1; | |
2d091820 | 3169 | PyObject * _argo0 = 0; |
107e4716 | 3170 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3171 | |
3172 | self = self; | |
107e4716 | 3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3174 | return NULL; |
2d091820 RD |
3175 | if (_argo0) { |
3176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3179 | return NULL; | |
3180 | } | |
3181 | } | |
ab9bc19b | 3182 | { |
474c48f9 | 3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3184 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
ab9bc19b | 3185 | |
474c48f9 | 3186 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3187 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3188 | } Py_INCREF(Py_None); |
70551f47 RD |
3189 | _resultobj = Py_None; |
3190 | return _resultobj; | |
3191 | } | |
3192 | ||
3193 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 3194 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3195 | PyObject * _resultobj; |
3196 | wxComboBox * _arg0; | |
2d091820 | 3197 | PyObject * _argo0 = 0; |
107e4716 | 3198 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3199 | |
3200 | self = self; | |
107e4716 | 3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 3202 | return NULL; |
2d091820 RD |
3203 | if (_argo0) { |
3204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3207 | return NULL; | |
3208 | } | |
3209 | } | |
ab9bc19b | 3210 | { |
474c48f9 | 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3212 | wxComboBox_SetInsertionPointEnd(_arg0); |
ab9bc19b | 3213 | |
474c48f9 | 3214 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3215 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3216 | } Py_INCREF(Py_None); |
70551f47 RD |
3217 | _resultobj = Py_None; |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
2d091820 | 3221 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
107e4716 | 3222 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2d091820 RD |
3223 | PyObject * _resultobj; |
3224 | wxComboBox * _arg0; | |
3225 | int _arg1; | |
3226 | PyObject * _argo0 = 0; | |
107e4716 | 3227 | char *_kwnames[] = { "self","n", NULL }; |
2d091820 RD |
3228 | |
3229 | self = self; | |
107e4716 | 3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
2d091820 RD |
3231 | return NULL; |
3232 | if (_argo0) { | |
3233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3236 | return NULL; | |
3237 | } | |
3238 | } | |
3239 | { | |
474c48f9 | 3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3241 | wxComboBox_SetSelection(_arg0,_arg1); |
2d091820 | 3242 | |
474c48f9 | 3243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3244 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3245 | } Py_INCREF(Py_None); |
3246 | _resultobj = Py_None; | |
3247 | return _resultobj; | |
3248 | } | |
3249 | ||
70551f47 | 3250 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
107e4716 | 3251 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3252 | PyObject * _resultobj; |
3253 | wxComboBox * _arg0; | |
3254 | long _arg1; | |
3255 | long _arg2; | |
2d091820 | 3256 | PyObject * _argo0 = 0; |
107e4716 | 3257 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3258 | |
3259 | self = self; | |
107e4716 | 3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3261 | return NULL; |
2d091820 RD |
3262 | if (_argo0) { |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
ab9bc19b | 3269 | { |
474c48f9 | 3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3271 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
ab9bc19b | 3272 | |
474c48f9 | 3273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3274 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3275 | } Py_INCREF(Py_None); |
70551f47 RD |
3276 | _resultobj = Py_None; |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3281 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3282 | PyObject * _resultobj; |
3283 | wxComboBox * _arg0; | |
3284 | wxString * _arg1; | |
2d091820 | 3285 | PyObject * _argo0 = 0; |
70551f47 | 3286 | PyObject * _obj1 = 0; |
107e4716 | 3287 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
3288 | |
3289 | self = self; | |
107e4716 | 3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3291 | return NULL; |
2d091820 RD |
3292 | if (_argo0) { |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
3299 | { | |
c8bc7bb8 RD |
3300 | _arg1 = wxString_in_helper(_obj1); |
3301 | if (_arg1 == NULL) | |
2cd2fac8 | 3302 | return NULL; |
70551f47 | 3303 | } |
ab9bc19b | 3304 | { |
474c48f9 | 3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3306 | wxComboBox_SetValue(_arg0,*_arg1); |
ab9bc19b | 3307 | |
474c48f9 | 3308 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3309 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3310 | } Py_INCREF(Py_None); |
70551f47 RD |
3311 | _resultobj = Py_None; |
3312 | { | |
3313 | if (_obj1) | |
3314 | delete _arg1; | |
3315 | } | |
3316 | return _resultobj; | |
3317 | } | |
3318 | ||
2c8a649d RD |
3319 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3320 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3321 | PyObject * _resultobj; | |
3322 | wxComboBox * _arg0; | |
3323 | bool _arg1; | |
3324 | PyObject * _argo0 = 0; | |
3325 | int tempbool1; | |
3326 | char *_kwnames[] = { "self","editable", NULL }; | |
3327 | ||
3328 | self = self; | |
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3330 | return NULL; | |
3331 | if (_argo0) { | |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3335 | return NULL; | |
3336 | } | |
3337 | } | |
3338 | _arg1 = (bool ) tempbool1; | |
3339 | { | |
474c48f9 | 3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3341 | wxComboBox_SetEditable(_arg0,_arg1); |
2c8a649d | 3342 | |
474c48f9 | 3343 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
3344 | if (PyErr_Occurred()) return NULL; |
3345 | } Py_INCREF(Py_None); | |
3346 | _resultobj = Py_None; | |
3347 | return _resultobj; | |
3348 | } | |
3349 | ||
c70fd24f RD |
3350 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) |
3351 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject * _resultobj; | |
3353 | wxComboBox * _arg0; | |
3354 | PyObject * _argo0 = 0; | |
3355 | char *_kwnames[] = { "self", NULL }; | |
3356 | ||
3357 | self = self; | |
3358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) | |
3359 | return NULL; | |
3360 | if (_argo0) { | |
3361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); | |
3364 | return NULL; | |
3365 | } | |
3366 | } | |
3367 | { | |
474c48f9 | 3368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3369 | wxComboBox_Clear(_arg0); |
c70fd24f | 3370 | |
474c48f9 | 3371 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3372 | if (PyErr_Occurred()) return NULL; |
3373 | } Py_INCREF(Py_None); | |
3374 | _resultobj = Py_None; | |
3375 | return _resultobj; | |
3376 | } | |
3377 | ||
3378 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
3379 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject * _resultobj; | |
3381 | wxComboBox * _arg0; | |
3382 | int _arg1; | |
3383 | PyObject * _argo0 = 0; | |
3384 | char *_kwnames[] = { "self","n", NULL }; | |
3385 | ||
3386 | self = self; | |
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) | |
3388 | return NULL; | |
3389 | if (_argo0) { | |
3390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); | |
3393 | return NULL; | |
3394 | } | |
3395 | } | |
3396 | { | |
474c48f9 | 3397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3398 | wxComboBox_Delete(_arg0,_arg1); |
c70fd24f | 3399 | |
474c48f9 | 3400 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3401 | if (PyErr_Occurred()) return NULL; |
3402 | } Py_INCREF(Py_None); | |
3403 | _resultobj = Py_None; | |
3404 | return _resultobj; | |
3405 | } | |
3406 | ||
3407 | #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
3408 | static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject * _resultobj; | |
3410 | int _result; | |
3411 | wxComboBox * _arg0; | |
3412 | PyObject * _argo0 = 0; | |
3413 | char *_kwnames[] = { "self", NULL }; | |
3414 | ||
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | { | |
474c48f9 | 3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3427 | _result = (int )wxComboBox_GetCount(_arg0); |
c70fd24f | 3428 | |
474c48f9 | 3429 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3430 | if (PyErr_Occurred()) return NULL; |
3431 | } _resultobj = Py_BuildValue("i",_result); | |
3432 | return _resultobj; | |
3433 | } | |
3434 | ||
3435 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
3436 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3437 | PyObject * _resultobj; | |
3438 | wxString * _result; | |
3439 | wxComboBox * _arg0; | |
3440 | int _arg1; | |
3441 | PyObject * _argo0 = 0; | |
3442 | char *_kwnames[] = { "self","n", NULL }; | |
3443 | ||
3444 | self = self; | |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) | |
3446 | return NULL; | |
3447 | if (_argo0) { | |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); | |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | { | |
474c48f9 | 3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3456 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); |
c70fd24f | 3457 | |
474c48f9 | 3458 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3459 | if (PyErr_Occurred()) return NULL; |
3460 | }{ | |
c8bc7bb8 RD |
3461 | #if wxUSE_UNICODE |
3462 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3463 | #else | |
c70fd24f | 3464 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3465 | #endif |
c70fd24f RD |
3466 | } |
3467 | { | |
3468 | delete _result; | |
3469 | } | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
3473 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
3474 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | int _result; | |
3477 | wxComboBox * _arg0; | |
3478 | wxString * _arg1; | |
3479 | PyObject * _argo0 = 0; | |
3480 | PyObject * _obj1 = 0; | |
3481 | char *_kwnames[] = { "self","s", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | { | |
c8bc7bb8 RD |
3494 | _arg1 = wxString_in_helper(_obj1); |
3495 | if (_arg1 == NULL) | |
c70fd24f | 3496 | return NULL; |
c70fd24f RD |
3497 | } |
3498 | { | |
474c48f9 | 3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3500 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); |
c70fd24f | 3501 | |
474c48f9 | 3502 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3503 | if (PyErr_Occurred()) return NULL; |
3504 | } _resultobj = Py_BuildValue("i",_result); | |
3505 | { | |
3506 | if (_obj1) | |
3507 | delete _arg1; | |
3508 | } | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
3512 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3513 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | int _result; | |
3516 | wxComboBox * _arg0; | |
3517 | PyObject * _argo0 = 0; | |
3518 | char *_kwnames[] = { "self", NULL }; | |
3519 | ||
3520 | self = self; | |
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) | |
3522 | return NULL; | |
3523 | if (_argo0) { | |
3524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); | |
3527 | return NULL; | |
3528 | } | |
3529 | } | |
3530 | { | |
474c48f9 | 3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3532 | _result = (int )wxComboBox_GetSelection(_arg0); |
c70fd24f | 3533 | |
474c48f9 | 3534 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3535 | if (PyErr_Occurred()) return NULL; |
3536 | } _resultobj = Py_BuildValue("i",_result); | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
3540 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
3541 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
3543 | wxString * _result; | |
3544 | wxComboBox * _arg0; | |
3545 | PyObject * _argo0 = 0; | |
3546 | char *_kwnames[] = { "self", NULL }; | |
3547 | ||
3548 | self = self; | |
3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) | |
3550 | return NULL; | |
3551 | if (_argo0) { | |
3552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); | |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
3558 | { | |
474c48f9 | 3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3560 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); |
c70fd24f | 3561 | |
474c48f9 | 3562 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3563 | if (PyErr_Occurred()) return NULL; |
3564 | }{ | |
c8bc7bb8 RD |
3565 | #if wxUSE_UNICODE |
3566 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3567 | #else | |
c70fd24f | 3568 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3569 | #endif |
c70fd24f RD |
3570 | } |
3571 | { | |
3572 | delete _result; | |
3573 | } | |
3574 | return _resultobj; | |
3575 | } | |
3576 | ||
3577 | static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) { | |
3578 | if (clientData) { | |
3579 | wxPyClientData* data = new wxPyClientData(clientData); | |
3580 | self->Append(item, data); | |
3581 | } else | |
3582 | self->Append(item); | |
3583 | } | |
3584 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject * _resultobj; | |
3586 | wxComboBox * _arg0; | |
3587 | wxString * _arg1; | |
3588 | PyObject * _arg2 = (PyObject *) NULL; | |
3589 | PyObject * _argo0 = 0; | |
3590 | PyObject * _obj1 = 0; | |
3591 | PyObject * _obj2 = 0; | |
3592 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
3593 | ||
3594 | self = self; | |
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3596 | return NULL; | |
3597 | if (_argo0) { | |
3598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); | |
3601 | return NULL; | |
3602 | } | |
3603 | } | |
3604 | { | |
c8bc7bb8 RD |
3605 | _arg1 = wxString_in_helper(_obj1); |
3606 | if (_arg1 == NULL) | |
c70fd24f | 3607 | return NULL; |
c70fd24f RD |
3608 | } |
3609 | if (_obj2) | |
3610 | { | |
3611 | _arg2 = _obj2; | |
3612 | } | |
3613 | { | |
474c48f9 | 3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3615 | wxComboBox_Append(_arg0,*_arg1,_arg2); |
c70fd24f | 3616 | |
474c48f9 | 3617 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3618 | if (PyErr_Occurred()) return NULL; |
3619 | } Py_INCREF(Py_None); | |
3620 | _resultobj = Py_None; | |
3621 | { | |
3622 | if (_obj1) | |
3623 | delete _arg1; | |
3624 | } | |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { | |
3629 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
3630 | if (data) { | |
3631 | Py_INCREF(data->m_obj); | |
3632 | return data->m_obj; | |
3633 | } else { | |
3634 | Py_INCREF(Py_None); | |
3635 | return Py_None; | |
3636 | } | |
3637 | } | |
3638 | static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject * _resultobj; | |
3640 | PyObject * _result; | |
3641 | wxComboBox * _arg0; | |
3642 | int _arg1; | |
3643 | PyObject * _argo0 = 0; | |
3644 | char *_kwnames[] = { "self","n", NULL }; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1)) | |
3648 | return NULL; | |
3649 | if (_argo0) { | |
3650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p."); | |
3653 | return NULL; | |
3654 | } | |
3655 | } | |
3656 | { | |
474c48f9 | 3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3658 | _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1); |
c70fd24f | 3659 | |
474c48f9 | 3660 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3661 | if (PyErr_Occurred()) return NULL; |
3662 | }{ | |
3663 | _resultobj = _result; | |
3664 | } | |
3665 | return _resultobj; | |
3666 | } | |
3667 | ||
3668 | static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { | |
3669 | wxPyClientData* data = new wxPyClientData(clientData); | |
3670 | self->SetClientObject(n, data); | |
3671 | } | |
3672 | static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject * _resultobj; | |
3674 | wxComboBox * _arg0; | |
3675 | int _arg1; | |
3676 | PyObject * _arg2; | |
3677 | PyObject * _argo0 = 0; | |
3678 | PyObject * _obj2 = 0; | |
3679 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
3680 | ||
3681 | self = self; | |
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3683 | return NULL; | |
3684 | if (_argo0) { | |
3685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p."); | |
3688 | return NULL; | |
3689 | } | |
3690 | } | |
3691 | { | |
3692 | _arg2 = _obj2; | |
3693 | } | |
3694 | { | |
474c48f9 | 3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3696 | wxComboBox_SetClientData(_arg0,_arg1,_arg2); |
c70fd24f | 3697 | |
474c48f9 | 3698 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3699 | if (PyErr_Occurred()) return NULL; |
3700 | } Py_INCREF(Py_None); | |
3701 | _resultobj = Py_None; | |
3702 | return _resultobj; | |
3703 | } | |
3704 | ||
70551f47 RD |
3705 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3706 | wxGauge *src; | |
3707 | wxControl *dest; | |
3708 | src = (wxGauge *) ptr; | |
3709 | dest = (wxControl *) src; | |
3710 | return (void *) dest; | |
3711 | } | |
3712 | ||
3713 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3714 | wxGauge *src; | |
3715 | wxWindow *dest; | |
3716 | src = (wxGauge *) ptr; | |
3717 | dest = (wxWindow *) src; | |
3718 | return (void *) dest; | |
3719 | } | |
3720 | ||
3721 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3722 | wxGauge *src; | |
3723 | wxEvtHandler *dest; | |
3724 | src = (wxGauge *) ptr; | |
3725 | dest = (wxEvtHandler *) src; | |
3726 | return (void *) dest; | |
3727 | } | |
3728 | ||
9df61a29 RD |
3729 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3730 | wxGauge *src; | |
3731 | wxObject *dest; | |
3732 | src = (wxGauge *) ptr; | |
3733 | dest = (wxObject *) src; | |
3734 | return (void *) dest; | |
3735 | } | |
3736 | ||
70551f47 | 3737 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 3738 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3739 | PyObject * _resultobj; |
3740 | wxGauge * _result; | |
3741 | wxWindow * _arg0; | |
3742 | wxWindowID _arg1; | |
3743 | int _arg2; | |
b68dc582 RD |
3744 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3745 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 3746 | long _arg5 = (long ) wxGA_HORIZONTAL; |
b68dc582 | 3747 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 3748 | wxString * _arg7 = (wxString *) &wxPyGaugeNameStr; |
2d091820 | 3749 | PyObject * _argo0 = 0; |
37f6a977 RD |
3750 | wxPoint temp; |
3751 | PyObject * _obj3 = 0; | |
3752 | wxSize temp0; | |
3753 | PyObject * _obj4 = 0; | |
2d091820 | 3754 | PyObject * _argo6 = 0; |
9a74fcaf | 3755 | PyObject * _obj7 = 0; |
107e4716 | 3756 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
70551f47 RD |
3757 | char _ptemp[128]; |
3758 | ||
3759 | self = self; | |
9a74fcaf | 3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 3761 | return NULL; |
2d091820 RD |
3762 | if (_argo0) { |
3763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
37f6a977 RD |
3769 | if (_obj3) |
3770 | { | |
3771 | _arg3 = &temp; | |
3772 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3773 | return NULL; |
37f6a977 RD |
3774 | } |
3775 | if (_obj4) | |
3776 | { | |
3777 | _arg4 = &temp0; | |
3778 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3779 | return NULL; |
37f6a977 | 3780 | } |
2d091820 RD |
3781 | if (_argo6) { |
3782 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
9a74fcaf RD |
3788 | if (_obj7) |
3789 | { | |
3790 | _arg7 = wxString_in_helper(_obj7); | |
3791 | if (_arg7 == NULL) | |
3792 | return NULL; | |
3793 | } | |
ab9bc19b | 3794 | { |
474c48f9 | 3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 3796 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 3797 | |
474c48f9 | 3798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3799 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3800 | } if (_result) { |
3801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3802 | _resultobj = Py_BuildValue("s",_ptemp); | |
3803 | } else { | |
3804 | Py_INCREF(Py_None); | |
3805 | _resultobj = Py_None; | |
3806 | } | |
9a74fcaf RD |
3807 | { |
3808 | if (_obj7) | |
3809 | delete _arg7; | |
3810 | } | |
70551f47 RD |
3811 | return _resultobj; |
3812 | } | |
3813 | ||
aa2a5b86 RD |
3814 | #define new_wxPreGauge() (new wxGauge()) |
3815 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject * _resultobj; | |
3817 | wxGauge * _result; | |
3818 | char *_kwnames[] = { NULL }; | |
3819 | char _ptemp[128]; | |
3820 | ||
3821 | self = self; | |
3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3823 | return NULL; | |
3824 | { | |
474c48f9 | 3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3826 | _result = (wxGauge *)new_wxPreGauge(); |
aa2a5b86 | 3827 | |
474c48f9 | 3828 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3829 | if (PyErr_Occurred()) return NULL; |
3830 | } if (_result) { | |
3831 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3832 | _resultobj = Py_BuildValue("s",_ptemp); | |
3833 | } else { | |
3834 | Py_INCREF(Py_None); | |
3835 | _resultobj = Py_None; | |
3836 | } | |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3841 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject * _resultobj; | |
3843 | bool _result; | |
3844 | wxGauge * _arg0; | |
3845 | wxWindow * _arg1; | |
3846 | wxWindowID _arg2; | |
3847 | int _arg3; | |
3848 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3849 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3850 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3851 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 3852 | wxString * _arg8 = (wxString *) &wxPyGaugeNameStr; |
aa2a5b86 RD |
3853 | PyObject * _argo0 = 0; |
3854 | PyObject * _argo1 = 0; | |
3855 | wxPoint temp; | |
3856 | PyObject * _obj4 = 0; | |
3857 | wxSize temp0; | |
3858 | PyObject * _obj5 = 0; | |
3859 | PyObject * _argo7 = 0; | |
9a74fcaf | 3860 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
3861 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; |
3862 | ||
3863 | self = self; | |
9a74fcaf | 3864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
3865 | return NULL; |
3866 | if (_argo0) { | |
3867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3870 | return NULL; | |
3871 | } | |
3872 | } | |
3873 | if (_argo1) { | |
3874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3877 | return NULL; | |
3878 | } | |
3879 | } | |
3880 | if (_obj4) | |
3881 | { | |
3882 | _arg4 = &temp; | |
3883 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3884 | return NULL; | |
3885 | } | |
3886 | if (_obj5) | |
3887 | { | |
3888 | _arg5 = &temp0; | |
3889 | if (! wxSize_helper(_obj5, &_arg5)) | |
3890 | return NULL; | |
3891 | } | |
3892 | if (_argo7) { | |
3893 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
3894 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
3895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); | |
3896 | return NULL; | |
3897 | } | |
3898 | } | |
9a74fcaf RD |
3899 | if (_obj8) |
3900 | { | |
3901 | _arg8 = wxString_in_helper(_obj8); | |
3902 | if (_arg8 == NULL) | |
3903 | return NULL; | |
3904 | } | |
aa2a5b86 | 3905 | { |
474c48f9 | 3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 3907 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 3908 | |
474c48f9 | 3909 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3910 | if (PyErr_Occurred()) return NULL; |
3911 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
3912 | { |
3913 | if (_obj8) | |
3914 | delete _arg8; | |
3915 | } | |
aa2a5b86 RD |
3916 | return _resultobj; |
3917 | } | |
3918 | ||
70551f47 | 3919 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
107e4716 | 3920 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3921 | PyObject * _resultobj; |
3922 | int _result; | |
3923 | wxGauge * _arg0; | |
2d091820 | 3924 | PyObject * _argo0 = 0; |
107e4716 | 3925 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3926 | |
3927 | self = self; | |
107e4716 | 3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
70551f47 | 3929 | return NULL; |
2d091820 RD |
3930 | if (_argo0) { |
3931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
ab9bc19b | 3937 | { |
474c48f9 | 3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3939 | _result = (int )wxGauge_GetBezelFace(_arg0); |
ab9bc19b | 3940 | |
474c48f9 | 3941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3942 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3943 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3944 | return _resultobj; |
3945 | } | |
3946 | ||
3947 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 3948 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3949 | PyObject * _resultobj; |
3950 | int _result; | |
3951 | wxGauge * _arg0; | |
2d091820 | 3952 | PyObject * _argo0 = 0; |
107e4716 | 3953 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3954 | |
3955 | self = self; | |
107e4716 | 3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
70551f47 | 3957 | return NULL; |
2d091820 RD |
3958 | if (_argo0) { |
3959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3962 | return NULL; | |
3963 | } | |
3964 | } | |
ab9bc19b | 3965 | { |
474c48f9 | 3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3967 | _result = (int )wxGauge_GetRange(_arg0); |
ab9bc19b | 3968 | |
474c48f9 | 3969 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3970 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3971 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3972 | return _resultobj; |
3973 | } | |
3974 | ||
3975 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
107e4716 | 3976 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3977 | PyObject * _resultobj; |
3978 | int _result; | |
3979 | wxGauge * _arg0; | |
2d091820 | 3980 | PyObject * _argo0 = 0; |
107e4716 | 3981 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3982 | |
3983 | self = self; | |
107e4716 | 3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
70551f47 | 3985 | return NULL; |
2d091820 RD |
3986 | if (_argo0) { |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
3990 | return NULL; | |
3991 | } | |
3992 | } | |
ab9bc19b | 3993 | { |
474c48f9 | 3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3995 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
ab9bc19b | 3996 | |
474c48f9 | 3997 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3998 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3999 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4000 | return _resultobj; |
4001 | } | |
4002 | ||
4003 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 4004 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4005 | PyObject * _resultobj; |
4006 | int _result; | |
4007 | wxGauge * _arg0; | |
2d091820 | 4008 | PyObject * _argo0 = 0; |
107e4716 | 4009 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4010 | |
4011 | self = self; | |
107e4716 | 4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
70551f47 | 4013 | return NULL; |
2d091820 RD |
4014 | if (_argo0) { |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
4018 | return NULL; | |
4019 | } | |
4020 | } | |
ab9bc19b | 4021 | { |
474c48f9 | 4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4023 | _result = (int )wxGauge_GetValue(_arg0); |
ab9bc19b | 4024 | |
474c48f9 | 4025 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4026 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4027 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4028 | return _resultobj; |
4029 | } | |
4030 | ||
4031 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
107e4716 | 4032 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4033 | PyObject * _resultobj; |
4034 | wxGauge * _arg0; | |
4035 | int _arg1; | |
2d091820 | 4036 | PyObject * _argo0 = 0; |
107e4716 | 4037 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
4038 | |
4039 | self = self; | |
107e4716 | 4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4041 | return NULL; |
2d091820 RD |
4042 | if (_argo0) { |
4043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
4046 | return NULL; | |
4047 | } | |
4048 | } | |
ab9bc19b | 4049 | { |
474c48f9 | 4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4051 | wxGauge_SetBezelFace(_arg0,_arg1); |
ab9bc19b | 4052 | |
474c48f9 | 4053 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4054 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4055 | } Py_INCREF(Py_None); |
70551f47 RD |
4056 | _resultobj = Py_None; |
4057 | return _resultobj; | |
4058 | } | |
4059 | ||
4060 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
107e4716 | 4061 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4062 | PyObject * _resultobj; |
4063 | wxGauge * _arg0; | |
4064 | int _arg1; | |
2d091820 | 4065 | PyObject * _argo0 = 0; |
107e4716 | 4066 | char *_kwnames[] = { "self","range", NULL }; |
70551f47 RD |
4067 | |
4068 | self = self; | |
107e4716 | 4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4070 | return NULL; |
2d091820 RD |
4071 | if (_argo0) { |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
ab9bc19b | 4078 | { |
474c48f9 | 4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4080 | wxGauge_SetRange(_arg0,_arg1); |
ab9bc19b | 4081 | |
474c48f9 | 4082 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4083 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4084 | } Py_INCREF(Py_None); |
70551f47 RD |
4085 | _resultobj = Py_None; |
4086 | return _resultobj; | |
4087 | } | |
4088 | ||
4089 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
107e4716 | 4090 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4091 | PyObject * _resultobj; |
4092 | wxGauge * _arg0; | |
4093 | int _arg1; | |
2d091820 | 4094 | PyObject * _argo0 = 0; |
107e4716 | 4095 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
4096 | |
4097 | self = self; | |
107e4716 | 4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4099 | return NULL; |
2d091820 RD |
4100 | if (_argo0) { |
4101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
4104 | return NULL; | |
4105 | } | |
4106 | } | |
ab9bc19b | 4107 | { |
474c48f9 | 4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4109 | wxGauge_SetShadowWidth(_arg0,_arg1); |
ab9bc19b | 4110 | |
474c48f9 | 4111 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4112 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4113 | } Py_INCREF(Py_None); |
70551f47 RD |
4114 | _resultobj = Py_None; |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
4118 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 4119 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4120 | PyObject * _resultobj; |
4121 | wxGauge * _arg0; | |
4122 | int _arg1; | |
2d091820 | 4123 | PyObject * _argo0 = 0; |
107e4716 | 4124 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
4125 | |
4126 | self = self; | |
107e4716 | 4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4128 | return NULL; |
2d091820 RD |
4129 | if (_argo0) { |
4130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
4133 | return NULL; | |
4134 | } | |
4135 | } | |
ab9bc19b | 4136 | { |
474c48f9 | 4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4138 | wxGauge_SetValue(_arg0,_arg1); |
ab9bc19b | 4139 | |
474c48f9 | 4140 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4141 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4142 | } Py_INCREF(Py_None); |
70551f47 RD |
4143 | _resultobj = Py_None; |
4144 | return _resultobj; | |
4145 | } | |
4146 | ||
4147 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
4148 | wxStaticBox *src; | |
4149 | wxControl *dest; | |
4150 | src = (wxStaticBox *) ptr; | |
4151 | dest = (wxControl *) src; | |
4152 | return (void *) dest; | |
4153 | } | |
4154 | ||
4155 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
4156 | wxStaticBox *src; | |
4157 | wxWindow *dest; | |
4158 | src = (wxStaticBox *) ptr; | |
4159 | dest = (wxWindow *) src; | |
4160 | return (void *) dest; | |
4161 | } | |
4162 | ||
4163 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
4164 | wxStaticBox *src; | |
4165 | wxEvtHandler *dest; | |
4166 | src = (wxStaticBox *) ptr; | |
4167 | dest = (wxEvtHandler *) src; | |
4168 | return (void *) dest; | |
4169 | } | |
4170 | ||
9df61a29 RD |
4171 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
4172 | wxStaticBox *src; | |
4173 | wxObject *dest; | |
4174 | src = (wxStaticBox *) ptr; | |
4175 | dest = (wxObject *) src; | |
4176 | return (void *) dest; | |
4177 | } | |
4178 | ||
70551f47 | 4179 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4180 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4181 | PyObject * _resultobj; |
4182 | wxStaticBox * _result; | |
4183 | wxWindow * _arg0; | |
4184 | wxWindowID _arg1; | |
4185 | wxString * _arg2; | |
b68dc582 RD |
4186 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4187 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4188 | long _arg5 = (long ) 0; |
9a74fcaf | 4189 | wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr; |
2d091820 | 4190 | PyObject * _argo0 = 0; |
70551f47 | 4191 | PyObject * _obj2 = 0; |
37f6a977 RD |
4192 | wxPoint temp; |
4193 | PyObject * _obj3 = 0; | |
4194 | wxSize temp0; | |
4195 | PyObject * _obj4 = 0; | |
9a74fcaf | 4196 | PyObject * _obj6 = 0; |
107e4716 | 4197 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4198 | char _ptemp[128]; |
4199 | ||
4200 | self = self; | |
9a74fcaf | 4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
70551f47 | 4202 | return NULL; |
2d091820 RD |
4203 | if (_argo0) { |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
4207 | return NULL; | |
4208 | } | |
4209 | } | |
4210 | { | |
c8bc7bb8 RD |
4211 | _arg2 = wxString_in_helper(_obj2); |
4212 | if (_arg2 == NULL) | |
2cd2fac8 | 4213 | return NULL; |
70551f47 | 4214 | } |
37f6a977 RD |
4215 | if (_obj3) |
4216 | { | |
4217 | _arg3 = &temp; | |
4218 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4219 | return NULL; |
37f6a977 RD |
4220 | } |
4221 | if (_obj4) | |
4222 | { | |
4223 | _arg4 = &temp0; | |
4224 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4225 | return NULL; |
9a74fcaf RD |
4226 | } |
4227 | if (_obj6) | |
4228 | { | |
4229 | _arg6 = wxString_in_helper(_obj6); | |
4230 | if (_arg6 == NULL) | |
4231 | return NULL; | |
37f6a977 | 4232 | } |
ab9bc19b | 4233 | { |
474c48f9 | 4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4235 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
ab9bc19b | 4236 | |
474c48f9 | 4237 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4238 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4239 | } if (_result) { |
4240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4241 | _resultobj = Py_BuildValue("s",_ptemp); | |
4242 | } else { | |
4243 | Py_INCREF(Py_None); | |
4244 | _resultobj = Py_None; | |
4245 | } | |
70551f47 RD |
4246 | { |
4247 | if (_obj2) | |
4248 | delete _arg2; | |
9a74fcaf RD |
4249 | } |
4250 | { | |
4251 | if (_obj6) | |
4252 | delete _arg6; | |
70551f47 RD |
4253 | } |
4254 | return _resultobj; | |
4255 | } | |
4256 | ||
aa2a5b86 RD |
4257 | #define new_wxPreStaticBox() (new wxStaticBox()) |
4258 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4259 | PyObject * _resultobj; | |
4260 | wxStaticBox * _result; | |
4261 | char *_kwnames[] = { NULL }; | |
4262 | char _ptemp[128]; | |
4263 | ||
4264 | self = self; | |
4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
4266 | return NULL; | |
4267 | { | |
474c48f9 | 4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4269 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
aa2a5b86 | 4270 | |
474c48f9 | 4271 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4272 | if (PyErr_Occurred()) return NULL; |
4273 | } if (_result) { | |
4274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4275 | _resultobj = Py_BuildValue("s",_ptemp); | |
4276 | } else { | |
4277 | Py_INCREF(Py_None); | |
4278 | _resultobj = Py_None; | |
4279 | } | |
4280 | return _resultobj; | |
4281 | } | |
4282 | ||
4283 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4284 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject * _resultobj; | |
4286 | bool _result; | |
4287 | wxStaticBox * _arg0; | |
4288 | wxWindow * _arg1; | |
4289 | wxWindowID _arg2; | |
4290 | wxString * _arg3; | |
4291 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4292 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4293 | long _arg6 = (long ) 0; | |
9a74fcaf | 4294 | wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr; |
aa2a5b86 RD |
4295 | PyObject * _argo0 = 0; |
4296 | PyObject * _argo1 = 0; | |
4297 | PyObject * _obj3 = 0; | |
4298 | wxPoint temp; | |
4299 | PyObject * _obj4 = 0; | |
4300 | wxSize temp0; | |
4301 | PyObject * _obj5 = 0; | |
9a74fcaf | 4302 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
4303 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4304 | ||
4305 | self = self; | |
9a74fcaf | 4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
aa2a5b86 RD |
4307 | return NULL; |
4308 | if (_argo0) { | |
4309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4312 | return NULL; | |
4313 | } | |
4314 | } | |
4315 | if (_argo1) { | |
4316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4319 | return NULL; | |
4320 | } | |
4321 | } | |
4322 | { | |
c8bc7bb8 RD |
4323 | _arg3 = wxString_in_helper(_obj3); |
4324 | if (_arg3 == NULL) | |
aa2a5b86 | 4325 | return NULL; |
aa2a5b86 RD |
4326 | } |
4327 | if (_obj4) | |
4328 | { | |
4329 | _arg4 = &temp; | |
4330 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4331 | return NULL; | |
4332 | } | |
4333 | if (_obj5) | |
4334 | { | |
4335 | _arg5 = &temp0; | |
4336 | if (! wxSize_helper(_obj5, &_arg5)) | |
4337 | return NULL; | |
9a74fcaf RD |
4338 | } |
4339 | if (_obj7) | |
4340 | { | |
4341 | _arg7 = wxString_in_helper(_obj7); | |
4342 | if (_arg7 == NULL) | |
4343 | return NULL; | |
aa2a5b86 RD |
4344 | } |
4345 | { | |
474c48f9 | 4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4347 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
aa2a5b86 | 4348 | |
474c48f9 | 4349 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4350 | if (PyErr_Occurred()) return NULL; |
4351 | } _resultobj = Py_BuildValue("i",_result); | |
4352 | { | |
4353 | if (_obj3) | |
4354 | delete _arg3; | |
9a74fcaf RD |
4355 | } |
4356 | { | |
4357 | if (_obj7) | |
4358 | delete _arg7; | |
aa2a5b86 RD |
4359 | } |
4360 | return _resultobj; | |
4361 | } | |
4362 | ||
d24a34bb RD |
4363 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
4364 | wxStaticLine *src; | |
4365 | wxControl *dest; | |
4366 | src = (wxStaticLine *) ptr; | |
4367 | dest = (wxControl *) src; | |
4368 | return (void *) dest; | |
4369 | } | |
4370 | ||
4371 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4372 | wxStaticLine *src; | |
4373 | wxWindow *dest; | |
4374 | src = (wxStaticLine *) ptr; | |
4375 | dest = (wxWindow *) src; | |
4376 | return (void *) dest; | |
4377 | } | |
4378 | ||
4379 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4380 | wxStaticLine *src; | |
4381 | wxEvtHandler *dest; | |
4382 | src = (wxStaticLine *) ptr; | |
4383 | dest = (wxEvtHandler *) src; | |
4384 | return (void *) dest; | |
4385 | } | |
4386 | ||
9df61a29 RD |
4387 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
4388 | wxStaticLine *src; | |
4389 | wxObject *dest; | |
4390 | src = (wxStaticLine *) ptr; | |
4391 | dest = (wxObject *) src; | |
4392 | return (void *) dest; | |
4393 | } | |
4394 | ||
d24a34bb | 4395 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 4396 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4397 | PyObject * _resultobj; |
4398 | wxStaticLine * _result; | |
4399 | wxWindow * _arg0; | |
4400 | wxWindowID _arg1; | |
b68dc582 RD |
4401 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4402 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4403 | long _arg4 = (long ) wxLI_HORIZONTAL; |
9a74fcaf | 4404 | wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr; |
2d091820 | 4405 | PyObject * _argo0 = 0; |
37f6a977 RD |
4406 | wxPoint temp; |
4407 | PyObject * _obj2 = 0; | |
4408 | wxSize temp0; | |
4409 | PyObject * _obj3 = 0; | |
9a74fcaf | 4410 | PyObject * _obj5 = 0; |
107e4716 | 4411 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d24a34bb RD |
4412 | char _ptemp[128]; |
4413 | ||
4414 | self = self; | |
9a74fcaf | 4415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
d24a34bb | 4416 | return NULL; |
2d091820 RD |
4417 | if (_argo0) { |
4418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
4420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4421 | return NULL; | |
4422 | } | |
4423 | } | |
37f6a977 RD |
4424 | if (_obj2) |
4425 | { | |
4426 | _arg2 = &temp; | |
4427 | if (! wxPoint_helper(_obj2, &_arg2)) | |
d24a34bb | 4428 | return NULL; |
37f6a977 RD |
4429 | } |
4430 | if (_obj3) | |
4431 | { | |
4432 | _arg3 = &temp0; | |
4433 | if (! wxSize_helper(_obj3, &_arg3)) | |
d24a34bb | 4434 | return NULL; |
9a74fcaf RD |
4435 | } |
4436 | if (_obj5) | |
4437 | { | |
4438 | _arg5 = wxString_in_helper(_obj5); | |
4439 | if (_arg5 == NULL) | |
4440 | return NULL; | |
37f6a977 | 4441 | } |
d24a34bb | 4442 | { |
474c48f9 | 4443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4444 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
d24a34bb | 4445 | |
474c48f9 | 4446 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4447 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4448 | } if (_result) { |
4449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4450 | _resultobj = Py_BuildValue("s",_ptemp); | |
4451 | } else { | |
4452 | Py_INCREF(Py_None); | |
4453 | _resultobj = Py_None; | |
4454 | } | |
9a74fcaf RD |
4455 | { |
4456 | if (_obj5) | |
4457 | delete _arg5; | |
4458 | } | |
d24a34bb RD |
4459 | return _resultobj; |
4460 | } | |
4461 | ||
aa2a5b86 RD |
4462 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4463 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject * _resultobj; | |
4465 | wxStaticLine * _result; | |
4466 | char *_kwnames[] = { NULL }; | |
4467 | char _ptemp[128]; | |
4468 | ||
4469 | self = self; | |
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4471 | return NULL; | |
4472 | { | |
474c48f9 | 4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4474 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
aa2a5b86 | 4475 | |
474c48f9 | 4476 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4477 | if (PyErr_Occurred()) return NULL; |
4478 | } if (_result) { | |
4479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4480 | _resultobj = Py_BuildValue("s",_ptemp); | |
4481 | } else { | |
4482 | Py_INCREF(Py_None); | |
4483 | _resultobj = Py_None; | |
4484 | } | |
4485 | return _resultobj; | |
4486 | } | |
4487 | ||
4488 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4489 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject * _resultobj; | |
4491 | bool _result; | |
4492 | wxStaticLine * _arg0; | |
4493 | wxWindow * _arg1; | |
4494 | wxWindowID _arg2; | |
4495 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4496 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4497 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
9a74fcaf | 4498 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
aa2a5b86 RD |
4499 | PyObject * _argo0 = 0; |
4500 | PyObject * _argo1 = 0; | |
4501 | wxPoint temp; | |
4502 | PyObject * _obj3 = 0; | |
4503 | wxSize temp0; | |
4504 | PyObject * _obj4 = 0; | |
9a74fcaf | 4505 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
4506 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
4507 | ||
4508 | self = self; | |
9a74fcaf | 4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
4510 | return NULL; |
4511 | if (_argo0) { | |
4512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4515 | return NULL; | |
4516 | } | |
4517 | } | |
4518 | if (_argo1) { | |
4519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
4525 | if (_obj3) | |
4526 | { | |
4527 | _arg3 = &temp; | |
4528 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4529 | return NULL; | |
4530 | } | |
4531 | if (_obj4) | |
4532 | { | |
4533 | _arg4 = &temp0; | |
4534 | if (! wxSize_helper(_obj4, &_arg4)) | |
4535 | return NULL; | |
9a74fcaf RD |
4536 | } |
4537 | if (_obj6) | |
4538 | { | |
4539 | _arg6 = wxString_in_helper(_obj6); | |
4540 | if (_arg6 == NULL) | |
4541 | return NULL; | |
aa2a5b86 RD |
4542 | } |
4543 | { | |
474c48f9 | 4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4545 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 4546 | |
474c48f9 | 4547 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4548 | if (PyErr_Occurred()) return NULL; |
4549 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
4550 | { |
4551 | if (_obj6) | |
4552 | delete _arg6; | |
4553 | } | |
aa2a5b86 RD |
4554 | return _resultobj; |
4555 | } | |
4556 | ||
70551f47 RD |
4557 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4558 | wxStaticText *src; | |
4559 | wxControl *dest; | |
4560 | src = (wxStaticText *) ptr; | |
4561 | dest = (wxControl *) src; | |
4562 | return (void *) dest; | |
4563 | } | |
4564 | ||
4565 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4566 | wxStaticText *src; | |
4567 | wxWindow *dest; | |
4568 | src = (wxStaticText *) ptr; | |
4569 | dest = (wxWindow *) src; | |
4570 | return (void *) dest; | |
4571 | } | |
4572 | ||
4573 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4574 | wxStaticText *src; | |
4575 | wxEvtHandler *dest; | |
4576 | src = (wxStaticText *) ptr; | |
4577 | dest = (wxEvtHandler *) src; | |
4578 | return (void *) dest; | |
4579 | } | |
4580 | ||
9df61a29 RD |
4581 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4582 | wxStaticText *src; | |
4583 | wxObject *dest; | |
4584 | src = (wxStaticText *) ptr; | |
4585 | dest = (wxObject *) src; | |
4586 | return (void *) dest; | |
4587 | } | |
4588 | ||
70551f47 | 4589 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4590 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4591 | PyObject * _resultobj; |
4592 | wxStaticText * _result; | |
4593 | wxWindow * _arg0; | |
4594 | wxWindowID _arg1; | |
4595 | wxString * _arg2; | |
b68dc582 RD |
4596 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4597 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4598 | long _arg5 = (long ) 0; |
9a74fcaf | 4599 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
2d091820 | 4600 | PyObject * _argo0 = 0; |
70551f47 | 4601 | PyObject * _obj2 = 0; |
37f6a977 RD |
4602 | wxPoint temp; |
4603 | PyObject * _obj3 = 0; | |
4604 | wxSize temp0; | |
4605 | PyObject * _obj4 = 0; | |
9a74fcaf | 4606 | PyObject * _obj6 = 0; |
107e4716 | 4607 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4608 | char _ptemp[128]; |
4609 | ||
4610 | self = self; | |
9a74fcaf | 4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
70551f47 | 4612 | return NULL; |
2d091820 RD |
4613 | if (_argo0) { |
4614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4617 | return NULL; | |
4618 | } | |
4619 | } | |
4620 | { | |
c8bc7bb8 RD |
4621 | _arg2 = wxString_in_helper(_obj2); |
4622 | if (_arg2 == NULL) | |
2cd2fac8 | 4623 | return NULL; |
70551f47 | 4624 | } |
37f6a977 RD |
4625 | if (_obj3) |
4626 | { | |
4627 | _arg3 = &temp; | |
4628 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4629 | return NULL; |
37f6a977 RD |
4630 | } |
4631 | if (_obj4) | |
4632 | { | |
4633 | _arg4 = &temp0; | |
4634 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4635 | return NULL; |
9a74fcaf RD |
4636 | } |
4637 | if (_obj6) | |
4638 | { | |
4639 | _arg6 = wxString_in_helper(_obj6); | |
4640 | if (_arg6 == NULL) | |
4641 | return NULL; | |
37f6a977 | 4642 | } |
ab9bc19b | 4643 | { |
474c48f9 | 4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4645 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
ab9bc19b | 4646 | |
474c48f9 | 4647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4648 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4649 | } if (_result) { |
4650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4651 | _resultobj = Py_BuildValue("s",_ptemp); | |
4652 | } else { | |
4653 | Py_INCREF(Py_None); | |
4654 | _resultobj = Py_None; | |
4655 | } | |
70551f47 RD |
4656 | { |
4657 | if (_obj2) | |
4658 | delete _arg2; | |
9a74fcaf RD |
4659 | } |
4660 | { | |
4661 | if (_obj6) | |
4662 | delete _arg6; | |
70551f47 RD |
4663 | } |
4664 | return _resultobj; | |
4665 | } | |
4666 | ||
aa2a5b86 RD |
4667 | #define new_wxPreStaticText() (new wxStaticText()) |
4668 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4669 | PyObject * _resultobj; | |
4670 | wxStaticText * _result; | |
4671 | char *_kwnames[] = { NULL }; | |
4672 | char _ptemp[128]; | |
4673 | ||
4674 | self = self; | |
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4676 | return NULL; | |
4677 | { | |
474c48f9 | 4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4679 | _result = (wxStaticText *)new_wxPreStaticText(); |
aa2a5b86 | 4680 | |
474c48f9 | 4681 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4682 | if (PyErr_Occurred()) return NULL; |
4683 | } if (_result) { | |
4684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4685 | _resultobj = Py_BuildValue("s",_ptemp); | |
4686 | } else { | |
4687 | Py_INCREF(Py_None); | |
4688 | _resultobj = Py_None; | |
4689 | } | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4694 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | bool _result; | |
4697 | wxStaticText * _arg0; | |
4698 | wxWindow * _arg1; | |
4699 | wxWindowID _arg2; | |
4700 | wxString * _arg3; | |
4701 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4702 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4703 | long _arg6 = (long ) 0; | |
9a74fcaf | 4704 | wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr; |
aa2a5b86 RD |
4705 | PyObject * _argo0 = 0; |
4706 | PyObject * _argo1 = 0; | |
4707 | PyObject * _obj3 = 0; | |
4708 | wxPoint temp; | |
4709 | PyObject * _obj4 = 0; | |
4710 | wxSize temp0; | |
4711 | PyObject * _obj5 = 0; | |
9a74fcaf | 4712 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
4713 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4714 | ||
4715 | self = self; | |
9a74fcaf | 4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
aa2a5b86 RD |
4717 | return NULL; |
4718 | if (_argo0) { | |
4719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4722 | return NULL; | |
4723 | } | |
4724 | } | |
4725 | if (_argo1) { | |
4726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4729 | return NULL; | |
4730 | } | |
4731 | } | |
4732 | { | |
c8bc7bb8 RD |
4733 | _arg3 = wxString_in_helper(_obj3); |
4734 | if (_arg3 == NULL) | |
aa2a5b86 | 4735 | return NULL; |
aa2a5b86 RD |
4736 | } |
4737 | if (_obj4) | |
4738 | { | |
4739 | _arg4 = &temp; | |
4740 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4741 | return NULL; | |
4742 | } | |
4743 | if (_obj5) | |
4744 | { | |
4745 | _arg5 = &temp0; | |
4746 | if (! wxSize_helper(_obj5, &_arg5)) | |
4747 | return NULL; | |
9a74fcaf RD |
4748 | } |
4749 | if (_obj7) | |
4750 | { | |
4751 | _arg7 = wxString_in_helper(_obj7); | |
4752 | if (_arg7 == NULL) | |
4753 | return NULL; | |
aa2a5b86 RD |
4754 | } |
4755 | { | |
474c48f9 | 4756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4757 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
aa2a5b86 | 4758 | |
474c48f9 | 4759 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4760 | if (PyErr_Occurred()) return NULL; |
4761 | } _resultobj = Py_BuildValue("i",_result); | |
4762 | { | |
4763 | if (_obj3) | |
4764 | delete _arg3; | |
9a74fcaf RD |
4765 | } |
4766 | { | |
4767 | if (_obj7) | |
4768 | delete _arg7; | |
aa2a5b86 RD |
4769 | } |
4770 | return _resultobj; | |
4771 | } | |
4772 | ||
70551f47 | 4773 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 4774 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4775 | PyObject * _resultobj; |
4776 | wxString * _result; | |
4777 | wxStaticText * _arg0; | |
2d091820 | 4778 | PyObject * _argo0 = 0; |
107e4716 | 4779 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4780 | |
4781 | self = self; | |
107e4716 | 4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
70551f47 | 4783 | return NULL; |
2d091820 RD |
4784 | if (_argo0) { |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
70551f47 | 4791 | { |
474c48f9 | 4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4793 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
ab9bc19b | 4794 | |
474c48f9 | 4795 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4796 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4797 | }{ |
c8bc7bb8 RD |
4798 | #if wxUSE_UNICODE |
4799 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4800 | #else | |
e02c03a4 | 4801 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4802 | #endif |
70551f47 RD |
4803 | } |
4804 | { | |
4805 | delete _result; | |
4806 | } | |
4807 | return _resultobj; | |
4808 | } | |
4809 | ||
4810 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 4811 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4812 | PyObject * _resultobj; |
4813 | wxStaticText * _arg0; | |
4814 | wxString * _arg1; | |
2d091820 | 4815 | PyObject * _argo0 = 0; |
70551f47 | 4816 | PyObject * _obj1 = 0; |
107e4716 | 4817 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
4818 | |
4819 | self = self; | |
107e4716 | 4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4821 | return NULL; |
2d091820 RD |
4822 | if (_argo0) { |
4823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4826 | return NULL; | |
4827 | } | |
4828 | } | |
4829 | { | |
c8bc7bb8 RD |
4830 | _arg1 = wxString_in_helper(_obj1); |
4831 | if (_arg1 == NULL) | |
2cd2fac8 | 4832 | return NULL; |
70551f47 | 4833 | } |
ab9bc19b | 4834 | { |
474c48f9 | 4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4836 | wxStaticText_SetLabel(_arg0,*_arg1); |
ab9bc19b | 4837 | |
474c48f9 | 4838 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4839 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4840 | } Py_INCREF(Py_None); |
70551f47 RD |
4841 | _resultobj = Py_None; |
4842 | { | |
4843 | if (_obj1) | |
4844 | delete _arg1; | |
4845 | } | |
4846 | return _resultobj; | |
4847 | } | |
4848 | ||
65191ae8 RD |
4849 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4850 | wxListBox *src; | |
4851 | wxControlWithItems *dest; | |
4852 | src = (wxListBox *) ptr; | |
4853 | dest = (wxControlWithItems *) src; | |
4854 | return (void *) dest; | |
4855 | } | |
4856 | ||
70551f47 RD |
4857 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4858 | wxListBox *src; | |
4859 | wxControl *dest; | |
4860 | src = (wxListBox *) ptr; | |
4861 | dest = (wxControl *) src; | |
4862 | return (void *) dest; | |
4863 | } | |
4864 | ||
4865 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4866 | wxListBox *src; | |
4867 | wxWindow *dest; | |
4868 | src = (wxListBox *) ptr; | |
4869 | dest = (wxWindow *) src; | |
4870 | return (void *) dest; | |
4871 | } | |
4872 | ||
4873 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4874 | wxListBox *src; | |
4875 | wxEvtHandler *dest; | |
4876 | src = (wxListBox *) ptr; | |
4877 | dest = (wxEvtHandler *) src; | |
4878 | return (void *) dest; | |
4879 | } | |
4880 | ||
9df61a29 RD |
4881 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4882 | wxListBox *src; | |
4883 | wxObject *dest; | |
4884 | src = (wxListBox *) ptr; | |
4885 | dest = (wxObject *) src; | |
4886 | return (void *) dest; | |
4887 | } | |
4888 | ||
aa2a5b86 RD |
4889 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4890 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject * _resultobj; | |
4892 | wxListBox * _result; | |
4893 | wxWindow * _arg0; | |
4894 | wxWindowID _arg1; | |
4895 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4896 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4897 | int _arg4; | |
4898 | wxString * _arg5 = (wxString *) NULL; | |
4899 | long _arg6 = (long ) 0; | |
4900 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 4901 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
aa2a5b86 RD |
4902 | PyObject * _argo0 = 0; |
4903 | wxPoint temp; | |
4904 | PyObject * _obj2 = 0; | |
4905 | wxSize temp0; | |
4906 | PyObject * _obj3 = 0; | |
4907 | PyObject * _obj5 = 0; | |
4908 | PyObject * _argo7 = 0; | |
9a74fcaf | 4909 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
4910 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
4911 | char _ptemp[128]; | |
4912 | ||
4913 | self = self; | |
9a74fcaf | 4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
4915 | return NULL; |
4916 | if (_argo0) { | |
4917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4920 | return NULL; | |
4921 | } | |
4922 | } | |
4923 | if (_obj2) | |
4924 | { | |
4925 | _arg2 = &temp; | |
4926 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4927 | return NULL; | |
4928 | } | |
4929 | if (_obj3) | |
4930 | { | |
4931 | _arg3 = &temp0; | |
4932 | if (! wxSize_helper(_obj3, &_arg3)) | |
4933 | return NULL; | |
4934 | } | |
4935 | if (_obj5) | |
4936 | { | |
4937 | _arg5 = wxString_LIST_helper(_obj5); | |
4938 | if (_arg5 == NULL) { | |
4939 | return NULL; | |
4940 | } | |
4941 | } | |
4942 | if (_argo7) { | |
4943 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
4944 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
4945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); | |
4946 | return NULL; | |
4947 | } | |
4948 | } | |
9a74fcaf RD |
4949 | if (_obj8) |
4950 | { | |
4951 | _arg8 = wxString_in_helper(_obj8); | |
4952 | if (_arg8 == NULL) | |
4953 | return NULL; | |
4954 | } | |
aa2a5b86 RD |
4955 | { |
4956 | if (_obj5) { | |
4957 | _arg4 = PyList_Size(_obj5); | |
4958 | } | |
4959 | else { | |
4960 | _arg4 = 0; | |
4961 | } | |
4962 | } | |
4963 | { | |
474c48f9 | 4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4965 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 4966 | |
474c48f9 | 4967 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4968 | if (PyErr_Occurred()) return NULL; |
4969 | } if (_result) { | |
4970 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4971 | _resultobj = Py_BuildValue("s",_ptemp); | |
4972 | } else { | |
4973 | Py_INCREF(Py_None); | |
4974 | _resultobj = Py_None; | |
4975 | } | |
4976 | { | |
4977 | delete [] _arg5; | |
9a74fcaf RD |
4978 | } |
4979 | { | |
4980 | if (_obj8) | |
4981 | delete _arg8; | |
aa2a5b86 RD |
4982 | } |
4983 | return _resultobj; | |
4984 | } | |
4985 | ||
4986 | #define new_wxPreListBox() (new wxListBox()) | |
4987 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4988 | PyObject * _resultobj; | |
4989 | wxListBox * _result; | |
4990 | char *_kwnames[] = { NULL }; | |
4991 | char _ptemp[128]; | |
4992 | ||
4993 | self = self; | |
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
4995 | return NULL; | |
4996 | { | |
474c48f9 | 4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4998 | _result = (wxListBox *)new_wxPreListBox(); |
aa2a5b86 | 4999 | |
474c48f9 | 5000 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5001 | if (PyErr_Occurred()) return NULL; |
5002 | } if (_result) { | |
5003 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
5004 | _resultobj = Py_BuildValue("s",_ptemp); | |
5005 | } else { | |
5006 | Py_INCREF(Py_None); | |
5007 | _resultobj = Py_None; | |
5008 | } | |
5009 | return _resultobj; | |
5010 | } | |
5011 | ||
5012 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5013 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 5014 | PyObject * _resultobj; |
aa2a5b86 RD |
5015 | bool _result; |
5016 | wxListBox * _arg0; | |
5017 | wxWindow * _arg1; | |
5018 | wxWindowID _arg2; | |
5019 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5020 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5021 | int _arg5; | |
5022 | wxString * _arg6 = (wxString *) NULL; | |
5023 | long _arg7 = (long ) 0; | |
5024 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5025 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
2d091820 | 5026 | PyObject * _argo0 = 0; |
aa2a5b86 | 5027 | PyObject * _argo1 = 0; |
37f6a977 | 5028 | wxPoint temp; |
37f6a977 | 5029 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
5030 | wxSize temp0; |
5031 | PyObject * _obj4 = 0; | |
5032 | PyObject * _obj6 = 0; | |
5033 | PyObject * _argo8 = 0; | |
9a74fcaf | 5034 | PyObject * _obj9 = 0; |
aa2a5b86 | 5035 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
5036 | |
5037 | self = self; | |
9a74fcaf | 5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 5039 | return NULL; |
2d091820 RD |
5040 | if (_argo0) { |
5041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
5043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
70551f47 RD |
5044 | return NULL; |
5045 | } | |
5046 | } | |
aa2a5b86 RD |
5047 | if (_argo1) { |
5048 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5049 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
5051 | return NULL; | |
5052 | } | |
5053 | } | |
5054 | if (_obj3) | |
37f6a977 | 5055 | { |
aa2a5b86 RD |
5056 | _arg3 = &temp; |
5057 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 5058 | return NULL; |
37f6a977 | 5059 | } |
aa2a5b86 | 5060 | if (_obj4) |
37f6a977 | 5061 | { |
aa2a5b86 RD |
5062 | _arg4 = &temp0; |
5063 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 5064 | return NULL; |
37f6a977 | 5065 | } |
aa2a5b86 | 5066 | if (_obj6) |
70551f47 | 5067 | { |
aa2a5b86 RD |
5068 | _arg6 = wxString_LIST_helper(_obj6); |
5069 | if (_arg6 == NULL) { | |
70551f47 RD |
5070 | return NULL; |
5071 | } | |
5072 | } | |
aa2a5b86 RD |
5073 | if (_argo8) { |
5074 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); | |
70551f47 RD |
5077 | return NULL; |
5078 | } | |
5079 | } | |
9a74fcaf RD |
5080 | if (_obj9) |
5081 | { | |
5082 | _arg9 = wxString_in_helper(_obj9); | |
5083 | if (_arg9 == NULL) | |
5084 | return NULL; | |
5085 | } | |
70551f47 | 5086 | { |
aa2a5b86 RD |
5087 | if (_obj6) { |
5088 | _arg5 = PyList_Size(_obj6); | |
ab9bc19b RD |
5089 | } |
5090 | else { | |
aa2a5b86 | 5091 | _arg5 = 0; |
ab9bc19b | 5092 | } |
70551f47 | 5093 | } |
ab9bc19b | 5094 | { |
474c48f9 | 5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5096 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 5097 | |
474c48f9 | 5098 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5099 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5100 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 5101 | { |
aa2a5b86 | 5102 | delete [] _arg6; |
9a74fcaf RD |
5103 | } |
5104 | { | |
5105 | if (_obj9) | |
5106 | delete _arg9; | |
70551f47 RD |
5107 | } |
5108 | return _resultobj; | |
5109 | } | |
5110 | ||
70551f47 | 5111 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
107e4716 | 5112 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5113 | PyObject * _resultobj; |
5114 | wxListBox * _arg0; | |
2d091820 | 5115 | PyObject * _argo0 = 0; |
107e4716 | 5116 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5117 | |
5118 | self = self; | |
107e4716 | 5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
70551f47 | 5120 | return NULL; |
2d091820 RD |
5121 | if (_argo0) { |
5122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
ab9bc19b | 5128 | { |
474c48f9 | 5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5130 | wxListBox_Clear(_arg0); |
ab9bc19b | 5131 | |
474c48f9 | 5132 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5133 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5134 | } Py_INCREF(Py_None); |
70551f47 RD |
5135 | _resultobj = Py_None; |
5136 | return _resultobj; | |
5137 | } | |
5138 | ||
70551f47 | 5139 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
107e4716 | 5140 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5141 | PyObject * _resultobj; |
5142 | wxListBox * _arg0; | |
5143 | int _arg1; | |
2d091820 | 5144 | PyObject * _argo0 = 0; |
107e4716 | 5145 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5146 | |
5147 | self = self; | |
107e4716 | 5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5149 | return NULL; |
2d091820 RD |
5150 | if (_argo0) { |
5151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
5154 | return NULL; | |
5155 | } | |
5156 | } | |
ab9bc19b | 5157 | { |
474c48f9 | 5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5159 | wxListBox_Deselect(_arg0,_arg1); |
ab9bc19b | 5160 | |
474c48f9 | 5161 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5162 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5163 | } Py_INCREF(Py_None); |
70551f47 RD |
5164 | _resultobj = Py_None; |
5165 | return _resultobj; | |
5166 | } | |
5167 | ||
ab9bc19b RD |
5168 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
5169 | wxArrayInt lst; | |
5170 | self->GetSelections(lst); | |
5171 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 5172 | for(size_t i=0; i<lst.GetCount(); i++) { |
ab9bc19b RD |
5173 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
5174 | } | |
5175 | return tup; | |
5176 | } | |
107e4716 | 5177 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
5178 | PyObject * _resultobj; |
5179 | PyObject * _result; | |
5180 | wxListBox * _arg0; | |
2d091820 | 5181 | PyObject * _argo0 = 0; |
107e4716 | 5182 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
5183 | |
5184 | self = self; | |
107e4716 | 5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
ab9bc19b | 5186 | return NULL; |
2d091820 RD |
5187 | if (_argo0) { |
5188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
ab9bc19b RD |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
5194 | { | |
474c48f9 | 5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5196 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
ab9bc19b | 5197 | |
474c48f9 | 5198 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5199 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
5200 | }{ |
5201 | _resultobj = _result; | |
5202 | } | |
70551f47 RD |
5203 | return _resultobj; |
5204 | } | |
5205 | ||
37f6a977 RD |
5206 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5207 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5208 | PyObject * _resultobj; | |
5209 | wxListBox * _arg0; | |
5210 | int _arg1; | |
5211 | wxString * _arg2; | |
5212 | int _arg3; | |
5213 | PyObject * _argo0 = 0; | |
5214 | PyObject * _obj2 = 0; | |
e02c03a4 | 5215 | char *_kwnames[] = { "self","choices","pos", NULL }; |
37f6a977 RD |
5216 | |
5217 | self = self; | |
5218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5219 | return NULL; | |
5220 | if (_argo0) { | |
5221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
5224 | return NULL; | |
5225 | } | |
5226 | } | |
5227 | { | |
5228 | _arg2 = wxString_LIST_helper(_obj2); | |
5229 | if (_arg2 == NULL) { | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
5234 | if (_obj2) { | |
5235 | _arg1 = PyList_Size(_obj2); | |
5236 | } | |
5237 | else { | |
5238 | _arg1 = 0; | |
5239 | } | |
5240 | } | |
5241 | { | |
474c48f9 | 5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5243 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
37f6a977 | 5244 | |
474c48f9 | 5245 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5246 | if (PyErr_Occurred()) return NULL; |
37f6a977 RD |
5247 | } Py_INCREF(Py_None); |
5248 | _resultobj = Py_None; | |
5249 | { | |
5250 | delete [] _arg2; | |
5251 | } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
2c8a649d RD |
5255 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
5256 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject * _resultobj; | |
5258 | bool _result; | |
5259 | wxListBox * _arg0; | |
5260 | int _arg1; | |
5261 | PyObject * _argo0 = 0; | |
5262 | char *_kwnames[] = { "self","n", NULL }; | |
5263 | ||
5264 | self = self; | |
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 5266 | return NULL; |
2d091820 RD |
5267 | if (_argo0) { |
5268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
2c8a649d | 5270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); |
70551f47 RD |
5271 | return NULL; |
5272 | } | |
5273 | } | |
ab9bc19b | 5274 | { |
474c48f9 | 5275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5276 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
ab9bc19b | 5277 | |
474c48f9 | 5278 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5279 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5280 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5281 | return _resultobj; |
5282 | } | |
5283 | ||
5284 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
107e4716 | 5285 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5286 | PyObject * _resultobj; |
5287 | bool _result; | |
5288 | wxListBox * _arg0; | |
5289 | int _arg1; | |
2d091820 | 5290 | PyObject * _argo0 = 0; |
107e4716 | 5291 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5292 | |
5293 | self = self; | |
107e4716 | 5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5295 | return NULL; |
2d091820 RD |
5296 | if (_argo0) { |
5297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
5300 | return NULL; | |
5301 | } | |
5302 | } | |
ab9bc19b | 5303 | { |
474c48f9 | 5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5305 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
ab9bc19b | 5306 | |
474c48f9 | 5307 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5308 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5309 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5310 | return _resultobj; |
5311 | } | |
5312 | ||
5313 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
107e4716 | 5314 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5315 | PyObject * _resultobj; |
5316 | wxListBox * _arg0; | |
5317 | int _arg1; | |
5318 | wxString * _arg2; | |
2d091820 | 5319 | PyObject * _argo0 = 0; |
70551f47 | 5320 | PyObject * _obj2 = 0; |
e02c03a4 | 5321 | char *_kwnames[] = { "self","choices", NULL }; |
70551f47 RD |
5322 | |
5323 | self = self; | |
107e4716 | 5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
70551f47 | 5325 | return NULL; |
2d091820 RD |
5326 | if (_argo0) { |
5327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
5330 | return NULL; | |
5331 | } | |
5332 | } | |
5333 | if (_obj2) | |
5334 | { | |
5335 | _arg2 = wxString_LIST_helper(_obj2); | |
5336 | if (_arg2 == NULL) { | |
5337 | return NULL; | |
5338 | } | |
5339 | } | |
5340 | { | |
ab9bc19b RD |
5341 | if (_obj2) { |
5342 | _arg1 = PyList_Size(_obj2); | |
5343 | } | |
5344 | else { | |
5345 | _arg1 = 0; | |
5346 | } | |
70551f47 | 5347 | } |
ab9bc19b | 5348 | { |
474c48f9 | 5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5350 | wxListBox_Set(_arg0,_arg1,_arg2); |
ab9bc19b | 5351 | |
474c48f9 | 5352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5353 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5354 | } Py_INCREF(Py_None); |
70551f47 RD |
5355 | _resultobj = Py_None; |
5356 | { | |
5357 | delete [] _arg2; | |
5358 | } | |
5359 | return _resultobj; | |
5360 | } | |
5361 | ||
5362 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5363 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5364 | PyObject * _resultobj; |
5365 | wxListBox * _arg0; | |
5366 | int _arg1; | |
2d091820 | 5367 | PyObject * _argo0 = 0; |
107e4716 | 5368 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5369 | |
5370 | self = self; | |
107e4716 | 5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5372 | return NULL; |
2d091820 RD |
5373 | if (_argo0) { |
5374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
5377 | return NULL; | |
5378 | } | |
5379 | } | |
ab9bc19b | 5380 | { |
474c48f9 | 5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5382 | wxListBox_SetFirstItem(_arg0,_arg1); |
ab9bc19b | 5383 | |
474c48f9 | 5384 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5385 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5386 | } Py_INCREF(Py_None); |
70551f47 RD |
5387 | _resultobj = Py_None; |
5388 | return _resultobj; | |
5389 | } | |
5390 | ||
5391 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5392 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5393 | PyObject * _resultobj; |
5394 | wxListBox * _arg0; | |
5395 | wxString * _arg1; | |
2d091820 | 5396 | PyObject * _argo0 = 0; |
70551f47 | 5397 | PyObject * _obj1 = 0; |
107e4716 | 5398 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
5399 | |
5400 | self = self; | |
107e4716 | 5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5402 | return NULL; |
2d091820 RD |
5403 | if (_argo0) { |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
5410 | { | |
c8bc7bb8 RD |
5411 | _arg1 = wxString_in_helper(_obj1); |
5412 | if (_arg1 == NULL) | |
2cd2fac8 | 5413 | return NULL; |
70551f47 | 5414 | } |
ab9bc19b | 5415 | { |
474c48f9 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
ab9bc19b | 5418 | |
474c48f9 | 5419 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5420 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5421 | } Py_INCREF(Py_None); |
70551f47 RD |
5422 | _resultobj = Py_None; |
5423 | { | |
5424 | if (_obj1) | |
5425 | delete _arg1; | |
5426 | } | |
5427 | return _resultobj; | |
5428 | } | |
5429 | ||
5430 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5431 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5432 | PyObject * _resultobj; |
5433 | wxListBox * _arg0; | |
5434 | int _arg1; | |
2d091820 RD |
5435 | bool _arg2 = (bool ) TRUE; |
5436 | PyObject * _argo0 = 0; | |
5437 | int tempbool2 = (int) TRUE; | |
107e4716 | 5438 | char *_kwnames[] = { "self","n","select", NULL }; |
70551f47 RD |
5439 | |
5440 | self = self; | |
107e4716 | 5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5442 | return NULL; |
2d091820 RD |
5443 | if (_argo0) { |
5444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5447 | return NULL; | |
5448 | } | |
5449 | } | |
5450 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5451 | { |
474c48f9 | 5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5453 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 5454 | |
474c48f9 | 5455 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5456 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5457 | } Py_INCREF(Py_None); |
70551f47 RD |
5458 | _resultobj = Py_None; |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
5462 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
107e4716 | 5463 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5464 | PyObject * _resultobj; |
5465 | wxListBox * _arg0; | |
5466 | int _arg1; | |
5467 | wxString * _arg2; | |
2d091820 | 5468 | PyObject * _argo0 = 0; |
70551f47 | 5469 | PyObject * _obj2 = 0; |
107e4716 | 5470 | char *_kwnames[] = { "self","n","string", NULL }; |
70551f47 RD |
5471 | |
5472 | self = self; | |
107e4716 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 5474 | return NULL; |
2d091820 RD |
5475 | if (_argo0) { |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5479 | return NULL; | |
5480 | } | |
5481 | } | |
5482 | { | |
c8bc7bb8 RD |
5483 | _arg2 = wxString_in_helper(_obj2); |
5484 | if (_arg2 == NULL) | |
2cd2fac8 | 5485 | return NULL; |
70551f47 | 5486 | } |
ab9bc19b | 5487 | { |
474c48f9 | 5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5489 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
ab9bc19b | 5490 | |
474c48f9 | 5491 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5492 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5493 | } Py_INCREF(Py_None); |
70551f47 RD |
5494 | _resultobj = Py_None; |
5495 | { | |
5496 | if (_obj2) | |
5497 | delete _arg2; | |
5498 | } | |
5499 | return _resultobj; | |
5500 | } | |
5501 | ||
5502 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5503 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5504 | PyObject * _resultobj; |
5505 | wxListBox * _arg0; | |
5506 | wxString * _arg1; | |
2d091820 RD |
5507 | bool _arg2 = (bool ) TRUE; |
5508 | PyObject * _argo0 = 0; | |
70551f47 | 5509 | PyObject * _obj1 = 0; |
2d091820 | 5510 | int tempbool2 = (int) TRUE; |
107e4716 | 5511 | char *_kwnames[] = { "self","string","select", NULL }; |
70551f47 RD |
5512 | |
5513 | self = self; | |
107e4716 | 5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 5515 | return NULL; |
2d091820 RD |
5516 | if (_argo0) { |
5517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5520 | return NULL; | |
5521 | } | |
5522 | } | |
5523 | { | |
c8bc7bb8 RD |
5524 | _arg1 = wxString_in_helper(_obj1); |
5525 | if (_arg1 == NULL) | |
70551f47 | 5526 | return NULL; |
70551f47 RD |
5527 | } |
5528 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5529 | { |
474c48f9 | 5530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5531 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
ab9bc19b | 5532 | |
474c48f9 | 5533 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5534 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5535 | } Py_INCREF(Py_None); |
70551f47 RD |
5536 | _resultobj = Py_None; |
5537 | { | |
5538 | if (_obj1) | |
5539 | delete _arg1; | |
5540 | } | |
5541 | return _resultobj; | |
5542 | } | |
5543 | ||
c95e68d8 RD |
5544 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5545 | wxCheckListBox *src; | |
5546 | wxListBox *dest; | |
5547 | src = (wxCheckListBox *) ptr; | |
5548 | dest = (wxListBox *) src; | |
5549 | return (void *) dest; | |
5550 | } | |
5551 | ||
65191ae8 RD |
5552 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5553 | wxCheckListBox *src; | |
5554 | wxControlWithItems *dest; | |
5555 | src = (wxCheckListBox *) ptr; | |
5556 | dest = (wxControlWithItems *) src; | |
5557 | return (void *) dest; | |
5558 | } | |
5559 | ||
c95e68d8 RD |
5560 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5561 | wxCheckListBox *src; | |
5562 | wxControl *dest; | |
5563 | src = (wxCheckListBox *) ptr; | |
5564 | dest = (wxControl *) src; | |
5565 | return (void *) dest; | |
5566 | } | |
5567 | ||
5568 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5569 | wxCheckListBox *src; | |
5570 | wxWindow *dest; | |
5571 | src = (wxCheckListBox *) ptr; | |
5572 | dest = (wxWindow *) src; | |
5573 | return (void *) dest; | |
5574 | } | |
5575 | ||
5576 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5577 | wxCheckListBox *src; | |
5578 | wxEvtHandler *dest; | |
5579 | src = (wxCheckListBox *) ptr; | |
5580 | dest = (wxEvtHandler *) src; | |
5581 | return (void *) dest; | |
5582 | } | |
5583 | ||
9df61a29 RD |
5584 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5585 | wxCheckListBox *src; | |
5586 | wxObject *dest; | |
5587 | src = (wxCheckListBox *) ptr; | |
5588 | dest = (wxObject *) src; | |
5589 | return (void *) dest; | |
5590 | } | |
5591 | ||
c95e68d8 | 5592 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 5593 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5594 | PyObject * _resultobj; |
5595 | wxCheckListBox * _result; | |
5596 | wxWindow * _arg0; | |
5597 | wxWindowID _arg1; | |
b68dc582 RD |
5598 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5599 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
5600 | int _arg4 = (int ) 0; |
5601 | wxString * _arg5 = (wxString *) NULL; | |
5602 | long _arg6 = (long ) 0; | |
b68dc582 | 5603 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 5604 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
2d091820 | 5605 | PyObject * _argo0 = 0; |
37f6a977 RD |
5606 | wxPoint temp; |
5607 | PyObject * _obj2 = 0; | |
5608 | wxSize temp0; | |
5609 | PyObject * _obj3 = 0; | |
c95e68d8 | 5610 | PyObject * _obj5 = 0; |
2d091820 | 5611 | PyObject * _argo7 = 0; |
9a74fcaf | 5612 | PyObject * _obj8 = 0; |
e02c03a4 | 5613 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
c95e68d8 RD |
5614 | char _ptemp[128]; |
5615 | ||
5616 | self = self; | |
9a74fcaf | 5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
c95e68d8 | 5618 | return NULL; |
2d091820 RD |
5619 | if (_argo0) { |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
37f6a977 RD |
5626 | if (_obj2) |
5627 | { | |
5628 | _arg2 = &temp; | |
5629 | if (! wxPoint_helper(_obj2, &_arg2)) | |
c95e68d8 | 5630 | return NULL; |
37f6a977 RD |
5631 | } |
5632 | if (_obj3) | |
5633 | { | |
5634 | _arg3 = &temp0; | |
5635 | if (! wxSize_helper(_obj3, &_arg3)) | |
c95e68d8 | 5636 | return NULL; |
37f6a977 | 5637 | } |
c95e68d8 RD |
5638 | if (_obj5) |
5639 | { | |
5640 | _arg5 = wxString_LIST_helper(_obj5); | |
5641 | if (_arg5 == NULL) { | |
5642 | return NULL; | |
5643 | } | |
5644 | } | |
2d091820 RD |
5645 | if (_argo7) { |
5646 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
5647 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
c95e68d8 RD |
5648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5649 | return NULL; | |
5650 | } | |
5651 | } | |
9a74fcaf RD |
5652 | if (_obj8) |
5653 | { | |
5654 | _arg8 = wxString_in_helper(_obj8); | |
5655 | if (_arg8 == NULL) | |
5656 | return NULL; | |
5657 | } | |
c95e68d8 | 5658 | { |
ab9bc19b RD |
5659 | if (_obj5) { |
5660 | _arg4 = PyList_Size(_obj5); | |
5661 | } | |
5662 | else { | |
5663 | _arg4 = 0; | |
5664 | } | |
c95e68d8 | 5665 | } |
ab9bc19b | 5666 | { |
474c48f9 | 5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5668 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 5669 | |
474c48f9 | 5670 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5671 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5672 | } if (_result) { |
5673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5674 | _resultobj = Py_BuildValue("s",_ptemp); | |
5675 | } else { | |
5676 | Py_INCREF(Py_None); | |
5677 | _resultobj = Py_None; | |
5678 | } | |
c95e68d8 RD |
5679 | { |
5680 | delete [] _arg5; | |
9a74fcaf RD |
5681 | } |
5682 | { | |
5683 | if (_obj8) | |
5684 | delete _arg8; | |
c95e68d8 RD |
5685 | } |
5686 | return _resultobj; | |
5687 | } | |
5688 | ||
aa2a5b86 RD |
5689 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5690 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5691 | PyObject * _resultobj; | |
5692 | wxCheckListBox * _result; | |
5693 | char *_kwnames[] = { NULL }; | |
5694 | char _ptemp[128]; | |
5695 | ||
5696 | self = self; | |
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5698 | return NULL; | |
5699 | { | |
474c48f9 | 5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5701 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
aa2a5b86 | 5702 | |
474c48f9 | 5703 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5704 | if (PyErr_Occurred()) return NULL; |
5705 | } if (_result) { | |
5706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5707 | _resultobj = Py_BuildValue("s",_ptemp); | |
5708 | } else { | |
5709 | Py_INCREF(Py_None); | |
5710 | _resultobj = Py_None; | |
5711 | } | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5716 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | bool _result; | |
5719 | wxCheckListBox * _arg0; | |
5720 | wxWindow * _arg1; | |
5721 | wxWindowID _arg2; | |
5722 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5723 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5724 | int _arg5 = (int ) 0; | |
5725 | wxString * _arg6 = (wxString *) NULL; | |
5726 | long _arg7 = (long ) 0; | |
5727 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5728 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
aa2a5b86 RD |
5729 | PyObject * _argo0 = 0; |
5730 | PyObject * _argo1 = 0; | |
5731 | wxPoint temp; | |
5732 | PyObject * _obj3 = 0; | |
5733 | wxSize temp0; | |
5734 | PyObject * _obj4 = 0; | |
5735 | PyObject * _obj6 = 0; | |
5736 | PyObject * _argo8 = 0; | |
9a74fcaf | 5737 | PyObject * _obj9 = 0; |
aa2a5b86 RD |
5738 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
5739 | ||
5740 | self = self; | |
9a74fcaf | 5741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
aa2a5b86 RD |
5742 | return NULL; |
5743 | if (_argo0) { | |
5744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5747 | return NULL; | |
5748 | } | |
5749 | } | |
5750 | if (_argo1) { | |
5751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5754 | return NULL; | |
5755 | } | |
5756 | } | |
5757 | if (_obj3) | |
5758 | { | |
5759 | _arg3 = &temp; | |
5760 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5761 | return NULL; | |
5762 | } | |
5763 | if (_obj4) | |
5764 | { | |
5765 | _arg4 = &temp0; | |
5766 | if (! wxSize_helper(_obj4, &_arg4)) | |
5767 | return NULL; | |
5768 | } | |
5769 | if (_obj6) | |
5770 | { | |
5771 | _arg6 = wxString_LIST_helper(_obj6); | |
5772 | if (_arg6 == NULL) { | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | if (_argo8) { | |
5777 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
5778 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
5779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); | |
5780 | return NULL; | |
5781 | } | |
5782 | } | |
9a74fcaf RD |
5783 | if (_obj9) |
5784 | { | |
5785 | _arg9 = wxString_in_helper(_obj9); | |
5786 | if (_arg9 == NULL) | |
5787 | return NULL; | |
5788 | } | |
aa2a5b86 RD |
5789 | { |
5790 | if (_obj6) { | |
5791 | _arg5 = PyList_Size(_obj6); | |
5792 | } | |
5793 | else { | |
5794 | _arg5 = 0; | |
5795 | } | |
5796 | } | |
5797 | { | |
474c48f9 | 5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5799 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
aa2a5b86 | 5800 | |
474c48f9 | 5801 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5802 | if (PyErr_Occurred()) return NULL; |
5803 | } _resultobj = Py_BuildValue("i",_result); | |
5804 | { | |
5805 | delete [] _arg6; | |
9a74fcaf RD |
5806 | } |
5807 | { | |
5808 | if (_obj9) | |
5809 | delete _arg9; | |
aa2a5b86 RD |
5810 | } |
5811 | return _resultobj; | |
5812 | } | |
5813 | ||
c95e68d8 | 5814 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
107e4716 | 5815 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5816 | PyObject * _resultobj; |
5817 | bool _result; | |
5818 | wxCheckListBox * _arg0; | |
5819 | int _arg1; | |
2d091820 | 5820 | PyObject * _argo0 = 0; |
107e4716 | 5821 | char *_kwnames[] = { "self","uiIndex", NULL }; |
c95e68d8 RD |
5822 | |
5823 | self = self; | |
107e4716 | 5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5825 | return NULL; |
2d091820 RD |
5826 | if (_argo0) { |
5827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
ab9bc19b | 5833 | { |
474c48f9 | 5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5835 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
ab9bc19b | 5836 | |
474c48f9 | 5837 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5838 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5839 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5840 | return _resultobj; |
5841 | } | |
5842 | ||
5843 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 5844 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5845 | PyObject * _resultobj; |
5846 | wxCheckListBox * _arg0; | |
5847 | int _arg1; | |
d29aba2f | 5848 | int _arg2 = (int ) TRUE; |
2d091820 | 5849 | PyObject * _argo0 = 0; |
107e4716 | 5850 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
c95e68d8 RD |
5851 | |
5852 | self = self; | |
d29aba2f | 5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 5854 | return NULL; |
2d091820 RD |
5855 | if (_argo0) { |
5856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5859 | return NULL; | |
5860 | } | |
5861 | } | |
ab9bc19b | 5862 | { |
474c48f9 | 5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5864 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
ab9bc19b | 5865 | |
474c48f9 | 5866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5867 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5868 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5869 | _resultobj = Py_None; |
5870 | return _resultobj; | |
5871 | } | |
5872 | ||
d29aba2f RD |
5873 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5874 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5875 | PyObject * _resultobj; | |
5876 | wxCheckListBox * _arg0; | |
5877 | int _arg1; | |
5878 | wxString * _arg2; | |
5879 | int _arg3; | |
5880 | PyObject * _argo0 = 0; | |
5881 | PyObject * _obj2 = 0; | |
e02c03a4 | 5882 | char *_kwnames[] = { "self","choices","pos", NULL }; |
d29aba2f RD |
5883 | |
5884 | self = self; | |
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5886 | return NULL; | |
5887 | if (_argo0) { | |
5888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5891 | return NULL; | |
5892 | } | |
5893 | } | |
5894 | { | |
5895 | _arg2 = wxString_LIST_helper(_obj2); | |
5896 | if (_arg2 == NULL) { | |
5897 | return NULL; | |
5898 | } | |
5899 | } | |
5900 | { | |
5901 | if (_obj2) { | |
5902 | _arg1 = PyList_Size(_obj2); | |
5903 | } | |
5904 | else { | |
5905 | _arg1 = 0; | |
5906 | } | |
5907 | } | |
5908 | { | |
474c48f9 | 5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5910 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
d29aba2f | 5911 | |
474c48f9 | 5912 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5913 | if (PyErr_Occurred()) return NULL; |
d29aba2f RD |
5914 | } Py_INCREF(Py_None); |
5915 | _resultobj = Py_None; | |
5916 | { | |
5917 | delete [] _arg2; | |
5918 | } | |
5919 | return _resultobj; | |
5920 | } | |
5921 | ||
c95e68d8 | 5922 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
107e4716 | 5923 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5924 | PyObject * _resultobj; |
5925 | int _result; | |
5926 | wxCheckListBox * _arg0; | |
2d091820 | 5927 | PyObject * _argo0 = 0; |
107e4716 | 5928 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
5929 | |
5930 | self = self; | |
107e4716 | 5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
c95e68d8 | 5932 | return NULL; |
2d091820 RD |
5933 | if (_argo0) { |
5934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5937 | return NULL; | |
5938 | } | |
5939 | } | |
ab9bc19b | 5940 | { |
474c48f9 | 5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5942 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
ab9bc19b | 5943 | |
474c48f9 | 5944 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5945 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5946 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5947 | return _resultobj; |
5948 | } | |
5949 | ||
9d6da64a RD |
5950 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2)) |
5951 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5952 | PyObject * _resultobj; | |
5953 | wxTextAttr * _result; | |
5954 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5955 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5956 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5957 | wxColour temp; | |
5958 | PyObject * _obj0 = 0; | |
5959 | wxColour temp0; | |
5960 | PyObject * _obj1 = 0; | |
5961 | PyObject * _argo2 = 0; | |
5962 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5963 | char _ptemp[128]; | |
5964 | ||
5965 | self = self; | |
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5967 | return NULL; | |
5968 | if (_obj0) | |
5969 | { | |
5970 | _arg0 = &temp; | |
5971 | if (! wxColour_helper(_obj0, &_arg0)) | |
5972 | return NULL; | |
5973 | } | |
5974 | if (_obj1) | |
5975 | { | |
5976 | _arg1 = &temp0; | |
5977 | if (! wxColour_helper(_obj1, &_arg1)) | |
5978 | return NULL; | |
5979 | } | |
5980 | if (_argo2) { | |
5981 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); | |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
5987 | { | |
474c48f9 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5989 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2); |
9d6da64a | 5990 | |
474c48f9 | 5991 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
5992 | if (PyErr_Occurred()) return NULL; |
5993 | } if (_result) { | |
5994 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
5995 | _resultobj = Py_BuildValue("s",_ptemp); | |
5996 | } else { | |
5997 | Py_INCREF(Py_None); | |
5998 | _resultobj = Py_None; | |
5999 | } | |
6000 | return _resultobj; | |
6001 | } | |
6002 | ||
6003 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
6004 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6005 | PyObject * _resultobj; | |
6006 | wxTextAttr * _arg0; | |
6007 | PyObject * _argo0 = 0; | |
6008 | char *_kwnames[] = { "self", NULL }; | |
6009 | ||
6010 | self = self; | |
6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
6012 | return NULL; | |
6013 | if (_argo0) { | |
6014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
6017 | return NULL; | |
6018 | } | |
6019 | } | |
6020 | { | |
474c48f9 | 6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6022 | delete_wxTextAttr(_arg0); |
9d6da64a | 6023 | |
474c48f9 | 6024 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6025 | if (PyErr_Occurred()) return NULL; |
6026 | } Py_INCREF(Py_None); | |
6027 | _resultobj = Py_None; | |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
6031 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
6032 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject * _resultobj; | |
6034 | wxTextAttr * _arg0; | |
6035 | wxColour * _arg1; | |
6036 | PyObject * _argo0 = 0; | |
6037 | wxColour temp; | |
6038 | PyObject * _obj1 = 0; | |
6039 | char *_kwnames[] = { "self","colText", NULL }; | |
6040 | ||
6041 | self = self; | |
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
6043 | return NULL; | |
6044 | if (_argo0) { | |
6045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
6048 | return NULL; | |
6049 | } | |
6050 | } | |
6051 | { | |
6052 | _arg1 = &temp; | |
6053 | if (! wxColour_helper(_obj1, &_arg1)) | |
6054 | return NULL; | |
6055 | } | |
6056 | { | |
474c48f9 | 6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6058 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
9d6da64a | 6059 | |
474c48f9 | 6060 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6061 | if (PyErr_Occurred()) return NULL; |
6062 | } Py_INCREF(Py_None); | |
6063 | _resultobj = Py_None; | |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
6067 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
6068 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject * _resultobj; | |
6070 | wxTextAttr * _arg0; | |
6071 | wxColour * _arg1; | |
6072 | PyObject * _argo0 = 0; | |
6073 | wxColour temp; | |
6074 | PyObject * _obj1 = 0; | |
6075 | char *_kwnames[] = { "self","colBack", NULL }; | |
6076 | ||
6077 | self = self; | |
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
6079 | return NULL; | |
6080 | if (_argo0) { | |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
6084 | return NULL; | |
6085 | } | |
6086 | } | |
6087 | { | |
6088 | _arg1 = &temp; | |
6089 | if (! wxColour_helper(_obj1, &_arg1)) | |
6090 | return NULL; | |
6091 | } | |
6092 | { | |
474c48f9 | 6093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6094 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
9d6da64a | 6095 | |
474c48f9 | 6096 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6097 | if (PyErr_Occurred()) return NULL; |
6098 | } Py_INCREF(Py_None); | |
6099 | _resultobj = Py_None; | |
6100 | return _resultobj; | |
6101 | } | |
6102 | ||
6103 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
6104 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject * _resultobj; | |
6106 | wxTextAttr * _arg0; | |
6107 | wxFont * _arg1; | |
6108 | PyObject * _argo0 = 0; | |
6109 | PyObject * _argo1 = 0; | |
6110 | char *_kwnames[] = { "self","font", NULL }; | |
6111 | ||
6112 | self = self; | |
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
6114 | return NULL; | |
6115 | if (_argo0) { | |
6116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
6119 | return NULL; | |
6120 | } | |
6121 | } | |
6122 | if (_argo1) { | |
6123 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6124 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
6125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); | |
6126 | return NULL; | |
6127 | } | |
6128 | } | |
6129 | { | |
474c48f9 | 6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6131 | wxTextAttr_SetFont(_arg0,*_arg1); |
9d6da64a | 6132 | |
474c48f9 | 6133 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6134 | if (PyErr_Occurred()) return NULL; |
6135 | } Py_INCREF(Py_None); | |
6136 | _resultobj = Py_None; | |
6137 | return _resultobj; | |
6138 | } | |
6139 | ||
6140 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
6141 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6142 | PyObject * _resultobj; | |
6143 | bool _result; | |
6144 | wxTextAttr * _arg0; | |
6145 | PyObject * _argo0 = 0; | |
6146 | char *_kwnames[] = { "self", NULL }; | |
6147 | ||
6148 | self = self; | |
6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
6150 | return NULL; | |
6151 | if (_argo0) { | |
6152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
6155 | return NULL; | |
6156 | } | |
6157 | } | |
6158 | { | |
474c48f9 | 6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6160 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
9d6da64a | 6161 | |
474c48f9 | 6162 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6163 | if (PyErr_Occurred()) return NULL; |
6164 | } _resultobj = Py_BuildValue("i",_result); | |
6165 | return _resultobj; | |
6166 | } | |
6167 | ||
6168 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
6169 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6170 | PyObject * _resultobj; | |
6171 | bool _result; | |
6172 | wxTextAttr * _arg0; | |
6173 | PyObject * _argo0 = 0; | |
6174 | char *_kwnames[] = { "self", NULL }; | |
6175 | ||
6176 | self = self; | |
6177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
6178 | return NULL; | |
6179 | if (_argo0) { | |
6180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
6183 | return NULL; | |
6184 | } | |
6185 | } | |
6186 | { | |
474c48f9 | 6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6188 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
9d6da64a | 6189 | |
474c48f9 | 6190 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6191 | if (PyErr_Occurred()) return NULL; |
6192 | } _resultobj = Py_BuildValue("i",_result); | |
6193 | return _resultobj; | |
6194 | } | |
6195 | ||
6196 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
6197 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject * _resultobj; | |
6199 | bool _result; | |
6200 | wxTextAttr * _arg0; | |
6201 | PyObject * _argo0 = 0; | |
6202 | char *_kwnames[] = { "self", NULL }; | |
6203 | ||
6204 | self = self; | |
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
6206 | return NULL; | |
6207 | if (_argo0) { | |
6208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
6214 | { | |
474c48f9 | 6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6216 | _result = (bool )wxTextAttr_HasFont(_arg0); |
9d6da64a | 6217 | |
474c48f9 | 6218 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6219 | if (PyErr_Occurred()) return NULL; |
6220 | } _resultobj = Py_BuildValue("i",_result); | |
6221 | return _resultobj; | |
6222 | } | |
6223 | ||
6224 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
6225 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6226 | PyObject * _resultobj; | |
6227 | wxColour * _result; | |
6228 | wxTextAttr * _arg0; | |
6229 | PyObject * _argo0 = 0; | |
6230 | char *_kwnames[] = { "self", NULL }; | |
6231 | char _ptemp[128]; | |
6232 | ||
6233 | self = self; | |
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
6235 | return NULL; | |
6236 | if (_argo0) { | |
6237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | { | |
474c48f9 | 6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6245 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
9d6da64a | 6246 | |
474c48f9 | 6247 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6248 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6249 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6250 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6251 | return _resultobj; |
6252 | } | |
6253 | ||
6254 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6255 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6256 | PyObject * _resultobj; | |
6257 | wxColour * _result; | |
6258 | wxTextAttr * _arg0; | |
6259 | PyObject * _argo0 = 0; | |
6260 | char *_kwnames[] = { "self", NULL }; | |
6261 | char _ptemp[128]; | |
6262 | ||
6263 | self = self; | |
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6265 | return NULL; | |
6266 | if (_argo0) { | |
6267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
6270 | return NULL; | |
6271 | } | |
6272 | } | |
6273 | { | |
474c48f9 | 6274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6275 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
9d6da64a | 6276 | |
474c48f9 | 6277 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6278 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6279 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6280 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6281 | return _resultobj; |
6282 | } | |
6283 | ||
6284 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6285 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | wxFont * _result; | |
6288 | wxTextAttr * _arg0; | |
6289 | PyObject * _argo0 = 0; | |
6290 | char *_kwnames[] = { "self", NULL }; | |
6291 | char _ptemp[128]; | |
6292 | ||
6293 | self = self; | |
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
6295 | return NULL; | |
6296 | if (_argo0) { | |
6297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
6300 | return NULL; | |
6301 | } | |
6302 | } | |
6303 | { | |
474c48f9 | 6304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6305 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
9d6da64a | 6306 | |
474c48f9 | 6307 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6308 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6309 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
6310 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6311 | return _resultobj; |
6312 | } | |
6313 | ||
a57d56d6 RD |
6314 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
6315 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject * _resultobj; | |
6317 | bool _result; | |
6318 | wxTextAttr * _arg0; | |
6319 | PyObject * _argo0 = 0; | |
6320 | char *_kwnames[] = { "self", NULL }; | |
6321 | ||
6322 | self = self; | |
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6324 | return NULL; | |
6325 | if (_argo0) { | |
6326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6329 | return NULL; | |
6330 | } | |
6331 | } | |
6332 | { | |
474c48f9 | 6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6334 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
a57d56d6 | 6335 | |
474c48f9 | 6336 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
6337 | if (PyErr_Occurred()) return NULL; |
6338 | } _resultobj = Py_BuildValue("i",_result); | |
6339 | return _resultobj; | |
6340 | } | |
6341 | ||
7a9b33db RD |
6342 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
6343 | PyObject * _resultobj; | |
6344 | wxTextAttr * _result; | |
6345 | wxTextAttr * _arg0; | |
6346 | wxTextAttr * _arg1; | |
6347 | wxTextCtrl * _arg2; | |
6348 | PyObject * _argo0 = 0; | |
6349 | PyObject * _argo1 = 0; | |
6350 | PyObject * _argo2 = 0; | |
6351 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6352 | char _ptemp[128]; | |
6353 | ||
6354 | self = self; | |
6355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6356 | return NULL; | |
6357 | if (_argo0) { | |
6358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6361 | return NULL; | |
6362 | } | |
6363 | } | |
6364 | if (_argo1) { | |
6365 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6366 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
6367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); | |
6368 | return NULL; | |
6369 | } | |
6370 | } | |
6371 | if (_argo2) { | |
6372 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6373 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6375 | return NULL; | |
6376 | } | |
6377 | } | |
6378 | { | |
474c48f9 | 6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6380 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
7a9b33db | 6381 | |
474c48f9 | 6382 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
6383 | if (PyErr_Occurred()) return NULL; |
6384 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6385 | _resultobj = Py_BuildValue("s",_ptemp); | |
6386 | return _resultobj; | |
6387 | } | |
6388 | ||
70551f47 RD |
6389 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
6390 | wxTextCtrl *src; | |
6391 | wxControl *dest; | |
6392 | src = (wxTextCtrl *) ptr; | |
6393 | dest = (wxControl *) src; | |
6394 | return (void *) dest; | |
6395 | } | |
6396 | ||
6397 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6398 | wxTextCtrl *src; | |
6399 | wxWindow *dest; | |
6400 | src = (wxTextCtrl *) ptr; | |
6401 | dest = (wxWindow *) src; | |
6402 | return (void *) dest; | |
6403 | } | |
6404 | ||
6405 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6406 | wxTextCtrl *src; | |
6407 | wxEvtHandler *dest; | |
6408 | src = (wxTextCtrl *) ptr; | |
6409 | dest = (wxEvtHandler *) src; | |
6410 | return (void *) dest; | |
6411 | } | |
6412 | ||
9df61a29 RD |
6413 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
6414 | wxTextCtrl *src; | |
6415 | wxObject *dest; | |
6416 | src = (wxTextCtrl *) ptr; | |
6417 | dest = (wxObject *) src; | |
6418 | return (void *) dest; | |
6419 | } | |
6420 | ||
70551f47 | 6421 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 6422 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6423 | PyObject * _resultobj; |
6424 | wxTextCtrl * _result; | |
6425 | wxWindow * _arg0; | |
6426 | wxWindowID _arg1; | |
9a74fcaf | 6427 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
6428 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6429 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 6430 | long _arg5 = (long ) 0; |
b68dc582 | 6431 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6432 | wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr; |
2d091820 | 6433 | PyObject * _argo0 = 0; |
9a74fcaf | 6434 | PyObject * _obj2 = 0; |
37f6a977 RD |
6435 | wxPoint temp; |
6436 | PyObject * _obj3 = 0; | |
6437 | wxSize temp0; | |
6438 | PyObject * _obj4 = 0; | |
2d091820 | 6439 | PyObject * _argo6 = 0; |
9a74fcaf | 6440 | PyObject * _obj7 = 0; |
107e4716 | 6441 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
70551f47 RD |
6442 | char _ptemp[128]; |
6443 | ||
6444 | self = self; | |
9a74fcaf | 6445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 6446 | return NULL; |
2d091820 RD |
6447 | if (_argo0) { |
6448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
6450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
6451 | return NULL; | |
6452 | } | |
6453 | } | |
9a74fcaf RD |
6454 | if (_obj2) |
6455 | { | |
6456 | _arg2 = wxString_in_helper(_obj2); | |
6457 | if (_arg2 == NULL) | |
6458 | return NULL; | |
6459 | } | |
37f6a977 RD |
6460 | if (_obj3) |
6461 | { | |
6462 | _arg3 = &temp; | |
6463 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 6464 | return NULL; |
37f6a977 RD |
6465 | } |
6466 | if (_obj4) | |
6467 | { | |
6468 | _arg4 = &temp0; | |
6469 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 6470 | return NULL; |
37f6a977 | 6471 | } |
2d091820 RD |
6472 | if (_argo6) { |
6473 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6474 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
70551f47 RD |
6475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
6476 | return NULL; | |
6477 | } | |
6478 | } | |
9a74fcaf RD |
6479 | if (_obj7) |
6480 | { | |
6481 | _arg7 = wxString_in_helper(_obj7); | |
6482 | if (_arg7 == NULL) | |
6483 | return NULL; | |
6484 | } | |
ab9bc19b | 6485 | { |
474c48f9 | 6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6487 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 6488 | |
474c48f9 | 6489 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6490 | if (PyErr_Occurred()) return NULL; |
6491 | } if (_result) { | |
6492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6493 | _resultobj = Py_BuildValue("s",_ptemp); | |
6494 | } else { | |
6495 | Py_INCREF(Py_None); | |
6496 | _resultobj = Py_None; | |
6497 | } | |
9a74fcaf RD |
6498 | { |
6499 | if (_obj2) | |
6500 | delete _arg2; | |
6501 | } | |
6502 | { | |
6503 | if (_obj7) | |
6504 | delete _arg7; | |
6505 | } | |
aa2a5b86 RD |
6506 | return _resultobj; |
6507 | } | |
6508 | ||
6509 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
6510 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject * _resultobj; | |
6512 | wxTextCtrl * _result; | |
6513 | char *_kwnames[] = { NULL }; | |
6514 | char _ptemp[128]; | |
6515 | ||
6516 | self = self; | |
6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
6518 | return NULL; | |
6519 | { | |
474c48f9 | 6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6521 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
aa2a5b86 | 6522 | |
474c48f9 | 6523 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6524 | if (PyErr_Occurred()) return NULL; |
6525 | } if (_result) { | |
6526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
6527 | _resultobj = Py_BuildValue("s",_ptemp); | |
6528 | } else { | |
6529 | Py_INCREF(Py_None); | |
6530 | _resultobj = Py_None; | |
6531 | } | |
6532 | return _resultobj; | |
6533 | } | |
6534 | ||
6535 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
6536 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6537 | PyObject * _resultobj; | |
6538 | bool _result; | |
6539 | wxTextCtrl * _arg0; | |
6540 | wxWindow * _arg1; | |
6541 | wxWindowID _arg2; | |
9a74fcaf | 6542 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
6543 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
6544 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
6545 | long _arg6 = (long ) 0; | |
6546 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 6547 | wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr; |
aa2a5b86 RD |
6548 | PyObject * _argo0 = 0; |
6549 | PyObject * _argo1 = 0; | |
9a74fcaf | 6550 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
6551 | wxPoint temp; |
6552 | PyObject * _obj4 = 0; | |
6553 | wxSize temp0; | |
6554 | PyObject * _obj5 = 0; | |
6555 | PyObject * _argo7 = 0; | |
9a74fcaf | 6556 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
6557 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; |
6558 | ||
6559 | self = self; | |
9a74fcaf | 6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
6561 | return NULL; |
6562 | if (_argo0) { | |
6563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
6566 | return NULL; | |
6567 | } | |
6568 | } | |
6569 | if (_argo1) { | |
6570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
6573 | return NULL; | |
6574 | } | |
6575 | } | |
9a74fcaf RD |
6576 | if (_obj3) |
6577 | { | |
6578 | _arg3 = wxString_in_helper(_obj3); | |
6579 | if (_arg3 == NULL) | |
6580 | return NULL; | |
6581 | } | |
aa2a5b86 RD |
6582 | if (_obj4) |
6583 | { | |
6584 | _arg4 = &temp; | |
6585 | if (! wxPoint_helper(_obj4, &_arg4)) | |
6586 | return NULL; | |
6587 | } | |
6588 | if (_obj5) | |
6589 | { | |
6590 | _arg5 = &temp0; | |
6591 | if (! wxSize_helper(_obj5, &_arg5)) | |
6592 | return NULL; | |
6593 | } | |
6594 | if (_argo7) { | |
6595 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
6596 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
6597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); | |
6598 | return NULL; | |
6599 | } | |
6600 | } | |
9a74fcaf RD |
6601 | if (_obj8) |
6602 | { | |
6603 | _arg8 = wxString_in_helper(_obj8); | |
6604 | if (_arg8 == NULL) | |
6605 | return NULL; | |
6606 | } | |
aa2a5b86 | 6607 | { |
474c48f9 | 6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6609 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 6610 | |
474c48f9 | 6611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6612 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6613 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
6614 | { |
6615 | if (_obj3) | |
6616 | delete _arg3; | |
6617 | } | |
6618 | { | |
6619 | if (_obj8) | |
6620 | delete _arg8; | |
6621 | } | |
70551f47 RD |
6622 | return _resultobj; |
6623 | } | |
6624 | ||
a57d56d6 RD |
6625 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
6626 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6627 | PyObject * _resultobj; |
a57d56d6 | 6628 | wxString * _result; |
70551f47 | 6629 | wxTextCtrl * _arg0; |
2d091820 | 6630 | PyObject * _argo0 = 0; |
107e4716 | 6631 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6632 | |
6633 | self = self; | |
a57d56d6 | 6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
70551f47 | 6635 | return NULL; |
2d091820 RD |
6636 | if (_argo0) { |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
6640 | return NULL; |
6641 | } | |
6642 | } | |
ab9bc19b | 6643 | { |
474c48f9 | 6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6645 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
ab9bc19b | 6646 | |
474c48f9 | 6647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6648 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6649 | }{ |
c8bc7bb8 RD |
6650 | #if wxUSE_UNICODE |
6651 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6652 | #else | |
a57d56d6 | 6653 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6654 | #endif |
a57d56d6 RD |
6655 | } |
6656 | { | |
6657 | delete _result; | |
6658 | } | |
70551f47 RD |
6659 | return _resultobj; |
6660 | } | |
6661 | ||
a57d56d6 RD |
6662 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
6663 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6664 | PyObject * _resultobj; |
6665 | wxTextCtrl * _arg0; | |
a57d56d6 | 6666 | wxString * _arg1; |
2d091820 | 6667 | PyObject * _argo0 = 0; |
a57d56d6 RD |
6668 | PyObject * _obj1 = 0; |
6669 | char *_kwnames[] = { "self","value", NULL }; | |
70551f47 RD |
6670 | |
6671 | self = self; | |
a57d56d6 | 6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 6673 | return NULL; |
2d091820 RD |
6674 | if (_argo0) { |
6675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
6678 | return NULL; |
6679 | } | |
6680 | } | |
a57d56d6 | 6681 | { |
c8bc7bb8 RD |
6682 | _arg1 = wxString_in_helper(_obj1); |
6683 | if (_arg1 == NULL) | |
a57d56d6 | 6684 | return NULL; |
a57d56d6 | 6685 | } |
ab9bc19b | 6686 | { |
474c48f9 | 6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6688 | wxTextCtrl_SetValue(_arg0,*_arg1); |
ab9bc19b | 6689 | |
474c48f9 | 6690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6691 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6692 | } Py_INCREF(Py_None); |
70551f47 | 6693 | _resultobj = Py_None; |
a57d56d6 RD |
6694 | { |
6695 | if (_obj1) | |
6696 | delete _arg1; | |
6697 | } | |
70551f47 RD |
6698 | return _resultobj; |
6699 | } | |
6700 | ||
db34b2d4 RD |
6701 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
6702 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject * _resultobj; | |
6704 | wxString * _result; | |
6705 | wxTextCtrl * _arg0; | |
6706 | long _arg1; | |
6707 | long _arg2; | |
6708 | PyObject * _argo0 = 0; | |
6709 | char *_kwnames[] = { "self","from","to", NULL }; | |
6710 | ||
6711 | self = self; | |
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6713 | return NULL; | |
6714 | if (_argo0) { | |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
6721 | { | |
6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6723 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); |
db34b2d4 RD |
6724 | |
6725 | wxPyEndAllowThreads(__tstate); | |
6726 | if (PyErr_Occurred()) return NULL; | |
6727 | }{ | |
c8bc7bb8 RD |
6728 | #if wxUSE_UNICODE |
6729 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6730 | #else | |
db34b2d4 | 6731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6732 | #endif |
db34b2d4 RD |
6733 | } |
6734 | { | |
6735 | delete _result; | |
6736 | } | |
6737 | return _resultobj; | |
6738 | } | |
6739 | ||
a57d56d6 RD |
6740 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
6741 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6742 | PyObject * _resultobj; |
a57d56d6 | 6743 | int _result; |
70551f47 | 6744 | wxTextCtrl * _arg0; |
a57d56d6 | 6745 | long _arg1; |
2d091820 | 6746 | PyObject * _argo0 = 0; |
a57d56d6 | 6747 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
6748 | |
6749 | self = self; | |
a57d56d6 | 6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6751 | return NULL; |
2d091820 RD |
6752 | if (_argo0) { |
6753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
6756 | return NULL; |
6757 | } | |
6758 | } | |
ab9bc19b | 6759 | { |
474c48f9 | 6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6761 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
ab9bc19b | 6762 | |
474c48f9 | 6763 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6764 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6765 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6766 | return _resultobj; |
6767 | } | |
6768 | ||
a57d56d6 RD |
6769 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
6770 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6771 | PyObject * _resultobj; |
a57d56d6 | 6772 | wxString * _result; |
70551f47 | 6773 | wxTextCtrl * _arg0; |
a57d56d6 | 6774 | long _arg1; |
2d091820 | 6775 | PyObject * _argo0 = 0; |
a57d56d6 | 6776 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
6777 | |
6778 | self = self; | |
a57d56d6 | 6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6780 | return NULL; |
2d091820 RD |
6781 | if (_argo0) { |
6782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
70551f47 RD |
6785 | return NULL; |
6786 | } | |
6787 | } | |
ab9bc19b | 6788 | { |
474c48f9 | 6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6790 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
ab9bc19b | 6791 | |
474c48f9 | 6792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6793 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6794 | }{ |
c8bc7bb8 RD |
6795 | #if wxUSE_UNICODE |
6796 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6797 | #else | |
a57d56d6 | 6798 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6799 | #endif |
a57d56d6 RD |
6800 | } |
6801 | { | |
6802 | delete _result; | |
6803 | } | |
70551f47 RD |
6804 | return _resultobj; |
6805 | } | |
6806 | ||
a57d56d6 RD |
6807 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
6808 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6809 | PyObject * _resultobj; |
a57d56d6 | 6810 | int _result; |
70551f47 | 6811 | wxTextCtrl * _arg0; |
2d091820 | 6812 | PyObject * _argo0 = 0; |
107e4716 | 6813 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6814 | |
6815 | self = self; | |
a57d56d6 | 6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
70551f47 | 6817 | return NULL; |
2d091820 RD |
6818 | if (_argo0) { |
6819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
70551f47 RD |
6822 | return NULL; |
6823 | } | |
6824 | } | |
ab9bc19b | 6825 | { |
474c48f9 | 6826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6827 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
ab9bc19b | 6828 | |
474c48f9 | 6829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6830 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6831 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6832 | return _resultobj; |
6833 | } | |
6834 | ||
a57d56d6 RD |
6835 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
6836 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 6837 | PyObject * _resultobj; |
a57d56d6 | 6838 | bool _result; |
70551f47 | 6839 | wxTextCtrl * _arg0; |
2d091820 | 6840 | PyObject * _argo0 = 0; |
107e4716 | 6841 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6842 | |
6843 | self = self; | |
a57d56d6 | 6844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
70551f47 | 6845 | return NULL; |
2d091820 RD |
6846 | if (_argo0) { |
6847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
70551f47 RD |
6850 | return NULL; |
6851 | } | |
6852 | } | |
ab9bc19b | 6853 | { |
474c48f9 | 6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6855 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
ab9bc19b | 6856 | |
474c48f9 | 6857 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6858 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 6859 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6860 | return _resultobj; |
6861 | } | |
6862 | ||
a57d56d6 RD |
6863 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
6864 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6865 | PyObject * _resultobj; |
a57d56d6 | 6866 | bool _result; |
faf3cb35 | 6867 | wxTextCtrl * _arg0; |
2d091820 | 6868 | PyObject * _argo0 = 0; |
a57d56d6 | 6869 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6870 | |
6871 | self = self; | |
a57d56d6 | 6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
faf3cb35 | 6873 | return NULL; |
2d091820 RD |
6874 | if (_argo0) { |
6875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6878 | return NULL; |
6879 | } | |
6880 | } | |
ab9bc19b | 6881 | { |
474c48f9 | 6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6883 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
ab9bc19b | 6884 | |
474c48f9 | 6885 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6886 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6887 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
6888 | return _resultobj; |
6889 | } | |
6890 | ||
a57d56d6 RD |
6891 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
6892 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6893 | PyObject * _resultobj; |
faf3cb35 | 6894 | wxTextCtrl * _arg0; |
a57d56d6 RD |
6895 | long * _arg1; |
6896 | long temp; | |
6897 | long * _arg2; | |
6898 | long temp0; | |
2d091820 | 6899 | PyObject * _argo0 = 0; |
a57d56d6 | 6900 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6901 | |
6902 | self = self; | |
a57d56d6 RD |
6903 | { |
6904 | _arg1 = &temp; | |
6905 | } | |
6906 | { | |
6907 | _arg2 = &temp0; | |
6908 | } | |
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
faf3cb35 | 6910 | return NULL; |
2d091820 RD |
6911 | if (_argo0) { |
6912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6915 | return NULL; |
6916 | } | |
6917 | } | |
faf3cb35 | 6918 | { |
474c48f9 | 6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6920 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 6921 | |
474c48f9 | 6922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6923 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6924 | } Py_INCREF(Py_None); |
6925 | _resultobj = Py_None; | |
6926 | { | |
6927 | PyObject *o; | |
6928 | o = PyInt_FromLong((long) (*_arg1)); | |
6929 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
6930 | } |
6931 | { | |
a57d56d6 RD |
6932 | PyObject *o; |
6933 | o = PyInt_FromLong((long) (*_arg2)); | |
6934 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
6935 | } |
6936 | return _resultobj; | |
6937 | } | |
6938 | ||
93283355 RD |
6939 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
6940 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6941 | PyObject * _resultobj; | |
6942 | wxString * _result; | |
6943 | wxTextCtrl * _arg0; | |
6944 | PyObject * _argo0 = 0; | |
6945 | char *_kwnames[] = { "self", NULL }; | |
6946 | ||
6947 | self = self; | |
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
6949 | return NULL; | |
6950 | if (_argo0) { | |
6951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
6953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
6954 | return NULL; | |
6955 | } | |
6956 | } | |
6957 | { | |
474c48f9 | 6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6959 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
93283355 | 6960 | |
474c48f9 | 6961 | wxPyEndAllowThreads(__tstate); |
93283355 RD |
6962 | if (PyErr_Occurred()) return NULL; |
6963 | }{ | |
c8bc7bb8 RD |
6964 | #if wxUSE_UNICODE |
6965 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6966 | #else | |
93283355 | 6967 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6968 | #endif |
93283355 RD |
6969 | } |
6970 | { | |
6971 | delete _result; | |
6972 | } | |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
a57d56d6 RD |
6976 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
6977 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 6978 | PyObject * _resultobj; |
faf3cb35 | 6979 | wxTextCtrl * _arg0; |
2d091820 | 6980 | PyObject * _argo0 = 0; |
107e4716 | 6981 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
6982 | |
6983 | self = self; | |
a57d56d6 | 6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
faf3cb35 | 6985 | return NULL; |
2d091820 RD |
6986 | if (_argo0) { |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
6990 | return NULL; |
6991 | } | |
6992 | } | |
ab9bc19b | 6993 | { |
474c48f9 | 6994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6995 | wxTextCtrl_Clear(_arg0); |
ab9bc19b | 6996 | |
474c48f9 | 6997 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6998 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
6999 | } Py_INCREF(Py_None); |
7000 | _resultobj = Py_None; | |
faf3cb35 RD |
7001 | return _resultobj; |
7002 | } | |
7003 | ||
a57d56d6 RD |
7004 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
7005 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7006 | PyObject * _resultobj; |
70551f47 | 7007 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7008 | long _arg1; |
7009 | long _arg2; | |
7010 | wxString * _arg3; | |
2d091820 | 7011 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7012 | PyObject * _obj3 = 0; |
7013 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
70551f47 RD |
7014 | |
7015 | self = self; | |
a57d56d6 | 7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 7017 | return NULL; |
2d091820 RD |
7018 | if (_argo0) { |
7019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
70551f47 RD |
7022 | return NULL; |
7023 | } | |
7024 | } | |
a57d56d6 | 7025 | { |
c8bc7bb8 RD |
7026 | _arg3 = wxString_in_helper(_obj3); |
7027 | if (_arg3 == NULL) | |
a57d56d6 | 7028 | return NULL; |
a57d56d6 | 7029 | } |
70551f47 | 7030 | { |
474c48f9 | 7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7032 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 7033 | |
474c48f9 | 7034 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7035 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7036 | } Py_INCREF(Py_None); |
7037 | _resultobj = Py_None; | |
70551f47 | 7038 | { |
a57d56d6 RD |
7039 | if (_obj3) |
7040 | delete _arg3; | |
70551f47 RD |
7041 | } |
7042 | return _resultobj; | |
7043 | } | |
7044 | ||
a57d56d6 RD |
7045 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
7046 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7047 | PyObject * _resultobj; | |
70551f47 | 7048 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7049 | long _arg1; |
7050 | long _arg2; | |
2d091820 | 7051 | PyObject * _argo0 = 0; |
a57d56d6 | 7052 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
7053 | |
7054 | self = self; | |
a57d56d6 | 7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7056 | return NULL; |
2d091820 RD |
7057 | if (_argo0) { |
7058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
70551f47 RD |
7061 | return NULL; |
7062 | } | |
7063 | } | |
ab9bc19b | 7064 | { |
474c48f9 | 7065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7066 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 7067 | |
474c48f9 | 7068 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7069 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7070 | } Py_INCREF(Py_None); |
7071 | _resultobj = Py_None; | |
70551f47 RD |
7072 | return _resultobj; |
7073 | } | |
7074 | ||
7075 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
107e4716 | 7076 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7077 | PyObject * _resultobj; |
7078 | bool _result; | |
7079 | wxTextCtrl * _arg0; | |
7080 | wxString * _arg1; | |
2d091820 | 7081 | PyObject * _argo0 = 0; |
70551f47 | 7082 | PyObject * _obj1 = 0; |
a57d56d6 | 7083 | char *_kwnames[] = { "self","file", NULL }; |
70551f47 RD |
7084 | |
7085 | self = self; | |
107e4716 | 7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7087 | return NULL; |
2d091820 RD |
7088 | if (_argo0) { |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | { | |
c8bc7bb8 RD |
7096 | _arg1 = wxString_in_helper(_obj1); |
7097 | if (_arg1 == NULL) | |
2cd2fac8 | 7098 | return NULL; |
70551f47 | 7099 | } |
ab9bc19b | 7100 | { |
474c48f9 | 7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7102 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
ab9bc19b | 7103 | |
474c48f9 | 7104 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7105 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7106 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7107 | { |
7108 | if (_obj1) | |
7109 | delete _arg1; | |
7110 | } | |
7111 | return _resultobj; | |
7112 | } | |
7113 | ||
a57d56d6 RD |
7114 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
7115 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7116 | PyObject * _resultobj; |
a57d56d6 | 7117 | bool _result; |
70551f47 | 7118 | wxTextCtrl * _arg0; |
9a74fcaf | 7119 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
2d091820 | 7120 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7121 | PyObject * _obj1 = 0; |
7122 | char *_kwnames[] = { "self","file", NULL }; | |
70551f47 RD |
7123 | |
7124 | self = self; | |
a57d56d6 | 7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7126 | return NULL; |
2d091820 RD |
7127 | if (_argo0) { |
7128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
70551f47 RD |
7131 | return NULL; |
7132 | } | |
7133 | } | |
a57d56d6 RD |
7134 | if (_obj1) |
7135 | { | |
c8bc7bb8 RD |
7136 | _arg1 = wxString_in_helper(_obj1); |
7137 | if (_arg1 == NULL) | |
a57d56d6 | 7138 | return NULL; |
a57d56d6 | 7139 | } |
ab9bc19b | 7140 | { |
474c48f9 | 7141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7142 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
ab9bc19b | 7143 | |
474c48f9 | 7144 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7145 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7146 | } _resultobj = Py_BuildValue("i",_result); |
7147 | { | |
7148 | if (_obj1) | |
7149 | delete _arg1; | |
7150 | } | |
70551f47 RD |
7151 | return _resultobj; |
7152 | } | |
7153 | ||
a57d56d6 RD |
7154 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
7155 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 RD |
7156 | PyObject * _resultobj; |
7157 | wxTextCtrl * _arg0; | |
2d091820 | 7158 | PyObject * _argo0 = 0; |
a57d56d6 | 7159 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7160 | |
7161 | self = self; | |
a57d56d6 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
faf3cb35 | 7163 | return NULL; |
2d091820 RD |
7164 | if (_argo0) { |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7168 | return NULL; |
7169 | } | |
7170 | } | |
ab9bc19b | 7171 | { |
474c48f9 | 7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7173 | wxTextCtrl_DiscardEdits(_arg0); |
ab9bc19b | 7174 | |
474c48f9 | 7175 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7176 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7177 | } Py_INCREF(Py_None); |
faf3cb35 | 7178 | _resultobj = Py_None; |
faf3cb35 RD |
7179 | return _resultobj; |
7180 | } | |
7181 | ||
a57d56d6 RD |
7182 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
7183 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7184 | PyObject * _resultobj; |
7185 | wxTextCtrl * _arg0; | |
a57d56d6 | 7186 | unsigned long _arg1; |
2d091820 | 7187 | PyObject * _argo0 = 0; |
a57d56d6 | 7188 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
7189 | |
7190 | self = self; | |
a57d56d6 | 7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7192 | return NULL; |
2d091820 RD |
7193 | if (_argo0) { |
7194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
7197 | return NULL; |
7198 | } | |
7199 | } | |
ab9bc19b | 7200 | { |
474c48f9 | 7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7202 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
ab9bc19b | 7203 | |
474c48f9 | 7204 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7205 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7206 | } Py_INCREF(Py_None); |
70551f47 RD |
7207 | _resultobj = Py_None; |
7208 | return _resultobj; | |
7209 | } | |
7210 | ||
a57d56d6 RD |
7211 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
7212 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7213 | PyObject * _resultobj; |
7214 | wxTextCtrl * _arg0; | |
a57d56d6 | 7215 | wxString * _arg1; |
2d091820 | 7216 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7217 | PyObject * _obj1 = 0; |
7218 | char *_kwnames[] = { "self","text", NULL }; | |
70551f47 RD |
7219 | |
7220 | self = self; | |
a57d56d6 | 7221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7222 | return NULL; |
2d091820 RD |
7223 | if (_argo0) { |
7224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
70551f47 RD |
7227 | return NULL; |
7228 | } | |
7229 | } | |
7230 | { | |
c8bc7bb8 RD |
7231 | _arg1 = wxString_in_helper(_obj1); |
7232 | if (_arg1 == NULL) | |
2cd2fac8 | 7233 | return NULL; |
70551f47 | 7234 | } |
ab9bc19b | 7235 | { |
474c48f9 | 7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7237 | wxTextCtrl_WriteText(_arg0,*_arg1); |
ab9bc19b | 7238 | |
474c48f9 | 7239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7240 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7241 | } Py_INCREF(Py_None); |
70551f47 RD |
7242 | _resultobj = Py_None; |
7243 | { | |
a57d56d6 RD |
7244 | if (_obj1) |
7245 | delete _arg1; | |
70551f47 RD |
7246 | } |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
a57d56d6 RD |
7250 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
7251 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7252 | PyObject * _resultobj; |
70551f47 RD |
7253 | wxTextCtrl * _arg0; |
7254 | wxString * _arg1; | |
2d091820 | 7255 | PyObject * _argo0 = 0; |
70551f47 | 7256 | PyObject * _obj1 = 0; |
a57d56d6 | 7257 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
7258 | |
7259 | self = self; | |
a57d56d6 | 7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7261 | return NULL; |
2d091820 RD |
7262 | if (_argo0) { |
7263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
70551f47 RD |
7266 | return NULL; |
7267 | } | |
7268 | } | |
7269 | { | |
c8bc7bb8 RD |
7270 | _arg1 = wxString_in_helper(_obj1); |
7271 | if (_arg1 == NULL) | |
70551f47 | 7272 | return NULL; |
70551f47 | 7273 | } |
ab9bc19b | 7274 | { |
474c48f9 | 7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7276 | wxTextCtrl_AppendText(_arg0,*_arg1); |
ab9bc19b | 7277 | |
474c48f9 | 7278 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7279 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7280 | } Py_INCREF(Py_None); |
7281 | _resultobj = Py_None; | |
70551f47 RD |
7282 | { |
7283 | if (_obj1) | |
7284 | delete _arg1; | |
7285 | } | |
7286 | return _resultobj; | |
7287 | } | |
7288 | ||
87439dd8 RD |
7289 | #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0)) |
7290 | static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7291 | PyObject * _resultobj; | |
7292 | bool _result; | |
7293 | wxTextCtrl * _arg0; | |
7294 | wxKeyEvent * _arg1; | |
7295 | PyObject * _argo0 = 0; | |
7296 | PyObject * _argo1 = 0; | |
7297 | char *_kwnames[] = { "self","event", NULL }; | |
7298 | ||
7299 | self = self; | |
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1)) | |
7301 | return NULL; | |
7302 | if (_argo0) { | |
7303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p."); | |
7306 | return NULL; | |
7307 | } | |
7308 | } | |
7309 | if (_argo1) { | |
7310 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7311 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { | |
7312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p."); | |
7313 | return NULL; | |
7314 | } | |
7315 | } | |
7316 | { | |
7317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7318 | _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1); | |
7319 | ||
7320 | wxPyEndAllowThreads(__tstate); | |
7321 | if (PyErr_Occurred()) return NULL; | |
7322 | } _resultobj = Py_BuildValue("i",_result); | |
7323 | return _resultobj; | |
7324 | } | |
7325 | ||
a57d56d6 RD |
7326 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
7327 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7328 | PyObject * _resultobj; |
a57d56d6 | 7329 | bool _result; |
70551f47 | 7330 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7331 | long _arg1; |
7332 | long _arg2; | |
7333 | wxTextAttr * _arg3; | |
2d091820 | 7334 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7335 | PyObject * _argo3 = 0; |
7336 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
70551f47 RD |
7337 | |
7338 | self = self; | |
a57d56d6 | 7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
70551f47 | 7340 | return NULL; |
2d091820 RD |
7341 | if (_argo0) { |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
7345 | return NULL; | |
7346 | } | |
7347 | } | |
7348 | if (_argo3) { | |
7349 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7350 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { | |
7351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); | |
70551f47 RD |
7352 | return NULL; |
7353 | } | |
7354 | } | |
ab9bc19b | 7355 | { |
474c48f9 | 7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7357 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 7358 | |
474c48f9 | 7359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7360 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7361 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7362 | return _resultobj; |
7363 | } | |
7364 | ||
a57d56d6 RD |
7365 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
7366 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7367 | PyObject * _resultobj; |
a57d56d6 | 7368 | bool _result; |
70551f47 | 7369 | wxTextCtrl * _arg0; |
a57d56d6 | 7370 | wxTextAttr * _arg1; |
2d091820 | 7371 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7372 | PyObject * _argo1 = 0; |
7373 | char *_kwnames[] = { "self","style", NULL }; | |
70551f47 RD |
7374 | |
7375 | self = self; | |
a57d56d6 | 7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7377 | return NULL; |
2d091820 RD |
7378 | if (_argo0) { |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
7382 | return NULL; | |
7383 | } | |
7384 | } | |
7385 | if (_argo1) { | |
7386 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7387 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { | |
7388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); | |
70551f47 RD |
7389 | return NULL; |
7390 | } | |
7391 | } | |
ab9bc19b | 7392 | { |
474c48f9 | 7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7394 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
ab9bc19b | 7395 | |
474c48f9 | 7396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7397 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7398 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7399 | return _resultobj; |
7400 | } | |
7401 | ||
a57d56d6 RD |
7402 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
7403 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7404 | PyObject * _resultobj; |
a57d56d6 | 7405 | wxTextAttr * _result; |
70551f47 | 7406 | wxTextCtrl * _arg0; |
2d091820 | 7407 | PyObject * _argo0 = 0; |
107e4716 | 7408 | char *_kwnames[] = { "self", NULL }; |
a57d56d6 | 7409 | char _ptemp[128]; |
70551f47 RD |
7410 | |
7411 | self = self; | |
a57d56d6 | 7412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
70551f47 | 7413 | return NULL; |
2d091820 RD |
7414 | if (_argo0) { |
7415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
70551f47 RD |
7418 | return NULL; |
7419 | } | |
7420 | } | |
ab9bc19b | 7421 | { |
474c48f9 | 7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7423 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
a57d56d6 | 7424 | _result = (wxTextAttr *) &_result_ref; |
ab9bc19b | 7425 | |
474c48f9 | 7426 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7427 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7428 | } if (_result) { |
7429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7430 | _resultobj = Py_BuildValue("s",_ptemp); | |
7431 | } else { | |
7432 | Py_INCREF(Py_None); | |
7433 | _resultobj = Py_None; | |
7434 | } | |
70551f47 RD |
7435 | return _resultobj; |
7436 | } | |
7437 | ||
a57d56d6 RD |
7438 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
7439 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7440 | PyObject * _resultobj; |
a57d56d6 | 7441 | long _result; |
70551f47 RD |
7442 | wxTextCtrl * _arg0; |
7443 | long _arg1; | |
7444 | long _arg2; | |
2d091820 | 7445 | PyObject * _argo0 = 0; |
a57d56d6 | 7446 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
7447 | |
7448 | self = self; | |
a57d56d6 | 7449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7450 | return NULL; |
2d091820 RD |
7451 | if (_argo0) { |
7452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
70551f47 RD |
7455 | return NULL; |
7456 | } | |
7457 | } | |
ab9bc19b | 7458 | { |
474c48f9 | 7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7460 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
ab9bc19b | 7461 | |
474c48f9 | 7462 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7463 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7464 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7465 | return _resultobj; |
7466 | } | |
7467 | ||
a57d56d6 RD |
7468 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
7469 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7470 | PyObject * _resultobj; |
7471 | wxTextCtrl * _arg0; | |
a57d56d6 RD |
7472 | long _arg1; |
7473 | long * _arg2; | |
7474 | long temp; | |
7475 | long * _arg3; | |
7476 | long temp0; | |
2d091820 | 7477 | PyObject * _argo0 = 0; |
a57d56d6 | 7478 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
7479 | |
7480 | self = self; | |
a57d56d6 RD |
7481 | { |
7482 | _arg2 = &temp; | |
7483 | } | |
7484 | { | |
7485 | _arg3 = &temp0; | |
7486 | } | |
7487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 7488 | return NULL; |
2d091820 RD |
7489 | if (_argo0) { |
7490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
70551f47 RD |
7493 | return NULL; |
7494 | } | |
7495 | } | |
ab9bc19b | 7496 | { |
474c48f9 | 7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7498 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 7499 | |
474c48f9 | 7500 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7501 | if (PyErr_Occurred()) return NULL; |
db34b2d4 RD |
7502 | } Py_INCREF(Py_None); |
7503 | _resultobj = Py_None; | |
70551f47 | 7504 | { |
a57d56d6 RD |
7505 | PyObject *o; |
7506 | o = PyInt_FromLong((long) (*_arg2)); | |
7507 | _resultobj = t_output_helper(_resultobj, o); | |
7508 | } | |
7509 | { | |
7510 | PyObject *o; | |
7511 | o = PyInt_FromLong((long) (*_arg3)); | |
7512 | _resultobj = t_output_helper(_resultobj, o); | |
70551f47 RD |
7513 | } |
7514 | return _resultobj; | |
7515 | } | |
7516 | ||
7517 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
107e4716 | 7518 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7519 | PyObject * _resultobj; |
7520 | wxTextCtrl * _arg0; | |
7521 | long _arg1; | |
2d091820 | 7522 | PyObject * _argo0 = 0; |
107e4716 | 7523 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
7524 | |
7525 | self = self; | |
107e4716 | 7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7527 | return NULL; |
2d091820 RD |
7528 | if (_argo0) { |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
ab9bc19b | 7535 | { |
474c48f9 | 7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7537 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
ab9bc19b | 7538 | |
474c48f9 | 7539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7540 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7541 | } Py_INCREF(Py_None); |
70551f47 RD |
7542 | _resultobj = Py_None; |
7543 | return _resultobj; | |
7544 | } | |
7545 | ||
a57d56d6 RD |
7546 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
7547 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7548 | PyObject * _resultobj; |
7549 | wxTextCtrl * _arg0; | |
2d091820 | 7550 | PyObject * _argo0 = 0; |
a57d56d6 | 7551 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7552 | |
7553 | self = self; | |
a57d56d6 | 7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
70551f47 | 7555 | return NULL; |
2d091820 RD |
7556 | if (_argo0) { |
7557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
70551f47 RD |
7560 | return NULL; |
7561 | } | |
7562 | } | |
ab9bc19b | 7563 | { |
474c48f9 | 7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7565 | wxTextCtrl_Copy(_arg0); |
ab9bc19b | 7566 | |
474c48f9 | 7567 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7568 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
7569 | } Py_INCREF(Py_None); |
7570 | _resultobj = Py_None; | |
ab9bc19b RD |
7571 | return _resultobj; |
7572 | } | |
7573 | ||
a57d56d6 RD |
7574 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
7575 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
ab9bc19b RD |
7576 | PyObject * _resultobj; |
7577 | wxTextCtrl * _arg0; | |
2d091820 | 7578 | PyObject * _argo0 = 0; |
a57d56d6 | 7579 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
7580 | |
7581 | self = self; | |
a57d56d6 | 7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
ab9bc19b | 7583 | return NULL; |
2d091820 RD |
7584 | if (_argo0) { |
7585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
ab9bc19b RD |
7588 | return NULL; |
7589 | } | |
7590 | } | |
ab9bc19b | 7591 | { |
474c48f9 | 7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7593 | wxTextCtrl_Cut(_arg0); |
ab9bc19b | 7594 | |
474c48f9 | 7595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7596 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7597 | } Py_INCREF(Py_None); |
70551f47 | 7598 | _resultobj = Py_None; |
70551f47 RD |
7599 | return _resultobj; |
7600 | } | |
7601 | ||
a57d56d6 RD |
7602 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
7603 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 7604 | PyObject * _resultobj; |
faf3cb35 | 7605 | wxTextCtrl * _arg0; |
2d091820 | 7606 | PyObject * _argo0 = 0; |
a57d56d6 | 7607 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7608 | |
7609 | self = self; | |
a57d56d6 | 7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
faf3cb35 | 7611 | return NULL; |
2d091820 RD |
7612 | if (_argo0) { |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7616 | return NULL; |
7617 | } | |
7618 | } | |
ab9bc19b | 7619 | { |
474c48f9 | 7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7621 | wxTextCtrl_Paste(_arg0); |
ab9bc19b | 7622 | |
474c48f9 | 7623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7624 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7625 | } Py_INCREF(Py_None); |
7626 | _resultobj = Py_None; | |
faf3cb35 RD |
7627 | return _resultobj; |
7628 | } | |
7629 | ||
53920141 | 7630 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
107e4716 | 7631 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7632 | PyObject * _resultobj; |
7633 | bool _result; | |
7634 | wxTextCtrl * _arg0; | |
2d091820 | 7635 | PyObject * _argo0 = 0; |
107e4716 | 7636 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7637 | |
7638 | self = self; | |
107e4716 | 7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
53920141 | 7640 | return NULL; |
2d091820 RD |
7641 | if (_argo0) { |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
7645 | return NULL; | |
7646 | } | |
7647 | } | |
7648 | { | |
474c48f9 | 7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7650 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
53920141 | 7651 | |
474c48f9 | 7652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7653 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7654 | } _resultobj = Py_BuildValue("i",_result); |
7655 | return _resultobj; | |
7656 | } | |
7657 | ||
7658 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
107e4716 | 7659 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7660 | PyObject * _resultobj; |
7661 | bool _result; | |
7662 | wxTextCtrl * _arg0; | |
2d091820 | 7663 | PyObject * _argo0 = 0; |
107e4716 | 7664 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7665 | |
7666 | self = self; | |
107e4716 | 7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
53920141 | 7668 | return NULL; |
2d091820 RD |
7669 | if (_argo0) { |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
7673 | return NULL; | |
7674 | } | |
7675 | } | |
7676 | { | |
474c48f9 | 7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7678 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
53920141 | 7679 | |
474c48f9 | 7680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7681 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7682 | } _resultobj = Py_BuildValue("i",_result); |
7683 | return _resultobj; | |
7684 | } | |
7685 | ||
7686 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
107e4716 | 7687 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
7688 | PyObject * _resultobj; |
7689 | bool _result; | |
7690 | wxTextCtrl * _arg0; | |
2d091820 | 7691 | PyObject * _argo0 = 0; |
107e4716 | 7692 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7693 | |
7694 | self = self; | |
107e4716 | 7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
53920141 | 7696 | return NULL; |
2d091820 RD |
7697 | if (_argo0) { |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
7701 | return NULL; | |
7702 | } | |
7703 | } | |
7704 | { | |
474c48f9 | 7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7706 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
53920141 | 7707 | |
474c48f9 | 7708 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7709 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7710 | } _resultobj = Py_BuildValue("i",_result); |
7711 | return _resultobj; | |
7712 | } | |
7713 | ||
a57d56d6 RD |
7714 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
7715 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7716 | PyObject * _resultobj; |
53920141 | 7717 | wxTextCtrl * _arg0; |
2d091820 | 7718 | PyObject * _argo0 = 0; |
107e4716 | 7719 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7720 | |
7721 | self = self; | |
a57d56d6 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
53920141 | 7723 | return NULL; |
2d091820 RD |
7724 | if (_argo0) { |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
53920141 RD |
7728 | return NULL; |
7729 | } | |
7730 | } | |
7731 | { | |
474c48f9 | 7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7733 | wxTextCtrl_Undo(_arg0); |
53920141 | 7734 | |
474c48f9 | 7735 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7736 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7737 | } Py_INCREF(Py_None); |
7738 | _resultobj = Py_None; | |
53920141 RD |
7739 | return _resultobj; |
7740 | } | |
7741 | ||
a57d56d6 RD |
7742 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
7743 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7744 | PyObject * _resultobj; |
53920141 | 7745 | wxTextCtrl * _arg0; |
2d091820 | 7746 | PyObject * _argo0 = 0; |
107e4716 | 7747 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7748 | |
7749 | self = self; | |
a57d56d6 | 7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
53920141 | 7751 | return NULL; |
2d091820 RD |
7752 | if (_argo0) { |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
53920141 RD |
7756 | return NULL; |
7757 | } | |
7758 | } | |
7759 | { | |
474c48f9 | 7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7761 | wxTextCtrl_Redo(_arg0); |
53920141 | 7762 | |
474c48f9 | 7763 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7764 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7765 | } Py_INCREF(Py_None); |
7766 | _resultobj = Py_None; | |
53920141 RD |
7767 | return _resultobj; |
7768 | } | |
7769 | ||
a57d56d6 RD |
7770 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
7771 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 7772 | PyObject * _resultobj; |
a57d56d6 | 7773 | bool _result; |
53920141 | 7774 | wxTextCtrl * _arg0; |
2d091820 | 7775 | PyObject * _argo0 = 0; |
107e4716 | 7776 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7777 | |
7778 | self = self; | |
a57d56d6 | 7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
53920141 | 7780 | return NULL; |
2d091820 RD |
7781 | if (_argo0) { |
7782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
53920141 RD |
7785 | return NULL; |
7786 | } | |
7787 | } | |
7788 | { | |
474c48f9 | 7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7790 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
53920141 | 7791 | |
474c48f9 | 7792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7793 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7794 | } _resultobj = Py_BuildValue("i",_result); |
53920141 RD |
7795 | return _resultobj; |
7796 | } | |
7797 | ||
a57d56d6 RD |
7798 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
7799 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 RD |
7800 | PyObject * _resultobj; |
7801 | bool _result; | |
7802 | wxTextCtrl * _arg0; | |
2d091820 | 7803 | PyObject * _argo0 = 0; |
107e4716 | 7804 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
7805 | |
7806 | self = self; | |
a57d56d6 | 7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
53920141 | 7808 | return NULL; |
2d091820 RD |
7809 | if (_argo0) { |
7810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
53920141 RD |
7813 | return NULL; |
7814 | } | |
7815 | } | |
7816 | { | |
474c48f9 | 7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7818 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
53920141 | 7819 | |
474c48f9 | 7820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7821 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
7822 | } _resultobj = Py_BuildValue("i",_result); |
7823 | return _resultobj; | |
7824 | } | |
7825 | ||
a57d56d6 RD |
7826 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
7827 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
7828 | PyObject * _resultobj; |
7829 | wxTextCtrl * _arg0; | |
a57d56d6 | 7830 | long _arg1; |
4120ef2b | 7831 | PyObject * _argo0 = 0; |
a57d56d6 | 7832 | char *_kwnames[] = { "self","pos", NULL }; |
4120ef2b RD |
7833 | |
7834 | self = self; | |
a57d56d6 | 7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
7836 | return NULL; |
7837 | if (_argo0) { | |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
4120ef2b RD |
7841 | return NULL; |
7842 | } | |
7843 | } | |
7844 | { | |
474c48f9 | 7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7846 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
4120ef2b | 7847 | |
474c48f9 | 7848 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7849 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7850 | } Py_INCREF(Py_None); |
7851 | _resultobj = Py_None; | |
7852 | return _resultobj; | |
7853 | } | |
7854 | ||
a57d56d6 RD |
7855 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
7856 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
7857 | PyObject * _resultobj; |
7858 | wxTextCtrl * _arg0; | |
7859 | PyObject * _argo0 = 0; | |
7860 | char *_kwnames[] = { "self", NULL }; | |
7861 | ||
7862 | self = self; | |
a57d56d6 | 7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
4120ef2b RD |
7864 | return NULL; |
7865 | if (_argo0) { | |
7866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
4120ef2b RD |
7869 | return NULL; |
7870 | } | |
7871 | } | |
7872 | { | |
474c48f9 | 7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7874 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
4120ef2b | 7875 | |
474c48f9 | 7876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7877 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
7878 | } Py_INCREF(Py_None); |
7879 | _resultobj = Py_None; | |
7880 | return _resultobj; | |
7881 | } | |
7882 | ||
a57d56d6 RD |
7883 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
7884 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7885 | PyObject * _resultobj; |
a57d56d6 | 7886 | long _result; |
9d6da64a | 7887 | wxTextCtrl * _arg0; |
9d6da64a | 7888 | PyObject * _argo0 = 0; |
a57d56d6 | 7889 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
7890 | |
7891 | self = self; | |
a57d56d6 | 7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
9d6da64a RD |
7893 | return NULL; |
7894 | if (_argo0) { | |
7895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7898 | return NULL; |
7899 | } | |
7900 | } | |
7901 | { | |
474c48f9 | 7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7903 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
9d6da64a | 7904 | |
474c48f9 | 7905 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7906 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7907 | } _resultobj = Py_BuildValue("l",_result); |
9d6da64a RD |
7908 | return _resultobj; |
7909 | } | |
7910 | ||
a57d56d6 RD |
7911 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
7912 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7913 | PyObject * _resultobj; |
a57d56d6 | 7914 | long _result; |
9d6da64a | 7915 | wxTextCtrl * _arg0; |
9d6da64a | 7916 | PyObject * _argo0 = 0; |
a57d56d6 | 7917 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
7918 | |
7919 | self = self; | |
a57d56d6 | 7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
9d6da64a RD |
7921 | return NULL; |
7922 | if (_argo0) { | |
7923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7926 | return NULL; |
7927 | } | |
7928 | } | |
a57d56d6 | 7929 | { |
474c48f9 | 7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7931 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
a57d56d6 | 7932 | |
474c48f9 | 7933 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
7934 | if (PyErr_Occurred()) return NULL; |
7935 | } _resultobj = Py_BuildValue("l",_result); | |
7936 | return _resultobj; | |
7937 | } | |
7938 | ||
7939 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
7940 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject * _resultobj; | |
7942 | wxTextCtrl * _arg0; | |
7943 | long _arg1; | |
7944 | long _arg2; | |
7945 | PyObject * _argo0 = 0; | |
7946 | char *_kwnames[] = { "self","from","to", NULL }; | |
7947 | ||
7948 | self = self; | |
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7950 | return NULL; | |
7951 | if (_argo0) { | |
7952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
9d6da64a RD |
7955 | return NULL; |
7956 | } | |
7957 | } | |
7958 | { | |
474c48f9 | 7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7960 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
9d6da64a | 7961 | |
474c48f9 | 7962 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7963 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7964 | } Py_INCREF(Py_None); |
7965 | _resultobj = Py_None; | |
9d6da64a RD |
7966 | return _resultobj; |
7967 | } | |
7968 | ||
a57d56d6 RD |
7969 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
7970 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 7971 | PyObject * _resultobj; |
9d6da64a RD |
7972 | wxTextCtrl * _arg0; |
7973 | PyObject * _argo0 = 0; | |
7974 | char *_kwnames[] = { "self", NULL }; | |
9d6da64a RD |
7975 | |
7976 | self = self; | |
a57d56d6 | 7977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
9d6da64a RD |
7978 | return NULL; |
7979 | if (_argo0) { | |
7980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
9d6da64a RD |
7983 | return NULL; |
7984 | } | |
7985 | } | |
7986 | { | |
474c48f9 | 7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7988 | wxTextCtrl_SelectAll(_arg0); |
9d6da64a | 7989 | |
474c48f9 | 7990 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 7991 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7992 | } Py_INCREF(Py_None); |
7993 | _resultobj = Py_None; | |
9d6da64a RD |
7994 | return _resultobj; |
7995 | } | |
7996 | ||
a57d56d6 RD |
7997 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
7998 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
aa2a5b86 RD |
7999 | PyObject * _resultobj; |
8000 | wxTextCtrl * _arg0; | |
a57d56d6 | 8001 | bool _arg1; |
aa2a5b86 | 8002 | PyObject * _argo0 = 0; |
a57d56d6 RD |
8003 | int tempbool1; |
8004 | char *_kwnames[] = { "self","editable", NULL }; | |
aa2a5b86 RD |
8005 | |
8006 | self = self; | |
a57d56d6 | 8007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
aa2a5b86 RD |
8008 | return NULL; |
8009 | if (_argo0) { | |
8010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
aa2a5b86 RD |
8013 | return NULL; |
8014 | } | |
8015 | } | |
a57d56d6 | 8016 | _arg1 = (bool ) tempbool1; |
aa2a5b86 | 8017 | { |
474c48f9 | 8018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8019 | wxTextCtrl_SetEditable(_arg0,_arg1); |
aa2a5b86 | 8020 | |
474c48f9 | 8021 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8022 | if (PyErr_Occurred()) return NULL; |
8023 | } Py_INCREF(Py_None); | |
8024 | _resultobj = Py_None; | |
8025 | return _resultobj; | |
8026 | } | |
8027 | ||
4120ef2b | 8028 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
9d6da64a | 8029 | self->AppendText(text); |
4120ef2b RD |
8030 | } |
8031 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8032 | PyObject * _resultobj; | |
8033 | wxTextCtrl * _arg0; | |
8034 | wxString * _arg1; | |
8035 | PyObject * _argo0 = 0; | |
8036 | PyObject * _obj1 = 0; | |
8037 | char *_kwnames[] = { "self","text", NULL }; | |
8038 | ||
8039 | self = self; | |
8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
8041 | return NULL; | |
8042 | if (_argo0) { | |
8043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
8049 | { | |
c8bc7bb8 RD |
8050 | _arg1 = wxString_in_helper(_obj1); |
8051 | if (_arg1 == NULL) | |
4120ef2b | 8052 | return NULL; |
4120ef2b RD |
8053 | } |
8054 | { | |
474c48f9 | 8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8056 | wxTextCtrl_write(_arg0,*_arg1); |
4120ef2b | 8057 | |
474c48f9 | 8058 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8059 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
8060 | } Py_INCREF(Py_None); |
8061 | _resultobj = Py_None; | |
8062 | { | |
8063 | if (_obj1) | |
8064 | delete _arg1; | |
8065 | } | |
8066 | return _resultobj; | |
8067 | } | |
8068 | ||
7a9b33db RD |
8069 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
8070 | return self->GetValue().Mid(from, to-from); | |
8071 | } | |
8072 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject * _resultobj; | |
8074 | wxString * _result; | |
8075 | wxTextCtrl * _arg0; | |
8076 | long _arg1; | |
8077 | long _arg2; | |
8078 | PyObject * _argo0 = 0; | |
8079 | char *_kwnames[] = { "self","from","to", NULL }; | |
8080 | ||
8081 | self = self; | |
8082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8083 | return NULL; | |
8084 | if (_argo0) { | |
8085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
8088 | return NULL; | |
8089 | } | |
8090 | } | |
8091 | { | |
474c48f9 | 8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8093 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
7a9b33db | 8094 | |
474c48f9 | 8095 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
8096 | if (PyErr_Occurred()) return NULL; |
8097 | }{ | |
c8bc7bb8 RD |
8098 | #if wxUSE_UNICODE |
8099 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8100 | #else | |
7a9b33db | 8101 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8102 | #endif |
7a9b33db RD |
8103 | } |
8104 | { | |
8105 | delete _result; | |
8106 | } | |
8107 | return _resultobj; | |
8108 | } | |
8109 | ||
70551f47 RD |
8110 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
8111 | wxScrollBar *src; | |
8112 | wxControl *dest; | |
8113 | src = (wxScrollBar *) ptr; | |
8114 | dest = (wxControl *) src; | |
8115 | return (void *) dest; | |
8116 | } | |
8117 | ||
8118 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
8119 | wxScrollBar *src; | |
8120 | wxWindow *dest; | |
8121 | src = (wxScrollBar *) ptr; | |
8122 | dest = (wxWindow *) src; | |
8123 | return (void *) dest; | |
8124 | } | |
8125 | ||
8126 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
8127 | wxScrollBar *src; | |
8128 | wxEvtHandler *dest; | |
8129 | src = (wxScrollBar *) ptr; | |
8130 | dest = (wxEvtHandler *) src; | |
8131 | return (void *) dest; | |
8132 | } | |
8133 | ||
9df61a29 RD |
8134 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
8135 | wxScrollBar *src; | |
8136 | wxObject *dest; | |
8137 | src = (wxScrollBar *) ptr; | |
8138 | dest = (wxObject *) src; | |
8139 | return (void *) dest; | |
8140 | } | |
8141 | ||
70551f47 | 8142 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 8143 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8144 | PyObject * _resultobj; |
8145 | wxScrollBar * _result; | |
8146 | wxWindow * _arg0; | |
2d091820 | 8147 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
8148 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8149 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 8150 | long _arg4 = (long ) wxSB_HORIZONTAL; |
b68dc582 | 8151 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 8152 | wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr; |
2d091820 | 8153 | PyObject * _argo0 = 0; |
37f6a977 RD |
8154 | wxPoint temp; |
8155 | PyObject * _obj2 = 0; | |
8156 | wxSize temp0; | |
8157 | PyObject * _obj3 = 0; | |
2d091820 | 8158 | PyObject * _argo5 = 0; |
9a74fcaf | 8159 | PyObject * _obj6 = 0; |
107e4716 | 8160 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
70551f47 RD |
8161 | char _ptemp[128]; |
8162 | ||
8163 | self = self; | |
9a74fcaf | 8164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
70551f47 | 8165 | return NULL; |
2d091820 RD |
8166 | if (_argo0) { |
8167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
8170 | return NULL; | |
8171 | } | |
8172 | } | |
37f6a977 RD |
8173 | if (_obj2) |
8174 | { | |
8175 | _arg2 = &temp; | |
8176 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 8177 | return NULL; |
37f6a977 RD |
8178 | } |
8179 | if (_obj3) | |
8180 | { | |
8181 | _arg3 = &temp0; | |
8182 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 8183 | return NULL; |
37f6a977 | 8184 | } |
2d091820 RD |
8185 | if (_argo5) { |
8186 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8187 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
70551f47 RD |
8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
8189 | return NULL; | |
8190 | } | |
8191 | } | |
9a74fcaf RD |
8192 | if (_obj6) |
8193 | { | |
8194 | _arg6 = wxString_in_helper(_obj6); | |
8195 | if (_arg6 == NULL) | |
8196 | return NULL; | |
8197 | } | |
ab9bc19b | 8198 | { |
474c48f9 | 8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8200 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
ab9bc19b | 8201 | |
474c48f9 | 8202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8203 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8204 | } if (_result) { |
8205 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8206 | _resultobj = Py_BuildValue("s",_ptemp); | |
8207 | } else { | |
8208 | Py_INCREF(Py_None); | |
8209 | _resultobj = Py_None; | |
8210 | } | |
9a74fcaf RD |
8211 | { |
8212 | if (_obj6) | |
8213 | delete _arg6; | |
8214 | } | |
70551f47 RD |
8215 | return _resultobj; |
8216 | } | |
8217 | ||
aa2a5b86 RD |
8218 | #define new_wxPreScrollBar() (new wxScrollBar()) |
8219 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8220 | PyObject * _resultobj; | |
8221 | wxScrollBar * _result; | |
8222 | char *_kwnames[] = { NULL }; | |
8223 | char _ptemp[128]; | |
8224 | ||
8225 | self = self; | |
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
8227 | return NULL; | |
8228 | { | |
474c48f9 | 8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8230 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
aa2a5b86 | 8231 | |
474c48f9 | 8232 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8233 | if (PyErr_Occurred()) return NULL; |
8234 | } if (_result) { | |
8235 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8236 | _resultobj = Py_BuildValue("s",_ptemp); | |
8237 | } else { | |
8238 | Py_INCREF(Py_None); | |
8239 | _resultobj = Py_None; | |
8240 | } | |
8241 | return _resultobj; | |
8242 | } | |
8243 | ||
8244 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8245 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8246 | PyObject * _resultobj; | |
8247 | bool _result; | |
8248 | wxScrollBar * _arg0; | |
8249 | wxWindow * _arg1; | |
8250 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8251 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8252 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8253 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
8254 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 8255 | wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr; |
aa2a5b86 RD |
8256 | PyObject * _argo0 = 0; |
8257 | PyObject * _argo1 = 0; | |
8258 | wxPoint temp; | |
8259 | PyObject * _obj3 = 0; | |
8260 | wxSize temp0; | |
8261 | PyObject * _obj4 = 0; | |
8262 | PyObject * _argo6 = 0; | |
9a74fcaf | 8263 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
8264 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
8265 | ||
8266 | self = self; | |
9a74fcaf | 8267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
8268 | return NULL; |
8269 | if (_argo0) { | |
8270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
8273 | return NULL; | |
8274 | } | |
8275 | } | |
8276 | if (_argo1) { | |
8277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
8283 | if (_obj3) | |
8284 | { | |
8285 | _arg3 = &temp; | |
8286 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8287 | return NULL; | |
8288 | } | |
8289 | if (_obj4) | |
8290 | { | |
8291 | _arg4 = &temp0; | |
8292 | if (! wxSize_helper(_obj4, &_arg4)) | |
8293 | return NULL; | |
8294 | } | |
8295 | if (_argo6) { | |
8296 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); | |
8299 | return NULL; | |
8300 | } | |
8301 | } | |
9a74fcaf RD |
8302 | if (_obj7) |
8303 | { | |
8304 | _arg7 = wxString_in_helper(_obj7); | |
8305 | if (_arg7 == NULL) | |
8306 | return NULL; | |
8307 | } | |
aa2a5b86 | 8308 | { |
474c48f9 | 8309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8310 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 8311 | |
474c48f9 | 8312 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8313 | if (PyErr_Occurred()) return NULL; |
8314 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
8315 | { |
8316 | if (_obj7) | |
8317 | delete _arg7; | |
8318 | } | |
aa2a5b86 RD |
8319 | return _resultobj; |
8320 | } | |
8321 | ||
70551f47 | 8322 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
107e4716 | 8323 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8324 | PyObject * _resultobj; |
8325 | int _result; | |
8326 | wxScrollBar * _arg0; | |
2d091820 | 8327 | PyObject * _argo0 = 0; |
107e4716 | 8328 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8329 | |
8330 | self = self; | |
107e4716 | 8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
70551f47 | 8332 | return NULL; |
2d091820 RD |
8333 | if (_argo0) { |
8334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
8337 | return NULL; | |
8338 | } | |
8339 | } | |
ab9bc19b | 8340 | { |
474c48f9 | 8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8342 | _result = (int )wxScrollBar_GetRange(_arg0); |
ab9bc19b | 8343 | |
474c48f9 | 8344 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8345 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8346 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8347 | return _resultobj; |
8348 | } | |
8349 | ||
8350 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 8351 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8352 | PyObject * _resultobj; |
8353 | int _result; | |
8354 | wxScrollBar * _arg0; | |
2d091820 | 8355 | PyObject * _argo0 = 0; |
107e4716 | 8356 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8357 | |
8358 | self = self; | |
107e4716 | 8359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 8360 | return NULL; |
2d091820 RD |
8361 | if (_argo0) { |
8362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
8365 | return NULL; | |
8366 | } | |
8367 | } | |
ab9bc19b | 8368 | { |
474c48f9 | 8369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8370 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
ab9bc19b | 8371 | |
474c48f9 | 8372 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8373 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8374 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8375 | return _resultobj; |
8376 | } | |
8377 | ||
105e45b9 | 8378 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
107e4716 | 8379 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8380 | PyObject * _resultobj; |
8381 | int _result; | |
8382 | wxScrollBar * _arg0; | |
2d091820 | 8383 | PyObject * _argo0 = 0; |
107e4716 | 8384 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8385 | |
8386 | self = self; | |
107e4716 | 8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
70551f47 | 8388 | return NULL; |
2d091820 RD |
8389 | if (_argo0) { |
8390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
8393 | return NULL; |
8394 | } | |
8395 | } | |
ab9bc19b | 8396 | { |
474c48f9 | 8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8398 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
ab9bc19b | 8399 | |
474c48f9 | 8400 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8401 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8402 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8403 | return _resultobj; |
8404 | } | |
8405 | ||
8406 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
107e4716 | 8407 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8408 | PyObject * _resultobj; |
8409 | int _result; | |
8410 | wxScrollBar * _arg0; | |
2d091820 | 8411 | PyObject * _argo0 = 0; |
107e4716 | 8412 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8413 | |
8414 | self = self; | |
107e4716 | 8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
70551f47 | 8416 | return NULL; |
2d091820 RD |
8417 | if (_argo0) { |
8418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
8421 | return NULL; | |
8422 | } | |
8423 | } | |
ab9bc19b | 8424 | { |
474c48f9 | 8425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8426 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
ab9bc19b | 8427 | |
474c48f9 | 8428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8429 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8430 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8431 | return _resultobj; |
8432 | } | |
8433 | ||
6e8a778a RD |
8434 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
8435 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject * _resultobj; | |
8437 | bool _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_IsVertical",_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_IsVertical. Expected _wxScrollBar_p."); | |
8449 | return NULL; | |
8450 | } | |
8451 | } | |
8452 | { | |
474c48f9 | 8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8454 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
6e8a778a | 8455 | |
474c48f9 | 8456 | wxPyEndAllowThreads(__tstate); |
6e8a778a RD |
8457 | if (PyErr_Occurred()) return NULL; |
8458 | } _resultobj = Py_BuildValue("i",_result); | |
8459 | return _resultobj; | |
8460 | } | |
8461 | ||
105e45b9 | 8462 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
107e4716 | 8463 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8464 | PyObject * _resultobj; |
8465 | wxScrollBar * _arg0; | |
8466 | int _arg1; | |
2d091820 | 8467 | PyObject * _argo0 = 0; |
107e4716 | 8468 | char *_kwnames[] = { "self","viewStart", NULL }; |
70551f47 RD |
8469 | |
8470 | self = self; | |
107e4716 | 8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8472 | return NULL; |
2d091820 RD |
8473 | if (_argo0) { |
8474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
8477 | return NULL; |
8478 | } | |
8479 | } | |
ab9bc19b | 8480 | { |
474c48f9 | 8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8482 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
ab9bc19b | 8483 | |
474c48f9 | 8484 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8485 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8486 | } Py_INCREF(Py_None); |
70551f47 RD |
8487 | _resultobj = Py_None; |
8488 | return _resultobj; | |
8489 | } | |
8490 | ||
8491 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 8492 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8493 | PyObject * _resultobj; |
8494 | wxScrollBar * _arg0; | |
8495 | int _arg1; | |
8496 | int _arg2; | |
8497 | int _arg3; | |
8498 | int _arg4; | |
2d091820 RD |
8499 | bool _arg5 = (bool ) TRUE; |
8500 | PyObject * _argo0 = 0; | |
8501 | int tempbool5 = (int) TRUE; | |
107e4716 | 8502 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
70551f47 RD |
8503 | |
8504 | self = self; | |
107e4716 | 8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 8506 | return NULL; |
2d091820 RD |
8507 | if (_argo0) { |
8508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
8511 | return NULL; | |
8512 | } | |
8513 | } | |
8514 | _arg5 = (bool ) tempbool5; | |
ab9bc19b | 8515 | { |
474c48f9 | 8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8517 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 8518 | |
474c48f9 | 8519 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8520 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8521 | } Py_INCREF(Py_None); |
70551f47 RD |
8522 | _resultobj = Py_None; |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
62bd0874 RD |
8526 | static void *SwigwxSpinButtonTowxControl(void *ptr) { |
8527 | wxSpinButton *src; | |
8528 | wxControl *dest; | |
8529 | src = (wxSpinButton *) ptr; | |
8530 | dest = (wxControl *) src; | |
8531 | return (void *) dest; | |
8532 | } | |
8533 | ||
8534 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
8535 | wxSpinButton *src; | |
8536 | wxWindow *dest; | |
8537 | src = (wxSpinButton *) ptr; | |
8538 | dest = (wxWindow *) src; | |
8539 | return (void *) dest; | |
8540 | } | |
8541 | ||
8542 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
8543 | wxSpinButton *src; | |
8544 | wxEvtHandler *dest; | |
8545 | src = (wxSpinButton *) ptr; | |
8546 | dest = (wxEvtHandler *) src; | |
8547 | return (void *) dest; | |
8548 | } | |
8549 | ||
9df61a29 RD |
8550 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
8551 | wxSpinButton *src; | |
8552 | wxObject *dest; | |
8553 | src = (wxSpinButton *) ptr; | |
8554 | dest = (wxObject *) src; | |
8555 | return (void *) dest; | |
8556 | } | |
8557 | ||
62bd0874 | 8558 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 8559 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8560 | PyObject * _resultobj; |
8561 | wxSpinButton * _result; | |
8562 | wxWindow * _arg0; | |
2d091820 | 8563 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
8564 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8565 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 8566 | long _arg4 = (long ) wxSP_HORIZONTAL; |
9a74fcaf | 8567 | wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME; |
2d091820 | 8568 | PyObject * _argo0 = 0; |
37f6a977 RD |
8569 | wxPoint temp; |
8570 | PyObject * _obj2 = 0; | |
8571 | wxSize temp0; | |
8572 | PyObject * _obj3 = 0; | |
9a74fcaf | 8573 | PyObject * _obj5 = 0; |
107e4716 | 8574 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
62bd0874 RD |
8575 | char _ptemp[128]; |
8576 | ||
8577 | self = self; | |
9a74fcaf | 8578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
62bd0874 | 8579 | return NULL; |
2d091820 RD |
8580 | if (_argo0) { |
8581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
62bd0874 RD |
8583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
8584 | return NULL; | |
8585 | } | |
8586 | } | |
37f6a977 RD |
8587 | if (_obj2) |
8588 | { | |
8589 | _arg2 = &temp; | |
8590 | if (! wxPoint_helper(_obj2, &_arg2)) | |
62bd0874 | 8591 | return NULL; |
37f6a977 RD |
8592 | } |
8593 | if (_obj3) | |
8594 | { | |
8595 | _arg3 = &temp0; | |
8596 | if (! wxSize_helper(_obj3, &_arg3)) | |
62bd0874 | 8597 | return NULL; |
9a74fcaf RD |
8598 | } |
8599 | if (_obj5) | |
8600 | { | |
8601 | _arg5 = wxString_in_helper(_obj5); | |
8602 | if (_arg5 == NULL) | |
8603 | return NULL; | |
37f6a977 | 8604 | } |
ab9bc19b | 8605 | { |
474c48f9 | 8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8607 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
ab9bc19b | 8608 | |
474c48f9 | 8609 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8610 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8611 | } if (_result) { |
8612 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8613 | _resultobj = Py_BuildValue("s",_ptemp); | |
8614 | } else { | |
8615 | Py_INCREF(Py_None); | |
8616 | _resultobj = Py_None; | |
8617 | } | |
9a74fcaf RD |
8618 | { |
8619 | if (_obj5) | |
8620 | delete _arg5; | |
8621 | } | |
62bd0874 RD |
8622 | return _resultobj; |
8623 | } | |
8624 | ||
aa2a5b86 RD |
8625 | #define new_wxPreSpinButton() (new wxSpinButton()) |
8626 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8627 | PyObject * _resultobj; | |
8628 | wxSpinButton * _result; | |
8629 | char *_kwnames[] = { NULL }; | |
8630 | char _ptemp[128]; | |
8631 | ||
8632 | self = self; | |
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
8634 | return NULL; | |
8635 | { | |
474c48f9 | 8636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8637 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
aa2a5b86 | 8638 | |
474c48f9 | 8639 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8640 | if (PyErr_Occurred()) return NULL; |
8641 | } if (_result) { | |
8642 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
8643 | _resultobj = Py_BuildValue("s",_ptemp); | |
8644 | } else { | |
8645 | Py_INCREF(Py_None); | |
8646 | _resultobj = Py_None; | |
8647 | } | |
8648 | return _resultobj; | |
8649 | } | |
8650 | ||
8651 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8652 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject * _resultobj; | |
8654 | bool _result; | |
8655 | wxSpinButton * _arg0; | |
8656 | wxWindow * _arg1; | |
8657 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8658 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8659 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8660 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
9a74fcaf | 8661 | wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME; |
aa2a5b86 RD |
8662 | PyObject * _argo0 = 0; |
8663 | PyObject * _argo1 = 0; | |
8664 | wxPoint temp; | |
8665 | PyObject * _obj3 = 0; | |
8666 | wxSize temp0; | |
8667 | PyObject * _obj4 = 0; | |
9a74fcaf | 8668 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
8669 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
8670 | ||
8671 | self = self; | |
9a74fcaf | 8672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
8673 | return NULL; |
8674 | if (_argo0) { | |
8675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
8677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
8678 | return NULL; | |
8679 | } | |
8680 | } | |
8681 | if (_argo1) { | |
8682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
8685 | return NULL; | |
8686 | } | |
8687 | } | |
8688 | if (_obj3) | |
8689 | { | |
8690 | _arg3 = &temp; | |
8691 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8692 | return NULL; | |
8693 | } | |
8694 | if (_obj4) | |
8695 | { | |
8696 | _arg4 = &temp0; | |
8697 | if (! wxSize_helper(_obj4, &_arg4)) | |
8698 | return NULL; | |
9a74fcaf RD |
8699 | } |
8700 | if (_obj6) | |
8701 | { | |
8702 | _arg6 = wxString_in_helper(_obj6); | |
8703 | if (_arg6 == NULL) | |
8704 | return NULL; | |
aa2a5b86 RD |
8705 | } |
8706 | { | |
474c48f9 | 8707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8708 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 8709 | |
474c48f9 | 8710 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8711 | if (PyErr_Occurred()) return NULL; |
8712 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
8713 | { |
8714 | if (_obj6) | |
8715 | delete _arg6; | |
8716 | } | |
aa2a5b86 RD |
8717 | return _resultobj; |
8718 | } | |
8719 | ||
62bd0874 | 8720 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
107e4716 | 8721 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8722 | PyObject * _resultobj; |
8723 | int _result; | |
8724 | wxSpinButton * _arg0; | |
2d091820 | 8725 | PyObject * _argo0 = 0; |
107e4716 | 8726 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8727 | |
8728 | self = self; | |
107e4716 | 8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
62bd0874 | 8730 | return NULL; |
2d091820 RD |
8731 | if (_argo0) { |
8732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
8735 | return NULL; | |
8736 | } | |
8737 | } | |
ab9bc19b | 8738 | { |
474c48f9 | 8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8740 | _result = (int )wxSpinButton_GetMax(_arg0); |
ab9bc19b | 8741 | |
474c48f9 | 8742 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8743 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8744 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8745 | return _resultobj; |
8746 | } | |
8747 | ||
8748 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 8749 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8750 | PyObject * _resultobj; |
8751 | int _result; | |
8752 | wxSpinButton * _arg0; | |
2d091820 | 8753 | PyObject * _argo0 = 0; |
107e4716 | 8754 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8755 | |
8756 | self = self; | |
107e4716 | 8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
62bd0874 | 8758 | return NULL; |
2d091820 RD |
8759 | if (_argo0) { |
8760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
8763 | return NULL; | |
8764 | } | |
8765 | } | |
ab9bc19b | 8766 | { |
474c48f9 | 8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8768 | _result = (int )wxSpinButton_GetMin(_arg0); |
ab9bc19b | 8769 | |
474c48f9 | 8770 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8771 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8772 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8773 | return _resultobj; |
8774 | } | |
8775 | ||
8776 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 8777 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8778 | PyObject * _resultobj; |
8779 | int _result; | |
8780 | wxSpinButton * _arg0; | |
2d091820 | 8781 | PyObject * _argo0 = 0; |
107e4716 | 8782 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
8783 | |
8784 | self = self; | |
107e4716 | 8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
62bd0874 | 8786 | return NULL; |
2d091820 RD |
8787 | if (_argo0) { |
8788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
8791 | return NULL; | |
8792 | } | |
8793 | } | |
ab9bc19b | 8794 | { |
474c48f9 | 8795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8796 | _result = (int )wxSpinButton_GetValue(_arg0); |
ab9bc19b | 8797 | |
474c48f9 | 8798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8799 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8800 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
8801 | return _resultobj; |
8802 | } | |
8803 | ||
8804 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 8805 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8806 | PyObject * _resultobj; |
8807 | wxSpinButton * _arg0; | |
8808 | int _arg1; | |
8809 | int _arg2; | |
2d091820 | 8810 | PyObject * _argo0 = 0; |
107e4716 | 8811 | char *_kwnames[] = { "self","min","max", NULL }; |
62bd0874 RD |
8812 | |
8813 | self = self; | |
107e4716 | 8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
62bd0874 | 8815 | return NULL; |
2d091820 RD |
8816 | if (_argo0) { |
8817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
8820 | return NULL; | |
8821 | } | |
8822 | } | |
ab9bc19b | 8823 | { |
474c48f9 | 8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8825 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 8826 | |
474c48f9 | 8827 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8828 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8829 | } Py_INCREF(Py_None); |
62bd0874 RD |
8830 | _resultobj = Py_None; |
8831 | return _resultobj; | |
8832 | } | |
8833 | ||
8834 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 8835 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
8836 | PyObject * _resultobj; |
8837 | wxSpinButton * _arg0; | |
8838 | int _arg1; | |
2d091820 | 8839 | PyObject * _argo0 = 0; |
107e4716 | 8840 | char *_kwnames[] = { "self","value", NULL }; |
62bd0874 RD |
8841 | |
8842 | self = self; | |
107e4716 | 8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
62bd0874 | 8844 | return NULL; |
2d091820 RD |
8845 | if (_argo0) { |
8846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
8848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
8849 | return NULL; | |
8850 | } | |
8851 | } | |
ab9bc19b | 8852 | { |
474c48f9 | 8853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8854 | wxSpinButton_SetValue(_arg0,_arg1); |
ab9bc19b | 8855 | |
474c48f9 | 8856 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8857 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8858 | } Py_INCREF(Py_None); |
62bd0874 RD |
8859 | _resultobj = Py_None; |
8860 | return _resultobj; | |
8861 | } | |
8862 | ||
70551f47 RD |
8863 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { |
8864 | wxStaticBitmap *src; | |
8865 | wxControl *dest; | |
8866 | src = (wxStaticBitmap *) ptr; | |
8867 | dest = (wxControl *) src; | |
8868 | return (void *) dest; | |
8869 | } | |
8870 | ||
8871 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
8872 | wxStaticBitmap *src; | |
8873 | wxWindow *dest; | |
8874 | src = (wxStaticBitmap *) ptr; | |
8875 | dest = (wxWindow *) src; | |
8876 | return (void *) dest; | |
8877 | } | |
8878 | ||
8879 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
8880 | wxStaticBitmap *src; | |
8881 | wxEvtHandler *dest; | |
8882 | src = (wxStaticBitmap *) ptr; | |
8883 | dest = (wxEvtHandler *) src; | |
8884 | return (void *) dest; | |
8885 | } | |
8886 | ||
9df61a29 RD |
8887 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
8888 | wxStaticBitmap *src; | |
8889 | wxObject *dest; | |
8890 | src = (wxStaticBitmap *) ptr; | |
8891 | dest = (wxObject *) src; | |
8892 | return (void *) dest; | |
8893 | } | |
8894 | ||
70551f47 | 8895 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 8896 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8897 | PyObject * _resultobj; |
8898 | wxStaticBitmap * _result; | |
8899 | wxWindow * _arg0; | |
8900 | wxWindowID _arg1; | |
8901 | wxBitmap * _arg2; | |
b68dc582 RD |
8902 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
8903 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 8904 | long _arg5 = (long ) 0; |
9a74fcaf | 8905 | wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr; |
2d091820 | 8906 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
8907 | PyObject * _argo2 = 0; |
8908 | wxPoint temp; | |
8909 | PyObject * _obj3 = 0; | |
8910 | wxSize temp0; | |
8911 | PyObject * _obj4 = 0; | |
9a74fcaf | 8912 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
8913 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
8914 | char _ptemp[128]; | |
8915 | ||
8916 | self = self; | |
9a74fcaf | 8917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
8918 | return NULL; |
8919 | if (_argo0) { | |
8920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
8923 | return NULL; | |
8924 | } | |
8925 | } | |
8926 | if (_argo2) { | |
8927 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8928 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
8929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); | |
8930 | return NULL; | |
8931 | } | |
8932 | } | |
8933 | if (_obj3) | |
8934 | { | |
8935 | _arg3 = &temp; | |
8936 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8937 | return NULL; | |
8938 | } | |
8939 | if (_obj4) | |
8940 | { | |
8941 | _arg4 = &temp0; | |
8942 | if (! wxSize_helper(_obj4, &_arg4)) | |
8943 | return NULL; | |
9a74fcaf RD |
8944 | } |
8945 | if (_obj6) | |
8946 | { | |
8947 | _arg6 = wxString_in_helper(_obj6); | |
8948 | if (_arg6 == NULL) | |
8949 | return NULL; | |
aa2a5b86 RD |
8950 | } |
8951 | { | |
474c48f9 | 8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8953 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 8954 | |
474c48f9 | 8955 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8956 | if (PyErr_Occurred()) return NULL; |
8957 | } if (_result) { | |
8958 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8959 | _resultobj = Py_BuildValue("s",_ptemp); | |
8960 | } else { | |
8961 | Py_INCREF(Py_None); | |
8962 | _resultobj = Py_None; | |
8963 | } | |
9a74fcaf RD |
8964 | { |
8965 | if (_obj6) | |
8966 | delete _arg6; | |
8967 | } | |
aa2a5b86 RD |
8968 | return _resultobj; |
8969 | } | |
8970 | ||
8971 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
8972 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject * _resultobj; | |
8974 | wxStaticBitmap * _result; | |
8975 | char *_kwnames[] = { NULL }; | |
8976 | char _ptemp[128]; | |
8977 | ||
8978 | self = self; | |
8979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
8980 | return NULL; | |
8981 | { | |
474c48f9 | 8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8983 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
aa2a5b86 | 8984 | |
474c48f9 | 8985 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8986 | if (PyErr_Occurred()) return NULL; |
8987 | } if (_result) { | |
8988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
8989 | _resultobj = Py_BuildValue("s",_ptemp); | |
8990 | } else { | |
8991 | Py_INCREF(Py_None); | |
8992 | _resultobj = Py_None; | |
8993 | } | |
8994 | return _resultobj; | |
8995 | } | |
8996 | ||
8997 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8998 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8999 | PyObject * _resultobj; | |
9000 | bool _result; | |
9001 | wxStaticBitmap * _arg0; | |
9002 | wxWindow * _arg1; | |
9003 | wxWindowID _arg2; | |
9004 | wxBitmap * _arg3; | |
9005 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9006 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9007 | long _arg6 = (long ) 0; | |
9a74fcaf | 9008 | wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr; |
aa2a5b86 RD |
9009 | PyObject * _argo0 = 0; |
9010 | PyObject * _argo1 = 0; | |
9011 | PyObject * _argo3 = 0; | |
37f6a977 | 9012 | wxPoint temp; |
37f6a977 | 9013 | PyObject * _obj4 = 0; |
aa2a5b86 RD |
9014 | wxSize temp0; |
9015 | PyObject * _obj5 = 0; | |
9a74fcaf | 9016 | PyObject * _obj7 = 0; |
aa2a5b86 | 9017 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; |
70551f47 RD |
9018 | |
9019 | self = self; | |
9a74fcaf | 9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7)) |
70551f47 | 9021 | return NULL; |
2d091820 RD |
9022 | if (_argo0) { |
9023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
9024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
9025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
70551f47 RD |
9026 | return NULL; |
9027 | } | |
9028 | } | |
aa2a5b86 RD |
9029 | if (_argo1) { |
9030 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9031 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
70551f47 RD |
9033 | return NULL; |
9034 | } | |
9035 | } | |
aa2a5b86 RD |
9036 | if (_argo3) { |
9037 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9038 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
9039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); | |
9040 | return NULL; | |
9041 | } | |
9042 | } | |
9043 | if (_obj4) | |
37f6a977 | 9044 | { |
aa2a5b86 RD |
9045 | _arg4 = &temp; |
9046 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 9047 | return NULL; |
37f6a977 | 9048 | } |
aa2a5b86 | 9049 | if (_obj5) |
37f6a977 | 9050 | { |
aa2a5b86 RD |
9051 | _arg5 = &temp0; |
9052 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 9053 | return NULL; |
9a74fcaf RD |
9054 | } |
9055 | if (_obj7) | |
9056 | { | |
9057 | _arg7 = wxString_in_helper(_obj7); | |
9058 | if (_arg7 == NULL) | |
9059 | return NULL; | |
37f6a977 | 9060 | } |
ab9bc19b | 9061 | { |
474c48f9 | 9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9063 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
ab9bc19b | 9064 | |
474c48f9 | 9065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9066 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 9067 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
9068 | { |
9069 | if (_obj7) | |
9070 | delete _arg7; | |
9071 | } | |
70551f47 RD |
9072 | return _resultobj; |
9073 | } | |
9074 | ||
9075 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
107e4716 | 9076 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9077 | PyObject * _resultobj; |
9078 | wxBitmap * _result; | |
9079 | wxStaticBitmap * _arg0; | |
2d091820 | 9080 | PyObject * _argo0 = 0; |
107e4716 | 9081 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9082 | char _ptemp[128]; |
9083 | ||
9084 | self = self; | |
107e4716 | 9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
70551f47 | 9086 | return NULL; |
2d091820 RD |
9087 | if (_argo0) { |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
ab9bc19b | 9094 | { |
474c48f9 | 9095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9096 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
ab9bc19b | 9097 | |
474c48f9 | 9098 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9099 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
9100 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
9101 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
9102 | return _resultobj; |
9103 | } | |
9104 | ||
9105 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
107e4716 | 9106 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9107 | PyObject * _resultobj; |
9108 | wxStaticBitmap * _arg0; | |
9109 | wxBitmap * _arg1; | |
2d091820 RD |
9110 | PyObject * _argo0 = 0; |
9111 | PyObject * _argo1 = 0; | |
107e4716 | 9112 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
9113 | |
9114 | self = self; | |
107e4716 | 9115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9116 | return NULL; |
2d091820 RD |
9117 | if (_argo0) { |
9118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
9120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
9121 | return NULL; | |
9122 | } | |
9123 | } | |
2d091820 RD |
9124 | if (_argo1) { |
9125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
9127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
9128 | return NULL; | |
9129 | } | |
9130 | } | |
ab9bc19b | 9131 | { |
474c48f9 | 9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9133 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
ab9bc19b | 9134 | |
474c48f9 | 9135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9136 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9137 | } Py_INCREF(Py_None); |
70551f47 RD |
9138 | _resultobj = Py_None; |
9139 | return _resultobj; | |
9140 | } | |
9141 | ||
8bf5d46e | 9142 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
107e4716 | 9143 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
9144 | PyObject * _resultobj; |
9145 | wxStaticBitmap * _arg0; | |
9146 | wxIcon * _arg1; | |
2d091820 RD |
9147 | PyObject * _argo0 = 0; |
9148 | PyObject * _argo1 = 0; | |
107e4716 | 9149 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
9150 | |
9151 | self = self; | |
107e4716 | 9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 9153 | return NULL; |
2d091820 RD |
9154 | if (_argo0) { |
9155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
9157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
9158 | return NULL; | |
9159 | } | |
9160 | } | |
2d091820 RD |
9161 | if (_argo1) { |
9162 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9163 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8bf5d46e RD |
9164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
9165 | return NULL; | |
9166 | } | |
9167 | } | |
9168 | { | |
474c48f9 | 9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9170 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8bf5d46e | 9171 | |
474c48f9 | 9172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9173 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9174 | } Py_INCREF(Py_None); |
9175 | _resultobj = Py_None; | |
9176 | return _resultobj; | |
9177 | } | |
9178 | ||
70551f47 RD |
9179 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
9180 | wxRadioBox *src; | |
9181 | wxControl *dest; | |
9182 | src = (wxRadioBox *) ptr; | |
9183 | dest = (wxControl *) src; | |
9184 | return (void *) dest; | |
9185 | } | |
9186 | ||
9187 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
9188 | wxRadioBox *src; | |
9189 | wxWindow *dest; | |
9190 | src = (wxRadioBox *) ptr; | |
9191 | dest = (wxWindow *) src; | |
9192 | return (void *) dest; | |
9193 | } | |
9194 | ||
9195 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
9196 | wxRadioBox *src; | |
9197 | wxEvtHandler *dest; | |
9198 | src = (wxRadioBox *) ptr; | |
9199 | dest = (wxEvtHandler *) src; | |
9200 | return (void *) dest; | |
9201 | } | |
9202 | ||
9df61a29 RD |
9203 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
9204 | wxRadioBox *src; | |
9205 | wxObject *dest; | |
9206 | src = (wxRadioBox *) ptr; | |
9207 | dest = (wxObject *) src; | |
9208 | return (void *) dest; | |
9209 | } | |
9210 | ||
70551f47 | 9211 | #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)) |
107e4716 | 9212 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9213 | PyObject * _resultobj; |
9214 | wxRadioBox * _result; | |
9215 | wxWindow * _arg0; | |
9216 | wxWindowID _arg1; | |
9217 | wxString * _arg2; | |
b68dc582 RD |
9218 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9219 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
9220 | int _arg5 = (int ) 0; |
9221 | wxString * _arg6 = (wxString *) NULL; | |
9222 | int _arg7 = (int ) 0; | |
9223 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
b68dc582 | 9224 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 9225 | wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr; |
2d091820 | 9226 | PyObject * _argo0 = 0; |
70551f47 | 9227 | PyObject * _obj2 = 0; |
37f6a977 RD |
9228 | wxPoint temp; |
9229 | PyObject * _obj3 = 0; | |
9230 | wxSize temp0; | |
9231 | PyObject * _obj4 = 0; | |
70551f47 | 9232 | PyObject * _obj6 = 0; |
2d091820 | 9233 | PyObject * _argo9 = 0; |
9a74fcaf | 9234 | PyObject * _obj10 = 0; |
e02c03a4 | 9235 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
70551f47 RD |
9236 | char _ptemp[128]; |
9237 | ||
9238 | self = self; | |
9a74fcaf | 9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10)) |
70551f47 | 9240 | return NULL; |
2d091820 RD |
9241 | if (_argo0) { |
9242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
9245 | return NULL; | |
9246 | } | |
9247 | } | |
9248 | { | |
c8bc7bb8 RD |
9249 | _arg2 = wxString_in_helper(_obj2); |
9250 | if (_arg2 == NULL) | |
70551f47 | 9251 | return NULL; |
70551f47 | 9252 | } |
37f6a977 RD |
9253 | if (_obj3) |
9254 | { | |
9255 | _arg3 = &temp; | |
9256 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 9257 | return NULL; |
37f6a977 RD |
9258 | } |
9259 | if (_obj4) | |
9260 | { | |
9261 | _arg4 = &temp0; | |
9262 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 9263 | return NULL; |
37f6a977 | 9264 | } |
70551f47 RD |
9265 | if (_obj6) |
9266 | { | |
9267 | _arg6 = wxString_LIST_helper(_obj6); | |
9268 | if (_arg6 == NULL) { | |
9269 | return NULL; | |
9270 | } | |
9271 | } | |
2d091820 RD |
9272 | if (_argo9) { |
9273 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
9274 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
70551f47 RD |
9275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
9276 | return NULL; | |
9277 | } | |
9278 | } | |
9a74fcaf RD |
9279 | if (_obj10) |
9280 | { | |
9281 | _arg10 = wxString_in_helper(_obj10); | |
9282 | if (_arg10 == NULL) | |
9283 | return NULL; | |
9284 | } | |
70551f47 | 9285 | { |
ab9bc19b RD |
9286 | if (_obj6) { |
9287 | _arg5 = PyList_Size(_obj6); | |
9288 | } | |
9289 | else { | |
9290 | _arg5 = 0; | |
9291 | } | |
70551f47 | 9292 | } |
ab9bc19b | 9293 | { |
474c48f9 | 9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9295 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
ab9bc19b | 9296 | |
474c48f9 | 9297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9298 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9299 | } if (_result) { |
9300 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9301 | _resultobj = Py_BuildValue("s",_ptemp); | |
9302 | } else { | |
9303 | Py_INCREF(Py_None); | |
9304 | _resultobj = Py_None; | |
9305 | } | |
70551f47 RD |
9306 | { |
9307 | if (_obj2) | |
9308 | delete _arg2; | |
9309 | } | |
9310 | { | |
9311 | delete [] _arg6; | |
9a74fcaf RD |
9312 | } |
9313 | { | |
9314 | if (_obj10) | |
9315 | delete _arg10; | |
70551f47 RD |
9316 | } |
9317 | return _resultobj; | |
9318 | } | |
9319 | ||
aa2a5b86 RD |
9320 | #define new_wxPreRadioBox() (new wxRadioBox()) |
9321 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject * _resultobj; | |
9323 | wxRadioBox * _result; | |
9324 | char *_kwnames[] = { NULL }; | |
9325 | char _ptemp[128]; | |
9326 | ||
9327 | self = self; | |
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
9329 | return NULL; | |
9330 | { | |
474c48f9 | 9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9332 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
aa2a5b86 | 9333 | |
474c48f9 | 9334 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9335 | if (PyErr_Occurred()) return NULL; |
9336 | } if (_result) { | |
9337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9338 | _resultobj = Py_BuildValue("s",_ptemp); | |
9339 | } else { | |
9340 | Py_INCREF(Py_None); | |
9341 | _resultobj = Py_None; | |
9342 | } | |
9343 | return _resultobj; | |
9344 | } | |
9345 | ||
9346 | #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)) | |
9347 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9348 | PyObject * _resultobj; | |
9349 | bool _result; | |
9350 | wxRadioBox * _arg0; | |
9351 | wxWindow * _arg1; | |
9352 | wxWindowID _arg2; | |
9353 | wxString * _arg3; | |
9354 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9355 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9356 | int _arg6 = (int ) 0; | |
9357 | wxString * _arg7 = (wxString *) NULL; | |
9358 | int _arg8 = (int ) 0; | |
9359 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
9360 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 9361 | wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr; |
aa2a5b86 RD |
9362 | PyObject * _argo0 = 0; |
9363 | PyObject * _argo1 = 0; | |
9364 | PyObject * _obj3 = 0; | |
9365 | wxPoint temp; | |
9366 | PyObject * _obj4 = 0; | |
9367 | wxSize temp0; | |
9368 | PyObject * _obj5 = 0; | |
9369 | PyObject * _obj7 = 0; | |
9370 | PyObject * _argo10 = 0; | |
9a74fcaf | 9371 | PyObject * _obj11 = 0; |
aa2a5b86 RD |
9372 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
9373 | ||
9374 | self = self; | |
9a74fcaf | 9375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11)) |
aa2a5b86 RD |
9376 | return NULL; |
9377 | if (_argo0) { | |
9378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
9380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
9381 | return NULL; | |
9382 | } | |
9383 | } | |
9384 | if (_argo1) { | |
9385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
9388 | return NULL; | |
9389 | } | |
9390 | } | |
9391 | { | |
c8bc7bb8 RD |
9392 | _arg3 = wxString_in_helper(_obj3); |
9393 | if (_arg3 == NULL) | |
aa2a5b86 | 9394 | return NULL; |
aa2a5b86 RD |
9395 | } |
9396 | if (_obj4) | |
9397 | { | |
9398 | _arg4 = &temp; | |
9399 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9400 | return NULL; | |
9401 | } | |
9402 | if (_obj5) | |
9403 | { | |
9404 | _arg5 = &temp0; | |
9405 | if (! wxSize_helper(_obj5, &_arg5)) | |
9406 | return NULL; | |
9407 | } | |
9408 | if (_obj7) | |
9409 | { | |
9410 | _arg7 = wxString_LIST_helper(_obj7); | |
9411 | if (_arg7 == NULL) { | |
9412 | return NULL; | |
9413 | } | |
9414 | } | |
9415 | if (_argo10) { | |
9416 | if (_argo10 == Py_None) { _arg10 = NULL; } | |
9417 | else if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { | |
9418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); | |
9419 | return NULL; | |
9420 | } | |
9421 | } | |
9a74fcaf RD |
9422 | if (_obj11) |
9423 | { | |
9424 | _arg11 = wxString_in_helper(_obj11); | |
9425 | if (_arg11 == NULL) | |
9426 | return NULL; | |
9427 | } | |
aa2a5b86 RD |
9428 | { |
9429 | if (_obj7) { | |
9430 | _arg6 = PyList_Size(_obj7); | |
9431 | } | |
9432 | else { | |
9433 | _arg6 = 0; | |
9434 | } | |
9435 | } | |
9436 | { | |
474c48f9 | 9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9438 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11); |
aa2a5b86 | 9439 | |
474c48f9 | 9440 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9441 | if (PyErr_Occurred()) return NULL; |
9442 | } _resultobj = Py_BuildValue("i",_result); | |
9443 | { | |
9444 | if (_obj3) | |
9445 | delete _arg3; | |
9446 | } | |
9447 | { | |
9448 | delete [] _arg7; | |
9a74fcaf RD |
9449 | } |
9450 | { | |
9451 | if (_obj11) | |
9452 | delete _arg11; | |
aa2a5b86 RD |
9453 | } |
9454 | return _resultobj; | |
9455 | } | |
9456 | ||
c3c1cebe | 9457 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
107e4716 | 9458 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9459 | PyObject * _resultobj; |
9460 | wxRadioBox * _arg0; | |
9461 | bool _arg1; | |
2d091820 | 9462 | PyObject * _argo0 = 0; |
70551f47 | 9463 | int tempbool1; |
107e4716 | 9464 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
9465 | |
9466 | self = self; | |
107e4716 | 9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9468 | return NULL; |
2d091820 RD |
9469 | if (_argo0) { |
9470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 9472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
70551f47 RD |
9473 | return NULL; |
9474 | } | |
9475 | } | |
9476 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 9477 | { |
474c48f9 | 9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9479 | wxRadioBox_Enable(_arg0,_arg1); |
ab9bc19b | 9480 | |
474c48f9 | 9481 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9482 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9483 | } Py_INCREF(Py_None); |
70551f47 RD |
9484 | _resultobj = Py_None; |
9485 | return _resultobj; | |
9486 | } | |
9487 | ||
c3c1cebe | 9488 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
107e4716 | 9489 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9490 | PyObject * _resultobj; |
9491 | wxRadioBox * _arg0; | |
9492 | int _arg1; | |
9493 | bool _arg2; | |
2d091820 | 9494 | PyObject * _argo0 = 0; |
70551f47 | 9495 | int tempbool2; |
107e4716 | 9496 | char *_kwnames[] = { "self","n","enable", NULL }; |
70551f47 RD |
9497 | |
9498 | self = self; | |
107e4716 | 9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 9500 | return NULL; |
2d091820 RD |
9501 | if (_argo0) { |
9502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 9504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
70551f47 RD |
9505 | return NULL; |
9506 | } | |
9507 | } | |
9508 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 9509 | { |
474c48f9 | 9510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9511 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
ab9bc19b | 9512 | |
474c48f9 | 9513 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9514 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9515 | } Py_INCREF(Py_None); |
70551f47 RD |
9516 | _resultobj = Py_None; |
9517 | return _resultobj; | |
9518 | } | |
9519 | ||
9520 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 9521 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9522 | PyObject * _resultobj; |
9523 | int _result; | |
9524 | wxRadioBox * _arg0; | |
9525 | wxString * _arg1; | |
2d091820 | 9526 | PyObject * _argo0 = 0; |
70551f47 | 9527 | PyObject * _obj1 = 0; |
107e4716 | 9528 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
9529 | |
9530 | self = self; | |
107e4716 | 9531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9532 | return NULL; |
2d091820 RD |
9533 | if (_argo0) { |
9534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
9537 | return NULL; | |
9538 | } | |
9539 | } | |
9540 | { | |
c8bc7bb8 RD |
9541 | _arg1 = wxString_in_helper(_obj1); |
9542 | if (_arg1 == NULL) | |
70551f47 | 9543 | return NULL; |
70551f47 | 9544 | } |
ab9bc19b | 9545 | { |
474c48f9 | 9546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9547 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
ab9bc19b | 9548 | |
474c48f9 | 9549 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9550 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9551 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9552 | { |
9553 | if (_obj1) | |
9554 | delete _arg1; | |
9555 | } | |
9556 | return _resultobj; | |
9557 | } | |
9558 | ||
2c8a649d RD |
9559 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
9560 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9561 | PyObject * _resultobj; |
9562 | wxString * _result; | |
9563 | wxRadioBox * _arg0; | |
9564 | int _arg1; | |
2d091820 | 9565 | PyObject * _argo0 = 0; |
107e4716 | 9566 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
9567 | |
9568 | self = self; | |
2c8a649d | 9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9570 | return NULL; |
2d091820 RD |
9571 | if (_argo0) { |
9572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
70551f47 RD |
9575 | return NULL; |
9576 | } | |
9577 | } | |
70551f47 | 9578 | { |
474c48f9 | 9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9580 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
ab9bc19b | 9581 | |
474c48f9 | 9582 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9583 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9584 | }{ |
c8bc7bb8 RD |
9585 | #if wxUSE_UNICODE |
9586 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9587 | #else | |
e02c03a4 | 9588 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9589 | #endif |
70551f47 RD |
9590 | } |
9591 | { | |
9592 | delete _result; | |
9593 | } | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
2c8a649d RD |
9597 | #define wxRadioBox_GetItemLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9598 | static PyObject *_wrap_wxRadioBox_GetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9599 | PyObject * _resultobj; |
2c8a649d | 9600 | wxString * _result; |
70551f47 | 9601 | wxRadioBox * _arg0; |
2c8a649d | 9602 | int _arg1; |
2d091820 | 9603 | PyObject * _argo0 = 0; |
2c8a649d | 9604 | char *_kwnames[] = { "self","item", NULL }; |
70551f47 RD |
9605 | |
9606 | self = self; | |
2c8a649d | 9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetItemLabel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9608 | return NULL; |
2d091820 RD |
9609 | if (_argo0) { |
9610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
9613 | return NULL; |
9614 | } | |
9615 | } | |
ab9bc19b | 9616 | { |
474c48f9 | 9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9618 | _result = new wxString (wxRadioBox_GetItemLabel(_arg0,_arg1)); |
ab9bc19b | 9619 | |
474c48f9 | 9620 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9621 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9622 | }{ |
c8bc7bb8 RD |
9623 | #if wxUSE_UNICODE |
9624 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9625 | #else | |
2c8a649d | 9626 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9627 | #endif |
2c8a649d RD |
9628 | } |
9629 | { | |
9630 | delete _result; | |
9631 | } | |
70551f47 RD |
9632 | return _resultobj; |
9633 | } | |
9634 | ||
2c8a649d RD |
9635 | #define wxRadioBox_SetItemLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9636 | static PyObject *_wrap_wxRadioBox_SetItemLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9637 | PyObject * _resultobj; |
70551f47 RD |
9638 | wxRadioBox * _arg0; |
9639 | int _arg1; | |
2c8a649d | 9640 | wxString * _arg2; |
2d091820 | 9641 | PyObject * _argo0 = 0; |
2c8a649d RD |
9642 | PyObject * _obj2 = 0; |
9643 | char *_kwnames[] = { "self","item","label", NULL }; | |
70551f47 RD |
9644 | |
9645 | self = self; | |
2c8a649d | 9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetItemLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 9647 | return NULL; |
2d091820 RD |
9648 | if (_argo0) { |
9649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetItemLabel. Expected _wxRadioBox_p."); |
70551f47 RD |
9652 | return NULL; |
9653 | } | |
9654 | } | |
2c8a649d | 9655 | { |
c8bc7bb8 RD |
9656 | _arg2 = wxString_in_helper(_obj2); |
9657 | if (_arg2 == NULL) | |
2c8a649d | 9658 | return NULL; |
2c8a649d | 9659 | } |
70551f47 | 9660 | { |
474c48f9 | 9661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9662 | wxRadioBox_SetItemLabel(_arg0,_arg1,*_arg2); |
ab9bc19b | 9663 | |
474c48f9 | 9664 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9665 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
9666 | } Py_INCREF(Py_None); |
9667 | _resultobj = Py_None; | |
70551f47 | 9668 | { |
2c8a649d RD |
9669 | if (_obj2) |
9670 | delete _arg2; | |
70551f47 RD |
9671 | } |
9672 | return _resultobj; | |
9673 | } | |
9674 | ||
2c8a649d RD |
9675 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
9676 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9677 | PyObject * _resultobj; |
2c8a649d | 9678 | int _result; |
70551f47 | 9679 | wxRadioBox * _arg0; |
2d091820 | 9680 | PyObject * _argo0 = 0; |
107e4716 | 9681 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9682 | |
9683 | self = self; | |
2c8a649d | 9684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 9685 | return NULL; |
2d091820 RD |
9686 | if (_argo0) { |
9687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
9690 | return NULL; |
9691 | } | |
9692 | } | |
70551f47 | 9693 | { |
474c48f9 | 9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9695 | _result = (int )wxRadioBox_GetSelection(_arg0); |
ab9bc19b | 9696 | |
474c48f9 | 9697 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9698 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9699 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9700 | return _resultobj; |
9701 | } | |
9702 | ||
2c8a649d RD |
9703 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
9704 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9705 | PyObject * _resultobj; |
2c8a649d | 9706 | wxString * _result; |
70551f47 | 9707 | wxRadioBox * _arg0; |
2d091820 | 9708 | PyObject * _argo0 = 0; |
107e4716 | 9709 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9710 | |
9711 | self = self; | |
2c8a649d | 9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 9713 | return NULL; |
2d091820 RD |
9714 | if (_argo0) { |
9715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
9718 | return NULL; |
9719 | } | |
9720 | } | |
ab9bc19b | 9721 | { |
474c48f9 | 9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9723 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
ab9bc19b | 9724 | |
474c48f9 | 9725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9726 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9727 | }{ |
c8bc7bb8 RD |
9728 | #if wxUSE_UNICODE |
9729 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9730 | #else | |
2c8a649d | 9731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9732 | #endif |
2c8a649d RD |
9733 | } |
9734 | { | |
9735 | delete _result; | |
9736 | } | |
70551f47 RD |
9737 | return _resultobj; |
9738 | } | |
9739 | ||
2c8a649d RD |
9740 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
9741 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 9742 | PyObject * _resultobj; |
2c8a649d | 9743 | int _result; |
70551f47 | 9744 | wxRadioBox * _arg0; |
2d091820 | 9745 | PyObject * _argo0 = 0; |
2c8a649d | 9746 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9747 | |
9748 | self = self; | |
2c8a649d | 9749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
70551f47 | 9750 | return NULL; |
2d091820 RD |
9751 | if (_argo0) { |
9752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 9754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
70551f47 RD |
9755 | return NULL; |
9756 | } | |
9757 | } | |
ab9bc19b | 9758 | { |
474c48f9 | 9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9760 | _result = (int )wxRadioBox_GetCount(_arg0); |
ab9bc19b | 9761 | |
474c48f9 | 9762 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9763 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 9764 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9765 | return _resultobj; |
9766 | } | |
9767 | ||
9768 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 9769 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9770 | PyObject * _resultobj; |
9771 | wxRadioBox * _arg0; | |
9772 | int _arg1; | |
2d091820 | 9773 | PyObject * _argo0 = 0; |
107e4716 | 9774 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
9775 | |
9776 | self = self; | |
107e4716 | 9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9778 | return NULL; |
2d091820 RD |
9779 | if (_argo0) { |
9780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
9783 | return NULL; | |
9784 | } | |
9785 | } | |
ab9bc19b | 9786 | { |
474c48f9 | 9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9788 | wxRadioBox_SetSelection(_arg0,_arg1); |
ab9bc19b | 9789 | |
474c48f9 | 9790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9791 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9792 | } Py_INCREF(Py_None); |
70551f47 RD |
9793 | _resultobj = Py_None; |
9794 | return _resultobj; | |
9795 | } | |
9796 | ||
9797 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 9798 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9799 | PyObject * _resultobj; |
9800 | wxRadioBox * _arg0; | |
9801 | wxString * _arg1; | |
2d091820 | 9802 | PyObject * _argo0 = 0; |
70551f47 | 9803 | PyObject * _obj1 = 0; |
107e4716 | 9804 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
9805 | |
9806 | self = self; | |
107e4716 | 9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9808 | return NULL; |
2d091820 RD |
9809 | if (_argo0) { |
9810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
9813 | return NULL; | |
9814 | } | |
9815 | } | |
9816 | { | |
c8bc7bb8 RD |
9817 | _arg1 = wxString_in_helper(_obj1); |
9818 | if (_arg1 == NULL) | |
2cd2fac8 | 9819 | return NULL; |
70551f47 | 9820 | } |
ab9bc19b | 9821 | { |
474c48f9 | 9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9823 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 9824 | |
474c48f9 | 9825 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9826 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9827 | } Py_INCREF(Py_None); |
70551f47 RD |
9828 | _resultobj = Py_None; |
9829 | { | |
9830 | if (_obj1) | |
9831 | delete _arg1; | |
9832 | } | |
9833 | return _resultobj; | |
9834 | } | |
9835 | ||
9836 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 9837 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9838 | PyObject * _resultobj; |
9839 | wxRadioBox * _arg0; | |
9840 | bool _arg1; | |
2d091820 | 9841 | PyObject * _argo0 = 0; |
70551f47 | 9842 | int tempbool1; |
107e4716 | 9843 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
9844 | |
9845 | self = self; | |
107e4716 | 9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 9847 | return NULL; |
2d091820 RD |
9848 | if (_argo0) { |
9849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
9852 | return NULL; | |
9853 | } | |
9854 | } | |
9855 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 9856 | { |
474c48f9 | 9857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9858 | wxRadioBox_Show(_arg0,_arg1); |
ab9bc19b | 9859 | |
474c48f9 | 9860 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9861 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9862 | } Py_INCREF(Py_None); |
70551f47 RD |
9863 | _resultobj = Py_None; |
9864 | return _resultobj; | |
9865 | } | |
9866 | ||
9867 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
107e4716 | 9868 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9869 | PyObject * _resultobj; |
9870 | wxRadioBox * _arg0; | |
9871 | int _arg1; | |
9872 | bool _arg2; | |
2d091820 | 9873 | PyObject * _argo0 = 0; |
70551f47 | 9874 | int tempbool2; |
107e4716 | 9875 | char *_kwnames[] = { "self","item","show", NULL }; |
70551f47 RD |
9876 | |
9877 | self = self; | |
107e4716 | 9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 9879 | return NULL; |
2d091820 RD |
9880 | if (_argo0) { |
9881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
9883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
9884 | return NULL; | |
9885 | } | |
9886 | } | |
9887 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 9888 | { |
474c48f9 | 9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9890 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
ab9bc19b | 9891 | |
474c48f9 | 9892 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9893 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9894 | } Py_INCREF(Py_None); |
70551f47 RD |
9895 | _resultobj = Py_None; |
9896 | return _resultobj; | |
9897 | } | |
9898 | ||
9899 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
9900 | wxRadioButton *src; | |
9901 | wxControl *dest; | |
9902 | src = (wxRadioButton *) ptr; | |
9903 | dest = (wxControl *) src; | |
9904 | return (void *) dest; | |
9905 | } | |
9906 | ||
9907 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
9908 | wxRadioButton *src; | |
9909 | wxWindow *dest; | |
9910 | src = (wxRadioButton *) ptr; | |
9911 | dest = (wxWindow *) src; | |
9912 | return (void *) dest; | |
9913 | } | |
9914 | ||
9915 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
9916 | wxRadioButton *src; | |
9917 | wxEvtHandler *dest; | |
9918 | src = (wxRadioButton *) ptr; | |
9919 | dest = (wxEvtHandler *) src; | |
9920 | return (void *) dest; | |
9921 | } | |
9922 | ||
9df61a29 RD |
9923 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
9924 | wxRadioButton *src; | |
9925 | wxObject *dest; | |
9926 | src = (wxRadioButton *) ptr; | |
9927 | dest = (wxObject *) src; | |
9928 | return (void *) dest; | |
9929 | } | |
9930 | ||
70551f47 | 9931 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 9932 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9933 | PyObject * _resultobj; |
9934 | wxRadioButton * _result; | |
9935 | wxWindow * _arg0; | |
9936 | wxWindowID _arg1; | |
9937 | wxString * _arg2; | |
b68dc582 RD |
9938 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9939 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9940 | long _arg5 = (long ) 0; |
b68dc582 | 9941 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 9942 | wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr; |
2d091820 | 9943 | PyObject * _argo0 = 0; |
70551f47 | 9944 | PyObject * _obj2 = 0; |
37f6a977 RD |
9945 | wxPoint temp; |
9946 | PyObject * _obj3 = 0; | |
9947 | wxSize temp0; | |
9948 | PyObject * _obj4 = 0; | |
2d091820 | 9949 | PyObject * _argo6 = 0; |
9a74fcaf | 9950 | PyObject * _obj7 = 0; |
107e4716 | 9951 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
9952 | char _ptemp[128]; |
9953 | ||
9954 | self = self; | |
9a74fcaf | 9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 9956 | return NULL; |
2d091820 RD |
9957 | if (_argo0) { |
9958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
9961 | return NULL; | |
9962 | } | |
9963 | } | |
9964 | { | |
c8bc7bb8 RD |
9965 | _arg2 = wxString_in_helper(_obj2); |
9966 | if (_arg2 == NULL) | |
2cd2fac8 | 9967 | return NULL; |
70551f47 | 9968 | } |
37f6a977 RD |
9969 | if (_obj3) |
9970 | { | |
aa2a5b86 RD |
9971 | _arg3 = &temp; |
9972 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9973 | return NULL; | |
9974 | } | |
9975 | if (_obj4) | |
9976 | { | |
9977 | _arg4 = &temp0; | |
9978 | if (! wxSize_helper(_obj4, &_arg4)) | |
9979 | return NULL; | |
9980 | } | |
9981 | if (_argo6) { | |
9982 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
9983 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
9984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); | |
9985 | return NULL; | |
9986 | } | |
9987 | } | |
9a74fcaf RD |
9988 | if (_obj7) |
9989 | { | |
9990 | _arg7 = wxString_in_helper(_obj7); | |
9991 | if (_arg7 == NULL) | |
9992 | return NULL; | |
9993 | } | |
aa2a5b86 | 9994 | { |
474c48f9 | 9995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9996 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 9997 | |
474c48f9 | 9998 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9999 | if (PyErr_Occurred()) return NULL; |
10000 | } if (_result) { | |
10001 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10002 | _resultobj = Py_BuildValue("s",_ptemp); | |
10003 | } else { | |
10004 | Py_INCREF(Py_None); | |
10005 | _resultobj = Py_None; | |
10006 | } | |
10007 | { | |
10008 | if (_obj2) | |
10009 | delete _arg2; | |
9a74fcaf RD |
10010 | } |
10011 | { | |
10012 | if (_obj7) | |
10013 | delete _arg7; | |
aa2a5b86 RD |
10014 | } |
10015 | return _resultobj; | |
10016 | } | |
10017 | ||
10018 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
10019 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10020 | PyObject * _resultobj; | |
10021 | wxRadioButton * _result; | |
10022 | char *_kwnames[] = { NULL }; | |
10023 | char _ptemp[128]; | |
10024 | ||
10025 | self = self; | |
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
10027 | return NULL; | |
10028 | { | |
474c48f9 | 10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10030 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
aa2a5b86 | 10031 | |
474c48f9 | 10032 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10033 | if (PyErr_Occurred()) return NULL; |
10034 | } if (_result) { | |
10035 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10036 | _resultobj = Py_BuildValue("s",_ptemp); | |
10037 | } else { | |
10038 | Py_INCREF(Py_None); | |
10039 | _resultobj = Py_None; | |
10040 | } | |
10041 | return _resultobj; | |
10042 | } | |
10043 | ||
10044 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10045 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject * _resultobj; | |
10047 | bool _result; | |
10048 | wxRadioButton * _arg0; | |
10049 | wxWindow * _arg1; | |
10050 | wxWindowID _arg2; | |
10051 | wxString * _arg3; | |
10052 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10053 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10054 | long _arg6 = (long ) 0; | |
10055 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 10056 | wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr; |
aa2a5b86 RD |
10057 | PyObject * _argo0 = 0; |
10058 | PyObject * _argo1 = 0; | |
10059 | PyObject * _obj3 = 0; | |
10060 | wxPoint temp; | |
10061 | PyObject * _obj4 = 0; | |
10062 | wxSize temp0; | |
10063 | PyObject * _obj5 = 0; | |
10064 | PyObject * _argo7 = 0; | |
9a74fcaf | 10065 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
10066 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
10067 | ||
10068 | self = self; | |
9a74fcaf | 10069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
10070 | return NULL; |
10071 | if (_argo0) { | |
10072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
10075 | return NULL; | |
10076 | } | |
10077 | } | |
10078 | if (_argo1) { | |
10079 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10080 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
10082 | return NULL; | |
10083 | } | |
10084 | } | |
10085 | { | |
c8bc7bb8 RD |
10086 | _arg3 = wxString_in_helper(_obj3); |
10087 | if (_arg3 == NULL) | |
aa2a5b86 | 10088 | return NULL; |
aa2a5b86 RD |
10089 | } |
10090 | if (_obj4) | |
10091 | { | |
10092 | _arg4 = &temp; | |
10093 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 10094 | return NULL; |
37f6a977 | 10095 | } |
aa2a5b86 | 10096 | if (_obj5) |
37f6a977 | 10097 | { |
aa2a5b86 RD |
10098 | _arg5 = &temp0; |
10099 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 10100 | return NULL; |
37f6a977 | 10101 | } |
aa2a5b86 RD |
10102 | if (_argo7) { |
10103 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
10104 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
10105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); | |
70551f47 RD |
10106 | return NULL; |
10107 | } | |
10108 | } | |
9a74fcaf RD |
10109 | if (_obj8) |
10110 | { | |
10111 | _arg8 = wxString_in_helper(_obj8); | |
10112 | if (_arg8 == NULL) | |
10113 | return NULL; | |
10114 | } | |
ab9bc19b | 10115 | { |
474c48f9 | 10116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10117 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 10118 | |
474c48f9 | 10119 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10120 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 10121 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 10122 | { |
aa2a5b86 RD |
10123 | if (_obj3) |
10124 | delete _arg3; | |
9a74fcaf RD |
10125 | } |
10126 | { | |
10127 | if (_obj8) | |
10128 | delete _arg8; | |
70551f47 RD |
10129 | } |
10130 | return _resultobj; | |
10131 | } | |
10132 | ||
10133 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 10134 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10135 | PyObject * _resultobj; |
10136 | bool _result; | |
10137 | wxRadioButton * _arg0; | |
2d091820 | 10138 | PyObject * _argo0 = 0; |
107e4716 | 10139 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10140 | |
10141 | self = self; | |
107e4716 | 10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
70551f47 | 10143 | return NULL; |
2d091820 RD |
10144 | if (_argo0) { |
10145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
10147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
10148 | return NULL; | |
10149 | } | |
10150 | } | |
ab9bc19b | 10151 | { |
474c48f9 | 10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10153 | _result = (bool )wxRadioButton_GetValue(_arg0); |
ab9bc19b | 10154 | |
474c48f9 | 10155 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10156 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10157 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10158 | return _resultobj; |
10159 | } | |
10160 | ||
10161 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 10162 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10163 | PyObject * _resultobj; |
10164 | wxRadioButton * _arg0; | |
10165 | bool _arg1; | |
2d091820 | 10166 | PyObject * _argo0 = 0; |
70551f47 | 10167 | int tempbool1; |
107e4716 | 10168 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
10169 | |
10170 | self = self; | |
107e4716 | 10171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 10172 | return NULL; |
2d091820 RD |
10173 | if (_argo0) { |
10174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
10176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
10177 | return NULL; | |
10178 | } | |
10179 | } | |
10180 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 10181 | { |
474c48f9 | 10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10183 | wxRadioButton_SetValue(_arg0,_arg1); |
ab9bc19b | 10184 | |
474c48f9 | 10185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10186 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10187 | } Py_INCREF(Py_None); |
70551f47 RD |
10188 | _resultobj = Py_None; |
10189 | return _resultobj; | |
10190 | } | |
10191 | ||
10192 | static void *SwigwxSliderTowxControl(void *ptr) { | |
10193 | wxSlider *src; | |
10194 | wxControl *dest; | |
10195 | src = (wxSlider *) ptr; | |
10196 | dest = (wxControl *) src; | |
10197 | return (void *) dest; | |
10198 | } | |
10199 | ||
10200 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
10201 | wxSlider *src; | |
10202 | wxWindow *dest; | |
10203 | src = (wxSlider *) ptr; | |
10204 | dest = (wxWindow *) src; | |
10205 | return (void *) dest; | |
10206 | } | |
10207 | ||
10208 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
10209 | wxSlider *src; | |
10210 | wxEvtHandler *dest; | |
10211 | src = (wxSlider *) ptr; | |
10212 | dest = (wxEvtHandler *) src; | |
10213 | return (void *) dest; | |
10214 | } | |
10215 | ||
9df61a29 RD |
10216 | static void *SwigwxSliderTowxObject(void *ptr) { |
10217 | wxSlider *src; | |
10218 | wxObject *dest; | |
10219 | src = (wxSlider *) ptr; | |
10220 | dest = (wxObject *) src; | |
10221 | return (void *) dest; | |
10222 | } | |
10223 | ||
70551f47 | 10224 | #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)) |
107e4716 | 10225 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10226 | PyObject * _resultobj; |
10227 | wxSlider * _result; | |
10228 | wxWindow * _arg0; | |
10229 | wxWindowID _arg1; | |
10230 | int _arg2; | |
10231 | int _arg3; | |
10232 | int _arg4; | |
b68dc582 RD |
10233 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
10234 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
2d091820 | 10235 | long _arg7 = (long ) wxSL_HORIZONTAL; |
b68dc582 | 10236 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 10237 | wxString * _arg9 = (wxString *) &wxPySliderNameStr; |
2d091820 | 10238 | PyObject * _argo0 = 0; |
37f6a977 RD |
10239 | wxPoint temp; |
10240 | PyObject * _obj5 = 0; | |
10241 | wxSize temp0; | |
10242 | PyObject * _obj6 = 0; | |
2d091820 | 10243 | PyObject * _argo8 = 0; |
9a74fcaf | 10244 | PyObject * _obj9 = 0; |
107e4716 | 10245 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
70551f47 RD |
10246 | char _ptemp[128]; |
10247 | ||
10248 | self = self; | |
9a74fcaf | 10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 10250 | return NULL; |
2d091820 RD |
10251 | if (_argo0) { |
10252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
10254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
10255 | return NULL; | |
10256 | } | |
10257 | } | |
37f6a977 RD |
10258 | if (_obj5) |
10259 | { | |
10260 | _arg5 = &temp; | |
10261 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 10262 | return NULL; |
37f6a977 RD |
10263 | } |
10264 | if (_obj6) | |
10265 | { | |
10266 | _arg6 = &temp0; | |
10267 | if (! wxSize_helper(_obj6, &_arg6)) | |
70551f47 | 10268 | return NULL; |
37f6a977 | 10269 | } |
2d091820 RD |
10270 | if (_argo8) { |
10271 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
10272 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { | |
70551f47 RD |
10273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
10274 | return NULL; | |
10275 | } | |
10276 | } | |
9a74fcaf RD |
10277 | if (_obj9) |
10278 | { | |
10279 | _arg9 = wxString_in_helper(_obj9); | |
10280 | if (_arg9 == NULL) | |
10281 | return NULL; | |
10282 | } | |
ab9bc19b | 10283 | { |
474c48f9 | 10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10285 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 10286 | |
474c48f9 | 10287 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10288 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
10289 | } if (_result) { |
10290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10291 | _resultobj = Py_BuildValue("s",_ptemp); | |
10292 | } else { | |
10293 | Py_INCREF(Py_None); | |
10294 | _resultobj = Py_None; | |
10295 | } | |
9a74fcaf RD |
10296 | { |
10297 | if (_obj9) | |
10298 | delete _arg9; | |
10299 | } | |
70551f47 RD |
10300 | return _resultobj; |
10301 | } | |
10302 | ||
aa2a5b86 RD |
10303 | #define new_wxPreSlider() (new wxSlider()) |
10304 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject * _resultobj; | |
10306 | wxSlider * _result; | |
10307 | char *_kwnames[] = { NULL }; | |
10308 | char _ptemp[128]; | |
10309 | ||
10310 | self = self; | |
10311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
10312 | return NULL; | |
10313 | { | |
474c48f9 | 10314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10315 | _result = (wxSlider *)new_wxPreSlider(); |
aa2a5b86 | 10316 | |
474c48f9 | 10317 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10318 | if (PyErr_Occurred()) return NULL; |
10319 | } if (_result) { | |
10320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10321 | _resultobj = Py_BuildValue("s",_ptemp); | |
10322 | } else { | |
10323 | Py_INCREF(Py_None); | |
10324 | _resultobj = Py_None; | |
10325 | } | |
10326 | return _resultobj; | |
10327 | } | |
10328 | ||
10329 | #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)) | |
10330 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10331 | PyObject * _resultobj; | |
10332 | bool _result; | |
10333 | wxSlider * _arg0; | |
10334 | wxWindow * _arg1; | |
10335 | wxWindowID _arg2; | |
10336 | int _arg3; | |
10337 | int _arg4; | |
10338 | int _arg5; | |
10339 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
10340 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
10341 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
10342 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 10343 | wxString * _arg10 = (wxString *) &wxPySliderNameStr; |
aa2a5b86 RD |
10344 | PyObject * _argo0 = 0; |
10345 | PyObject * _argo1 = 0; | |
10346 | wxPoint temp; | |
10347 | PyObject * _obj6 = 0; | |
10348 | wxSize temp0; | |
10349 | PyObject * _obj7 = 0; | |
10350 | PyObject * _argo9 = 0; | |
9a74fcaf | 10351 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
10352 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
10353 | ||
10354 | self = self; | |
9a74fcaf | 10355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10)) |
aa2a5b86 RD |
10356 | return NULL; |
10357 | if (_argo0) { | |
10358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
10361 | return NULL; | |
10362 | } | |
10363 | } | |
10364 | if (_argo1) { | |
10365 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10366 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
10368 | return NULL; | |
10369 | } | |
10370 | } | |
10371 | if (_obj6) | |
10372 | { | |
10373 | _arg6 = &temp; | |
10374 | if (! wxPoint_helper(_obj6, &_arg6)) | |
10375 | return NULL; | |
10376 | } | |
10377 | if (_obj7) | |
10378 | { | |
10379 | _arg7 = &temp0; | |
10380 | if (! wxSize_helper(_obj7, &_arg7)) | |
10381 | return NULL; | |
10382 | } | |
10383 | if (_argo9) { | |
10384 | if (_argo9 == Py_None) { _arg9 = NULL; } | |
10385 | else if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { | |
10386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); | |
10387 | return NULL; | |
10388 | } | |
10389 | } | |
9a74fcaf RD |
10390 | if (_obj10) |
10391 | { | |
10392 | _arg10 = wxString_in_helper(_obj10); | |
10393 | if (_arg10 == NULL) | |
10394 | return NULL; | |
10395 | } | |
aa2a5b86 | 10396 | { |
474c48f9 | 10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10398 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10); |
aa2a5b86 | 10399 | |
474c48f9 | 10400 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10401 | if (PyErr_Occurred()) return NULL; |
10402 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
10403 | { |
10404 | if (_obj10) | |
10405 | delete _arg10; | |
10406 | } | |
aa2a5b86 RD |
10407 | return _resultobj; |
10408 | } | |
10409 | ||
70551f47 | 10410 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
107e4716 | 10411 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10412 | PyObject * _resultobj; |
10413 | wxSlider * _arg0; | |
2d091820 | 10414 | PyObject * _argo0 = 0; |
107e4716 | 10415 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10416 | |
10417 | self = self; | |
107e4716 | 10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
70551f47 | 10419 | return NULL; |
2d091820 RD |
10420 | if (_argo0) { |
10421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
10424 | return NULL; | |
10425 | } | |
10426 | } | |
ab9bc19b | 10427 | { |
474c48f9 | 10428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10429 | wxSlider_ClearSel(_arg0); |
ab9bc19b | 10430 | |
474c48f9 | 10431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10432 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10433 | } Py_INCREF(Py_None); |
70551f47 RD |
10434 | _resultobj = Py_None; |
10435 | return _resultobj; | |
10436 | } | |
10437 | ||
10438 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
107e4716 | 10439 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10440 | PyObject * _resultobj; |
10441 | wxSlider * _arg0; | |
2d091820 | 10442 | PyObject * _argo0 = 0; |
107e4716 | 10443 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10444 | |
10445 | self = self; | |
107e4716 | 10446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
70551f47 | 10447 | return NULL; |
2d091820 RD |
10448 | if (_argo0) { |
10449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
10452 | return NULL; | |
10453 | } | |
10454 | } | |
ab9bc19b | 10455 | { |
474c48f9 | 10456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10457 | wxSlider_ClearTicks(_arg0); |
ab9bc19b | 10458 | |
474c48f9 | 10459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10460 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10461 | } Py_INCREF(Py_None); |
70551f47 RD |
10462 | _resultobj = Py_None; |
10463 | return _resultobj; | |
10464 | } | |
10465 | ||
10466 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
107e4716 | 10467 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10468 | PyObject * _resultobj; |
10469 | int _result; | |
10470 | wxSlider * _arg0; | |
2d091820 | 10471 | PyObject * _argo0 = 0; |
107e4716 | 10472 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10473 | |
10474 | self = self; | |
107e4716 | 10475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
70551f47 | 10476 | return NULL; |
2d091820 RD |
10477 | if (_argo0) { |
10478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
10481 | return NULL; | |
10482 | } | |
10483 | } | |
ab9bc19b | 10484 | { |
474c48f9 | 10485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10486 | _result = (int )wxSlider_GetLineSize(_arg0); |
ab9bc19b | 10487 | |
474c48f9 | 10488 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10489 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10490 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10491 | return _resultobj; |
10492 | } | |
10493 | ||
10494 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 10495 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10496 | PyObject * _resultobj; |
10497 | int _result; | |
10498 | wxSlider * _arg0; | |
2d091820 | 10499 | PyObject * _argo0 = 0; |
107e4716 | 10500 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10501 | |
10502 | self = self; | |
107e4716 | 10503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
70551f47 | 10504 | return NULL; |
2d091820 RD |
10505 | if (_argo0) { |
10506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
10509 | return NULL; | |
10510 | } | |
10511 | } | |
ab9bc19b | 10512 | { |
474c48f9 | 10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10514 | _result = (int )wxSlider_GetMax(_arg0); |
ab9bc19b | 10515 | |
474c48f9 | 10516 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10517 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10518 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10519 | return _resultobj; |
10520 | } | |
10521 | ||
10522 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 10523 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10524 | PyObject * _resultobj; |
10525 | int _result; | |
10526 | wxSlider * _arg0; | |
2d091820 | 10527 | PyObject * _argo0 = 0; |
107e4716 | 10528 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10529 | |
10530 | self = self; | |
107e4716 | 10531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
70551f47 | 10532 | return NULL; |
2d091820 RD |
10533 | if (_argo0) { |
10534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
10537 | return NULL; | |
10538 | } | |
10539 | } | |
ab9bc19b | 10540 | { |
474c48f9 | 10541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10542 | _result = (int )wxSlider_GetMin(_arg0); |
ab9bc19b | 10543 | |
474c48f9 | 10544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10545 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10546 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10547 | return _resultobj; |
10548 | } | |
10549 | ||
10550 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 10551 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10552 | PyObject * _resultobj; |
10553 | int _result; | |
10554 | wxSlider * _arg0; | |
2d091820 | 10555 | PyObject * _argo0 = 0; |
107e4716 | 10556 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10557 | |
10558 | self = self; | |
107e4716 | 10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 10560 | return NULL; |
2d091820 RD |
10561 | if (_argo0) { |
10562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
10565 | return NULL; | |
10566 | } | |
10567 | } | |
ab9bc19b | 10568 | { |
474c48f9 | 10569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10570 | _result = (int )wxSlider_GetPageSize(_arg0); |
ab9bc19b | 10571 | |
474c48f9 | 10572 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10573 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10574 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10575 | return _resultobj; |
10576 | } | |
10577 | ||
10578 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
107e4716 | 10579 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10580 | PyObject * _resultobj; |
10581 | int _result; | |
10582 | wxSlider * _arg0; | |
2d091820 | 10583 | PyObject * _argo0 = 0; |
107e4716 | 10584 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10585 | |
10586 | self = self; | |
107e4716 | 10587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
70551f47 | 10588 | return NULL; |
2d091820 RD |
10589 | if (_argo0) { |
10590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
10593 | return NULL; | |
10594 | } | |
10595 | } | |
ab9bc19b | 10596 | { |
474c48f9 | 10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10598 | _result = (int )wxSlider_GetSelEnd(_arg0); |
ab9bc19b | 10599 | |
474c48f9 | 10600 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10601 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10602 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10603 | return _resultobj; |
10604 | } | |
10605 | ||
10606 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
107e4716 | 10607 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10608 | PyObject * _resultobj; |
10609 | int _result; | |
10610 | wxSlider * _arg0; | |
2d091820 | 10611 | PyObject * _argo0 = 0; |
107e4716 | 10612 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10613 | |
10614 | self = self; | |
107e4716 | 10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
70551f47 | 10616 | return NULL; |
2d091820 RD |
10617 | if (_argo0) { |
10618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
10621 | return NULL; | |
10622 | } | |
10623 | } | |
ab9bc19b | 10624 | { |
474c48f9 | 10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10626 | _result = (int )wxSlider_GetSelStart(_arg0); |
ab9bc19b | 10627 | |
474c48f9 | 10628 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10629 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10630 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10631 | return _resultobj; |
10632 | } | |
10633 | ||
10634 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
107e4716 | 10635 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10636 | PyObject * _resultobj; |
10637 | int _result; | |
10638 | wxSlider * _arg0; | |
2d091820 | 10639 | PyObject * _argo0 = 0; |
107e4716 | 10640 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10641 | |
10642 | self = self; | |
107e4716 | 10643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
70551f47 | 10644 | return NULL; |
2d091820 RD |
10645 | if (_argo0) { |
10646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
10649 | return NULL; | |
10650 | } | |
10651 | } | |
ab9bc19b | 10652 | { |
474c48f9 | 10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10654 | _result = (int )wxSlider_GetThumbLength(_arg0); |
ab9bc19b | 10655 | |
474c48f9 | 10656 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10657 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10658 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10659 | return _resultobj; |
10660 | } | |
10661 | ||
10662 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
107e4716 | 10663 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10664 | PyObject * _resultobj; |
10665 | int _result; | |
10666 | wxSlider * _arg0; | |
2d091820 | 10667 | PyObject * _argo0 = 0; |
107e4716 | 10668 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10669 | |
10670 | self = self; | |
107e4716 | 10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
70551f47 | 10672 | return NULL; |
2d091820 RD |
10673 | if (_argo0) { |
10674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
10677 | return NULL; | |
10678 | } | |
10679 | } | |
ab9bc19b | 10680 | { |
474c48f9 | 10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10682 | _result = (int )wxSlider_GetTickFreq(_arg0); |
ab9bc19b | 10683 | |
474c48f9 | 10684 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10685 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10686 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10687 | return _resultobj; |
10688 | } | |
10689 | ||
10690 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 10691 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10692 | PyObject * _resultobj; |
10693 | int _result; | |
10694 | wxSlider * _arg0; | |
2d091820 | 10695 | PyObject * _argo0 = 0; |
107e4716 | 10696 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10697 | |
10698 | self = self; | |
107e4716 | 10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
70551f47 | 10700 | return NULL; |
2d091820 RD |
10701 | if (_argo0) { |
10702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
10705 | return NULL; | |
10706 | } | |
10707 | } | |
ab9bc19b | 10708 | { |
474c48f9 | 10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10710 | _result = (int )wxSlider_GetValue(_arg0); |
ab9bc19b | 10711 | |
474c48f9 | 10712 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10713 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10714 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10715 | return _resultobj; |
10716 | } | |
10717 | ||
10718 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 10719 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10720 | PyObject * _resultobj; |
10721 | wxSlider * _arg0; | |
10722 | int _arg1; | |
10723 | int _arg2; | |
2d091820 | 10724 | PyObject * _argo0 = 0; |
107e4716 | 10725 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
70551f47 RD |
10726 | |
10727 | self = self; | |
107e4716 | 10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10729 | return NULL; |
2d091820 RD |
10730 | if (_argo0) { |
10731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
10734 | return NULL; | |
10735 | } | |
10736 | } | |
ab9bc19b | 10737 | { |
474c48f9 | 10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10739 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 10740 | |
474c48f9 | 10741 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10742 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10743 | } Py_INCREF(Py_None); |
70551f47 RD |
10744 | _resultobj = Py_None; |
10745 | return _resultobj; | |
10746 | } | |
10747 | ||
10748 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
107e4716 | 10749 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10750 | PyObject * _resultobj; |
10751 | wxSlider * _arg0; | |
10752 | int _arg1; | |
10753 | int _arg2; | |
2d091820 | 10754 | PyObject * _argo0 = 0; |
107e4716 | 10755 | char *_kwnames[] = { "self","n","pos", NULL }; |
70551f47 RD |
10756 | |
10757 | self = self; | |
107e4716 | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10759 | return NULL; |
2d091820 RD |
10760 | if (_argo0) { |
10761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
10764 | return NULL; | |
10765 | } | |
10766 | } | |
ab9bc19b | 10767 | { |
474c48f9 | 10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10769 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
ab9bc19b | 10770 | |
474c48f9 | 10771 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10772 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10773 | } Py_INCREF(Py_None); |
70551f47 RD |
10774 | _resultobj = Py_None; |
10775 | return _resultobj; | |
10776 | } | |
10777 | ||
10778 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
107e4716 | 10779 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10780 | PyObject * _resultobj; |
10781 | wxSlider * _arg0; | |
10782 | int _arg1; | |
2d091820 | 10783 | PyObject * _argo0 = 0; |
107e4716 | 10784 | char *_kwnames[] = { "self","lineSize", NULL }; |
70551f47 RD |
10785 | |
10786 | self = self; | |
107e4716 | 10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10788 | return NULL; |
2d091820 RD |
10789 | if (_argo0) { |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
ab9bc19b | 10796 | { |
474c48f9 | 10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10798 | wxSlider_SetLineSize(_arg0,_arg1); |
ab9bc19b | 10799 | |
474c48f9 | 10800 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10801 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10802 | } Py_INCREF(Py_None); |
70551f47 RD |
10803 | _resultobj = Py_None; |
10804 | return _resultobj; | |
10805 | } | |
10806 | ||
10807 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
107e4716 | 10808 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10809 | PyObject * _resultobj; |
10810 | wxSlider * _arg0; | |
10811 | int _arg1; | |
2d091820 | 10812 | PyObject * _argo0 = 0; |
107e4716 | 10813 | char *_kwnames[] = { "self","pageSize", NULL }; |
70551f47 RD |
10814 | |
10815 | self = self; | |
107e4716 | 10816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10817 | return NULL; |
2d091820 RD |
10818 | if (_argo0) { |
10819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
10822 | return NULL; | |
10823 | } | |
10824 | } | |
ab9bc19b | 10825 | { |
474c48f9 | 10826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10827 | wxSlider_SetPageSize(_arg0,_arg1); |
ab9bc19b | 10828 | |
474c48f9 | 10829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10830 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10831 | } Py_INCREF(Py_None); |
70551f47 RD |
10832 | _resultobj = Py_None; |
10833 | return _resultobj; | |
10834 | } | |
10835 | ||
10836 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 10837 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10838 | PyObject * _resultobj; |
10839 | wxSlider * _arg0; | |
10840 | int _arg1; | |
10841 | int _arg2; | |
2d091820 | 10842 | PyObject * _argo0 = 0; |
107e4716 | 10843 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
70551f47 RD |
10844 | |
10845 | self = self; | |
107e4716 | 10846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 10847 | return NULL; |
2d091820 RD |
10848 | if (_argo0) { |
10849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
10852 | return NULL; | |
10853 | } | |
10854 | } | |
ab9bc19b | 10855 | { |
474c48f9 | 10856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10857 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 10858 | |
474c48f9 | 10859 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10860 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10861 | } Py_INCREF(Py_None); |
70551f47 RD |
10862 | _resultobj = Py_None; |
10863 | return _resultobj; | |
10864 | } | |
10865 | ||
10866 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
107e4716 | 10867 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10868 | PyObject * _resultobj; |
10869 | wxSlider * _arg0; | |
10870 | int _arg1; | |
2d091820 | 10871 | PyObject * _argo0 = 0; |
107e4716 | 10872 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
10873 | |
10874 | self = self; | |
107e4716 | 10875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10876 | return NULL; |
2d091820 RD |
10877 | if (_argo0) { |
10878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
10881 | return NULL; | |
10882 | } | |
10883 | } | |
ab9bc19b | 10884 | { |
474c48f9 | 10885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10886 | wxSlider_SetThumbLength(_arg0,_arg1); |
ab9bc19b | 10887 | |
474c48f9 | 10888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10889 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10890 | } Py_INCREF(Py_None); |
70551f47 RD |
10891 | _resultobj = Py_None; |
10892 | return _resultobj; | |
10893 | } | |
10894 | ||
10895 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
107e4716 | 10896 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10897 | PyObject * _resultobj; |
10898 | wxSlider * _arg0; | |
10899 | int _arg1; | |
2d091820 | 10900 | PyObject * _argo0 = 0; |
107e4716 | 10901 | char *_kwnames[] = { "self","tickPos", NULL }; |
70551f47 RD |
10902 | |
10903 | self = self; | |
107e4716 | 10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10905 | return NULL; |
2d091820 RD |
10906 | if (_argo0) { |
10907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
10910 | return NULL; | |
10911 | } | |
10912 | } | |
ab9bc19b | 10913 | { |
474c48f9 | 10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10915 | wxSlider_SetTick(_arg0,_arg1); |
ab9bc19b | 10916 | |
474c48f9 | 10917 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10918 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10919 | } Py_INCREF(Py_None); |
70551f47 RD |
10920 | _resultobj = Py_None; |
10921 | return _resultobj; | |
10922 | } | |
10923 | ||
10924 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 10925 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10926 | PyObject * _resultobj; |
10927 | wxSlider * _arg0; | |
10928 | int _arg1; | |
2d091820 | 10929 | PyObject * _argo0 = 0; |
107e4716 | 10930 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
10931 | |
10932 | self = self; | |
107e4716 | 10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10934 | return NULL; |
2d091820 RD |
10935 | if (_argo0) { |
10936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
10938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
10939 | return NULL; | |
10940 | } | |
10941 | } | |
ab9bc19b | 10942 | { |
474c48f9 | 10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10944 | wxSlider_SetValue(_arg0,_arg1); |
ab9bc19b | 10945 | |
474c48f9 | 10946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10947 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10948 | } Py_INCREF(Py_None); |
70551f47 RD |
10949 | _resultobj = Py_None; |
10950 | return _resultobj; | |
10951 | } | |
10952 | ||
f6bcfd97 BP |
10953 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
10954 | wxSpinCtrl *src; | |
10955 | wxSpinButton *dest; | |
10956 | src = (wxSpinCtrl *) ptr; | |
10957 | dest = (wxSpinButton *) src; | |
10958 | return (void *) dest; | |
10959 | } | |
10960 | ||
10961 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
10962 | wxSpinCtrl *src; | |
10963 | wxControl *dest; | |
10964 | src = (wxSpinCtrl *) ptr; | |
10965 | dest = (wxControl *) src; | |
10966 | return (void *) dest; | |
10967 | } | |
10968 | ||
10969 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
10970 | wxSpinCtrl *src; | |
10971 | wxWindow *dest; | |
10972 | src = (wxSpinCtrl *) ptr; | |
10973 | dest = (wxWindow *) src; | |
10974 | return (void *) dest; | |
10975 | } | |
10976 | ||
10977 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
10978 | wxSpinCtrl *src; | |
10979 | wxEvtHandler *dest; | |
10980 | src = (wxSpinCtrl *) ptr; | |
10981 | dest = (wxEvtHandler *) src; | |
10982 | return (void *) dest; | |
10983 | } | |
10984 | ||
9df61a29 RD |
10985 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
10986 | wxSpinCtrl *src; | |
10987 | wxObject *dest; | |
10988 | src = (wxSpinCtrl *) ptr; | |
10989 | dest = (wxObject *) src; | |
10990 | return (void *) dest; | |
10991 | } | |
10992 | ||
f6bcfd97 BP |
10993 | #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)) |
10994 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject * _resultobj; | |
10996 | wxSpinCtrl * _result; | |
10997 | wxWindow * _arg0; | |
10998 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 10999 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
11000 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
11001 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
11002 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
11003 | int _arg6 = (int ) 0; | |
11004 | int _arg7 = (int ) 100; | |
11005 | int _arg8 = (int ) 0; | |
9a74fcaf | 11006 | wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr; |
f6bcfd97 | 11007 | PyObject * _argo0 = 0; |
9a74fcaf | 11008 | PyObject * _obj2 = 0; |
f6bcfd97 BP |
11009 | wxPoint temp; |
11010 | PyObject * _obj3 = 0; | |
11011 | wxSize temp0; | |
11012 | PyObject * _obj4 = 0; | |
9a74fcaf | 11013 | PyObject * _obj9 = 0; |
f6bcfd97 BP |
11014 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
11015 | char _ptemp[128]; | |
11016 | ||
11017 | self = self; | |
9a74fcaf | 11018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9)) |
f6bcfd97 BP |
11019 | return NULL; |
11020 | if (_argo0) { | |
11021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
11024 | return NULL; | |
11025 | } | |
11026 | } | |
9a74fcaf RD |
11027 | if (_obj2) |
11028 | { | |
11029 | _arg2 = wxString_in_helper(_obj2); | |
11030 | if (_arg2 == NULL) | |
11031 | return NULL; | |
11032 | } | |
f6bcfd97 BP |
11033 | if (_obj3) |
11034 | { | |
11035 | _arg3 = &temp; | |
11036 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11037 | return NULL; | |
11038 | } | |
11039 | if (_obj4) | |
11040 | { | |
11041 | _arg4 = &temp0; | |
11042 | if (! wxSize_helper(_obj4, &_arg4)) | |
11043 | return NULL; | |
9a74fcaf RD |
11044 | } |
11045 | if (_obj9) | |
11046 | { | |
11047 | _arg9 = wxString_in_helper(_obj9); | |
11048 | if (_arg9 == NULL) | |
11049 | return NULL; | |
f6bcfd97 BP |
11050 | } |
11051 | { | |
474c48f9 | 11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11053 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9); |
f6bcfd97 | 11054 | |
474c48f9 | 11055 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11057 | } if (_result) { |
11058 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11059 | _resultobj = Py_BuildValue("s",_ptemp); | |
11060 | } else { | |
11061 | Py_INCREF(Py_None); | |
11062 | _resultobj = Py_None; | |
11063 | } | |
9a74fcaf RD |
11064 | { |
11065 | if (_obj2) | |
11066 | delete _arg2; | |
11067 | } | |
11068 | { | |
11069 | if (_obj9) | |
11070 | delete _arg9; | |
11071 | } | |
f6bcfd97 BP |
11072 | return _resultobj; |
11073 | } | |
11074 | ||
aa2a5b86 RD |
11075 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
11076 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11077 | PyObject * _resultobj; | |
11078 | wxSpinCtrl * _result; | |
11079 | char *_kwnames[] = { NULL }; | |
11080 | char _ptemp[128]; | |
11081 | ||
11082 | self = self; | |
11083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
11084 | return NULL; | |
11085 | { | |
474c48f9 | 11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11087 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
aa2a5b86 | 11088 | |
474c48f9 | 11089 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11090 | if (PyErr_Occurred()) return NULL; |
11091 | } if (_result) { | |
11092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11093 | _resultobj = Py_BuildValue("s",_ptemp); | |
11094 | } else { | |
11095 | Py_INCREF(Py_None); | |
11096 | _resultobj = Py_None; | |
11097 | } | |
11098 | return _resultobj; | |
11099 | } | |
11100 | ||
11101 | #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)) | |
11102 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11103 | PyObject * _resultobj; | |
11104 | bool _result; | |
11105 | wxSpinCtrl * _arg0; | |
11106 | wxWindow * _arg1; | |
11107 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 11108 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
11109 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
11110 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11111 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
11112 | int _arg7 = (int ) 0; | |
11113 | int _arg8 = (int ) 100; | |
11114 | int _arg9 = (int ) 0; | |
9a74fcaf | 11115 | wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr; |
aa2a5b86 RD |
11116 | PyObject * _argo0 = 0; |
11117 | PyObject * _argo1 = 0; | |
9a74fcaf | 11118 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
11119 | wxPoint temp; |
11120 | PyObject * _obj4 = 0; | |
11121 | wxSize temp0; | |
11122 | PyObject * _obj5 = 0; | |
9a74fcaf | 11123 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
11124 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
11125 | ||
11126 | self = self; | |
9a74fcaf | 11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10)) |
aa2a5b86 RD |
11128 | return NULL; |
11129 | if (_argo0) { | |
11130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
11133 | return NULL; | |
11134 | } | |
11135 | } | |
11136 | if (_argo1) { | |
11137 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11138 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
11140 | return NULL; | |
11141 | } | |
11142 | } | |
9a74fcaf RD |
11143 | if (_obj3) |
11144 | { | |
11145 | _arg3 = wxString_in_helper(_obj3); | |
11146 | if (_arg3 == NULL) | |
11147 | return NULL; | |
11148 | } | |
aa2a5b86 RD |
11149 | if (_obj4) |
11150 | { | |
11151 | _arg4 = &temp; | |
11152 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11153 | return NULL; | |
11154 | } | |
11155 | if (_obj5) | |
11156 | { | |
11157 | _arg5 = &temp0; | |
11158 | if (! wxSize_helper(_obj5, &_arg5)) | |
11159 | return NULL; | |
9a74fcaf RD |
11160 | } |
11161 | if (_obj10) | |
11162 | { | |
11163 | _arg10 = wxString_in_helper(_obj10); | |
11164 | if (_arg10 == NULL) | |
11165 | return NULL; | |
aa2a5b86 RD |
11166 | } |
11167 | { | |
474c48f9 | 11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11169 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10); |
aa2a5b86 | 11170 | |
474c48f9 | 11171 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11172 | if (PyErr_Occurred()) return NULL; |
11173 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
11174 | { |
11175 | if (_obj3) | |
11176 | delete _arg3; | |
11177 | } | |
11178 | { | |
11179 | if (_obj10) | |
11180 | delete _arg10; | |
11181 | } | |
aa2a5b86 RD |
11182 | return _resultobj; |
11183 | } | |
11184 | ||
c368d904 RD |
11185 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
11186 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject * _resultobj; | |
11188 | int _result; | |
11189 | wxSpinCtrl * _arg0; | |
11190 | PyObject * _argo0 = 0; | |
11191 | char *_kwnames[] = { "self", NULL }; | |
11192 | ||
11193 | self = self; | |
11194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
11195 | return NULL; | |
11196 | if (_argo0) { | |
11197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
11200 | return NULL; | |
11201 | } | |
11202 | } | |
11203 | { | |
474c48f9 | 11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11205 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
c368d904 | 11206 | |
474c48f9 | 11207 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11208 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11209 | } _resultobj = Py_BuildValue("i",_result); |
11210 | return _resultobj; | |
11211 | } | |
11212 | ||
11213 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
11214 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11215 | PyObject * _resultobj; | |
11216 | int _result; | |
11217 | wxSpinCtrl * _arg0; | |
11218 | PyObject * _argo0 = 0; | |
11219 | char *_kwnames[] = { "self", NULL }; | |
11220 | ||
11221 | self = self; | |
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
11223 | return NULL; | |
11224 | if (_argo0) { | |
11225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
11228 | return NULL; | |
11229 | } | |
11230 | } | |
11231 | { | |
474c48f9 | 11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11233 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
c368d904 | 11234 | |
474c48f9 | 11235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11236 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11237 | } _resultobj = Py_BuildValue("i",_result); |
11238 | return _resultobj; | |
11239 | } | |
11240 | ||
11241 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
11242 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11243 | PyObject * _resultobj; | |
11244 | int _result; | |
11245 | wxSpinCtrl * _arg0; | |
11246 | PyObject * _argo0 = 0; | |
11247 | char *_kwnames[] = { "self", NULL }; | |
11248 | ||
11249 | self = self; | |
11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
11251 | return NULL; | |
11252 | if (_argo0) { | |
11253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
11256 | return NULL; | |
11257 | } | |
11258 | } | |
11259 | { | |
474c48f9 | 11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11261 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
c368d904 | 11262 | |
474c48f9 | 11263 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11264 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11265 | } _resultobj = Py_BuildValue("i",_result); |
11266 | return _resultobj; | |
11267 | } | |
11268 | ||
11269 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
11270 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11271 | PyObject * _resultobj; | |
11272 | wxSpinCtrl * _arg0; | |
11273 | int _arg1; | |
11274 | int _arg2; | |
11275 | PyObject * _argo0 = 0; | |
11276 | char *_kwnames[] = { "self","min","max", NULL }; | |
11277 | ||
11278 | self = self; | |
11279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11280 | return NULL; | |
11281 | if (_argo0) { | |
11282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
11285 | return NULL; | |
11286 | } | |
11287 | } | |
11288 | { | |
474c48f9 | 11289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11290 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
c368d904 | 11291 | |
474c48f9 | 11292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11293 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11294 | } Py_INCREF(Py_None); |
11295 | _resultobj = Py_None; | |
11296 | return _resultobj; | |
11297 | } | |
11298 | ||
11299 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11300 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11301 | PyObject * _resultobj; | |
11302 | wxSpinCtrl * _arg0; | |
11303 | int _arg1; | |
11304 | PyObject * _argo0 = 0; | |
11305 | char *_kwnames[] = { "self","value", NULL }; | |
11306 | ||
11307 | self = self; | |
11308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
11309 | return NULL; | |
11310 | if (_argo0) { | |
11311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
11314 | return NULL; | |
11315 | } | |
11316 | } | |
11317 | { | |
474c48f9 | 11318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11319 | wxSpinCtrl_SetValue(_arg0,_arg1); |
c368d904 | 11320 | |
474c48f9 | 11321 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11322 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11323 | } Py_INCREF(Py_None); |
11324 | _resultobj = Py_None; | |
11325 | return _resultobj; | |
11326 | } | |
11327 | ||
7a446686 RD |
11328 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
11329 | wxToggleButton *src; | |
11330 | wxControl *dest; | |
11331 | src = (wxToggleButton *) ptr; | |
11332 | dest = (wxControl *) src; | |
11333 | return (void *) dest; | |
11334 | } | |
11335 | ||
11336 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
11337 | wxToggleButton *src; | |
11338 | wxWindow *dest; | |
11339 | src = (wxToggleButton *) ptr; | |
11340 | dest = (wxWindow *) src; | |
11341 | return (void *) dest; | |
11342 | } | |
11343 | ||
11344 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
11345 | wxToggleButton *src; | |
11346 | wxEvtHandler *dest; | |
11347 | src = (wxToggleButton *) ptr; | |
11348 | dest = (wxEvtHandler *) src; | |
11349 | return (void *) dest; | |
11350 | } | |
11351 | ||
9df61a29 RD |
11352 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
11353 | wxToggleButton *src; | |
11354 | wxObject *dest; | |
11355 | src = (wxToggleButton *) ptr; | |
11356 | dest = (wxObject *) src; | |
11357 | return (void *) dest; | |
11358 | } | |
11359 | ||
7a446686 RD |
11360 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
11361 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11362 | PyObject * _resultobj; | |
11363 | wxToggleButton * _result; | |
11364 | wxWindow * _arg0; | |
11365 | wxWindowID _arg1; | |
11366 | wxString * _arg2; | |
11367 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11368 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11369 | long _arg5 = (long ) 0; | |
11370 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 11371 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
7a446686 RD |
11372 | PyObject * _argo0 = 0; |
11373 | PyObject * _obj2 = 0; | |
11374 | wxPoint temp; | |
11375 | PyObject * _obj3 = 0; | |
11376 | wxSize temp0; | |
11377 | PyObject * _obj4 = 0; | |
11378 | PyObject * _argo6 = 0; | |
9a74fcaf | 11379 | PyObject * _obj7 = 0; |
7a446686 RD |
11380 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
11381 | char _ptemp[128]; | |
11382 | ||
11383 | self = self; | |
9a74fcaf | 11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
7a446686 RD |
11385 | return NULL; |
11386 | if (_argo0) { | |
11387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
11390 | return NULL; | |
11391 | } | |
11392 | } | |
11393 | { | |
c8bc7bb8 RD |
11394 | _arg2 = wxString_in_helper(_obj2); |
11395 | if (_arg2 == NULL) | |
7a446686 | 11396 | return NULL; |
7a446686 RD |
11397 | } |
11398 | if (_obj3) | |
11399 | { | |
11400 | _arg3 = &temp; | |
11401 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11402 | return NULL; | |
11403 | } | |
11404 | if (_obj4) | |
11405 | { | |
11406 | _arg4 = &temp0; | |
11407 | if (! wxSize_helper(_obj4, &_arg4)) | |
11408 | return NULL; | |
11409 | } | |
11410 | if (_argo6) { | |
11411 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
11412 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
11413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); | |
11414 | return NULL; | |
11415 | } | |
11416 | } | |
9a74fcaf RD |
11417 | if (_obj7) |
11418 | { | |
11419 | _arg7 = wxString_in_helper(_obj7); | |
11420 | if (_arg7 == NULL) | |
11421 | return NULL; | |
11422 | } | |
7a446686 | 11423 | { |
474c48f9 | 11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11425 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
7a446686 | 11426 | |
474c48f9 | 11427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11428 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11429 | } if (_result) { |
11430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11431 | _resultobj = Py_BuildValue("s",_ptemp); | |
11432 | } else { | |
11433 | Py_INCREF(Py_None); | |
11434 | _resultobj = Py_None; | |
11435 | } | |
11436 | { | |
11437 | if (_obj2) | |
11438 | delete _arg2; | |
9a74fcaf RD |
11439 | } |
11440 | { | |
11441 | if (_obj7) | |
11442 | delete _arg7; | |
7a446686 RD |
11443 | } |
11444 | return _resultobj; | |
11445 | } | |
11446 | ||
aa2a5b86 RD |
11447 | #define new_wxPreToggleButton() (new wxToggleButton()) |
11448 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11449 | PyObject * _resultobj; | |
11450 | wxToggleButton * _result; | |
11451 | char *_kwnames[] = { NULL }; | |
11452 | char _ptemp[128]; | |
11453 | ||
11454 | self = self; | |
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
11456 | return NULL; | |
11457 | { | |
474c48f9 | 11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11459 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
aa2a5b86 | 11460 | |
474c48f9 | 11461 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11462 | if (PyErr_Occurred()) return NULL; |
11463 | } if (_result) { | |
11464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
11465 | _resultobj = Py_BuildValue("s",_ptemp); | |
11466 | } else { | |
11467 | Py_INCREF(Py_None); | |
11468 | _resultobj = Py_None; | |
11469 | } | |
11470 | return _resultobj; | |
11471 | } | |
11472 | ||
11473 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
11474 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11475 | PyObject * _resultobj; | |
11476 | bool _result; | |
11477 | wxToggleButton * _arg0; | |
11478 | wxWindow * _arg1; | |
11479 | wxWindowID _arg2; | |
11480 | wxString * _arg3; | |
11481 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
11482 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11483 | long _arg6 = (long ) 0; | |
11484 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 11485 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
aa2a5b86 RD |
11486 | PyObject * _argo0 = 0; |
11487 | PyObject * _argo1 = 0; | |
11488 | PyObject * _obj3 = 0; | |
11489 | wxPoint temp; | |
11490 | PyObject * _obj4 = 0; | |
11491 | wxSize temp0; | |
11492 | PyObject * _obj5 = 0; | |
11493 | PyObject * _argo7 = 0; | |
9a74fcaf | 11494 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
11495 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
11496 | ||
11497 | self = self; | |
9a74fcaf | 11498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
11499 | return NULL; |
11500 | if (_argo0) { | |
11501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
11504 | return NULL; | |
11505 | } | |
11506 | } | |
11507 | if (_argo1) { | |
11508 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11509 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
11511 | return NULL; | |
11512 | } | |
11513 | } | |
11514 | { | |
c8bc7bb8 RD |
11515 | _arg3 = wxString_in_helper(_obj3); |
11516 | if (_arg3 == NULL) | |
aa2a5b86 | 11517 | return NULL; |
aa2a5b86 RD |
11518 | } |
11519 | if (_obj4) | |
11520 | { | |
11521 | _arg4 = &temp; | |
11522 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11523 | return NULL; | |
11524 | } | |
11525 | if (_obj5) | |
11526 | { | |
11527 | _arg5 = &temp0; | |
11528 | if (! wxSize_helper(_obj5, &_arg5)) | |
11529 | return NULL; | |
11530 | } | |
11531 | if (_argo7) { | |
11532 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
11533 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { | |
11534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); | |
11535 | return NULL; | |
11536 | } | |
11537 | } | |
9a74fcaf RD |
11538 | if (_obj8) |
11539 | { | |
11540 | _arg8 = wxString_in_helper(_obj8); | |
11541 | if (_arg8 == NULL) | |
11542 | return NULL; | |
11543 | } | |
aa2a5b86 | 11544 | { |
474c48f9 | 11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11546 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 11547 | |
474c48f9 | 11548 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11549 | if (PyErr_Occurred()) return NULL; |
11550 | } _resultobj = Py_BuildValue("i",_result); | |
11551 | { | |
11552 | if (_obj3) | |
11553 | delete _arg3; | |
9a74fcaf RD |
11554 | } |
11555 | { | |
11556 | if (_obj8) | |
11557 | delete _arg8; | |
aa2a5b86 RD |
11558 | } |
11559 | return _resultobj; | |
11560 | } | |
11561 | ||
7a446686 RD |
11562 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
11563 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11564 | PyObject * _resultobj; | |
11565 | wxToggleButton * _arg0; | |
11566 | bool _arg1; | |
11567 | PyObject * _argo0 = 0; | |
11568 | int tempbool1; | |
11569 | char *_kwnames[] = { "self","value", NULL }; | |
11570 | ||
11571 | self = self; | |
11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
11573 | return NULL; | |
11574 | if (_argo0) { | |
11575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
11578 | return NULL; | |
11579 | } | |
11580 | } | |
11581 | _arg1 = (bool ) tempbool1; | |
11582 | { | |
474c48f9 | 11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11584 | wxToggleButton_SetValue(_arg0,_arg1); |
7a446686 | 11585 | |
474c48f9 | 11586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11587 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11588 | } Py_INCREF(Py_None); |
11589 | _resultobj = Py_None; | |
11590 | return _resultobj; | |
11591 | } | |
11592 | ||
11593 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
11594 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11595 | PyObject * _resultobj; | |
11596 | bool _result; | |
11597 | wxToggleButton * _arg0; | |
11598 | PyObject * _argo0 = 0; | |
11599 | char *_kwnames[] = { "self", NULL }; | |
11600 | ||
11601 | self = self; | |
11602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
11603 | return NULL; | |
11604 | if (_argo0) { | |
11605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
11608 | return NULL; | |
11609 | } | |
11610 | } | |
11611 | { | |
474c48f9 | 11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11613 | _result = (bool )wxToggleButton_GetValue(_arg0); |
7a446686 | 11614 | |
474c48f9 | 11615 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11616 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11617 | } _resultobj = Py_BuildValue("i",_result); |
11618 | return _resultobj; | |
11619 | } | |
11620 | ||
11621 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
11622 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11623 | PyObject * _resultobj; | |
11624 | wxToggleButton * _arg0; | |
11625 | wxString * _arg1; | |
11626 | PyObject * _argo0 = 0; | |
11627 | PyObject * _obj1 = 0; | |
11628 | char *_kwnames[] = { "self","label", NULL }; | |
11629 | ||
11630 | self = self; | |
11631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
11632 | return NULL; | |
11633 | if (_argo0) { | |
11634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
11636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
11637 | return NULL; | |
11638 | } | |
11639 | } | |
11640 | { | |
c8bc7bb8 RD |
11641 | _arg1 = wxString_in_helper(_obj1); |
11642 | if (_arg1 == NULL) | |
7a446686 | 11643 | return NULL; |
7a446686 RD |
11644 | } |
11645 | { | |
474c48f9 | 11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11647 | wxToggleButton_SetLabel(_arg0,*_arg1); |
7a446686 | 11648 | |
474c48f9 | 11649 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11650 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
11651 | } Py_INCREF(Py_None); |
11652 | _resultobj = Py_None; | |
11653 | { | |
11654 | if (_obj1) | |
11655 | delete _arg1; | |
11656 | } | |
11657 | return _resultobj; | |
11658 | } | |
11659 | ||
70551f47 | 11660 | static PyMethodDef controlscMethods[] = { |
7a446686 RD |
11661 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11662 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11664 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11665 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 | 11666 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11667 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11668 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11669 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11671 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11672 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11673 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11674 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11675 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11676 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
11685 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
11686 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11689 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
11691 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11694 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
11695 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11696 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
11697 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11699 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11700 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11701 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
11702 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
11703 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11706 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11707 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11708 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11709 | { "wxRadioBox_SetItemLabel", (PyCFunction) _wrap_wxRadioBox_SetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11710 | { "wxRadioBox_GetItemLabel", (PyCFunction) _wrap_wxRadioBox_GetItemLabel, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11711 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11712 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
11713 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11715 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11716 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11717 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
11718 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11719 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11720 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11721 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
11722 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11723 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
11724 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11729 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11730 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11731 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
11732 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a | 11734 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 11735 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11736 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
11737 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11739 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11740 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
11741 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11742 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11743 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 11744 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11745 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
11746 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
11749 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11750 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
11753 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
11754 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
11755 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11756 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
11757 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
11758 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
11759 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
11760 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11764 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11765 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
11766 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
87439dd8 | 11768 | { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11769 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
11770 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
11771 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
11772 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11773 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11774 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11775 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
11776 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11777 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
93283355 | 11778 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11779 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11780 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11781 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11782 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
11783 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
db34b2d4 | 11785 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
11786 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11787 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11788 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11789 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11790 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11791 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 | 11792 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
11793 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11794 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11801 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11804 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 11805 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11806 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
11807 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11808 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11809 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11810 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
11811 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11812 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11818 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 | 11819 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11820 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11821 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11822 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11823 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11824 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11825 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
11826 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11828 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
11829 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11830 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11831 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
11832 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11833 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11834 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11835 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11836 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
11837 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
11840 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
11842 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
11843 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11845 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
11846 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11847 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
c70fd24f RD |
11848 | { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11849 | { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11850 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
11851 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11852 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11854 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11855 | { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 11858 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11859 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
11860 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11862 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
11863 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
11864 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11865 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11866 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11867 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11868 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
11869 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11870 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
11871 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11872 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11873 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11874 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 11875 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11876 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
11877 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11878 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11879 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11880 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11881 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
11882 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11883 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
11884 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
11885 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11886 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
11887 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11888 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11889 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
11890 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11892 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
11893 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11894 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11900 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11901 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11902 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11903 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 RD |
11904 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
11905 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11906 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11907 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
11908 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11909 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
85247b36 | 11910 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
11911 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
11912 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11921 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11922 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11923 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11924 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11925 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
11926 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11927 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
11928 | { NULL, NULL } |
11929 | }; | |
2d091820 RD |
11930 | #ifdef __cplusplus |
11931 | } | |
11932 | #endif | |
11933 | /* | |
11934 | * This table is used by the pointer type-checker | |
11935 | */ | |
11936 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 11937 | { "_signed_long","_long",0}, |
4120ef2b | 11938 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
11939 | { "_wxPrintQuality","_int",0}, |
11940 | { "_wxPrintQuality","_signed_int",0}, | |
11941 | { "_wxPrintQuality","_unsigned_int",0}, | |
11942 | { "_wxPrintQuality","_wxWindowID",0}, | |
11943 | { "_wxPrintQuality","_uint",0}, | |
11944 | { "_wxPrintQuality","_EBool",0}, | |
11945 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11946 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 11947 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
11948 | { "_long","_unsigned_long",0}, |
11949 | { "_long","_signed_long",0}, | |
4120ef2b | 11950 | { "_size_t","_wxCoord",0}, |
2d091820 | 11951 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11952 | { "_size_t","_time_t",0}, |
2d091820 RD |
11953 | { "_size_t","_unsigned_int",0}, |
11954 | { "_size_t","_int",0}, | |
11955 | { "_size_t","_wxWindowID",0}, | |
11956 | { "_size_t","_uint",0}, | |
4120ef2b | 11957 | { "_uint","_wxCoord",0}, |
2d091820 | 11958 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11959 | { "_uint","_time_t",0}, |
2d091820 RD |
11960 | { "_uint","_size_t",0}, |
11961 | { "_uint","_unsigned_int",0}, | |
11962 | { "_uint","_int",0}, | |
11963 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11964 | { "_wxChar","_char",0}, |
f6bcfd97 | 11965 | { "_char","_wxChar",0}, |
f6bcfd97 | 11966 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
059a841c | 11967 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 11968 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
11969 | { "_EBool","_wxPrintQuality",0}, |
11970 | { "_EBool","_signed_int",0}, | |
11971 | { "_EBool","_int",0}, | |
11972 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 11973 | { "_unsigned_long","_long",0}, |
059a841c | 11974 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 11975 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
11976 | { "_signed_int","_wxPrintQuality",0}, |
11977 | { "_signed_int","_EBool",0}, | |
11978 | { "_signed_int","_wxWindowID",0}, | |
11979 | { "_signed_int","_int",0}, | |
2d091820 | 11980 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
2d091820 RD |
11981 | { "_WXTYPE","_short",0}, |
11982 | { "_WXTYPE","_signed_short",0}, | |
11983 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
11984 | { "_unsigned_short","_WXTYPE",0}, |
11985 | { "_unsigned_short","_short",0}, | |
9df61a29 | 11986 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9df61a29 | 11987 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9df61a29 | 11988 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9df61a29 | 11989 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9df61a29 | 11990 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9df61a29 | 11991 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9df61a29 | 11992 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9df61a29 | 11993 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9df61a29 | 11994 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9df61a29 | 11995 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9df61a29 | 11996 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9df61a29 | 11997 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9df61a29 | 11998 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9df61a29 | 11999 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9df61a29 | 12000 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9df61a29 | 12001 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9df61a29 | 12002 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9df61a29 | 12003 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9df61a29 | 12004 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9df61a29 | 12005 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
65191ae8 | 12006 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9df61a29 | 12007 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
2d091820 RD |
12008 | { "_signed_short","_WXTYPE",0}, |
12009 | { "_signed_short","_short",0}, | |
2d091820 | 12010 | { "_unsigned_char","_byte",0}, |
7a446686 | 12011 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 12012 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
2d091820 | 12013 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
2d091820 | 12014 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
2d091820 | 12015 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
2d091820 | 12016 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
2d091820 | 12017 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
2d091820 | 12018 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
2d091820 | 12019 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
2d091820 | 12020 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
2d091820 | 12021 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
2d091820 | 12022 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
2d091820 | 12023 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
2d091820 | 12024 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
2d091820 | 12025 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
2d091820 | 12026 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
2d091820 | 12027 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
2d091820 | 12028 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
2d091820 | 12029 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
2d091820 | 12030 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
65191ae8 | 12031 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
4120ef2b | 12032 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 12033 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12034 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
12035 | { "_unsigned_int","_size_t",0}, |
12036 | { "_unsigned_int","_uint",0}, | |
12037 | { "_unsigned_int","_wxWindowID",0}, | |
12038 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
12039 | { "_short","_WXTYPE",0}, |
12040 | { "_short","_unsigned_short",0}, | |
12041 | { "_short","_signed_short",0}, | |
65191ae8 | 12042 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
65191ae8 | 12043 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, |
65191ae8 | 12044 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, |
4120ef2b | 12045 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 12046 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12047 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
12048 | { "_wxWindowID","_size_t",0}, |
12049 | { "_wxWindowID","_EBool",0}, | |
12050 | { "_wxWindowID","_uint",0}, | |
12051 | { "_wxWindowID","_int",0}, | |
12052 | { "_wxWindowID","_signed_int",0}, | |
12053 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 12054 | { "_int","_wxCoord",0}, |
2d091820 | 12055 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12056 | { "_int","_time_t",0}, |
2d091820 RD |
12057 | { "_int","_size_t",0}, |
12058 | { "_int","_EBool",0}, | |
12059 | { "_int","_uint",0}, | |
12060 | { "_int","_wxWindowID",0}, | |
12061 | { "_int","_unsigned_int",0}, | |
12062 | { "_int","_signed_int",0}, | |
c368d904 RD |
12063 | { "_time_t","_wxCoord",0}, |
12064 | { "_time_t","_wxPrintQuality",0}, | |
12065 | { "_time_t","_unsigned_int",0}, | |
12066 | { "_time_t","_int",0}, | |
12067 | { "_time_t","_wxWindowID",0}, | |
12068 | { "_time_t","_uint",0}, | |
12069 | { "_time_t","_size_t",0}, | |
2d091820 | 12070 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
4120ef2b RD |
12071 | { "_wxCoord","_int",0}, |
12072 | { "_wxCoord","_signed_int",0}, | |
12073 | { "_wxCoord","_unsigned_int",0}, | |
12074 | { "_wxCoord","_wxWindowID",0}, | |
12075 | { "_wxCoord","_uint",0}, | |
12076 | { "_wxCoord","_EBool",0}, | |
12077 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12078 | { "_wxCoord","_time_t",0}, |
4120ef2b | 12079 | { "_wxCoord","_wxPrintQuality",0}, |
7a446686 | 12080 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 12081 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
2d091820 | 12082 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
2d091820 | 12083 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
2d091820 | 12084 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
2d091820 | 12085 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
2d091820 | 12086 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
2d091820 | 12087 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
2d091820 | 12088 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
2d091820 | 12089 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
2d091820 | 12090 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
2d091820 | 12091 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
2d091820 | 12092 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
2d091820 | 12093 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
2d091820 | 12094 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
2d091820 | 12095 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
2d091820 | 12096 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
2d091820 | 12097 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
2d091820 | 12098 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
2d091820 | 12099 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
65191ae8 | 12100 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
2d091820 | 12101 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
7a446686 | 12102 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 12103 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
2d091820 | 12104 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
2d091820 | 12105 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
2d091820 | 12106 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
2d091820 | 12107 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
2d091820 | 12108 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
2d091820 | 12109 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
2d091820 | 12110 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
2d091820 | 12111 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
2d091820 | 12112 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
2d091820 | 12113 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
2d091820 | 12114 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
2d091820 | 12115 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
2d091820 | 12116 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
2d091820 | 12117 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
2d091820 | 12118 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
2d091820 | 12119 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
2d091820 | 12120 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
2d091820 | 12121 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
65191ae8 | 12122 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
2d091820 | 12123 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
2d091820 RD |
12124 | {0,0,0}}; |
12125 | ||
70551f47 RD |
12126 | static PyObject *SWIG_globals; |
12127 | #ifdef __cplusplus | |
12128 | extern "C" | |
12129 | #endif | |
2d091820 | 12130 | SWIGEXPORT(void) initcontrolsc() { |
70551f47 RD |
12131 | PyObject *m, *d; |
12132 | SWIG_globals = SWIG_newvarlink(); | |
12133 | m = Py_InitModule("controlsc", controlscMethods); | |
12134 | d = PyModule_GetDict(m); | |
37f6a977 RD |
12135 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12136 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
7a446686 | 12137 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
2d091820 RD |
12138 | { |
12139 | int i; | |
12140 | for (i = 0; _swig_mapping[i].n1; i++) | |
12141 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12142 | } | |
70551f47 | 12143 | } |