]>
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 | |
b67a9327 RD |
22 | #include "Python.h" |
23 | ||
70551f47 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
2d091820 | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a _export |
70551f47 | 33 | # else |
3bcd5e1c | 34 | # define SWIGEXPORT(a) a |
70551f47 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
3bcd5e1c | 38 | # define SWIGEXPORT(a) a |
70551f47 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
70551f47 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
70551f47 RD |
53 | #define SWIG_init initcontrolsc |
54 | ||
55 | #define SWIG_name "controlsc" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include <wx/slider.h> | |
62bd0874 | 59 | #include <wx/spinbutt.h> |
f6bcfd97 | 60 | #include <wx/spinctrl.h> |
ab9bc19b | 61 | #include <wx/dynarray.h> |
8bf5d46e | 62 | #include <wx/statline.h> |
7a446686 | 63 | #include <wx/tglbtn.h> |
70551f47 RD |
64 | |
65 | #ifdef __WXMSW__ | |
b26e2dc4 RD |
66 | #if wxUSE_OWNER_DRAWN |
67 | #include <wx/checklst.h> | |
68 | #endif | |
70551f47 RD |
69 | #endif |
70 | ||
c95e68d8 RD |
71 | #ifdef __WXGTK__ |
72 | #include <wx/checklst.h> | |
73 | #endif | |
74 | ||
d24a34bb | 75 | |
70551f47 RD |
76 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
77 | PyObject* o2; | |
78 | PyObject* o3; | |
79 | ||
3bcd5e1c | 80 | if (!target) { |
70551f47 | 81 | target = o; |
3bcd5e1c | 82 | } else if (target == Py_None) { |
70551f47 RD |
83 | Py_DECREF(Py_None); |
84 | target = o; | |
3bcd5e1c | 85 | } else { |
70551f47 RD |
86 | if (!PyTuple_Check(target)) { |
87 | o2 = target; | |
88 | target = PyTuple_New(1); | |
89 | PyTuple_SetItem(target, 0, o2); | |
90 | } | |
3bcd5e1c RD |
91 | o3 = PyTuple_New(1); |
92 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
93 | |
94 | o2 = target; | |
3bcd5e1c RD |
95 | target = PySequence_Concat(o2, o3); |
96 | Py_DECREF(o2); | |
70551f47 RD |
97 | Py_DECREF(o3); |
98 | } | |
99 | return target; | |
100 | } | |
9a74fcaf RD |
101 | |
102 | //#define DECLARE_DEF_STRING(name) static wxString* wxPy##name | |
103 | ||
104 | // Put some wx default wxChar* values into wxStrings. | |
105 | DECLARE_DEF_STRING(ControlNameStr); | |
106 | DECLARE_DEF_STRING(ButtonNameStr); | |
107 | DECLARE_DEF_STRING(CheckBoxNameStr); | |
108 | DECLARE_DEF_STRING(ChoiceNameStr); | |
109 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
110 | DECLARE_DEF_STRING(GaugeNameStr); | |
111 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
112 | DECLARE_DEF_STRING(StaticTextNameStr); | |
113 | DECLARE_DEF_STRING(ListBoxNameStr); | |
114 | DECLARE_DEF_STRING(TextCtrlNameStr); | |
115 | DECLARE_DEF_STRING(ScrollBarNameStr); | |
116 | DECLARE_DEF_STRING(SPIN_BUTTON_NAME); | |
117 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
118 | DECLARE_DEF_STRING(RadioBoxNameStr); | |
119 | DECLARE_DEF_STRING(RadioButtonNameStr); | |
120 | DECLARE_DEF_STRING(SliderNameStr); | |
121 | ||
122 | wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl"); | |
123 | DECLARE_DEF_STRING(SpinCtrlNameStr); | |
124 | ||
125 | static const wxString wxPyEmptyString(wxT("")); | |
2d091820 RD |
126 | #ifdef __cplusplus |
127 | extern "C" { | |
128 | #endif | |
37f6a977 RD |
129 | static int _wrap_wxDefaultValidator_set(PyObject *val) { |
130 | ||
131 | PyErr_SetString(PyExc_TypeError,"Variable wxDefaultValidator is read-only."); | |
132 | return 1; | |
133 | } | |
134 | ||
135 | static PyObject *_wrap_wxDefaultValidator_get() { | |
136 | PyObject * pyobj; | |
137 | char ptemp[128]; | |
138 | ||
139 | SWIG_MakePtr(ptemp,(char *) &wxDefaultValidator,"_wxValidator_p"); | |
140 | pyobj = PyString_FromString(ptemp); | |
141 | return pyobj; | |
142 | } | |
143 | ||
70551f47 RD |
144 | static void *SwigwxControlTowxWindow(void *ptr) { |
145 | wxControl *src; | |
146 | wxWindow *dest; | |
147 | src = (wxControl *) ptr; | |
148 | dest = (wxWindow *) src; | |
149 | return (void *) dest; | |
150 | } | |
151 | ||
152 | static void *SwigwxControlTowxEvtHandler(void *ptr) { | |
153 | wxControl *src; | |
154 | wxEvtHandler *dest; | |
155 | src = (wxControl *) ptr; | |
156 | dest = (wxEvtHandler *) src; | |
157 | return (void *) dest; | |
158 | } | |
159 | ||
9df61a29 RD |
160 | static void *SwigwxControlTowxObject(void *ptr) { |
161 | wxControl *src; | |
162 | wxObject *dest; | |
163 | src = (wxControl *) ptr; | |
164 | dest = (wxObject *) src; | |
165 | return (void *) dest; | |
166 | } | |
167 | ||
ab2208b5 | 168 | #define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
56f5d962 RD |
169 | static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
170 | PyObject * _resultobj; | |
171 | wxControl * _result; | |
ab2208b5 RD |
172 | wxWindow * _arg0; |
173 | wxWindowID _arg1; | |
b68dc582 RD |
174 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
175 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 176 | long _arg4 = (long ) 0; |
b68dc582 | 177 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 178 | wxString * _arg6 = (wxString *) &wxPyControlNameStr; |
56f5d962 | 179 | PyObject * _argo0 = 0; |
56f5d962 | 180 | wxPoint temp; |
ab2208b5 | 181 | PyObject * _obj2 = 0; |
56f5d962 | 182 | wxSize temp0; |
ab2208b5 RD |
183 | PyObject * _obj3 = 0; |
184 | PyObject * _argo5 = 0; | |
9a74fcaf | 185 | PyObject * _obj6 = 0; |
ab2208b5 RD |
186 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
187 | char _ptemp[128]; | |
56f5d962 RD |
188 | |
189 | self = self; | |
9a74fcaf | 190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOO:new_wxControl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
56f5d962 RD |
191 | return NULL; |
192 | if (_argo0) { | |
193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxControl. Expected _wxWindow_p."); | |
56f5d962 RD |
196 | return NULL; |
197 | } | |
198 | } | |
ab2208b5 | 199 | if (_obj2) |
56f5d962 | 200 | { |
ab2208b5 RD |
201 | _arg2 = &temp; |
202 | if (! wxPoint_helper(_obj2, &_arg2)) | |
56f5d962 RD |
203 | return NULL; |
204 | } | |
ab2208b5 | 205 | if (_obj3) |
56f5d962 | 206 | { |
ab2208b5 RD |
207 | _arg3 = &temp0; |
208 | if (! wxSize_helper(_obj3, &_arg3)) | |
56f5d962 RD |
209 | return NULL; |
210 | } | |
ab2208b5 | 211 | if (_argo5) { |
b67a9327 | 212 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
ab2208b5 | 213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxControl. Expected _wxValidator_p."); |
56f5d962 RD |
214 | return NULL; |
215 | } | |
216 | } | |
9a74fcaf RD |
217 | if (_obj6) |
218 | { | |
219 | _arg6 = wxString_in_helper(_obj6); | |
220 | if (_arg6 == NULL) | |
221 | return NULL; | |
222 | } | |
56f5d962 | 223 | { |
474c48f9 | 224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 225 | _result = (wxControl *)new_wxControl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
56f5d962 | 226 | |
474c48f9 | 227 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 228 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
229 | } if (_result) { |
230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
231 | _resultobj = Py_BuildValue("s",_ptemp); | |
232 | } else { | |
233 | Py_INCREF(Py_None); | |
234 | _resultobj = Py_None; | |
235 | } | |
9a74fcaf RD |
236 | { |
237 | if (_obj6) | |
238 | delete _arg6; | |
239 | } | |
56f5d962 RD |
240 | return _resultobj; |
241 | } | |
242 | ||
aa2a5b86 RD |
243 | #define new_wxPreControl() (new wxControl()) |
244 | static PyObject *_wrap_new_wxPreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
245 | PyObject * _resultobj; | |
246 | wxControl * _result; | |
247 | char *_kwnames[] = { NULL }; | |
248 | char _ptemp[128]; | |
249 | ||
250 | self = self; | |
251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreControl",_kwnames)) | |
252 | return NULL; | |
253 | { | |
474c48f9 | 254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 255 | _result = (wxControl *)new_wxPreControl(); |
aa2a5b86 | 256 | |
474c48f9 | 257 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
258 | if (PyErr_Occurred()) return NULL; |
259 | } if (_result) { | |
260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p"); | |
261 | _resultobj = Py_BuildValue("s",_ptemp); | |
262 | } else { | |
263 | Py_INCREF(Py_None); | |
264 | _resultobj = Py_None; | |
265 | } | |
266 | return _resultobj; | |
267 | } | |
268 | ||
269 | #define wxControl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
270 | static PyObject *_wrap_wxControl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
271 | PyObject * _resultobj; | |
272 | bool _result; | |
273 | wxControl * _arg0; | |
274 | wxWindow * _arg1; | |
275 | wxWindowID _arg2; | |
276 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
277 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
278 | long _arg5 = (long ) 0; | |
279 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 280 | wxString * _arg7 = (wxString *) &wxPyControlNameStr; |
aa2a5b86 RD |
281 | PyObject * _argo0 = 0; |
282 | PyObject * _argo1 = 0; | |
283 | wxPoint temp; | |
284 | PyObject * _obj3 = 0; | |
285 | wxSize temp0; | |
286 | PyObject * _obj4 = 0; | |
287 | PyObject * _argo6 = 0; | |
9a74fcaf | 288 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
289 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
290 | ||
291 | self = self; | |
9a74fcaf | 292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlOO:wxControl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
293 | return NULL; |
294 | if (_argo0) { | |
295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Create. Expected _wxControl_p."); | |
298 | return NULL; | |
299 | } | |
300 | } | |
301 | if (_argo1) { | |
302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Create. Expected _wxWindow_p."); | |
305 | return NULL; | |
306 | } | |
307 | } | |
308 | if (_obj3) | |
309 | { | |
310 | _arg3 = &temp; | |
311 | if (! wxPoint_helper(_obj3, &_arg3)) | |
312 | return NULL; | |
313 | } | |
314 | if (_obj4) | |
315 | { | |
316 | _arg4 = &temp0; | |
317 | if (! wxSize_helper(_obj4, &_arg4)) | |
318 | return NULL; | |
319 | } | |
320 | if (_argo6) { | |
b67a9327 | 321 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxControl_Create. Expected _wxValidator_p."); |
323 | return NULL; | |
324 | } | |
325 | } | |
9a74fcaf RD |
326 | if (_obj7) |
327 | { | |
328 | _arg7 = wxString_in_helper(_obj7); | |
329 | if (_arg7 == NULL) | |
330 | return NULL; | |
331 | } | |
aa2a5b86 | 332 | { |
474c48f9 | 333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 334 | _result = (bool )wxControl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 335 | |
474c48f9 | 336 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
337 | if (PyErr_Occurred()) return NULL; |
338 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
339 | { |
340 | if (_obj7) | |
341 | delete _arg7; | |
342 | } | |
aa2a5b86 RD |
343 | return _resultobj; |
344 | } | |
345 | ||
56f5d962 RD |
346 | #define wxControl_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) |
347 | static PyObject *_wrap_wxControl_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
348 | PyObject * _resultobj; | |
349 | wxControl * _arg0; | |
350 | wxCommandEvent * _arg1; | |
351 | PyObject * _argo0 = 0; | |
352 | PyObject * _argo1 = 0; | |
353 | char *_kwnames[] = { "self","event", NULL }; | |
354 | ||
355 | self = self; | |
356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_Command",_kwnames,&_argo0,&_argo1)) | |
357 | return NULL; | |
358 | if (_argo0) { | |
359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_Command. Expected _wxControl_p."); | |
362 | return NULL; | |
363 | } | |
364 | } | |
365 | if (_argo1) { | |
b67a9327 | 366 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCommandEvent_p")) { |
56f5d962 RD |
367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxControl_Command. Expected _wxCommandEvent_p."); |
368 | return NULL; | |
369 | } | |
370 | } | |
371 | { | |
474c48f9 | 372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 373 | wxControl_Command(_arg0,*_arg1); |
56f5d962 | 374 | |
474c48f9 | 375 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 376 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
377 | } Py_INCREF(Py_None); |
378 | _resultobj = Py_None; | |
379 | return _resultobj; | |
380 | } | |
381 | ||
70551f47 | 382 | #define wxControl_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 383 | static PyObject *_wrap_wxControl_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
384 | PyObject * _resultobj; |
385 | wxString * _result; | |
386 | wxControl * _arg0; | |
2d091820 | 387 | PyObject * _argo0 = 0; |
107e4716 | 388 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
389 | |
390 | self = self; | |
107e4716 | 391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControl_GetLabel",_kwnames,&_argo0)) |
70551f47 | 392 | return NULL; |
2d091820 RD |
393 | if (_argo0) { |
394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_GetLabel. Expected _wxControl_p."); |
397 | return NULL; | |
398 | } | |
399 | } | |
70551f47 | 400 | { |
474c48f9 | 401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 402 | _result = new wxString (wxControl_GetLabel(_arg0)); |
ab9bc19b | 403 | |
474c48f9 | 404 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 405 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 406 | }{ |
c8bc7bb8 | 407 | #if wxUSE_UNICODE |
b67a9327 | 408 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 409 | #else |
e02c03a4 | 410 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 411 | #endif |
70551f47 RD |
412 | } |
413 | { | |
414 | delete _result; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
419 | #define wxControl_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 420 | static PyObject *_wrap_wxControl_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
421 | PyObject * _resultobj; |
422 | wxControl * _arg0; | |
423 | wxString * _arg1; | |
2d091820 | 424 | PyObject * _argo0 = 0; |
70551f47 | 425 | PyObject * _obj1 = 0; |
107e4716 | 426 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
427 | |
428 | self = self; | |
107e4716 | 429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControl_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 430 | return NULL; |
2d091820 RD |
431 | if (_argo0) { |
432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControl_p")) { | |
70551f47 RD |
434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControl_SetLabel. Expected _wxControl_p."); |
435 | return NULL; | |
436 | } | |
437 | } | |
438 | { | |
c8bc7bb8 RD |
439 | _arg1 = wxString_in_helper(_obj1); |
440 | if (_arg1 == NULL) | |
70551f47 | 441 | return NULL; |
70551f47 | 442 | } |
ab9bc19b | 443 | { |
474c48f9 | 444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 445 | wxControl_SetLabel(_arg0,*_arg1); |
ab9bc19b | 446 | |
474c48f9 | 447 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 448 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 449 | } Py_INCREF(Py_None); |
70551f47 RD |
450 | _resultobj = Py_None; |
451 | { | |
452 | if (_obj1) | |
453 | delete _arg1; | |
454 | } | |
455 | return _resultobj; | |
456 | } | |
457 | ||
65191ae8 RD |
458 | static void *SwigwxControlWithItemsTowxControl(void *ptr) { |
459 | wxControlWithItems *src; | |
460 | wxControl *dest; | |
461 | src = (wxControlWithItems *) ptr; | |
462 | dest = (wxControl *) src; | |
463 | return (void *) dest; | |
464 | } | |
465 | ||
466 | static void *SwigwxControlWithItemsTowxWindow(void *ptr) { | |
467 | wxControlWithItems *src; | |
468 | wxWindow *dest; | |
469 | src = (wxControlWithItems *) ptr; | |
470 | dest = (wxWindow *) src; | |
471 | return (void *) dest; | |
472 | } | |
473 | ||
474 | static void *SwigwxControlWithItemsTowxEvtHandler(void *ptr) { | |
475 | wxControlWithItems *src; | |
476 | wxEvtHandler *dest; | |
477 | src = (wxControlWithItems *) ptr; | |
478 | dest = (wxEvtHandler *) src; | |
479 | return (void *) dest; | |
480 | } | |
481 | ||
482 | static void *SwigwxControlWithItemsTowxObject(void *ptr) { | |
483 | wxControlWithItems *src; | |
484 | wxObject *dest; | |
485 | src = (wxControlWithItems *) ptr; | |
486 | dest = (wxObject *) src; | |
487 | return (void *) dest; | |
488 | } | |
489 | ||
490 | #define wxControlWithItems_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
491 | static PyObject *_wrap_wxControlWithItems_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
492 | PyObject * _resultobj; | |
493 | wxControlWithItems * _arg0; | |
494 | int _arg1; | |
495 | PyObject * _argo0 = 0; | |
496 | char *_kwnames[] = { "self","n", NULL }; | |
497 | ||
498 | self = self; | |
499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Delete",_kwnames,&_argo0,&_arg1)) | |
500 | return NULL; | |
501 | if (_argo0) { | |
502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Delete. Expected _wxControlWithItems_p."); | |
505 | return NULL; | |
506 | } | |
507 | } | |
508 | { | |
474c48f9 | 509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 510 | wxControlWithItems_Delete(_arg0,_arg1); |
65191ae8 | 511 | |
474c48f9 | 512 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
513 | if (PyErr_Occurred()) return NULL; |
514 | } Py_INCREF(Py_None); | |
515 | _resultobj = Py_None; | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | #define wxControlWithItems_GetCount(_swigobj) (_swigobj->GetCount()) | |
520 | static PyObject *_wrap_wxControlWithItems_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | int _result; | |
523 | wxControlWithItems * _arg0; | |
524 | PyObject * _argo0 = 0; | |
525 | char *_kwnames[] = { "self", NULL }; | |
526 | ||
527 | self = self; | |
528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetCount",_kwnames,&_argo0)) | |
529 | return NULL; | |
530 | if (_argo0) { | |
531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetCount. Expected _wxControlWithItems_p."); | |
534 | return NULL; | |
535 | } | |
536 | } | |
537 | { | |
474c48f9 | 538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 539 | _result = (int )wxControlWithItems_GetCount(_arg0); |
65191ae8 | 540 | |
474c48f9 | 541 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
542 | if (PyErr_Occurred()) return NULL; |
543 | } _resultobj = Py_BuildValue("i",_result); | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxControlWithItems_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
548 | static PyObject *_wrap_wxControlWithItems_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxString * _result; | |
551 | wxControlWithItems * _arg0; | |
552 | int _arg1; | |
553 | PyObject * _argo0 = 0; | |
554 | char *_kwnames[] = { "self","n", NULL }; | |
555 | ||
556 | self = self; | |
557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetString",_kwnames,&_argo0,&_arg1)) | |
558 | return NULL; | |
559 | if (_argo0) { | |
560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetString. Expected _wxControlWithItems_p."); | |
563 | return NULL; | |
564 | } | |
565 | } | |
566 | { | |
474c48f9 | 567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 568 | _result = new wxString (wxControlWithItems_GetString(_arg0,_arg1)); |
65191ae8 | 569 | |
474c48f9 | 570 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
571 | if (PyErr_Occurred()) return NULL; |
572 | }{ | |
c8bc7bb8 | 573 | #if wxUSE_UNICODE |
b67a9327 | 574 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 575 | #else |
65191ae8 | 576 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 577 | #endif |
65191ae8 RD |
578 | } |
579 | { | |
580 | delete _result; | |
581 | } | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | #define wxControlWithItems_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
586 | static PyObject *_wrap_wxControlWithItems_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
587 | PyObject * _resultobj; | |
588 | wxControlWithItems * _arg0; | |
589 | int _arg1; | |
590 | wxString * _arg2; | |
591 | PyObject * _argo0 = 0; | |
592 | PyObject * _obj2 = 0; | |
593 | char *_kwnames[] = { "self","n","s", NULL }; | |
594 | ||
595 | self = self; | |
596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
597 | return NULL; | |
598 | if (_argo0) { | |
599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetString. Expected _wxControlWithItems_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | { | |
c8bc7bb8 RD |
606 | _arg2 = wxString_in_helper(_obj2); |
607 | if (_arg2 == NULL) | |
65191ae8 | 608 | return NULL; |
65191ae8 RD |
609 | } |
610 | { | |
474c48f9 | 611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 612 | wxControlWithItems_SetString(_arg0,_arg1,*_arg2); |
65191ae8 | 613 | |
474c48f9 | 614 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
615 | if (PyErr_Occurred()) return NULL; |
616 | } Py_INCREF(Py_None); | |
617 | _resultobj = Py_None; | |
618 | { | |
619 | if (_obj2) | |
620 | delete _arg2; | |
621 | } | |
622 | return _resultobj; | |
623 | } | |
624 | ||
625 | #define wxControlWithItems_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
626 | static PyObject *_wrap_wxControlWithItems_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
627 | PyObject * _resultobj; | |
628 | int _result; | |
629 | wxControlWithItems * _arg0; | |
630 | wxString * _arg1; | |
631 | PyObject * _argo0 = 0; | |
632 | PyObject * _obj1 = 0; | |
633 | char *_kwnames[] = { "self","s", NULL }; | |
634 | ||
635 | self = self; | |
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_FindString",_kwnames,&_argo0,&_obj1)) | |
637 | return NULL; | |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_FindString. Expected _wxControlWithItems_p."); | |
642 | return NULL; | |
643 | } | |
644 | } | |
645 | { | |
c8bc7bb8 RD |
646 | _arg1 = wxString_in_helper(_obj1); |
647 | if (_arg1 == NULL) | |
65191ae8 | 648 | return NULL; |
65191ae8 RD |
649 | } |
650 | { | |
474c48f9 | 651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 652 | _result = (int )wxControlWithItems_FindString(_arg0,*_arg1); |
65191ae8 | 653 | |
474c48f9 | 654 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
655 | if (PyErr_Occurred()) return NULL; |
656 | } _resultobj = Py_BuildValue("i",_result); | |
657 | { | |
658 | if (_obj1) | |
659 | delete _arg1; | |
660 | } | |
661 | return _resultobj; | |
662 | } | |
663 | ||
664 | #define wxControlWithItems_Select(_swigobj,_swigarg0) (_swigobj->Select(_swigarg0)) | |
665 | static PyObject *_wrap_wxControlWithItems_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
666 | PyObject * _resultobj; | |
667 | wxControlWithItems * _arg0; | |
668 | int _arg1; | |
669 | PyObject * _argo0 = 0; | |
670 | char *_kwnames[] = { "self","n", NULL }; | |
671 | ||
672 | self = self; | |
673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_Select",_kwnames,&_argo0,&_arg1)) | |
674 | return NULL; | |
675 | if (_argo0) { | |
676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Select. Expected _wxControlWithItems_p."); | |
679 | return NULL; | |
680 | } | |
681 | } | |
682 | { | |
474c48f9 | 683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 684 | wxControlWithItems_Select(_arg0,_arg1); |
65191ae8 | 685 | |
474c48f9 | 686 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
687 | if (PyErr_Occurred()) return NULL; |
688 | } Py_INCREF(Py_None); | |
689 | _resultobj = Py_None; | |
690 | return _resultobj; | |
691 | } | |
692 | ||
693 | #define wxControlWithItems_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
694 | static PyObject *_wrap_wxControlWithItems_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
695 | PyObject * _resultobj; | |
696 | int _result; | |
697 | wxControlWithItems * _arg0; | |
698 | PyObject * _argo0 = 0; | |
699 | char *_kwnames[] = { "self", NULL }; | |
700 | ||
701 | self = self; | |
702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetSelection",_kwnames,&_argo0)) | |
703 | return NULL; | |
704 | if (_argo0) { | |
705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetSelection. Expected _wxControlWithItems_p."); | |
708 | return NULL; | |
709 | } | |
710 | } | |
711 | { | |
474c48f9 | 712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 713 | _result = (int )wxControlWithItems_GetSelection(_arg0); |
65191ae8 | 714 | |
474c48f9 | 715 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
716 | if (PyErr_Occurred()) return NULL; |
717 | } _resultobj = Py_BuildValue("i",_result); | |
718 | return _resultobj; | |
719 | } | |
720 | ||
721 | #define wxControlWithItems_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
722 | static PyObject *_wrap_wxControlWithItems_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
723 | PyObject * _resultobj; | |
724 | wxString * _result; | |
725 | wxControlWithItems * _arg0; | |
726 | PyObject * _argo0 = 0; | |
727 | char *_kwnames[] = { "self", NULL }; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxControlWithItems_GetStringSelection",_kwnames,&_argo0)) | |
731 | return NULL; | |
732 | if (_argo0) { | |
733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetStringSelection. Expected _wxControlWithItems_p."); | |
736 | return NULL; | |
737 | } | |
738 | } | |
739 | { | |
474c48f9 | 740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 741 | _result = new wxString (wxControlWithItems_GetStringSelection(_arg0)); |
65191ae8 | 742 | |
474c48f9 | 743 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
744 | if (PyErr_Occurred()) return NULL; |
745 | }{ | |
c8bc7bb8 | 746 | #if wxUSE_UNICODE |
b67a9327 | 747 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 748 | #else |
65191ae8 | 749 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 750 | #endif |
65191ae8 RD |
751 | } |
752 | { | |
753 | delete _result; | |
754 | } | |
755 | return _resultobj; | |
756 | } | |
757 | ||
758 | static void wxControlWithItems_Append(wxControlWithItems *self,const wxString & item,PyObject * clientData) { | |
759 | if (clientData) { | |
760 | wxPyClientData* data = new wxPyClientData(clientData); | |
761 | self->Append(item, data); | |
762 | } else | |
763 | self->Append(item); | |
764 | } | |
765 | static PyObject *_wrap_wxControlWithItems_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
766 | PyObject * _resultobj; | |
767 | wxControlWithItems * _arg0; | |
768 | wxString * _arg1; | |
769 | PyObject * _arg2 = (PyObject *) NULL; | |
770 | PyObject * _argo0 = 0; | |
771 | PyObject * _obj1 = 0; | |
772 | PyObject * _obj2 = 0; | |
773 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
774 | ||
775 | self = self; | |
776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxControlWithItems_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
777 | return NULL; | |
778 | if (_argo0) { | |
779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_Append. Expected _wxControlWithItems_p."); | |
782 | return NULL; | |
783 | } | |
784 | } | |
785 | { | |
c8bc7bb8 RD |
786 | _arg1 = wxString_in_helper(_obj1); |
787 | if (_arg1 == NULL) | |
65191ae8 | 788 | return NULL; |
65191ae8 RD |
789 | } |
790 | if (_obj2) | |
791 | { | |
792 | _arg2 = _obj2; | |
793 | } | |
794 | { | |
474c48f9 | 795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 796 | wxControlWithItems_Append(_arg0,*_arg1,_arg2); |
65191ae8 | 797 | |
474c48f9 | 798 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
799 | if (PyErr_Occurred()) return NULL; |
800 | } Py_INCREF(Py_None); | |
801 | _resultobj = Py_None; | |
802 | { | |
803 | if (_obj1) | |
804 | delete _arg1; | |
805 | } | |
806 | return _resultobj; | |
807 | } | |
808 | ||
809 | static PyObject * wxControlWithItems_GetClientData(wxControlWithItems *self,int n) { | |
810 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
811 | if (data) { | |
812 | Py_INCREF(data->m_obj); | |
813 | return data->m_obj; | |
814 | } else { | |
815 | Py_INCREF(Py_None); | |
816 | return Py_None; | |
817 | } | |
818 | } | |
819 | static PyObject *_wrap_wxControlWithItems_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
820 | PyObject * _resultobj; | |
821 | PyObject * _result; | |
822 | wxControlWithItems * _arg0; | |
823 | int _arg1; | |
824 | PyObject * _argo0 = 0; | |
825 | char *_kwnames[] = { "self","n", NULL }; | |
826 | ||
827 | self = self; | |
828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxControlWithItems_GetClientData",_kwnames,&_argo0,&_arg1)) | |
829 | return NULL; | |
830 | if (_argo0) { | |
831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_GetClientData. Expected _wxControlWithItems_p."); | |
834 | return NULL; | |
835 | } | |
836 | } | |
837 | { | |
474c48f9 | 838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 839 | _result = (PyObject *)wxControlWithItems_GetClientData(_arg0,_arg1); |
65191ae8 | 840 | |
474c48f9 | 841 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
842 | if (PyErr_Occurred()) return NULL; |
843 | }{ | |
844 | _resultobj = _result; | |
845 | } | |
846 | return _resultobj; | |
847 | } | |
848 | ||
849 | static void wxControlWithItems_SetClientData(wxControlWithItems *self,int n,PyObject * clientData) { | |
850 | wxPyClientData* data = new wxPyClientData(clientData); | |
851 | self->SetClientObject(n, data); | |
852 | } | |
853 | static PyObject *_wrap_wxControlWithItems_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
854 | PyObject * _resultobj; | |
855 | wxControlWithItems * _arg0; | |
856 | int _arg1; | |
857 | PyObject * _arg2; | |
858 | PyObject * _argo0 = 0; | |
859 | PyObject * _obj2 = 0; | |
860 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
861 | ||
862 | self = self; | |
863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxControlWithItems_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
864 | return NULL; | |
865 | if (_argo0) { | |
866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_SetClientData. Expected _wxControlWithItems_p."); | |
869 | return NULL; | |
870 | } | |
871 | } | |
872 | { | |
873 | _arg2 = _obj2; | |
874 | } | |
875 | { | |
474c48f9 | 876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 877 | wxControlWithItems_SetClientData(_arg0,_arg1,_arg2); |
65191ae8 | 878 | |
474c48f9 | 879 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
880 | if (PyErr_Occurred()) return NULL; |
881 | } Py_INCREF(Py_None); | |
882 | _resultobj = Py_None; | |
883 | return _resultobj; | |
884 | } | |
885 | ||
85247b36 RD |
886 | #define wxControlWithItems_AppendItems(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
887 | static PyObject *_wrap_wxControlWithItems_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
888 | PyObject * _resultobj; | |
889 | wxControlWithItems * _arg0; | |
890 | wxArrayString * _arg1; | |
891 | PyObject * _argo0 = 0; | |
892 | PyObject * _obj1 = 0; | |
893 | char *_kwnames[] = { "self","strings", NULL }; | |
894 | ||
895 | self = self; | |
896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxControlWithItems_AppendItems",_kwnames,&_argo0,&_obj1)) | |
897 | return NULL; | |
898 | if (_argo0) { | |
899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxControlWithItems_p")) { | |
901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxControlWithItems_AppendItems. Expected _wxControlWithItems_p."); | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | { | |
906 | if (! PySequence_Check(_obj1)) { | |
907 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
908 | return NULL; | |
909 | } | |
910 | _arg1 = new wxArrayString; | |
911 | int i, len=PySequence_Length(_obj1); | |
912 | for (i=0; i<len; i++) { | |
913 | PyObject* item = PySequence_GetItem(_obj1, i); | |
c8bc7bb8 RD |
914 | #if wxUSE_UNICODE |
915 | PyObject* str = PyObject_Unicode(item); | |
c8bc7bb8 | 916 | #else |
85247b36 | 917 | PyObject* str = PyObject_Str(item); |
c8bc7bb8 | 918 | #endif |
b67a9327 | 919 | _arg1->Add(Py2wxString(str)); |
85247b36 RD |
920 | Py_DECREF(item); |
921 | Py_DECREF(str); | |
922 | } | |
923 | } | |
924 | { | |
925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 926 | wxControlWithItems_AppendItems(_arg0,*_arg1); |
85247b36 RD |
927 | |
928 | wxPyEndAllowThreads(__tstate); | |
929 | if (PyErr_Occurred()) return NULL; | |
930 | } Py_INCREF(Py_None); | |
931 | _resultobj = Py_None; | |
932 | { | |
933 | if (_obj1) | |
934 | delete _arg1; | |
935 | } | |
936 | return _resultobj; | |
937 | } | |
938 | ||
70551f47 RD |
939 | static void *SwigwxButtonTowxControl(void *ptr) { |
940 | wxButton *src; | |
941 | wxControl *dest; | |
942 | src = (wxButton *) ptr; | |
943 | dest = (wxControl *) src; | |
944 | return (void *) dest; | |
945 | } | |
946 | ||
947 | static void *SwigwxButtonTowxWindow(void *ptr) { | |
948 | wxButton *src; | |
949 | wxWindow *dest; | |
950 | src = (wxButton *) ptr; | |
951 | dest = (wxWindow *) src; | |
952 | return (void *) dest; | |
953 | } | |
954 | ||
955 | static void *SwigwxButtonTowxEvtHandler(void *ptr) { | |
956 | wxButton *src; | |
957 | wxEvtHandler *dest; | |
958 | src = (wxButton *) ptr; | |
959 | dest = (wxEvtHandler *) src; | |
960 | return (void *) dest; | |
961 | } | |
962 | ||
9df61a29 RD |
963 | static void *SwigwxButtonTowxObject(void *ptr) { |
964 | wxButton *src; | |
965 | wxObject *dest; | |
966 | src = (wxButton *) ptr; | |
967 | dest = (wxObject *) src; | |
968 | return (void *) dest; | |
969 | } | |
970 | ||
70551f47 | 971 | #define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 972 | static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
973 | PyObject * _resultobj; |
974 | wxButton * _result; | |
975 | wxWindow * _arg0; | |
976 | wxWindowID _arg1; | |
977 | wxString * _arg2; | |
b68dc582 RD |
978 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
979 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 980 | long _arg5 = (long ) 0; |
b68dc582 | 981 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 982 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
2d091820 | 983 | PyObject * _argo0 = 0; |
70551f47 | 984 | PyObject * _obj2 = 0; |
37f6a977 RD |
985 | wxPoint temp; |
986 | PyObject * _obj3 = 0; | |
987 | wxSize temp0; | |
988 | PyObject * _obj4 = 0; | |
2d091820 | 989 | PyObject * _argo6 = 0; |
9a74fcaf | 990 | PyObject * _obj7 = 0; |
107e4716 | 991 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
992 | char _ptemp[128]; |
993 | ||
994 | self = self; | |
9a74fcaf | 995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 996 | return NULL; |
2d091820 RD |
997 | if (_argo0) { |
998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxButton. Expected _wxWindow_p."); |
1001 | return NULL; | |
1002 | } | |
1003 | } | |
1004 | { | |
c8bc7bb8 RD |
1005 | _arg2 = wxString_in_helper(_obj2); |
1006 | if (_arg2 == NULL) | |
70551f47 | 1007 | return NULL; |
70551f47 | 1008 | } |
37f6a977 RD |
1009 | if (_obj3) |
1010 | { | |
1011 | _arg3 = &temp; | |
1012 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1013 | return NULL; |
37f6a977 RD |
1014 | } |
1015 | if (_obj4) | |
1016 | { | |
1017 | _arg4 = &temp0; | |
1018 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1019 | return NULL; |
37f6a977 | 1020 | } |
2d091820 | 1021 | if (_argo6) { |
b67a9327 | 1022 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
70551f47 RD |
1023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxButton. Expected _wxValidator_p."); |
1024 | return NULL; | |
1025 | } | |
1026 | } | |
9a74fcaf RD |
1027 | if (_obj7) |
1028 | { | |
1029 | _arg7 = wxString_in_helper(_obj7); | |
1030 | if (_arg7 == NULL) | |
1031 | return NULL; | |
1032 | } | |
ab9bc19b | 1033 | { |
474c48f9 | 1034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1035 | _result = (wxButton *)new_wxButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1036 | |
474c48f9 | 1037 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1038 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1039 | } if (_result) { |
1040 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1041 | _resultobj = Py_BuildValue("s",_ptemp); | |
1042 | } else { | |
1043 | Py_INCREF(Py_None); | |
1044 | _resultobj = Py_None; | |
1045 | } | |
70551f47 RD |
1046 | { |
1047 | if (_obj2) | |
1048 | delete _arg2; | |
9a74fcaf RD |
1049 | } |
1050 | { | |
1051 | if (_obj7) | |
1052 | delete _arg7; | |
70551f47 RD |
1053 | } |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
aa2a5b86 RD |
1057 | #define new_wxPreButton() (new wxButton()) |
1058 | static PyObject *_wrap_new_wxPreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1059 | PyObject * _resultobj; | |
1060 | wxButton * _result; | |
1061 | char *_kwnames[] = { NULL }; | |
1062 | char _ptemp[128]; | |
1063 | ||
1064 | self = self; | |
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreButton",_kwnames)) | |
1066 | return NULL; | |
1067 | { | |
474c48f9 | 1068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1069 | _result = (wxButton *)new_wxPreButton(); |
aa2a5b86 | 1070 | |
474c48f9 | 1071 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1072 | if (PyErr_Occurred()) return NULL; |
1073 | } if (_result) { | |
1074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
1075 | _resultobj = Py_BuildValue("s",_ptemp); | |
1076 | } else { | |
1077 | Py_INCREF(Py_None); | |
1078 | _resultobj = Py_None; | |
1079 | } | |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | #define wxButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1084 | static PyObject *_wrap_wxButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1085 | PyObject * _resultobj; | |
1086 | bool _result; | |
1087 | wxButton * _arg0; | |
1088 | wxWindow * _arg1; | |
1089 | wxWindowID _arg2; | |
1090 | wxString * _arg3; | |
1091 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1092 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1093 | long _arg6 = (long ) 0; | |
1094 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 1095 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
aa2a5b86 RD |
1096 | PyObject * _argo0 = 0; |
1097 | PyObject * _argo1 = 0; | |
1098 | PyObject * _obj3 = 0; | |
1099 | wxPoint temp; | |
1100 | PyObject * _obj4 = 0; | |
1101 | wxSize temp0; | |
1102 | PyObject * _obj5 = 0; | |
1103 | PyObject * _argo7 = 0; | |
9a74fcaf | 1104 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
1105 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
1106 | ||
1107 | self = self; | |
9a74fcaf | 1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
1109 | return NULL; |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_Create. Expected _wxButton_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | if (_argo1) { | |
1118 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1119 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxButton_Create. Expected _wxWindow_p."); | |
1121 | return NULL; | |
1122 | } | |
1123 | } | |
1124 | { | |
c8bc7bb8 RD |
1125 | _arg3 = wxString_in_helper(_obj3); |
1126 | if (_arg3 == NULL) | |
aa2a5b86 | 1127 | return NULL; |
aa2a5b86 RD |
1128 | } |
1129 | if (_obj4) | |
1130 | { | |
1131 | _arg4 = &temp; | |
1132 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1133 | return NULL; | |
1134 | } | |
1135 | if (_obj5) | |
1136 | { | |
1137 | _arg5 = &temp0; | |
1138 | if (! wxSize_helper(_obj5, &_arg5)) | |
1139 | return NULL; | |
1140 | } | |
1141 | if (_argo7) { | |
b67a9327 | 1142 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
1143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxButton_Create. Expected _wxValidator_p."); |
1144 | return NULL; | |
1145 | } | |
1146 | } | |
9a74fcaf RD |
1147 | if (_obj8) |
1148 | { | |
1149 | _arg8 = wxString_in_helper(_obj8); | |
1150 | if (_arg8 == NULL) | |
1151 | return NULL; | |
1152 | } | |
aa2a5b86 | 1153 | { |
474c48f9 | 1154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1155 | _result = (bool )wxButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 1156 | |
474c48f9 | 1157 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1158 | if (PyErr_Occurred()) return NULL; |
1159 | } _resultobj = Py_BuildValue("i",_result); | |
1160 | { | |
1161 | if (_obj3) | |
1162 | delete _arg3; | |
9a74fcaf RD |
1163 | } |
1164 | { | |
1165 | if (_obj8) | |
1166 | delete _arg8; | |
aa2a5b86 RD |
1167 | } |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
70551f47 | 1171 | #define wxButton_SetDefault(_swigobj) (_swigobj->SetDefault()) |
107e4716 | 1172 | static PyObject *_wrap_wxButton_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1173 | PyObject * _resultobj; |
1174 | wxButton * _arg0; | |
2d091820 | 1175 | PyObject * _argo0 = 0; |
107e4716 | 1176 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1177 | |
1178 | self = self; | |
107e4716 | 1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxButton_SetDefault",_kwnames,&_argo0)) |
70551f47 | 1180 | return NULL; |
2d091820 RD |
1181 | if (_argo0) { |
1182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
70551f47 RD |
1184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetDefault. Expected _wxButton_p."); |
1185 | return NULL; | |
1186 | } | |
1187 | } | |
ab9bc19b | 1188 | { |
474c48f9 | 1189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1190 | wxButton_SetDefault(_arg0); |
ab9bc19b | 1191 | |
474c48f9 | 1192 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1193 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1194 | } Py_INCREF(Py_None); |
70551f47 RD |
1195 | _resultobj = Py_None; |
1196 | return _resultobj; | |
1197 | } | |
1198 | ||
ab2208b5 RD |
1199 | #define wxButton_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
1200 | static PyObject *_wrap_wxButton_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1201 | PyObject * _resultobj; | |
1202 | wxButton * _arg0; | |
1203 | wxColour * _arg1; | |
1204 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1205 | wxColour temp; |
1206 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1207 | char *_kwnames[] = { "self","colour", NULL }; |
1208 | ||
1209 | self = self; | |
f6bcfd97 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1211 | return NULL; |
1212 | if (_argo0) { | |
1213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetBackgroundColour. Expected _wxButton_p."); | |
1216 | return NULL; | |
1217 | } | |
1218 | } | |
f6bcfd97 BP |
1219 | { |
1220 | _arg1 = &temp; | |
1221 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1222 | return NULL; |
f6bcfd97 | 1223 | } |
ab2208b5 | 1224 | { |
474c48f9 | 1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1226 | wxButton_SetBackgroundColour(_arg0,*_arg1); |
ab2208b5 | 1227 | |
474c48f9 | 1228 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1229 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1230 | } Py_INCREF(Py_None); |
1231 | _resultobj = Py_None; | |
1232 | return _resultobj; | |
1233 | } | |
1234 | ||
1235 | #define wxButton_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
1236 | static PyObject *_wrap_wxButton_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1237 | PyObject * _resultobj; | |
1238 | wxButton * _arg0; | |
1239 | wxColour * _arg1; | |
1240 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
1241 | wxColour temp; |
1242 | PyObject * _obj1 = 0; | |
ab2208b5 RD |
1243 | char *_kwnames[] = { "self","colour", NULL }; |
1244 | ||
1245 | self = self; | |
f6bcfd97 | 1246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxButton_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
ab2208b5 RD |
1247 | return NULL; |
1248 | if (_argo0) { | |
1249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxButton_p")) { | |
1251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxButton_SetForegroundColour. Expected _wxButton_p."); | |
1252 | return NULL; | |
1253 | } | |
1254 | } | |
f6bcfd97 BP |
1255 | { |
1256 | _arg1 = &temp; | |
1257 | if (! wxColour_helper(_obj1, &_arg1)) | |
ab2208b5 | 1258 | return NULL; |
f6bcfd97 | 1259 | } |
ab2208b5 | 1260 | { |
474c48f9 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | wxButton_SetForegroundColour(_arg0,*_arg1); |
ab2208b5 | 1263 | |
474c48f9 | 1264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1265 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1266 | } Py_INCREF(Py_None); |
1267 | _resultobj = Py_None; | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
aa2a5b86 RD |
1271 | static PyObject *_wrap_wxButton_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1272 | PyObject * _resultobj; | |
1273 | wxSize * _result; | |
1274 | char *_kwnames[] = { NULL }; | |
1275 | char _ptemp[128]; | |
1276 | ||
1277 | self = self; | |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxButton_GetDefaultSize",_kwnames)) | |
1279 | return NULL; | |
1280 | { | |
474c48f9 | 1281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1282 | _result = new wxSize (wxButton::GetDefaultSize()); |
aa2a5b86 | 1283 | |
474c48f9 | 1284 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1285 | if (PyErr_Occurred()) return NULL; |
1286 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1287 | _resultobj = Py_BuildValue("s",_ptemp); | |
1288 | return _resultobj; | |
1289 | } | |
1290 | ||
1291 | static void *SwigwxBitmapButtonTowxButton(void *ptr) { | |
1292 | wxBitmapButton *src; | |
1293 | wxButton *dest; | |
1294 | src = (wxBitmapButton *) ptr; | |
1295 | dest = (wxButton *) src; | |
1296 | return (void *) dest; | |
1297 | } | |
1298 | ||
1299 | static void *SwigwxBitmapButtonTowxControl(void *ptr) { | |
1300 | wxBitmapButton *src; | |
1301 | wxControl *dest; | |
1302 | src = (wxBitmapButton *) ptr; | |
1303 | dest = (wxControl *) src; | |
1304 | return (void *) dest; | |
1305 | } | |
1306 | ||
1307 | static void *SwigwxBitmapButtonTowxWindow(void *ptr) { | |
1308 | wxBitmapButton *src; | |
1309 | wxWindow *dest; | |
1310 | src = (wxBitmapButton *) ptr; | |
1311 | dest = (wxWindow *) src; | |
1312 | return (void *) dest; | |
1313 | } | |
1314 | ||
1315 | static void *SwigwxBitmapButtonTowxEvtHandler(void *ptr) { | |
1316 | wxBitmapButton *src; | |
1317 | wxEvtHandler *dest; | |
1318 | src = (wxBitmapButton *) ptr; | |
1319 | dest = (wxEvtHandler *) src; | |
1320 | return (void *) dest; | |
1321 | } | |
1322 | ||
1323 | static void *SwigwxBitmapButtonTowxObject(void *ptr) { | |
1324 | wxBitmapButton *src; | |
1325 | wxObject *dest; | |
1326 | src = (wxBitmapButton *) ptr; | |
1327 | dest = (wxObject *) src; | |
9df61a29 RD |
1328 | return (void *) dest; |
1329 | } | |
1330 | ||
70551f47 | 1331 | #define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1332 | static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1333 | PyObject * _resultobj; |
1334 | wxBitmapButton * _result; | |
1335 | wxWindow * _arg0; | |
1336 | wxWindowID _arg1; | |
1337 | wxBitmap * _arg2; | |
b68dc582 RD |
1338 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1339 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1340 | long _arg5 = (long ) wxBU_AUTODRAW; |
b68dc582 | 1341 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 1342 | wxString * _arg7 = (wxString *) &wxPyButtonNameStr; |
2d091820 RD |
1343 | PyObject * _argo0 = 0; |
1344 | PyObject * _argo2 = 0; | |
37f6a977 RD |
1345 | wxPoint temp; |
1346 | PyObject * _obj3 = 0; | |
1347 | wxSize temp0; | |
1348 | PyObject * _obj4 = 0; | |
2d091820 | 1349 | PyObject * _argo6 = 0; |
9a74fcaf | 1350 | PyObject * _obj7 = 0; |
107e4716 | 1351 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","validator","name", NULL }; |
70551f47 RD |
1352 | char _ptemp[128]; |
1353 | ||
1354 | self = self; | |
9a74fcaf | 1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxBitmapButton",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 1356 | return NULL; |
2d091820 RD |
1357 | if (_argo0) { |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapButton. Expected _wxWindow_p."); |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
2d091820 | 1364 | if (_argo2) { |
b67a9327 | 1365 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
70551f47 RD |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxBitmapButton. Expected _wxBitmap_p."); |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
37f6a977 RD |
1370 | if (_obj3) |
1371 | { | |
1372 | _arg3 = &temp; | |
1373 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1374 | return NULL; |
37f6a977 RD |
1375 | } |
1376 | if (_obj4) | |
1377 | { | |
1378 | _arg4 = &temp0; | |
1379 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1380 | return NULL; |
37f6a977 | 1381 | } |
2d091820 | 1382 | if (_argo6) { |
b67a9327 | 1383 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
70551f47 RD |
1384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxBitmapButton. Expected _wxValidator_p."); |
1385 | return NULL; | |
1386 | } | |
1387 | } | |
9a74fcaf RD |
1388 | if (_obj7) |
1389 | { | |
1390 | _arg7 = wxString_in_helper(_obj7); | |
1391 | if (_arg7 == NULL) | |
1392 | return NULL; | |
1393 | } | |
ab9bc19b | 1394 | { |
474c48f9 | 1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1396 | _result = (wxBitmapButton *)new_wxBitmapButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1397 | |
474c48f9 | 1398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1400 | } if (_result) { |
1401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1402 | _resultobj = Py_BuildValue("s",_ptemp); | |
1403 | } else { | |
1404 | Py_INCREF(Py_None); | |
1405 | _resultobj = Py_None; | |
1406 | } | |
9a74fcaf RD |
1407 | { |
1408 | if (_obj7) | |
1409 | delete _arg7; | |
1410 | } | |
70551f47 RD |
1411 | return _resultobj; |
1412 | } | |
1413 | ||
aa2a5b86 RD |
1414 | #define new_wxPreBitmapButton() (new wxBitmapButton()) |
1415 | static PyObject *_wrap_new_wxPreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1416 | PyObject * _resultobj; | |
1417 | wxBitmapButton * _result; | |
1418 | char *_kwnames[] = { NULL }; | |
1419 | char _ptemp[128]; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreBitmapButton",_kwnames)) | |
1423 | return NULL; | |
1424 | { | |
474c48f9 | 1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1426 | _result = (wxBitmapButton *)new_wxPreBitmapButton(); |
aa2a5b86 | 1427 | |
474c48f9 | 1428 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1429 | if (PyErr_Occurred()) return NULL; |
1430 | } if (_result) { | |
1431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapButton_p"); | |
1432 | _resultobj = Py_BuildValue("s",_ptemp); | |
1433 | } else { | |
1434 | Py_INCREF(Py_None); | |
1435 | _resultobj = Py_None; | |
1436 | } | |
1437 | return _resultobj; | |
1438 | } | |
1439 | ||
1440 | #define wxBitmapButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
1441 | static PyObject *_wrap_wxBitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1442 | PyObject * _resultobj; | |
1443 | bool _result; | |
1444 | wxBitmapButton * _arg0; | |
1445 | wxWindow * _arg1; | |
1446 | wxWindowID _arg2; | |
1447 | wxBitmap * _arg3; | |
1448 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1449 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1450 | long _arg6 = (long ) wxBU_AUTODRAW; | |
1451 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 1452 | wxString * _arg8 = (wxString *) &wxPyButtonNameStr; |
aa2a5b86 RD |
1453 | PyObject * _argo0 = 0; |
1454 | PyObject * _argo1 = 0; | |
1455 | PyObject * _argo3 = 0; | |
1456 | wxPoint temp; | |
1457 | PyObject * _obj4 = 0; | |
1458 | wxSize temp0; | |
1459 | PyObject * _obj5 = 0; | |
1460 | PyObject * _argo7 = 0; | |
9a74fcaf | 1461 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
1462 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","validator","name", NULL }; |
1463 | ||
1464 | self = self; | |
9a74fcaf | 1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxBitmapButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
1466 | return NULL; |
1467 | if (_argo0) { | |
1468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_Create. Expected _wxBitmapButton_p."); | |
1471 | return NULL; | |
1472 | } | |
1473 | } | |
1474 | if (_argo1) { | |
1475 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_Create. Expected _wxWindow_p."); | |
1478 | return NULL; | |
1479 | } | |
1480 | } | |
1481 | if (_argo3) { | |
b67a9327 | 1482 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { |
aa2a5b86 RD |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmapButton_Create. Expected _wxBitmap_p."); |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | if (_obj4) | |
1488 | { | |
1489 | _arg4 = &temp; | |
1490 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1491 | return NULL; | |
1492 | } | |
1493 | if (_obj5) | |
1494 | { | |
1495 | _arg5 = &temp0; | |
1496 | if (! wxSize_helper(_obj5, &_arg5)) | |
1497 | return NULL; | |
1498 | } | |
1499 | if (_argo7) { | |
b67a9327 | 1500 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
1501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxBitmapButton_Create. Expected _wxValidator_p."); |
1502 | return NULL; | |
1503 | } | |
1504 | } | |
9a74fcaf RD |
1505 | if (_obj8) |
1506 | { | |
1507 | _arg8 = wxString_in_helper(_obj8); | |
1508 | if (_arg8 == NULL) | |
1509 | return NULL; | |
1510 | } | |
aa2a5b86 | 1511 | { |
474c48f9 | 1512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1513 | _result = (bool )wxBitmapButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 1514 | |
474c48f9 | 1515 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1516 | if (PyErr_Occurred()) return NULL; |
1517 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
1518 | { |
1519 | if (_obj8) | |
1520 | delete _arg8; | |
1521 | } | |
aa2a5b86 RD |
1522 | return _resultobj; |
1523 | } | |
1524 | ||
70551f47 | 1525 | #define wxBitmapButton_GetBitmapLabel(_swigobj) (_swigobj->GetBitmapLabel()) |
107e4716 | 1526 | static PyObject *_wrap_wxBitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1527 | PyObject * _resultobj; |
1528 | wxBitmap * _result; | |
1529 | wxBitmapButton * _arg0; | |
2d091820 | 1530 | PyObject * _argo0 = 0; |
107e4716 | 1531 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1532 | char _ptemp[128]; |
1533 | ||
1534 | self = self; | |
107e4716 | 1535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapLabel",_kwnames,&_argo0)) |
70551f47 | 1536 | return NULL; |
2d091820 RD |
1537 | if (_argo0) { |
1538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapLabel. Expected _wxBitmapButton_p."); |
1541 | return NULL; | |
1542 | } | |
1543 | } | |
ab9bc19b | 1544 | { |
474c48f9 | 1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1546 | _result = new wxBitmap (wxBitmapButton_GetBitmapLabel(_arg0)); |
ab9bc19b | 1547 | |
474c48f9 | 1548 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1549 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1550 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1551 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
1552 | return _resultobj; |
1553 | } | |
1554 | ||
c95e68d8 | 1555 | #define wxBitmapButton_GetBitmapDisabled(_swigobj) (_swigobj->GetBitmapDisabled()) |
107e4716 | 1556 | static PyObject *_wrap_wxBitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1557 | PyObject * _resultobj; |
1558 | wxBitmap * _result; | |
1559 | wxBitmapButton * _arg0; | |
2d091820 | 1560 | PyObject * _argo0 = 0; |
107e4716 | 1561 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1562 | char _ptemp[128]; |
1563 | ||
1564 | self = self; | |
107e4716 | 1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapDisabled",_kwnames,&_argo0)) |
c95e68d8 | 1566 | return NULL; |
2d091820 RD |
1567 | if (_argo0) { |
1568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapDisabled. Expected _wxBitmapButton_p."); |
1571 | return NULL; | |
1572 | } | |
1573 | } | |
ab9bc19b | 1574 | { |
474c48f9 | 1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1576 | _result = new wxBitmap (wxBitmapButton_GetBitmapDisabled(_arg0)); |
ab9bc19b | 1577 | |
474c48f9 | 1578 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1579 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1580 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1581 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1582 | return _resultobj; |
1583 | } | |
1584 | ||
1585 | #define wxBitmapButton_GetBitmapFocus(_swigobj) (_swigobj->GetBitmapFocus()) | |
107e4716 | 1586 | static PyObject *_wrap_wxBitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1587 | PyObject * _resultobj; |
1588 | wxBitmap * _result; | |
1589 | wxBitmapButton * _arg0; | |
2d091820 | 1590 | PyObject * _argo0 = 0; |
107e4716 | 1591 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1592 | char _ptemp[128]; |
1593 | ||
1594 | self = self; | |
107e4716 | 1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapFocus",_kwnames,&_argo0)) |
c95e68d8 | 1596 | return NULL; |
2d091820 RD |
1597 | if (_argo0) { |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapFocus. Expected _wxBitmapButton_p."); |
1601 | return NULL; | |
1602 | } | |
1603 | } | |
ab9bc19b | 1604 | { |
474c48f9 | 1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1606 | _result = new wxBitmap (wxBitmapButton_GetBitmapFocus(_arg0)); |
ab9bc19b | 1607 | |
474c48f9 | 1608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1609 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1610 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1611 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1612 | return _resultobj; |
1613 | } | |
1614 | ||
1615 | #define wxBitmapButton_GetBitmapSelected(_swigobj) (_swigobj->GetBitmapSelected()) | |
107e4716 | 1616 | static PyObject *_wrap_wxBitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1617 | PyObject * _resultobj; |
1618 | wxBitmap * _result; | |
1619 | wxBitmapButton * _arg0; | |
2d091820 | 1620 | PyObject * _argo0 = 0; |
107e4716 | 1621 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1622 | char _ptemp[128]; |
1623 | ||
1624 | self = self; | |
107e4716 | 1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetBitmapSelected",_kwnames,&_argo0)) |
c95e68d8 | 1626 | return NULL; |
2d091820 RD |
1627 | if (_argo0) { |
1628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetBitmapSelected. Expected _wxBitmapButton_p."); |
1631 | return NULL; | |
1632 | } | |
1633 | } | |
ab9bc19b | 1634 | { |
474c48f9 | 1635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1636 | _result = new wxBitmap (wxBitmapButton_GetBitmapSelected(_arg0)); |
ab9bc19b | 1637 | |
474c48f9 | 1638 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1639 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1641 | _resultobj = Py_BuildValue("s",_ptemp); | |
c95e68d8 RD |
1642 | return _resultobj; |
1643 | } | |
1644 | ||
1645 | #define wxBitmapButton_SetBitmapDisabled(_swigobj,_swigarg0) (_swigobj->SetBitmapDisabled(_swigarg0)) | |
107e4716 | 1646 | static PyObject *_wrap_wxBitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1647 | PyObject * _resultobj; |
1648 | wxBitmapButton * _arg0; | |
1649 | wxBitmap * _arg1; | |
2d091820 RD |
1650 | PyObject * _argo0 = 0; |
1651 | PyObject * _argo1 = 0; | |
107e4716 | 1652 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1653 | |
1654 | self = self; | |
107e4716 | 1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapDisabled",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1656 | return NULL; |
2d091820 RD |
1657 | if (_argo0) { |
1658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmapButton_p."); |
1661 | return NULL; | |
1662 | } | |
1663 | } | |
2d091820 | 1664 | if (_argo1) { |
b67a9327 | 1665 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
c95e68d8 RD |
1666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapDisabled. Expected _wxBitmap_p."); |
1667 | return NULL; | |
1668 | } | |
1669 | } | |
ab9bc19b | 1670 | { |
474c48f9 | 1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1672 | wxBitmapButton_SetBitmapDisabled(_arg0,*_arg1); |
ab9bc19b | 1673 | |
474c48f9 | 1674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1675 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1676 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1677 | _resultobj = Py_None; |
1678 | return _resultobj; | |
1679 | } | |
1680 | ||
1681 | #define wxBitmapButton_SetBitmapFocus(_swigobj,_swigarg0) (_swigobj->SetBitmapFocus(_swigarg0)) | |
107e4716 | 1682 | static PyObject *_wrap_wxBitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1683 | PyObject * _resultobj; |
1684 | wxBitmapButton * _arg0; | |
1685 | wxBitmap * _arg1; | |
2d091820 RD |
1686 | PyObject * _argo0 = 0; |
1687 | PyObject * _argo1 = 0; | |
107e4716 | 1688 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1689 | |
1690 | self = self; | |
107e4716 | 1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapFocus",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1692 | return NULL; |
2d091820 RD |
1693 | if (_argo0) { |
1694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmapButton_p."); |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
2d091820 | 1700 | if (_argo1) { |
b67a9327 | 1701 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
c95e68d8 RD |
1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapFocus. Expected _wxBitmap_p."); |
1703 | return NULL; | |
1704 | } | |
1705 | } | |
ab9bc19b | 1706 | { |
474c48f9 | 1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1708 | wxBitmapButton_SetBitmapFocus(_arg0,*_arg1); |
ab9bc19b | 1709 | |
474c48f9 | 1710 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1711 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1712 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1713 | _resultobj = Py_None; |
1714 | return _resultobj; | |
1715 | } | |
1716 | ||
1717 | #define wxBitmapButton_SetBitmapSelected(_swigobj,_swigarg0) (_swigobj->SetBitmapSelected(_swigarg0)) | |
107e4716 | 1718 | static PyObject *_wrap_wxBitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1719 | PyObject * _resultobj; |
1720 | wxBitmapButton * _arg0; | |
1721 | wxBitmap * _arg1; | |
2d091820 RD |
1722 | PyObject * _argo0 = 0; |
1723 | PyObject * _argo1 = 0; | |
107e4716 | 1724 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
1725 | |
1726 | self = self; | |
107e4716 | 1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapSelected",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 1728 | return NULL; |
2d091820 RD |
1729 | if (_argo0) { |
1730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
c95e68d8 RD |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmapButton_p."); |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
2d091820 | 1736 | if (_argo1) { |
b67a9327 | 1737 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
c95e68d8 RD |
1738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapSelected. Expected _wxBitmap_p."); |
1739 | return NULL; | |
1740 | } | |
1741 | } | |
ab9bc19b | 1742 | { |
474c48f9 | 1743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1744 | wxBitmapButton_SetBitmapSelected(_arg0,*_arg1); |
ab9bc19b | 1745 | |
474c48f9 | 1746 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1747 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1748 | } Py_INCREF(Py_None); |
c95e68d8 RD |
1749 | _resultobj = Py_None; |
1750 | return _resultobj; | |
1751 | } | |
1752 | ||
70551f47 | 1753 | #define wxBitmapButton_SetBitmapLabel(_swigobj,_swigarg0) (_swigobj->SetBitmapLabel(_swigarg0)) |
107e4716 | 1754 | static PyObject *_wrap_wxBitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1755 | PyObject * _resultobj; |
1756 | wxBitmapButton * _arg0; | |
1757 | wxBitmap * _arg1; | |
2d091820 RD |
1758 | PyObject * _argo0 = 0; |
1759 | PyObject * _argo1 = 0; | |
107e4716 | 1760 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
1761 | |
1762 | self = self; | |
107e4716 | 1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapButton_SetBitmapLabel",_kwnames,&_argo0,&_argo1)) |
70551f47 | 1764 | return NULL; |
2d091820 RD |
1765 | if (_argo0) { |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
70551f47 RD |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmapButton_p."); |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
2d091820 | 1772 | if (_argo1) { |
b67a9327 | 1773 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
70551f47 RD |
1774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapButton_SetBitmapLabel. Expected _wxBitmap_p."); |
1775 | return NULL; | |
1776 | } | |
1777 | } | |
ab9bc19b | 1778 | { |
474c48f9 | 1779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1780 | wxBitmapButton_SetBitmapLabel(_arg0,*_arg1); |
ab9bc19b | 1781 | |
474c48f9 | 1782 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1783 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1784 | } Py_INCREF(Py_None); |
70551f47 RD |
1785 | _resultobj = Py_None; |
1786 | return _resultobj; | |
1787 | } | |
1788 | ||
f6bcfd97 BP |
1789 | #define wxBitmapButton_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
1790 | static PyObject *_wrap_wxBitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject * _resultobj; | |
1792 | wxBitmapButton * _arg0; | |
1793 | int _arg1; | |
1794 | int _arg2; | |
1795 | PyObject * _argo0 = 0; | |
1796 | char *_kwnames[] = { "self","x","y", NULL }; | |
1797 | ||
1798 | self = self; | |
1799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxBitmapButton_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1800 | return NULL; | |
1801 | if (_argo0) { | |
1802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_SetMargins. Expected _wxBitmapButton_p."); | |
1805 | return NULL; | |
1806 | } | |
1807 | } | |
1808 | { | |
474c48f9 | 1809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1810 | wxBitmapButton_SetMargins(_arg0,_arg1,_arg2); |
f6bcfd97 | 1811 | |
474c48f9 | 1812 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1813 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1814 | } Py_INCREF(Py_None); |
1815 | _resultobj = Py_None; | |
1816 | return _resultobj; | |
1817 | } | |
1818 | ||
1819 | #define wxBitmapButton_GetMarginX(_swigobj) (_swigobj->GetMarginX()) | |
1820 | static PyObject *_wrap_wxBitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject * _resultobj; | |
1822 | int _result; | |
1823 | wxBitmapButton * _arg0; | |
1824 | PyObject * _argo0 = 0; | |
1825 | char *_kwnames[] = { "self", NULL }; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginX",_kwnames,&_argo0)) | |
1829 | return NULL; | |
1830 | if (_argo0) { | |
1831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginX. Expected _wxBitmapButton_p."); | |
1834 | return NULL; | |
1835 | } | |
1836 | } | |
1837 | { | |
474c48f9 | 1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1839 | _result = (int )wxBitmapButton_GetMarginX(_arg0); |
f6bcfd97 | 1840 | |
474c48f9 | 1841 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1842 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1843 | } _resultobj = Py_BuildValue("i",_result); |
1844 | return _resultobj; | |
1845 | } | |
1846 | ||
1847 | #define wxBitmapButton_GetMarginY(_swigobj) (_swigobj->GetMarginY()) | |
1848 | static PyObject *_wrap_wxBitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject * _resultobj; | |
1850 | int _result; | |
1851 | wxBitmapButton * _arg0; | |
1852 | PyObject * _argo0 = 0; | |
1853 | char *_kwnames[] = { "self", NULL }; | |
1854 | ||
1855 | self = self; | |
1856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapButton_GetMarginY",_kwnames,&_argo0)) | |
1857 | return NULL; | |
1858 | if (_argo0) { | |
1859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapButton_p")) { | |
1861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapButton_GetMarginY. Expected _wxBitmapButton_p."); | |
1862 | return NULL; | |
1863 | } | |
1864 | } | |
1865 | { | |
474c48f9 | 1866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1867 | _result = (int )wxBitmapButton_GetMarginY(_arg0); |
f6bcfd97 | 1868 | |
474c48f9 | 1869 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1870 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1871 | } _resultobj = Py_BuildValue("i",_result); |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
70551f47 RD |
1875 | static void *SwigwxCheckBoxTowxControl(void *ptr) { |
1876 | wxCheckBox *src; | |
1877 | wxControl *dest; | |
1878 | src = (wxCheckBox *) ptr; | |
1879 | dest = (wxControl *) src; | |
1880 | return (void *) dest; | |
1881 | } | |
1882 | ||
1883 | static void *SwigwxCheckBoxTowxWindow(void *ptr) { | |
1884 | wxCheckBox *src; | |
1885 | wxWindow *dest; | |
1886 | src = (wxCheckBox *) ptr; | |
1887 | dest = (wxWindow *) src; | |
1888 | return (void *) dest; | |
1889 | } | |
1890 | ||
1891 | static void *SwigwxCheckBoxTowxEvtHandler(void *ptr) { | |
1892 | wxCheckBox *src; | |
1893 | wxEvtHandler *dest; | |
1894 | src = (wxCheckBox *) ptr; | |
1895 | dest = (wxEvtHandler *) src; | |
1896 | return (void *) dest; | |
1897 | } | |
1898 | ||
9df61a29 RD |
1899 | static void *SwigwxCheckBoxTowxObject(void *ptr) { |
1900 | wxCheckBox *src; | |
1901 | wxObject *dest; | |
1902 | src = (wxCheckBox *) ptr; | |
1903 | dest = (wxObject *) src; | |
1904 | return (void *) dest; | |
1905 | } | |
1906 | ||
70551f47 | 1907 | #define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 1908 | static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1909 | PyObject * _resultobj; |
1910 | wxCheckBox * _result; | |
1911 | wxWindow * _arg0; | |
1912 | wxWindowID _arg1; | |
1913 | wxString * _arg2; | |
b68dc582 RD |
1914 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1915 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 1916 | long _arg5 = (long ) 0; |
b68dc582 | 1917 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 1918 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
2d091820 | 1919 | PyObject * _argo0 = 0; |
70551f47 | 1920 | PyObject * _obj2 = 0; |
37f6a977 RD |
1921 | wxPoint temp; |
1922 | PyObject * _obj3 = 0; | |
1923 | wxSize temp0; | |
1924 | PyObject * _obj4 = 0; | |
2d091820 | 1925 | PyObject * _argo6 = 0; |
9a74fcaf | 1926 | PyObject * _obj7 = 0; |
1fded56b | 1927 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
1928 | char _ptemp[128]; |
1929 | ||
1930 | self = self; | |
9a74fcaf | 1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxCheckBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 1932 | return NULL; |
2d091820 RD |
1933 | if (_argo0) { |
1934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckBox. Expected _wxWindow_p."); |
1937 | return NULL; | |
1938 | } | |
1939 | } | |
1940 | { | |
c8bc7bb8 RD |
1941 | _arg2 = wxString_in_helper(_obj2); |
1942 | if (_arg2 == NULL) | |
70551f47 | 1943 | return NULL; |
70551f47 | 1944 | } |
37f6a977 RD |
1945 | if (_obj3) |
1946 | { | |
1947 | _arg3 = &temp; | |
1948 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 1949 | return NULL; |
37f6a977 RD |
1950 | } |
1951 | if (_obj4) | |
1952 | { | |
1953 | _arg4 = &temp0; | |
1954 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 1955 | return NULL; |
37f6a977 | 1956 | } |
2d091820 | 1957 | if (_argo6) { |
b67a9327 | 1958 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
70551f47 RD |
1959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxCheckBox. Expected _wxValidator_p."); |
1960 | return NULL; | |
1961 | } | |
1962 | } | |
9a74fcaf RD |
1963 | if (_obj7) |
1964 | { | |
1965 | _arg7 = wxString_in_helper(_obj7); | |
1966 | if (_arg7 == NULL) | |
1967 | return NULL; | |
1968 | } | |
ab9bc19b | 1969 | { |
474c48f9 | 1970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1971 | _result = (wxCheckBox *)new_wxCheckBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 1972 | |
474c48f9 | 1973 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1974 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1975 | } if (_result) { |
1976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
1977 | _resultobj = Py_BuildValue("s",_ptemp); | |
1978 | } else { | |
1979 | Py_INCREF(Py_None); | |
1980 | _resultobj = Py_None; | |
1981 | } | |
70551f47 RD |
1982 | { |
1983 | if (_obj2) | |
1984 | delete _arg2; | |
9a74fcaf RD |
1985 | } |
1986 | { | |
1987 | if (_obj7) | |
1988 | delete _arg7; | |
70551f47 RD |
1989 | } |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
aa2a5b86 RD |
1993 | #define new_wxPreCheckBox() (new wxCheckBox()) |
1994 | static PyObject *_wrap_new_wxPreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject * _resultobj; | |
1996 | wxCheckBox * _result; | |
1997 | char *_kwnames[] = { NULL }; | |
1998 | char _ptemp[128]; | |
1999 | ||
2000 | self = self; | |
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckBox",_kwnames)) | |
2002 | return NULL; | |
2003 | { | |
474c48f9 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = (wxCheckBox *)new_wxPreCheckBox(); |
aa2a5b86 | 2006 | |
474c48f9 | 2007 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2008 | if (PyErr_Occurred()) return NULL; |
2009 | } if (_result) { | |
2010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckBox_p"); | |
2011 | _resultobj = Py_BuildValue("s",_ptemp); | |
2012 | } else { | |
2013 | Py_INCREF(Py_None); | |
2014 | _resultobj = Py_None; | |
2015 | } | |
2016 | return _resultobj; | |
2017 | } | |
2018 | ||
2019 | #define wxCheckBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
2020 | static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2021 | PyObject * _resultobj; | |
2022 | bool _result; | |
2023 | wxCheckBox * _arg0; | |
2024 | wxWindow * _arg1; | |
2025 | wxWindowID _arg2; | |
2026 | wxString * _arg3; | |
2027 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2028 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2029 | long _arg6 = (long ) 0; | |
2030 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2031 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
aa2a5b86 RD |
2032 | PyObject * _argo0 = 0; |
2033 | PyObject * _argo1 = 0; | |
2034 | PyObject * _obj3 = 0; | |
2035 | wxPoint temp; | |
2036 | PyObject * _obj4 = 0; | |
2037 | wxSize temp0; | |
2038 | PyObject * _obj5 = 0; | |
2039 | PyObject * _argo7 = 0; | |
9a74fcaf | 2040 | PyObject * _obj8 = 0; |
1fded56b | 2041 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
aa2a5b86 RD |
2042 | |
2043 | self = self; | |
9a74fcaf | 2044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
2045 | return NULL; |
2046 | if (_argo0) { | |
2047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_Create. Expected _wxCheckBox_p."); | |
2050 | return NULL; | |
2051 | } | |
2052 | } | |
2053 | if (_argo1) { | |
2054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckBox_Create. Expected _wxWindow_p."); | |
2057 | return NULL; | |
2058 | } | |
2059 | } | |
2060 | { | |
c8bc7bb8 RD |
2061 | _arg3 = wxString_in_helper(_obj3); |
2062 | if (_arg3 == NULL) | |
aa2a5b86 | 2063 | return NULL; |
aa2a5b86 RD |
2064 | } |
2065 | if (_obj4) | |
2066 | { | |
2067 | _arg4 = &temp; | |
2068 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2069 | return NULL; | |
2070 | } | |
2071 | if (_obj5) | |
2072 | { | |
2073 | _arg5 = &temp0; | |
2074 | if (! wxSize_helper(_obj5, &_arg5)) | |
2075 | return NULL; | |
2076 | } | |
2077 | if (_argo7) { | |
b67a9327 | 2078 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
2079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxCheckBox_Create. Expected _wxValidator_p."); |
2080 | return NULL; | |
2081 | } | |
2082 | } | |
9a74fcaf RD |
2083 | if (_obj8) |
2084 | { | |
2085 | _arg8 = wxString_in_helper(_obj8); | |
2086 | if (_arg8 == NULL) | |
2087 | return NULL; | |
2088 | } | |
aa2a5b86 | 2089 | { |
474c48f9 | 2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2091 | _result = (bool )wxCheckBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 2092 | |
474c48f9 | 2093 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2094 | if (PyErr_Occurred()) return NULL; |
2095 | } _resultobj = Py_BuildValue("i",_result); | |
2096 | { | |
2097 | if (_obj3) | |
2098 | delete _arg3; | |
9a74fcaf RD |
2099 | } |
2100 | { | |
2101 | if (_obj8) | |
2102 | delete _arg8; | |
aa2a5b86 RD |
2103 | } |
2104 | return _resultobj; | |
2105 | } | |
2106 | ||
70551f47 | 2107 | #define wxCheckBox_GetValue(_swigobj) (_swigobj->GetValue()) |
107e4716 | 2108 | static PyObject *_wrap_wxCheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2109 | PyObject * _resultobj; |
2110 | bool _result; | |
2111 | wxCheckBox * _arg0; | |
2d091820 | 2112 | PyObject * _argo0 = 0; |
107e4716 | 2113 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2114 | |
2115 | self = self; | |
107e4716 | 2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 2117 | return NULL; |
2d091820 RD |
2118 | if (_argo0) { |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_GetValue. Expected _wxCheckBox_p."); |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
ab9bc19b | 2125 | { |
474c48f9 | 2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2127 | _result = (bool )wxCheckBox_GetValue(_arg0); |
ab9bc19b | 2128 | |
474c48f9 | 2129 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2130 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2131 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2132 | return _resultobj; |
2133 | } | |
2134 | ||
b67a9327 RD |
2135 | #define wxCheckBox_IsChecked(_swigobj) (_swigobj->IsChecked()) |
2136 | static PyObject *_wrap_wxCheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | bool _result; | |
2139 | wxCheckBox * _arg0; | |
2140 | PyObject * _argo0 = 0; | |
2141 | char *_kwnames[] = { "self", NULL }; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckBox_IsChecked",_kwnames,&_argo0)) | |
2145 | return NULL; | |
2146 | if (_argo0) { | |
2147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
2149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_IsChecked. Expected _wxCheckBox_p."); | |
2150 | return NULL; | |
2151 | } | |
2152 | } | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | _result = (bool )wxCheckBox_IsChecked(_arg0); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) return NULL; | |
2159 | } _resultobj = Py_BuildValue("i",_result); | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
70551f47 | 2163 | #define wxCheckBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
107e4716 | 2164 | static PyObject *_wrap_wxCheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2165 | PyObject * _resultobj; |
2166 | wxCheckBox * _arg0; | |
2167 | bool _arg1; | |
2d091820 | 2168 | PyObject * _argo0 = 0; |
70551f47 | 2169 | int tempbool1; |
107e4716 | 2170 | char *_kwnames[] = { "self","state", NULL }; |
70551f47 RD |
2171 | |
2172 | self = self; | |
107e4716 | 2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckBox_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2174 | return NULL; |
2d091820 RD |
2175 | if (_argo0) { |
2176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckBox_p")) { | |
70551f47 RD |
2178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckBox_SetValue. Expected _wxCheckBox_p."); |
2179 | return NULL; | |
2180 | } | |
2181 | } | |
2182 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2183 | { |
474c48f9 | 2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2185 | wxCheckBox_SetValue(_arg0,_arg1); |
ab9bc19b | 2186 | |
474c48f9 | 2187 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2188 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2189 | } Py_INCREF(Py_None); |
70551f47 RD |
2190 | _resultobj = Py_None; |
2191 | return _resultobj; | |
2192 | } | |
2193 | ||
65191ae8 RD |
2194 | static void *SwigwxChoiceTowxControlWithItems(void *ptr) { |
2195 | wxChoice *src; | |
2196 | wxControlWithItems *dest; | |
2197 | src = (wxChoice *) ptr; | |
2198 | dest = (wxControlWithItems *) src; | |
2199 | return (void *) dest; | |
2200 | } | |
2201 | ||
70551f47 RD |
2202 | static void *SwigwxChoiceTowxControl(void *ptr) { |
2203 | wxChoice *src; | |
2204 | wxControl *dest; | |
2205 | src = (wxChoice *) ptr; | |
2206 | dest = (wxControl *) src; | |
2207 | return (void *) dest; | |
2208 | } | |
2209 | ||
2210 | static void *SwigwxChoiceTowxWindow(void *ptr) { | |
2211 | wxChoice *src; | |
2212 | wxWindow *dest; | |
2213 | src = (wxChoice *) ptr; | |
2214 | dest = (wxWindow *) src; | |
2215 | return (void *) dest; | |
2216 | } | |
2217 | ||
2218 | static void *SwigwxChoiceTowxEvtHandler(void *ptr) { | |
2219 | wxChoice *src; | |
2220 | wxEvtHandler *dest; | |
2221 | src = (wxChoice *) ptr; | |
2222 | dest = (wxEvtHandler *) src; | |
2223 | return (void *) dest; | |
2224 | } | |
2225 | ||
9df61a29 RD |
2226 | static void *SwigwxChoiceTowxObject(void *ptr) { |
2227 | wxChoice *src; | |
2228 | wxObject *dest; | |
2229 | src = (wxChoice *) ptr; | |
2230 | dest = (wxObject *) src; | |
2231 | return (void *) dest; | |
2232 | } | |
2233 | ||
70551f47 | 2234 | #define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 2235 | static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2236 | PyObject * _resultobj; |
2237 | wxChoice * _result; | |
2238 | wxWindow * _arg0; | |
2239 | wxWindowID _arg1; | |
b68dc582 RD |
2240 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2241 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2242 | int _arg4 = (int ) 0; |
2243 | wxString * _arg5 = (wxString *) NULL; | |
2244 | long _arg6 = (long ) 0; | |
b68dc582 | 2245 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2246 | wxString * _arg8 = (wxString *) &wxPyChoiceNameStr; |
2d091820 | 2247 | PyObject * _argo0 = 0; |
37f6a977 RD |
2248 | wxPoint temp; |
2249 | PyObject * _obj2 = 0; | |
2250 | wxSize temp0; | |
2251 | PyObject * _obj3 = 0; | |
70551f47 | 2252 | PyObject * _obj5 = 0; |
2d091820 | 2253 | PyObject * _argo7 = 0; |
9a74fcaf | 2254 | PyObject * _obj8 = 0; |
e02c03a4 | 2255 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2256 | char _ptemp[128]; |
2257 | ||
2258 | self = self; | |
9a74fcaf | 2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxChoice",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
70551f47 | 2260 | return NULL; |
2d091820 RD |
2261 | if (_argo0) { |
2262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxChoice. Expected _wxWindow_p."); |
2265 | return NULL; | |
2266 | } | |
2267 | } | |
37f6a977 RD |
2268 | if (_obj2) |
2269 | { | |
2270 | _arg2 = &temp; | |
2271 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 2272 | return NULL; |
37f6a977 RD |
2273 | } |
2274 | if (_obj3) | |
2275 | { | |
2276 | _arg3 = &temp0; | |
2277 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 2278 | return NULL; |
37f6a977 | 2279 | } |
70551f47 RD |
2280 | if (_obj5) |
2281 | { | |
2282 | _arg5 = wxString_LIST_helper(_obj5); | |
2283 | if (_arg5 == NULL) { | |
2284 | return NULL; | |
2285 | } | |
2286 | } | |
2d091820 | 2287 | if (_argo7) { |
b67a9327 | 2288 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
70551f47 RD |
2289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxChoice. Expected _wxValidator_p."); |
2290 | return NULL; | |
2291 | } | |
2292 | } | |
9a74fcaf RD |
2293 | if (_obj8) |
2294 | { | |
2295 | _arg8 = wxString_in_helper(_obj8); | |
2296 | if (_arg8 == NULL) | |
2297 | return NULL; | |
2298 | } | |
70551f47 | 2299 | { |
ab9bc19b RD |
2300 | if (_obj5) { |
2301 | _arg4 = PyList_Size(_obj5); | |
2302 | } | |
2303 | else { | |
2304 | _arg4 = 0; | |
2305 | } | |
70551f47 | 2306 | } |
ab9bc19b | 2307 | { |
474c48f9 | 2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2309 | _result = (wxChoice *)new_wxChoice(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 2310 | |
474c48f9 | 2311 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2312 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2313 | } if (_result) { |
2314 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2315 | _resultobj = Py_BuildValue("s",_ptemp); | |
2316 | } else { | |
2317 | Py_INCREF(Py_None); | |
2318 | _resultobj = Py_None; | |
2319 | } | |
70551f47 RD |
2320 | { |
2321 | delete [] _arg5; | |
9a74fcaf RD |
2322 | } |
2323 | { | |
2324 | if (_obj8) | |
2325 | delete _arg8; | |
70551f47 RD |
2326 | } |
2327 | return _resultobj; | |
2328 | } | |
2329 | ||
aa2a5b86 RD |
2330 | #define new_wxPreChoice() (new wxChoice()) |
2331 | static PyObject *_wrap_new_wxPreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2332 | PyObject * _resultobj; |
aa2a5b86 RD |
2333 | wxChoice * _result; |
2334 | char *_kwnames[] = { NULL }; | |
2335 | char _ptemp[128]; | |
70551f47 RD |
2336 | |
2337 | self = self; | |
aa2a5b86 RD |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreChoice",_kwnames)) |
2339 | return NULL; | |
2340 | { | |
474c48f9 | 2341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2342 | _result = (wxChoice *)new_wxPreChoice(); |
aa2a5b86 | 2343 | |
474c48f9 | 2344 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2345 | if (PyErr_Occurred()) return NULL; |
2346 | } if (_result) { | |
2347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxChoice_p"); | |
2348 | _resultobj = Py_BuildValue("s",_ptemp); | |
2349 | } else { | |
2350 | Py_INCREF(Py_None); | |
2351 | _resultobj = Py_None; | |
2352 | } | |
2353 | return _resultobj; | |
2354 | } | |
2355 | ||
2356 | #define wxChoice_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
2357 | static PyObject *_wrap_wxChoice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2358 | PyObject * _resultobj; | |
2359 | bool _result; | |
2360 | wxChoice * _arg0; | |
2361 | wxWindow * _arg1; | |
2362 | wxWindowID _arg2; | |
2363 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2364 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2365 | int _arg5 = (int ) 0; | |
2366 | wxString * _arg6 = (wxString *) NULL; | |
2367 | long _arg7 = (long ) 0; | |
2368 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2369 | wxString * _arg9 = (wxString *) &wxPyChoiceNameStr; |
aa2a5b86 RD |
2370 | PyObject * _argo0 = 0; |
2371 | PyObject * _argo1 = 0; | |
2372 | wxPoint temp; | |
2373 | PyObject * _obj3 = 0; | |
2374 | wxSize temp0; | |
2375 | PyObject * _obj4 = 0; | |
2376 | PyObject * _obj6 = 0; | |
2377 | PyObject * _argo8 = 0; | |
9a74fcaf | 2378 | PyObject * _obj9 = 0; |
aa2a5b86 RD |
2379 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
2380 | ||
2381 | self = self; | |
9a74fcaf | 2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxChoice_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
aa2a5b86 RD |
2383 | return NULL; |
2384 | if (_argo0) { | |
2385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Create. Expected _wxChoice_p."); | |
2388 | return NULL; | |
2389 | } | |
2390 | } | |
2391 | if (_argo1) { | |
2392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxChoice_Create. Expected _wxWindow_p."); | |
2395 | return NULL; | |
2396 | } | |
2397 | } | |
2398 | if (_obj3) | |
2399 | { | |
2400 | _arg3 = &temp; | |
2401 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2402 | return NULL; | |
2403 | } | |
2404 | if (_obj4) | |
2405 | { | |
2406 | _arg4 = &temp0; | |
2407 | if (! wxSize_helper(_obj4, &_arg4)) | |
2408 | return NULL; | |
2409 | } | |
2410 | if (_obj6) | |
2411 | { | |
2412 | _arg6 = wxString_LIST_helper(_obj6); | |
2413 | if (_arg6 == NULL) { | |
2414 | return NULL; | |
2415 | } | |
2416 | } | |
2417 | if (_argo8) { | |
b67a9327 | 2418 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { |
aa2a5b86 RD |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxChoice_Create. Expected _wxValidator_p."); |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
9a74fcaf RD |
2423 | if (_obj9) |
2424 | { | |
2425 | _arg9 = wxString_in_helper(_obj9); | |
2426 | if (_arg9 == NULL) | |
2427 | return NULL; | |
2428 | } | |
aa2a5b86 RD |
2429 | { |
2430 | if (_obj6) { | |
65191ae8 RD |
2431 | _arg5 = PyList_Size(_obj6); |
2432 | } | |
2433 | else { | |
2434 | _arg5 = 0; | |
70551f47 | 2435 | } |
65191ae8 | 2436 | } |
70551f47 | 2437 | { |
474c48f9 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2439 | _result = (bool )wxChoice_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 2440 | |
474c48f9 | 2441 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2442 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 2443 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 2444 | { |
65191ae8 | 2445 | delete [] _arg6; |
9a74fcaf RD |
2446 | } |
2447 | { | |
2448 | if (_obj9) | |
2449 | delete _arg9; | |
70551f47 RD |
2450 | } |
2451 | return _resultobj; | |
2452 | } | |
2453 | ||
65191ae8 RD |
2454 | #define wxChoice_Clear(_swigobj) (_swigobj->Clear()) |
2455 | static PyObject *_wrap_wxChoice_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2456 | PyObject * _resultobj; |
70551f47 | 2457 | wxChoice * _arg0; |
2d091820 | 2458 | PyObject * _argo0 = 0; |
107e4716 | 2459 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2460 | |
2461 | self = self; | |
65191ae8 | 2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_Clear",_kwnames,&_argo0)) |
70551f47 | 2463 | return NULL; |
2d091820 RD |
2464 | if (_argo0) { |
2465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_Clear. Expected _wxChoice_p."); |
70551f47 RD |
2468 | return NULL; |
2469 | } | |
2470 | } | |
70551f47 | 2471 | { |
474c48f9 | 2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2473 | wxChoice_Clear(_arg0); |
ab9bc19b | 2474 | |
474c48f9 | 2475 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2476 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
2477 | } Py_INCREF(Py_None); |
2478 | _resultobj = Py_None; | |
70551f47 RD |
2479 | return _resultobj; |
2480 | } | |
2481 | ||
65191ae8 RD |
2482 | #define wxChoice_GetColumns(_swigobj) (_swigobj->GetColumns()) |
2483 | static PyObject *_wrap_wxChoice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2484 | PyObject * _resultobj; |
2485 | int _result; | |
2486 | wxChoice * _arg0; | |
2d091820 | 2487 | PyObject * _argo0 = 0; |
107e4716 | 2488 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2489 | |
2490 | self = self; | |
65191ae8 | 2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxChoice_GetColumns",_kwnames,&_argo0)) |
70551f47 | 2492 | return NULL; |
2d091820 RD |
2493 | if (_argo0) { |
2494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
65191ae8 | 2496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_GetColumns. Expected _wxChoice_p."); |
70551f47 RD |
2497 | return NULL; |
2498 | } | |
2499 | } | |
ab9bc19b | 2500 | { |
474c48f9 | 2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2502 | _result = (int )wxChoice_GetColumns(_arg0); |
ab9bc19b | 2503 | |
474c48f9 | 2504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2505 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2506 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2507 | return _resultobj; |
2508 | } | |
2509 | ||
2510 | #define wxChoice_SetColumns(_swigobj,_swigarg0) (_swigobj->SetColumns(_swigarg0)) | |
107e4716 | 2511 | static PyObject *_wrap_wxChoice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2512 | PyObject * _resultobj; |
2513 | wxChoice * _arg0; | |
2d091820 RD |
2514 | int _arg1 = (int ) 1; |
2515 | PyObject * _argo0 = 0; | |
107e4716 | 2516 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2517 | |
2518 | self = self; | |
107e4716 | 2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxChoice_SetColumns",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2520 | return NULL; |
2d091820 RD |
2521 | if (_argo0) { |
2522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetColumns. Expected _wxChoice_p."); |
2525 | return NULL; | |
2526 | } | |
2527 | } | |
ab9bc19b | 2528 | { |
474c48f9 | 2529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2530 | wxChoice_SetColumns(_arg0,_arg1); |
ab9bc19b | 2531 | |
474c48f9 | 2532 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2533 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2534 | } Py_INCREF(Py_None); |
70551f47 RD |
2535 | _resultobj = Py_None; |
2536 | return _resultobj; | |
2537 | } | |
2538 | ||
2539 | #define wxChoice_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 2540 | static PyObject *_wrap_wxChoice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2541 | PyObject * _resultobj; |
2542 | wxChoice * _arg0; | |
2543 | int _arg1; | |
2d091820 | 2544 | PyObject * _argo0 = 0; |
107e4716 | 2545 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
2546 | |
2547 | self = self; | |
107e4716 | 2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxChoice_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2549 | return NULL; |
2d091820 RD |
2550 | if (_argo0) { |
2551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetSelection. Expected _wxChoice_p."); |
2554 | return NULL; | |
2555 | } | |
2556 | } | |
ab9bc19b | 2557 | { |
474c48f9 | 2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2559 | wxChoice_SetSelection(_arg0,_arg1); |
ab9bc19b | 2560 | |
474c48f9 | 2561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2562 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2563 | } Py_INCREF(Py_None); |
70551f47 RD |
2564 | _resultobj = Py_None; |
2565 | return _resultobj; | |
2566 | } | |
2567 | ||
2568 | #define wxChoice_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 2569 | static PyObject *_wrap_wxChoice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2570 | PyObject * _resultobj; |
2571 | wxChoice * _arg0; | |
2572 | wxString * _arg1; | |
2d091820 | 2573 | PyObject * _argo0 = 0; |
70551f47 | 2574 | PyObject * _obj1 = 0; |
107e4716 | 2575 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2576 | |
2577 | self = self; | |
107e4716 | 2578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxChoice_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2579 | return NULL; |
2d091820 RD |
2580 | if (_argo0) { |
2581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
70551f47 RD |
2583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetStringSelection. Expected _wxChoice_p."); |
2584 | return NULL; | |
2585 | } | |
2586 | } | |
2587 | { | |
c8bc7bb8 RD |
2588 | _arg1 = wxString_in_helper(_obj1); |
2589 | if (_arg1 == NULL) | |
2cd2fac8 | 2590 | return NULL; |
70551f47 | 2591 | } |
ab9bc19b | 2592 | { |
474c48f9 | 2593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2594 | wxChoice_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 2595 | |
474c48f9 | 2596 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2597 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2598 | } Py_INCREF(Py_None); |
70551f47 RD |
2599 | _resultobj = Py_None; |
2600 | { | |
2601 | if (_obj1) | |
2602 | delete _arg1; | |
2603 | } | |
2604 | return _resultobj; | |
2605 | } | |
2606 | ||
2c8a649d RD |
2607 | #define wxChoice_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
2608 | static PyObject *_wrap_wxChoice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject * _resultobj; | |
2610 | wxChoice * _arg0; | |
2611 | int _arg1; | |
2612 | wxString * _arg2; | |
2613 | PyObject * _argo0 = 0; | |
2614 | PyObject * _obj2 = 0; | |
2615 | char *_kwnames[] = { "self","n","s", NULL }; | |
2616 | ||
2617 | self = self; | |
2618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxChoice_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
2619 | return NULL; | |
2620 | if (_argo0) { | |
2621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxChoice_p")) { | |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxChoice_SetString. Expected _wxChoice_p."); | |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
2627 | { | |
c8bc7bb8 RD |
2628 | _arg2 = wxString_in_helper(_obj2); |
2629 | if (_arg2 == NULL) | |
2c8a649d | 2630 | return NULL; |
2c8a649d RD |
2631 | } |
2632 | { | |
474c48f9 | 2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2634 | wxChoice_SetString(_arg0,_arg1,*_arg2); |
2c8a649d | 2635 | |
474c48f9 | 2636 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
2637 | if (PyErr_Occurred()) return NULL; |
2638 | } Py_INCREF(Py_None); | |
2639 | _resultobj = Py_None; | |
2640 | { | |
2641 | if (_obj2) | |
2642 | delete _arg2; | |
2643 | } | |
2644 | return _resultobj; | |
2645 | } | |
2646 | ||
70551f47 RD |
2647 | static void *SwigwxComboBoxTowxControl(void *ptr) { |
2648 | wxComboBox *src; | |
2649 | wxControl *dest; | |
2650 | src = (wxComboBox *) ptr; | |
2651 | dest = (wxControl *) src; | |
2652 | return (void *) dest; | |
2653 | } | |
2654 | ||
2655 | static void *SwigwxComboBoxTowxWindow(void *ptr) { | |
2656 | wxComboBox *src; | |
2657 | wxWindow *dest; | |
2658 | src = (wxComboBox *) ptr; | |
2659 | dest = (wxWindow *) src; | |
2660 | return (void *) dest; | |
2661 | } | |
2662 | ||
2663 | static void *SwigwxComboBoxTowxEvtHandler(void *ptr) { | |
2664 | wxComboBox *src; | |
2665 | wxEvtHandler *dest; | |
2666 | src = (wxComboBox *) ptr; | |
2667 | dest = (wxEvtHandler *) src; | |
2668 | return (void *) dest; | |
2669 | } | |
2670 | ||
9df61a29 RD |
2671 | static void *SwigwxComboBoxTowxObject(void *ptr) { |
2672 | wxComboBox *src; | |
2673 | wxObject *dest; | |
2674 | src = (wxComboBox *) ptr; | |
2675 | dest = (wxObject *) src; | |
2676 | return (void *) dest; | |
2677 | } | |
2678 | ||
70551f47 | 2679 | #define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) |
107e4716 | 2680 | static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2681 | PyObject * _resultobj; |
2682 | wxComboBox * _result; | |
2683 | wxWindow * _arg0; | |
2684 | wxWindowID _arg1; | |
9a74fcaf | 2685 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
2686 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
2687 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
2688 | int _arg5 = (int ) 0; |
2689 | wxString * _arg6 = (wxString *) NULL; | |
2690 | long _arg7 = (long ) 0; | |
b68dc582 | 2691 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2692 | wxString * _arg9 = (wxString *) &wxPyComboBoxNameStr; |
2d091820 | 2693 | PyObject * _argo0 = 0; |
9a74fcaf | 2694 | PyObject * _obj2 = 0; |
37f6a977 RD |
2695 | wxPoint temp; |
2696 | PyObject * _obj3 = 0; | |
2697 | wxSize temp0; | |
2698 | PyObject * _obj4 = 0; | |
70551f47 | 2699 | PyObject * _obj6 = 0; |
2d091820 | 2700 | PyObject * _argo8 = 0; |
9a74fcaf | 2701 | PyObject * _obj9 = 0; |
e02c03a4 | 2702 | char *_kwnames[] = { "parent","id","value","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
2703 | char _ptemp[128]; |
2704 | ||
2705 | self = self; | |
9a74fcaf | 2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOOlOO:new_wxComboBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 2707 | return NULL; |
2d091820 RD |
2708 | if (_argo0) { |
2709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxComboBox. Expected _wxWindow_p."); |
2712 | return NULL; | |
2713 | } | |
2714 | } | |
9a74fcaf RD |
2715 | if (_obj2) |
2716 | { | |
2717 | _arg2 = wxString_in_helper(_obj2); | |
2718 | if (_arg2 == NULL) | |
2719 | return NULL; | |
2720 | } | |
37f6a977 RD |
2721 | if (_obj3) |
2722 | { | |
2723 | _arg3 = &temp; | |
2724 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 2725 | return NULL; |
37f6a977 RD |
2726 | } |
2727 | if (_obj4) | |
2728 | { | |
2729 | _arg4 = &temp0; | |
2730 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 2731 | return NULL; |
37f6a977 | 2732 | } |
70551f47 RD |
2733 | if (_obj6) |
2734 | { | |
2735 | _arg6 = wxString_LIST_helper(_obj6); | |
2736 | if (_arg6 == NULL) { | |
2737 | return NULL; | |
2738 | } | |
2739 | } | |
2d091820 | 2740 | if (_argo8) { |
b67a9327 | 2741 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { |
70551f47 RD |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxComboBox. Expected _wxValidator_p."); |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
9a74fcaf RD |
2746 | if (_obj9) |
2747 | { | |
2748 | _arg9 = wxString_in_helper(_obj9); | |
2749 | if (_arg9 == NULL) | |
2750 | return NULL; | |
2751 | } | |
70551f47 | 2752 | { |
ab9bc19b RD |
2753 | if (_obj6) { |
2754 | _arg5 = PyList_Size(_obj6); | |
2755 | } | |
2756 | else { | |
2757 | _arg5 = 0; | |
2758 | } | |
70551f47 | 2759 | } |
ab9bc19b | 2760 | { |
474c48f9 | 2761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2762 | _result = (wxComboBox *)new_wxComboBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 2763 | |
474c48f9 | 2764 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2765 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2766 | } if (_result) { |
2767 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2768 | _resultobj = Py_BuildValue("s",_ptemp); | |
2769 | } else { | |
2770 | Py_INCREF(Py_None); | |
2771 | _resultobj = Py_None; | |
2772 | } | |
9a74fcaf RD |
2773 | { |
2774 | if (_obj2) | |
2775 | delete _arg2; | |
2776 | } | |
70551f47 RD |
2777 | { |
2778 | delete [] _arg6; | |
9a74fcaf RD |
2779 | } |
2780 | { | |
2781 | if (_obj9) | |
2782 | delete _arg9; | |
70551f47 RD |
2783 | } |
2784 | return _resultobj; | |
2785 | } | |
2786 | ||
aa2a5b86 RD |
2787 | #define new_wxPreComboBox() (new wxComboBox()) |
2788 | static PyObject *_wrap_new_wxPreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject * _resultobj; | |
2790 | wxComboBox * _result; | |
2791 | char *_kwnames[] = { NULL }; | |
2792 | char _ptemp[128]; | |
2793 | ||
2794 | self = self; | |
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreComboBox",_kwnames)) | |
2796 | return NULL; | |
2797 | { | |
474c48f9 | 2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2799 | _result = (wxComboBox *)new_wxPreComboBox(); |
aa2a5b86 | 2800 | |
474c48f9 | 2801 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2802 | if (PyErr_Occurred()) return NULL; |
2803 | } if (_result) { | |
2804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxComboBox_p"); | |
2805 | _resultobj = Py_BuildValue("s",_ptemp); | |
2806 | } else { | |
2807 | Py_INCREF(Py_None); | |
2808 | _resultobj = Py_None; | |
2809 | } | |
2810 | return _resultobj; | |
2811 | } | |
2812 | ||
2813 | #define wxComboBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9)) | |
2814 | static PyObject *_wrap_wxComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2815 | PyObject * _resultobj; | |
2816 | bool _result; | |
2817 | wxComboBox * _arg0; | |
2818 | wxWindow * _arg1; | |
2819 | wxWindowID _arg2; | |
9a74fcaf | 2820 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
2821 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
2822 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2823 | int _arg6 = (int ) 0; | |
2824 | wxString * _arg7 = (wxString *) NULL; | |
2825 | long _arg8 = (long ) 0; | |
2826 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2827 | wxString * _arg10 = (wxString *) &wxPyComboBoxNameStr; |
aa2a5b86 RD |
2828 | PyObject * _argo0 = 0; |
2829 | PyObject * _argo1 = 0; | |
9a74fcaf | 2830 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
2831 | wxPoint temp; |
2832 | PyObject * _obj4 = 0; | |
2833 | wxSize temp0; | |
2834 | PyObject * _obj5 = 0; | |
2835 | PyObject * _obj7 = 0; | |
2836 | PyObject * _argo9 = 0; | |
9a74fcaf | 2837 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
2838 | char *_kwnames[] = { "self","parent","id","value","pos","size","choices","style","validator","name", NULL }; |
2839 | ||
2840 | self = self; | |
9a74fcaf | 2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOOlOO:wxComboBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_argo9,&_obj10)) |
aa2a5b86 RD |
2842 | return NULL; |
2843 | if (_argo0) { | |
2844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
2846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Create. Expected _wxComboBox_p."); | |
2847 | return NULL; | |
2848 | } | |
2849 | } | |
2850 | if (_argo1) { | |
2851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxComboBox_Create. Expected _wxWindow_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
9a74fcaf RD |
2857 | if (_obj3) |
2858 | { | |
2859 | _arg3 = wxString_in_helper(_obj3); | |
2860 | if (_arg3 == NULL) | |
2861 | return NULL; | |
2862 | } | |
aa2a5b86 RD |
2863 | if (_obj4) |
2864 | { | |
2865 | _arg4 = &temp; | |
2866 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2867 | return NULL; | |
2868 | } | |
2869 | if (_obj5) | |
2870 | { | |
2871 | _arg5 = &temp0; | |
2872 | if (! wxSize_helper(_obj5, &_arg5)) | |
2873 | return NULL; | |
2874 | } | |
2875 | if (_obj7) | |
2876 | { | |
2877 | _arg7 = wxString_LIST_helper(_obj7); | |
2878 | if (_arg7 == NULL) { | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | if (_argo9) { | |
b67a9327 | 2883 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { |
aa2a5b86 RD |
2884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxComboBox_Create. Expected _wxValidator_p."); |
2885 | return NULL; | |
2886 | } | |
2887 | } | |
9a74fcaf RD |
2888 | if (_obj10) |
2889 | { | |
2890 | _arg10 = wxString_in_helper(_obj10); | |
2891 | if (_arg10 == NULL) | |
2892 | return NULL; | |
2893 | } | |
aa2a5b86 RD |
2894 | { |
2895 | if (_obj7) { | |
2896 | _arg6 = PyList_Size(_obj7); | |
2897 | } | |
2898 | else { | |
2899 | _arg6 = 0; | |
2900 | } | |
2901 | } | |
2902 | { | |
474c48f9 | 2903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2904 | _result = (bool )wxComboBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
aa2a5b86 | 2905 | |
474c48f9 | 2906 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2907 | if (PyErr_Occurred()) return NULL; |
2908 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
2909 | { |
2910 | if (_obj3) | |
2911 | delete _arg3; | |
2912 | } | |
aa2a5b86 RD |
2913 | { |
2914 | delete [] _arg7; | |
9a74fcaf RD |
2915 | } |
2916 | { | |
2917 | if (_obj10) | |
2918 | delete _arg10; | |
aa2a5b86 RD |
2919 | } |
2920 | return _resultobj; | |
2921 | } | |
2922 | ||
70551f47 | 2923 | #define wxComboBox_Copy(_swigobj) (_swigobj->Copy()) |
107e4716 | 2924 | static PyObject *_wrap_wxComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2925 | PyObject * _resultobj; |
2926 | wxComboBox * _arg0; | |
2d091820 | 2927 | PyObject * _argo0 = 0; |
107e4716 | 2928 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2929 | |
2930 | self = self; | |
107e4716 | 2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Copy",_kwnames,&_argo0)) |
70551f47 | 2932 | return NULL; |
2d091820 RD |
2933 | if (_argo0) { |
2934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Copy. Expected _wxComboBox_p."); |
2937 | return NULL; | |
2938 | } | |
2939 | } | |
ab9bc19b | 2940 | { |
474c48f9 | 2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2942 | wxComboBox_Copy(_arg0); |
ab9bc19b | 2943 | |
474c48f9 | 2944 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2945 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2946 | } Py_INCREF(Py_None); |
70551f47 RD |
2947 | _resultobj = Py_None; |
2948 | return _resultobj; | |
2949 | } | |
2950 | ||
2951 | #define wxComboBox_Cut(_swigobj) (_swigobj->Cut()) | |
107e4716 | 2952 | static PyObject *_wrap_wxComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2953 | PyObject * _resultobj; |
2954 | wxComboBox * _arg0; | |
2d091820 | 2955 | PyObject * _argo0 = 0; |
107e4716 | 2956 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2957 | |
2958 | self = self; | |
107e4716 | 2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Cut",_kwnames,&_argo0)) |
70551f47 | 2960 | return NULL; |
2d091820 RD |
2961 | if (_argo0) { |
2962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
2964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Cut. Expected _wxComboBox_p."); |
2965 | return NULL; | |
2966 | } | |
2967 | } | |
ab9bc19b | 2968 | { |
474c48f9 | 2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2970 | wxComboBox_Cut(_arg0); |
ab9bc19b | 2971 | |
474c48f9 | 2972 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2973 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2974 | } Py_INCREF(Py_None); |
70551f47 RD |
2975 | _resultobj = Py_None; |
2976 | return _resultobj; | |
2977 | } | |
2978 | ||
70551f47 | 2979 | #define wxComboBox_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
107e4716 | 2980 | static PyObject *_wrap_wxComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2981 | PyObject * _resultobj; |
2982 | long _result; | |
2983 | wxComboBox * _arg0; | |
2d091820 | 2984 | PyObject * _argo0 = 0; |
65191ae8 | 2985 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2986 | |
2987 | self = self; | |
65191ae8 | 2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetInsertionPoint",_kwnames,&_argo0)) |
70551f47 | 2989 | return NULL; |
2d091820 RD |
2990 | if (_argo0) { |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetInsertionPoint. Expected _wxComboBox_p."); |
70551f47 RD |
2994 | return NULL; |
2995 | } | |
2996 | } | |
70551f47 | 2997 | { |
474c48f9 | 2998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2999 | _result = (long )wxComboBox_GetInsertionPoint(_arg0); |
ab9bc19b | 3000 | |
474c48f9 | 3001 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3002 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 3003 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
3004 | return _resultobj; |
3005 | } | |
3006 | ||
65191ae8 RD |
3007 | #define wxComboBox_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
3008 | static PyObject *_wrap_wxComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3009 | PyObject * _resultobj; |
65191ae8 | 3010 | long _result; |
70551f47 | 3011 | wxComboBox * _arg0; |
2d091820 | 3012 | PyObject * _argo0 = 0; |
107e4716 | 3013 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3014 | |
3015 | self = self; | |
65191ae8 | 3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetLastPosition",_kwnames,&_argo0)) |
70551f47 | 3017 | return NULL; |
2d091820 RD |
3018 | if (_argo0) { |
3019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
65191ae8 | 3021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetLastPosition. Expected _wxComboBox_p."); |
70551f47 RD |
3022 | return NULL; |
3023 | } | |
3024 | } | |
70551f47 | 3025 | { |
474c48f9 | 3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3027 | _result = (long )wxComboBox_GetLastPosition(_arg0); |
ab9bc19b | 3028 | |
474c48f9 | 3029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3030 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 3031 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
3032 | return _resultobj; |
3033 | } | |
3034 | ||
3035 | #define wxComboBox_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 3036 | static PyObject *_wrap_wxComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3037 | PyObject * _resultobj; |
3038 | wxString * _result; | |
3039 | wxComboBox * _arg0; | |
2d091820 | 3040 | PyObject * _argo0 = 0; |
107e4716 | 3041 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3042 | |
3043 | self = self; | |
107e4716 | 3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetValue",_kwnames,&_argo0)) |
70551f47 | 3045 | return NULL; |
2d091820 RD |
3046 | if (_argo0) { |
3047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetValue. Expected _wxComboBox_p."); |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
70551f47 | 3053 | { |
474c48f9 | 3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3055 | _result = new wxString (wxComboBox_GetValue(_arg0)); |
ab9bc19b | 3056 | |
474c48f9 | 3057 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3058 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3059 | }{ |
c8bc7bb8 | 3060 | #if wxUSE_UNICODE |
b67a9327 | 3061 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3062 | #else |
e02c03a4 | 3063 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3064 | #endif |
70551f47 RD |
3065 | } |
3066 | { | |
3067 | delete _result; | |
3068 | } | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
70551f47 | 3072 | #define wxComboBox_Paste(_swigobj) (_swigobj->Paste()) |
107e4716 | 3073 | static PyObject *_wrap_wxComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3074 | PyObject * _resultobj; |
3075 | wxComboBox * _arg0; | |
2d091820 | 3076 | PyObject * _argo0 = 0; |
107e4716 | 3077 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3078 | |
3079 | self = self; | |
107e4716 | 3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Paste",_kwnames,&_argo0)) |
70551f47 | 3081 | return NULL; |
2d091820 RD |
3082 | if (_argo0) { |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Paste. Expected _wxComboBox_p."); |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
ab9bc19b | 3089 | { |
474c48f9 | 3090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3091 | wxComboBox_Paste(_arg0); |
ab9bc19b | 3092 | |
474c48f9 | 3093 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3094 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3095 | } Py_INCREF(Py_None); |
70551f47 RD |
3096 | _resultobj = Py_None; |
3097 | return _resultobj; | |
3098 | } | |
3099 | ||
3100 | #define wxComboBox_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3101 | static PyObject *_wrap_wxComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3102 | PyObject * _resultobj; |
3103 | wxComboBox * _arg0; | |
3104 | long _arg1; | |
3105 | long _arg2; | |
3106 | wxString * _arg3; | |
2d091820 | 3107 | PyObject * _argo0 = 0; |
70551f47 | 3108 | PyObject * _obj3 = 0; |
107e4716 | 3109 | char *_kwnames[] = { "self","from","to","text", NULL }; |
70551f47 RD |
3110 | |
3111 | self = self; | |
107e4716 | 3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxComboBox_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 3113 | return NULL; |
2d091820 RD |
3114 | if (_argo0) { |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Replace. Expected _wxComboBox_p."); |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
c8bc7bb8 RD |
3122 | _arg3 = wxString_in_helper(_obj3); |
3123 | if (_arg3 == NULL) | |
70551f47 | 3124 | return NULL; |
70551f47 | 3125 | } |
ab9bc19b | 3126 | { |
474c48f9 | 3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3128 | wxComboBox_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 3129 | |
474c48f9 | 3130 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3131 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3132 | } Py_INCREF(Py_None); |
70551f47 RD |
3133 | _resultobj = Py_None; |
3134 | { | |
3135 | if (_obj3) | |
3136 | delete _arg3; | |
3137 | } | |
3138 | return _resultobj; | |
3139 | } | |
3140 | ||
3141 | #define wxComboBox_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) | |
107e4716 | 3142 | static PyObject *_wrap_wxComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3143 | PyObject * _resultobj; |
3144 | wxComboBox * _arg0; | |
3145 | long _arg1; | |
3146 | long _arg2; | |
2d091820 | 3147 | PyObject * _argo0 = 0; |
107e4716 | 3148 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3149 | |
3150 | self = self; | |
107e4716 | 3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3152 | return NULL; |
2d091820 RD |
3153 | if (_argo0) { |
3154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Remove. Expected _wxComboBox_p."); |
3157 | return NULL; | |
3158 | } | |
3159 | } | |
ab9bc19b | 3160 | { |
474c48f9 | 3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3162 | wxComboBox_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 3163 | |
474c48f9 | 3164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3165 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3166 | } Py_INCREF(Py_None); |
70551f47 RD |
3167 | _resultobj = Py_None; |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | #define wxComboBox_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) | |
107e4716 | 3172 | static PyObject *_wrap_wxComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3173 | PyObject * _resultobj; |
3174 | wxComboBox * _arg0; | |
3175 | long _arg1; | |
2d091820 | 3176 | PyObject * _argo0 = 0; |
107e4716 | 3177 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3178 | |
3179 | self = self; | |
107e4716 | 3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxComboBox_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3181 | return NULL; |
2d091820 RD |
3182 | if (_argo0) { |
3183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPoint. Expected _wxComboBox_p."); |
3186 | return NULL; | |
3187 | } | |
3188 | } | |
ab9bc19b | 3189 | { |
474c48f9 | 3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3191 | wxComboBox_SetInsertionPoint(_arg0,_arg1); |
ab9bc19b | 3192 | |
474c48f9 | 3193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3194 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3195 | } Py_INCREF(Py_None); |
70551f47 RD |
3196 | _resultobj = Py_None; |
3197 | return _resultobj; | |
3198 | } | |
3199 | ||
3200 | #define wxComboBox_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) | |
107e4716 | 3201 | static PyObject *_wrap_wxComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3202 | PyObject * _resultobj; |
3203 | wxComboBox * _arg0; | |
2d091820 | 3204 | PyObject * _argo0 = 0; |
107e4716 | 3205 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3206 | |
3207 | self = self; | |
107e4716 | 3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_SetInsertionPointEnd",_kwnames,&_argo0)) |
70551f47 | 3209 | return NULL; |
2d091820 RD |
3210 | if (_argo0) { |
3211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetInsertionPointEnd. Expected _wxComboBox_p."); |
3214 | return NULL; | |
3215 | } | |
3216 | } | |
ab9bc19b | 3217 | { |
474c48f9 | 3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3219 | wxComboBox_SetInsertionPointEnd(_arg0); |
ab9bc19b | 3220 | |
474c48f9 | 3221 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3222 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3223 | } Py_INCREF(Py_None); |
70551f47 RD |
3224 | _resultobj = Py_None; |
3225 | return _resultobj; | |
3226 | } | |
3227 | ||
2d091820 | 3228 | #define wxComboBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
107e4716 | 3229 | static PyObject *_wrap_wxComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2d091820 RD |
3230 | PyObject * _resultobj; |
3231 | wxComboBox * _arg0; | |
3232 | int _arg1; | |
3233 | PyObject * _argo0 = 0; | |
107e4716 | 3234 | char *_kwnames[] = { "self","n", NULL }; |
2d091820 RD |
3235 | |
3236 | self = self; | |
107e4716 | 3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
2d091820 RD |
3238 | return NULL; |
3239 | if (_argo0) { | |
3240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetSelection. Expected _wxComboBox_p."); | |
3243 | return NULL; | |
3244 | } | |
3245 | } | |
3246 | { | |
474c48f9 | 3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3248 | wxComboBox_SetSelection(_arg0,_arg1); |
2d091820 | 3249 | |
474c48f9 | 3250 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3251 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3252 | } Py_INCREF(Py_None); |
3253 | _resultobj = Py_None; | |
3254 | return _resultobj; | |
3255 | } | |
3256 | ||
70551f47 | 3257 | #define wxComboBox_SetMark(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) |
107e4716 | 3258 | static PyObject *_wrap_wxComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3259 | PyObject * _resultobj; |
3260 | wxComboBox * _arg0; | |
3261 | long _arg1; | |
3262 | long _arg2; | |
2d091820 | 3263 | PyObject * _argo0 = 0; |
107e4716 | 3264 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
3265 | |
3266 | self = self; | |
107e4716 | 3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxComboBox_SetMark",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3268 | return NULL; |
2d091820 RD |
3269 | if (_argo0) { |
3270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetMark. Expected _wxComboBox_p."); |
3273 | return NULL; | |
3274 | } | |
3275 | } | |
ab9bc19b | 3276 | { |
474c48f9 | 3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3278 | wxComboBox_SetMark(_arg0,_arg1,_arg2); |
ab9bc19b | 3279 | |
474c48f9 | 3280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3281 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3282 | } Py_INCREF(Py_None); |
70551f47 RD |
3283 | _resultobj = Py_None; |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
3287 | #define wxComboBox_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 3288 | static PyObject *_wrap_wxComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3289 | PyObject * _resultobj; |
3290 | wxComboBox * _arg0; | |
3291 | wxString * _arg1; | |
2d091820 | 3292 | PyObject * _argo0 = 0; |
70551f47 | 3293 | PyObject * _obj1 = 0; |
107e4716 | 3294 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
3295 | |
3296 | self = self; | |
107e4716 | 3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3298 | return NULL; |
2d091820 RD |
3299 | if (_argo0) { |
3300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
70551f47 RD |
3302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetValue. Expected _wxComboBox_p."); |
3303 | return NULL; | |
3304 | } | |
3305 | } | |
3306 | { | |
c8bc7bb8 RD |
3307 | _arg1 = wxString_in_helper(_obj1); |
3308 | if (_arg1 == NULL) | |
2cd2fac8 | 3309 | return NULL; |
70551f47 | 3310 | } |
ab9bc19b | 3311 | { |
474c48f9 | 3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3313 | wxComboBox_SetValue(_arg0,*_arg1); |
ab9bc19b | 3314 | |
474c48f9 | 3315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3316 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3317 | } Py_INCREF(Py_None); |
70551f47 RD |
3318 | _resultobj = Py_None; |
3319 | { | |
3320 | if (_obj1) | |
3321 | delete _arg1; | |
3322 | } | |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
2c8a649d RD |
3326 | #define wxComboBox_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
3327 | static PyObject *_wrap_wxComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject * _resultobj; | |
3329 | wxComboBox * _arg0; | |
3330 | bool _arg1; | |
3331 | PyObject * _argo0 = 0; | |
3332 | int tempbool1; | |
3333 | char *_kwnames[] = { "self","editable", NULL }; | |
3334 | ||
3335 | self = self; | |
3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_SetEditable",_kwnames,&_argo0,&tempbool1)) | |
3337 | return NULL; | |
3338 | if (_argo0) { | |
3339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetEditable. Expected _wxComboBox_p."); | |
3342 | return NULL; | |
3343 | } | |
3344 | } | |
3345 | _arg1 = (bool ) tempbool1; | |
3346 | { | |
474c48f9 | 3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3348 | wxComboBox_SetEditable(_arg0,_arg1); |
2c8a649d | 3349 | |
474c48f9 | 3350 | wxPyEndAllowThreads(__tstate); |
2c8a649d RD |
3351 | if (PyErr_Occurred()) return NULL; |
3352 | } Py_INCREF(Py_None); | |
3353 | _resultobj = Py_None; | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
c70fd24f RD |
3357 | #define wxComboBox_Clear(_swigobj) (_swigobj->Clear()) |
3358 | static PyObject *_wrap_wxComboBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3359 | PyObject * _resultobj; | |
3360 | wxComboBox * _arg0; | |
3361 | PyObject * _argo0 = 0; | |
3362 | char *_kwnames[] = { "self", NULL }; | |
3363 | ||
3364 | self = self; | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_Clear",_kwnames,&_argo0)) | |
3366 | return NULL; | |
3367 | if (_argo0) { | |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Clear. Expected _wxComboBox_p."); | |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
3374 | { | |
474c48f9 | 3375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3376 | wxComboBox_Clear(_arg0); |
c70fd24f | 3377 | |
474c48f9 | 3378 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3379 | if (PyErr_Occurred()) return NULL; |
3380 | } Py_INCREF(Py_None); | |
3381 | _resultobj = Py_None; | |
3382 | return _resultobj; | |
3383 | } | |
3384 | ||
3385 | #define wxComboBox_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
3386 | static PyObject *_wrap_wxComboBox_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3387 | PyObject * _resultobj; | |
3388 | wxComboBox * _arg0; | |
3389 | int _arg1; | |
3390 | PyObject * _argo0 = 0; | |
3391 | char *_kwnames[] = { "self","n", NULL }; | |
3392 | ||
3393 | self = self; | |
3394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_Delete",_kwnames,&_argo0,&_arg1)) | |
3395 | return NULL; | |
3396 | if (_argo0) { | |
3397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Delete. Expected _wxComboBox_p."); | |
3400 | return NULL; | |
3401 | } | |
3402 | } | |
3403 | { | |
474c48f9 | 3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3405 | wxComboBox_Delete(_arg0,_arg1); |
c70fd24f | 3406 | |
474c48f9 | 3407 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3408 | if (PyErr_Occurred()) return NULL; |
3409 | } Py_INCREF(Py_None); | |
3410 | _resultobj = Py_None; | |
3411 | return _resultobj; | |
3412 | } | |
3413 | ||
3414 | #define wxComboBox_GetCount(_swigobj) (_swigobj->GetCount()) | |
3415 | static PyObject *_wrap_wxComboBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject * _resultobj; | |
3417 | int _result; | |
3418 | wxComboBox * _arg0; | |
3419 | PyObject * _argo0 = 0; | |
3420 | char *_kwnames[] = { "self", NULL }; | |
3421 | ||
3422 | self = self; | |
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetCount",_kwnames,&_argo0)) | |
3424 | return NULL; | |
3425 | if (_argo0) { | |
3426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetCount. Expected _wxComboBox_p."); | |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
3432 | { | |
474c48f9 | 3433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3434 | _result = (int )wxComboBox_GetCount(_arg0); |
c70fd24f | 3435 | |
474c48f9 | 3436 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3437 | if (PyErr_Occurred()) return NULL; |
3438 | } _resultobj = Py_BuildValue("i",_result); | |
3439 | return _resultobj; | |
3440 | } | |
3441 | ||
3442 | #define wxComboBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) | |
3443 | static PyObject *_wrap_wxComboBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxString * _result; | |
3446 | wxComboBox * _arg0; | |
3447 | int _arg1; | |
3448 | PyObject * _argo0 = 0; | |
3449 | char *_kwnames[] = { "self","n", NULL }; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetString",_kwnames,&_argo0,&_arg1)) | |
3453 | return NULL; | |
3454 | if (_argo0) { | |
3455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetString. Expected _wxComboBox_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | { | |
474c48f9 | 3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3463 | _result = new wxString (wxComboBox_GetString(_arg0,_arg1)); |
c70fd24f | 3464 | |
474c48f9 | 3465 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3466 | if (PyErr_Occurred()) return NULL; |
3467 | }{ | |
c8bc7bb8 | 3468 | #if wxUSE_UNICODE |
b67a9327 | 3469 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3470 | #else |
c70fd24f | 3471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3472 | #endif |
c70fd24f RD |
3473 | } |
3474 | { | |
3475 | delete _result; | |
3476 | } | |
3477 | return _resultobj; | |
3478 | } | |
3479 | ||
3480 | #define wxComboBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
3481 | static PyObject *_wrap_wxComboBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3482 | PyObject * _resultobj; | |
3483 | int _result; | |
3484 | wxComboBox * _arg0; | |
3485 | wxString * _arg1; | |
3486 | PyObject * _argo0 = 0; | |
3487 | PyObject * _obj1 = 0; | |
3488 | char *_kwnames[] = { "self","s", NULL }; | |
3489 | ||
3490 | self = self; | |
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxComboBox_FindString",_kwnames,&_argo0,&_obj1)) | |
3492 | return NULL; | |
3493 | if (_argo0) { | |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_FindString. Expected _wxComboBox_p."); | |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
3500 | { | |
c8bc7bb8 RD |
3501 | _arg1 = wxString_in_helper(_obj1); |
3502 | if (_arg1 == NULL) | |
c70fd24f | 3503 | return NULL; |
c70fd24f RD |
3504 | } |
3505 | { | |
474c48f9 | 3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3507 | _result = (int )wxComboBox_FindString(_arg0,*_arg1); |
c70fd24f | 3508 | |
474c48f9 | 3509 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3510 | if (PyErr_Occurred()) return NULL; |
3511 | } _resultobj = Py_BuildValue("i",_result); | |
3512 | { | |
3513 | if (_obj1) | |
3514 | delete _arg1; | |
3515 | } | |
3516 | return _resultobj; | |
3517 | } | |
3518 | ||
3519 | #define wxComboBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3520 | static PyObject *_wrap_wxComboBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject * _resultobj; | |
3522 | int _result; | |
3523 | wxComboBox * _arg0; | |
3524 | PyObject * _argo0 = 0; | |
3525 | char *_kwnames[] = { "self", NULL }; | |
3526 | ||
3527 | self = self; | |
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetSelection",_kwnames,&_argo0)) | |
3529 | return NULL; | |
3530 | if (_argo0) { | |
3531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetSelection. Expected _wxComboBox_p."); | |
3534 | return NULL; | |
3535 | } | |
3536 | } | |
3537 | { | |
474c48f9 | 3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3539 | _result = (int )wxComboBox_GetSelection(_arg0); |
c70fd24f | 3540 | |
474c48f9 | 3541 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3542 | if (PyErr_Occurred()) return NULL; |
3543 | } _resultobj = Py_BuildValue("i",_result); | |
3544 | return _resultobj; | |
3545 | } | |
3546 | ||
3547 | #define wxComboBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
3548 | static PyObject *_wrap_wxComboBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject * _resultobj; | |
3550 | wxString * _result; | |
3551 | wxComboBox * _arg0; | |
3552 | PyObject * _argo0 = 0; | |
3553 | char *_kwnames[] = { "self", NULL }; | |
3554 | ||
3555 | self = self; | |
3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxComboBox_GetStringSelection",_kwnames,&_argo0)) | |
3557 | return NULL; | |
3558 | if (_argo0) { | |
3559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetStringSelection. Expected _wxComboBox_p."); | |
3562 | return NULL; | |
3563 | } | |
3564 | } | |
3565 | { | |
474c48f9 | 3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3567 | _result = new wxString (wxComboBox_GetStringSelection(_arg0)); |
c70fd24f | 3568 | |
474c48f9 | 3569 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3570 | if (PyErr_Occurred()) return NULL; |
3571 | }{ | |
c8bc7bb8 | 3572 | #if wxUSE_UNICODE |
b67a9327 | 3573 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3574 | #else |
c70fd24f | 3575 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3576 | #endif |
c70fd24f RD |
3577 | } |
3578 | { | |
3579 | delete _result; | |
3580 | } | |
3581 | return _resultobj; | |
3582 | } | |
3583 | ||
3584 | static void wxComboBox_Append(wxComboBox *self,const wxString & item,PyObject * clientData) { | |
3585 | if (clientData) { | |
3586 | wxPyClientData* data = new wxPyClientData(clientData); | |
3587 | self->Append(item, data); | |
3588 | } else | |
3589 | self->Append(item); | |
3590 | } | |
3591 | static PyObject *_wrap_wxComboBox_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3592 | PyObject * _resultobj; | |
3593 | wxComboBox * _arg0; | |
3594 | wxString * _arg1; | |
3595 | PyObject * _arg2 = (PyObject *) NULL; | |
3596 | PyObject * _argo0 = 0; | |
3597 | PyObject * _obj1 = 0; | |
3598 | PyObject * _obj2 = 0; | |
3599 | char *_kwnames[] = { "self","item","clientData", NULL }; | |
3600 | ||
3601 | self = self; | |
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxComboBox_Append",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3603 | return NULL; | |
3604 | if (_argo0) { | |
3605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_Append. Expected _wxComboBox_p."); | |
3608 | return NULL; | |
3609 | } | |
3610 | } | |
3611 | { | |
c8bc7bb8 RD |
3612 | _arg1 = wxString_in_helper(_obj1); |
3613 | if (_arg1 == NULL) | |
c70fd24f | 3614 | return NULL; |
c70fd24f RD |
3615 | } |
3616 | if (_obj2) | |
3617 | { | |
3618 | _arg2 = _obj2; | |
3619 | } | |
3620 | { | |
474c48f9 | 3621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3622 | wxComboBox_Append(_arg0,*_arg1,_arg2); |
c70fd24f | 3623 | |
474c48f9 | 3624 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3625 | if (PyErr_Occurred()) return NULL; |
3626 | } Py_INCREF(Py_None); | |
3627 | _resultobj = Py_None; | |
3628 | { | |
3629 | if (_obj1) | |
3630 | delete _arg1; | |
3631 | } | |
3632 | return _resultobj; | |
3633 | } | |
3634 | ||
3635 | static PyObject * wxComboBox_GetClientData(wxComboBox *self,int n) { | |
1dbd5759 RD |
3636 | #ifdef __WXMAC__ |
3637 | wxPyClientData* data = (wxPyClientData*)self->wxItemContainer::GetClientObject(n); | |
3638 | #else | |
c70fd24f | 3639 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); |
1dbd5759 | 3640 | #endif |
c70fd24f RD |
3641 | if (data) { |
3642 | Py_INCREF(data->m_obj); | |
3643 | return data->m_obj; | |
3644 | } else { | |
3645 | Py_INCREF(Py_None); | |
3646 | return Py_None; | |
3647 | } | |
3648 | } | |
3649 | static PyObject *_wrap_wxComboBox_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3650 | PyObject * _resultobj; | |
3651 | PyObject * _result; | |
3652 | wxComboBox * _arg0; | |
3653 | int _arg1; | |
3654 | PyObject * _argo0 = 0; | |
3655 | char *_kwnames[] = { "self","n", NULL }; | |
3656 | ||
3657 | self = self; | |
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxComboBox_GetClientData",_kwnames,&_argo0,&_arg1)) | |
3659 | return NULL; | |
3660 | if (_argo0) { | |
3661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_GetClientData. Expected _wxComboBox_p."); | |
3664 | return NULL; | |
3665 | } | |
3666 | } | |
3667 | { | |
474c48f9 | 3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3669 | _result = (PyObject *)wxComboBox_GetClientData(_arg0,_arg1); |
c70fd24f | 3670 | |
474c48f9 | 3671 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3672 | if (PyErr_Occurred()) return NULL; |
3673 | }{ | |
3674 | _resultobj = _result; | |
3675 | } | |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
3679 | static void wxComboBox_SetClientData(wxComboBox *self,int n,PyObject * clientData) { | |
3680 | wxPyClientData* data = new wxPyClientData(clientData); | |
1dbd5759 RD |
3681 | #ifdef __WXMAC__ |
3682 | self->wxItemContainer::SetClientObject(n, data); | |
3683 | #else | |
c70fd24f | 3684 | self->SetClientObject(n, data); |
1dbd5759 | 3685 | #endif |
c70fd24f RD |
3686 | } |
3687 | static PyObject *_wrap_wxComboBox_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3688 | PyObject * _resultobj; | |
3689 | wxComboBox * _arg0; | |
3690 | int _arg1; | |
3691 | PyObject * _arg2; | |
3692 | PyObject * _argo0 = 0; | |
3693 | PyObject * _obj2 = 0; | |
3694 | char *_kwnames[] = { "self","n","clientData", NULL }; | |
3695 | ||
3696 | self = self; | |
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxComboBox_SetClientData",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3698 | return NULL; | |
3699 | if (_argo0) { | |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxComboBox_p")) { | |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxComboBox_SetClientData. Expected _wxComboBox_p."); | |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
3706 | { | |
3707 | _arg2 = _obj2; | |
3708 | } | |
3709 | { | |
474c48f9 | 3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3711 | wxComboBox_SetClientData(_arg0,_arg1,_arg2); |
c70fd24f | 3712 | |
474c48f9 | 3713 | wxPyEndAllowThreads(__tstate); |
c70fd24f RD |
3714 | if (PyErr_Occurred()) return NULL; |
3715 | } Py_INCREF(Py_None); | |
3716 | _resultobj = Py_None; | |
3717 | return _resultobj; | |
3718 | } | |
3719 | ||
70551f47 RD |
3720 | static void *SwigwxGaugeTowxControl(void *ptr) { |
3721 | wxGauge *src; | |
3722 | wxControl *dest; | |
3723 | src = (wxGauge *) ptr; | |
3724 | dest = (wxControl *) src; | |
3725 | return (void *) dest; | |
3726 | } | |
3727 | ||
3728 | static void *SwigwxGaugeTowxWindow(void *ptr) { | |
3729 | wxGauge *src; | |
3730 | wxWindow *dest; | |
3731 | src = (wxGauge *) ptr; | |
3732 | dest = (wxWindow *) src; | |
3733 | return (void *) dest; | |
3734 | } | |
3735 | ||
3736 | static void *SwigwxGaugeTowxEvtHandler(void *ptr) { | |
3737 | wxGauge *src; | |
3738 | wxEvtHandler *dest; | |
3739 | src = (wxGauge *) ptr; | |
3740 | dest = (wxEvtHandler *) src; | |
3741 | return (void *) dest; | |
3742 | } | |
3743 | ||
9df61a29 RD |
3744 | static void *SwigwxGaugeTowxObject(void *ptr) { |
3745 | wxGauge *src; | |
3746 | wxObject *dest; | |
3747 | src = (wxGauge *) ptr; | |
3748 | dest = (wxObject *) src; | |
3749 | return (void *) dest; | |
3750 | } | |
3751 | ||
70551f47 | 3752 | #define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 3753 | static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3754 | PyObject * _resultobj; |
3755 | wxGauge * _result; | |
3756 | wxWindow * _arg0; | |
3757 | wxWindowID _arg1; | |
3758 | int _arg2; | |
b68dc582 RD |
3759 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
3760 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 3761 | long _arg5 = (long ) wxGA_HORIZONTAL; |
b68dc582 | 3762 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 3763 | wxString * _arg7 = (wxString *) &wxPyGaugeNameStr; |
2d091820 | 3764 | PyObject * _argo0 = 0; |
37f6a977 RD |
3765 | wxPoint temp; |
3766 | PyObject * _obj3 = 0; | |
3767 | wxSize temp0; | |
3768 | PyObject * _obj4 = 0; | |
2d091820 | 3769 | PyObject * _argo6 = 0; |
9a74fcaf | 3770 | PyObject * _obj7 = 0; |
107e4716 | 3771 | char *_kwnames[] = { "parent","id","range","pos","size","style","validator","name", NULL }; |
70551f47 RD |
3772 | char _ptemp[128]; |
3773 | ||
3774 | self = self; | |
9a74fcaf | 3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OOlOO:new_wxGauge",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 3776 | return NULL; |
2d091820 RD |
3777 | if (_argo0) { |
3778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGauge. Expected _wxWindow_p."); |
3781 | return NULL; | |
3782 | } | |
3783 | } | |
37f6a977 RD |
3784 | if (_obj3) |
3785 | { | |
3786 | _arg3 = &temp; | |
3787 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 3788 | return NULL; |
37f6a977 RD |
3789 | } |
3790 | if (_obj4) | |
3791 | { | |
3792 | _arg4 = &temp0; | |
3793 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 3794 | return NULL; |
37f6a977 | 3795 | } |
2d091820 | 3796 | if (_argo6) { |
b67a9327 | 3797 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
70551f47 RD |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGauge. Expected _wxValidator_p."); |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
9a74fcaf RD |
3802 | if (_obj7) |
3803 | { | |
3804 | _arg7 = wxString_in_helper(_obj7); | |
3805 | if (_arg7 == NULL) | |
3806 | return NULL; | |
3807 | } | |
ab9bc19b | 3808 | { |
474c48f9 | 3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 3810 | _result = (wxGauge *)new_wxGauge(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b | 3811 | |
474c48f9 | 3812 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3813 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3814 | } if (_result) { |
3815 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3816 | _resultobj = Py_BuildValue("s",_ptemp); | |
3817 | } else { | |
3818 | Py_INCREF(Py_None); | |
3819 | _resultobj = Py_None; | |
3820 | } | |
9a74fcaf RD |
3821 | { |
3822 | if (_obj7) | |
3823 | delete _arg7; | |
3824 | } | |
70551f47 RD |
3825 | return _resultobj; |
3826 | } | |
3827 | ||
aa2a5b86 RD |
3828 | #define new_wxPreGauge() (new wxGauge()) |
3829 | static PyObject *_wrap_new_wxPreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3830 | PyObject * _resultobj; | |
3831 | wxGauge * _result; | |
3832 | char *_kwnames[] = { NULL }; | |
3833 | char _ptemp[128]; | |
3834 | ||
3835 | self = self; | |
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGauge",_kwnames)) | |
3837 | return NULL; | |
3838 | { | |
474c48f9 | 3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3840 | _result = (wxGauge *)new_wxPreGauge(); |
aa2a5b86 | 3841 | |
474c48f9 | 3842 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3843 | if (PyErr_Occurred()) return NULL; |
3844 | } if (_result) { | |
3845 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGauge_p"); | |
3846 | _resultobj = Py_BuildValue("s",_ptemp); | |
3847 | } else { | |
3848 | Py_INCREF(Py_None); | |
3849 | _resultobj = Py_None; | |
3850 | } | |
3851 | return _resultobj; | |
3852 | } | |
3853 | ||
3854 | #define wxGauge_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
3855 | static PyObject *_wrap_wxGauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3856 | PyObject * _resultobj; | |
3857 | bool _result; | |
3858 | wxGauge * _arg0; | |
3859 | wxWindow * _arg1; | |
3860 | wxWindowID _arg2; | |
3861 | int _arg3; | |
3862 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
3863 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
3864 | long _arg6 = (long ) wxGA_HORIZONTAL; | |
3865 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 3866 | wxString * _arg8 = (wxString *) &wxPyGaugeNameStr; |
aa2a5b86 RD |
3867 | PyObject * _argo0 = 0; |
3868 | PyObject * _argo1 = 0; | |
3869 | wxPoint temp; | |
3870 | PyObject * _obj4 = 0; | |
3871 | wxSize temp0; | |
3872 | PyObject * _obj5 = 0; | |
3873 | PyObject * _argo7 = 0; | |
9a74fcaf | 3874 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
3875 | char *_kwnames[] = { "self","parent","id","range","pos","size","style","validator","name", NULL }; |
3876 | ||
3877 | self = self; | |
9a74fcaf | 3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|OOlOO:wxGauge_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
3879 | return NULL; |
3880 | if (_argo0) { | |
3881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
3883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_Create. Expected _wxGauge_p."); | |
3884 | return NULL; | |
3885 | } | |
3886 | } | |
3887 | if (_argo1) { | |
3888 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGauge_Create. Expected _wxWindow_p."); | |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
3894 | if (_obj4) | |
3895 | { | |
3896 | _arg4 = &temp; | |
3897 | if (! wxPoint_helper(_obj4, &_arg4)) | |
3898 | return NULL; | |
3899 | } | |
3900 | if (_obj5) | |
3901 | { | |
3902 | _arg5 = &temp0; | |
3903 | if (! wxSize_helper(_obj5, &_arg5)) | |
3904 | return NULL; | |
3905 | } | |
3906 | if (_argo7) { | |
b67a9327 | 3907 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
3908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxGauge_Create. Expected _wxValidator_p."); |
3909 | return NULL; | |
3910 | } | |
3911 | } | |
9a74fcaf RD |
3912 | if (_obj8) |
3913 | { | |
3914 | _arg8 = wxString_in_helper(_obj8); | |
3915 | if (_arg8 == NULL) | |
3916 | return NULL; | |
3917 | } | |
aa2a5b86 | 3918 | { |
474c48f9 | 3919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 3920 | _result = (bool )wxGauge_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 3921 | |
474c48f9 | 3922 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3923 | if (PyErr_Occurred()) return NULL; |
3924 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
3925 | { |
3926 | if (_obj8) | |
3927 | delete _arg8; | |
3928 | } | |
aa2a5b86 RD |
3929 | return _resultobj; |
3930 | } | |
3931 | ||
70551f47 | 3932 | #define wxGauge_GetBezelFace(_swigobj) (_swigobj->GetBezelFace()) |
107e4716 | 3933 | static PyObject *_wrap_wxGauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3934 | PyObject * _resultobj; |
3935 | int _result; | |
3936 | wxGauge * _arg0; | |
2d091820 | 3937 | PyObject * _argo0 = 0; |
107e4716 | 3938 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3939 | |
3940 | self = self; | |
107e4716 | 3941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetBezelFace",_kwnames,&_argo0)) |
70551f47 | 3942 | return NULL; |
2d091820 RD |
3943 | if (_argo0) { |
3944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetBezelFace. Expected _wxGauge_p."); |
3947 | return NULL; | |
3948 | } | |
3949 | } | |
ab9bc19b | 3950 | { |
474c48f9 | 3951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3952 | _result = (int )wxGauge_GetBezelFace(_arg0); |
ab9bc19b | 3953 | |
474c48f9 | 3954 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3955 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3956 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3957 | return _resultobj; |
3958 | } | |
3959 | ||
3960 | #define wxGauge_GetRange(_swigobj) (_swigobj->GetRange()) | |
107e4716 | 3961 | static PyObject *_wrap_wxGauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3962 | PyObject * _resultobj; |
3963 | int _result; | |
3964 | wxGauge * _arg0; | |
2d091820 | 3965 | PyObject * _argo0 = 0; |
107e4716 | 3966 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3967 | |
3968 | self = self; | |
107e4716 | 3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetRange",_kwnames,&_argo0)) |
70551f47 | 3970 | return NULL; |
2d091820 RD |
3971 | if (_argo0) { |
3972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
3974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetRange. Expected _wxGauge_p."); |
3975 | return NULL; | |
3976 | } | |
3977 | } | |
ab9bc19b | 3978 | { |
474c48f9 | 3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3980 | _result = (int )wxGauge_GetRange(_arg0); |
ab9bc19b | 3981 | |
474c48f9 | 3982 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3983 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3984 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3985 | return _resultobj; |
3986 | } | |
3987 | ||
3988 | #define wxGauge_GetShadowWidth(_swigobj) (_swigobj->GetShadowWidth()) | |
107e4716 | 3989 | static PyObject *_wrap_wxGauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3990 | PyObject * _resultobj; |
3991 | int _result; | |
3992 | wxGauge * _arg0; | |
2d091820 | 3993 | PyObject * _argo0 = 0; |
107e4716 | 3994 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3995 | |
3996 | self = self; | |
107e4716 | 3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetShadowWidth",_kwnames,&_argo0)) |
70551f47 | 3998 | return NULL; |
2d091820 RD |
3999 | if (_argo0) { |
4000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetShadowWidth. Expected _wxGauge_p."); |
4003 | return NULL; | |
4004 | } | |
4005 | } | |
ab9bc19b | 4006 | { |
474c48f9 | 4007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4008 | _result = (int )wxGauge_GetShadowWidth(_arg0); |
ab9bc19b | 4009 | |
474c48f9 | 4010 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4011 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4012 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4013 | return _resultobj; |
4014 | } | |
4015 | ||
4016 | #define wxGauge_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 4017 | static PyObject *_wrap_wxGauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4018 | PyObject * _resultobj; |
4019 | int _result; | |
4020 | wxGauge * _arg0; | |
2d091820 | 4021 | PyObject * _argo0 = 0; |
107e4716 | 4022 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4023 | |
4024 | self = self; | |
107e4716 | 4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGauge_GetValue",_kwnames,&_argo0)) |
70551f47 | 4026 | return NULL; |
2d091820 RD |
4027 | if (_argo0) { |
4028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_GetValue. Expected _wxGauge_p."); |
4031 | return NULL; | |
4032 | } | |
4033 | } | |
ab9bc19b | 4034 | { |
474c48f9 | 4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4036 | _result = (int )wxGauge_GetValue(_arg0); |
ab9bc19b | 4037 | |
474c48f9 | 4038 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4039 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4040 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4041 | return _resultobj; |
4042 | } | |
4043 | ||
4044 | #define wxGauge_SetBezelFace(_swigobj,_swigarg0) (_swigobj->SetBezelFace(_swigarg0)) | |
107e4716 | 4045 | static PyObject *_wrap_wxGauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4046 | PyObject * _resultobj; |
4047 | wxGauge * _arg0; | |
4048 | int _arg1; | |
2d091820 | 4049 | PyObject * _argo0 = 0; |
107e4716 | 4050 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
4051 | |
4052 | self = self; | |
107e4716 | 4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetBezelFace",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4054 | return NULL; |
2d091820 RD |
4055 | if (_argo0) { |
4056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetBezelFace. Expected _wxGauge_p."); |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
ab9bc19b | 4062 | { |
474c48f9 | 4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4064 | wxGauge_SetBezelFace(_arg0,_arg1); |
ab9bc19b | 4065 | |
474c48f9 | 4066 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4067 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4068 | } Py_INCREF(Py_None); |
70551f47 RD |
4069 | _resultobj = Py_None; |
4070 | return _resultobj; | |
4071 | } | |
4072 | ||
4073 | #define wxGauge_SetRange(_swigobj,_swigarg0) (_swigobj->SetRange(_swigarg0)) | |
107e4716 | 4074 | static PyObject *_wrap_wxGauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4075 | PyObject * _resultobj; |
4076 | wxGauge * _arg0; | |
4077 | int _arg1; | |
2d091820 | 4078 | PyObject * _argo0 = 0; |
107e4716 | 4079 | char *_kwnames[] = { "self","range", NULL }; |
70551f47 RD |
4080 | |
4081 | self = self; | |
107e4716 | 4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4083 | return NULL; |
2d091820 RD |
4084 | if (_argo0) { |
4085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetRange. Expected _wxGauge_p."); |
4088 | return NULL; | |
4089 | } | |
4090 | } | |
ab9bc19b | 4091 | { |
474c48f9 | 4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4093 | wxGauge_SetRange(_arg0,_arg1); |
ab9bc19b | 4094 | |
474c48f9 | 4095 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4096 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4097 | } Py_INCREF(Py_None); |
70551f47 RD |
4098 | _resultobj = Py_None; |
4099 | return _resultobj; | |
4100 | } | |
4101 | ||
4102 | #define wxGauge_SetShadowWidth(_swigobj,_swigarg0) (_swigobj->SetShadowWidth(_swigarg0)) | |
107e4716 | 4103 | static PyObject *_wrap_wxGauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4104 | PyObject * _resultobj; |
4105 | wxGauge * _arg0; | |
4106 | int _arg1; | |
2d091820 | 4107 | PyObject * _argo0 = 0; |
107e4716 | 4108 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
4109 | |
4110 | self = self; | |
107e4716 | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetShadowWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4112 | return NULL; |
2d091820 RD |
4113 | if (_argo0) { |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetShadowWidth. Expected _wxGauge_p."); |
4117 | return NULL; | |
4118 | } | |
4119 | } | |
ab9bc19b | 4120 | { |
474c48f9 | 4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4122 | wxGauge_SetShadowWidth(_arg0,_arg1); |
ab9bc19b | 4123 | |
474c48f9 | 4124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4125 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4126 | } Py_INCREF(Py_None); |
70551f47 RD |
4127 | _resultobj = Py_None; |
4128 | return _resultobj; | |
4129 | } | |
4130 | ||
4131 | #define wxGauge_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 4132 | static PyObject *_wrap_wxGauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4133 | PyObject * _resultobj; |
4134 | wxGauge * _arg0; | |
4135 | int _arg1; | |
2d091820 | 4136 | PyObject * _argo0 = 0; |
107e4716 | 4137 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
4138 | |
4139 | self = self; | |
107e4716 | 4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGauge_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4141 | return NULL; |
2d091820 RD |
4142 | if (_argo0) { |
4143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGauge_p")) { | |
70551f47 RD |
4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGauge_SetValue. Expected _wxGauge_p."); |
4146 | return NULL; | |
4147 | } | |
4148 | } | |
ab9bc19b | 4149 | { |
474c48f9 | 4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4151 | wxGauge_SetValue(_arg0,_arg1); |
ab9bc19b | 4152 | |
474c48f9 | 4153 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4154 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4155 | } Py_INCREF(Py_None); |
70551f47 RD |
4156 | _resultobj = Py_None; |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | static void *SwigwxStaticBoxTowxControl(void *ptr) { | |
4161 | wxStaticBox *src; | |
4162 | wxControl *dest; | |
4163 | src = (wxStaticBox *) ptr; | |
4164 | dest = (wxControl *) src; | |
4165 | return (void *) dest; | |
4166 | } | |
4167 | ||
4168 | static void *SwigwxStaticBoxTowxWindow(void *ptr) { | |
4169 | wxStaticBox *src; | |
4170 | wxWindow *dest; | |
4171 | src = (wxStaticBox *) ptr; | |
4172 | dest = (wxWindow *) src; | |
4173 | return (void *) dest; | |
4174 | } | |
4175 | ||
4176 | static void *SwigwxStaticBoxTowxEvtHandler(void *ptr) { | |
4177 | wxStaticBox *src; | |
4178 | wxEvtHandler *dest; | |
4179 | src = (wxStaticBox *) ptr; | |
4180 | dest = (wxEvtHandler *) src; | |
4181 | return (void *) dest; | |
4182 | } | |
4183 | ||
9df61a29 RD |
4184 | static void *SwigwxStaticBoxTowxObject(void *ptr) { |
4185 | wxStaticBox *src; | |
4186 | wxObject *dest; | |
4187 | src = (wxStaticBox *) ptr; | |
4188 | dest = (wxObject *) src; | |
4189 | return (void *) dest; | |
4190 | } | |
4191 | ||
70551f47 | 4192 | #define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4193 | static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4194 | PyObject * _resultobj; |
4195 | wxStaticBox * _result; | |
4196 | wxWindow * _arg0; | |
4197 | wxWindowID _arg1; | |
4198 | wxString * _arg2; | |
b68dc582 RD |
4199 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4200 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4201 | long _arg5 = (long ) 0; |
9a74fcaf | 4202 | wxString * _arg6 = (wxString *) &wxPyStaticBoxNameStr; |
2d091820 | 4203 | PyObject * _argo0 = 0; |
70551f47 | 4204 | PyObject * _obj2 = 0; |
37f6a977 RD |
4205 | wxPoint temp; |
4206 | PyObject * _obj3 = 0; | |
4207 | wxSize temp0; | |
4208 | PyObject * _obj4 = 0; | |
9a74fcaf | 4209 | PyObject * _obj6 = 0; |
107e4716 | 4210 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4211 | char _ptemp[128]; |
4212 | ||
4213 | self = self; | |
9a74fcaf | 4214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
70551f47 | 4215 | return NULL; |
2d091820 RD |
4216 | if (_argo0) { |
4217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBox. Expected _wxWindow_p."); |
4220 | return NULL; | |
4221 | } | |
4222 | } | |
4223 | { | |
c8bc7bb8 RD |
4224 | _arg2 = wxString_in_helper(_obj2); |
4225 | if (_arg2 == NULL) | |
2cd2fac8 | 4226 | return NULL; |
70551f47 | 4227 | } |
37f6a977 RD |
4228 | if (_obj3) |
4229 | { | |
4230 | _arg3 = &temp; | |
4231 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4232 | return NULL; |
37f6a977 RD |
4233 | } |
4234 | if (_obj4) | |
4235 | { | |
4236 | _arg4 = &temp0; | |
4237 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4238 | return NULL; |
9a74fcaf RD |
4239 | } |
4240 | if (_obj6) | |
4241 | { | |
4242 | _arg6 = wxString_in_helper(_obj6); | |
4243 | if (_arg6 == NULL) | |
4244 | return NULL; | |
37f6a977 | 4245 | } |
ab9bc19b | 4246 | { |
474c48f9 | 4247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4248 | _result = (wxStaticBox *)new_wxStaticBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
ab9bc19b | 4249 | |
474c48f9 | 4250 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4251 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4252 | } if (_result) { |
4253 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4254 | _resultobj = Py_BuildValue("s",_ptemp); | |
4255 | } else { | |
4256 | Py_INCREF(Py_None); | |
4257 | _resultobj = Py_None; | |
4258 | } | |
70551f47 RD |
4259 | { |
4260 | if (_obj2) | |
4261 | delete _arg2; | |
9a74fcaf RD |
4262 | } |
4263 | { | |
4264 | if (_obj6) | |
4265 | delete _arg6; | |
70551f47 RD |
4266 | } |
4267 | return _resultobj; | |
4268 | } | |
4269 | ||
aa2a5b86 RD |
4270 | #define new_wxPreStaticBox() (new wxStaticBox()) |
4271 | static PyObject *_wrap_new_wxPreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject * _resultobj; | |
4273 | wxStaticBox * _result; | |
4274 | char *_kwnames[] = { NULL }; | |
4275 | char _ptemp[128]; | |
4276 | ||
4277 | self = self; | |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBox",_kwnames)) | |
4279 | return NULL; | |
4280 | { | |
474c48f9 | 4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4282 | _result = (wxStaticBox *)new_wxPreStaticBox(); |
aa2a5b86 | 4283 | |
474c48f9 | 4284 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4285 | if (PyErr_Occurred()) return NULL; |
4286 | } if (_result) { | |
4287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p"); | |
4288 | _resultobj = Py_BuildValue("s",_ptemp); | |
4289 | } else { | |
4290 | Py_INCREF(Py_None); | |
4291 | _resultobj = Py_None; | |
4292 | } | |
4293 | return _resultobj; | |
4294 | } | |
4295 | ||
4296 | #define wxStaticBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4297 | static PyObject *_wrap_wxStaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject * _resultobj; | |
4299 | bool _result; | |
4300 | wxStaticBox * _arg0; | |
4301 | wxWindow * _arg1; | |
4302 | wxWindowID _arg2; | |
4303 | wxString * _arg3; | |
4304 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4305 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4306 | long _arg6 = (long ) 0; | |
9a74fcaf | 4307 | wxString * _arg7 = (wxString *) &wxPyStaticBoxNameStr; |
aa2a5b86 RD |
4308 | PyObject * _argo0 = 0; |
4309 | PyObject * _argo1 = 0; | |
4310 | PyObject * _obj3 = 0; | |
4311 | wxPoint temp; | |
4312 | PyObject * _obj4 = 0; | |
4313 | wxSize temp0; | |
4314 | PyObject * _obj5 = 0; | |
9a74fcaf | 4315 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
4316 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4317 | ||
4318 | self = self; | |
9a74fcaf | 4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
aa2a5b86 RD |
4320 | return NULL; |
4321 | if (_argo0) { | |
4322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBox_p")) { | |
4324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBox_Create. Expected _wxStaticBox_p."); | |
4325 | return NULL; | |
4326 | } | |
4327 | } | |
4328 | if (_argo1) { | |
4329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBox_Create. Expected _wxWindow_p."); | |
4332 | return NULL; | |
4333 | } | |
4334 | } | |
4335 | { | |
c8bc7bb8 RD |
4336 | _arg3 = wxString_in_helper(_obj3); |
4337 | if (_arg3 == NULL) | |
aa2a5b86 | 4338 | return NULL; |
aa2a5b86 RD |
4339 | } |
4340 | if (_obj4) | |
4341 | { | |
4342 | _arg4 = &temp; | |
4343 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4344 | return NULL; | |
4345 | } | |
4346 | if (_obj5) | |
4347 | { | |
4348 | _arg5 = &temp0; | |
4349 | if (! wxSize_helper(_obj5, &_arg5)) | |
4350 | return NULL; | |
9a74fcaf RD |
4351 | } |
4352 | if (_obj7) | |
4353 | { | |
4354 | _arg7 = wxString_in_helper(_obj7); | |
4355 | if (_arg7 == NULL) | |
4356 | return NULL; | |
aa2a5b86 RD |
4357 | } |
4358 | { | |
474c48f9 | 4359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4360 | _result = (bool )wxStaticBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
aa2a5b86 | 4361 | |
474c48f9 | 4362 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4363 | if (PyErr_Occurred()) return NULL; |
4364 | } _resultobj = Py_BuildValue("i",_result); | |
4365 | { | |
4366 | if (_obj3) | |
4367 | delete _arg3; | |
9a74fcaf RD |
4368 | } |
4369 | { | |
4370 | if (_obj7) | |
4371 | delete _arg7; | |
aa2a5b86 RD |
4372 | } |
4373 | return _resultobj; | |
4374 | } | |
4375 | ||
d24a34bb RD |
4376 | static void *SwigwxStaticLineTowxControl(void *ptr) { |
4377 | wxStaticLine *src; | |
4378 | wxControl *dest; | |
4379 | src = (wxStaticLine *) ptr; | |
4380 | dest = (wxControl *) src; | |
4381 | return (void *) dest; | |
4382 | } | |
4383 | ||
4384 | static void *SwigwxStaticLineTowxWindow(void *ptr) { | |
4385 | wxStaticLine *src; | |
4386 | wxWindow *dest; | |
4387 | src = (wxStaticLine *) ptr; | |
4388 | dest = (wxWindow *) src; | |
4389 | return (void *) dest; | |
4390 | } | |
4391 | ||
4392 | static void *SwigwxStaticLineTowxEvtHandler(void *ptr) { | |
4393 | wxStaticLine *src; | |
4394 | wxEvtHandler *dest; | |
4395 | src = (wxStaticLine *) ptr; | |
4396 | dest = (wxEvtHandler *) src; | |
4397 | return (void *) dest; | |
4398 | } | |
4399 | ||
9df61a29 RD |
4400 | static void *SwigwxStaticLineTowxObject(void *ptr) { |
4401 | wxStaticLine *src; | |
4402 | wxObject *dest; | |
4403 | src = (wxStaticLine *) ptr; | |
4404 | dest = (wxObject *) src; | |
4405 | return (void *) dest; | |
4406 | } | |
4407 | ||
d24a34bb | 4408 | #define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 4409 | static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4410 | PyObject * _resultobj; |
4411 | wxStaticLine * _result; | |
4412 | wxWindow * _arg0; | |
4413 | wxWindowID _arg1; | |
b68dc582 RD |
4414 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
4415 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4416 | long _arg4 = (long ) wxLI_HORIZONTAL; |
9a74fcaf | 4417 | wxString * _arg5 = (wxString *) &wxPyStaticTextNameStr; |
2d091820 | 4418 | PyObject * _argo0 = 0; |
37f6a977 RD |
4419 | wxPoint temp; |
4420 | PyObject * _obj2 = 0; | |
4421 | wxSize temp0; | |
4422 | PyObject * _obj3 = 0; | |
9a74fcaf | 4423 | PyObject * _obj5 = 0; |
107e4716 | 4424 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d24a34bb RD |
4425 | char _ptemp[128]; |
4426 | ||
4427 | self = self; | |
9a74fcaf | 4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxStaticLine",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
d24a34bb | 4429 | return NULL; |
2d091820 RD |
4430 | if (_argo0) { |
4431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
4433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticLine. Expected _wxWindow_p."); |
4434 | return NULL; | |
4435 | } | |
4436 | } | |
37f6a977 RD |
4437 | if (_obj2) |
4438 | { | |
4439 | _arg2 = &temp; | |
4440 | if (! wxPoint_helper(_obj2, &_arg2)) | |
d24a34bb | 4441 | return NULL; |
37f6a977 RD |
4442 | } |
4443 | if (_obj3) | |
4444 | { | |
4445 | _arg3 = &temp0; | |
4446 | if (! wxSize_helper(_obj3, &_arg3)) | |
d24a34bb | 4447 | return NULL; |
9a74fcaf RD |
4448 | } |
4449 | if (_obj5) | |
4450 | { | |
4451 | _arg5 = wxString_in_helper(_obj5); | |
4452 | if (_arg5 == NULL) | |
4453 | return NULL; | |
37f6a977 | 4454 | } |
d24a34bb | 4455 | { |
474c48f9 | 4456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4457 | _result = (wxStaticLine *)new_wxStaticLine(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
d24a34bb | 4458 | |
474c48f9 | 4459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4460 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4461 | } if (_result) { |
4462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4463 | _resultobj = Py_BuildValue("s",_ptemp); | |
4464 | } else { | |
4465 | Py_INCREF(Py_None); | |
4466 | _resultobj = Py_None; | |
4467 | } | |
9a74fcaf RD |
4468 | { |
4469 | if (_obj5) | |
4470 | delete _arg5; | |
4471 | } | |
d24a34bb RD |
4472 | return _resultobj; |
4473 | } | |
4474 | ||
aa2a5b86 RD |
4475 | #define new_wxPreStaticLine() (new wxStaticLine()) |
4476 | static PyObject *_wrap_new_wxPreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4477 | PyObject * _resultobj; | |
4478 | wxStaticLine * _result; | |
4479 | char *_kwnames[] = { NULL }; | |
4480 | char _ptemp[128]; | |
4481 | ||
4482 | self = self; | |
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticLine",_kwnames)) | |
4484 | return NULL; | |
4485 | { | |
474c48f9 | 4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4487 | _result = (wxStaticLine *)new_wxPreStaticLine(); |
aa2a5b86 | 4488 | |
474c48f9 | 4489 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4490 | if (PyErr_Occurred()) return NULL; |
4491 | } if (_result) { | |
4492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticLine_p"); | |
4493 | _resultobj = Py_BuildValue("s",_ptemp); | |
4494 | } else { | |
4495 | Py_INCREF(Py_None); | |
4496 | _resultobj = Py_None; | |
4497 | } | |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
4501 | #define wxStaticLine_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4502 | static PyObject *_wrap_wxStaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject * _resultobj; | |
4504 | bool _result; | |
4505 | wxStaticLine * _arg0; | |
4506 | wxWindow * _arg1; | |
4507 | wxWindowID _arg2; | |
4508 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4509 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4510 | long _arg5 = (long ) wxLI_HORIZONTAL; | |
9a74fcaf | 4511 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
aa2a5b86 RD |
4512 | PyObject * _argo0 = 0; |
4513 | PyObject * _argo1 = 0; | |
4514 | wxPoint temp; | |
4515 | PyObject * _obj3 = 0; | |
4516 | wxSize temp0; | |
4517 | PyObject * _obj4 = 0; | |
9a74fcaf | 4518 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
4519 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
4520 | ||
4521 | self = self; | |
9a74fcaf | 4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxStaticLine_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
4523 | return NULL; |
4524 | if (_argo0) { | |
4525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticLine_p")) { | |
4527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticLine_Create. Expected _wxStaticLine_p."); | |
4528 | return NULL; | |
4529 | } | |
4530 | } | |
4531 | if (_argo1) { | |
4532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticLine_Create. Expected _wxWindow_p."); | |
4535 | return NULL; | |
4536 | } | |
4537 | } | |
4538 | if (_obj3) | |
4539 | { | |
4540 | _arg3 = &temp; | |
4541 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4542 | return NULL; | |
4543 | } | |
4544 | if (_obj4) | |
4545 | { | |
4546 | _arg4 = &temp0; | |
4547 | if (! wxSize_helper(_obj4, &_arg4)) | |
4548 | return NULL; | |
9a74fcaf RD |
4549 | } |
4550 | if (_obj6) | |
4551 | { | |
4552 | _arg6 = wxString_in_helper(_obj6); | |
4553 | if (_arg6 == NULL) | |
4554 | return NULL; | |
aa2a5b86 RD |
4555 | } |
4556 | { | |
474c48f9 | 4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4558 | _result = (bool )wxStaticLine_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 4559 | |
474c48f9 | 4560 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4561 | if (PyErr_Occurred()) return NULL; |
4562 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
4563 | { |
4564 | if (_obj6) | |
4565 | delete _arg6; | |
4566 | } | |
aa2a5b86 RD |
4567 | return _resultobj; |
4568 | } | |
4569 | ||
70551f47 RD |
4570 | static void *SwigwxStaticTextTowxControl(void *ptr) { |
4571 | wxStaticText *src; | |
4572 | wxControl *dest; | |
4573 | src = (wxStaticText *) ptr; | |
4574 | dest = (wxControl *) src; | |
4575 | return (void *) dest; | |
4576 | } | |
4577 | ||
4578 | static void *SwigwxStaticTextTowxWindow(void *ptr) { | |
4579 | wxStaticText *src; | |
4580 | wxWindow *dest; | |
4581 | src = (wxStaticText *) ptr; | |
4582 | dest = (wxWindow *) src; | |
4583 | return (void *) dest; | |
4584 | } | |
4585 | ||
4586 | static void *SwigwxStaticTextTowxEvtHandler(void *ptr) { | |
4587 | wxStaticText *src; | |
4588 | wxEvtHandler *dest; | |
4589 | src = (wxStaticText *) ptr; | |
4590 | dest = (wxEvtHandler *) src; | |
4591 | return (void *) dest; | |
4592 | } | |
4593 | ||
9df61a29 RD |
4594 | static void *SwigwxStaticTextTowxObject(void *ptr) { |
4595 | wxStaticText *src; | |
4596 | wxObject *dest; | |
4597 | src = (wxStaticText *) ptr; | |
4598 | dest = (wxObject *) src; | |
4599 | return (void *) dest; | |
4600 | } | |
4601 | ||
70551f47 | 4602 | #define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 4603 | static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4604 | PyObject * _resultobj; |
4605 | wxStaticText * _result; | |
4606 | wxWindow * _arg0; | |
4607 | wxWindowID _arg1; | |
4608 | wxString * _arg2; | |
b68dc582 RD |
4609 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
4610 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 4611 | long _arg5 = (long ) 0; |
9a74fcaf | 4612 | wxString * _arg6 = (wxString *) &wxPyStaticTextNameStr; |
2d091820 | 4613 | PyObject * _argo0 = 0; |
70551f47 | 4614 | PyObject * _obj2 = 0; |
37f6a977 RD |
4615 | wxPoint temp; |
4616 | PyObject * _obj3 = 0; | |
4617 | wxSize temp0; | |
4618 | PyObject * _obj4 = 0; | |
9a74fcaf | 4619 | PyObject * _obj6 = 0; |
107e4716 | 4620 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
70551f47 RD |
4621 | char _ptemp[128]; |
4622 | ||
4623 | self = self; | |
9a74fcaf | 4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticText",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
70551f47 | 4625 | return NULL; |
2d091820 RD |
4626 | if (_argo0) { |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticText. Expected _wxWindow_p."); |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
c8bc7bb8 RD |
4634 | _arg2 = wxString_in_helper(_obj2); |
4635 | if (_arg2 == NULL) | |
2cd2fac8 | 4636 | return NULL; |
70551f47 | 4637 | } |
37f6a977 RD |
4638 | if (_obj3) |
4639 | { | |
4640 | _arg3 = &temp; | |
4641 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4642 | return NULL; |
37f6a977 RD |
4643 | } |
4644 | if (_obj4) | |
4645 | { | |
4646 | _arg4 = &temp0; | |
4647 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4648 | return NULL; |
9a74fcaf RD |
4649 | } |
4650 | if (_obj6) | |
4651 | { | |
4652 | _arg6 = wxString_in_helper(_obj6); | |
4653 | if (_arg6 == NULL) | |
4654 | return NULL; | |
37f6a977 | 4655 | } |
ab9bc19b | 4656 | { |
474c48f9 | 4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4658 | _result = (wxStaticText *)new_wxStaticText(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
ab9bc19b | 4659 | |
474c48f9 | 4660 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4661 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4662 | } if (_result) { |
4663 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4664 | _resultobj = Py_BuildValue("s",_ptemp); | |
4665 | } else { | |
4666 | Py_INCREF(Py_None); | |
4667 | _resultobj = Py_None; | |
4668 | } | |
70551f47 RD |
4669 | { |
4670 | if (_obj2) | |
4671 | delete _arg2; | |
9a74fcaf RD |
4672 | } |
4673 | { | |
4674 | if (_obj6) | |
4675 | delete _arg6; | |
70551f47 RD |
4676 | } |
4677 | return _resultobj; | |
4678 | } | |
4679 | ||
aa2a5b86 RD |
4680 | #define new_wxPreStaticText() (new wxStaticText()) |
4681 | static PyObject *_wrap_new_wxPreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject * _resultobj; | |
4683 | wxStaticText * _result; | |
4684 | char *_kwnames[] = { NULL }; | |
4685 | char _ptemp[128]; | |
4686 | ||
4687 | self = self; | |
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticText",_kwnames)) | |
4689 | return NULL; | |
4690 | { | |
474c48f9 | 4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4692 | _result = (wxStaticText *)new_wxPreStaticText(); |
aa2a5b86 | 4693 | |
474c48f9 | 4694 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4695 | if (PyErr_Occurred()) return NULL; |
4696 | } if (_result) { | |
4697 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticText_p"); | |
4698 | _resultobj = Py_BuildValue("s",_ptemp); | |
4699 | } else { | |
4700 | Py_INCREF(Py_None); | |
4701 | _resultobj = Py_None; | |
4702 | } | |
4703 | return _resultobj; | |
4704 | } | |
4705 | ||
4706 | #define wxStaticText_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4707 | static PyObject *_wrap_wxStaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4708 | PyObject * _resultobj; | |
4709 | bool _result; | |
4710 | wxStaticText * _arg0; | |
4711 | wxWindow * _arg1; | |
4712 | wxWindowID _arg2; | |
4713 | wxString * _arg3; | |
4714 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
4715 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
4716 | long _arg6 = (long ) 0; | |
9a74fcaf | 4717 | wxString * _arg7 = (wxString *) &wxPyStaticTextNameStr; |
aa2a5b86 RD |
4718 | PyObject * _argo0 = 0; |
4719 | PyObject * _argo1 = 0; | |
4720 | PyObject * _obj3 = 0; | |
4721 | wxPoint temp; | |
4722 | PyObject * _obj4 = 0; | |
4723 | wxSize temp0; | |
4724 | PyObject * _obj5 = 0; | |
9a74fcaf | 4725 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
4726 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","name", NULL }; |
4727 | ||
4728 | self = self; | |
9a74fcaf | 4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticText_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7)) |
aa2a5b86 RD |
4730 | return NULL; |
4731 | if (_argo0) { | |
4732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
4734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_Create. Expected _wxStaticText_p."); | |
4735 | return NULL; | |
4736 | } | |
4737 | } | |
4738 | if (_argo1) { | |
4739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticText_Create. Expected _wxWindow_p."); | |
4742 | return NULL; | |
4743 | } | |
4744 | } | |
4745 | { | |
c8bc7bb8 RD |
4746 | _arg3 = wxString_in_helper(_obj3); |
4747 | if (_arg3 == NULL) | |
aa2a5b86 | 4748 | return NULL; |
aa2a5b86 RD |
4749 | } |
4750 | if (_obj4) | |
4751 | { | |
4752 | _arg4 = &temp; | |
4753 | if (! wxPoint_helper(_obj4, &_arg4)) | |
4754 | return NULL; | |
4755 | } | |
4756 | if (_obj5) | |
4757 | { | |
4758 | _arg5 = &temp0; | |
4759 | if (! wxSize_helper(_obj5, &_arg5)) | |
4760 | return NULL; | |
9a74fcaf RD |
4761 | } |
4762 | if (_obj7) | |
4763 | { | |
4764 | _arg7 = wxString_in_helper(_obj7); | |
4765 | if (_arg7 == NULL) | |
4766 | return NULL; | |
aa2a5b86 RD |
4767 | } |
4768 | { | |
474c48f9 | 4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4770 | _result = (bool )wxStaticText_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
aa2a5b86 | 4771 | |
474c48f9 | 4772 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4773 | if (PyErr_Occurred()) return NULL; |
4774 | } _resultobj = Py_BuildValue("i",_result); | |
4775 | { | |
4776 | if (_obj3) | |
4777 | delete _arg3; | |
9a74fcaf RD |
4778 | } |
4779 | { | |
4780 | if (_obj7) | |
4781 | delete _arg7; | |
aa2a5b86 RD |
4782 | } |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
70551f47 | 4786 | #define wxStaticText_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 4787 | static PyObject *_wrap_wxStaticText_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4788 | PyObject * _resultobj; |
4789 | wxString * _result; | |
4790 | wxStaticText * _arg0; | |
2d091820 | 4791 | PyObject * _argo0 = 0; |
107e4716 | 4792 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4793 | |
4794 | self = self; | |
107e4716 | 4795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticText_GetLabel",_kwnames,&_argo0)) |
70551f47 | 4796 | return NULL; |
2d091820 RD |
4797 | if (_argo0) { |
4798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_GetLabel. Expected _wxStaticText_p."); |
4801 | return NULL; | |
4802 | } | |
4803 | } | |
70551f47 | 4804 | { |
474c48f9 | 4805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4806 | _result = new wxString (wxStaticText_GetLabel(_arg0)); |
ab9bc19b | 4807 | |
474c48f9 | 4808 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4809 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4810 | }{ |
c8bc7bb8 | 4811 | #if wxUSE_UNICODE |
b67a9327 | 4812 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4813 | #else |
e02c03a4 | 4814 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4815 | #endif |
70551f47 RD |
4816 | } |
4817 | { | |
4818 | delete _result; | |
4819 | } | |
4820 | return _resultobj; | |
4821 | } | |
4822 | ||
4823 | #define wxStaticText_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
107e4716 | 4824 | static PyObject *_wrap_wxStaticText_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4825 | PyObject * _resultobj; |
4826 | wxStaticText * _arg0; | |
4827 | wxString * _arg1; | |
2d091820 | 4828 | PyObject * _argo0 = 0; |
70551f47 | 4829 | PyObject * _obj1 = 0; |
107e4716 | 4830 | char *_kwnames[] = { "self","label", NULL }; |
70551f47 RD |
4831 | |
4832 | self = self; | |
107e4716 | 4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticText_SetLabel",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4834 | return NULL; |
2d091820 RD |
4835 | if (_argo0) { |
4836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticText_p")) { | |
70551f47 RD |
4838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticText_SetLabel. Expected _wxStaticText_p."); |
4839 | return NULL; | |
4840 | } | |
4841 | } | |
4842 | { | |
c8bc7bb8 RD |
4843 | _arg1 = wxString_in_helper(_obj1); |
4844 | if (_arg1 == NULL) | |
2cd2fac8 | 4845 | return NULL; |
70551f47 | 4846 | } |
ab9bc19b | 4847 | { |
474c48f9 | 4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4849 | wxStaticText_SetLabel(_arg0,*_arg1); |
ab9bc19b | 4850 | |
474c48f9 | 4851 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4852 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4853 | } Py_INCREF(Py_None); |
70551f47 RD |
4854 | _resultobj = Py_None; |
4855 | { | |
4856 | if (_obj1) | |
4857 | delete _arg1; | |
4858 | } | |
4859 | return _resultobj; | |
4860 | } | |
4861 | ||
65191ae8 RD |
4862 | static void *SwigwxListBoxTowxControlWithItems(void *ptr) { |
4863 | wxListBox *src; | |
4864 | wxControlWithItems *dest; | |
4865 | src = (wxListBox *) ptr; | |
4866 | dest = (wxControlWithItems *) src; | |
4867 | return (void *) dest; | |
4868 | } | |
4869 | ||
70551f47 RD |
4870 | static void *SwigwxListBoxTowxControl(void *ptr) { |
4871 | wxListBox *src; | |
4872 | wxControl *dest; | |
4873 | src = (wxListBox *) ptr; | |
4874 | dest = (wxControl *) src; | |
4875 | return (void *) dest; | |
4876 | } | |
4877 | ||
4878 | static void *SwigwxListBoxTowxWindow(void *ptr) { | |
4879 | wxListBox *src; | |
4880 | wxWindow *dest; | |
4881 | src = (wxListBox *) ptr; | |
4882 | dest = (wxWindow *) src; | |
4883 | return (void *) dest; | |
4884 | } | |
4885 | ||
4886 | static void *SwigwxListBoxTowxEvtHandler(void *ptr) { | |
4887 | wxListBox *src; | |
4888 | wxEvtHandler *dest; | |
4889 | src = (wxListBox *) ptr; | |
4890 | dest = (wxEvtHandler *) src; | |
4891 | return (void *) dest; | |
4892 | } | |
4893 | ||
9df61a29 RD |
4894 | static void *SwigwxListBoxTowxObject(void *ptr) { |
4895 | wxListBox *src; | |
4896 | wxObject *dest; | |
4897 | src = (wxListBox *) ptr; | |
4898 | dest = (wxObject *) src; | |
4899 | return (void *) dest; | |
4900 | } | |
4901 | ||
aa2a5b86 RD |
4902 | #define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
4903 | static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject * _resultobj; | |
4905 | wxListBox * _result; | |
4906 | wxWindow * _arg0; | |
4907 | wxWindowID _arg1; | |
4908 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
4909 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
4910 | int _arg4; | |
4911 | wxString * _arg5 = (wxString *) NULL; | |
4912 | long _arg6 = (long ) 0; | |
4913 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 4914 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
aa2a5b86 RD |
4915 | PyObject * _argo0 = 0; |
4916 | wxPoint temp; | |
4917 | PyObject * _obj2 = 0; | |
4918 | wxSize temp0; | |
4919 | PyObject * _obj3 = 0; | |
4920 | PyObject * _obj5 = 0; | |
4921 | PyObject * _argo7 = 0; | |
9a74fcaf | 4922 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
4923 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
4924 | char _ptemp[128]; | |
4925 | ||
4926 | self = self; | |
9a74fcaf | 4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
4928 | return NULL; |
4929 | if (_argo0) { | |
4930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListBox. Expected _wxWindow_p."); | |
4933 | return NULL; | |
4934 | } | |
4935 | } | |
4936 | if (_obj2) | |
4937 | { | |
4938 | _arg2 = &temp; | |
4939 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4940 | return NULL; | |
4941 | } | |
4942 | if (_obj3) | |
4943 | { | |
4944 | _arg3 = &temp0; | |
4945 | if (! wxSize_helper(_obj3, &_arg3)) | |
4946 | return NULL; | |
4947 | } | |
4948 | if (_obj5) | |
4949 | { | |
4950 | _arg5 = wxString_LIST_helper(_obj5); | |
4951 | if (_arg5 == NULL) { | |
4952 | return NULL; | |
4953 | } | |
4954 | } | |
4955 | if (_argo7) { | |
b67a9327 | 4956 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
4957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxListBox. Expected _wxValidator_p."); |
4958 | return NULL; | |
4959 | } | |
4960 | } | |
9a74fcaf RD |
4961 | if (_obj8) |
4962 | { | |
4963 | _arg8 = wxString_in_helper(_obj8); | |
4964 | if (_arg8 == NULL) | |
4965 | return NULL; | |
4966 | } | |
aa2a5b86 RD |
4967 | { |
4968 | if (_obj5) { | |
4969 | _arg4 = PyList_Size(_obj5); | |
4970 | } | |
4971 | else { | |
4972 | _arg4 = 0; | |
4973 | } | |
4974 | } | |
4975 | { | |
474c48f9 | 4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 4977 | _result = (wxListBox *)new_wxListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 4978 | |
474c48f9 | 4979 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
4980 | if (PyErr_Occurred()) return NULL; |
4981 | } if (_result) { | |
4982 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
4983 | _resultobj = Py_BuildValue("s",_ptemp); | |
4984 | } else { | |
4985 | Py_INCREF(Py_None); | |
4986 | _resultobj = Py_None; | |
4987 | } | |
4988 | { | |
4989 | delete [] _arg5; | |
9a74fcaf RD |
4990 | } |
4991 | { | |
4992 | if (_obj8) | |
4993 | delete _arg8; | |
aa2a5b86 RD |
4994 | } |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
4998 | #define new_wxPreListBox() (new wxListBox()) | |
4999 | static PyObject *_wrap_new_wxPreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5000 | PyObject * _resultobj; | |
5001 | wxListBox * _result; | |
5002 | char *_kwnames[] = { NULL }; | |
5003 | char _ptemp[128]; | |
5004 | ||
5005 | self = self; | |
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListBox",_kwnames)) | |
5007 | return NULL; | |
5008 | { | |
474c48f9 | 5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5010 | _result = (wxListBox *)new_wxPreListBox(); |
aa2a5b86 | 5011 | |
474c48f9 | 5012 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5013 | if (PyErr_Occurred()) return NULL; |
5014 | } if (_result) { | |
5015 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListBox_p"); | |
5016 | _resultobj = Py_BuildValue("s",_ptemp); | |
5017 | } else { | |
5018 | Py_INCREF(Py_None); | |
5019 | _resultobj = Py_None; | |
5020 | } | |
5021 | return _resultobj; | |
5022 | } | |
5023 | ||
5024 | #define wxListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5025 | static PyObject *_wrap_wxListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 5026 | PyObject * _resultobj; |
aa2a5b86 RD |
5027 | bool _result; |
5028 | wxListBox * _arg0; | |
5029 | wxWindow * _arg1; | |
5030 | wxWindowID _arg2; | |
5031 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5032 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5033 | int _arg5; | |
5034 | wxString * _arg6 = (wxString *) NULL; | |
5035 | long _arg7 = (long ) 0; | |
5036 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5037 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
2d091820 | 5038 | PyObject * _argo0 = 0; |
aa2a5b86 | 5039 | PyObject * _argo1 = 0; |
37f6a977 | 5040 | wxPoint temp; |
37f6a977 | 5041 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
5042 | wxSize temp0; |
5043 | PyObject * _obj4 = 0; | |
5044 | PyObject * _obj6 = 0; | |
5045 | PyObject * _argo8 = 0; | |
9a74fcaf | 5046 | PyObject * _obj9 = 0; |
aa2a5b86 | 5047 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
70551f47 RD |
5048 | |
5049 | self = self; | |
9a74fcaf | 5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 5051 | return NULL; |
2d091820 RD |
5052 | if (_argo0) { |
5053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { |
5055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Create. Expected _wxListBox_p."); | |
70551f47 RD |
5056 | return NULL; |
5057 | } | |
5058 | } | |
aa2a5b86 RD |
5059 | if (_argo1) { |
5060 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5061 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListBox_Create. Expected _wxWindow_p."); | |
5063 | return NULL; | |
5064 | } | |
5065 | } | |
5066 | if (_obj3) | |
37f6a977 | 5067 | { |
aa2a5b86 RD |
5068 | _arg3 = &temp; |
5069 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 5070 | return NULL; |
37f6a977 | 5071 | } |
aa2a5b86 | 5072 | if (_obj4) |
37f6a977 | 5073 | { |
aa2a5b86 RD |
5074 | _arg4 = &temp0; |
5075 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 5076 | return NULL; |
37f6a977 | 5077 | } |
aa2a5b86 | 5078 | if (_obj6) |
70551f47 | 5079 | { |
aa2a5b86 RD |
5080 | _arg6 = wxString_LIST_helper(_obj6); |
5081 | if (_arg6 == NULL) { | |
70551f47 RD |
5082 | return NULL; |
5083 | } | |
5084 | } | |
aa2a5b86 | 5085 | if (_argo8) { |
b67a9327 | 5086 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { |
aa2a5b86 | 5087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxListBox_Create. Expected _wxValidator_p."); |
70551f47 RD |
5088 | return NULL; |
5089 | } | |
5090 | } | |
9a74fcaf RD |
5091 | if (_obj9) |
5092 | { | |
5093 | _arg9 = wxString_in_helper(_obj9); | |
5094 | if (_arg9 == NULL) | |
5095 | return NULL; | |
5096 | } | |
70551f47 | 5097 | { |
aa2a5b86 RD |
5098 | if (_obj6) { |
5099 | _arg5 = PyList_Size(_obj6); | |
ab9bc19b RD |
5100 | } |
5101 | else { | |
aa2a5b86 | 5102 | _arg5 = 0; |
ab9bc19b | 5103 | } |
70551f47 | 5104 | } |
ab9bc19b | 5105 | { |
474c48f9 | 5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5107 | _result = (bool )wxListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 5108 | |
474c48f9 | 5109 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5110 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5111 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 5112 | { |
aa2a5b86 | 5113 | delete [] _arg6; |
9a74fcaf RD |
5114 | } |
5115 | { | |
5116 | if (_obj9) | |
5117 | delete _arg9; | |
70551f47 RD |
5118 | } |
5119 | return _resultobj; | |
5120 | } | |
5121 | ||
70551f47 | 5122 | #define wxListBox_Clear(_swigobj) (_swigobj->Clear()) |
107e4716 | 5123 | static PyObject *_wrap_wxListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5124 | PyObject * _resultobj; |
5125 | wxListBox * _arg0; | |
2d091820 | 5126 | PyObject * _argo0 = 0; |
107e4716 | 5127 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5128 | |
5129 | self = self; | |
107e4716 | 5130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_Clear",_kwnames,&_argo0)) |
70551f47 | 5131 | return NULL; |
2d091820 RD |
5132 | if (_argo0) { |
5133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Clear. Expected _wxListBox_p."); |
5136 | return NULL; | |
5137 | } | |
5138 | } | |
ab9bc19b | 5139 | { |
474c48f9 | 5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5141 | wxListBox_Clear(_arg0); |
ab9bc19b | 5142 | |
474c48f9 | 5143 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5144 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5145 | } Py_INCREF(Py_None); |
70551f47 RD |
5146 | _resultobj = Py_None; |
5147 | return _resultobj; | |
5148 | } | |
5149 | ||
70551f47 | 5150 | #define wxListBox_Deselect(_swigobj,_swigarg0) (_swigobj->Deselect(_swigarg0)) |
107e4716 | 5151 | static PyObject *_wrap_wxListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5152 | PyObject * _resultobj; |
5153 | wxListBox * _arg0; | |
5154 | int _arg1; | |
2d091820 | 5155 | PyObject * _argo0 = 0; |
107e4716 | 5156 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5157 | |
5158 | self = self; | |
107e4716 | 5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Deselect",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5160 | return NULL; |
2d091820 RD |
5161 | if (_argo0) { |
5162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Deselect. Expected _wxListBox_p."); |
5165 | return NULL; | |
5166 | } | |
5167 | } | |
ab9bc19b | 5168 | { |
474c48f9 | 5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5170 | wxListBox_Deselect(_arg0,_arg1); |
ab9bc19b | 5171 | |
474c48f9 | 5172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5173 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5174 | } Py_INCREF(Py_None); |
70551f47 RD |
5175 | _resultobj = Py_None; |
5176 | return _resultobj; | |
5177 | } | |
5178 | ||
ab9bc19b RD |
5179 | static PyObject * wxListBox_GetSelections(wxListBox *self) { |
5180 | wxArrayInt lst; | |
5181 | self->GetSelections(lst); | |
5182 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
f6bcfd97 | 5183 | for(size_t i=0; i<lst.GetCount(); i++) { |
ab9bc19b RD |
5184 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); |
5185 | } | |
5186 | return tup; | |
5187 | } | |
107e4716 | 5188 | static PyObject *_wrap_wxListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
5189 | PyObject * _resultobj; |
5190 | PyObject * _result; | |
5191 | wxListBox * _arg0; | |
2d091820 | 5192 | PyObject * _argo0 = 0; |
107e4716 | 5193 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
5194 | |
5195 | self = self; | |
107e4716 | 5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListBox_GetSelections",_kwnames,&_argo0)) |
ab9bc19b | 5197 | return NULL; |
2d091820 RD |
5198 | if (_argo0) { |
5199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
ab9bc19b RD |
5201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_GetSelections. Expected _wxListBox_p."); |
5202 | return NULL; | |
5203 | } | |
5204 | } | |
5205 | { | |
474c48f9 | 5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5207 | _result = (PyObject *)wxListBox_GetSelections(_arg0); |
ab9bc19b | 5208 | |
474c48f9 | 5209 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5210 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
5211 | }{ |
5212 | _resultobj = _result; | |
5213 | } | |
70551f47 RD |
5214 | return _resultobj; |
5215 | } | |
5216 | ||
37f6a977 RD |
5217 | #define wxListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5218 | static PyObject *_wrap_wxListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject * _resultobj; | |
5220 | wxListBox * _arg0; | |
5221 | int _arg1; | |
5222 | wxString * _arg2; | |
5223 | int _arg3; | |
5224 | PyObject * _argo0 = 0; | |
5225 | PyObject * _obj2 = 0; | |
e02c03a4 | 5226 | char *_kwnames[] = { "self","choices","pos", NULL }; |
37f6a977 RD |
5227 | |
5228 | self = self; | |
5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5230 | return NULL; | |
5231 | if (_argo0) { | |
5232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
5234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_InsertItems. Expected _wxListBox_p."); | |
5235 | return NULL; | |
5236 | } | |
5237 | } | |
5238 | { | |
5239 | _arg2 = wxString_LIST_helper(_obj2); | |
5240 | if (_arg2 == NULL) { | |
5241 | return NULL; | |
5242 | } | |
5243 | } | |
5244 | { | |
5245 | if (_obj2) { | |
5246 | _arg1 = PyList_Size(_obj2); | |
5247 | } | |
5248 | else { | |
5249 | _arg1 = 0; | |
5250 | } | |
5251 | } | |
5252 | { | |
474c48f9 | 5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5254 | wxListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
37f6a977 | 5255 | |
474c48f9 | 5256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5257 | if (PyErr_Occurred()) return NULL; |
37f6a977 RD |
5258 | } Py_INCREF(Py_None); |
5259 | _resultobj = Py_None; | |
5260 | { | |
5261 | delete [] _arg2; | |
5262 | } | |
5263 | return _resultobj; | |
5264 | } | |
5265 | ||
2c8a649d RD |
5266 | #define wxListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
5267 | static PyObject *_wrap_wxListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject * _resultobj; | |
5269 | bool _result; | |
5270 | wxListBox * _arg0; | |
5271 | int _arg1; | |
5272 | PyObject * _argo0 = 0; | |
5273 | char *_kwnames[] = { "self","n", NULL }; | |
5274 | ||
5275 | self = self; | |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 5277 | return NULL; |
2d091820 RD |
5278 | if (_argo0) { |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
2c8a649d | 5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_IsSelected. Expected _wxListBox_p."); |
70551f47 RD |
5282 | return NULL; |
5283 | } | |
5284 | } | |
ab9bc19b | 5285 | { |
474c48f9 | 5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5287 | _result = (bool )wxListBox_IsSelected(_arg0,_arg1); |
ab9bc19b | 5288 | |
474c48f9 | 5289 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5290 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5291 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5292 | return _resultobj; |
5293 | } | |
5294 | ||
5295 | #define wxListBox_Selected(_swigobj,_swigarg0) (_swigobj->Selected(_swigarg0)) | |
107e4716 | 5296 | static PyObject *_wrap_wxListBox_Selected(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5297 | PyObject * _resultobj; |
5298 | bool _result; | |
5299 | wxListBox * _arg0; | |
5300 | int _arg1; | |
2d091820 | 5301 | PyObject * _argo0 = 0; |
107e4716 | 5302 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5303 | |
5304 | self = self; | |
107e4716 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_Selected",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5306 | return NULL; |
2d091820 RD |
5307 | if (_argo0) { |
5308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Selected. Expected _wxListBox_p."); |
5311 | return NULL; | |
5312 | } | |
5313 | } | |
ab9bc19b | 5314 | { |
474c48f9 | 5315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5316 | _result = (bool )wxListBox_Selected(_arg0,_arg1); |
ab9bc19b | 5317 | |
474c48f9 | 5318 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5319 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5320 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5321 | return _resultobj; |
5322 | } | |
5323 | ||
5324 | #define wxListBox_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
107e4716 | 5325 | static PyObject *_wrap_wxListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5326 | PyObject * _resultobj; |
5327 | wxListBox * _arg0; | |
5328 | int _arg1; | |
5329 | wxString * _arg2; | |
2d091820 | 5330 | PyObject * _argo0 = 0; |
70551f47 | 5331 | PyObject * _obj2 = 0; |
e02c03a4 | 5332 | char *_kwnames[] = { "self","choices", NULL }; |
70551f47 RD |
5333 | |
5334 | self = self; | |
107e4716 | 5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_Set",_kwnames,&_argo0,&_obj2)) |
70551f47 | 5336 | return NULL; |
2d091820 RD |
5337 | if (_argo0) { |
5338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_Set. Expected _wxListBox_p."); |
5341 | return NULL; | |
5342 | } | |
5343 | } | |
5344 | if (_obj2) | |
5345 | { | |
5346 | _arg2 = wxString_LIST_helper(_obj2); | |
5347 | if (_arg2 == NULL) { | |
5348 | return NULL; | |
5349 | } | |
5350 | } | |
5351 | { | |
ab9bc19b RD |
5352 | if (_obj2) { |
5353 | _arg1 = PyList_Size(_obj2); | |
5354 | } | |
5355 | else { | |
5356 | _arg1 = 0; | |
5357 | } | |
70551f47 | 5358 | } |
ab9bc19b | 5359 | { |
474c48f9 | 5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5361 | wxListBox_Set(_arg0,_arg1,_arg2); |
ab9bc19b | 5362 | |
474c48f9 | 5363 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5364 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5365 | } Py_INCREF(Py_None); |
70551f47 RD |
5366 | _resultobj = Py_None; |
5367 | { | |
5368 | delete [] _arg2; | |
5369 | } | |
5370 | return _resultobj; | |
5371 | } | |
5372 | ||
5373 | #define wxListBox_SetFirstItem(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5374 | static PyObject *_wrap_wxListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5375 | PyObject * _resultobj; |
5376 | wxListBox * _arg0; | |
5377 | int _arg1; | |
2d091820 | 5378 | PyObject * _argo0 = 0; |
107e4716 | 5379 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
5380 | |
5381 | self = self; | |
107e4716 | 5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListBox_SetFirstItem",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5383 | return NULL; |
2d091820 RD |
5384 | if (_argo0) { |
5385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItem. Expected _wxListBox_p."); |
5388 | return NULL; | |
5389 | } | |
5390 | } | |
ab9bc19b | 5391 | { |
474c48f9 | 5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5393 | wxListBox_SetFirstItem(_arg0,_arg1); |
ab9bc19b | 5394 | |
474c48f9 | 5395 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5396 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5397 | } Py_INCREF(Py_None); |
70551f47 RD |
5398 | _resultobj = Py_None; |
5399 | return _resultobj; | |
5400 | } | |
5401 | ||
5402 | #define wxListBox_SetFirstItemStr(_swigobj,_swigarg0) (_swigobj->SetFirstItem(_swigarg0)) | |
107e4716 | 5403 | static PyObject *_wrap_wxListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5404 | PyObject * _resultobj; |
5405 | wxListBox * _arg0; | |
5406 | wxString * _arg1; | |
2d091820 | 5407 | PyObject * _argo0 = 0; |
70551f47 | 5408 | PyObject * _obj1 = 0; |
107e4716 | 5409 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
5410 | |
5411 | self = self; | |
107e4716 | 5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListBox_SetFirstItemStr",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5413 | return NULL; |
2d091820 RD |
5414 | if (_argo0) { |
5415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetFirstItemStr. Expected _wxListBox_p."); |
5418 | return NULL; | |
5419 | } | |
5420 | } | |
5421 | { | |
c8bc7bb8 RD |
5422 | _arg1 = wxString_in_helper(_obj1); |
5423 | if (_arg1 == NULL) | |
2cd2fac8 | 5424 | return NULL; |
70551f47 | 5425 | } |
ab9bc19b | 5426 | { |
474c48f9 | 5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5428 | wxListBox_SetFirstItemStr(_arg0,*_arg1); |
ab9bc19b | 5429 | |
474c48f9 | 5430 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5431 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5432 | } Py_INCREF(Py_None); |
70551f47 RD |
5433 | _resultobj = Py_None; |
5434 | { | |
5435 | if (_obj1) | |
5436 | delete _arg1; | |
5437 | } | |
5438 | return _resultobj; | |
5439 | } | |
5440 | ||
5441 | #define wxListBox_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5442 | static PyObject *_wrap_wxListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5443 | PyObject * _resultobj; |
5444 | wxListBox * _arg0; | |
5445 | int _arg1; | |
2d091820 RD |
5446 | bool _arg2 = (bool ) TRUE; |
5447 | PyObject * _argo0 = 0; | |
5448 | int tempbool2 = (int) TRUE; | |
107e4716 | 5449 | char *_kwnames[] = { "self","n","select", NULL }; |
70551f47 RD |
5450 | |
5451 | self = self; | |
107e4716 | 5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListBox_SetSelection",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5453 | return NULL; |
2d091820 RD |
5454 | if (_argo0) { |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetSelection. Expected _wxListBox_p."); |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5462 | { |
474c48f9 | 5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5464 | wxListBox_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 5465 | |
474c48f9 | 5466 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5467 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5468 | } Py_INCREF(Py_None); |
70551f47 RD |
5469 | _resultobj = Py_None; |
5470 | return _resultobj; | |
5471 | } | |
5472 | ||
5473 | #define wxListBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) | |
107e4716 | 5474 | static PyObject *_wrap_wxListBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5475 | PyObject * _resultobj; |
5476 | wxListBox * _arg0; | |
5477 | int _arg1; | |
5478 | wxString * _arg2; | |
2d091820 | 5479 | PyObject * _argo0 = 0; |
70551f47 | 5480 | PyObject * _obj2 = 0; |
107e4716 | 5481 | char *_kwnames[] = { "self","n","string", NULL }; |
70551f47 RD |
5482 | |
5483 | self = self; | |
107e4716 | 5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 5485 | return NULL; |
2d091820 RD |
5486 | if (_argo0) { |
5487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetString. Expected _wxListBox_p."); |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
c8bc7bb8 RD |
5494 | _arg2 = wxString_in_helper(_obj2); |
5495 | if (_arg2 == NULL) | |
2cd2fac8 | 5496 | return NULL; |
70551f47 | 5497 | } |
ab9bc19b | 5498 | { |
474c48f9 | 5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5500 | wxListBox_SetString(_arg0,_arg1,*_arg2); |
ab9bc19b | 5501 | |
474c48f9 | 5502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5503 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5504 | } Py_INCREF(Py_None); |
70551f47 RD |
5505 | _resultobj = Py_None; |
5506 | { | |
5507 | if (_obj2) | |
5508 | delete _arg2; | |
5509 | } | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxListBox_SetStringSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStringSelection(_swigarg0,_swigarg1)) | |
107e4716 | 5514 | static PyObject *_wrap_wxListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5515 | PyObject * _resultobj; |
5516 | wxListBox * _arg0; | |
5517 | wxString * _arg1; | |
2d091820 RD |
5518 | bool _arg2 = (bool ) TRUE; |
5519 | PyObject * _argo0 = 0; | |
70551f47 | 5520 | PyObject * _obj1 = 0; |
2d091820 | 5521 | int tempbool2 = (int) TRUE; |
107e4716 | 5522 | char *_kwnames[] = { "self","string","select", NULL }; |
70551f47 RD |
5523 | |
5524 | self = self; | |
107e4716 | 5525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxListBox_SetStringSelection",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 5526 | return NULL; |
2d091820 RD |
5527 | if (_argo0) { |
5528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListBox_p")) { | |
70551f47 RD |
5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListBox_SetStringSelection. Expected _wxListBox_p."); |
5531 | return NULL; | |
5532 | } | |
5533 | } | |
5534 | { | |
c8bc7bb8 RD |
5535 | _arg1 = wxString_in_helper(_obj1); |
5536 | if (_arg1 == NULL) | |
70551f47 | 5537 | return NULL; |
70551f47 RD |
5538 | } |
5539 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 5540 | { |
474c48f9 | 5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5542 | wxListBox_SetStringSelection(_arg0,*_arg1,_arg2); |
ab9bc19b | 5543 | |
474c48f9 | 5544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5545 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5546 | } Py_INCREF(Py_None); |
70551f47 RD |
5547 | _resultobj = Py_None; |
5548 | { | |
5549 | if (_obj1) | |
5550 | delete _arg1; | |
5551 | } | |
5552 | return _resultobj; | |
5553 | } | |
5554 | ||
c95e68d8 RD |
5555 | static void *SwigwxCheckListBoxTowxListBox(void *ptr) { |
5556 | wxCheckListBox *src; | |
5557 | wxListBox *dest; | |
5558 | src = (wxCheckListBox *) ptr; | |
5559 | dest = (wxListBox *) src; | |
5560 | return (void *) dest; | |
5561 | } | |
5562 | ||
65191ae8 RD |
5563 | static void *SwigwxCheckListBoxTowxControlWithItems(void *ptr) { |
5564 | wxCheckListBox *src; | |
5565 | wxControlWithItems *dest; | |
5566 | src = (wxCheckListBox *) ptr; | |
5567 | dest = (wxControlWithItems *) src; | |
5568 | return (void *) dest; | |
5569 | } | |
5570 | ||
c95e68d8 RD |
5571 | static void *SwigwxCheckListBoxTowxControl(void *ptr) { |
5572 | wxCheckListBox *src; | |
5573 | wxControl *dest; | |
5574 | src = (wxCheckListBox *) ptr; | |
5575 | dest = (wxControl *) src; | |
5576 | return (void *) dest; | |
5577 | } | |
5578 | ||
5579 | static void *SwigwxCheckListBoxTowxWindow(void *ptr) { | |
5580 | wxCheckListBox *src; | |
5581 | wxWindow *dest; | |
5582 | src = (wxCheckListBox *) ptr; | |
5583 | dest = (wxWindow *) src; | |
5584 | return (void *) dest; | |
5585 | } | |
5586 | ||
5587 | static void *SwigwxCheckListBoxTowxEvtHandler(void *ptr) { | |
5588 | wxCheckListBox *src; | |
5589 | wxEvtHandler *dest; | |
5590 | src = (wxCheckListBox *) ptr; | |
5591 | dest = (wxEvtHandler *) src; | |
5592 | return (void *) dest; | |
5593 | } | |
5594 | ||
9df61a29 RD |
5595 | static void *SwigwxCheckListBoxTowxObject(void *ptr) { |
5596 | wxCheckListBox *src; | |
5597 | wxObject *dest; | |
5598 | src = (wxCheckListBox *) ptr; | |
5599 | dest = (wxObject *) src; | |
5600 | return (void *) dest; | |
5601 | } | |
5602 | ||
c95e68d8 | 5603 | #define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
107e4716 | 5604 | static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5605 | PyObject * _resultobj; |
5606 | wxCheckListBox * _result; | |
5607 | wxWindow * _arg0; | |
5608 | wxWindowID _arg1; | |
b68dc582 RD |
5609 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5610 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
5611 | int _arg4 = (int ) 0; |
5612 | wxString * _arg5 = (wxString *) NULL; | |
5613 | long _arg6 = (long ) 0; | |
b68dc582 | 5614 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 5615 | wxString * _arg8 = (wxString *) &wxPyListBoxNameStr; |
2d091820 | 5616 | PyObject * _argo0 = 0; |
37f6a977 RD |
5617 | wxPoint temp; |
5618 | PyObject * _obj2 = 0; | |
5619 | wxSize temp0; | |
5620 | PyObject * _obj3 = 0; | |
c95e68d8 | 5621 | PyObject * _obj5 = 0; |
2d091820 | 5622 | PyObject * _argo7 = 0; |
9a74fcaf | 5623 | PyObject * _obj8 = 0; |
e02c03a4 | 5624 | char *_kwnames[] = { "parent","id","pos","size","choices","style","validator","name", NULL }; |
c95e68d8 RD |
5625 | char _ptemp[128]; |
5626 | ||
5627 | self = self; | |
9a74fcaf | 5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxCheckListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj5,&_arg6,&_argo7,&_obj8)) |
c95e68d8 | 5629 | return NULL; |
2d091820 RD |
5630 | if (_argo0) { |
5631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
5633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCheckListBox. Expected _wxWindow_p."); |
5634 | return NULL; | |
5635 | } | |
5636 | } | |
37f6a977 RD |
5637 | if (_obj2) |
5638 | { | |
5639 | _arg2 = &temp; | |
5640 | if (! wxPoint_helper(_obj2, &_arg2)) | |
c95e68d8 | 5641 | return NULL; |
37f6a977 RD |
5642 | } |
5643 | if (_obj3) | |
5644 | { | |
5645 | _arg3 = &temp0; | |
5646 | if (! wxSize_helper(_obj3, &_arg3)) | |
c95e68d8 | 5647 | return NULL; |
37f6a977 | 5648 | } |
c95e68d8 RD |
5649 | if (_obj5) |
5650 | { | |
5651 | _arg5 = wxString_LIST_helper(_obj5); | |
5652 | if (_arg5 == NULL) { | |
5653 | return NULL; | |
5654 | } | |
5655 | } | |
2d091820 | 5656 | if (_argo7) { |
b67a9327 | 5657 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
c95e68d8 RD |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxCheckListBox. Expected _wxValidator_p."); |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
9a74fcaf RD |
5662 | if (_obj8) |
5663 | { | |
5664 | _arg8 = wxString_in_helper(_obj8); | |
5665 | if (_arg8 == NULL) | |
5666 | return NULL; | |
5667 | } | |
c95e68d8 | 5668 | { |
ab9bc19b RD |
5669 | if (_obj5) { |
5670 | _arg4 = PyList_Size(_obj5); | |
5671 | } | |
5672 | else { | |
5673 | _arg4 = 0; | |
5674 | } | |
c95e68d8 | 5675 | } |
ab9bc19b | 5676 | { |
474c48f9 | 5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5678 | _result = (wxCheckListBox *)new_wxCheckListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 5679 | |
474c48f9 | 5680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5681 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5682 | } if (_result) { |
5683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5684 | _resultobj = Py_BuildValue("s",_ptemp); | |
5685 | } else { | |
5686 | Py_INCREF(Py_None); | |
5687 | _resultobj = Py_None; | |
5688 | } | |
c95e68d8 RD |
5689 | { |
5690 | delete [] _arg5; | |
9a74fcaf RD |
5691 | } |
5692 | { | |
5693 | if (_obj8) | |
5694 | delete _arg8; | |
c95e68d8 RD |
5695 | } |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
aa2a5b86 RD |
5699 | #define new_wxPreCheckListBox() (new wxCheckListBox()) |
5700 | static PyObject *_wrap_new_wxPreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject * _resultobj; | |
5702 | wxCheckListBox * _result; | |
5703 | char *_kwnames[] = { NULL }; | |
5704 | char _ptemp[128]; | |
5705 | ||
5706 | self = self; | |
5707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCheckListBox",_kwnames)) | |
5708 | return NULL; | |
5709 | { | |
474c48f9 | 5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5711 | _result = (wxCheckListBox *)new_wxPreCheckListBox(); |
aa2a5b86 | 5712 | |
474c48f9 | 5713 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5714 | if (PyErr_Occurred()) return NULL; |
5715 | } if (_result) { | |
5716 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCheckListBox_p"); | |
5717 | _resultobj = Py_BuildValue("s",_ptemp); | |
5718 | } else { | |
5719 | Py_INCREF(Py_None); | |
5720 | _resultobj = Py_None; | |
5721 | } | |
5722 | return _resultobj; | |
5723 | } | |
5724 | ||
5725 | #define wxCheckListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
5726 | static PyObject *_wrap_wxCheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5727 | PyObject * _resultobj; | |
5728 | bool _result; | |
5729 | wxCheckListBox * _arg0; | |
5730 | wxWindow * _arg1; | |
5731 | wxWindowID _arg2; | |
5732 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5733 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5734 | int _arg5 = (int ) 0; | |
5735 | wxString * _arg6 = (wxString *) NULL; | |
5736 | long _arg7 = (long ) 0; | |
5737 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5738 | wxString * _arg9 = (wxString *) &wxPyListBoxNameStr; |
aa2a5b86 RD |
5739 | PyObject * _argo0 = 0; |
5740 | PyObject * _argo1 = 0; | |
5741 | wxPoint temp; | |
5742 | PyObject * _obj3 = 0; | |
5743 | wxSize temp0; | |
5744 | PyObject * _obj4 = 0; | |
5745 | PyObject * _obj6 = 0; | |
5746 | PyObject * _argo8 = 0; | |
9a74fcaf | 5747 | PyObject * _obj9 = 0; |
aa2a5b86 RD |
5748 | char *_kwnames[] = { "self","parent","id","pos","size","choices","style","validator","name", NULL }; |
5749 | ||
5750 | self = self; | |
9a74fcaf | 5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxCheckListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj6,&_arg7,&_argo8,&_obj9)) |
aa2a5b86 RD |
5752 | return NULL; |
5753 | if (_argo0) { | |
5754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Create. Expected _wxCheckListBox_p."); | |
5757 | return NULL; | |
5758 | } | |
5759 | } | |
5760 | if (_argo1) { | |
5761 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5762 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCheckListBox_Create. Expected _wxWindow_p."); | |
5764 | return NULL; | |
5765 | } | |
5766 | } | |
5767 | if (_obj3) | |
5768 | { | |
5769 | _arg3 = &temp; | |
5770 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5771 | return NULL; | |
5772 | } | |
5773 | if (_obj4) | |
5774 | { | |
5775 | _arg4 = &temp0; | |
5776 | if (! wxSize_helper(_obj4, &_arg4)) | |
5777 | return NULL; | |
5778 | } | |
5779 | if (_obj6) | |
5780 | { | |
5781 | _arg6 = wxString_LIST_helper(_obj6); | |
5782 | if (_arg6 == NULL) { | |
5783 | return NULL; | |
5784 | } | |
5785 | } | |
5786 | if (_argo8) { | |
b67a9327 | 5787 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { |
aa2a5b86 RD |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of wxCheckListBox_Create. Expected _wxValidator_p."); |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
9a74fcaf RD |
5792 | if (_obj9) |
5793 | { | |
5794 | _arg9 = wxString_in_helper(_obj9); | |
5795 | if (_arg9 == NULL) | |
5796 | return NULL; | |
5797 | } | |
aa2a5b86 RD |
5798 | { |
5799 | if (_obj6) { | |
5800 | _arg5 = PyList_Size(_obj6); | |
5801 | } | |
5802 | else { | |
5803 | _arg5 = 0; | |
5804 | } | |
5805 | } | |
5806 | { | |
474c48f9 | 5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 5808 | _result = (bool )wxCheckListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8,*_arg9); |
aa2a5b86 | 5809 | |
474c48f9 | 5810 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5811 | if (PyErr_Occurred()) return NULL; |
5812 | } _resultobj = Py_BuildValue("i",_result); | |
5813 | { | |
5814 | delete [] _arg6; | |
9a74fcaf RD |
5815 | } |
5816 | { | |
5817 | if (_obj9) | |
5818 | delete _arg9; | |
aa2a5b86 RD |
5819 | } |
5820 | return _resultobj; | |
5821 | } | |
5822 | ||
c95e68d8 | 5823 | #define wxCheckListBox_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
107e4716 | 5824 | static PyObject *_wrap_wxCheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5825 | PyObject * _resultobj; |
5826 | bool _result; | |
5827 | wxCheckListBox * _arg0; | |
5828 | int _arg1; | |
2d091820 | 5829 | PyObject * _argo0 = 0; |
107e4716 | 5830 | char *_kwnames[] = { "self","uiIndex", NULL }; |
c95e68d8 RD |
5831 | |
5832 | self = self; | |
107e4716 | 5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCheckListBox_IsChecked",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5834 | return NULL; |
2d091820 RD |
5835 | if (_argo0) { |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_IsChecked. Expected _wxCheckListBox_p."); |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
ab9bc19b | 5842 | { |
474c48f9 | 5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5844 | _result = (bool )wxCheckListBox_IsChecked(_arg0,_arg1); |
ab9bc19b | 5845 | |
474c48f9 | 5846 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5847 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5848 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5849 | return _resultobj; |
5850 | } | |
5851 | ||
5852 | #define wxCheckListBox_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 5853 | static PyObject *_wrap_wxCheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5854 | PyObject * _resultobj; |
5855 | wxCheckListBox * _arg0; | |
5856 | int _arg1; | |
d29aba2f | 5857 | int _arg2 = (int ) TRUE; |
2d091820 | 5858 | PyObject * _argo0 = 0; |
107e4716 | 5859 | char *_kwnames[] = { "self","uiIndex","bCheck", NULL }; |
c95e68d8 RD |
5860 | |
5861 | self = self; | |
d29aba2f | 5862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxCheckListBox_Check",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 5863 | return NULL; |
2d091820 RD |
5864 | if (_argo0) { |
5865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_Check. Expected _wxCheckListBox_p."); |
5868 | return NULL; | |
5869 | } | |
5870 | } | |
ab9bc19b | 5871 | { |
474c48f9 | 5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5873 | wxCheckListBox_Check(_arg0,_arg1,_arg2); |
ab9bc19b | 5874 | |
474c48f9 | 5875 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5876 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5877 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5878 | _resultobj = Py_None; |
5879 | return _resultobj; | |
5880 | } | |
5881 | ||
d29aba2f RD |
5882 | #define wxCheckListBox_InsertItems(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItems(_swigarg0,_swigarg1,_swigarg2)) |
5883 | static PyObject *_wrap_wxCheckListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject * _resultobj; | |
5885 | wxCheckListBox * _arg0; | |
5886 | int _arg1; | |
5887 | wxString * _arg2; | |
5888 | int _arg3; | |
5889 | PyObject * _argo0 = 0; | |
5890 | PyObject * _obj2 = 0; | |
e02c03a4 | 5891 | char *_kwnames[] = { "self","choices","pos", NULL }; |
d29aba2f RD |
5892 | |
5893 | self = self; | |
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxCheckListBox_InsertItems",_kwnames,&_argo0,&_obj2,&_arg3)) | |
5895 | return NULL; | |
5896 | if (_argo0) { | |
5897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_InsertItems. Expected _wxCheckListBox_p."); | |
5900 | return NULL; | |
5901 | } | |
5902 | } | |
5903 | { | |
5904 | _arg2 = wxString_LIST_helper(_obj2); | |
5905 | if (_arg2 == NULL) { | |
5906 | return NULL; | |
5907 | } | |
5908 | } | |
5909 | { | |
5910 | if (_obj2) { | |
5911 | _arg1 = PyList_Size(_obj2); | |
5912 | } | |
5913 | else { | |
5914 | _arg1 = 0; | |
5915 | } | |
5916 | } | |
5917 | { | |
474c48f9 | 5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5919 | wxCheckListBox_InsertItems(_arg0,_arg1,_arg2,_arg3); |
d29aba2f | 5920 | |
474c48f9 | 5921 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5922 | if (PyErr_Occurred()) return NULL; |
d29aba2f RD |
5923 | } Py_INCREF(Py_None); |
5924 | _resultobj = Py_None; | |
5925 | { | |
5926 | delete [] _arg2; | |
5927 | } | |
5928 | return _resultobj; | |
5929 | } | |
5930 | ||
c95e68d8 | 5931 | #define wxCheckListBox_GetItemHeight(_swigobj) (_swigobj->GetItemHeight()) |
107e4716 | 5932 | static PyObject *_wrap_wxCheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5933 | PyObject * _resultobj; |
5934 | int _result; | |
5935 | wxCheckListBox * _arg0; | |
2d091820 | 5936 | PyObject * _argo0 = 0; |
107e4716 | 5937 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
5938 | |
5939 | self = self; | |
107e4716 | 5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckListBox_GetItemHeight",_kwnames,&_argo0)) |
c95e68d8 | 5941 | return NULL; |
2d091820 RD |
5942 | if (_argo0) { |
5943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
c95e68d8 RD |
5945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_GetItemHeight. Expected _wxCheckListBox_p."); |
5946 | return NULL; | |
5947 | } | |
5948 | } | |
ab9bc19b | 5949 | { |
474c48f9 | 5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5951 | _result = (int )wxCheckListBox_GetItemHeight(_arg0); |
ab9bc19b | 5952 | |
474c48f9 | 5953 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5954 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5955 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
5956 | return _resultobj; |
5957 | } | |
5958 | ||
c81fd4b9 RD |
5959 | #define wxCheckListBox_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
5960 | static PyObject *_wrap_wxCheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5961 | PyObject * _resultobj; | |
5962 | int _result; | |
5963 | wxCheckListBox * _arg0; | |
5964 | wxPoint * _arg1; | |
5965 | PyObject * _argo0 = 0; | |
5966 | wxPoint temp; | |
5967 | PyObject * _obj1 = 0; | |
5968 | char *_kwnames[] = { "self","pt", NULL }; | |
5969 | ||
5970 | self = self; | |
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCheckListBox_HitTest",_kwnames,&_argo0,&_obj1)) | |
5972 | return NULL; | |
5973 | if (_argo0) { | |
5974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTest. Expected _wxCheckListBox_p."); | |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | { | |
5981 | _arg1 = &temp; | |
5982 | if (! wxPoint_helper(_obj1, &_arg1)) | |
5983 | return NULL; | |
5984 | } | |
5985 | { | |
5986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5987 | _result = (int )wxCheckListBox_HitTest(_arg0,*_arg1); | |
5988 | ||
5989 | wxPyEndAllowThreads(__tstate); | |
5990 | if (PyErr_Occurred()) return NULL; | |
5991 | } _resultobj = Py_BuildValue("i",_result); | |
5992 | return _resultobj; | |
5993 | } | |
5994 | ||
5995 | #define wxCheckListBox_HitTestXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
5996 | static PyObject *_wrap_wxCheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject * _resultobj; | |
5998 | int _result; | |
5999 | wxCheckListBox * _arg0; | |
6000 | wxCoord _arg1; | |
6001 | wxCoord _arg2; | |
6002 | PyObject * _argo0 = 0; | |
6003 | char *_kwnames[] = { "self","x","y", NULL }; | |
6004 | ||
6005 | self = self; | |
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCheckListBox_HitTestXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6007 | return NULL; | |
6008 | if (_argo0) { | |
6009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCheckListBox_p")) { | |
6011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckListBox_HitTestXY. Expected _wxCheckListBox_p."); | |
6012 | return NULL; | |
6013 | } | |
6014 | } | |
6015 | { | |
6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6017 | _result = (int )wxCheckListBox_HitTestXY(_arg0,_arg1,_arg2); | |
6018 | ||
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) return NULL; | |
6021 | } _resultobj = Py_BuildValue("i",_result); | |
6022 | return _resultobj; | |
6023 | } | |
6024 | ||
3ef86e32 | 6025 | #define new_wxTextAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTextAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
9d6da64a RD |
6026 | static PyObject *_wrap_new_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6027 | PyObject * _resultobj; | |
6028 | wxTextAttr * _result; | |
6029 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
6030 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
6031 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
3ef86e32 | 6032 | wxTextAttrAlignment _arg3 = (wxTextAttrAlignment ) (wxTEXT_ALIGNMENT_DEFAULT); |
9d6da64a RD |
6033 | wxColour temp; |
6034 | PyObject * _obj0 = 0; | |
6035 | wxColour temp0; | |
6036 | PyObject * _obj1 = 0; | |
6037 | PyObject * _argo2 = 0; | |
3ef86e32 | 6038 | char *_kwnames[] = { "colText","colBack","font","alignment", NULL }; |
9d6da64a RD |
6039 | char _ptemp[128]; |
6040 | ||
6041 | self = self; | |
3ef86e32 | 6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOi:new_wxTextAttr",_kwnames,&_obj0,&_obj1,&_argo2,&_arg3)) |
9d6da64a RD |
6043 | return NULL; |
6044 | if (_obj0) | |
6045 | { | |
6046 | _arg0 = &temp; | |
6047 | if (! wxColour_helper(_obj0, &_arg0)) | |
6048 | return NULL; | |
6049 | } | |
6050 | if (_obj1) | |
6051 | { | |
6052 | _arg1 = &temp0; | |
6053 | if (! wxColour_helper(_obj1, &_arg1)) | |
6054 | return NULL; | |
6055 | } | |
6056 | if (_argo2) { | |
b67a9327 | 6057 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
9d6da64a RD |
6058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTextAttr. Expected _wxFont_p."); |
6059 | return NULL; | |
6060 | } | |
6061 | } | |
6062 | { | |
474c48f9 | 6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6064 | _result = (wxTextAttr *)new_wxTextAttr(*_arg0,*_arg1,*_arg2,_arg3); |
9d6da64a | 6065 | |
474c48f9 | 6066 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6067 | if (PyErr_Occurred()) return NULL; |
6068 | } if (_result) { | |
6069 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
6070 | _resultobj = Py_BuildValue("s",_ptemp); | |
6071 | } else { | |
6072 | Py_INCREF(Py_None); | |
6073 | _resultobj = Py_None; | |
6074 | } | |
6075 | return _resultobj; | |
6076 | } | |
6077 | ||
6078 | #define delete_wxTextAttr(_swigobj) (delete _swigobj) | |
6079 | static PyObject *_wrap_delete_wxTextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6080 | PyObject * _resultobj; | |
6081 | wxTextAttr * _arg0; | |
6082 | PyObject * _argo0 = 0; | |
6083 | char *_kwnames[] = { "self", NULL }; | |
6084 | ||
6085 | self = self; | |
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTextAttr",_kwnames,&_argo0)) | |
6087 | return NULL; | |
6088 | if (_argo0) { | |
6089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTextAttr. Expected _wxTextAttr_p."); | |
6092 | return NULL; | |
6093 | } | |
6094 | } | |
6095 | { | |
474c48f9 | 6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6097 | delete_wxTextAttr(_arg0); |
9d6da64a | 6098 | |
474c48f9 | 6099 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6100 | if (PyErr_Occurred()) return NULL; |
6101 | } Py_INCREF(Py_None); | |
6102 | _resultobj = Py_None; | |
6103 | return _resultobj; | |
6104 | } | |
6105 | ||
3ef86e32 RD |
6106 | #define wxTextAttr_Init(_swigobj) (_swigobj->Init()) |
6107 | static PyObject *_wrap_wxTextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6108 | PyObject * _resultobj; | |
6109 | wxTextAttr * _arg0; | |
6110 | PyObject * _argo0 = 0; | |
6111 | char *_kwnames[] = { "self", NULL }; | |
6112 | ||
6113 | self = self; | |
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_Init",_kwnames,&_argo0)) | |
6115 | return NULL; | |
6116 | if (_argo0) { | |
6117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Init. Expected _wxTextAttr_p."); | |
6120 | return NULL; | |
6121 | } | |
6122 | } | |
6123 | { | |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | wxTextAttr_Init(_arg0); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) return NULL; | |
6129 | } Py_INCREF(Py_None); | |
6130 | _resultobj = Py_None; | |
6131 | return _resultobj; | |
6132 | } | |
6133 | ||
9d6da64a RD |
6134 | #define wxTextAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
6135 | static PyObject *_wrap_wxTextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6136 | PyObject * _resultobj; | |
6137 | wxTextAttr * _arg0; | |
6138 | wxColour * _arg1; | |
6139 | PyObject * _argo0 = 0; | |
6140 | wxColour temp; | |
6141 | PyObject * _obj1 = 0; | |
6142 | char *_kwnames[] = { "self","colText", NULL }; | |
6143 | ||
6144 | self = self; | |
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
6146 | return NULL; | |
6147 | if (_argo0) { | |
6148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTextColour. Expected _wxTextAttr_p."); | |
6151 | return NULL; | |
6152 | } | |
6153 | } | |
6154 | { | |
6155 | _arg1 = &temp; | |
6156 | if (! wxColour_helper(_obj1, &_arg1)) | |
6157 | return NULL; | |
6158 | } | |
6159 | { | |
474c48f9 | 6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6161 | wxTextAttr_SetTextColour(_arg0,*_arg1); |
9d6da64a | 6162 | |
474c48f9 | 6163 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6164 | if (PyErr_Occurred()) return NULL; |
6165 | } Py_INCREF(Py_None); | |
6166 | _resultobj = Py_None; | |
6167 | return _resultobj; | |
6168 | } | |
6169 | ||
6170 | #define wxTextAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
6171 | static PyObject *_wrap_wxTextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6172 | PyObject * _resultobj; | |
6173 | wxTextAttr * _arg0; | |
6174 | wxColour * _arg1; | |
6175 | PyObject * _argo0 = 0; | |
6176 | wxColour temp; | |
6177 | PyObject * _obj1 = 0; | |
6178 | char *_kwnames[] = { "self","colBack", NULL }; | |
6179 | ||
6180 | self = self; | |
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
6182 | return NULL; | |
6183 | if (_argo0) { | |
6184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetBackgroundColour. Expected _wxTextAttr_p."); | |
6187 | return NULL; | |
6188 | } | |
6189 | } | |
6190 | { | |
6191 | _arg1 = &temp; | |
6192 | if (! wxColour_helper(_obj1, &_arg1)) | |
6193 | return NULL; | |
6194 | } | |
6195 | { | |
474c48f9 | 6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6197 | wxTextAttr_SetBackgroundColour(_arg0,*_arg1); |
9d6da64a | 6198 | |
474c48f9 | 6199 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6200 | if (PyErr_Occurred()) return NULL; |
6201 | } Py_INCREF(Py_None); | |
6202 | _resultobj = Py_None; | |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | #define wxTextAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
6207 | static PyObject *_wrap_wxTextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject * _resultobj; | |
6209 | wxTextAttr * _arg0; | |
6210 | wxFont * _arg1; | |
6211 | PyObject * _argo0 = 0; | |
6212 | PyObject * _argo1 = 0; | |
6213 | char *_kwnames[] = { "self","font", NULL }; | |
6214 | ||
6215 | self = self; | |
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
6217 | return NULL; | |
6218 | if (_argo0) { | |
6219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFont. Expected _wxTextAttr_p."); | |
6222 | return NULL; | |
6223 | } | |
6224 | } | |
6225 | if (_argo1) { | |
b67a9327 | 6226 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
9d6da64a RD |
6227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_SetFont. Expected _wxFont_p."); |
6228 | return NULL; | |
6229 | } | |
6230 | } | |
6231 | { | |
474c48f9 | 6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6233 | wxTextAttr_SetFont(_arg0,*_arg1); |
9d6da64a | 6234 | |
474c48f9 | 6235 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6236 | if (PyErr_Occurred()) return NULL; |
6237 | } Py_INCREF(Py_None); | |
6238 | _resultobj = Py_None; | |
6239 | return _resultobj; | |
6240 | } | |
6241 | ||
3ef86e32 RD |
6242 | #define wxTextAttr_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0)) |
6243 | static PyObject *_wrap_wxTextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6244 | PyObject * _resultobj; | |
6245 | wxTextAttr * _arg0; | |
6246 | wxTextAttrAlignment _arg1; | |
6247 | PyObject * _argo0 = 0; | |
6248 | char *_kwnames[] = { "self","alignment", NULL }; | |
6249 | ||
6250 | self = self; | |
6251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetAlignment",_kwnames,&_argo0,&_arg1)) | |
6252 | return NULL; | |
6253 | if (_argo0) { | |
6254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetAlignment. Expected _wxTextAttr_p."); | |
6257 | return NULL; | |
6258 | } | |
6259 | } | |
6260 | { | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | wxTextAttr_SetAlignment(_arg0,_arg1); | |
6263 | ||
6264 | wxPyEndAllowThreads(__tstate); | |
6265 | if (PyErr_Occurred()) return NULL; | |
6266 | } Py_INCREF(Py_None); | |
6267 | _resultobj = Py_None; | |
6268 | return _resultobj; | |
6269 | } | |
6270 | ||
6271 | #define wxTextAttr_SetTabs(_swigobj,_swigarg0) (_swigobj->SetTabs(_swigarg0)) | |
6272 | static PyObject *_wrap_wxTextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject * _resultobj; | |
6274 | wxTextAttr * _arg0; | |
6275 | wxArrayInt * _arg1; | |
6276 | PyObject * _argo0 = 0; | |
6277 | PyObject * _obj1 = 0; | |
6278 | char *_kwnames[] = { "self","tabs", NULL }; | |
6279 | ||
6280 | self = self; | |
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextAttr_SetTabs",_kwnames,&_argo0,&_obj1)) | |
6282 | return NULL; | |
6283 | if (_argo0) { | |
6284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetTabs. Expected _wxTextAttr_p."); | |
6287 | return NULL; | |
6288 | } | |
6289 | } | |
6290 | { | |
6291 | if (! PySequence_Check(_obj1)) { | |
6292 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6293 | return NULL; | |
6294 | } | |
6295 | _arg1 = new wxArrayInt; | |
6296 | int i, len=PySequence_Length(_obj1); | |
6297 | for (i=0; i<len; i++) { | |
6298 | PyObject* item = PySequence_GetItem(_obj1, i); | |
6299 | PyObject* number = PyNumber_Int(item); | |
6300 | _arg1->Add(PyInt_AS_LONG(number)); | |
6301 | Py_DECREF(item); | |
6302 | Py_DECREF(number); | |
6303 | } | |
6304 | } | |
6305 | { | |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | wxTextAttr_SetTabs(_arg0,*_arg1); | |
6308 | ||
6309 | wxPyEndAllowThreads(__tstate); | |
6310 | if (PyErr_Occurred()) return NULL; | |
6311 | } Py_INCREF(Py_None); | |
6312 | _resultobj = Py_None; | |
6313 | { | |
6314 | if (_obj1) | |
6315 | delete _arg1; | |
6316 | } | |
6317 | return _resultobj; | |
6318 | } | |
6319 | ||
6320 | #define wxTextAttr_SetLeftIndent(_swigobj,_swigarg0) (_swigobj->SetLeftIndent(_swigarg0)) | |
6321 | static PyObject *_wrap_wxTextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6322 | PyObject * _resultobj; | |
6323 | wxTextAttr * _arg0; | |
6324 | int _arg1; | |
6325 | PyObject * _argo0 = 0; | |
6326 | char *_kwnames[] = { "self","indent", NULL }; | |
6327 | ||
6328 | self = self; | |
6329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetLeftIndent",_kwnames,&_argo0,&_arg1)) | |
6330 | return NULL; | |
6331 | if (_argo0) { | |
6332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetLeftIndent. Expected _wxTextAttr_p."); | |
6335 | return NULL; | |
6336 | } | |
6337 | } | |
6338 | { | |
6339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6340 | wxTextAttr_SetLeftIndent(_arg0,_arg1); | |
6341 | ||
6342 | wxPyEndAllowThreads(__tstate); | |
6343 | if (PyErr_Occurred()) return NULL; | |
6344 | } Py_INCREF(Py_None); | |
6345 | _resultobj = Py_None; | |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
6349 | #define wxTextAttr_SetRightIndent(_swigobj,_swigarg0) (_swigobj->SetRightIndent(_swigarg0)) | |
6350 | static PyObject *_wrap_wxTextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | wxTextAttr * _arg0; | |
6353 | int _arg1; | |
6354 | PyObject * _argo0 = 0; | |
6355 | char *_kwnames[] = { "self","indent", NULL }; | |
6356 | ||
6357 | self = self; | |
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextAttr_SetRightIndent",_kwnames,&_argo0,&_arg1)) | |
6359 | return NULL; | |
6360 | if (_argo0) { | |
6361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetRightIndent. Expected _wxTextAttr_p."); | |
6364 | return NULL; | |
6365 | } | |
6366 | } | |
6367 | { | |
6368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6369 | wxTextAttr_SetRightIndent(_arg0,_arg1); | |
6370 | ||
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) return NULL; | |
6373 | } Py_INCREF(Py_None); | |
6374 | _resultobj = Py_None; | |
6375 | return _resultobj; | |
6376 | } | |
6377 | ||
6378 | #define wxTextAttr_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
6379 | static PyObject *_wrap_wxTextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6380 | PyObject * _resultobj; | |
6381 | wxTextAttr * _arg0; | |
6382 | long _arg1; | |
6383 | PyObject * _argo0 = 0; | |
6384 | char *_kwnames[] = { "self","flags", NULL }; | |
6385 | ||
6386 | self = self; | |
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextAttr_SetFlags",_kwnames,&_argo0,&_arg1)) | |
6388 | return NULL; | |
6389 | if (_argo0) { | |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_SetFlags. Expected _wxTextAttr_p."); | |
6393 | return NULL; | |
6394 | } | |
6395 | } | |
6396 | { | |
6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6398 | wxTextAttr_SetFlags(_arg0,_arg1); | |
6399 | ||
6400 | wxPyEndAllowThreads(__tstate); | |
6401 | if (PyErr_Occurred()) return NULL; | |
6402 | } Py_INCREF(Py_None); | |
6403 | _resultobj = Py_None; | |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
9d6da64a RD |
6407 | #define wxTextAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
6408 | static PyObject *_wrap_wxTextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject * _resultobj; | |
6410 | bool _result; | |
6411 | wxTextAttr * _arg0; | |
6412 | PyObject * _argo0 = 0; | |
6413 | char *_kwnames[] = { "self", NULL }; | |
6414 | ||
6415 | self = self; | |
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTextColour",_kwnames,&_argo0)) | |
6417 | return NULL; | |
6418 | if (_argo0) { | |
6419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTextColour. Expected _wxTextAttr_p."); | |
6422 | return NULL; | |
6423 | } | |
6424 | } | |
6425 | { | |
474c48f9 | 6426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6427 | _result = (bool )wxTextAttr_HasTextColour(_arg0); |
9d6da64a | 6428 | |
474c48f9 | 6429 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6430 | if (PyErr_Occurred()) return NULL; |
6431 | } _resultobj = Py_BuildValue("i",_result); | |
6432 | return _resultobj; | |
6433 | } | |
6434 | ||
6435 | #define wxTextAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
6436 | static PyObject *_wrap_wxTextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6437 | PyObject * _resultobj; | |
6438 | bool _result; | |
6439 | wxTextAttr * _arg0; | |
6440 | PyObject * _argo0 = 0; | |
6441 | char *_kwnames[] = { "self", NULL }; | |
6442 | ||
6443 | self = self; | |
6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
6445 | return NULL; | |
6446 | if (_argo0) { | |
6447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasBackgroundColour. Expected _wxTextAttr_p."); | |
6450 | return NULL; | |
6451 | } | |
6452 | } | |
6453 | { | |
474c48f9 | 6454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6455 | _result = (bool )wxTextAttr_HasBackgroundColour(_arg0); |
9d6da64a | 6456 | |
474c48f9 | 6457 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6458 | if (PyErr_Occurred()) return NULL; |
6459 | } _resultobj = Py_BuildValue("i",_result); | |
6460 | return _resultobj; | |
6461 | } | |
6462 | ||
6463 | #define wxTextAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
6464 | static PyObject *_wrap_wxTextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject * _resultobj; | |
6466 | bool _result; | |
6467 | wxTextAttr * _arg0; | |
6468 | PyObject * _argo0 = 0; | |
6469 | char *_kwnames[] = { "self", NULL }; | |
6470 | ||
6471 | self = self; | |
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasFont",_kwnames,&_argo0)) | |
6473 | return NULL; | |
6474 | if (_argo0) { | |
6475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFont. Expected _wxTextAttr_p."); | |
6478 | return NULL; | |
6479 | } | |
6480 | } | |
6481 | { | |
474c48f9 | 6482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6483 | _result = (bool )wxTextAttr_HasFont(_arg0); |
9d6da64a | 6484 | |
474c48f9 | 6485 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
6486 | if (PyErr_Occurred()) return NULL; |
6487 | } _resultobj = Py_BuildValue("i",_result); | |
6488 | return _resultobj; | |
6489 | } | |
6490 | ||
3ef86e32 RD |
6491 | #define wxTextAttr_HasAlignment(_swigobj) (_swigobj->HasAlignment()) |
6492 | static PyObject *_wrap_wxTextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6493 | PyObject * _resultobj; | |
6494 | bool _result; | |
6495 | wxTextAttr * _arg0; | |
6496 | PyObject * _argo0 = 0; | |
6497 | char *_kwnames[] = { "self", NULL }; | |
6498 | ||
6499 | self = self; | |
6500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasAlignment",_kwnames,&_argo0)) | |
6501 | return NULL; | |
6502 | if (_argo0) { | |
6503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasAlignment. Expected _wxTextAttr_p."); | |
6506 | return NULL; | |
6507 | } | |
6508 | } | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | _result = (bool )wxTextAttr_HasAlignment(_arg0); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) return NULL; | |
6515 | } _resultobj = Py_BuildValue("i",_result); | |
6516 | return _resultobj; | |
6517 | } | |
6518 | ||
6519 | #define wxTextAttr_HasTabs(_swigobj) (_swigobj->HasTabs()) | |
6520 | static PyObject *_wrap_wxTextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject * _resultobj; | |
6522 | bool _result; | |
6523 | wxTextAttr * _arg0; | |
6524 | PyObject * _argo0 = 0; | |
6525 | char *_kwnames[] = { "self", NULL }; | |
6526 | ||
6527 | self = self; | |
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasTabs",_kwnames,&_argo0)) | |
6529 | return NULL; | |
6530 | if (_argo0) { | |
6531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasTabs. Expected _wxTextAttr_p."); | |
6534 | return NULL; | |
6535 | } | |
6536 | } | |
6537 | { | |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | _result = (bool )wxTextAttr_HasTabs(_arg0); | |
6540 | ||
6541 | wxPyEndAllowThreads(__tstate); | |
6542 | if (PyErr_Occurred()) return NULL; | |
6543 | } _resultobj = Py_BuildValue("i",_result); | |
6544 | return _resultobj; | |
6545 | } | |
6546 | ||
6547 | #define wxTextAttr_HasLeftIndent(_swigobj) (_swigobj->HasLeftIndent()) | |
6548 | static PyObject *_wrap_wxTextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject * _resultobj; | |
6550 | bool _result; | |
6551 | wxTextAttr * _arg0; | |
6552 | PyObject * _argo0 = 0; | |
6553 | char *_kwnames[] = { "self", NULL }; | |
6554 | ||
6555 | self = self; | |
6556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasLeftIndent",_kwnames,&_argo0)) | |
6557 | return NULL; | |
6558 | if (_argo0) { | |
6559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasLeftIndent. Expected _wxTextAttr_p."); | |
6562 | return NULL; | |
6563 | } | |
6564 | } | |
6565 | { | |
6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6567 | _result = (bool )wxTextAttr_HasLeftIndent(_arg0); | |
6568 | ||
6569 | wxPyEndAllowThreads(__tstate); | |
6570 | if (PyErr_Occurred()) return NULL; | |
6571 | } _resultobj = Py_BuildValue("i",_result); | |
6572 | return _resultobj; | |
6573 | } | |
6574 | ||
6575 | #define wxTextAttr_HasRightIndent(_swigobj) (_swigobj->HasRightIndent()) | |
6576 | static PyObject *_wrap_wxTextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6577 | PyObject * _resultobj; | |
6578 | bool _result; | |
6579 | wxTextAttr * _arg0; | |
6580 | PyObject * _argo0 = 0; | |
6581 | char *_kwnames[] = { "self", NULL }; | |
6582 | ||
6583 | self = self; | |
6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_HasRightIndent",_kwnames,&_argo0)) | |
6585 | return NULL; | |
6586 | if (_argo0) { | |
6587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasRightIndent. Expected _wxTextAttr_p."); | |
6590 | return NULL; | |
6591 | } | |
6592 | } | |
6593 | { | |
6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6595 | _result = (bool )wxTextAttr_HasRightIndent(_arg0); | |
6596 | ||
6597 | wxPyEndAllowThreads(__tstate); | |
6598 | if (PyErr_Occurred()) return NULL; | |
6599 | } _resultobj = Py_BuildValue("i",_result); | |
6600 | return _resultobj; | |
6601 | } | |
6602 | ||
6603 | #define wxTextAttr_HasFlag(_swigobj,_swigarg0) (_swigobj->HasFlag(_swigarg0)) | |
6604 | static PyObject *_wrap_wxTextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject * _resultobj; | |
6606 | bool _result; | |
6607 | wxTextAttr * _arg0; | |
6608 | long _arg1; | |
6609 | PyObject * _argo0 = 0; | |
6610 | char *_kwnames[] = { "self","flag", NULL }; | |
6611 | ||
6612 | self = self; | |
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextAttr_HasFlag",_kwnames,&_argo0,&_arg1)) | |
6614 | return NULL; | |
6615 | if (_argo0) { | |
6616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_HasFlag. Expected _wxTextAttr_p."); | |
6619 | return NULL; | |
6620 | } | |
6621 | } | |
6622 | { | |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | _result = (bool )wxTextAttr_HasFlag(_arg0,_arg1); | |
6625 | ||
6626 | wxPyEndAllowThreads(__tstate); | |
6627 | if (PyErr_Occurred()) return NULL; | |
6628 | } _resultobj = Py_BuildValue("i",_result); | |
6629 | return _resultobj; | |
6630 | } | |
6631 | ||
9d6da64a RD |
6632 | #define wxTextAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
6633 | static PyObject *_wrap_wxTextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject * _resultobj; | |
6635 | wxColour * _result; | |
6636 | wxTextAttr * _arg0; | |
6637 | PyObject * _argo0 = 0; | |
6638 | char *_kwnames[] = { "self", NULL }; | |
6639 | char _ptemp[128]; | |
6640 | ||
6641 | self = self; | |
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTextColour",_kwnames,&_argo0)) | |
6643 | return NULL; | |
6644 | if (_argo0) { | |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTextColour. Expected _wxTextAttr_p."); | |
6648 | return NULL; | |
6649 | } | |
6650 | } | |
6651 | { | |
474c48f9 | 6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6653 | _result = new wxColour (wxTextAttr_GetTextColour(_arg0)); |
9d6da64a | 6654 | |
474c48f9 | 6655 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6656 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6657 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6658 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6659 | return _resultobj; |
6660 | } | |
6661 | ||
6662 | #define wxTextAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6663 | static PyObject *_wrap_wxTextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject * _resultobj; | |
6665 | wxColour * _result; | |
6666 | wxTextAttr * _arg0; | |
6667 | PyObject * _argo0 = 0; | |
6668 | char *_kwnames[] = { "self", NULL }; | |
6669 | char _ptemp[128]; | |
6670 | ||
6671 | self = self; | |
6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6673 | return NULL; | |
6674 | if (_argo0) { | |
6675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetBackgroundColour. Expected _wxTextAttr_p."); | |
6678 | return NULL; | |
6679 | } | |
6680 | } | |
6681 | { | |
474c48f9 | 6682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6683 | _result = new wxColour (wxTextAttr_GetBackgroundColour(_arg0)); |
9d6da64a | 6684 | |
474c48f9 | 6685 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6686 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6687 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6688 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6689 | return _resultobj; |
6690 | } | |
6691 | ||
6692 | #define wxTextAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6693 | static PyObject *_wrap_wxTextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6694 | PyObject * _resultobj; | |
6695 | wxFont * _result; | |
6696 | wxTextAttr * _arg0; | |
6697 | PyObject * _argo0 = 0; | |
6698 | char *_kwnames[] = { "self", NULL }; | |
6699 | char _ptemp[128]; | |
6700 | ||
6701 | self = self; | |
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFont",_kwnames,&_argo0)) | |
6703 | return NULL; | |
6704 | if (_argo0) { | |
6705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFont. Expected _wxTextAttr_p."); | |
6708 | return NULL; | |
6709 | } | |
6710 | } | |
6711 | { | |
474c48f9 | 6712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6713 | _result = new wxFont (wxTextAttr_GetFont(_arg0)); |
9d6da64a | 6714 | |
474c48f9 | 6715 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 6716 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
6717 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
6718 | _resultobj = Py_BuildValue("s",_ptemp); | |
9d6da64a RD |
6719 | return _resultobj; |
6720 | } | |
6721 | ||
3ef86e32 RD |
6722 | #define wxTextAttr_GetAlignment(_swigobj) (_swigobj->GetAlignment()) |
6723 | static PyObject *_wrap_wxTextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6724 | PyObject * _resultobj; | |
6725 | wxTextAttrAlignment _result; | |
6726 | wxTextAttr * _arg0; | |
6727 | PyObject * _argo0 = 0; | |
6728 | char *_kwnames[] = { "self", NULL }; | |
6729 | ||
6730 | self = self; | |
6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetAlignment",_kwnames,&_argo0)) | |
6732 | return NULL; | |
6733 | if (_argo0) { | |
6734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetAlignment. Expected _wxTextAttr_p."); | |
6737 | return NULL; | |
6738 | } | |
6739 | } | |
6740 | { | |
6741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6742 | _result = (wxTextAttrAlignment )wxTextAttr_GetAlignment(_arg0); | |
6743 | ||
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) return NULL; | |
6746 | } _resultobj = Py_BuildValue("i",_result); | |
6747 | return _resultobj; | |
6748 | } | |
6749 | ||
6750 | #define wxTextAttr_GetTabs(_swigobj) (_swigobj->GetTabs()) | |
6751 | static PyObject *_wrap_wxTextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6752 | PyObject * _resultobj; | |
6753 | wxArrayInt * _result; | |
6754 | wxTextAttr * _arg0; | |
6755 | PyObject * _argo0 = 0; | |
6756 | char *_kwnames[] = { "self", NULL }; | |
6757 | ||
6758 | self = self; | |
6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetTabs",_kwnames,&_argo0)) | |
6760 | return NULL; | |
6761 | if (_argo0) { | |
6762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetTabs. Expected _wxTextAttr_p."); | |
6765 | return NULL; | |
6766 | } | |
6767 | } | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | const wxArrayInt & _result_ref = wxTextAttr_GetTabs(_arg0); | |
6771 | _result = (wxArrayInt *) &_result_ref; | |
6772 | ||
6773 | wxPyEndAllowThreads(__tstate); | |
6774 | if (PyErr_Occurred()) return NULL; | |
6775 | }{ | |
6776 | _resultobj = PyList_New(0); | |
6777 | size_t idx; | |
6778 | for (idx = 0; idx < _result->GetCount(); idx += 1) { | |
6779 | PyObject* val = PyInt_FromLong(_result->Item(idx)); | |
6780 | PyList_Append(_resultobj, val); | |
6781 | Py_DECREF(val); | |
6782 | } | |
6783 | } | |
6784 | return _resultobj; | |
6785 | } | |
6786 | ||
6787 | #define wxTextAttr_GetLeftIndent(_swigobj) (_swigobj->GetLeftIndent()) | |
6788 | static PyObject *_wrap_wxTextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6789 | PyObject * _resultobj; | |
6790 | long _result; | |
6791 | wxTextAttr * _arg0; | |
6792 | PyObject * _argo0 = 0; | |
6793 | char *_kwnames[] = { "self", NULL }; | |
6794 | ||
6795 | self = self; | |
6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetLeftIndent",_kwnames,&_argo0)) | |
6797 | return NULL; | |
6798 | if (_argo0) { | |
6799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetLeftIndent. Expected _wxTextAttr_p."); | |
6802 | return NULL; | |
6803 | } | |
6804 | } | |
6805 | { | |
6806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6807 | _result = (long )wxTextAttr_GetLeftIndent(_arg0); | |
6808 | ||
6809 | wxPyEndAllowThreads(__tstate); | |
6810 | if (PyErr_Occurred()) return NULL; | |
6811 | } _resultobj = Py_BuildValue("l",_result); | |
6812 | return _resultobj; | |
6813 | } | |
6814 | ||
6815 | #define wxTextAttr_GetRightIndent(_swigobj) (_swigobj->GetRightIndent()) | |
6816 | static PyObject *_wrap_wxTextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6817 | PyObject * _resultobj; | |
6818 | long _result; | |
6819 | wxTextAttr * _arg0; | |
6820 | PyObject * _argo0 = 0; | |
6821 | char *_kwnames[] = { "self", NULL }; | |
6822 | ||
6823 | self = self; | |
6824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetRightIndent",_kwnames,&_argo0)) | |
6825 | return NULL; | |
6826 | if (_argo0) { | |
6827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetRightIndent. Expected _wxTextAttr_p."); | |
6830 | return NULL; | |
6831 | } | |
6832 | } | |
6833 | { | |
6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6835 | _result = (long )wxTextAttr_GetRightIndent(_arg0); | |
6836 | ||
6837 | wxPyEndAllowThreads(__tstate); | |
6838 | if (PyErr_Occurred()) return NULL; | |
6839 | } _resultobj = Py_BuildValue("l",_result); | |
6840 | return _resultobj; | |
6841 | } | |
6842 | ||
6843 | #define wxTextAttr_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
6844 | static PyObject *_wrap_wxTextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6845 | PyObject * _resultobj; | |
6846 | long _result; | |
6847 | wxTextAttr * _arg0; | |
6848 | PyObject * _argo0 = 0; | |
6849 | char *_kwnames[] = { "self", NULL }; | |
6850 | ||
6851 | self = self; | |
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_GetFlags",_kwnames,&_argo0)) | |
6853 | return NULL; | |
6854 | if (_argo0) { | |
6855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_GetFlags. Expected _wxTextAttr_p."); | |
6858 | return NULL; | |
6859 | } | |
6860 | } | |
6861 | { | |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | _result = (long )wxTextAttr_GetFlags(_arg0); | |
6864 | ||
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) return NULL; | |
6867 | } _resultobj = Py_BuildValue("l",_result); | |
6868 | return _resultobj; | |
6869 | } | |
6870 | ||
a57d56d6 RD |
6871 | #define wxTextAttr_IsDefault(_swigobj) (_swigobj->IsDefault()) |
6872 | static PyObject *_wrap_wxTextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6873 | PyObject * _resultobj; | |
6874 | bool _result; | |
6875 | wxTextAttr * _arg0; | |
6876 | PyObject * _argo0 = 0; | |
6877 | char *_kwnames[] = { "self", NULL }; | |
6878 | ||
6879 | self = self; | |
6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextAttr_IsDefault",_kwnames,&_argo0)) | |
6881 | return NULL; | |
6882 | if (_argo0) { | |
6883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { | |
6885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_IsDefault. Expected _wxTextAttr_p."); | |
6886 | return NULL; | |
6887 | } | |
6888 | } | |
6889 | { | |
474c48f9 | 6890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6891 | _result = (bool )wxTextAttr_IsDefault(_arg0); |
a57d56d6 | 6892 | |
474c48f9 | 6893 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
6894 | if (PyErr_Occurred()) return NULL; |
6895 | } _resultobj = Py_BuildValue("i",_result); | |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
7a9b33db RD |
6899 | static PyObject *_wrap_wxTextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { |
6900 | PyObject * _resultobj; | |
6901 | wxTextAttr * _result; | |
6902 | wxTextAttr * _arg0; | |
6903 | wxTextAttr * _arg1; | |
6904 | wxTextCtrl * _arg2; | |
6905 | PyObject * _argo0 = 0; | |
6906 | PyObject * _argo1 = 0; | |
6907 | PyObject * _argo2 = 0; | |
6908 | char *_kwnames[] = { "attr","attrDef","text", NULL }; | |
6909 | char _ptemp[128]; | |
6910 | ||
6911 | self = self; | |
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextAttr_Combine",_kwnames,&_argo0,&_argo1,&_argo2)) | |
6913 | return NULL; | |
6914 | if (_argo0) { | |
b67a9327 | 6915 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextAttr_p")) { |
7a9b33db RD |
6916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextAttr_Combine. Expected _wxTextAttr_p."); |
6917 | return NULL; | |
6918 | } | |
6919 | } | |
6920 | if (_argo1) { | |
b67a9327 | 6921 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { |
7a9b33db RD |
6922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextAttr_Combine. Expected _wxTextAttr_p."); |
6923 | return NULL; | |
6924 | } | |
6925 | } | |
6926 | if (_argo2) { | |
6927 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6928 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextCtrl_p")) { | |
6929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextAttr_Combine. Expected _wxTextCtrl_p."); | |
6930 | return NULL; | |
6931 | } | |
6932 | } | |
6933 | { | |
474c48f9 | 6934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6935 | _result = new wxTextAttr (wxTextAttr::Combine(*_arg0,*_arg1,_arg2)); |
7a9b33db | 6936 | |
474c48f9 | 6937 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
6938 | if (PyErr_Occurred()) return NULL; |
6939 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTextAttr_p"); | |
6940 | _resultobj = Py_BuildValue("s",_ptemp); | |
6941 | return _resultobj; | |
6942 | } | |
6943 | ||
70551f47 RD |
6944 | static void *SwigwxTextCtrlTowxControl(void *ptr) { |
6945 | wxTextCtrl *src; | |
6946 | wxControl *dest; | |
6947 | src = (wxTextCtrl *) ptr; | |
6948 | dest = (wxControl *) src; | |
6949 | return (void *) dest; | |
6950 | } | |
6951 | ||
6952 | static void *SwigwxTextCtrlTowxWindow(void *ptr) { | |
6953 | wxTextCtrl *src; | |
6954 | wxWindow *dest; | |
6955 | src = (wxTextCtrl *) ptr; | |
6956 | dest = (wxWindow *) src; | |
6957 | return (void *) dest; | |
6958 | } | |
6959 | ||
6960 | static void *SwigwxTextCtrlTowxEvtHandler(void *ptr) { | |
6961 | wxTextCtrl *src; | |
6962 | wxEvtHandler *dest; | |
6963 | src = (wxTextCtrl *) ptr; | |
6964 | dest = (wxEvtHandler *) src; | |
6965 | return (void *) dest; | |
6966 | } | |
6967 | ||
9df61a29 RD |
6968 | static void *SwigwxTextCtrlTowxObject(void *ptr) { |
6969 | wxTextCtrl *src; | |
6970 | wxObject *dest; | |
6971 | src = (wxTextCtrl *) ptr; | |
6972 | dest = (wxObject *) src; | |
6973 | return (void *) dest; | |
6974 | } | |
6975 | ||
70551f47 | 6976 | #define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 6977 | static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6978 | PyObject * _resultobj; |
6979 | wxTextCtrl * _result; | |
6980 | wxWindow * _arg0; | |
6981 | wxWindowID _arg1; | |
9a74fcaf | 6982 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
6983 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
6984 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 6985 | long _arg5 = (long ) 0; |
b68dc582 | 6986 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6987 | wxString * _arg7 = (wxString *) &wxPyTextCtrlNameStr; |
2d091820 | 6988 | PyObject * _argo0 = 0; |
9a74fcaf | 6989 | PyObject * _obj2 = 0; |
37f6a977 RD |
6990 | wxPoint temp; |
6991 | PyObject * _obj3 = 0; | |
6992 | wxSize temp0; | |
6993 | PyObject * _obj4 = 0; | |
2d091820 | 6994 | PyObject * _argo6 = 0; |
9a74fcaf | 6995 | PyObject * _obj7 = 0; |
107e4716 | 6996 | char *_kwnames[] = { "parent","id","value","pos","size","style","validator","name", NULL }; |
70551f47 RD |
6997 | char _ptemp[128]; |
6998 | ||
6999 | self = self; | |
9a74fcaf | 7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOlOO:new_wxTextCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 7001 | return NULL; |
2d091820 RD |
7002 | if (_argo0) { |
7003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextCtrl. Expected _wxWindow_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
9a74fcaf RD |
7009 | if (_obj2) |
7010 | { | |
7011 | _arg2 = wxString_in_helper(_obj2); | |
7012 | if (_arg2 == NULL) | |
7013 | return NULL; | |
7014 | } | |
37f6a977 RD |
7015 | if (_obj3) |
7016 | { | |
7017 | _arg3 = &temp; | |
7018 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 7019 | return NULL; |
37f6a977 RD |
7020 | } |
7021 | if (_obj4) | |
7022 | { | |
7023 | _arg4 = &temp0; | |
7024 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 7025 | return NULL; |
37f6a977 | 7026 | } |
2d091820 | 7027 | if (_argo6) { |
b67a9327 | 7028 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
70551f47 RD |
7029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxTextCtrl. Expected _wxValidator_p."); |
7030 | return NULL; | |
7031 | } | |
7032 | } | |
9a74fcaf RD |
7033 | if (_obj7) |
7034 | { | |
7035 | _arg7 = wxString_in_helper(_obj7); | |
7036 | if (_arg7 == NULL) | |
7037 | return NULL; | |
7038 | } | |
ab9bc19b | 7039 | { |
474c48f9 | 7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 7041 | _result = (wxTextCtrl *)new_wxTextCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 7042 | |
474c48f9 | 7043 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7044 | if (PyErr_Occurred()) return NULL; |
7045 | } if (_result) { | |
7046 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7047 | _resultobj = Py_BuildValue("s",_ptemp); | |
7048 | } else { | |
7049 | Py_INCREF(Py_None); | |
7050 | _resultobj = Py_None; | |
7051 | } | |
9a74fcaf RD |
7052 | { |
7053 | if (_obj2) | |
7054 | delete _arg2; | |
7055 | } | |
7056 | { | |
7057 | if (_obj7) | |
7058 | delete _arg7; | |
7059 | } | |
aa2a5b86 RD |
7060 | return _resultobj; |
7061 | } | |
7062 | ||
7063 | #define new_wxPreTextCtrl() (new wxTextCtrl()) | |
7064 | static PyObject *_wrap_new_wxPreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject * _resultobj; | |
7066 | wxTextCtrl * _result; | |
7067 | char *_kwnames[] = { NULL }; | |
7068 | char _ptemp[128]; | |
7069 | ||
7070 | self = self; | |
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTextCtrl",_kwnames)) | |
7072 | return NULL; | |
7073 | { | |
474c48f9 | 7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7075 | _result = (wxTextCtrl *)new_wxPreTextCtrl(); |
aa2a5b86 | 7076 | |
474c48f9 | 7077 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7078 | if (PyErr_Occurred()) return NULL; |
7079 | } if (_result) { | |
7080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7081 | _resultobj = Py_BuildValue("s",_ptemp); | |
7082 | } else { | |
7083 | Py_INCREF(Py_None); | |
7084 | _resultobj = Py_None; | |
7085 | } | |
7086 | return _resultobj; | |
7087 | } | |
7088 | ||
7089 | #define wxTextCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
7090 | static PyObject *_wrap_wxTextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7091 | PyObject * _resultobj; | |
7092 | bool _result; | |
7093 | wxTextCtrl * _arg0; | |
7094 | wxWindow * _arg1; | |
7095 | wxWindowID _arg2; | |
9a74fcaf | 7096 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
7097 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
7098 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
7099 | long _arg6 = (long ) 0; | |
7100 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 7101 | wxString * _arg8 = (wxString *) &wxPyTextCtrlNameStr; |
aa2a5b86 RD |
7102 | PyObject * _argo0 = 0; |
7103 | PyObject * _argo1 = 0; | |
9a74fcaf | 7104 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
7105 | wxPoint temp; |
7106 | PyObject * _obj4 = 0; | |
7107 | wxSize temp0; | |
7108 | PyObject * _obj5 = 0; | |
7109 | PyObject * _argo7 = 0; | |
9a74fcaf | 7110 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
7111 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","validator","name", NULL }; |
7112 | ||
7113 | self = self; | |
9a74fcaf | 7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOlOO:wxTextCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
7115 | return NULL; |
7116 | if (_argo0) { | |
7117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Create. Expected _wxTextCtrl_p."); | |
7120 | return NULL; | |
7121 | } | |
7122 | } | |
7123 | if (_argo1) { | |
7124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_Create. Expected _wxWindow_p."); | |
7127 | return NULL; | |
7128 | } | |
7129 | } | |
9a74fcaf RD |
7130 | if (_obj3) |
7131 | { | |
7132 | _arg3 = wxString_in_helper(_obj3); | |
7133 | if (_arg3 == NULL) | |
7134 | return NULL; | |
7135 | } | |
aa2a5b86 RD |
7136 | if (_obj4) |
7137 | { | |
7138 | _arg4 = &temp; | |
7139 | if (! wxPoint_helper(_obj4, &_arg4)) | |
7140 | return NULL; | |
7141 | } | |
7142 | if (_obj5) | |
7143 | { | |
7144 | _arg5 = &temp0; | |
7145 | if (! wxSize_helper(_obj5, &_arg5)) | |
7146 | return NULL; | |
7147 | } | |
7148 | if (_argo7) { | |
b67a9327 | 7149 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
7150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxTextCtrl_Create. Expected _wxValidator_p."); |
7151 | return NULL; | |
7152 | } | |
7153 | } | |
9a74fcaf RD |
7154 | if (_obj8) |
7155 | { | |
7156 | _arg8 = wxString_in_helper(_obj8); | |
7157 | if (_arg8 == NULL) | |
7158 | return NULL; | |
7159 | } | |
aa2a5b86 | 7160 | { |
474c48f9 | 7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 7162 | _result = (bool )wxTextCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 7163 | |
474c48f9 | 7164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7165 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 7166 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
7167 | { |
7168 | if (_obj3) | |
7169 | delete _arg3; | |
7170 | } | |
7171 | { | |
7172 | if (_obj8) | |
7173 | delete _arg8; | |
7174 | } | |
70551f47 RD |
7175 | return _resultobj; |
7176 | } | |
7177 | ||
a57d56d6 RD |
7178 | #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) |
7179 | static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7180 | PyObject * _resultobj; |
a57d56d6 | 7181 | wxString * _result; |
70551f47 | 7182 | wxTextCtrl * _arg0; |
2d091820 | 7183 | PyObject * _argo0 = 0; |
107e4716 | 7184 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7185 | |
7186 | self = self; | |
a57d56d6 | 7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetValue",_kwnames,&_argo0)) |
70551f47 | 7188 | return NULL; |
2d091820 RD |
7189 | if (_argo0) { |
7190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
7193 | return NULL; |
7194 | } | |
7195 | } | |
ab9bc19b | 7196 | { |
474c48f9 | 7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7198 | _result = new wxString (wxTextCtrl_GetValue(_arg0)); |
ab9bc19b | 7199 | |
474c48f9 | 7200 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7201 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7202 | }{ |
c8bc7bb8 | 7203 | #if wxUSE_UNICODE |
b67a9327 | 7204 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7205 | #else |
a57d56d6 | 7206 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7207 | #endif |
a57d56d6 RD |
7208 | } |
7209 | { | |
7210 | delete _result; | |
7211 | } | |
70551f47 RD |
7212 | return _resultobj; |
7213 | } | |
7214 | ||
a57d56d6 RD |
7215 | #define wxTextCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
7216 | static PyObject *_wrap_wxTextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7217 | PyObject * _resultobj; |
7218 | wxTextCtrl * _arg0; | |
a57d56d6 | 7219 | wxString * _arg1; |
2d091820 | 7220 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7221 | PyObject * _obj1 = 0; |
7222 | char *_kwnames[] = { "self","value", NULL }; | |
70551f47 RD |
7223 | |
7224 | self = self; | |
a57d56d6 | 7225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7226 | return NULL; |
2d091820 RD |
7227 | if (_argo0) { |
7228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetValue. Expected _wxTextCtrl_p."); |
70551f47 RD |
7231 | return NULL; |
7232 | } | |
7233 | } | |
a57d56d6 | 7234 | { |
c8bc7bb8 RD |
7235 | _arg1 = wxString_in_helper(_obj1); |
7236 | if (_arg1 == NULL) | |
a57d56d6 | 7237 | return NULL; |
a57d56d6 | 7238 | } |
ab9bc19b | 7239 | { |
474c48f9 | 7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7241 | wxTextCtrl_SetValue(_arg0,*_arg1); |
ab9bc19b | 7242 | |
474c48f9 | 7243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7244 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7245 | } Py_INCREF(Py_None); |
70551f47 | 7246 | _resultobj = Py_None; |
a57d56d6 RD |
7247 | { |
7248 | if (_obj1) | |
7249 | delete _arg1; | |
7250 | } | |
70551f47 RD |
7251 | return _resultobj; |
7252 | } | |
7253 | ||
db34b2d4 RD |
7254 | #define wxTextCtrl_GetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRange(_swigarg0,_swigarg1)) |
7255 | static PyObject *_wrap_wxTextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7256 | PyObject * _resultobj; | |
7257 | wxString * _result; | |
7258 | wxTextCtrl * _arg0; | |
7259 | long _arg1; | |
7260 | long _arg2; | |
7261 | PyObject * _argo0 = 0; | |
7262 | char *_kwnames[] = { "self","from","to", NULL }; | |
7263 | ||
7264 | self = self; | |
7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7266 | return NULL; | |
7267 | if (_argo0) { | |
7268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetRange. Expected _wxTextCtrl_p."); | |
7271 | return NULL; | |
7272 | } | |
7273 | } | |
7274 | { | |
7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7276 | _result = new wxString (wxTextCtrl_GetRange(_arg0,_arg1,_arg2)); |
db34b2d4 RD |
7277 | |
7278 | wxPyEndAllowThreads(__tstate); | |
7279 | if (PyErr_Occurred()) return NULL; | |
7280 | }{ | |
c8bc7bb8 | 7281 | #if wxUSE_UNICODE |
b67a9327 | 7282 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7283 | #else |
db34b2d4 | 7284 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7285 | #endif |
db34b2d4 RD |
7286 | } |
7287 | { | |
7288 | delete _result; | |
7289 | } | |
7290 | return _resultobj; | |
7291 | } | |
7292 | ||
a57d56d6 RD |
7293 | #define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) |
7294 | static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7295 | PyObject * _resultobj; |
a57d56d6 | 7296 | int _result; |
70551f47 | 7297 | wxTextCtrl * _arg0; |
a57d56d6 | 7298 | long _arg1; |
2d091820 | 7299 | PyObject * _argo0 = 0; |
a57d56d6 | 7300 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
7301 | |
7302 | self = self; | |
a57d56d6 | 7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7304 | return NULL; |
2d091820 RD |
7305 | if (_argo0) { |
7306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
7309 | return NULL; |
7310 | } | |
7311 | } | |
ab9bc19b | 7312 | { |
474c48f9 | 7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7314 | _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); |
ab9bc19b | 7315 | |
474c48f9 | 7316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7317 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7318 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7319 | return _resultobj; |
7320 | } | |
7321 | ||
a57d56d6 RD |
7322 | #define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) |
7323 | static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7324 | PyObject * _resultobj; |
a57d56d6 | 7325 | wxString * _result; |
70551f47 | 7326 | wxTextCtrl * _arg0; |
a57d56d6 | 7327 | long _arg1; |
2d091820 | 7328 | PyObject * _argo0 = 0; |
a57d56d6 | 7329 | char *_kwnames[] = { "self","lineNo", NULL }; |
70551f47 RD |
7330 | |
7331 | self = self; | |
a57d56d6 | 7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_GetLineText",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7333 | return NULL; |
2d091820 RD |
7334 | if (_argo0) { |
7335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); |
70551f47 RD |
7338 | return NULL; |
7339 | } | |
7340 | } | |
ab9bc19b | 7341 | { |
474c48f9 | 7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7343 | _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); |
ab9bc19b | 7344 | |
474c48f9 | 7345 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7346 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7347 | }{ |
c8bc7bb8 | 7348 | #if wxUSE_UNICODE |
b67a9327 | 7349 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7350 | #else |
a57d56d6 | 7351 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7352 | #endif |
a57d56d6 RD |
7353 | } |
7354 | { | |
7355 | delete _result; | |
7356 | } | |
70551f47 RD |
7357 | return _resultobj; |
7358 | } | |
7359 | ||
a57d56d6 RD |
7360 | #define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) |
7361 | static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7362 | PyObject * _resultobj; |
a57d56d6 | 7363 | int _result; |
70551f47 | 7364 | wxTextCtrl * _arg0; |
2d091820 | 7365 | PyObject * _argo0 = 0; |
107e4716 | 7366 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7367 | |
7368 | self = self; | |
a57d56d6 | 7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetNumberOfLines",_kwnames,&_argo0)) |
70551f47 | 7370 | return NULL; |
2d091820 RD |
7371 | if (_argo0) { |
7372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); |
70551f47 RD |
7375 | return NULL; |
7376 | } | |
7377 | } | |
ab9bc19b | 7378 | { |
474c48f9 | 7379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7380 | _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); |
ab9bc19b | 7381 | |
474c48f9 | 7382 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7383 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7384 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7385 | return _resultobj; |
7386 | } | |
7387 | ||
a57d56d6 RD |
7388 | #define wxTextCtrl_IsModified(_swigobj) (_swigobj->IsModified()) |
7389 | static PyObject *_wrap_wxTextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7390 | PyObject * _resultobj; |
a57d56d6 | 7391 | bool _result; |
70551f47 | 7392 | wxTextCtrl * _arg0; |
2d091820 | 7393 | PyObject * _argo0 = 0; |
107e4716 | 7394 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7395 | |
7396 | self = self; | |
a57d56d6 | 7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsModified",_kwnames,&_argo0)) |
70551f47 | 7398 | return NULL; |
2d091820 RD |
7399 | if (_argo0) { |
7400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsModified. Expected _wxTextCtrl_p."); |
70551f47 RD |
7403 | return NULL; |
7404 | } | |
7405 | } | |
ab9bc19b | 7406 | { |
474c48f9 | 7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7408 | _result = (bool )wxTextCtrl_IsModified(_arg0); |
ab9bc19b | 7409 | |
474c48f9 | 7410 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7411 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7412 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7413 | return _resultobj; |
7414 | } | |
7415 | ||
a57d56d6 RD |
7416 | #define wxTextCtrl_IsEditable(_swigobj) (_swigobj->IsEditable()) |
7417 | static PyObject *_wrap_wxTextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 7418 | PyObject * _resultobj; |
a57d56d6 | 7419 | bool _result; |
faf3cb35 | 7420 | wxTextCtrl * _arg0; |
2d091820 | 7421 | PyObject * _argo0 = 0; |
a57d56d6 | 7422 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7423 | |
7424 | self = self; | |
a57d56d6 | 7425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsEditable",_kwnames,&_argo0)) |
faf3cb35 | 7426 | return NULL; |
2d091820 RD |
7427 | if (_argo0) { |
7428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsEditable. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7431 | return NULL; |
7432 | } | |
7433 | } | |
ab9bc19b | 7434 | { |
474c48f9 | 7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7436 | _result = (bool )wxTextCtrl_IsEditable(_arg0); |
ab9bc19b | 7437 | |
474c48f9 | 7438 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7439 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7440 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
7441 | return _resultobj; |
7442 | } | |
7443 | ||
a57d56d6 RD |
7444 | #define wxTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) |
7445 | static PyObject *_wrap_wxTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 7446 | PyObject * _resultobj; |
faf3cb35 | 7447 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7448 | long * _arg1; |
7449 | long temp; | |
7450 | long * _arg2; | |
7451 | long temp0; | |
2d091820 | 7452 | PyObject * _argo0 = 0; |
a57d56d6 | 7453 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7454 | |
7455 | self = self; | |
a57d56d6 RD |
7456 | { |
7457 | _arg1 = &temp; | |
7458 | } | |
7459 | { | |
7460 | _arg2 = &temp0; | |
7461 | } | |
7462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetSelection",_kwnames,&_argo0)) | |
faf3cb35 | 7463 | return NULL; |
2d091820 RD |
7464 | if (_argo0) { |
7465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetSelection. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7468 | return NULL; |
7469 | } | |
7470 | } | |
faf3cb35 | 7471 | { |
474c48f9 | 7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7473 | wxTextCtrl_GetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 7474 | |
474c48f9 | 7475 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7476 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7477 | } Py_INCREF(Py_None); |
7478 | _resultobj = Py_None; | |
7479 | { | |
7480 | PyObject *o; | |
7481 | o = PyInt_FromLong((long) (*_arg1)); | |
7482 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
7483 | } |
7484 | { | |
a57d56d6 RD |
7485 | PyObject *o; |
7486 | o = PyInt_FromLong((long) (*_arg2)); | |
7487 | _resultobj = t_output_helper(_resultobj, o); | |
faf3cb35 RD |
7488 | } |
7489 | return _resultobj; | |
7490 | } | |
7491 | ||
93283355 RD |
7492 | #define wxTextCtrl_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
7493 | static PyObject *_wrap_wxTextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7494 | PyObject * _resultobj; | |
7495 | wxString * _result; | |
7496 | wxTextCtrl * _arg0; | |
7497 | PyObject * _argo0 = 0; | |
7498 | char *_kwnames[] = { "self", NULL }; | |
7499 | ||
7500 | self = self; | |
7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetStringSelection",_kwnames,&_argo0)) | |
7502 | return NULL; | |
7503 | if (_argo0) { | |
7504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStringSelection. Expected _wxTextCtrl_p."); | |
7507 | return NULL; | |
7508 | } | |
7509 | } | |
7510 | { | |
474c48f9 | 7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7512 | _result = new wxString (wxTextCtrl_GetStringSelection(_arg0)); |
93283355 | 7513 | |
474c48f9 | 7514 | wxPyEndAllowThreads(__tstate); |
93283355 RD |
7515 | if (PyErr_Occurred()) return NULL; |
7516 | }{ | |
c8bc7bb8 | 7517 | #if wxUSE_UNICODE |
b67a9327 | 7518 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7519 | #else |
93283355 | 7520 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7521 | #endif |
93283355 RD |
7522 | } |
7523 | { | |
7524 | delete _result; | |
7525 | } | |
7526 | return _resultobj; | |
7527 | } | |
7528 | ||
a57d56d6 RD |
7529 | #define wxTextCtrl_Clear(_swigobj) (_swigobj->Clear()) |
7530 | static PyObject *_wrap_wxTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 7531 | PyObject * _resultobj; |
faf3cb35 | 7532 | wxTextCtrl * _arg0; |
2d091820 | 7533 | PyObject * _argo0 = 0; |
107e4716 | 7534 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7535 | |
7536 | self = self; | |
a57d56d6 | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Clear",_kwnames,&_argo0)) |
faf3cb35 | 7538 | return NULL; |
2d091820 RD |
7539 | if (_argo0) { |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Clear. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7543 | return NULL; |
7544 | } | |
7545 | } | |
ab9bc19b | 7546 | { |
474c48f9 | 7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7548 | wxTextCtrl_Clear(_arg0); |
ab9bc19b | 7549 | |
474c48f9 | 7550 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7551 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7552 | } Py_INCREF(Py_None); |
7553 | _resultobj = Py_None; | |
faf3cb35 RD |
7554 | return _resultobj; |
7555 | } | |
7556 | ||
a57d56d6 RD |
7557 | #define wxTextCtrl_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
7558 | static PyObject *_wrap_wxTextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7559 | PyObject * _resultobj; |
70551f47 | 7560 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7561 | long _arg1; |
7562 | long _arg2; | |
7563 | wxString * _arg3; | |
2d091820 | 7564 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7565 | PyObject * _obj3 = 0; |
7566 | char *_kwnames[] = { "self","from","to","value", NULL }; | |
70551f47 RD |
7567 | |
7568 | self = self; | |
a57d56d6 | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 7570 | return NULL; |
2d091820 RD |
7571 | if (_argo0) { |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Replace. Expected _wxTextCtrl_p."); |
70551f47 RD |
7575 | return NULL; |
7576 | } | |
7577 | } | |
a57d56d6 | 7578 | { |
c8bc7bb8 RD |
7579 | _arg3 = wxString_in_helper(_obj3); |
7580 | if (_arg3 == NULL) | |
a57d56d6 | 7581 | return NULL; |
a57d56d6 | 7582 | } |
70551f47 | 7583 | { |
474c48f9 | 7584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7585 | wxTextCtrl_Replace(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 7586 | |
474c48f9 | 7587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7588 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7589 | } Py_INCREF(Py_None); |
7590 | _resultobj = Py_None; | |
70551f47 | 7591 | { |
a57d56d6 RD |
7592 | if (_obj3) |
7593 | delete _arg3; | |
70551f47 RD |
7594 | } |
7595 | return _resultobj; | |
7596 | } | |
7597 | ||
a57d56d6 RD |
7598 | #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) |
7599 | static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject * _resultobj; | |
70551f47 | 7601 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7602 | long _arg1; |
7603 | long _arg2; | |
2d091820 | 7604 | PyObject * _argo0 = 0; |
a57d56d6 | 7605 | char *_kwnames[] = { "self","from","to", NULL }; |
70551f47 RD |
7606 | |
7607 | self = self; | |
a57d56d6 | 7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_Remove",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7609 | return NULL; |
2d091820 RD |
7610 | if (_argo0) { |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Remove. Expected _wxTextCtrl_p."); |
70551f47 RD |
7614 | return NULL; |
7615 | } | |
7616 | } | |
ab9bc19b | 7617 | { |
474c48f9 | 7618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7619 | wxTextCtrl_Remove(_arg0,_arg1,_arg2); |
ab9bc19b | 7620 | |
474c48f9 | 7621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7622 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7623 | } Py_INCREF(Py_None); |
7624 | _resultobj = Py_None; | |
70551f47 RD |
7625 | return _resultobj; |
7626 | } | |
7627 | ||
7628 | #define wxTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0)) | |
107e4716 | 7629 | static PyObject *_wrap_wxTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7630 | PyObject * _resultobj; |
7631 | bool _result; | |
7632 | wxTextCtrl * _arg0; | |
7633 | wxString * _arg1; | |
2d091820 | 7634 | PyObject * _argo0 = 0; |
70551f47 | 7635 | PyObject * _obj1 = 0; |
a57d56d6 | 7636 | char *_kwnames[] = { "self","file", NULL }; |
70551f47 RD |
7637 | |
7638 | self = self; | |
107e4716 | 7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 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")) { | |
70551f47 RD |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_LoadFile. Expected _wxTextCtrl_p."); |
7645 | return NULL; | |
7646 | } | |
7647 | } | |
7648 | { | |
c8bc7bb8 RD |
7649 | _arg1 = wxString_in_helper(_obj1); |
7650 | if (_arg1 == NULL) | |
2cd2fac8 | 7651 | return NULL; |
70551f47 | 7652 | } |
ab9bc19b | 7653 | { |
474c48f9 | 7654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7655 | _result = (bool )wxTextCtrl_LoadFile(_arg0,*_arg1); |
ab9bc19b | 7656 | |
474c48f9 | 7657 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7658 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7659 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7660 | { |
7661 | if (_obj1) | |
7662 | delete _arg1; | |
7663 | } | |
7664 | return _resultobj; | |
7665 | } | |
7666 | ||
a57d56d6 RD |
7667 | #define wxTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0)) |
7668 | static PyObject *_wrap_wxTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7669 | PyObject * _resultobj; |
a57d56d6 | 7670 | bool _result; |
70551f47 | 7671 | wxTextCtrl * _arg0; |
9a74fcaf | 7672 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
2d091820 | 7673 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7674 | PyObject * _obj1 = 0; |
7675 | char *_kwnames[] = { "self","file", NULL }; | |
70551f47 RD |
7676 | |
7677 | self = self; | |
a57d56d6 | 7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7679 | return NULL; |
2d091820 RD |
7680 | if (_argo0) { |
7681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SaveFile. Expected _wxTextCtrl_p."); |
70551f47 RD |
7684 | return NULL; |
7685 | } | |
7686 | } | |
a57d56d6 RD |
7687 | if (_obj1) |
7688 | { | |
c8bc7bb8 RD |
7689 | _arg1 = wxString_in_helper(_obj1); |
7690 | if (_arg1 == NULL) | |
a57d56d6 | 7691 | return NULL; |
a57d56d6 | 7692 | } |
ab9bc19b | 7693 | { |
474c48f9 | 7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7695 | _result = (bool )wxTextCtrl_SaveFile(_arg0,*_arg1); |
ab9bc19b | 7696 | |
474c48f9 | 7697 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7698 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7699 | } _resultobj = Py_BuildValue("i",_result); |
7700 | { | |
7701 | if (_obj1) | |
7702 | delete _arg1; | |
7703 | } | |
70551f47 RD |
7704 | return _resultobj; |
7705 | } | |
7706 | ||
a57d56d6 RD |
7707 | #define wxTextCtrl_DiscardEdits(_swigobj) (_swigobj->DiscardEdits()) |
7708 | static PyObject *_wrap_wxTextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 RD |
7709 | PyObject * _resultobj; |
7710 | wxTextCtrl * _arg0; | |
2d091820 | 7711 | PyObject * _argo0 = 0; |
a57d56d6 | 7712 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
7713 | |
7714 | self = self; | |
a57d56d6 | 7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_DiscardEdits",_kwnames,&_argo0)) |
faf3cb35 | 7716 | return NULL; |
2d091820 RD |
7717 | if (_argo0) { |
7718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_DiscardEdits. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
7721 | return NULL; |
7722 | } | |
7723 | } | |
ab9bc19b | 7724 | { |
474c48f9 | 7725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7726 | wxTextCtrl_DiscardEdits(_arg0); |
ab9bc19b | 7727 | |
474c48f9 | 7728 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7729 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7730 | } Py_INCREF(Py_None); |
faf3cb35 | 7731 | _resultobj = Py_None; |
faf3cb35 RD |
7732 | return _resultobj; |
7733 | } | |
7734 | ||
a57d56d6 RD |
7735 | #define wxTextCtrl_SetMaxLength(_swigobj,_swigarg0) (_swigobj->SetMaxLength(_swigarg0)) |
7736 | static PyObject *_wrap_wxTextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7737 | PyObject * _resultobj; |
7738 | wxTextCtrl * _arg0; | |
a57d56d6 | 7739 | unsigned long _arg1; |
2d091820 | 7740 | PyObject * _argo0 = 0; |
a57d56d6 | 7741 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
7742 | |
7743 | self = self; | |
a57d56d6 | 7744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetMaxLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7745 | return NULL; |
2d091820 RD |
7746 | if (_argo0) { |
7747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetMaxLength. Expected _wxTextCtrl_p."); |
70551f47 RD |
7750 | return NULL; |
7751 | } | |
7752 | } | |
ab9bc19b | 7753 | { |
474c48f9 | 7754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7755 | wxTextCtrl_SetMaxLength(_arg0,_arg1); |
ab9bc19b | 7756 | |
474c48f9 | 7757 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7758 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7759 | } Py_INCREF(Py_None); |
70551f47 RD |
7760 | _resultobj = Py_None; |
7761 | return _resultobj; | |
7762 | } | |
7763 | ||
a57d56d6 RD |
7764 | #define wxTextCtrl_WriteText(_swigobj,_swigarg0) (_swigobj->WriteText(_swigarg0)) |
7765 | static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
7766 | PyObject * _resultobj; |
7767 | wxTextCtrl * _arg0; | |
a57d56d6 | 7768 | wxString * _arg1; |
2d091820 | 7769 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7770 | PyObject * _obj1 = 0; |
7771 | char *_kwnames[] = { "self","text", NULL }; | |
70551f47 RD |
7772 | |
7773 | self = self; | |
a57d56d6 | 7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_WriteText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7775 | return NULL; |
2d091820 RD |
7776 | if (_argo0) { |
7777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_WriteText. Expected _wxTextCtrl_p."); |
70551f47 RD |
7780 | return NULL; |
7781 | } | |
7782 | } | |
7783 | { | |
c8bc7bb8 RD |
7784 | _arg1 = wxString_in_helper(_obj1); |
7785 | if (_arg1 == NULL) | |
2cd2fac8 | 7786 | return NULL; |
70551f47 | 7787 | } |
ab9bc19b | 7788 | { |
474c48f9 | 7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7790 | wxTextCtrl_WriteText(_arg0,*_arg1); |
ab9bc19b | 7791 | |
474c48f9 | 7792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7793 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7794 | } Py_INCREF(Py_None); |
70551f47 RD |
7795 | _resultobj = Py_None; |
7796 | { | |
a57d56d6 RD |
7797 | if (_obj1) |
7798 | delete _arg1; | |
70551f47 RD |
7799 | } |
7800 | return _resultobj; | |
7801 | } | |
7802 | ||
a57d56d6 RD |
7803 | #define wxTextCtrl_AppendText(_swigobj,_swigarg0) (_swigobj->AppendText(_swigarg0)) |
7804 | static PyObject *_wrap_wxTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7805 | PyObject * _resultobj; |
70551f47 RD |
7806 | wxTextCtrl * _arg0; |
7807 | wxString * _arg1; | |
2d091820 | 7808 | PyObject * _argo0 = 0; |
70551f47 | 7809 | PyObject * _obj1 = 0; |
a57d56d6 | 7810 | char *_kwnames[] = { "self","text", NULL }; |
70551f47 RD |
7811 | |
7812 | self = self; | |
a57d56d6 | 7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_AppendText",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7814 | return NULL; |
2d091820 RD |
7815 | if (_argo0) { |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_AppendText. Expected _wxTextCtrl_p."); |
70551f47 RD |
7819 | return NULL; |
7820 | } | |
7821 | } | |
7822 | { | |
c8bc7bb8 RD |
7823 | _arg1 = wxString_in_helper(_obj1); |
7824 | if (_arg1 == NULL) | |
70551f47 | 7825 | return NULL; |
70551f47 | 7826 | } |
ab9bc19b | 7827 | { |
474c48f9 | 7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7829 | wxTextCtrl_AppendText(_arg0,*_arg1); |
ab9bc19b | 7830 | |
474c48f9 | 7831 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7832 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7833 | } Py_INCREF(Py_None); |
7834 | _resultobj = Py_None; | |
70551f47 RD |
7835 | { |
7836 | if (_obj1) | |
7837 | delete _arg1; | |
7838 | } | |
7839 | return _resultobj; | |
7840 | } | |
7841 | ||
87439dd8 RD |
7842 | #define wxTextCtrl_EmulateKeyPress(_swigobj,_swigarg0) (_swigobj->EmulateKeyPress(_swigarg0)) |
7843 | static PyObject *_wrap_wxTextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7844 | PyObject * _resultobj; | |
7845 | bool _result; | |
7846 | wxTextCtrl * _arg0; | |
7847 | wxKeyEvent * _arg1; | |
7848 | PyObject * _argo0 = 0; | |
7849 | PyObject * _argo1 = 0; | |
7850 | char *_kwnames[] = { "self","event", NULL }; | |
7851 | ||
7852 | self = self; | |
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_EmulateKeyPress",_kwnames,&_argo0,&_argo1)) | |
7854 | return NULL; | |
7855 | if (_argo0) { | |
7856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_EmulateKeyPress. Expected _wxTextCtrl_p."); | |
7859 | return NULL; | |
7860 | } | |
7861 | } | |
7862 | if (_argo1) { | |
b67a9327 | 7863 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { |
87439dd8 RD |
7864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_EmulateKeyPress. Expected _wxKeyEvent_p."); |
7865 | return NULL; | |
7866 | } | |
7867 | } | |
7868 | { | |
7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7870 | _result = (bool )wxTextCtrl_EmulateKeyPress(_arg0,*_arg1); | |
7871 | ||
7872 | wxPyEndAllowThreads(__tstate); | |
7873 | if (PyErr_Occurred()) return NULL; | |
7874 | } _resultobj = Py_BuildValue("i",_result); | |
7875 | return _resultobj; | |
7876 | } | |
7877 | ||
a57d56d6 RD |
7878 | #define wxTextCtrl_SetStyle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetStyle(_swigarg0,_swigarg1,_swigarg2)) |
7879 | static PyObject *_wrap_wxTextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7880 | PyObject * _resultobj; |
a57d56d6 | 7881 | bool _result; |
70551f47 | 7882 | wxTextCtrl * _arg0; |
a57d56d6 RD |
7883 | long _arg1; |
7884 | long _arg2; | |
7885 | wxTextAttr * _arg3; | |
2d091820 | 7886 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7887 | PyObject * _argo3 = 0; |
7888 | char *_kwnames[] = { "self","start","end","style", NULL }; | |
70551f47 RD |
7889 | |
7890 | self = self; | |
a57d56d6 | 7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO:wxTextCtrl_SetStyle",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) |
70551f47 | 7892 | return NULL; |
2d091820 RD |
7893 | if (_argo0) { |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetStyle. Expected _wxTextCtrl_p."); |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
7900 | if (_argo3) { | |
b67a9327 | 7901 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxTextAttr_p")) { |
a57d56d6 | 7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxTextCtrl_SetStyle. Expected _wxTextAttr_p."); |
70551f47 RD |
7903 | return NULL; |
7904 | } | |
7905 | } | |
ab9bc19b | 7906 | { |
474c48f9 | 7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7908 | _result = (bool )wxTextCtrl_SetStyle(_arg0,_arg1,_arg2,*_arg3); |
ab9bc19b | 7909 | |
474c48f9 | 7910 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7911 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7912 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7913 | return _resultobj; |
7914 | } | |
7915 | ||
a57d56d6 RD |
7916 | #define wxTextCtrl_SetDefaultStyle(_swigobj,_swigarg0) (_swigobj->SetDefaultStyle(_swigarg0)) |
7917 | static PyObject *_wrap_wxTextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7918 | PyObject * _resultobj; |
a57d56d6 | 7919 | bool _result; |
70551f47 | 7920 | wxTextCtrl * _arg0; |
a57d56d6 | 7921 | wxTextAttr * _arg1; |
2d091820 | 7922 | PyObject * _argo0 = 0; |
a57d56d6 RD |
7923 | PyObject * _argo1 = 0; |
7924 | char *_kwnames[] = { "self","style", NULL }; | |
70551f47 RD |
7925 | |
7926 | self = self; | |
a57d56d6 | 7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_SetDefaultStyle",_kwnames,&_argo0,&_argo1)) |
70551f47 | 7928 | return NULL; |
2d091820 RD |
7929 | if (_argo0) { |
7930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 RD |
7932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetDefaultStyle. Expected _wxTextCtrl_p."); |
7933 | return NULL; | |
7934 | } | |
7935 | } | |
7936 | if (_argo1) { | |
b67a9327 | 7937 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTextAttr_p")) { |
a57d56d6 | 7938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTextCtrl_SetDefaultStyle. Expected _wxTextAttr_p."); |
70551f47 RD |
7939 | return NULL; |
7940 | } | |
7941 | } | |
ab9bc19b | 7942 | { |
474c48f9 | 7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7944 | _result = (bool )wxTextCtrl_SetDefaultStyle(_arg0,*_arg1); |
ab9bc19b | 7945 | |
474c48f9 | 7946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7947 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 7948 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7949 | return _resultobj; |
7950 | } | |
7951 | ||
a57d56d6 RD |
7952 | #define wxTextCtrl_GetDefaultStyle(_swigobj) (_swigobj->GetDefaultStyle()) |
7953 | static PyObject *_wrap_wxTextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 7954 | PyObject * _resultobj; |
a57d56d6 | 7955 | wxTextAttr * _result; |
70551f47 | 7956 | wxTextCtrl * _arg0; |
2d091820 | 7957 | PyObject * _argo0 = 0; |
107e4716 | 7958 | char *_kwnames[] = { "self", NULL }; |
a57d56d6 | 7959 | char _ptemp[128]; |
70551f47 RD |
7960 | |
7961 | self = self; | |
a57d56d6 | 7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetDefaultStyle",_kwnames,&_argo0)) |
70551f47 | 7963 | return NULL; |
2d091820 RD |
7964 | if (_argo0) { |
7965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 7967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetDefaultStyle. Expected _wxTextCtrl_p."); |
70551f47 RD |
7968 | return NULL; |
7969 | } | |
7970 | } | |
ab9bc19b | 7971 | { |
474c48f9 | 7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7973 | const wxTextAttr & _result_ref = wxTextCtrl_GetDefaultStyle(_arg0); |
a57d56d6 | 7974 | _result = (wxTextAttr *) &_result_ref; |
ab9bc19b | 7975 | |
474c48f9 | 7976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7977 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
7978 | } if (_result) { |
7979 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextAttr_p"); | |
7980 | _resultobj = Py_BuildValue("s",_ptemp); | |
7981 | } else { | |
7982 | Py_INCREF(Py_None); | |
7983 | _resultobj = Py_None; | |
7984 | } | |
70551f47 RD |
7985 | return _resultobj; |
7986 | } | |
7987 | ||
3ef86e32 RD |
7988 | #define wxTextCtrl_GetStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyle(_swigarg0,_swigarg1)) |
7989 | static PyObject *_wrap_wxTextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7990 | PyObject * _resultobj; | |
7991 | bool _result; | |
7992 | wxTextCtrl * _arg0; | |
7993 | long _arg1; | |
7994 | wxTextAttr * _arg2; | |
7995 | PyObject * _argo0 = 0; | |
7996 | PyObject * _argo2 = 0; | |
7997 | char *_kwnames[] = { "self","position","style", NULL }; | |
7998 | ||
7999 | self = self; | |
8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxTextCtrl_GetStyle",_kwnames,&_argo0,&_arg1,&_argo2)) | |
8001 | return NULL; | |
8002 | if (_argo0) { | |
8003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetStyle. Expected _wxTextCtrl_p."); | |
8006 | return NULL; | |
8007 | } | |
8008 | } | |
8009 | if (_argo2) { | |
8010 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTextAttr_p")) { | |
8011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTextCtrl_GetStyle. Expected _wxTextAttr_p."); | |
8012 | return NULL; | |
8013 | } | |
8014 | } | |
8015 | { | |
8016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8017 | _result = (bool )wxTextCtrl_GetStyle(_arg0,_arg1,*_arg2); | |
8018 | ||
8019 | wxPyEndAllowThreads(__tstate); | |
8020 | if (PyErr_Occurred()) return NULL; | |
8021 | } _resultobj = Py_BuildValue("i",_result); | |
8022 | return _resultobj; | |
8023 | } | |
8024 | ||
a57d56d6 RD |
8025 | #define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) |
8026 | static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 8027 | PyObject * _resultobj; |
a57d56d6 | 8028 | long _result; |
70551f47 RD |
8029 | wxTextCtrl * _arg0; |
8030 | long _arg1; | |
8031 | long _arg2; | |
2d091820 | 8032 | PyObject * _argo0 = 0; |
a57d56d6 | 8033 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
8034 | |
8035 | self = self; | |
a57d56d6 | 8036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_XYToPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8037 | return NULL; |
2d091820 RD |
8038 | if (_argo0) { |
8039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); |
70551f47 RD |
8042 | return NULL; |
8043 | } | |
8044 | } | |
ab9bc19b | 8045 | { |
474c48f9 | 8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8047 | _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); |
ab9bc19b | 8048 | |
474c48f9 | 8049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8050 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 8051 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8052 | return _resultobj; |
8053 | } | |
8054 | ||
a57d56d6 RD |
8055 | #define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) |
8056 | static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8057 | PyObject * _resultobj; |
8058 | wxTextCtrl * _arg0; | |
a57d56d6 RD |
8059 | long _arg1; |
8060 | long * _arg2; | |
8061 | long temp; | |
8062 | long * _arg3; | |
8063 | long temp0; | |
2d091820 | 8064 | PyObject * _argo0 = 0; |
a57d56d6 | 8065 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
8066 | |
8067 | self = self; | |
a57d56d6 RD |
8068 | { |
8069 | _arg2 = &temp; | |
8070 | } | |
8071 | { | |
8072 | _arg3 = &temp0; | |
8073 | } | |
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_PositionToXY",_kwnames,&_argo0,&_arg1)) | |
70551f47 | 8075 | return NULL; |
2d091820 RD |
8076 | if (_argo0) { |
8077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); |
70551f47 RD |
8080 | return NULL; |
8081 | } | |
8082 | } | |
ab9bc19b | 8083 | { |
474c48f9 | 8084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8085 | wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 8086 | |
474c48f9 | 8087 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8088 | if (PyErr_Occurred()) return NULL; |
db34b2d4 RD |
8089 | } Py_INCREF(Py_None); |
8090 | _resultobj = Py_None; | |
70551f47 | 8091 | { |
a57d56d6 RD |
8092 | PyObject *o; |
8093 | o = PyInt_FromLong((long) (*_arg2)); | |
8094 | _resultobj = t_output_helper(_resultobj, o); | |
8095 | } | |
8096 | { | |
8097 | PyObject *o; | |
8098 | o = PyInt_FromLong((long) (*_arg3)); | |
8099 | _resultobj = t_output_helper(_resultobj, o); | |
70551f47 RD |
8100 | } |
8101 | return _resultobj; | |
8102 | } | |
8103 | ||
8104 | #define wxTextCtrl_ShowPosition(_swigobj,_swigarg0) (_swigobj->ShowPosition(_swigarg0)) | |
107e4716 | 8105 | static PyObject *_wrap_wxTextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8106 | PyObject * _resultobj; |
8107 | wxTextCtrl * _arg0; | |
8108 | long _arg1; | |
2d091820 | 8109 | PyObject * _argo0 = 0; |
107e4716 | 8110 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
8111 | |
8112 | self = self; | |
107e4716 | 8113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_ShowPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8114 | return NULL; |
2d091820 RD |
8115 | if (_argo0) { |
8116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
70551f47 RD |
8118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_ShowPosition. Expected _wxTextCtrl_p."); |
8119 | return NULL; | |
8120 | } | |
8121 | } | |
ab9bc19b | 8122 | { |
474c48f9 | 8123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8124 | wxTextCtrl_ShowPosition(_arg0,_arg1); |
ab9bc19b | 8125 | |
474c48f9 | 8126 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8127 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8128 | } Py_INCREF(Py_None); |
70551f47 RD |
8129 | _resultobj = Py_None; |
8130 | return _resultobj; | |
8131 | } | |
8132 | ||
a57d56d6 RD |
8133 | #define wxTextCtrl_Copy(_swigobj) (_swigobj->Copy()) |
8134 | static PyObject *_wrap_wxTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8135 | PyObject * _resultobj; |
8136 | wxTextCtrl * _arg0; | |
2d091820 | 8137 | PyObject * _argo0 = 0; |
a57d56d6 | 8138 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8139 | |
8140 | self = self; | |
a57d56d6 | 8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Copy",_kwnames,&_argo0)) |
70551f47 | 8142 | return NULL; |
2d091820 RD |
8143 | if (_argo0) { |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Copy. Expected _wxTextCtrl_p."); |
70551f47 RD |
8147 | return NULL; |
8148 | } | |
8149 | } | |
ab9bc19b | 8150 | { |
474c48f9 | 8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8152 | wxTextCtrl_Copy(_arg0); |
ab9bc19b | 8153 | |
474c48f9 | 8154 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8155 | if (PyErr_Occurred()) return NULL; |
ab9bc19b RD |
8156 | } Py_INCREF(Py_None); |
8157 | _resultobj = Py_None; | |
ab9bc19b RD |
8158 | return _resultobj; |
8159 | } | |
8160 | ||
a57d56d6 RD |
8161 | #define wxTextCtrl_Cut(_swigobj) (_swigobj->Cut()) |
8162 | static PyObject *_wrap_wxTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
ab9bc19b RD |
8163 | PyObject * _resultobj; |
8164 | wxTextCtrl * _arg0; | |
2d091820 | 8165 | PyObject * _argo0 = 0; |
a57d56d6 | 8166 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
8167 | |
8168 | self = self; | |
a57d56d6 | 8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Cut",_kwnames,&_argo0)) |
ab9bc19b | 8170 | return NULL; |
2d091820 RD |
8171 | if (_argo0) { |
8172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Cut. Expected _wxTextCtrl_p."); |
ab9bc19b RD |
8175 | return NULL; |
8176 | } | |
8177 | } | |
ab9bc19b | 8178 | { |
474c48f9 | 8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8180 | wxTextCtrl_Cut(_arg0); |
ab9bc19b | 8181 | |
474c48f9 | 8182 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8183 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8184 | } Py_INCREF(Py_None); |
70551f47 | 8185 | _resultobj = Py_None; |
70551f47 RD |
8186 | return _resultobj; |
8187 | } | |
8188 | ||
a57d56d6 RD |
8189 | #define wxTextCtrl_Paste(_swigobj) (_swigobj->Paste()) |
8190 | static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
faf3cb35 | 8191 | PyObject * _resultobj; |
faf3cb35 | 8192 | wxTextCtrl * _arg0; |
2d091820 | 8193 | PyObject * _argo0 = 0; |
a57d56d6 | 8194 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
8195 | |
8196 | self = self; | |
a57d56d6 | 8197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Paste",_kwnames,&_argo0)) |
faf3cb35 | 8198 | return NULL; |
2d091820 RD |
8199 | if (_argo0) { |
8200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Paste. Expected _wxTextCtrl_p."); |
faf3cb35 RD |
8203 | return NULL; |
8204 | } | |
8205 | } | |
ab9bc19b | 8206 | { |
474c48f9 | 8207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8208 | wxTextCtrl_Paste(_arg0); |
ab9bc19b | 8209 | |
474c48f9 | 8210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8211 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
8212 | } Py_INCREF(Py_None); |
8213 | _resultobj = Py_None; | |
faf3cb35 RD |
8214 | return _resultobj; |
8215 | } | |
8216 | ||
53920141 | 8217 | #define wxTextCtrl_CanCopy(_swigobj) (_swigobj->CanCopy()) |
107e4716 | 8218 | static PyObject *_wrap_wxTextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
8219 | PyObject * _resultobj; |
8220 | bool _result; | |
8221 | wxTextCtrl * _arg0; | |
2d091820 | 8222 | PyObject * _argo0 = 0; |
107e4716 | 8223 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8224 | |
8225 | self = self; | |
107e4716 | 8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCopy",_kwnames,&_argo0)) |
53920141 | 8227 | return NULL; |
2d091820 RD |
8228 | if (_argo0) { |
8229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
8231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCopy. Expected _wxTextCtrl_p."); |
8232 | return NULL; | |
8233 | } | |
8234 | } | |
8235 | { | |
474c48f9 | 8236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8237 | _result = (bool )wxTextCtrl_CanCopy(_arg0); |
53920141 | 8238 | |
474c48f9 | 8239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8240 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
8241 | } _resultobj = Py_BuildValue("i",_result); |
8242 | return _resultobj; | |
8243 | } | |
8244 | ||
8245 | #define wxTextCtrl_CanCut(_swigobj) (_swigobj->CanCut()) | |
107e4716 | 8246 | static PyObject *_wrap_wxTextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
8247 | PyObject * _resultobj; |
8248 | bool _result; | |
8249 | wxTextCtrl * _arg0; | |
2d091820 | 8250 | PyObject * _argo0 = 0; |
107e4716 | 8251 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8252 | |
8253 | self = self; | |
107e4716 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanCut",_kwnames,&_argo0)) |
53920141 | 8255 | return NULL; |
2d091820 RD |
8256 | if (_argo0) { |
8257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanCut. Expected _wxTextCtrl_p."); |
8260 | return NULL; | |
8261 | } | |
8262 | } | |
8263 | { | |
474c48f9 | 8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8265 | _result = (bool )wxTextCtrl_CanCut(_arg0); |
53920141 | 8266 | |
474c48f9 | 8267 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8268 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
8269 | } _resultobj = Py_BuildValue("i",_result); |
8270 | return _resultobj; | |
8271 | } | |
8272 | ||
8273 | #define wxTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) | |
107e4716 | 8274 | static PyObject *_wrap_wxTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { |
53920141 RD |
8275 | PyObject * _resultobj; |
8276 | bool _result; | |
8277 | wxTextCtrl * _arg0; | |
2d091820 | 8278 | PyObject * _argo0 = 0; |
107e4716 | 8279 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8280 | |
8281 | self = self; | |
107e4716 | 8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanPaste",_kwnames,&_argo0)) |
53920141 | 8283 | return NULL; |
2d091820 RD |
8284 | if (_argo0) { |
8285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
53920141 RD |
8287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanPaste. Expected _wxTextCtrl_p."); |
8288 | return NULL; | |
8289 | } | |
8290 | } | |
8291 | { | |
474c48f9 | 8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8293 | _result = (bool )wxTextCtrl_CanPaste(_arg0); |
53920141 | 8294 | |
474c48f9 | 8295 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8296 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
8297 | } _resultobj = Py_BuildValue("i",_result); |
8298 | return _resultobj; | |
8299 | } | |
8300 | ||
a57d56d6 RD |
8301 | #define wxTextCtrl_Undo(_swigobj) (_swigobj->Undo()) |
8302 | static PyObject *_wrap_wxTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 8303 | PyObject * _resultobj; |
53920141 | 8304 | wxTextCtrl * _arg0; |
2d091820 | 8305 | PyObject * _argo0 = 0; |
107e4716 | 8306 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8307 | |
8308 | self = self; | |
a57d56d6 | 8309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Undo",_kwnames,&_argo0)) |
53920141 | 8310 | return NULL; |
2d091820 RD |
8311 | if (_argo0) { |
8312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Undo. Expected _wxTextCtrl_p."); |
53920141 RD |
8315 | return NULL; |
8316 | } | |
8317 | } | |
8318 | { | |
474c48f9 | 8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8320 | wxTextCtrl_Undo(_arg0); |
53920141 | 8321 | |
474c48f9 | 8322 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8323 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
8324 | } Py_INCREF(Py_None); |
8325 | _resultobj = Py_None; | |
53920141 RD |
8326 | return _resultobj; |
8327 | } | |
8328 | ||
a57d56d6 RD |
8329 | #define wxTextCtrl_Redo(_swigobj) (_swigobj->Redo()) |
8330 | static PyObject *_wrap_wxTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 8331 | PyObject * _resultobj; |
53920141 | 8332 | wxTextCtrl * _arg0; |
2d091820 | 8333 | PyObject * _argo0 = 0; |
107e4716 | 8334 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8335 | |
8336 | self = self; | |
a57d56d6 | 8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_Redo",_kwnames,&_argo0)) |
53920141 | 8338 | return NULL; |
2d091820 RD |
8339 | if (_argo0) { |
8340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_Redo. Expected _wxTextCtrl_p."); |
53920141 RD |
8343 | return NULL; |
8344 | } | |
8345 | } | |
8346 | { | |
474c48f9 | 8347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8348 | wxTextCtrl_Redo(_arg0); |
53920141 | 8349 | |
474c48f9 | 8350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8351 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
8352 | } Py_INCREF(Py_None); |
8353 | _resultobj = Py_None; | |
53920141 RD |
8354 | return _resultobj; |
8355 | } | |
8356 | ||
a57d56d6 RD |
8357 | #define wxTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) |
8358 | static PyObject *_wrap_wxTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 | 8359 | PyObject * _resultobj; |
a57d56d6 | 8360 | bool _result; |
53920141 | 8361 | wxTextCtrl * _arg0; |
2d091820 | 8362 | PyObject * _argo0 = 0; |
107e4716 | 8363 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8364 | |
8365 | self = self; | |
a57d56d6 | 8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanUndo",_kwnames,&_argo0)) |
53920141 | 8367 | return NULL; |
2d091820 RD |
8368 | if (_argo0) { |
8369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanUndo. Expected _wxTextCtrl_p."); |
53920141 RD |
8372 | return NULL; |
8373 | } | |
8374 | } | |
8375 | { | |
474c48f9 | 8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8377 | _result = (bool )wxTextCtrl_CanUndo(_arg0); |
53920141 | 8378 | |
474c48f9 | 8379 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8380 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 8381 | } _resultobj = Py_BuildValue("i",_result); |
53920141 RD |
8382 | return _resultobj; |
8383 | } | |
8384 | ||
a57d56d6 RD |
8385 | #define wxTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) |
8386 | static PyObject *_wrap_wxTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
53920141 RD |
8387 | PyObject * _resultobj; |
8388 | bool _result; | |
8389 | wxTextCtrl * _arg0; | |
2d091820 | 8390 | PyObject * _argo0 = 0; |
107e4716 | 8391 | char *_kwnames[] = { "self", NULL }; |
53920141 RD |
8392 | |
8393 | self = self; | |
a57d56d6 | 8394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_CanRedo",_kwnames,&_argo0)) |
53920141 | 8395 | return NULL; |
2d091820 RD |
8396 | if (_argo0) { |
8397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_CanRedo. Expected _wxTextCtrl_p."); |
53920141 RD |
8400 | return NULL; |
8401 | } | |
8402 | } | |
8403 | { | |
474c48f9 | 8404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8405 | _result = (bool )wxTextCtrl_CanRedo(_arg0); |
53920141 | 8406 | |
474c48f9 | 8407 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8408 | if (PyErr_Occurred()) return NULL; |
53920141 RD |
8409 | } _resultobj = Py_BuildValue("i",_result); |
8410 | return _resultobj; | |
8411 | } | |
8412 | ||
a57d56d6 RD |
8413 | #define wxTextCtrl_SetInsertionPoint(_swigobj,_swigarg0) (_swigobj->SetInsertionPoint(_swigarg0)) |
8414 | static PyObject *_wrap_wxTextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
8415 | PyObject * _resultobj; |
8416 | wxTextCtrl * _arg0; | |
a57d56d6 | 8417 | long _arg1; |
4120ef2b | 8418 | PyObject * _argo0 = 0; |
a57d56d6 | 8419 | char *_kwnames[] = { "self","pos", NULL }; |
4120ef2b RD |
8420 | |
8421 | self = self; | |
a57d56d6 | 8422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxTextCtrl_SetInsertionPoint",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
8423 | return NULL; |
8424 | if (_argo0) { | |
8425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPoint. Expected _wxTextCtrl_p."); |
4120ef2b RD |
8428 | return NULL; |
8429 | } | |
8430 | } | |
8431 | { | |
474c48f9 | 8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8433 | wxTextCtrl_SetInsertionPoint(_arg0,_arg1); |
4120ef2b | 8434 | |
474c48f9 | 8435 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8436 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
8437 | } Py_INCREF(Py_None); |
8438 | _resultobj = Py_None; | |
8439 | return _resultobj; | |
8440 | } | |
8441 | ||
a57d56d6 RD |
8442 | #define wxTextCtrl_SetInsertionPointEnd(_swigobj) (_swigobj->SetInsertionPointEnd()) |
8443 | static PyObject *_wrap_wxTextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b RD |
8444 | PyObject * _resultobj; |
8445 | wxTextCtrl * _arg0; | |
8446 | PyObject * _argo0 = 0; | |
8447 | char *_kwnames[] = { "self", NULL }; | |
8448 | ||
8449 | self = self; | |
a57d56d6 | 8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SetInsertionPointEnd",_kwnames,&_argo0)) |
4120ef2b RD |
8451 | return NULL; |
8452 | if (_argo0) { | |
8453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetInsertionPointEnd. Expected _wxTextCtrl_p."); |
4120ef2b RD |
8456 | return NULL; |
8457 | } | |
8458 | } | |
8459 | { | |
474c48f9 | 8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8461 | wxTextCtrl_SetInsertionPointEnd(_arg0); |
4120ef2b | 8462 | |
474c48f9 | 8463 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8464 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
8465 | } Py_INCREF(Py_None); |
8466 | _resultobj = Py_None; | |
8467 | return _resultobj; | |
8468 | } | |
8469 | ||
a57d56d6 RD |
8470 | #define wxTextCtrl_GetInsertionPoint(_swigobj) (_swigobj->GetInsertionPoint()) |
8471 | static PyObject *_wrap_wxTextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 8472 | PyObject * _resultobj; |
a57d56d6 | 8473 | long _result; |
9d6da64a | 8474 | wxTextCtrl * _arg0; |
9d6da64a | 8475 | PyObject * _argo0 = 0; |
a57d56d6 | 8476 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
8477 | |
8478 | self = self; | |
a57d56d6 | 8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetInsertionPoint",_kwnames,&_argo0)) |
9d6da64a RD |
8480 | return NULL; |
8481 | if (_argo0) { | |
8482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetInsertionPoint. Expected _wxTextCtrl_p."); |
9d6da64a RD |
8485 | return NULL; |
8486 | } | |
8487 | } | |
8488 | { | |
474c48f9 | 8489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8490 | _result = (long )wxTextCtrl_GetInsertionPoint(_arg0); |
9d6da64a | 8491 | |
474c48f9 | 8492 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 8493 | if (PyErr_Occurred()) return NULL; |
a57d56d6 | 8494 | } _resultobj = Py_BuildValue("l",_result); |
9d6da64a RD |
8495 | return _resultobj; |
8496 | } | |
8497 | ||
a57d56d6 RD |
8498 | #define wxTextCtrl_GetLastPosition(_swigobj) (_swigobj->GetLastPosition()) |
8499 | static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 8500 | PyObject * _resultobj; |
a57d56d6 | 8501 | long _result; |
9d6da64a | 8502 | wxTextCtrl * _arg0; |
9d6da64a | 8503 | PyObject * _argo0 = 0; |
a57d56d6 | 8504 | char *_kwnames[] = { "self", NULL }; |
9d6da64a RD |
8505 | |
8506 | self = self; | |
a57d56d6 | 8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_GetLastPosition",_kwnames,&_argo0)) |
9d6da64a RD |
8508 | return NULL; |
8509 | if (_argo0) { | |
8510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLastPosition. Expected _wxTextCtrl_p."); |
9d6da64a RD |
8513 | return NULL; |
8514 | } | |
8515 | } | |
a57d56d6 | 8516 | { |
474c48f9 | 8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8518 | _result = (long )wxTextCtrl_GetLastPosition(_arg0); |
a57d56d6 | 8519 | |
474c48f9 | 8520 | wxPyEndAllowThreads(__tstate); |
a57d56d6 RD |
8521 | if (PyErr_Occurred()) return NULL; |
8522 | } _resultobj = Py_BuildValue("l",_result); | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
8526 | #define wxTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
8527 | static PyObject *_wrap_wxTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | wxTextCtrl * _arg0; | |
8530 | long _arg1; | |
8531 | long _arg2; | |
8532 | PyObject * _argo0 = 0; | |
8533 | char *_kwnames[] = { "self","from","to", NULL }; | |
8534 | ||
8535 | self = self; | |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8537 | return NULL; | |
8538 | if (_argo0) { | |
8539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetSelection. Expected _wxTextCtrl_p."); | |
9d6da64a RD |
8542 | return NULL; |
8543 | } | |
8544 | } | |
8545 | { | |
474c48f9 | 8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8547 | wxTextCtrl_SetSelection(_arg0,_arg1,_arg2); |
9d6da64a | 8548 | |
474c48f9 | 8549 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 8550 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
8551 | } Py_INCREF(Py_None); |
8552 | _resultobj = Py_None; | |
9d6da64a RD |
8553 | return _resultobj; |
8554 | } | |
8555 | ||
a57d56d6 RD |
8556 | #define wxTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) |
8557 | static PyObject *_wrap_wxTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a | 8558 | PyObject * _resultobj; |
9d6da64a RD |
8559 | wxTextCtrl * _arg0; |
8560 | PyObject * _argo0 = 0; | |
8561 | char *_kwnames[] = { "self", NULL }; | |
9d6da64a RD |
8562 | |
8563 | self = self; | |
a57d56d6 | 8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_SelectAll",_kwnames,&_argo0)) |
9d6da64a RD |
8565 | return NULL; |
8566 | if (_argo0) { | |
8567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SelectAll. Expected _wxTextCtrl_p."); |
9d6da64a RD |
8570 | return NULL; |
8571 | } | |
8572 | } | |
8573 | { | |
474c48f9 | 8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8575 | wxTextCtrl_SelectAll(_arg0); |
9d6da64a | 8576 | |
474c48f9 | 8577 | wxPyEndAllowThreads(__tstate); |
9d6da64a | 8578 | if (PyErr_Occurred()) return NULL; |
a57d56d6 RD |
8579 | } Py_INCREF(Py_None); |
8580 | _resultobj = Py_None; | |
9d6da64a RD |
8581 | return _resultobj; |
8582 | } | |
8583 | ||
a57d56d6 RD |
8584 | #define wxTextCtrl_SetEditable(_swigobj,_swigarg0) (_swigobj->SetEditable(_swigarg0)) |
8585 | static PyObject *_wrap_wxTextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
aa2a5b86 RD |
8586 | PyObject * _resultobj; |
8587 | wxTextCtrl * _arg0; | |
a57d56d6 | 8588 | bool _arg1; |
aa2a5b86 | 8589 | PyObject * _argo0 = 0; |
a57d56d6 RD |
8590 | int tempbool1; |
8591 | char *_kwnames[] = { "self","editable", NULL }; | |
aa2a5b86 RD |
8592 | |
8593 | self = self; | |
a57d56d6 | 8594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTextCtrl_SetEditable",_kwnames,&_argo0,&tempbool1)) |
aa2a5b86 RD |
8595 | return NULL; |
8596 | if (_argo0) { | |
8597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
a57d56d6 | 8599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_SetEditable. Expected _wxTextCtrl_p."); |
aa2a5b86 RD |
8600 | return NULL; |
8601 | } | |
8602 | } | |
a57d56d6 | 8603 | _arg1 = (bool ) tempbool1; |
aa2a5b86 | 8604 | { |
474c48f9 | 8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8606 | wxTextCtrl_SetEditable(_arg0,_arg1); |
aa2a5b86 | 8607 | |
474c48f9 | 8608 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8609 | if (PyErr_Occurred()) return NULL; |
8610 | } Py_INCREF(Py_None); | |
8611 | _resultobj = Py_None; | |
8612 | return _resultobj; | |
8613 | } | |
8614 | ||
d99400b2 RD |
8615 | #define wxTextCtrl_IsSingleLine(_swigobj) (_swigobj->IsSingleLine()) |
8616 | static PyObject *_wrap_wxTextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject * _resultobj; | |
8618 | bool _result; | |
8619 | wxTextCtrl * _arg0; | |
8620 | PyObject * _argo0 = 0; | |
8621 | char *_kwnames[] = { "self", NULL }; | |
8622 | ||
8623 | self = self; | |
8624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsSingleLine",_kwnames,&_argo0)) | |
8625 | return NULL; | |
8626 | if (_argo0) { | |
8627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsSingleLine. Expected _wxTextCtrl_p."); | |
8630 | return NULL; | |
8631 | } | |
8632 | } | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | _result = (bool )wxTextCtrl_IsSingleLine(_arg0); | |
8636 | ||
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) return NULL; | |
8639 | } _resultobj = Py_BuildValue("i",_result); | |
8640 | return _resultobj; | |
8641 | } | |
8642 | ||
8643 | #define wxTextCtrl_IsMultiLine(_swigobj) (_swigobj->IsMultiLine()) | |
8644 | static PyObject *_wrap_wxTextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8645 | PyObject * _resultobj; | |
8646 | bool _result; | |
8647 | wxTextCtrl * _arg0; | |
8648 | PyObject * _argo0 = 0; | |
8649 | char *_kwnames[] = { "self", NULL }; | |
8650 | ||
8651 | self = self; | |
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextCtrl_IsMultiLine",_kwnames,&_argo0)) | |
8653 | return NULL; | |
8654 | if (_argo0) { | |
8655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_IsMultiLine. Expected _wxTextCtrl_p."); | |
8658 | return NULL; | |
8659 | } | |
8660 | } | |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | _result = (bool )wxTextCtrl_IsMultiLine(_arg0); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) return NULL; | |
8667 | } _resultobj = Py_BuildValue("i",_result); | |
8668 | return _resultobj; | |
8669 | } | |
8670 | ||
4120ef2b | 8671 | static void wxTextCtrl_write(wxTextCtrl *self,const wxString & text) { |
9d6da64a | 8672 | self->AppendText(text); |
4120ef2b RD |
8673 | } |
8674 | static PyObject *_wrap_wxTextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8675 | PyObject * _resultobj; | |
8676 | wxTextCtrl * _arg0; | |
8677 | wxString * _arg1; | |
8678 | PyObject * _argo0 = 0; | |
8679 | PyObject * _obj1 = 0; | |
8680 | char *_kwnames[] = { "self","text", NULL }; | |
8681 | ||
8682 | self = self; | |
8683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextCtrl_write",_kwnames,&_argo0,&_obj1)) | |
8684 | return NULL; | |
8685 | if (_argo0) { | |
8686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_write. Expected _wxTextCtrl_p."); | |
8689 | return NULL; | |
8690 | } | |
8691 | } | |
8692 | { | |
c8bc7bb8 RD |
8693 | _arg1 = wxString_in_helper(_obj1); |
8694 | if (_arg1 == NULL) | |
4120ef2b | 8695 | return NULL; |
4120ef2b RD |
8696 | } |
8697 | { | |
474c48f9 | 8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8699 | wxTextCtrl_write(_arg0,*_arg1); |
4120ef2b | 8700 | |
474c48f9 | 8701 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8702 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
8703 | } Py_INCREF(Py_None); |
8704 | _resultobj = Py_None; | |
8705 | { | |
8706 | if (_obj1) | |
8707 | delete _arg1; | |
8708 | } | |
8709 | return _resultobj; | |
8710 | } | |
8711 | ||
7a9b33db | 8712 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to) { |
d99400b2 | 8713 | return self->GetValue().Mid(from, to - from); |
7a9b33db RD |
8714 | } |
8715 | static PyObject *_wrap_wxTextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject * _resultobj; | |
8717 | wxString * _result; | |
8718 | wxTextCtrl * _arg0; | |
8719 | long _arg1; | |
8720 | long _arg2; | |
8721 | PyObject * _argo0 = 0; | |
8722 | char *_kwnames[] = { "self","from","to", NULL }; | |
8723 | ||
8724 | self = self; | |
8725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxTextCtrl_GetString",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8726 | return NULL; | |
8727 | if (_argo0) { | |
8728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
8730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetString. Expected _wxTextCtrl_p."); | |
8731 | return NULL; | |
8732 | } | |
8733 | } | |
8734 | { | |
474c48f9 | 8735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8736 | _result = new wxString (wxTextCtrl_GetString(_arg0,_arg1,_arg2)); |
7a9b33db | 8737 | |
474c48f9 | 8738 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
8739 | if (PyErr_Occurred()) return NULL; |
8740 | }{ | |
c8bc7bb8 | 8741 | #if wxUSE_UNICODE |
b67a9327 | 8742 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8743 | #else |
7a9b33db | 8744 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8745 | #endif |
7a9b33db RD |
8746 | } |
8747 | { | |
8748 | delete _result; | |
8749 | } | |
8750 | return _resultobj; | |
8751 | } | |
8752 | ||
70551f47 RD |
8753 | static void *SwigwxScrollBarTowxControl(void *ptr) { |
8754 | wxScrollBar *src; | |
8755 | wxControl *dest; | |
8756 | src = (wxScrollBar *) ptr; | |
8757 | dest = (wxControl *) src; | |
8758 | return (void *) dest; | |
8759 | } | |
8760 | ||
8761 | static void *SwigwxScrollBarTowxWindow(void *ptr) { | |
8762 | wxScrollBar *src; | |
8763 | wxWindow *dest; | |
8764 | src = (wxScrollBar *) ptr; | |
8765 | dest = (wxWindow *) src; | |
8766 | return (void *) dest; | |
8767 | } | |
8768 | ||
8769 | static void *SwigwxScrollBarTowxEvtHandler(void *ptr) { | |
8770 | wxScrollBar *src; | |
8771 | wxEvtHandler *dest; | |
8772 | src = (wxScrollBar *) ptr; | |
8773 | dest = (wxEvtHandler *) src; | |
8774 | return (void *) dest; | |
8775 | } | |
8776 | ||
9df61a29 RD |
8777 | static void *SwigwxScrollBarTowxObject(void *ptr) { |
8778 | wxScrollBar *src; | |
8779 | wxObject *dest; | |
8780 | src = (wxScrollBar *) ptr; | |
8781 | dest = (wxObject *) src; | |
8782 | return (void *) dest; | |
8783 | } | |
8784 | ||
70551f47 | 8785 | #define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 8786 | static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8787 | PyObject * _resultobj; |
8788 | wxScrollBar * _result; | |
8789 | wxWindow * _arg0; | |
2d091820 | 8790 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
8791 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
8792 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 8793 | long _arg4 = (long ) wxSB_HORIZONTAL; |
b68dc582 | 8794 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 8795 | wxString * _arg6 = (wxString *) &wxPyScrollBarNameStr; |
2d091820 | 8796 | PyObject * _argo0 = 0; |
37f6a977 RD |
8797 | wxPoint temp; |
8798 | PyObject * _obj2 = 0; | |
8799 | wxSize temp0; | |
8800 | PyObject * _obj3 = 0; | |
2d091820 | 8801 | PyObject * _argo5 = 0; |
9a74fcaf | 8802 | PyObject * _obj6 = 0; |
107e4716 | 8803 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
70551f47 RD |
8804 | char _ptemp[128]; |
8805 | ||
8806 | self = self; | |
9a74fcaf | 8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxScrollBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
70551f47 | 8808 | return NULL; |
2d091820 RD |
8809 | if (_argo0) { |
8810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
8812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrollBar. Expected _wxWindow_p."); |
8813 | return NULL; | |
8814 | } | |
8815 | } | |
37f6a977 RD |
8816 | if (_obj2) |
8817 | { | |
8818 | _arg2 = &temp; | |
8819 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 8820 | return NULL; |
37f6a977 RD |
8821 | } |
8822 | if (_obj3) | |
8823 | { | |
8824 | _arg3 = &temp0; | |
8825 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 8826 | return NULL; |
37f6a977 | 8827 | } |
2d091820 | 8828 | if (_argo5) { |
b67a9327 | 8829 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
70551f47 RD |
8830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxScrollBar. Expected _wxValidator_p."); |
8831 | return NULL; | |
8832 | } | |
8833 | } | |
9a74fcaf RD |
8834 | if (_obj6) |
8835 | { | |
8836 | _arg6 = wxString_in_helper(_obj6); | |
8837 | if (_arg6 == NULL) | |
8838 | return NULL; | |
8839 | } | |
ab9bc19b | 8840 | { |
474c48f9 | 8841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8842 | _result = (wxScrollBar *)new_wxScrollBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
ab9bc19b | 8843 | |
474c48f9 | 8844 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8845 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
8846 | } if (_result) { |
8847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8848 | _resultobj = Py_BuildValue("s",_ptemp); | |
8849 | } else { | |
8850 | Py_INCREF(Py_None); | |
8851 | _resultobj = Py_None; | |
8852 | } | |
9a74fcaf RD |
8853 | { |
8854 | if (_obj6) | |
8855 | delete _arg6; | |
8856 | } | |
70551f47 RD |
8857 | return _resultobj; |
8858 | } | |
8859 | ||
aa2a5b86 RD |
8860 | #define new_wxPreScrollBar() (new wxScrollBar()) |
8861 | static PyObject *_wrap_new_wxPreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8862 | PyObject * _resultobj; | |
8863 | wxScrollBar * _result; | |
8864 | char *_kwnames[] = { NULL }; | |
8865 | char _ptemp[128]; | |
8866 | ||
8867 | self = self; | |
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrollBar",_kwnames)) | |
8869 | return NULL; | |
8870 | { | |
474c48f9 | 8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8872 | _result = (wxScrollBar *)new_wxPreScrollBar(); |
aa2a5b86 | 8873 | |
474c48f9 | 8874 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8875 | if (PyErr_Occurred()) return NULL; |
8876 | } if (_result) { | |
8877 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
8878 | _resultobj = Py_BuildValue("s",_ptemp); | |
8879 | } else { | |
8880 | Py_INCREF(Py_None); | |
8881 | _resultobj = Py_None; | |
8882 | } | |
8883 | return _resultobj; | |
8884 | } | |
8885 | ||
8886 | #define wxScrollBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
8887 | static PyObject *_wrap_wxScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8888 | PyObject * _resultobj; | |
8889 | bool _result; | |
8890 | wxScrollBar * _arg0; | |
8891 | wxWindow * _arg1; | |
8892 | wxWindowID _arg2 = (wxWindowID ) -1; | |
8893 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
8894 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
8895 | long _arg5 = (long ) wxSB_HORIZONTAL; | |
8896 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 8897 | wxString * _arg7 = (wxString *) &wxPyScrollBarNameStr; |
aa2a5b86 RD |
8898 | PyObject * _argo0 = 0; |
8899 | PyObject * _argo1 = 0; | |
8900 | wxPoint temp; | |
8901 | PyObject * _obj3 = 0; | |
8902 | wxSize temp0; | |
8903 | PyObject * _obj4 = 0; | |
8904 | PyObject * _argo6 = 0; | |
9a74fcaf | 8905 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
8906 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
8907 | ||
8908 | self = self; | |
9a74fcaf | 8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxScrollBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
8910 | return NULL; |
8911 | if (_argo0) { | |
8912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_Create. Expected _wxScrollBar_p."); | |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
8918 | if (_argo1) { | |
8919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrollBar_Create. Expected _wxWindow_p."); | |
8922 | return NULL; | |
8923 | } | |
8924 | } | |
8925 | if (_obj3) | |
8926 | { | |
8927 | _arg3 = &temp; | |
8928 | if (! wxPoint_helper(_obj3, &_arg3)) | |
8929 | return NULL; | |
8930 | } | |
8931 | if (_obj4) | |
8932 | { | |
8933 | _arg4 = &temp0; | |
8934 | if (! wxSize_helper(_obj4, &_arg4)) | |
8935 | return NULL; | |
8936 | } | |
8937 | if (_argo6) { | |
b67a9327 | 8938 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
8939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxScrollBar_Create. Expected _wxValidator_p."); |
8940 | return NULL; | |
8941 | } | |
8942 | } | |
9a74fcaf RD |
8943 | if (_obj7) |
8944 | { | |
8945 | _arg7 = wxString_in_helper(_obj7); | |
8946 | if (_arg7 == NULL) | |
8947 | return NULL; | |
8948 | } | |
aa2a5b86 | 8949 | { |
474c48f9 | 8950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 8951 | _result = (bool )wxScrollBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 8952 | |
474c48f9 | 8953 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
8954 | if (PyErr_Occurred()) return NULL; |
8955 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
8956 | { |
8957 | if (_obj7) | |
8958 | delete _arg7; | |
8959 | } | |
aa2a5b86 RD |
8960 | return _resultobj; |
8961 | } | |
8962 | ||
70551f47 | 8963 | #define wxScrollBar_GetRange(_swigobj) (_swigobj->GetRange()) |
107e4716 | 8964 | static PyObject *_wrap_wxScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8965 | PyObject * _resultobj; |
8966 | int _result; | |
8967 | wxScrollBar * _arg0; | |
2d091820 | 8968 | PyObject * _argo0 = 0; |
107e4716 | 8969 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8970 | |
8971 | self = self; | |
107e4716 | 8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetRange",_kwnames,&_argo0)) |
70551f47 | 8973 | return NULL; |
2d091820 RD |
8974 | if (_argo0) { |
8975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
8977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetRange. Expected _wxScrollBar_p."); |
8978 | return NULL; | |
8979 | } | |
8980 | } | |
ab9bc19b | 8981 | { |
474c48f9 | 8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8983 | _result = (int )wxScrollBar_GetRange(_arg0); |
ab9bc19b | 8984 | |
474c48f9 | 8985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8986 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8987 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8988 | return _resultobj; |
8989 | } | |
8990 | ||
8991 | #define wxScrollBar_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 8992 | static PyObject *_wrap_wxScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8993 | PyObject * _resultobj; |
8994 | int _result; | |
8995 | wxScrollBar * _arg0; | |
2d091820 | 8996 | PyObject * _argo0 = 0; |
107e4716 | 8997 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8998 | |
8999 | self = self; | |
107e4716 | 9000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 9001 | return NULL; |
2d091820 RD |
9002 | if (_argo0) { |
9003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
9005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetPageSize. Expected _wxScrollBar_p."); |
9006 | return NULL; | |
9007 | } | |
9008 | } | |
ab9bc19b | 9009 | { |
474c48f9 | 9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9011 | _result = (int )wxScrollBar_GetPageSize(_arg0); |
ab9bc19b | 9012 | |
474c48f9 | 9013 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9014 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9015 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9016 | return _resultobj; |
9017 | } | |
9018 | ||
105e45b9 | 9019 | #define wxScrollBar_GetThumbPosition(_swigobj) (_swigobj->GetThumbPosition()) |
107e4716 | 9020 | static PyObject *_wrap_wxScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9021 | PyObject * _resultobj; |
9022 | int _result; | |
9023 | wxScrollBar * _arg0; | |
2d091820 | 9024 | PyObject * _argo0 = 0; |
107e4716 | 9025 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9026 | |
9027 | self = self; | |
107e4716 | 9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbPosition",_kwnames,&_argo0)) |
70551f47 | 9029 | return NULL; |
2d091820 RD |
9030 | if (_argo0) { |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
9034 | return NULL; |
9035 | } | |
9036 | } | |
ab9bc19b | 9037 | { |
474c48f9 | 9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9039 | _result = (int )wxScrollBar_GetThumbPosition(_arg0); |
ab9bc19b | 9040 | |
474c48f9 | 9041 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9042 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9043 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9044 | return _resultobj; |
9045 | } | |
9046 | ||
9047 | #define wxScrollBar_GetThumbSize(_swigobj) (_swigobj->GetThumbSize()) | |
107e4716 | 9048 | static PyObject *_wrap_wxScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9049 | PyObject * _resultobj; |
9050 | int _result; | |
9051 | wxScrollBar * _arg0; | |
2d091820 | 9052 | PyObject * _argo0 = 0; |
107e4716 | 9053 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9054 | |
9055 | self = self; | |
107e4716 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_GetThumbSize",_kwnames,&_argo0)) |
70551f47 | 9057 | return NULL; |
2d091820 RD |
9058 | if (_argo0) { |
9059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
9061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_GetThumbSize. Expected _wxScrollBar_p."); |
9062 | return NULL; | |
9063 | } | |
9064 | } | |
ab9bc19b | 9065 | { |
474c48f9 | 9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9067 | _result = (int )wxScrollBar_GetThumbSize(_arg0); |
ab9bc19b | 9068 | |
474c48f9 | 9069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9070 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9071 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9072 | return _resultobj; |
9073 | } | |
9074 | ||
6e8a778a RD |
9075 | #define wxScrollBar_IsVertical(_swigobj) (_swigobj->IsVertical()) |
9076 | static PyObject *_wrap_wxScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject * _resultobj; | |
9078 | bool _result; | |
9079 | wxScrollBar * _arg0; | |
9080 | PyObject * _argo0 = 0; | |
9081 | char *_kwnames[] = { "self", NULL }; | |
9082 | ||
9083 | self = self; | |
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrollBar_IsVertical",_kwnames,&_argo0)) | |
9085 | return NULL; | |
9086 | if (_argo0) { | |
9087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
9089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_IsVertical. Expected _wxScrollBar_p."); | |
9090 | return NULL; | |
9091 | } | |
9092 | } | |
9093 | { | |
474c48f9 | 9094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9095 | _result = (bool )wxScrollBar_IsVertical(_arg0); |
6e8a778a | 9096 | |
474c48f9 | 9097 | wxPyEndAllowThreads(__tstate); |
6e8a778a RD |
9098 | if (PyErr_Occurred()) return NULL; |
9099 | } _resultobj = Py_BuildValue("i",_result); | |
9100 | return _resultobj; | |
9101 | } | |
9102 | ||
105e45b9 | 9103 | #define wxScrollBar_SetThumbPosition(_swigobj,_swigarg0) (_swigobj->SetThumbPosition(_swigarg0)) |
107e4716 | 9104 | static PyObject *_wrap_wxScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9105 | PyObject * _resultobj; |
9106 | wxScrollBar * _arg0; | |
9107 | int _arg1; | |
2d091820 | 9108 | PyObject * _argo0 = 0; |
107e4716 | 9109 | char *_kwnames[] = { "self","viewStart", NULL }; |
70551f47 RD |
9110 | |
9111 | self = self; | |
107e4716 | 9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrollBar_SetThumbPosition",_kwnames,&_argo0,&_arg1)) |
70551f47 | 9113 | return NULL; |
2d091820 RD |
9114 | if (_argo0) { |
9115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
105e45b9 | 9117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetThumbPosition. Expected _wxScrollBar_p."); |
70551f47 RD |
9118 | return NULL; |
9119 | } | |
9120 | } | |
ab9bc19b | 9121 | { |
474c48f9 | 9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9123 | wxScrollBar_SetThumbPosition(_arg0,_arg1); |
ab9bc19b | 9124 | |
474c48f9 | 9125 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9126 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9127 | } Py_INCREF(Py_None); |
70551f47 RD |
9128 | _resultobj = Py_None; |
9129 | return _resultobj; | |
9130 | } | |
9131 | ||
9132 | #define wxScrollBar_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 9133 | static PyObject *_wrap_wxScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9134 | PyObject * _resultobj; |
9135 | wxScrollBar * _arg0; | |
9136 | int _arg1; | |
9137 | int _arg2; | |
9138 | int _arg3; | |
9139 | int _arg4; | |
2d091820 RD |
9140 | bool _arg5 = (bool ) TRUE; |
9141 | PyObject * _argo0 = 0; | |
9142 | int tempbool5 = (int) TRUE; | |
107e4716 | 9143 | char *_kwnames[] = { "self","position","thumbSize","range","pageSize","refresh", NULL }; |
70551f47 RD |
9144 | |
9145 | self = self; | |
107e4716 | 9146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxScrollBar_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 9147 | return NULL; |
2d091820 RD |
9148 | if (_argo0) { |
9149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrollBar_p")) { | |
70551f47 RD |
9151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrollBar_SetScrollbar. Expected _wxScrollBar_p."); |
9152 | return NULL; | |
9153 | } | |
9154 | } | |
9155 | _arg5 = (bool ) tempbool5; | |
ab9bc19b | 9156 | { |
474c48f9 | 9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9158 | wxScrollBar_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 9159 | |
474c48f9 | 9160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9161 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9162 | } Py_INCREF(Py_None); |
70551f47 RD |
9163 | _resultobj = Py_None; |
9164 | return _resultobj; | |
9165 | } | |
9166 | ||
62bd0874 RD |
9167 | static void *SwigwxSpinButtonTowxControl(void *ptr) { |
9168 | wxSpinButton *src; | |
9169 | wxControl *dest; | |
9170 | src = (wxSpinButton *) ptr; | |
9171 | dest = (wxControl *) src; | |
9172 | return (void *) dest; | |
9173 | } | |
9174 | ||
9175 | static void *SwigwxSpinButtonTowxWindow(void *ptr) { | |
9176 | wxSpinButton *src; | |
9177 | wxWindow *dest; | |
9178 | src = (wxSpinButton *) ptr; | |
9179 | dest = (wxWindow *) src; | |
9180 | return (void *) dest; | |
9181 | } | |
9182 | ||
9183 | static void *SwigwxSpinButtonTowxEvtHandler(void *ptr) { | |
9184 | wxSpinButton *src; | |
9185 | wxEvtHandler *dest; | |
9186 | src = (wxSpinButton *) ptr; | |
9187 | dest = (wxEvtHandler *) src; | |
9188 | return (void *) dest; | |
9189 | } | |
9190 | ||
9df61a29 RD |
9191 | static void *SwigwxSpinButtonTowxObject(void *ptr) { |
9192 | wxSpinButton *src; | |
9193 | wxObject *dest; | |
9194 | src = (wxSpinButton *) ptr; | |
9195 | dest = (wxObject *) src; | |
9196 | return (void *) dest; | |
9197 | } | |
9198 | ||
62bd0874 | 9199 | #define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 9200 | static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9201 | PyObject * _resultobj; |
9202 | wxSpinButton * _result; | |
9203 | wxWindow * _arg0; | |
2d091820 | 9204 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
9205 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
9206 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9207 | long _arg4 = (long ) wxSP_HORIZONTAL; |
9a74fcaf | 9208 | wxString * _arg5 = (wxString *) &wxPySPIN_BUTTON_NAME; |
2d091820 | 9209 | PyObject * _argo0 = 0; |
37f6a977 RD |
9210 | wxPoint temp; |
9211 | PyObject * _obj2 = 0; | |
9212 | wxSize temp0; | |
9213 | PyObject * _obj3 = 0; | |
9a74fcaf | 9214 | PyObject * _obj5 = 0; |
107e4716 | 9215 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
62bd0874 RD |
9216 | char _ptemp[128]; |
9217 | ||
9218 | self = self; | |
9a74fcaf | 9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxSpinButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
62bd0874 | 9220 | return NULL; |
2d091820 RD |
9221 | if (_argo0) { |
9222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
62bd0874 RD |
9224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinButton. Expected _wxWindow_p."); |
9225 | return NULL; | |
9226 | } | |
9227 | } | |
37f6a977 RD |
9228 | if (_obj2) |
9229 | { | |
9230 | _arg2 = &temp; | |
9231 | if (! wxPoint_helper(_obj2, &_arg2)) | |
62bd0874 | 9232 | return NULL; |
37f6a977 RD |
9233 | } |
9234 | if (_obj3) | |
9235 | { | |
9236 | _arg3 = &temp0; | |
9237 | if (! wxSize_helper(_obj3, &_arg3)) | |
62bd0874 | 9238 | return NULL; |
9a74fcaf RD |
9239 | } |
9240 | if (_obj5) | |
9241 | { | |
9242 | _arg5 = wxString_in_helper(_obj5); | |
9243 | if (_arg5 == NULL) | |
9244 | return NULL; | |
37f6a977 | 9245 | } |
ab9bc19b | 9246 | { |
474c48f9 | 9247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9248 | _result = (wxSpinButton *)new_wxSpinButton(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
ab9bc19b | 9249 | |
474c48f9 | 9250 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9251 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9252 | } if (_result) { |
9253 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
9254 | _resultobj = Py_BuildValue("s",_ptemp); | |
9255 | } else { | |
9256 | Py_INCREF(Py_None); | |
9257 | _resultobj = Py_None; | |
9258 | } | |
9a74fcaf RD |
9259 | { |
9260 | if (_obj5) | |
9261 | delete _arg5; | |
9262 | } | |
62bd0874 RD |
9263 | return _resultobj; |
9264 | } | |
9265 | ||
aa2a5b86 RD |
9266 | #define new_wxPreSpinButton() (new wxSpinButton()) |
9267 | static PyObject *_wrap_new_wxPreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9268 | PyObject * _resultobj; | |
9269 | wxSpinButton * _result; | |
9270 | char *_kwnames[] = { NULL }; | |
9271 | char _ptemp[128]; | |
9272 | ||
9273 | self = self; | |
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinButton",_kwnames)) | |
9275 | return NULL; | |
9276 | { | |
474c48f9 | 9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9278 | _result = (wxSpinButton *)new_wxPreSpinButton(); |
aa2a5b86 | 9279 | |
474c48f9 | 9280 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9281 | if (PyErr_Occurred()) return NULL; |
9282 | } if (_result) { | |
9283 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinButton_p"); | |
9284 | _resultobj = Py_BuildValue("s",_ptemp); | |
9285 | } else { | |
9286 | Py_INCREF(Py_None); | |
9287 | _resultobj = Py_None; | |
9288 | } | |
9289 | return _resultobj; | |
9290 | } | |
9291 | ||
9292 | #define wxSpinButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
9293 | static PyObject *_wrap_wxSpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9294 | PyObject * _resultobj; | |
9295 | bool _result; | |
9296 | wxSpinButton * _arg0; | |
9297 | wxWindow * _arg1; | |
9298 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9299 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9300 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9301 | long _arg5 = (long ) wxSP_HORIZONTAL; | |
9a74fcaf | 9302 | wxString * _arg6 = (wxString *) &wxPySPIN_BUTTON_NAME; |
aa2a5b86 RD |
9303 | PyObject * _argo0 = 0; |
9304 | PyObject * _argo1 = 0; | |
9305 | wxPoint temp; | |
9306 | PyObject * _obj3 = 0; | |
9307 | wxSize temp0; | |
9308 | PyObject * _obj4 = 0; | |
9a74fcaf | 9309 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
9310 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
9311 | ||
9312 | self = self; | |
9a74fcaf | 9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxSpinButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
9314 | return NULL; |
9315 | if (_argo0) { | |
9316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
9318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_Create. Expected _wxSpinButton_p."); | |
9319 | return NULL; | |
9320 | } | |
9321 | } | |
9322 | if (_argo1) { | |
9323 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9324 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinButton_Create. Expected _wxWindow_p."); | |
9326 | return NULL; | |
9327 | } | |
9328 | } | |
9329 | if (_obj3) | |
9330 | { | |
9331 | _arg3 = &temp; | |
9332 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9333 | return NULL; | |
9334 | } | |
9335 | if (_obj4) | |
9336 | { | |
9337 | _arg4 = &temp0; | |
9338 | if (! wxSize_helper(_obj4, &_arg4)) | |
9339 | return NULL; | |
9a74fcaf RD |
9340 | } |
9341 | if (_obj6) | |
9342 | { | |
9343 | _arg6 = wxString_in_helper(_obj6); | |
9344 | if (_arg6 == NULL) | |
9345 | return NULL; | |
aa2a5b86 RD |
9346 | } |
9347 | { | |
474c48f9 | 9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9349 | _result = (bool )wxSpinButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 9350 | |
474c48f9 | 9351 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9352 | if (PyErr_Occurred()) return NULL; |
9353 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
9354 | { |
9355 | if (_obj6) | |
9356 | delete _arg6; | |
9357 | } | |
aa2a5b86 RD |
9358 | return _resultobj; |
9359 | } | |
9360 | ||
62bd0874 | 9361 | #define wxSpinButton_GetMax(_swigobj) (_swigobj->GetMax()) |
107e4716 | 9362 | static PyObject *_wrap_wxSpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9363 | PyObject * _resultobj; |
9364 | int _result; | |
9365 | wxSpinButton * _arg0; | |
2d091820 | 9366 | PyObject * _argo0 = 0; |
107e4716 | 9367 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
9368 | |
9369 | self = self; | |
107e4716 | 9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMax",_kwnames,&_argo0)) |
62bd0874 | 9371 | return NULL; |
2d091820 RD |
9372 | if (_argo0) { |
9373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMax. Expected _wxSpinButton_p."); |
9376 | return NULL; | |
9377 | } | |
9378 | } | |
ab9bc19b | 9379 | { |
474c48f9 | 9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9381 | _result = (int )wxSpinButton_GetMax(_arg0); |
ab9bc19b | 9382 | |
474c48f9 | 9383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9384 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9385 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
9386 | return _resultobj; |
9387 | } | |
9388 | ||
9389 | #define wxSpinButton_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 9390 | static PyObject *_wrap_wxSpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9391 | PyObject * _resultobj; |
9392 | int _result; | |
9393 | wxSpinButton * _arg0; | |
2d091820 | 9394 | PyObject * _argo0 = 0; |
107e4716 | 9395 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
9396 | |
9397 | self = self; | |
107e4716 | 9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetMin",_kwnames,&_argo0)) |
62bd0874 | 9399 | return NULL; |
2d091820 RD |
9400 | if (_argo0) { |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetMin. Expected _wxSpinButton_p."); |
9404 | return NULL; | |
9405 | } | |
9406 | } | |
ab9bc19b | 9407 | { |
474c48f9 | 9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9409 | _result = (int )wxSpinButton_GetMin(_arg0); |
ab9bc19b | 9410 | |
474c48f9 | 9411 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9412 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9413 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
9414 | return _resultobj; |
9415 | } | |
9416 | ||
9417 | #define wxSpinButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 9418 | static PyObject *_wrap_wxSpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9419 | PyObject * _resultobj; |
9420 | int _result; | |
9421 | wxSpinButton * _arg0; | |
2d091820 | 9422 | PyObject * _argo0 = 0; |
107e4716 | 9423 | char *_kwnames[] = { "self", NULL }; |
62bd0874 RD |
9424 | |
9425 | self = self; | |
107e4716 | 9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinButton_GetValue",_kwnames,&_argo0)) |
62bd0874 | 9427 | return NULL; |
2d091820 RD |
9428 | if (_argo0) { |
9429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
9431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_GetValue. Expected _wxSpinButton_p."); |
9432 | return NULL; | |
9433 | } | |
9434 | } | |
ab9bc19b | 9435 | { |
474c48f9 | 9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9437 | _result = (int )wxSpinButton_GetValue(_arg0); |
ab9bc19b | 9438 | |
474c48f9 | 9439 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9440 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9441 | } _resultobj = Py_BuildValue("i",_result); |
62bd0874 RD |
9442 | return _resultobj; |
9443 | } | |
9444 | ||
9445 | #define wxSpinButton_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 9446 | static PyObject *_wrap_wxSpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9447 | PyObject * _resultobj; |
9448 | wxSpinButton * _arg0; | |
9449 | int _arg1; | |
9450 | int _arg2; | |
2d091820 | 9451 | PyObject * _argo0 = 0; |
107e4716 | 9452 | char *_kwnames[] = { "self","min","max", NULL }; |
62bd0874 RD |
9453 | |
9454 | self = self; | |
107e4716 | 9455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinButton_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
62bd0874 | 9456 | return NULL; |
2d091820 RD |
9457 | if (_argo0) { |
9458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
9460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetRange. Expected _wxSpinButton_p."); |
9461 | return NULL; | |
9462 | } | |
9463 | } | |
ab9bc19b | 9464 | { |
474c48f9 | 9465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9466 | wxSpinButton_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 9467 | |
474c48f9 | 9468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9469 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9470 | } Py_INCREF(Py_None); |
62bd0874 RD |
9471 | _resultobj = Py_None; |
9472 | return _resultobj; | |
9473 | } | |
9474 | ||
9475 | #define wxSpinButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 9476 | static PyObject *_wrap_wxSpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
62bd0874 RD |
9477 | PyObject * _resultobj; |
9478 | wxSpinButton * _arg0; | |
9479 | int _arg1; | |
2d091820 | 9480 | PyObject * _argo0 = 0; |
107e4716 | 9481 | char *_kwnames[] = { "self","value", NULL }; |
62bd0874 RD |
9482 | |
9483 | self = self; | |
107e4716 | 9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinButton_SetValue",_kwnames,&_argo0,&_arg1)) |
62bd0874 | 9485 | return NULL; |
2d091820 RD |
9486 | if (_argo0) { |
9487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinButton_p")) { | |
62bd0874 RD |
9489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinButton_SetValue. Expected _wxSpinButton_p."); |
9490 | return NULL; | |
9491 | } | |
9492 | } | |
ab9bc19b | 9493 | { |
474c48f9 | 9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9495 | wxSpinButton_SetValue(_arg0,_arg1); |
ab9bc19b | 9496 | |
474c48f9 | 9497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9498 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9499 | } Py_INCREF(Py_None); |
62bd0874 RD |
9500 | _resultobj = Py_None; |
9501 | return _resultobj; | |
9502 | } | |
9503 | ||
70551f47 RD |
9504 | static void *SwigwxStaticBitmapTowxControl(void *ptr) { |
9505 | wxStaticBitmap *src; | |
9506 | wxControl *dest; | |
9507 | src = (wxStaticBitmap *) ptr; | |
9508 | dest = (wxControl *) src; | |
9509 | return (void *) dest; | |
9510 | } | |
9511 | ||
9512 | static void *SwigwxStaticBitmapTowxWindow(void *ptr) { | |
9513 | wxStaticBitmap *src; | |
9514 | wxWindow *dest; | |
9515 | src = (wxStaticBitmap *) ptr; | |
9516 | dest = (wxWindow *) src; | |
9517 | return (void *) dest; | |
9518 | } | |
9519 | ||
9520 | static void *SwigwxStaticBitmapTowxEvtHandler(void *ptr) { | |
9521 | wxStaticBitmap *src; | |
9522 | wxEvtHandler *dest; | |
9523 | src = (wxStaticBitmap *) ptr; | |
9524 | dest = (wxEvtHandler *) src; | |
9525 | return (void *) dest; | |
9526 | } | |
9527 | ||
9df61a29 RD |
9528 | static void *SwigwxStaticBitmapTowxObject(void *ptr) { |
9529 | wxStaticBitmap *src; | |
9530 | wxObject *dest; | |
9531 | src = (wxStaticBitmap *) ptr; | |
9532 | dest = (wxObject *) src; | |
9533 | return (void *) dest; | |
9534 | } | |
9535 | ||
70551f47 | 9536 | #define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 9537 | static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9538 | PyObject * _resultobj; |
9539 | wxStaticBitmap * _result; | |
9540 | wxWindow * _arg0; | |
9541 | wxWindowID _arg1; | |
9542 | wxBitmap * _arg2; | |
b68dc582 RD |
9543 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9544 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 9545 | long _arg5 = (long ) 0; |
9a74fcaf | 9546 | wxString * _arg6 = (wxString *) &wxPyStaticBitmapNameStr; |
2d091820 | 9547 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
9548 | PyObject * _argo2 = 0; |
9549 | wxPoint temp; | |
9550 | PyObject * _obj3 = 0; | |
9551 | wxSize temp0; | |
9552 | PyObject * _obj4 = 0; | |
9a74fcaf | 9553 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
9554 | char *_kwnames[] = { "parent","id","bitmap","pos","size","style","name", NULL }; |
9555 | char _ptemp[128]; | |
9556 | ||
9557 | self = self; | |
9a74fcaf | 9558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxStaticBitmap",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
9559 | return NULL; |
9560 | if (_argo0) { | |
9561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStaticBitmap. Expected _wxWindow_p."); | |
9564 | return NULL; | |
9565 | } | |
9566 | } | |
9567 | if (_argo2) { | |
b67a9327 | 9568 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
aa2a5b86 RD |
9569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStaticBitmap. Expected _wxBitmap_p."); |
9570 | return NULL; | |
9571 | } | |
9572 | } | |
9573 | if (_obj3) | |
9574 | { | |
9575 | _arg3 = &temp; | |
9576 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9577 | return NULL; | |
9578 | } | |
9579 | if (_obj4) | |
9580 | { | |
9581 | _arg4 = &temp0; | |
9582 | if (! wxSize_helper(_obj4, &_arg4)) | |
9583 | return NULL; | |
9a74fcaf RD |
9584 | } |
9585 | if (_obj6) | |
9586 | { | |
9587 | _arg6 = wxString_in_helper(_obj6); | |
9588 | if (_arg6 == NULL) | |
9589 | return NULL; | |
aa2a5b86 RD |
9590 | } |
9591 | { | |
474c48f9 | 9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9593 | _result = (wxStaticBitmap *)new_wxStaticBitmap(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 9594 | |
474c48f9 | 9595 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9596 | if (PyErr_Occurred()) return NULL; |
9597 | } if (_result) { | |
9598 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9599 | _resultobj = Py_BuildValue("s",_ptemp); | |
9600 | } else { | |
9601 | Py_INCREF(Py_None); | |
9602 | _resultobj = Py_None; | |
9603 | } | |
9a74fcaf RD |
9604 | { |
9605 | if (_obj6) | |
9606 | delete _arg6; | |
9607 | } | |
aa2a5b86 RD |
9608 | return _resultobj; |
9609 | } | |
9610 | ||
9611 | #define new_wxPreStaticBitmap() (new wxStaticBitmap()) | |
9612 | static PyObject *_wrap_new_wxPreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9613 | PyObject * _resultobj; | |
9614 | wxStaticBitmap * _result; | |
9615 | char *_kwnames[] = { NULL }; | |
9616 | char _ptemp[128]; | |
9617 | ||
9618 | self = self; | |
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStaticBitmap",_kwnames)) | |
9620 | return NULL; | |
9621 | { | |
474c48f9 | 9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9623 | _result = (wxStaticBitmap *)new_wxPreStaticBitmap(); |
aa2a5b86 | 9624 | |
474c48f9 | 9625 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9626 | if (PyErr_Occurred()) return NULL; |
9627 | } if (_result) { | |
9628 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBitmap_p"); | |
9629 | _resultobj = Py_BuildValue("s",_ptemp); | |
9630 | } else { | |
9631 | Py_INCREF(Py_None); | |
9632 | _resultobj = Py_None; | |
9633 | } | |
9634 | return _resultobj; | |
9635 | } | |
9636 | ||
9637 | #define wxStaticBitmap_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
9638 | static PyObject *_wrap_wxStaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9639 | PyObject * _resultobj; | |
9640 | bool _result; | |
9641 | wxStaticBitmap * _arg0; | |
9642 | wxWindow * _arg1; | |
9643 | wxWindowID _arg2; | |
9644 | wxBitmap * _arg3; | |
9645 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9646 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9647 | long _arg6 = (long ) 0; | |
9a74fcaf | 9648 | wxString * _arg7 = (wxString *) &wxPyStaticBitmapNameStr; |
aa2a5b86 RD |
9649 | PyObject * _argo0 = 0; |
9650 | PyObject * _argo1 = 0; | |
9651 | PyObject * _argo3 = 0; | |
37f6a977 | 9652 | wxPoint temp; |
37f6a977 | 9653 | PyObject * _obj4 = 0; |
aa2a5b86 RD |
9654 | wxSize temp0; |
9655 | PyObject * _obj5 = 0; | |
9a74fcaf | 9656 | PyObject * _obj7 = 0; |
aa2a5b86 | 9657 | char *_kwnames[] = { "self","parent","id","bitmap","pos","size","style","name", NULL }; |
70551f47 RD |
9658 | |
9659 | self = self; | |
9a74fcaf | 9660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlO:wxStaticBitmap_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_obj7)) |
70551f47 | 9661 | return NULL; |
2d091820 RD |
9662 | if (_argo0) { |
9663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
9664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { |
9665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_Create. Expected _wxStaticBitmap_p."); | |
70551f47 RD |
9666 | return NULL; |
9667 | } | |
9668 | } | |
aa2a5b86 RD |
9669 | if (_argo1) { |
9670 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9671 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_Create. Expected _wxWindow_p."); | |
70551f47 RD |
9673 | return NULL; |
9674 | } | |
9675 | } | |
aa2a5b86 | 9676 | if (_argo3) { |
b67a9327 | 9677 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { |
aa2a5b86 RD |
9678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxStaticBitmap_Create. Expected _wxBitmap_p."); |
9679 | return NULL; | |
9680 | } | |
9681 | } | |
9682 | if (_obj4) | |
37f6a977 | 9683 | { |
aa2a5b86 RD |
9684 | _arg4 = &temp; |
9685 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 9686 | return NULL; |
37f6a977 | 9687 | } |
aa2a5b86 | 9688 | if (_obj5) |
37f6a977 | 9689 | { |
aa2a5b86 RD |
9690 | _arg5 = &temp0; |
9691 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 9692 | return NULL; |
9a74fcaf RD |
9693 | } |
9694 | if (_obj7) | |
9695 | { | |
9696 | _arg7 = wxString_in_helper(_obj7); | |
9697 | if (_arg7 == NULL) | |
9698 | return NULL; | |
37f6a977 | 9699 | } |
ab9bc19b | 9700 | { |
474c48f9 | 9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9702 | _result = (bool )wxStaticBitmap_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7); |
ab9bc19b | 9703 | |
474c48f9 | 9704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9705 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 9706 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
9707 | { |
9708 | if (_obj7) | |
9709 | delete _arg7; | |
9710 | } | |
70551f47 RD |
9711 | return _resultobj; |
9712 | } | |
9713 | ||
9714 | #define wxStaticBitmap_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
107e4716 | 9715 | static PyObject *_wrap_wxStaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9716 | PyObject * _resultobj; |
9717 | wxBitmap * _result; | |
9718 | wxStaticBitmap * _arg0; | |
2d091820 | 9719 | PyObject * _argo0 = 0; |
107e4716 | 9720 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9721 | char _ptemp[128]; |
9722 | ||
9723 | self = self; | |
107e4716 | 9724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBitmap_GetBitmap",_kwnames,&_argo0)) |
70551f47 | 9725 | return NULL; |
2d091820 RD |
9726 | if (_argo0) { |
9727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
9729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_GetBitmap. Expected _wxStaticBitmap_p."); |
9730 | return NULL; | |
9731 | } | |
9732 | } | |
ab9bc19b | 9733 | { |
474c48f9 | 9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9735 | _result = new wxBitmap (wxStaticBitmap_GetBitmap(_arg0)); |
ab9bc19b | 9736 | |
474c48f9 | 9737 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9738 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
9739 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
9740 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
9741 | return _resultobj; |
9742 | } | |
9743 | ||
9744 | #define wxStaticBitmap_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
107e4716 | 9745 | static PyObject *_wrap_wxStaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9746 | PyObject * _resultobj; |
9747 | wxStaticBitmap * _arg0; | |
9748 | wxBitmap * _arg1; | |
2d091820 RD |
9749 | PyObject * _argo0 = 0; |
9750 | PyObject * _argo1 = 0; | |
107e4716 | 9751 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
9752 | |
9753 | self = self; | |
107e4716 | 9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetBitmap",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9755 | return NULL; |
2d091820 RD |
9756 | if (_argo0) { |
9757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
70551f47 RD |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetBitmap. Expected _wxStaticBitmap_p."); |
9760 | return NULL; | |
9761 | } | |
9762 | } | |
2d091820 | 9763 | if (_argo1) { |
b67a9327 | 9764 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
70551f47 RD |
9765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetBitmap. Expected _wxBitmap_p."); |
9766 | return NULL; | |
9767 | } | |
9768 | } | |
ab9bc19b | 9769 | { |
474c48f9 | 9770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9771 | wxStaticBitmap_SetBitmap(_arg0,*_arg1); |
ab9bc19b | 9772 | |
474c48f9 | 9773 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9774 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9775 | } Py_INCREF(Py_None); |
70551f47 RD |
9776 | _resultobj = Py_None; |
9777 | return _resultobj; | |
9778 | } | |
9779 | ||
8bf5d46e | 9780 | #define wxStaticBitmap_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
107e4716 | 9781 | static PyObject *_wrap_wxStaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
9782 | PyObject * _resultobj; |
9783 | wxStaticBitmap * _arg0; | |
9784 | wxIcon * _arg1; | |
2d091820 RD |
9785 | PyObject * _argo0 = 0; |
9786 | PyObject * _argo1 = 0; | |
107e4716 | 9787 | char *_kwnames[] = { "self","icon", NULL }; |
8bf5d46e RD |
9788 | |
9789 | self = self; | |
107e4716 | 9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStaticBitmap_SetIcon",_kwnames,&_argo0,&_argo1)) |
8bf5d46e | 9791 | return NULL; |
2d091820 RD |
9792 | if (_argo0) { |
9793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStaticBitmap_p")) { | |
8bf5d46e RD |
9795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStaticBitmap_SetIcon. Expected _wxStaticBitmap_p."); |
9796 | return NULL; | |
9797 | } | |
9798 | } | |
2d091820 | 9799 | if (_argo1) { |
b67a9327 | 9800 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
8bf5d46e RD |
9801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStaticBitmap_SetIcon. Expected _wxIcon_p."); |
9802 | return NULL; | |
9803 | } | |
9804 | } | |
9805 | { | |
474c48f9 | 9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9807 | wxStaticBitmap_SetIcon(_arg0,*_arg1); |
8bf5d46e | 9808 | |
474c48f9 | 9809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9810 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9811 | } Py_INCREF(Py_None); |
9812 | _resultobj = Py_None; | |
9813 | return _resultobj; | |
9814 | } | |
9815 | ||
70551f47 RD |
9816 | static void *SwigwxRadioBoxTowxControl(void *ptr) { |
9817 | wxRadioBox *src; | |
9818 | wxControl *dest; | |
9819 | src = (wxRadioBox *) ptr; | |
9820 | dest = (wxControl *) src; | |
9821 | return (void *) dest; | |
9822 | } | |
9823 | ||
9824 | static void *SwigwxRadioBoxTowxWindow(void *ptr) { | |
9825 | wxRadioBox *src; | |
9826 | wxWindow *dest; | |
9827 | src = (wxRadioBox *) ptr; | |
9828 | dest = (wxWindow *) src; | |
9829 | return (void *) dest; | |
9830 | } | |
9831 | ||
9832 | static void *SwigwxRadioBoxTowxEvtHandler(void *ptr) { | |
9833 | wxRadioBox *src; | |
9834 | wxEvtHandler *dest; | |
9835 | src = (wxRadioBox *) ptr; | |
9836 | dest = (wxEvtHandler *) src; | |
9837 | return (void *) dest; | |
9838 | } | |
9839 | ||
9df61a29 RD |
9840 | static void *SwigwxRadioBoxTowxObject(void *ptr) { |
9841 | wxRadioBox *src; | |
9842 | wxObject *dest; | |
9843 | src = (wxRadioBox *) ptr; | |
9844 | dest = (wxObject *) src; | |
9845 | return (void *) dest; | |
9846 | } | |
9847 | ||
70551f47 | 9848 | #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 | 9849 | static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9850 | PyObject * _resultobj; |
9851 | wxRadioBox * _result; | |
9852 | wxWindow * _arg0; | |
9853 | wxWindowID _arg1; | |
9854 | wxString * _arg2; | |
b68dc582 RD |
9855 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9856 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
9857 | int _arg5 = (int ) 0; |
9858 | wxString * _arg6 = (wxString *) NULL; | |
9859 | int _arg7 = (int ) 0; | |
9860 | long _arg8 = (long ) wxRA_HORIZONTAL; | |
b68dc582 | 9861 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 9862 | wxString * _arg10 = (wxString *) &wxPyRadioBoxNameStr; |
2d091820 | 9863 | PyObject * _argo0 = 0; |
70551f47 | 9864 | PyObject * _obj2 = 0; |
37f6a977 RD |
9865 | wxPoint temp; |
9866 | PyObject * _obj3 = 0; | |
9867 | wxSize temp0; | |
9868 | PyObject * _obj4 = 0; | |
70551f47 | 9869 | PyObject * _obj6 = 0; |
2d091820 | 9870 | PyObject * _argo9 = 0; |
9a74fcaf | 9871 | PyObject * _obj10 = 0; |
e02c03a4 | 9872 | char *_kwnames[] = { "parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
70551f47 RD |
9873 | char _ptemp[128]; |
9874 | ||
9875 | self = self; | |
9a74fcaf | 9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOOilOO:new_wxRadioBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_obj6,&_arg7,&_arg8,&_argo9,&_obj10)) |
70551f47 | 9877 | return NULL; |
2d091820 RD |
9878 | if (_argo0) { |
9879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioBox. Expected _wxWindow_p."); |
9882 | return NULL; | |
9883 | } | |
9884 | } | |
9885 | { | |
c8bc7bb8 RD |
9886 | _arg2 = wxString_in_helper(_obj2); |
9887 | if (_arg2 == NULL) | |
70551f47 | 9888 | return NULL; |
70551f47 | 9889 | } |
37f6a977 RD |
9890 | if (_obj3) |
9891 | { | |
9892 | _arg3 = &temp; | |
9893 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 9894 | return NULL; |
37f6a977 RD |
9895 | } |
9896 | if (_obj4) | |
9897 | { | |
9898 | _arg4 = &temp0; | |
9899 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 9900 | return NULL; |
37f6a977 | 9901 | } |
70551f47 RD |
9902 | if (_obj6) |
9903 | { | |
9904 | _arg6 = wxString_LIST_helper(_obj6); | |
9905 | if (_arg6 == NULL) { | |
9906 | return NULL; | |
9907 | } | |
9908 | } | |
2d091820 | 9909 | if (_argo9) { |
b67a9327 | 9910 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { |
70551f47 RD |
9911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of new_wxRadioBox. Expected _wxValidator_p."); |
9912 | return NULL; | |
9913 | } | |
9914 | } | |
9a74fcaf RD |
9915 | if (_obj10) |
9916 | { | |
9917 | _arg10 = wxString_in_helper(_obj10); | |
9918 | if (_arg10 == NULL) | |
9919 | return NULL; | |
9920 | } | |
70551f47 | 9921 | { |
ab9bc19b RD |
9922 | if (_obj6) { |
9923 | _arg5 = PyList_Size(_obj6); | |
9924 | } | |
9925 | else { | |
9926 | _arg5 = 0; | |
9927 | } | |
70551f47 | 9928 | } |
ab9bc19b | 9929 | { |
474c48f9 | 9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 9931 | _result = (wxRadioBox *)new_wxRadioBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9,*_arg10); |
ab9bc19b | 9932 | |
474c48f9 | 9933 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9934 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9935 | } if (_result) { |
9936 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9937 | _resultobj = Py_BuildValue("s",_ptemp); | |
9938 | } else { | |
9939 | Py_INCREF(Py_None); | |
9940 | _resultobj = Py_None; | |
9941 | } | |
70551f47 RD |
9942 | { |
9943 | if (_obj2) | |
9944 | delete _arg2; | |
9945 | } | |
9946 | { | |
9947 | delete [] _arg6; | |
9a74fcaf RD |
9948 | } |
9949 | { | |
9950 | if (_obj10) | |
9951 | delete _arg10; | |
70551f47 RD |
9952 | } |
9953 | return _resultobj; | |
9954 | } | |
9955 | ||
aa2a5b86 RD |
9956 | #define new_wxPreRadioBox() (new wxRadioBox()) |
9957 | static PyObject *_wrap_new_wxPreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9958 | PyObject * _resultobj; | |
9959 | wxRadioBox * _result; | |
9960 | char *_kwnames[] = { NULL }; | |
9961 | char _ptemp[128]; | |
9962 | ||
9963 | self = self; | |
9964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioBox",_kwnames)) | |
9965 | return NULL; | |
9966 | { | |
474c48f9 | 9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9968 | _result = (wxRadioBox *)new_wxPreRadioBox(); |
aa2a5b86 | 9969 | |
474c48f9 | 9970 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
9971 | if (PyErr_Occurred()) return NULL; |
9972 | } if (_result) { | |
9973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioBox_p"); | |
9974 | _resultobj = Py_BuildValue("s",_ptemp); | |
9975 | } else { | |
9976 | Py_INCREF(Py_None); | |
9977 | _resultobj = Py_None; | |
9978 | } | |
9979 | return _resultobj; | |
9980 | } | |
9981 | ||
9982 | #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)) | |
9983 | static PyObject *_wrap_wxRadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject * _resultobj; | |
9985 | bool _result; | |
9986 | wxRadioBox * _arg0; | |
9987 | wxWindow * _arg1; | |
9988 | wxWindowID _arg2; | |
9989 | wxString * _arg3; | |
9990 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9991 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9992 | int _arg6 = (int ) 0; | |
9993 | wxString * _arg7 = (wxString *) NULL; | |
9994 | int _arg8 = (int ) 0; | |
9995 | long _arg9 = (long ) wxRA_HORIZONTAL; | |
9996 | wxValidator * _arg10 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 9997 | wxString * _arg11 = (wxString *) &wxPyRadioBoxNameStr; |
aa2a5b86 RD |
9998 | PyObject * _argo0 = 0; |
9999 | PyObject * _argo1 = 0; | |
10000 | PyObject * _obj3 = 0; | |
10001 | wxPoint temp; | |
10002 | PyObject * _obj4 = 0; | |
10003 | wxSize temp0; | |
10004 | PyObject * _obj5 = 0; | |
10005 | PyObject * _obj7 = 0; | |
10006 | PyObject * _argo10 = 0; | |
9a74fcaf | 10007 | PyObject * _obj11 = 0; |
aa2a5b86 RD |
10008 | char *_kwnames[] = { "self","parent","id","label","point","size","choices","majorDimension","style","validator","name", NULL }; |
10009 | ||
10010 | self = self; | |
9a74fcaf | 10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOOilOO:wxRadioBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_obj7,&_arg8,&_arg9,&_argo10,&_obj11)) |
aa2a5b86 RD |
10012 | return NULL; |
10013 | if (_argo0) { | |
10014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
10016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Create. Expected _wxRadioBox_p."); | |
10017 | return NULL; | |
10018 | } | |
10019 | } | |
10020 | if (_argo1) { | |
10021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioBox_Create. Expected _wxWindow_p."); | |
10024 | return NULL; | |
10025 | } | |
10026 | } | |
10027 | { | |
c8bc7bb8 RD |
10028 | _arg3 = wxString_in_helper(_obj3); |
10029 | if (_arg3 == NULL) | |
aa2a5b86 | 10030 | return NULL; |
aa2a5b86 RD |
10031 | } |
10032 | if (_obj4) | |
10033 | { | |
10034 | _arg4 = &temp; | |
10035 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10036 | return NULL; | |
10037 | } | |
10038 | if (_obj5) | |
10039 | { | |
10040 | _arg5 = &temp0; | |
10041 | if (! wxSize_helper(_obj5, &_arg5)) | |
10042 | return NULL; | |
10043 | } | |
10044 | if (_obj7) | |
10045 | { | |
10046 | _arg7 = wxString_LIST_helper(_obj7); | |
10047 | if (_arg7 == NULL) { | |
10048 | return NULL; | |
10049 | } | |
10050 | } | |
10051 | if (_argo10) { | |
b67a9327 | 10052 | if (SWIG_GetPtrObj(_argo10,(void **) &_arg10,"_wxValidator_p")) { |
aa2a5b86 RD |
10053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 11 of wxRadioBox_Create. Expected _wxValidator_p."); |
10054 | return NULL; | |
10055 | } | |
10056 | } | |
9a74fcaf RD |
10057 | if (_obj11) |
10058 | { | |
10059 | _arg11 = wxString_in_helper(_obj11); | |
10060 | if (_arg11 == NULL) | |
10061 | return NULL; | |
10062 | } | |
aa2a5b86 RD |
10063 | { |
10064 | if (_obj7) { | |
10065 | _arg6 = PyList_Size(_obj7); | |
10066 | } | |
10067 | else { | |
10068 | _arg6 = 0; | |
10069 | } | |
10070 | } | |
10071 | { | |
474c48f9 | 10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10073 | _result = (bool )wxRadioBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10,*_arg11); |
aa2a5b86 | 10074 | |
474c48f9 | 10075 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10076 | if (PyErr_Occurred()) return NULL; |
10077 | } _resultobj = Py_BuildValue("i",_result); | |
10078 | { | |
10079 | if (_obj3) | |
10080 | delete _arg3; | |
10081 | } | |
10082 | { | |
10083 | delete [] _arg7; | |
9a74fcaf RD |
10084 | } |
10085 | { | |
10086 | if (_obj11) | |
10087 | delete _arg11; | |
aa2a5b86 RD |
10088 | } |
10089 | return _resultobj; | |
10090 | } | |
10091 | ||
c3c1cebe | 10092 | #define wxRadioBox_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
107e4716 | 10093 | static PyObject *_wrap_wxRadioBox_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10094 | PyObject * _resultobj; |
10095 | wxRadioBox * _arg0; | |
10096 | bool _arg1; | |
2d091820 | 10097 | PyObject * _argo0 = 0; |
70551f47 | 10098 | int tempbool1; |
107e4716 | 10099 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
10100 | |
10101 | self = self; | |
107e4716 | 10102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 10103 | return NULL; |
2d091820 RD |
10104 | if (_argo0) { |
10105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 10107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Enable. Expected _wxRadioBox_p."); |
70551f47 RD |
10108 | return NULL; |
10109 | } | |
10110 | } | |
10111 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 10112 | { |
474c48f9 | 10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10114 | wxRadioBox_Enable(_arg0,_arg1); |
ab9bc19b | 10115 | |
474c48f9 | 10116 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10117 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10118 | } Py_INCREF(Py_None); |
70551f47 RD |
10119 | _resultobj = Py_None; |
10120 | return _resultobj; | |
10121 | } | |
10122 | ||
c3c1cebe | 10123 | #define wxRadioBox_EnableItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
107e4716 | 10124 | static PyObject *_wrap_wxRadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10125 | PyObject * _resultobj; |
10126 | wxRadioBox * _arg0; | |
10127 | int _arg1; | |
10128 | bool _arg2; | |
2d091820 | 10129 | PyObject * _argo0 = 0; |
70551f47 | 10130 | int tempbool2; |
107e4716 | 10131 | char *_kwnames[] = { "self","n","enable", NULL }; |
70551f47 RD |
10132 | |
10133 | self = self; | |
107e4716 | 10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_EnableItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 10135 | return NULL; |
2d091820 RD |
10136 | if (_argo0) { |
10137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
c3c1cebe | 10139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_EnableItem. Expected _wxRadioBox_p."); |
70551f47 RD |
10140 | return NULL; |
10141 | } | |
10142 | } | |
10143 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 10144 | { |
474c48f9 | 10145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10146 | wxRadioBox_EnableItem(_arg0,_arg1,_arg2); |
ab9bc19b | 10147 | |
474c48f9 | 10148 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10149 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10150 | } Py_INCREF(Py_None); |
70551f47 RD |
10151 | _resultobj = Py_None; |
10152 | return _resultobj; | |
10153 | } | |
10154 | ||
10155 | #define wxRadioBox_FindString(_swigobj,_swigarg0) (_swigobj->FindString(_swigarg0)) | |
107e4716 | 10156 | static PyObject *_wrap_wxRadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10157 | PyObject * _resultobj; |
10158 | int _result; | |
10159 | wxRadioBox * _arg0; | |
10160 | wxString * _arg1; | |
2d091820 | 10161 | PyObject * _argo0 = 0; |
70551f47 | 10162 | PyObject * _obj1 = 0; |
107e4716 | 10163 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
10164 | |
10165 | self = self; | |
107e4716 | 10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_FindString",_kwnames,&_argo0,&_obj1)) |
70551f47 | 10167 | return NULL; |
2d091820 RD |
10168 | if (_argo0) { |
10169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
10171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_FindString. Expected _wxRadioBox_p."); |
10172 | return NULL; | |
10173 | } | |
10174 | } | |
10175 | { | |
c8bc7bb8 RD |
10176 | _arg1 = wxString_in_helper(_obj1); |
10177 | if (_arg1 == NULL) | |
70551f47 | 10178 | return NULL; |
70551f47 | 10179 | } |
ab9bc19b | 10180 | { |
474c48f9 | 10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10182 | _result = (int )wxRadioBox_FindString(_arg0,*_arg1); |
ab9bc19b | 10183 | |
474c48f9 | 10184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10185 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10186 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10187 | { |
10188 | if (_obj1) | |
10189 | delete _arg1; | |
10190 | } | |
10191 | return _resultobj; | |
10192 | } | |
10193 | ||
2c8a649d RD |
10194 | #define wxRadioBox_GetString(_swigobj,_swigarg0) (_swigobj->GetString(_swigarg0)) |
10195 | static PyObject *_wrap_wxRadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
10196 | PyObject * _resultobj; |
10197 | wxString * _result; | |
10198 | wxRadioBox * _arg0; | |
10199 | int _arg1; | |
2d091820 | 10200 | PyObject * _argo0 = 0; |
107e4716 | 10201 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
10202 | |
10203 | self = self; | |
2c8a649d | 10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_GetString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10205 | return NULL; |
2d091820 RD |
10206 | if (_argo0) { |
10207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 10209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetString. Expected _wxRadioBox_p."); |
70551f47 RD |
10210 | return NULL; |
10211 | } | |
10212 | } | |
70551f47 | 10213 | { |
474c48f9 | 10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10215 | _result = new wxString (wxRadioBox_GetString(_arg0,_arg1)); |
ab9bc19b | 10216 | |
474c48f9 | 10217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10218 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10219 | }{ |
c8bc7bb8 | 10220 | #if wxUSE_UNICODE |
b67a9327 | 10221 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10222 | #else |
2c8a649d | 10223 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10224 | #endif |
2c8a649d RD |
10225 | } |
10226 | { | |
10227 | delete _result; | |
10228 | } | |
70551f47 RD |
10229 | return _resultobj; |
10230 | } | |
10231 | ||
b67a9327 RD |
10232 | #define wxRadioBox_SetString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetString(_swigarg0,_swigarg1)) |
10233 | static PyObject *_wrap_wxRadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 10234 | PyObject * _resultobj; |
70551f47 RD |
10235 | wxRadioBox * _arg0; |
10236 | int _arg1; | |
2c8a649d | 10237 | wxString * _arg2; |
2d091820 | 10238 | PyObject * _argo0 = 0; |
2c8a649d | 10239 | PyObject * _obj2 = 0; |
b67a9327 | 10240 | char *_kwnames[] = { "self","n","label", NULL }; |
70551f47 RD |
10241 | |
10242 | self = self; | |
b67a9327 | 10243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxRadioBox_SetString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 10244 | return NULL; |
2d091820 RD |
10245 | if (_argo0) { |
10246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
b67a9327 | 10248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetString. Expected _wxRadioBox_p."); |
70551f47 RD |
10249 | return NULL; |
10250 | } | |
10251 | } | |
2c8a649d | 10252 | { |
c8bc7bb8 RD |
10253 | _arg2 = wxString_in_helper(_obj2); |
10254 | if (_arg2 == NULL) | |
2c8a649d | 10255 | return NULL; |
2c8a649d | 10256 | } |
70551f47 | 10257 | { |
474c48f9 | 10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b67a9327 | 10259 | wxRadioBox_SetString(_arg0,_arg1,*_arg2); |
ab9bc19b | 10260 | |
474c48f9 | 10261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10262 | if (PyErr_Occurred()) return NULL; |
2c8a649d RD |
10263 | } Py_INCREF(Py_None); |
10264 | _resultobj = Py_None; | |
70551f47 | 10265 | { |
2c8a649d RD |
10266 | if (_obj2) |
10267 | delete _arg2; | |
70551f47 RD |
10268 | } |
10269 | return _resultobj; | |
10270 | } | |
10271 | ||
2c8a649d RD |
10272 | #define wxRadioBox_GetSelection(_swigobj) (_swigobj->GetSelection()) |
10273 | static PyObject *_wrap_wxRadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 10274 | PyObject * _resultobj; |
2c8a649d | 10275 | int _result; |
70551f47 | 10276 | wxRadioBox * _arg0; |
2d091820 | 10277 | PyObject * _argo0 = 0; |
107e4716 | 10278 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10279 | |
10280 | self = self; | |
2c8a649d | 10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetSelection",_kwnames,&_argo0)) |
70551f47 | 10282 | return NULL; |
2d091820 RD |
10283 | if (_argo0) { |
10284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 10286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
10287 | return NULL; |
10288 | } | |
10289 | } | |
70551f47 | 10290 | { |
474c48f9 | 10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10292 | _result = (int )wxRadioBox_GetSelection(_arg0); |
ab9bc19b | 10293 | |
474c48f9 | 10294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10295 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 10296 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10297 | return _resultobj; |
10298 | } | |
10299 | ||
2c8a649d RD |
10300 | #define wxRadioBox_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) |
10301 | static PyObject *_wrap_wxRadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 10302 | PyObject * _resultobj; |
2c8a649d | 10303 | wxString * _result; |
70551f47 | 10304 | wxRadioBox * _arg0; |
2d091820 | 10305 | PyObject * _argo0 = 0; |
107e4716 | 10306 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10307 | |
10308 | self = self; | |
2c8a649d | 10309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 10310 | return NULL; |
2d091820 RD |
10311 | if (_argo0) { |
10312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 10314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetStringSelection. Expected _wxRadioBox_p."); |
70551f47 RD |
10315 | return NULL; |
10316 | } | |
10317 | } | |
ab9bc19b | 10318 | { |
474c48f9 | 10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10320 | _result = new wxString (wxRadioBox_GetStringSelection(_arg0)); |
ab9bc19b | 10321 | |
474c48f9 | 10322 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10323 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 10324 | }{ |
c8bc7bb8 | 10325 | #if wxUSE_UNICODE |
b67a9327 | 10326 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10327 | #else |
2c8a649d | 10328 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10329 | #endif |
2c8a649d RD |
10330 | } |
10331 | { | |
10332 | delete _result; | |
10333 | } | |
70551f47 RD |
10334 | return _resultobj; |
10335 | } | |
10336 | ||
2c8a649d RD |
10337 | #define wxRadioBox_GetCount(_swigobj) (_swigobj->GetCount()) |
10338 | static PyObject *_wrap_wxRadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 10339 | PyObject * _resultobj; |
2c8a649d | 10340 | int _result; |
70551f47 | 10341 | wxRadioBox * _arg0; |
2d091820 | 10342 | PyObject * _argo0 = 0; |
2c8a649d | 10343 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10344 | |
10345 | self = self; | |
2c8a649d | 10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioBox_GetCount",_kwnames,&_argo0)) |
70551f47 | 10347 | return NULL; |
2d091820 RD |
10348 | if (_argo0) { |
10349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
2c8a649d | 10351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_GetCount. Expected _wxRadioBox_p."); |
70551f47 RD |
10352 | return NULL; |
10353 | } | |
10354 | } | |
ab9bc19b | 10355 | { |
474c48f9 | 10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10357 | _result = (int )wxRadioBox_GetCount(_arg0); |
ab9bc19b | 10358 | |
474c48f9 | 10359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10360 | if (PyErr_Occurred()) return NULL; |
2c8a649d | 10361 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10362 | return _resultobj; |
10363 | } | |
10364 | ||
10365 | #define wxRadioBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 10366 | static PyObject *_wrap_wxRadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10367 | PyObject * _resultobj; |
10368 | wxRadioBox * _arg0; | |
10369 | int _arg1; | |
2d091820 | 10370 | PyObject * _argo0 = 0; |
107e4716 | 10371 | char *_kwnames[] = { "self","n", NULL }; |
70551f47 RD |
10372 | |
10373 | self = self; | |
107e4716 | 10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 10375 | return NULL; |
2d091820 RD |
10376 | if (_argo0) { |
10377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
10379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetSelection. Expected _wxRadioBox_p."); |
10380 | return NULL; | |
10381 | } | |
10382 | } | |
ab9bc19b | 10383 | { |
474c48f9 | 10384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10385 | wxRadioBox_SetSelection(_arg0,_arg1); |
ab9bc19b | 10386 | |
474c48f9 | 10387 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10388 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10389 | } Py_INCREF(Py_None); |
70551f47 RD |
10390 | _resultobj = Py_None; |
10391 | return _resultobj; | |
10392 | } | |
10393 | ||
10394 | #define wxRadioBox_SetStringSelection(_swigobj,_swigarg0) (_swigobj->SetStringSelection(_swigarg0)) | |
107e4716 | 10395 | static PyObject *_wrap_wxRadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10396 | PyObject * _resultobj; |
10397 | wxRadioBox * _arg0; | |
10398 | wxString * _arg1; | |
2d091820 | 10399 | PyObject * _argo0 = 0; |
70551f47 | 10400 | PyObject * _obj1 = 0; |
107e4716 | 10401 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
10402 | |
10403 | self = self; | |
107e4716 | 10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRadioBox_SetStringSelection",_kwnames,&_argo0,&_obj1)) |
70551f47 | 10405 | return NULL; |
2d091820 RD |
10406 | if (_argo0) { |
10407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
10409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_SetStringSelection. Expected _wxRadioBox_p."); |
10410 | return NULL; | |
10411 | } | |
10412 | } | |
10413 | { | |
c8bc7bb8 RD |
10414 | _arg1 = wxString_in_helper(_obj1); |
10415 | if (_arg1 == NULL) | |
2cd2fac8 | 10416 | return NULL; |
70551f47 | 10417 | } |
ab9bc19b | 10418 | { |
474c48f9 | 10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10420 | wxRadioBox_SetStringSelection(_arg0,*_arg1); |
ab9bc19b | 10421 | |
474c48f9 | 10422 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10423 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10424 | } Py_INCREF(Py_None); |
70551f47 RD |
10425 | _resultobj = Py_None; |
10426 | { | |
10427 | if (_obj1) | |
10428 | delete _arg1; | |
10429 | } | |
10430 | return _resultobj; | |
10431 | } | |
10432 | ||
10433 | #define wxRadioBox_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 10434 | static PyObject *_wrap_wxRadioBox_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10435 | PyObject * _resultobj; |
10436 | wxRadioBox * _arg0; | |
10437 | bool _arg1; | |
2d091820 | 10438 | PyObject * _argo0 = 0; |
70551f47 | 10439 | int tempbool1; |
107e4716 | 10440 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
10441 | |
10442 | self = self; | |
107e4716 | 10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioBox_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 10444 | return NULL; |
2d091820 RD |
10445 | if (_argo0) { |
10446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
10448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_Show. Expected _wxRadioBox_p."); |
10449 | return NULL; | |
10450 | } | |
10451 | } | |
10452 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 10453 | { |
474c48f9 | 10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10455 | wxRadioBox_Show(_arg0,_arg1); |
ab9bc19b | 10456 | |
474c48f9 | 10457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10458 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10459 | } Py_INCREF(Py_None); |
70551f47 RD |
10460 | _resultobj = Py_None; |
10461 | return _resultobj; | |
10462 | } | |
10463 | ||
10464 | #define wxRadioBox_ShowItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Show(_swigarg0,_swigarg1)) | |
107e4716 | 10465 | static PyObject *_wrap_wxRadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10466 | PyObject * _resultobj; |
10467 | wxRadioBox * _arg0; | |
10468 | int _arg1; | |
10469 | bool _arg2; | |
2d091820 | 10470 | PyObject * _argo0 = 0; |
70551f47 | 10471 | int tempbool2; |
107e4716 | 10472 | char *_kwnames[] = { "self","item","show", NULL }; |
70551f47 RD |
10473 | |
10474 | self = self; | |
107e4716 | 10475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRadioBox_ShowItem",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 10476 | return NULL; |
2d091820 RD |
10477 | if (_argo0) { |
10478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioBox_p")) { | |
70551f47 RD |
10480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioBox_ShowItem. Expected _wxRadioBox_p."); |
10481 | return NULL; | |
10482 | } | |
10483 | } | |
10484 | _arg2 = (bool ) tempbool2; | |
ab9bc19b | 10485 | { |
474c48f9 | 10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10487 | wxRadioBox_ShowItem(_arg0,_arg1,_arg2); |
ab9bc19b | 10488 | |
474c48f9 | 10489 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10490 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10491 | } Py_INCREF(Py_None); |
70551f47 RD |
10492 | _resultobj = Py_None; |
10493 | return _resultobj; | |
10494 | } | |
10495 | ||
10496 | static void *SwigwxRadioButtonTowxControl(void *ptr) { | |
10497 | wxRadioButton *src; | |
10498 | wxControl *dest; | |
10499 | src = (wxRadioButton *) ptr; | |
10500 | dest = (wxControl *) src; | |
10501 | return (void *) dest; | |
10502 | } | |
10503 | ||
10504 | static void *SwigwxRadioButtonTowxWindow(void *ptr) { | |
10505 | wxRadioButton *src; | |
10506 | wxWindow *dest; | |
10507 | src = (wxRadioButton *) ptr; | |
10508 | dest = (wxWindow *) src; | |
10509 | return (void *) dest; | |
10510 | } | |
10511 | ||
10512 | static void *SwigwxRadioButtonTowxEvtHandler(void *ptr) { | |
10513 | wxRadioButton *src; | |
10514 | wxEvtHandler *dest; | |
10515 | src = (wxRadioButton *) ptr; | |
10516 | dest = (wxEvtHandler *) src; | |
10517 | return (void *) dest; | |
10518 | } | |
10519 | ||
9df61a29 RD |
10520 | static void *SwigwxRadioButtonTowxObject(void *ptr) { |
10521 | wxRadioButton *src; | |
10522 | wxObject *dest; | |
10523 | src = (wxRadioButton *) ptr; | |
10524 | dest = (wxObject *) src; | |
10525 | return (void *) dest; | |
10526 | } | |
10527 | ||
70551f47 | 10528 | #define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 10529 | static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10530 | PyObject * _resultobj; |
10531 | wxRadioButton * _result; | |
10532 | wxWindow * _arg0; | |
10533 | wxWindowID _arg1; | |
10534 | wxString * _arg2; | |
b68dc582 RD |
10535 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10536 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2d091820 | 10537 | long _arg5 = (long ) 0; |
b68dc582 | 10538 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 10539 | wxString * _arg7 = (wxString *) &wxPyRadioButtonNameStr; |
2d091820 | 10540 | PyObject * _argo0 = 0; |
70551f47 | 10541 | PyObject * _obj2 = 0; |
37f6a977 RD |
10542 | wxPoint temp; |
10543 | PyObject * _obj3 = 0; | |
10544 | wxSize temp0; | |
10545 | PyObject * _obj4 = 0; | |
2d091820 | 10546 | PyObject * _argo6 = 0; |
9a74fcaf | 10547 | PyObject * _obj7 = 0; |
107e4716 | 10548 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
70551f47 RD |
10549 | char _ptemp[128]; |
10550 | ||
10551 | self = self; | |
9a74fcaf | 10552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxRadioButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
70551f47 | 10553 | return NULL; |
2d091820 RD |
10554 | if (_argo0) { |
10555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
10557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRadioButton. Expected _wxWindow_p."); |
10558 | return NULL; | |
10559 | } | |
10560 | } | |
10561 | { | |
c8bc7bb8 RD |
10562 | _arg2 = wxString_in_helper(_obj2); |
10563 | if (_arg2 == NULL) | |
2cd2fac8 | 10564 | return NULL; |
70551f47 | 10565 | } |
37f6a977 RD |
10566 | if (_obj3) |
10567 | { | |
aa2a5b86 RD |
10568 | _arg3 = &temp; |
10569 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10570 | return NULL; | |
10571 | } | |
10572 | if (_obj4) | |
10573 | { | |
10574 | _arg4 = &temp0; | |
10575 | if (! wxSize_helper(_obj4, &_arg4)) | |
10576 | return NULL; | |
10577 | } | |
10578 | if (_argo6) { | |
b67a9327 | 10579 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
10580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxRadioButton. Expected _wxValidator_p."); |
10581 | return NULL; | |
10582 | } | |
10583 | } | |
9a74fcaf RD |
10584 | if (_obj7) |
10585 | { | |
10586 | _arg7 = wxString_in_helper(_obj7); | |
10587 | if (_arg7 == NULL) | |
10588 | return NULL; | |
10589 | } | |
aa2a5b86 | 10590 | { |
474c48f9 | 10591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10592 | _result = (wxRadioButton *)new_wxRadioButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 10593 | |
474c48f9 | 10594 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10595 | if (PyErr_Occurred()) return NULL; |
10596 | } if (_result) { | |
10597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10598 | _resultobj = Py_BuildValue("s",_ptemp); | |
10599 | } else { | |
10600 | Py_INCREF(Py_None); | |
10601 | _resultobj = Py_None; | |
10602 | } | |
10603 | { | |
10604 | if (_obj2) | |
10605 | delete _arg2; | |
9a74fcaf RD |
10606 | } |
10607 | { | |
10608 | if (_obj7) | |
10609 | delete _arg7; | |
aa2a5b86 RD |
10610 | } |
10611 | return _resultobj; | |
10612 | } | |
10613 | ||
10614 | #define new_wxPreRadioButton() (new wxRadioButton()) | |
10615 | static PyObject *_wrap_new_wxPreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject * _resultobj; | |
10617 | wxRadioButton * _result; | |
10618 | char *_kwnames[] = { NULL }; | |
10619 | char _ptemp[128]; | |
10620 | ||
10621 | self = self; | |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreRadioButton",_kwnames)) | |
10623 | return NULL; | |
10624 | { | |
474c48f9 | 10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10626 | _result = (wxRadioButton *)new_wxPreRadioButton(); |
aa2a5b86 | 10627 | |
474c48f9 | 10628 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10629 | if (PyErr_Occurred()) return NULL; |
10630 | } if (_result) { | |
10631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRadioButton_p"); | |
10632 | _resultobj = Py_BuildValue("s",_ptemp); | |
10633 | } else { | |
10634 | Py_INCREF(Py_None); | |
10635 | _resultobj = Py_None; | |
10636 | } | |
10637 | return _resultobj; | |
10638 | } | |
10639 | ||
10640 | #define wxRadioButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
10641 | static PyObject *_wrap_wxRadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10642 | PyObject * _resultobj; | |
10643 | bool _result; | |
10644 | wxRadioButton * _arg0; | |
10645 | wxWindow * _arg1; | |
10646 | wxWindowID _arg2; | |
10647 | wxString * _arg3; | |
10648 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
10649 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10650 | long _arg6 = (long ) 0; | |
10651 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 10652 | wxString * _arg8 = (wxString *) &wxPyRadioButtonNameStr; |
aa2a5b86 RD |
10653 | PyObject * _argo0 = 0; |
10654 | PyObject * _argo1 = 0; | |
10655 | PyObject * _obj3 = 0; | |
10656 | wxPoint temp; | |
10657 | PyObject * _obj4 = 0; | |
10658 | wxSize temp0; | |
10659 | PyObject * _obj5 = 0; | |
10660 | PyObject * _argo7 = 0; | |
9a74fcaf | 10661 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
10662 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
10663 | ||
10664 | self = self; | |
9a74fcaf | 10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxRadioButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
10666 | return NULL; |
10667 | if (_argo0) { | |
10668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
10670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_Create. Expected _wxRadioButton_p."); | |
10671 | return NULL; | |
10672 | } | |
10673 | } | |
10674 | if (_argo1) { | |
10675 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10676 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRadioButton_Create. Expected _wxWindow_p."); | |
10678 | return NULL; | |
10679 | } | |
10680 | } | |
10681 | { | |
c8bc7bb8 RD |
10682 | _arg3 = wxString_in_helper(_obj3); |
10683 | if (_arg3 == NULL) | |
aa2a5b86 | 10684 | return NULL; |
aa2a5b86 RD |
10685 | } |
10686 | if (_obj4) | |
10687 | { | |
10688 | _arg4 = &temp; | |
10689 | if (! wxPoint_helper(_obj4, &_arg4)) | |
70551f47 | 10690 | return NULL; |
37f6a977 | 10691 | } |
aa2a5b86 | 10692 | if (_obj5) |
37f6a977 | 10693 | { |
aa2a5b86 RD |
10694 | _arg5 = &temp0; |
10695 | if (! wxSize_helper(_obj5, &_arg5)) | |
70551f47 | 10696 | return NULL; |
37f6a977 | 10697 | } |
aa2a5b86 | 10698 | if (_argo7) { |
b67a9327 | 10699 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 | 10700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxRadioButton_Create. Expected _wxValidator_p."); |
70551f47 RD |
10701 | return NULL; |
10702 | } | |
10703 | } | |
9a74fcaf RD |
10704 | if (_obj8) |
10705 | { | |
10706 | _arg8 = wxString_in_helper(_obj8); | |
10707 | if (_arg8 == NULL) | |
10708 | return NULL; | |
10709 | } | |
ab9bc19b | 10710 | { |
474c48f9 | 10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10712 | _result = (bool )wxRadioButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b | 10713 | |
474c48f9 | 10714 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10715 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 10716 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 | 10717 | { |
aa2a5b86 RD |
10718 | if (_obj3) |
10719 | delete _arg3; | |
9a74fcaf RD |
10720 | } |
10721 | { | |
10722 | if (_obj8) | |
10723 | delete _arg8; | |
70551f47 RD |
10724 | } |
10725 | return _resultobj; | |
10726 | } | |
10727 | ||
10728 | #define wxRadioButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 10729 | static PyObject *_wrap_wxRadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10730 | PyObject * _resultobj; |
10731 | bool _result; | |
10732 | wxRadioButton * _arg0; | |
2d091820 | 10733 | PyObject * _argo0 = 0; |
107e4716 | 10734 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
10735 | |
10736 | self = self; | |
107e4716 | 10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRadioButton_GetValue",_kwnames,&_argo0)) |
70551f47 | 10738 | return NULL; |
2d091820 RD |
10739 | if (_argo0) { |
10740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
10742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_GetValue. Expected _wxRadioButton_p."); |
10743 | return NULL; | |
10744 | } | |
10745 | } | |
ab9bc19b | 10746 | { |
474c48f9 | 10747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10748 | _result = (bool )wxRadioButton_GetValue(_arg0); |
ab9bc19b | 10749 | |
474c48f9 | 10750 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10751 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10752 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
10753 | return _resultobj; |
10754 | } | |
10755 | ||
10756 | #define wxRadioButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 10757 | static PyObject *_wrap_wxRadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10758 | PyObject * _resultobj; |
10759 | wxRadioButton * _arg0; | |
10760 | bool _arg1; | |
2d091820 | 10761 | PyObject * _argo0 = 0; |
70551f47 | 10762 | int tempbool1; |
107e4716 | 10763 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
10764 | |
10765 | self = self; | |
107e4716 | 10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRadioButton_SetValue",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 10767 | return NULL; |
2d091820 RD |
10768 | if (_argo0) { |
10769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRadioButton_p")) { | |
70551f47 RD |
10771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRadioButton_SetValue. Expected _wxRadioButton_p."); |
10772 | return NULL; | |
10773 | } | |
10774 | } | |
10775 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 10776 | { |
474c48f9 | 10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10778 | wxRadioButton_SetValue(_arg0,_arg1); |
ab9bc19b | 10779 | |
474c48f9 | 10780 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10781 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10782 | } Py_INCREF(Py_None); |
70551f47 RD |
10783 | _resultobj = Py_None; |
10784 | return _resultobj; | |
10785 | } | |
10786 | ||
10787 | static void *SwigwxSliderTowxControl(void *ptr) { | |
10788 | wxSlider *src; | |
10789 | wxControl *dest; | |
10790 | src = (wxSlider *) ptr; | |
10791 | dest = (wxControl *) src; | |
10792 | return (void *) dest; | |
10793 | } | |
10794 | ||
10795 | static void *SwigwxSliderTowxWindow(void *ptr) { | |
10796 | wxSlider *src; | |
10797 | wxWindow *dest; | |
10798 | src = (wxSlider *) ptr; | |
10799 | dest = (wxWindow *) src; | |
10800 | return (void *) dest; | |
10801 | } | |
10802 | ||
10803 | static void *SwigwxSliderTowxEvtHandler(void *ptr) { | |
10804 | wxSlider *src; | |
10805 | wxEvtHandler *dest; | |
10806 | src = (wxSlider *) ptr; | |
10807 | dest = (wxEvtHandler *) src; | |
10808 | return (void *) dest; | |
10809 | } | |
10810 | ||
9df61a29 RD |
10811 | static void *SwigwxSliderTowxObject(void *ptr) { |
10812 | wxSlider *src; | |
10813 | wxObject *dest; | |
10814 | src = (wxSlider *) ptr; | |
10815 | dest = (wxObject *) src; | |
10816 | return (void *) dest; | |
10817 | } | |
10818 | ||
70551f47 | 10819 | #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 | 10820 | static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
10821 | PyObject * _resultobj; |
10822 | wxSlider * _result; | |
10823 | wxWindow * _arg0; | |
10824 | wxWindowID _arg1; | |
10825 | int _arg2; | |
10826 | int _arg3; | |
10827 | int _arg4; | |
b68dc582 RD |
10828 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
10829 | wxSize * _arg6 = (wxSize *) &wxDefaultSize; | |
2d091820 | 10830 | long _arg7 = (long ) wxSL_HORIZONTAL; |
b68dc582 | 10831 | wxValidator * _arg8 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 10832 | wxString * _arg9 = (wxString *) &wxPySliderNameStr; |
2d091820 | 10833 | PyObject * _argo0 = 0; |
37f6a977 RD |
10834 | wxPoint temp; |
10835 | PyObject * _obj5 = 0; | |
10836 | wxSize temp0; | |
10837 | PyObject * _obj6 = 0; | |
2d091820 | 10838 | PyObject * _argo8 = 0; |
9a74fcaf | 10839 | PyObject * _obj9 = 0; |
107e4716 | 10840 | char *_kwnames[] = { "parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
70551f47 RD |
10841 | char _ptemp[128]; |
10842 | ||
10843 | self = self; | |
9a74fcaf | 10844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|OOlOO:new_wxSlider",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_obj6,&_arg7,&_argo8,&_obj9)) |
70551f47 | 10845 | return NULL; |
2d091820 RD |
10846 | if (_argo0) { |
10847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
10849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSlider. Expected _wxWindow_p."); |
10850 | return NULL; | |
10851 | } | |
10852 | } | |
37f6a977 RD |
10853 | if (_obj5) |
10854 | { | |
10855 | _arg5 = &temp; | |
10856 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 10857 | return NULL; |
37f6a977 RD |
10858 | } |
10859 | if (_obj6) | |
10860 | { | |
10861 | _arg6 = &temp0; | |
10862 | if (! wxSize_helper(_obj6, &_arg6)) | |
70551f47 | 10863 | return NULL; |
37f6a977 | 10864 | } |
2d091820 | 10865 | if (_argo8) { |
b67a9327 | 10866 | if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxValidator_p")) { |
70551f47 RD |
10867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxSlider. Expected _wxValidator_p."); |
10868 | return NULL; | |
10869 | } | |
10870 | } | |
9a74fcaf RD |
10871 | if (_obj9) |
10872 | { | |
10873 | _arg9 = wxString_in_helper(_obj9); | |
10874 | if (_arg9 == NULL) | |
10875 | return NULL; | |
10876 | } | |
ab9bc19b | 10877 | { |
474c48f9 | 10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10879 | _result = (wxSlider *)new_wxSlider(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,*_arg6,_arg7,*_arg8,*_arg9); |
ab9bc19b | 10880 | |
474c48f9 | 10881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10882 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
10883 | } if (_result) { |
10884 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10885 | _resultobj = Py_BuildValue("s",_ptemp); | |
10886 | } else { | |
10887 | Py_INCREF(Py_None); | |
10888 | _resultobj = Py_None; | |
10889 | } | |
9a74fcaf RD |
10890 | { |
10891 | if (_obj9) | |
10892 | delete _arg9; | |
10893 | } | |
70551f47 RD |
10894 | return _resultobj; |
10895 | } | |
10896 | ||
aa2a5b86 RD |
10897 | #define new_wxPreSlider() (new wxSlider()) |
10898 | static PyObject *_wrap_new_wxPreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10899 | PyObject * _resultobj; | |
10900 | wxSlider * _result; | |
10901 | char *_kwnames[] = { NULL }; | |
10902 | char _ptemp[128]; | |
10903 | ||
10904 | self = self; | |
10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSlider",_kwnames)) | |
10906 | return NULL; | |
10907 | { | |
474c48f9 | 10908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10909 | _result = (wxSlider *)new_wxPreSlider(); |
aa2a5b86 | 10910 | |
474c48f9 | 10911 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10912 | if (PyErr_Occurred()) return NULL; |
10913 | } if (_result) { | |
10914 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSlider_p"); | |
10915 | _resultobj = Py_BuildValue("s",_ptemp); | |
10916 | } else { | |
10917 | Py_INCREF(Py_None); | |
10918 | _resultobj = Py_None; | |
10919 | } | |
10920 | return _resultobj; | |
10921 | } | |
10922 | ||
10923 | #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)) | |
10924 | static PyObject *_wrap_wxSlider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10925 | PyObject * _resultobj; | |
10926 | bool _result; | |
10927 | wxSlider * _arg0; | |
10928 | wxWindow * _arg1; | |
10929 | wxWindowID _arg2; | |
10930 | int _arg3; | |
10931 | int _arg4; | |
10932 | int _arg5; | |
10933 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
10934 | wxSize * _arg7 = (wxSize *) &wxDefaultSize; | |
10935 | long _arg8 = (long ) wxSL_HORIZONTAL; | |
10936 | wxValidator * _arg9 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 10937 | wxString * _arg10 = (wxString *) &wxPySliderNameStr; |
aa2a5b86 RD |
10938 | PyObject * _argo0 = 0; |
10939 | PyObject * _argo1 = 0; | |
10940 | wxPoint temp; | |
10941 | PyObject * _obj6 = 0; | |
10942 | wxSize temp0; | |
10943 | PyObject * _obj7 = 0; | |
10944 | PyObject * _argo9 = 0; | |
9a74fcaf | 10945 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
10946 | char *_kwnames[] = { "self","parent","id","value","minValue","maxValue","point","size","style","validator","name", NULL }; |
10947 | ||
10948 | self = self; | |
9a74fcaf | 10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii|OOlOO:wxSlider_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6,&_obj7,&_arg8,&_argo9,&_obj10)) |
aa2a5b86 RD |
10950 | return NULL; |
10951 | if (_argo0) { | |
10952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
10954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_Create. Expected _wxSlider_p."); | |
10955 | return NULL; | |
10956 | } | |
10957 | } | |
10958 | if (_argo1) { | |
10959 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10960 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSlider_Create. Expected _wxWindow_p."); | |
10962 | return NULL; | |
10963 | } | |
10964 | } | |
10965 | if (_obj6) | |
10966 | { | |
10967 | _arg6 = &temp; | |
10968 | if (! wxPoint_helper(_obj6, &_arg6)) | |
10969 | return NULL; | |
10970 | } | |
10971 | if (_obj7) | |
10972 | { | |
10973 | _arg7 = &temp0; | |
10974 | if (! wxSize_helper(_obj7, &_arg7)) | |
10975 | return NULL; | |
10976 | } | |
10977 | if (_argo9) { | |
b67a9327 | 10978 | if (SWIG_GetPtrObj(_argo9,(void **) &_arg9,"_wxValidator_p")) { |
aa2a5b86 RD |
10979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 10 of wxSlider_Create. Expected _wxValidator_p."); |
10980 | return NULL; | |
10981 | } | |
10982 | } | |
9a74fcaf RD |
10983 | if (_obj10) |
10984 | { | |
10985 | _arg10 = wxString_in_helper(_obj10); | |
10986 | if (_arg10 == NULL) | |
10987 | return NULL; | |
10988 | } | |
aa2a5b86 | 10989 | { |
474c48f9 | 10990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 10991 | _result = (bool )wxSlider_Create(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7,_arg8,*_arg9,*_arg10); |
aa2a5b86 | 10992 | |
474c48f9 | 10993 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
10994 | if (PyErr_Occurred()) return NULL; |
10995 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
10996 | { |
10997 | if (_obj10) | |
10998 | delete _arg10; | |
10999 | } | |
aa2a5b86 RD |
11000 | return _resultobj; |
11001 | } | |
11002 | ||
70551f47 | 11003 | #define wxSlider_ClearSel(_swigobj) (_swigobj->ClearSel()) |
107e4716 | 11004 | static PyObject *_wrap_wxSlider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11005 | PyObject * _resultobj; |
11006 | wxSlider * _arg0; | |
2d091820 | 11007 | PyObject * _argo0 = 0; |
107e4716 | 11008 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11009 | |
11010 | self = self; | |
107e4716 | 11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearSel",_kwnames,&_argo0)) |
70551f47 | 11012 | return NULL; |
2d091820 RD |
11013 | if (_argo0) { |
11014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearSel. Expected _wxSlider_p."); |
11017 | return NULL; | |
11018 | } | |
11019 | } | |
ab9bc19b | 11020 | { |
474c48f9 | 11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11022 | wxSlider_ClearSel(_arg0); |
ab9bc19b | 11023 | |
474c48f9 | 11024 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11025 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11026 | } Py_INCREF(Py_None); |
70551f47 RD |
11027 | _resultobj = Py_None; |
11028 | return _resultobj; | |
11029 | } | |
11030 | ||
11031 | #define wxSlider_ClearTicks(_swigobj) (_swigobj->ClearTicks()) | |
107e4716 | 11032 | static PyObject *_wrap_wxSlider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11033 | PyObject * _resultobj; |
11034 | wxSlider * _arg0; | |
2d091820 | 11035 | PyObject * _argo0 = 0; |
107e4716 | 11036 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11037 | |
11038 | self = self; | |
107e4716 | 11039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_ClearTicks",_kwnames,&_argo0)) |
70551f47 | 11040 | return NULL; |
2d091820 RD |
11041 | if (_argo0) { |
11042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_ClearTicks. Expected _wxSlider_p."); |
11045 | return NULL; | |
11046 | } | |
11047 | } | |
ab9bc19b | 11048 | { |
474c48f9 | 11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11050 | wxSlider_ClearTicks(_arg0); |
ab9bc19b | 11051 | |
474c48f9 | 11052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11053 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11054 | } Py_INCREF(Py_None); |
70551f47 RD |
11055 | _resultobj = Py_None; |
11056 | return _resultobj; | |
11057 | } | |
11058 | ||
11059 | #define wxSlider_GetLineSize(_swigobj) (_swigobj->GetLineSize()) | |
107e4716 | 11060 | static PyObject *_wrap_wxSlider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11061 | PyObject * _resultobj; |
11062 | int _result; | |
11063 | wxSlider * _arg0; | |
2d091820 | 11064 | PyObject * _argo0 = 0; |
107e4716 | 11065 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11066 | |
11067 | self = self; | |
107e4716 | 11068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetLineSize",_kwnames,&_argo0)) |
70551f47 | 11069 | return NULL; |
2d091820 RD |
11070 | if (_argo0) { |
11071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetLineSize. Expected _wxSlider_p."); |
11074 | return NULL; | |
11075 | } | |
11076 | } | |
ab9bc19b | 11077 | { |
474c48f9 | 11078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11079 | _result = (int )wxSlider_GetLineSize(_arg0); |
ab9bc19b | 11080 | |
474c48f9 | 11081 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11082 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11083 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11084 | return _resultobj; |
11085 | } | |
11086 | ||
11087 | #define wxSlider_GetMax(_swigobj) (_swigobj->GetMax()) | |
107e4716 | 11088 | static PyObject *_wrap_wxSlider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11089 | PyObject * _resultobj; |
11090 | int _result; | |
11091 | wxSlider * _arg0; | |
2d091820 | 11092 | PyObject * _argo0 = 0; |
107e4716 | 11093 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11094 | |
11095 | self = self; | |
107e4716 | 11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMax",_kwnames,&_argo0)) |
70551f47 | 11097 | return NULL; |
2d091820 RD |
11098 | if (_argo0) { |
11099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMax. Expected _wxSlider_p."); |
11102 | return NULL; | |
11103 | } | |
11104 | } | |
ab9bc19b | 11105 | { |
474c48f9 | 11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11107 | _result = (int )wxSlider_GetMax(_arg0); |
ab9bc19b | 11108 | |
474c48f9 | 11109 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11110 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11111 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11112 | return _resultobj; |
11113 | } | |
11114 | ||
11115 | #define wxSlider_GetMin(_swigobj) (_swigobj->GetMin()) | |
107e4716 | 11116 | static PyObject *_wrap_wxSlider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11117 | PyObject * _resultobj; |
11118 | int _result; | |
11119 | wxSlider * _arg0; | |
2d091820 | 11120 | PyObject * _argo0 = 0; |
107e4716 | 11121 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11122 | |
11123 | self = self; | |
107e4716 | 11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetMin",_kwnames,&_argo0)) |
70551f47 | 11125 | return NULL; |
2d091820 RD |
11126 | if (_argo0) { |
11127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetMin. Expected _wxSlider_p."); |
11130 | return NULL; | |
11131 | } | |
11132 | } | |
ab9bc19b | 11133 | { |
474c48f9 | 11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11135 | _result = (int )wxSlider_GetMin(_arg0); |
ab9bc19b | 11136 | |
474c48f9 | 11137 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11138 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11139 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11140 | return _resultobj; |
11141 | } | |
11142 | ||
11143 | #define wxSlider_GetPageSize(_swigobj) (_swigobj->GetPageSize()) | |
107e4716 | 11144 | static PyObject *_wrap_wxSlider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11145 | PyObject * _resultobj; |
11146 | int _result; | |
11147 | wxSlider * _arg0; | |
2d091820 | 11148 | PyObject * _argo0 = 0; |
107e4716 | 11149 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11150 | |
11151 | self = self; | |
107e4716 | 11152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetPageSize",_kwnames,&_argo0)) |
70551f47 | 11153 | return NULL; |
2d091820 RD |
11154 | if (_argo0) { |
11155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetPageSize. Expected _wxSlider_p."); |
11158 | return NULL; | |
11159 | } | |
11160 | } | |
ab9bc19b | 11161 | { |
474c48f9 | 11162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11163 | _result = (int )wxSlider_GetPageSize(_arg0); |
ab9bc19b | 11164 | |
474c48f9 | 11165 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11166 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11167 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11168 | return _resultobj; |
11169 | } | |
11170 | ||
11171 | #define wxSlider_GetSelEnd(_swigobj) (_swigobj->GetSelEnd()) | |
107e4716 | 11172 | static PyObject *_wrap_wxSlider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11173 | PyObject * _resultobj; |
11174 | int _result; | |
11175 | wxSlider * _arg0; | |
2d091820 | 11176 | PyObject * _argo0 = 0; |
107e4716 | 11177 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11178 | |
11179 | self = self; | |
107e4716 | 11180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelEnd",_kwnames,&_argo0)) |
70551f47 | 11181 | return NULL; |
2d091820 RD |
11182 | if (_argo0) { |
11183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelEnd. Expected _wxSlider_p."); |
11186 | return NULL; | |
11187 | } | |
11188 | } | |
ab9bc19b | 11189 | { |
474c48f9 | 11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11191 | _result = (int )wxSlider_GetSelEnd(_arg0); |
ab9bc19b | 11192 | |
474c48f9 | 11193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11194 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11195 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11196 | return _resultobj; |
11197 | } | |
11198 | ||
11199 | #define wxSlider_GetSelStart(_swigobj) (_swigobj->GetSelStart()) | |
107e4716 | 11200 | static PyObject *_wrap_wxSlider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11201 | PyObject * _resultobj; |
11202 | int _result; | |
11203 | wxSlider * _arg0; | |
2d091820 | 11204 | PyObject * _argo0 = 0; |
107e4716 | 11205 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11206 | |
11207 | self = self; | |
107e4716 | 11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetSelStart",_kwnames,&_argo0)) |
70551f47 | 11209 | return NULL; |
2d091820 RD |
11210 | if (_argo0) { |
11211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetSelStart. Expected _wxSlider_p."); |
11214 | return NULL; | |
11215 | } | |
11216 | } | |
ab9bc19b | 11217 | { |
474c48f9 | 11218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11219 | _result = (int )wxSlider_GetSelStart(_arg0); |
ab9bc19b | 11220 | |
474c48f9 | 11221 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11222 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11223 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11224 | return _resultobj; |
11225 | } | |
11226 | ||
11227 | #define wxSlider_GetThumbLength(_swigobj) (_swigobj->GetThumbLength()) | |
107e4716 | 11228 | static PyObject *_wrap_wxSlider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11229 | PyObject * _resultobj; |
11230 | int _result; | |
11231 | wxSlider * _arg0; | |
2d091820 | 11232 | PyObject * _argo0 = 0; |
107e4716 | 11233 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11234 | |
11235 | self = self; | |
107e4716 | 11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetThumbLength",_kwnames,&_argo0)) |
70551f47 | 11237 | return NULL; |
2d091820 RD |
11238 | if (_argo0) { |
11239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetThumbLength. Expected _wxSlider_p."); |
11242 | return NULL; | |
11243 | } | |
11244 | } | |
ab9bc19b | 11245 | { |
474c48f9 | 11246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11247 | _result = (int )wxSlider_GetThumbLength(_arg0); |
ab9bc19b | 11248 | |
474c48f9 | 11249 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11250 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11251 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11252 | return _resultobj; |
11253 | } | |
11254 | ||
11255 | #define wxSlider_GetTickFreq(_swigobj) (_swigobj->GetTickFreq()) | |
107e4716 | 11256 | static PyObject *_wrap_wxSlider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11257 | PyObject * _resultobj; |
11258 | int _result; | |
11259 | wxSlider * _arg0; | |
2d091820 | 11260 | PyObject * _argo0 = 0; |
107e4716 | 11261 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11262 | |
11263 | self = self; | |
107e4716 | 11264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetTickFreq",_kwnames,&_argo0)) |
70551f47 | 11265 | return NULL; |
2d091820 RD |
11266 | if (_argo0) { |
11267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetTickFreq. Expected _wxSlider_p."); |
11270 | return NULL; | |
11271 | } | |
11272 | } | |
ab9bc19b | 11273 | { |
474c48f9 | 11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11275 | _result = (int )wxSlider_GetTickFreq(_arg0); |
ab9bc19b | 11276 | |
474c48f9 | 11277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11278 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11279 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11280 | return _resultobj; |
11281 | } | |
11282 | ||
11283 | #define wxSlider_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 11284 | static PyObject *_wrap_wxSlider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11285 | PyObject * _resultobj; |
11286 | int _result; | |
11287 | wxSlider * _arg0; | |
2d091820 | 11288 | PyObject * _argo0 = 0; |
107e4716 | 11289 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
11290 | |
11291 | self = self; | |
107e4716 | 11292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSlider_GetValue",_kwnames,&_argo0)) |
70551f47 | 11293 | return NULL; |
2d091820 RD |
11294 | if (_argo0) { |
11295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_GetValue. Expected _wxSlider_p."); |
11298 | return NULL; | |
11299 | } | |
11300 | } | |
ab9bc19b | 11301 | { |
474c48f9 | 11302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11303 | _result = (int )wxSlider_GetValue(_arg0); |
ab9bc19b | 11304 | |
474c48f9 | 11305 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11306 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11307 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
11308 | return _resultobj; |
11309 | } | |
11310 | ||
11311 | #define wxSlider_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 11312 | static PyObject *_wrap_wxSlider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11313 | PyObject * _resultobj; |
11314 | wxSlider * _arg0; | |
11315 | int _arg1; | |
11316 | int _arg2; | |
2d091820 | 11317 | PyObject * _argo0 = 0; |
107e4716 | 11318 | char *_kwnames[] = { "self","minValue","maxValue", NULL }; |
70551f47 RD |
11319 | |
11320 | self = self; | |
107e4716 | 11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 11322 | return NULL; |
2d091820 RD |
11323 | if (_argo0) { |
11324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetRange. Expected _wxSlider_p."); |
11327 | return NULL; | |
11328 | } | |
11329 | } | |
ab9bc19b | 11330 | { |
474c48f9 | 11331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11332 | wxSlider_SetRange(_arg0,_arg1,_arg2); |
ab9bc19b | 11333 | |
474c48f9 | 11334 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11335 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11336 | } Py_INCREF(Py_None); |
70551f47 RD |
11337 | _resultobj = Py_None; |
11338 | return _resultobj; | |
11339 | } | |
11340 | ||
11341 | #define wxSlider_SetTickFreq(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetTickFreq(_swigarg0,_swigarg1)) | |
107e4716 | 11342 | static PyObject *_wrap_wxSlider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11343 | PyObject * _resultobj; |
11344 | wxSlider * _arg0; | |
11345 | int _arg1; | |
11346 | int _arg2; | |
2d091820 | 11347 | PyObject * _argo0 = 0; |
107e4716 | 11348 | char *_kwnames[] = { "self","n","pos", NULL }; |
70551f47 RD |
11349 | |
11350 | self = self; | |
107e4716 | 11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetTickFreq",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 11352 | return NULL; |
2d091820 RD |
11353 | if (_argo0) { |
11354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTickFreq. Expected _wxSlider_p."); |
11357 | return NULL; | |
11358 | } | |
11359 | } | |
ab9bc19b | 11360 | { |
474c48f9 | 11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11362 | wxSlider_SetTickFreq(_arg0,_arg1,_arg2); |
ab9bc19b | 11363 | |
474c48f9 | 11364 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11365 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11366 | } Py_INCREF(Py_None); |
70551f47 RD |
11367 | _resultobj = Py_None; |
11368 | return _resultobj; | |
11369 | } | |
11370 | ||
11371 | #define wxSlider_SetLineSize(_swigobj,_swigarg0) (_swigobj->SetLineSize(_swigarg0)) | |
107e4716 | 11372 | static PyObject *_wrap_wxSlider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11373 | PyObject * _resultobj; |
11374 | wxSlider * _arg0; | |
11375 | int _arg1; | |
2d091820 | 11376 | PyObject * _argo0 = 0; |
107e4716 | 11377 | char *_kwnames[] = { "self","lineSize", NULL }; |
70551f47 RD |
11378 | |
11379 | self = self; | |
107e4716 | 11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetLineSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 11381 | return NULL; |
2d091820 RD |
11382 | if (_argo0) { |
11383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetLineSize. Expected _wxSlider_p."); |
11386 | return NULL; | |
11387 | } | |
11388 | } | |
ab9bc19b | 11389 | { |
474c48f9 | 11390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11391 | wxSlider_SetLineSize(_arg0,_arg1); |
ab9bc19b | 11392 | |
474c48f9 | 11393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11395 | } Py_INCREF(Py_None); |
70551f47 RD |
11396 | _resultobj = Py_None; |
11397 | return _resultobj; | |
11398 | } | |
11399 | ||
11400 | #define wxSlider_SetPageSize(_swigobj,_swigarg0) (_swigobj->SetPageSize(_swigarg0)) | |
107e4716 | 11401 | static PyObject *_wrap_wxSlider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11402 | PyObject * _resultobj; |
11403 | wxSlider * _arg0; | |
11404 | int _arg1; | |
2d091820 | 11405 | PyObject * _argo0 = 0; |
107e4716 | 11406 | char *_kwnames[] = { "self","pageSize", NULL }; |
70551f47 RD |
11407 | |
11408 | self = self; | |
107e4716 | 11409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetPageSize",_kwnames,&_argo0,&_arg1)) |
70551f47 | 11410 | return NULL; |
2d091820 RD |
11411 | if (_argo0) { |
11412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetPageSize. Expected _wxSlider_p."); |
11415 | return NULL; | |
11416 | } | |
11417 | } | |
ab9bc19b | 11418 | { |
474c48f9 | 11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11420 | wxSlider_SetPageSize(_arg0,_arg1); |
ab9bc19b | 11421 | |
474c48f9 | 11422 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11423 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11424 | } Py_INCREF(Py_None); |
70551f47 RD |
11425 | _resultobj = Py_None; |
11426 | return _resultobj; | |
11427 | } | |
11428 | ||
11429 | #define wxSlider_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) | |
107e4716 | 11430 | static PyObject *_wrap_wxSlider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11431 | PyObject * _resultobj; |
11432 | wxSlider * _arg0; | |
11433 | int _arg1; | |
11434 | int _arg2; | |
2d091820 | 11435 | PyObject * _argo0 = 0; |
107e4716 | 11436 | char *_kwnames[] = { "self","startPos","endPos", NULL }; |
70551f47 RD |
11437 | |
11438 | self = self; | |
107e4716 | 11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSlider_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 11440 | return NULL; |
2d091820 RD |
11441 | if (_argo0) { |
11442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetSelection. Expected _wxSlider_p."); |
11445 | return NULL; | |
11446 | } | |
11447 | } | |
ab9bc19b | 11448 | { |
474c48f9 | 11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11450 | wxSlider_SetSelection(_arg0,_arg1,_arg2); |
ab9bc19b | 11451 | |
474c48f9 | 11452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11453 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11454 | } Py_INCREF(Py_None); |
70551f47 RD |
11455 | _resultobj = Py_None; |
11456 | return _resultobj; | |
11457 | } | |
11458 | ||
11459 | #define wxSlider_SetThumbLength(_swigobj,_swigarg0) (_swigobj->SetThumbLength(_swigarg0)) | |
107e4716 | 11460 | static PyObject *_wrap_wxSlider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11461 | PyObject * _resultobj; |
11462 | wxSlider * _arg0; | |
11463 | int _arg1; | |
2d091820 | 11464 | PyObject * _argo0 = 0; |
107e4716 | 11465 | char *_kwnames[] = { "self","len", NULL }; |
70551f47 RD |
11466 | |
11467 | self = self; | |
107e4716 | 11468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetThumbLength",_kwnames,&_argo0,&_arg1)) |
70551f47 | 11469 | return NULL; |
2d091820 RD |
11470 | if (_argo0) { |
11471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetThumbLength. Expected _wxSlider_p."); |
11474 | return NULL; | |
11475 | } | |
11476 | } | |
ab9bc19b | 11477 | { |
474c48f9 | 11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11479 | wxSlider_SetThumbLength(_arg0,_arg1); |
ab9bc19b | 11480 | |
474c48f9 | 11481 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11482 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11483 | } Py_INCREF(Py_None); |
70551f47 RD |
11484 | _resultobj = Py_None; |
11485 | return _resultobj; | |
11486 | } | |
11487 | ||
11488 | #define wxSlider_SetTick(_swigobj,_swigarg0) (_swigobj->SetTick(_swigarg0)) | |
107e4716 | 11489 | static PyObject *_wrap_wxSlider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11490 | PyObject * _resultobj; |
11491 | wxSlider * _arg0; | |
11492 | int _arg1; | |
2d091820 | 11493 | PyObject * _argo0 = 0; |
107e4716 | 11494 | char *_kwnames[] = { "self","tickPos", NULL }; |
70551f47 RD |
11495 | |
11496 | self = self; | |
107e4716 | 11497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetTick",_kwnames,&_argo0,&_arg1)) |
70551f47 | 11498 | return NULL; |
2d091820 RD |
11499 | if (_argo0) { |
11500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetTick. Expected _wxSlider_p."); |
11503 | return NULL; | |
11504 | } | |
11505 | } | |
ab9bc19b | 11506 | { |
474c48f9 | 11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11508 | wxSlider_SetTick(_arg0,_arg1); |
ab9bc19b | 11509 | |
474c48f9 | 11510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11511 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11512 | } Py_INCREF(Py_None); |
70551f47 RD |
11513 | _resultobj = Py_None; |
11514 | return _resultobj; | |
11515 | } | |
11516 | ||
11517 | #define wxSlider_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 11518 | static PyObject *_wrap_wxSlider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
11519 | PyObject * _resultobj; |
11520 | wxSlider * _arg0; | |
11521 | int _arg1; | |
2d091820 | 11522 | PyObject * _argo0 = 0; |
107e4716 | 11523 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
11524 | |
11525 | self = self; | |
107e4716 | 11526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSlider_SetValue",_kwnames,&_argo0,&_arg1)) |
70551f47 | 11527 | return NULL; |
2d091820 RD |
11528 | if (_argo0) { |
11529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSlider_p")) { | |
70551f47 RD |
11531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSlider_SetValue. Expected _wxSlider_p."); |
11532 | return NULL; | |
11533 | } | |
11534 | } | |
ab9bc19b | 11535 | { |
474c48f9 | 11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11537 | wxSlider_SetValue(_arg0,_arg1); |
ab9bc19b | 11538 | |
474c48f9 | 11539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11540 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 11541 | } Py_INCREF(Py_None); |
70551f47 RD |
11542 | _resultobj = Py_None; |
11543 | return _resultobj; | |
11544 | } | |
11545 | ||
f6bcfd97 BP |
11546 | static void *SwigwxSpinCtrlTowxSpinButton(void *ptr) { |
11547 | wxSpinCtrl *src; | |
11548 | wxSpinButton *dest; | |
11549 | src = (wxSpinCtrl *) ptr; | |
11550 | dest = (wxSpinButton *) src; | |
11551 | return (void *) dest; | |
11552 | } | |
11553 | ||
11554 | static void *SwigwxSpinCtrlTowxControl(void *ptr) { | |
11555 | wxSpinCtrl *src; | |
11556 | wxControl *dest; | |
11557 | src = (wxSpinCtrl *) ptr; | |
11558 | dest = (wxControl *) src; | |
11559 | return (void *) dest; | |
11560 | } | |
11561 | ||
11562 | static void *SwigwxSpinCtrlTowxWindow(void *ptr) { | |
11563 | wxSpinCtrl *src; | |
11564 | wxWindow *dest; | |
11565 | src = (wxSpinCtrl *) ptr; | |
11566 | dest = (wxWindow *) src; | |
11567 | return (void *) dest; | |
11568 | } | |
11569 | ||
11570 | static void *SwigwxSpinCtrlTowxEvtHandler(void *ptr) { | |
11571 | wxSpinCtrl *src; | |
11572 | wxEvtHandler *dest; | |
11573 | src = (wxSpinCtrl *) ptr; | |
11574 | dest = (wxEvtHandler *) src; | |
11575 | return (void *) dest; | |
11576 | } | |
11577 | ||
9df61a29 RD |
11578 | static void *SwigwxSpinCtrlTowxObject(void *ptr) { |
11579 | wxSpinCtrl *src; | |
11580 | wxObject *dest; | |
11581 | src = (wxSpinCtrl *) ptr; | |
11582 | dest = (wxObject *) src; | |
11583 | return (void *) dest; | |
11584 | } | |
11585 | ||
f6bcfd97 BP |
11586 | #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)) |
11587 | static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11588 | PyObject * _resultobj; | |
11589 | wxSpinCtrl * _result; | |
11590 | wxWindow * _arg0; | |
11591 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 11592 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b68dc582 RD |
11593 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
11594 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
f6bcfd97 BP |
11595 | long _arg5 = (long ) wxSP_ARROW_KEYS; |
11596 | int _arg6 = (int ) 0; | |
11597 | int _arg7 = (int ) 100; | |
11598 | int _arg8 = (int ) 0; | |
9a74fcaf | 11599 | wxString * _arg9 = (wxString *) &wxPySpinCtrlNameStr; |
f6bcfd97 | 11600 | PyObject * _argo0 = 0; |
9a74fcaf | 11601 | PyObject * _obj2 = 0; |
f6bcfd97 BP |
11602 | wxPoint temp; |
11603 | PyObject * _obj3 = 0; | |
11604 | wxSize temp0; | |
11605 | PyObject * _obj4 = 0; | |
9a74fcaf | 11606 | PyObject * _obj9 = 0; |
f6bcfd97 BP |
11607 | char *_kwnames[] = { "parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
11608 | char _ptemp[128]; | |
11609 | ||
11610 | self = self; | |
9a74fcaf | 11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOliiiO:new_wxSpinCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8,&_obj9)) |
f6bcfd97 BP |
11612 | return NULL; |
11613 | if (_argo0) { | |
11614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
11616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSpinCtrl. Expected _wxWindow_p."); | |
11617 | return NULL; | |
11618 | } | |
11619 | } | |
9a74fcaf RD |
11620 | if (_obj2) |
11621 | { | |
11622 | _arg2 = wxString_in_helper(_obj2); | |
11623 | if (_arg2 == NULL) | |
11624 | return NULL; | |
11625 | } | |
f6bcfd97 BP |
11626 | if (_obj3) |
11627 | { | |
11628 | _arg3 = &temp; | |
11629 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11630 | return NULL; | |
11631 | } | |
11632 | if (_obj4) | |
11633 | { | |
11634 | _arg4 = &temp0; | |
11635 | if (! wxSize_helper(_obj4, &_arg4)) | |
11636 | return NULL; | |
9a74fcaf RD |
11637 | } |
11638 | if (_obj9) | |
11639 | { | |
11640 | _arg9 = wxString_in_helper(_obj9); | |
11641 | if (_arg9 == NULL) | |
11642 | return NULL; | |
f6bcfd97 BP |
11643 | } |
11644 | { | |
474c48f9 | 11645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11646 | _result = (wxSpinCtrl *)new_wxSpinCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8,*_arg9); |
f6bcfd97 | 11647 | |
474c48f9 | 11648 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11649 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11650 | } if (_result) { |
11651 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11652 | _resultobj = Py_BuildValue("s",_ptemp); | |
11653 | } else { | |
11654 | Py_INCREF(Py_None); | |
11655 | _resultobj = Py_None; | |
11656 | } | |
9a74fcaf RD |
11657 | { |
11658 | if (_obj2) | |
11659 | delete _arg2; | |
11660 | } | |
11661 | { | |
11662 | if (_obj9) | |
11663 | delete _arg9; | |
11664 | } | |
f6bcfd97 BP |
11665 | return _resultobj; |
11666 | } | |
11667 | ||
aa2a5b86 RD |
11668 | #define new_wxPreSpinCtrl() (new wxSpinCtrl()) |
11669 | static PyObject *_wrap_new_wxPreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11670 | PyObject * _resultobj; | |
11671 | wxSpinCtrl * _result; | |
11672 | char *_kwnames[] = { NULL }; | |
11673 | char _ptemp[128]; | |
11674 | ||
11675 | self = self; | |
11676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSpinCtrl",_kwnames)) | |
11677 | return NULL; | |
11678 | { | |
474c48f9 | 11679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11680 | _result = (wxSpinCtrl *)new_wxPreSpinCtrl(); |
aa2a5b86 | 11681 | |
474c48f9 | 11682 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11683 | if (PyErr_Occurred()) return NULL; |
11684 | } if (_result) { | |
11685 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSpinCtrl_p"); | |
11686 | _resultobj = Py_BuildValue("s",_ptemp); | |
11687 | } else { | |
11688 | Py_INCREF(Py_None); | |
11689 | _resultobj = Py_None; | |
11690 | } | |
11691 | return _resultobj; | |
11692 | } | |
11693 | ||
11694 | #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)) | |
11695 | static PyObject *_wrap_wxSpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject * _resultobj; | |
11697 | bool _result; | |
11698 | wxSpinCtrl * _arg0; | |
11699 | wxWindow * _arg1; | |
11700 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 11701 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
aa2a5b86 RD |
11702 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
11703 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
11704 | long _arg6 = (long ) wxSP_ARROW_KEYS; | |
11705 | int _arg7 = (int ) 0; | |
11706 | int _arg8 = (int ) 100; | |
11707 | int _arg9 = (int ) 0; | |
9a74fcaf | 11708 | wxString * _arg10 = (wxString *) &wxPySpinCtrlNameStr; |
aa2a5b86 RD |
11709 | PyObject * _argo0 = 0; |
11710 | PyObject * _argo1 = 0; | |
9a74fcaf | 11711 | PyObject * _obj3 = 0; |
aa2a5b86 RD |
11712 | wxPoint temp; |
11713 | PyObject * _obj4 = 0; | |
11714 | wxSize temp0; | |
11715 | PyObject * _obj5 = 0; | |
9a74fcaf | 11716 | PyObject * _obj10 = 0; |
aa2a5b86 RD |
11717 | char *_kwnames[] = { "self","parent","id","value","pos","size","style","min","max","initial","name", NULL }; |
11718 | ||
11719 | self = self; | |
9a74fcaf | 11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOliiiO:wxSpinCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9,&_obj10)) |
aa2a5b86 RD |
11721 | return NULL; |
11722 | if (_argo0) { | |
11723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_Create. Expected _wxSpinCtrl_p."); | |
11726 | return NULL; | |
11727 | } | |
11728 | } | |
11729 | if (_argo1) { | |
11730 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11731 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
11732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSpinCtrl_Create. Expected _wxWindow_p."); | |
11733 | return NULL; | |
11734 | } | |
11735 | } | |
9a74fcaf RD |
11736 | if (_obj3) |
11737 | { | |
11738 | _arg3 = wxString_in_helper(_obj3); | |
11739 | if (_arg3 == NULL) | |
11740 | return NULL; | |
11741 | } | |
aa2a5b86 RD |
11742 | if (_obj4) |
11743 | { | |
11744 | _arg4 = &temp; | |
11745 | if (! wxPoint_helper(_obj4, &_arg4)) | |
11746 | return NULL; | |
11747 | } | |
11748 | if (_obj5) | |
11749 | { | |
11750 | _arg5 = &temp0; | |
11751 | if (! wxSize_helper(_obj5, &_arg5)) | |
11752 | return NULL; | |
9a74fcaf RD |
11753 | } |
11754 | if (_obj10) | |
11755 | { | |
11756 | _arg10 = wxString_in_helper(_obj10); | |
11757 | if (_arg10 == NULL) | |
11758 | return NULL; | |
aa2a5b86 RD |
11759 | } |
11760 | { | |
474c48f9 | 11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 11762 | _result = (bool )wxSpinCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9,*_arg10); |
aa2a5b86 | 11763 | |
474c48f9 | 11764 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
11765 | if (PyErr_Occurred()) return NULL; |
11766 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
11767 | { |
11768 | if (_obj3) | |
11769 | delete _arg3; | |
11770 | } | |
11771 | { | |
11772 | if (_obj10) | |
11773 | delete _arg10; | |
11774 | } | |
aa2a5b86 RD |
11775 | return _resultobj; |
11776 | } | |
11777 | ||
c368d904 RD |
11778 | #define wxSpinCtrl_GetMax(_swigobj) (_swigobj->GetMax()) |
11779 | static PyObject *_wrap_wxSpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11780 | PyObject * _resultobj; | |
11781 | int _result; | |
11782 | wxSpinCtrl * _arg0; | |
11783 | PyObject * _argo0 = 0; | |
11784 | char *_kwnames[] = { "self", NULL }; | |
11785 | ||
11786 | self = self; | |
11787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMax",_kwnames,&_argo0)) | |
11788 | return NULL; | |
11789 | if (_argo0) { | |
11790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMax. Expected _wxSpinCtrl_p."); | |
11793 | return NULL; | |
11794 | } | |
11795 | } | |
11796 | { | |
474c48f9 | 11797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11798 | _result = (int )wxSpinCtrl_GetMax(_arg0); |
c368d904 | 11799 | |
474c48f9 | 11800 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11801 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11802 | } _resultobj = Py_BuildValue("i",_result); |
11803 | return _resultobj; | |
11804 | } | |
11805 | ||
11806 | #define wxSpinCtrl_GetMin(_swigobj) (_swigobj->GetMin()) | |
11807 | static PyObject *_wrap_wxSpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11808 | PyObject * _resultobj; | |
11809 | int _result; | |
11810 | wxSpinCtrl * _arg0; | |
11811 | PyObject * _argo0 = 0; | |
11812 | char *_kwnames[] = { "self", NULL }; | |
11813 | ||
11814 | self = self; | |
11815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetMin",_kwnames,&_argo0)) | |
11816 | return NULL; | |
11817 | if (_argo0) { | |
11818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetMin. Expected _wxSpinCtrl_p."); | |
11821 | return NULL; | |
11822 | } | |
11823 | } | |
11824 | { | |
474c48f9 | 11825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11826 | _result = (int )wxSpinCtrl_GetMin(_arg0); |
c368d904 | 11827 | |
474c48f9 | 11828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11829 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11830 | } _resultobj = Py_BuildValue("i",_result); |
11831 | return _resultobj; | |
11832 | } | |
11833 | ||
11834 | #define wxSpinCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
11835 | static PyObject *_wrap_wxSpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11836 | PyObject * _resultobj; | |
11837 | int _result; | |
11838 | wxSpinCtrl * _arg0; | |
11839 | PyObject * _argo0 = 0; | |
11840 | char *_kwnames[] = { "self", NULL }; | |
11841 | ||
11842 | self = self; | |
11843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSpinCtrl_GetValue",_kwnames,&_argo0)) | |
11844 | return NULL; | |
11845 | if (_argo0) { | |
11846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_GetValue. Expected _wxSpinCtrl_p."); | |
11849 | return NULL; | |
11850 | } | |
11851 | } | |
11852 | { | |
474c48f9 | 11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11854 | _result = (int )wxSpinCtrl_GetValue(_arg0); |
c368d904 | 11855 | |
474c48f9 | 11856 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11857 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11858 | } _resultobj = Py_BuildValue("i",_result); |
11859 | return _resultobj; | |
11860 | } | |
11861 | ||
11862 | #define wxSpinCtrl_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
11863 | static PyObject *_wrap_wxSpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11864 | PyObject * _resultobj; | |
11865 | wxSpinCtrl * _arg0; | |
11866 | int _arg1; | |
11867 | int _arg2; | |
11868 | PyObject * _argo0 = 0; | |
11869 | char *_kwnames[] = { "self","min","max", NULL }; | |
11870 | ||
11871 | self = self; | |
11872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSpinCtrl_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11873 | return NULL; | |
11874 | if (_argo0) { | |
11875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetRange. Expected _wxSpinCtrl_p."); | |
11878 | return NULL; | |
11879 | } | |
11880 | } | |
11881 | { | |
474c48f9 | 11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11883 | wxSpinCtrl_SetRange(_arg0,_arg1,_arg2); |
c368d904 | 11884 | |
474c48f9 | 11885 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11886 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11887 | } Py_INCREF(Py_None); |
11888 | _resultobj = Py_None; | |
11889 | return _resultobj; | |
11890 | } | |
11891 | ||
11892 | #define wxSpinCtrl_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
11893 | static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11894 | PyObject * _resultobj; | |
11895 | wxSpinCtrl * _arg0; | |
11896 | int _arg1; | |
11897 | PyObject * _argo0 = 0; | |
11898 | char *_kwnames[] = { "self","value", NULL }; | |
11899 | ||
11900 | self = self; | |
11901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSpinCtrl_SetValue",_kwnames,&_argo0,&_arg1)) | |
11902 | return NULL; | |
11903 | if (_argo0) { | |
11904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetValue. Expected _wxSpinCtrl_p."); | |
11907 | return NULL; | |
11908 | } | |
11909 | } | |
11910 | { | |
474c48f9 | 11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11912 | wxSpinCtrl_SetValue(_arg0,_arg1); |
c368d904 | 11913 | |
474c48f9 | 11914 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11915 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
11916 | } Py_INCREF(Py_None); |
11917 | _resultobj = Py_None; | |
11918 | return _resultobj; | |
11919 | } | |
11920 | ||
1fded56b RD |
11921 | static void wxSpinCtrl_SetSelection(wxSpinCtrl *self,long from,long to) { |
11922 | } | |
11923 | static PyObject *_wrap_wxSpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11924 | PyObject * _resultobj; | |
11925 | wxSpinCtrl * _arg0; | |
11926 | long _arg1; | |
11927 | long _arg2; | |
11928 | PyObject * _argo0 = 0; | |
11929 | char *_kwnames[] = { "self","from","to", NULL }; | |
11930 | ||
11931 | self = self; | |
11932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSpinCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11933 | return NULL; | |
11934 | if (_argo0) { | |
11935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) { | |
11937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetSelection. Expected _wxSpinCtrl_p."); | |
11938 | return NULL; | |
11939 | } | |
11940 | } | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | wxSpinCtrl_SetSelection(_arg0,_arg1,_arg2); | |
11944 | ||
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) return NULL; | |
11947 | } Py_INCREF(Py_None); | |
11948 | _resultobj = Py_None; | |
11949 | return _resultobj; | |
11950 | } | |
11951 | ||
7a446686 RD |
11952 | static void *SwigwxToggleButtonTowxControl(void *ptr) { |
11953 | wxToggleButton *src; | |
11954 | wxControl *dest; | |
11955 | src = (wxToggleButton *) ptr; | |
11956 | dest = (wxControl *) src; | |
11957 | return (void *) dest; | |
11958 | } | |
11959 | ||
11960 | static void *SwigwxToggleButtonTowxWindow(void *ptr) { | |
11961 | wxToggleButton *src; | |
11962 | wxWindow *dest; | |
11963 | src = (wxToggleButton *) ptr; | |
11964 | dest = (wxWindow *) src; | |
11965 | return (void *) dest; | |
11966 | } | |
11967 | ||
11968 | static void *SwigwxToggleButtonTowxEvtHandler(void *ptr) { | |
11969 | wxToggleButton *src; | |
11970 | wxEvtHandler *dest; | |
11971 | src = (wxToggleButton *) ptr; | |
11972 | dest = (wxEvtHandler *) src; | |
11973 | return (void *) dest; | |
11974 | } | |
11975 | ||
9df61a29 RD |
11976 | static void *SwigwxToggleButtonTowxObject(void *ptr) { |
11977 | wxToggleButton *src; | |
11978 | wxObject *dest; | |
11979 | src = (wxToggleButton *) ptr; | |
11980 | dest = (wxObject *) src; | |
11981 | return (void *) dest; | |
11982 | } | |
11983 | ||
7a446686 RD |
11984 | #define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
11985 | static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11986 | PyObject * _resultobj; | |
11987 | wxToggleButton * _result; | |
11988 | wxWindow * _arg0; | |
11989 | wxWindowID _arg1; | |
11990 | wxString * _arg2; | |
11991 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11992 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11993 | long _arg5 = (long ) 0; | |
11994 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 11995 | wxString * _arg7 = (wxString *) &wxPyCheckBoxNameStr; |
7a446686 RD |
11996 | PyObject * _argo0 = 0; |
11997 | PyObject * _obj2 = 0; | |
11998 | wxPoint temp; | |
11999 | PyObject * _obj3 = 0; | |
12000 | wxSize temp0; | |
12001 | PyObject * _obj4 = 0; | |
12002 | PyObject * _argo6 = 0; | |
9a74fcaf | 12003 | PyObject * _obj7 = 0; |
7a446686 RD |
12004 | char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL }; |
12005 | char _ptemp[128]; | |
12006 | ||
12007 | self = self; | |
9a74fcaf | 12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlOO:new_wxToggleButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
7a446686 RD |
12009 | return NULL; |
12010 | if (_argo0) { | |
12011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
12013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToggleButton. Expected _wxWindow_p."); | |
12014 | return NULL; | |
12015 | } | |
12016 | } | |
12017 | { | |
c8bc7bb8 RD |
12018 | _arg2 = wxString_in_helper(_obj2); |
12019 | if (_arg2 == NULL) | |
7a446686 | 12020 | return NULL; |
7a446686 RD |
12021 | } |
12022 | if (_obj3) | |
12023 | { | |
12024 | _arg3 = &temp; | |
12025 | if (! wxPoint_helper(_obj3, &_arg3)) | |
12026 | return NULL; | |
12027 | } | |
12028 | if (_obj4) | |
12029 | { | |
12030 | _arg4 = &temp0; | |
12031 | if (! wxSize_helper(_obj4, &_arg4)) | |
12032 | return NULL; | |
12033 | } | |
12034 | if (_argo6) { | |
b67a9327 | 12035 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
7a446686 RD |
12036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxToggleButton. Expected _wxValidator_p."); |
12037 | return NULL; | |
12038 | } | |
12039 | } | |
9a74fcaf RD |
12040 | if (_obj7) |
12041 | { | |
12042 | _arg7 = wxString_in_helper(_obj7); | |
12043 | if (_arg7 == NULL) | |
12044 | return NULL; | |
12045 | } | |
7a446686 | 12046 | { |
474c48f9 | 12047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 12048 | _result = (wxToggleButton *)new_wxToggleButton(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
7a446686 | 12049 | |
474c48f9 | 12050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 12051 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
12052 | } if (_result) { |
12053 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
12054 | _resultobj = Py_BuildValue("s",_ptemp); | |
12055 | } else { | |
12056 | Py_INCREF(Py_None); | |
12057 | _resultobj = Py_None; | |
12058 | } | |
12059 | { | |
12060 | if (_obj2) | |
12061 | delete _arg2; | |
9a74fcaf RD |
12062 | } |
12063 | { | |
12064 | if (_obj7) | |
12065 | delete _arg7; | |
7a446686 RD |
12066 | } |
12067 | return _resultobj; | |
12068 | } | |
12069 | ||
aa2a5b86 RD |
12070 | #define new_wxPreToggleButton() (new wxToggleButton()) |
12071 | static PyObject *_wrap_new_wxPreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12072 | PyObject * _resultobj; | |
12073 | wxToggleButton * _result; | |
12074 | char *_kwnames[] = { NULL }; | |
12075 | char _ptemp[128]; | |
12076 | ||
12077 | self = self; | |
12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToggleButton",_kwnames)) | |
12079 | return NULL; | |
12080 | { | |
474c48f9 | 12081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12082 | _result = (wxToggleButton *)new_wxPreToggleButton(); |
aa2a5b86 | 12083 | |
474c48f9 | 12084 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
12085 | if (PyErr_Occurred()) return NULL; |
12086 | } if (_result) { | |
12087 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToggleButton_p"); | |
12088 | _resultobj = Py_BuildValue("s",_ptemp); | |
12089 | } else { | |
12090 | Py_INCREF(Py_None); | |
12091 | _resultobj = Py_None; | |
12092 | } | |
12093 | return _resultobj; | |
12094 | } | |
12095 | ||
12096 | #define wxToggleButton_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
12097 | static PyObject *_wrap_wxToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12098 | PyObject * _resultobj; | |
12099 | bool _result; | |
12100 | wxToggleButton * _arg0; | |
12101 | wxWindow * _arg1; | |
12102 | wxWindowID _arg2; | |
12103 | wxString * _arg3; | |
12104 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
12105 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
12106 | long _arg6 = (long ) 0; | |
12107 | wxValidator * _arg7 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 12108 | wxString * _arg8 = (wxString *) &wxPyCheckBoxNameStr; |
aa2a5b86 RD |
12109 | PyObject * _argo0 = 0; |
12110 | PyObject * _argo1 = 0; | |
12111 | PyObject * _obj3 = 0; | |
12112 | wxPoint temp; | |
12113 | PyObject * _obj4 = 0; | |
12114 | wxSize temp0; | |
12115 | PyObject * _obj5 = 0; | |
12116 | PyObject * _argo7 = 0; | |
9a74fcaf | 12117 | PyObject * _obj8 = 0; |
aa2a5b86 RD |
12118 | char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL }; |
12119 | ||
12120 | self = self; | |
9a74fcaf | 12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxToggleButton_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8)) |
aa2a5b86 RD |
12122 | return NULL; |
12123 | if (_argo0) { | |
12124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
12126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_Create. Expected _wxToggleButton_p."); | |
12127 | return NULL; | |
12128 | } | |
12129 | } | |
12130 | if (_argo1) { | |
12131 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12132 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
12133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToggleButton_Create. Expected _wxWindow_p."); | |
12134 | return NULL; | |
12135 | } | |
12136 | } | |
12137 | { | |
c8bc7bb8 RD |
12138 | _arg3 = wxString_in_helper(_obj3); |
12139 | if (_arg3 == NULL) | |
aa2a5b86 | 12140 | return NULL; |
aa2a5b86 RD |
12141 | } |
12142 | if (_obj4) | |
12143 | { | |
12144 | _arg4 = &temp; | |
12145 | if (! wxPoint_helper(_obj4, &_arg4)) | |
12146 | return NULL; | |
12147 | } | |
12148 | if (_obj5) | |
12149 | { | |
12150 | _arg5 = &temp0; | |
12151 | if (! wxSize_helper(_obj5, &_arg5)) | |
12152 | return NULL; | |
12153 | } | |
12154 | if (_argo7) { | |
b67a9327 | 12155 | if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxValidator_p")) { |
aa2a5b86 RD |
12156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of wxToggleButton_Create. Expected _wxValidator_p."); |
12157 | return NULL; | |
12158 | } | |
12159 | } | |
9a74fcaf RD |
12160 | if (_obj8) |
12161 | { | |
12162 | _arg8 = wxString_in_helper(_obj8); | |
12163 | if (_arg8 == NULL) | |
12164 | return NULL; | |
12165 | } | |
aa2a5b86 | 12166 | { |
474c48f9 | 12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 12168 | _result = (bool )wxToggleButton_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8); |
aa2a5b86 | 12169 | |
474c48f9 | 12170 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
12171 | if (PyErr_Occurred()) return NULL; |
12172 | } _resultobj = Py_BuildValue("i",_result); | |
12173 | { | |
12174 | if (_obj3) | |
12175 | delete _arg3; | |
9a74fcaf RD |
12176 | } |
12177 | { | |
12178 | if (_obj8) | |
12179 | delete _arg8; | |
aa2a5b86 RD |
12180 | } |
12181 | return _resultobj; | |
12182 | } | |
12183 | ||
7a446686 RD |
12184 | #define wxToggleButton_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) |
12185 | static PyObject *_wrap_wxToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12186 | PyObject * _resultobj; | |
12187 | wxToggleButton * _arg0; | |
12188 | bool _arg1; | |
12189 | PyObject * _argo0 = 0; | |
12190 | int tempbool1; | |
12191 | char *_kwnames[] = { "self","value", NULL }; | |
12192 | ||
12193 | self = self; | |
12194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToggleButton_SetValue",_kwnames,&_argo0,&tempbool1)) | |
12195 | return NULL; | |
12196 | if (_argo0) { | |
12197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
12199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetValue. Expected _wxToggleButton_p."); | |
12200 | return NULL; | |
12201 | } | |
12202 | } | |
12203 | _arg1 = (bool ) tempbool1; | |
12204 | { | |
474c48f9 | 12205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12206 | wxToggleButton_SetValue(_arg0,_arg1); |
7a446686 | 12207 | |
474c48f9 | 12208 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 12209 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
12210 | } Py_INCREF(Py_None); |
12211 | _resultobj = Py_None; | |
12212 | return _resultobj; | |
12213 | } | |
12214 | ||
12215 | #define wxToggleButton_GetValue(_swigobj) (_swigobj->GetValue()) | |
12216 | static PyObject *_wrap_wxToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12217 | PyObject * _resultobj; | |
12218 | bool _result; | |
12219 | wxToggleButton * _arg0; | |
12220 | PyObject * _argo0 = 0; | |
12221 | char *_kwnames[] = { "self", NULL }; | |
12222 | ||
12223 | self = self; | |
12224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToggleButton_GetValue",_kwnames,&_argo0)) | |
12225 | return NULL; | |
12226 | if (_argo0) { | |
12227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
12229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_GetValue. Expected _wxToggleButton_p."); | |
12230 | return NULL; | |
12231 | } | |
12232 | } | |
12233 | { | |
474c48f9 | 12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12235 | _result = (bool )wxToggleButton_GetValue(_arg0); |
7a446686 | 12236 | |
474c48f9 | 12237 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 12238 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
12239 | } _resultobj = Py_BuildValue("i",_result); |
12240 | return _resultobj; | |
12241 | } | |
12242 | ||
12243 | #define wxToggleButton_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
12244 | static PyObject *_wrap_wxToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12245 | PyObject * _resultobj; | |
12246 | wxToggleButton * _arg0; | |
12247 | wxString * _arg1; | |
12248 | PyObject * _argo0 = 0; | |
12249 | PyObject * _obj1 = 0; | |
12250 | char *_kwnames[] = { "self","label", NULL }; | |
12251 | ||
12252 | self = self; | |
12253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToggleButton_SetLabel",_kwnames,&_argo0,&_obj1)) | |
12254 | return NULL; | |
12255 | if (_argo0) { | |
12256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToggleButton_p")) { | |
12258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToggleButton_SetLabel. Expected _wxToggleButton_p."); | |
12259 | return NULL; | |
12260 | } | |
12261 | } | |
12262 | { | |
c8bc7bb8 RD |
12263 | _arg1 = wxString_in_helper(_obj1); |
12264 | if (_arg1 == NULL) | |
7a446686 | 12265 | return NULL; |
7a446686 RD |
12266 | } |
12267 | { | |
474c48f9 | 12268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12269 | wxToggleButton_SetLabel(_arg0,*_arg1); |
7a446686 | 12270 | |
474c48f9 | 12271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 12272 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
12273 | } Py_INCREF(Py_None); |
12274 | _resultobj = Py_None; | |
12275 | { | |
12276 | if (_obj1) | |
12277 | delete _arg1; | |
12278 | } | |
12279 | return _resultobj; | |
12280 | } | |
12281 | ||
70551f47 | 12282 | static PyMethodDef controlscMethods[] = { |
7a446686 RD |
12283 | { "wxToggleButton_SetLabel", (PyCFunction) _wrap_wxToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
12284 | { "wxToggleButton_GetValue", (PyCFunction) _wrap_wxToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12285 | { "wxToggleButton_SetValue", (PyCFunction) _wrap_wxToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12286 | { "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, |
12287 | { "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
7a446686 | 12288 | { "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 12289 | { "wxSpinCtrl_SetSelection", (PyCFunction) _wrap_wxSpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
12290 | { "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
12291 | { "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
12292 | { "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12293 | { "wxSpinCtrl_GetMin", (PyCFunction) _wrap_wxSpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
12294 | { "wxSpinCtrl_GetMax", (PyCFunction) _wrap_wxSpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12295 | { "wxSpinCtrl_Create", (PyCFunction) _wrap_wxSpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
12296 | { "new_wxPreSpinCtrl", (PyCFunction) _wrap_new_wxPreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12297 | { "new_wxSpinCtrl", (PyCFunction) _wrap_new_wxSpinCtrl, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12298 | { "wxSlider_SetValue", (PyCFunction) _wrap_wxSlider_SetValue, METH_VARARGS | METH_KEYWORDS }, |
12299 | { "wxSlider_SetTick", (PyCFunction) _wrap_wxSlider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
12300 | { "wxSlider_SetThumbLength", (PyCFunction) _wrap_wxSlider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
12301 | { "wxSlider_SetSelection", (PyCFunction) _wrap_wxSlider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12302 | { "wxSlider_SetPageSize", (PyCFunction) _wrap_wxSlider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
12303 | { "wxSlider_SetLineSize", (PyCFunction) _wrap_wxSlider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
12304 | { "wxSlider_SetTickFreq", (PyCFunction) _wrap_wxSlider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
12305 | { "wxSlider_SetRange", (PyCFunction) _wrap_wxSlider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
12306 | { "wxSlider_GetValue", (PyCFunction) _wrap_wxSlider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12307 | { "wxSlider_GetTickFreq", (PyCFunction) _wrap_wxSlider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
12308 | { "wxSlider_GetThumbLength", (PyCFunction) _wrap_wxSlider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
12309 | { "wxSlider_GetSelStart", (PyCFunction) _wrap_wxSlider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
12310 | { "wxSlider_GetSelEnd", (PyCFunction) _wrap_wxSlider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
12311 | { "wxSlider_GetPageSize", (PyCFunction) _wrap_wxSlider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
12312 | { "wxSlider_GetMin", (PyCFunction) _wrap_wxSlider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
12313 | { "wxSlider_GetMax", (PyCFunction) _wrap_wxSlider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
12314 | { "wxSlider_GetLineSize", (PyCFunction) _wrap_wxSlider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
12315 | { "wxSlider_ClearTicks", (PyCFunction) _wrap_wxSlider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
12316 | { "wxSlider_ClearSel", (PyCFunction) _wrap_wxSlider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12317 | { "wxSlider_Create", (PyCFunction) _wrap_wxSlider_Create, METH_VARARGS | METH_KEYWORDS }, |
12318 | { "new_wxPreSlider", (PyCFunction) _wrap_new_wxPreSlider, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12319 | { "new_wxSlider", (PyCFunction) _wrap_new_wxSlider, METH_VARARGS | METH_KEYWORDS }, |
12320 | { "wxRadioButton_SetValue", (PyCFunction) _wrap_wxRadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
12321 | { "wxRadioButton_GetValue", (PyCFunction) _wrap_wxRadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12322 | { "wxRadioButton_Create", (PyCFunction) _wrap_wxRadioButton_Create, METH_VARARGS | METH_KEYWORDS }, |
12323 | { "new_wxPreRadioButton", (PyCFunction) _wrap_new_wxPreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12324 | { "new_wxRadioButton", (PyCFunction) _wrap_new_wxRadioButton, METH_VARARGS | METH_KEYWORDS }, |
12325 | { "wxRadioBox_ShowItem", (PyCFunction) _wrap_wxRadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
12326 | { "wxRadioBox_Show", (PyCFunction) _wrap_wxRadioBox_Show, METH_VARARGS | METH_KEYWORDS }, | |
12327 | { "wxRadioBox_SetStringSelection", (PyCFunction) _wrap_wxRadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12328 | { "wxRadioBox_SetSelection", (PyCFunction) _wrap_wxRadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 12329 | { "wxRadioBox_GetCount", (PyCFunction) _wrap_wxRadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12330 | { "wxRadioBox_GetStringSelection", (PyCFunction) _wrap_wxRadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12331 | { "wxRadioBox_GetSelection", (PyCFunction) _wrap_wxRadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
b67a9327 | 12332 | { "wxRadioBox_SetString", (PyCFunction) _wrap_wxRadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 12333 | { "wxRadioBox_GetString", (PyCFunction) _wrap_wxRadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12334 | { "wxRadioBox_FindString", (PyCFunction) _wrap_wxRadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, |
12335 | { "wxRadioBox_EnableItem", (PyCFunction) _wrap_wxRadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
12336 | { "wxRadioBox_Enable", (PyCFunction) _wrap_wxRadioBox_Enable, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12337 | { "wxRadioBox_Create", (PyCFunction) _wrap_wxRadioBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12338 | { "new_wxPreRadioBox", (PyCFunction) _wrap_new_wxPreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12339 | { "new_wxRadioBox", (PyCFunction) _wrap_new_wxRadioBox, METH_VARARGS | METH_KEYWORDS }, |
12340 | { "wxStaticBitmap_SetIcon", (PyCFunction) _wrap_wxStaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
12341 | { "wxStaticBitmap_SetBitmap", (PyCFunction) _wrap_wxStaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12342 | { "wxStaticBitmap_GetBitmap", (PyCFunction) _wrap_wxStaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12343 | { "wxStaticBitmap_Create", (PyCFunction) _wrap_wxStaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, |
12344 | { "new_wxPreStaticBitmap", (PyCFunction) _wrap_new_wxPreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12345 | { "new_wxStaticBitmap", (PyCFunction) _wrap_new_wxStaticBitmap, METH_VARARGS | METH_KEYWORDS }, |
12346 | { "wxSpinButton_SetValue", (PyCFunction) _wrap_wxSpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
12347 | { "wxSpinButton_SetRange", (PyCFunction) _wrap_wxSpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
12348 | { "wxSpinButton_GetValue", (PyCFunction) _wrap_wxSpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12349 | { "wxSpinButton_GetMin", (PyCFunction) _wrap_wxSpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
12350 | { "wxSpinButton_GetMax", (PyCFunction) _wrap_wxSpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12351 | { "wxSpinButton_Create", (PyCFunction) _wrap_wxSpinButton_Create, METH_VARARGS | METH_KEYWORDS }, |
12352 | { "new_wxPreSpinButton", (PyCFunction) _wrap_new_wxPreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12353 | { "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS }, |
12354 | { "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
12355 | { "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a | 12356 | { "wxScrollBar_IsVertical", (PyCFunction) _wrap_wxScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 12357 | { "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12358 | { "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, |
12359 | { "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
12360 | { "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
12361 | { "wxScrollBar_GetRange", (PyCFunction) _wrap_wxScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12362 | { "wxScrollBar_Create", (PyCFunction) _wrap_wxScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, |
12363 | { "new_wxPreScrollBar", (PyCFunction) _wrap_new_wxPreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12364 | { "new_wxScrollBar", (PyCFunction) _wrap_new_wxScrollBar, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 12365 | { "wxTextCtrl_GetString", (PyCFunction) _wrap_wxTextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 12366 | { "wxTextCtrl_write", (PyCFunction) _wrap_wxTextCtrl_write, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 RD |
12367 | { "wxTextCtrl_IsMultiLine", (PyCFunction) _wrap_wxTextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, |
12368 | { "wxTextCtrl_IsSingleLine", (PyCFunction) _wrap_wxTextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
12369 | { "wxTextCtrl_SetEditable", (PyCFunction) _wrap_wxTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
12370 | { "wxTextCtrl_SelectAll", (PyCFunction) _wrap_wxTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
12371 | { "wxTextCtrl_SetSelection", (PyCFunction) _wrap_wxTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12372 | { "wxTextCtrl_GetLastPosition", (PyCFunction) _wrap_wxTextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
12373 | { "wxTextCtrl_GetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
12374 | { "wxTextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
12375 | { "wxTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_wxTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
12376 | { "wxTextCtrl_CanRedo", (PyCFunction) _wrap_wxTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
12377 | { "wxTextCtrl_CanUndo", (PyCFunction) _wrap_wxTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
12378 | { "wxTextCtrl_Redo", (PyCFunction) _wrap_wxTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
12379 | { "wxTextCtrl_Undo", (PyCFunction) _wrap_wxTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12380 | { "wxTextCtrl_CanPaste", (PyCFunction) _wrap_wxTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, |
12381 | { "wxTextCtrl_CanCut", (PyCFunction) _wrap_wxTextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
12382 | { "wxTextCtrl_CanCopy", (PyCFunction) _wrap_wxTextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
12383 | { "wxTextCtrl_Paste", (PyCFunction) _wrap_wxTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, |
12384 | { "wxTextCtrl_Cut", (PyCFunction) _wrap_wxTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
12385 | { "wxTextCtrl_Copy", (PyCFunction) _wrap_wxTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
12386 | { "wxTextCtrl_ShowPosition", (PyCFunction) _wrap_wxTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
12387 | { "wxTextCtrl_PositionToXY", (PyCFunction) _wrap_wxTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12388 | { "wxTextCtrl_XYToPosition", (PyCFunction) _wrap_wxTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 12389 | { "wxTextCtrl_GetStyle", (PyCFunction) _wrap_wxTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
12390 | { "wxTextCtrl_GetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, |
12391 | { "wxTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_wxTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
12392 | { "wxTextCtrl_SetStyle", (PyCFunction) _wrap_wxTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
87439dd8 | 12393 | { "wxTextCtrl_EmulateKeyPress", (PyCFunction) _wrap_wxTextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12394 | { "wxTextCtrl_AppendText", (PyCFunction) _wrap_wxTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, |
12395 | { "wxTextCtrl_WriteText", (PyCFunction) _wrap_wxTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
a57d56d6 RD |
12396 | { "wxTextCtrl_SetMaxLength", (PyCFunction) _wrap_wxTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, |
12397 | { "wxTextCtrl_DiscardEdits", (PyCFunction) _wrap_wxTextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12398 | { "wxTextCtrl_SaveFile", (PyCFunction) _wrap_wxTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12399 | { "wxTextCtrl_LoadFile", (PyCFunction) _wrap_wxTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
12400 | { "wxTextCtrl_Remove", (PyCFunction) _wrap_wxTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, |
12401 | { "wxTextCtrl_Replace", (PyCFunction) _wrap_wxTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
12402 | { "wxTextCtrl_Clear", (PyCFunction) _wrap_wxTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
93283355 | 12403 | { "wxTextCtrl_GetStringSelection", (PyCFunction) _wrap_wxTextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
12404 | { "wxTextCtrl_GetSelection", (PyCFunction) _wrap_wxTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
12405 | { "wxTextCtrl_IsEditable", (PyCFunction) _wrap_wxTextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12406 | { "wxTextCtrl_IsModified", (PyCFunction) _wrap_wxTextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12407 | { "wxTextCtrl_GetNumberOfLines", (PyCFunction) _wrap_wxTextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, |
12408 | { "wxTextCtrl_GetLineText", (PyCFunction) _wrap_wxTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
12409 | { "wxTextCtrl_GetLineLength", (PyCFunction) _wrap_wxTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
db34b2d4 | 12410 | { "wxTextCtrl_GetRange", (PyCFunction) _wrap_wxTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 RD |
12411 | { "wxTextCtrl_SetValue", (PyCFunction) _wrap_wxTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
12412 | { "wxTextCtrl_GetValue", (PyCFunction) _wrap_wxTextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12413 | { "wxTextCtrl_Create", (PyCFunction) _wrap_wxTextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
12414 | { "new_wxPreTextCtrl", (PyCFunction) _wrap_new_wxPreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12415 | { "new_wxTextCtrl", (PyCFunction) _wrap_new_wxTextCtrl, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 12416 | { "wxTextAttr_Combine", (PyCFunction) _wrap_wxTextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, |
a57d56d6 | 12417 | { "wxTextAttr_IsDefault", (PyCFunction) _wrap_wxTextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 RD |
12418 | { "wxTextAttr_GetFlags", (PyCFunction) _wrap_wxTextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
12419 | { "wxTextAttr_GetRightIndent", (PyCFunction) _wrap_wxTextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
12420 | { "wxTextAttr_GetLeftIndent", (PyCFunction) _wrap_wxTextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
12421 | { "wxTextAttr_GetTabs", (PyCFunction) _wrap_wxTextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
12422 | { "wxTextAttr_GetAlignment", (PyCFunction) _wrap_wxTextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a RD |
12423 | { "wxTextAttr_GetFont", (PyCFunction) _wrap_wxTextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
12424 | { "wxTextAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12425 | { "wxTextAttr_GetTextColour", (PyCFunction) _wrap_wxTextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
3ef86e32 RD |
12426 | { "wxTextAttr_HasFlag", (PyCFunction) _wrap_wxTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
12427 | { "wxTextAttr_HasRightIndent", (PyCFunction) _wrap_wxTextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
12428 | { "wxTextAttr_HasLeftIndent", (PyCFunction) _wrap_wxTextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
12429 | { "wxTextAttr_HasTabs", (PyCFunction) _wrap_wxTextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
12430 | { "wxTextAttr_HasAlignment", (PyCFunction) _wrap_wxTextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a RD |
12431 | { "wxTextAttr_HasFont", (PyCFunction) _wrap_wxTextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, |
12432 | { "wxTextAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12433 | { "wxTextAttr_HasTextColour", (PyCFunction) _wrap_wxTextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
3ef86e32 RD |
12434 | { "wxTextAttr_SetFlags", (PyCFunction) _wrap_wxTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, |
12435 | { "wxTextAttr_SetRightIndent", (PyCFunction) _wrap_wxTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
12436 | { "wxTextAttr_SetLeftIndent", (PyCFunction) _wrap_wxTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
12437 | { "wxTextAttr_SetTabs", (PyCFunction) _wrap_wxTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
12438 | { "wxTextAttr_SetAlignment", (PyCFunction) _wrap_wxTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a RD |
12439 | { "wxTextAttr_SetFont", (PyCFunction) _wrap_wxTextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, |
12440 | { "wxTextAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
12441 | { "wxTextAttr_SetTextColour", (PyCFunction) _wrap_wxTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
3ef86e32 | 12442 | { "wxTextAttr_Init", (PyCFunction) _wrap_wxTextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a RD |
12443 | { "delete_wxTextAttr", (PyCFunction) _wrap_delete_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, |
12444 | { "new_wxTextAttr", (PyCFunction) _wrap_new_wxTextAttr, METH_VARARGS | METH_KEYWORDS }, | |
c81fd4b9 RD |
12445 | { "wxCheckListBox_HitTestXY", (PyCFunction) _wrap_wxCheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, |
12446 | { "wxCheckListBox_HitTest", (PyCFunction) _wrap_wxCheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12447 | { "wxCheckListBox_GetItemHeight", (PyCFunction) _wrap_wxCheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 12448 | { "wxCheckListBox_InsertItems", (PyCFunction) _wrap_wxCheckListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12449 | { "wxCheckListBox_Check", (PyCFunction) _wrap_wxCheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, |
12450 | { "wxCheckListBox_IsChecked", (PyCFunction) _wrap_wxCheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12451 | { "wxCheckListBox_Create", (PyCFunction) _wrap_wxCheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12452 | { "new_wxPreCheckListBox", (PyCFunction) _wrap_new_wxPreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12453 | { "new_wxCheckListBox", (PyCFunction) _wrap_new_wxCheckListBox, METH_VARARGS | METH_KEYWORDS }, |
12454 | { "wxListBox_SetStringSelection", (PyCFunction) _wrap_wxListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12455 | { "wxListBox_SetString", (PyCFunction) _wrap_wxListBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
12456 | { "wxListBox_SetSelection", (PyCFunction) _wrap_wxListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12457 | { "wxListBox_SetFirstItemStr", (PyCFunction) _wrap_wxListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
12458 | { "wxListBox_SetFirstItem", (PyCFunction) _wrap_wxListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
12459 | { "wxListBox_Set", (PyCFunction) _wrap_wxListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
12460 | { "wxListBox_Selected", (PyCFunction) _wrap_wxListBox_Selected, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 12461 | { "wxListBox_IsSelected", (PyCFunction) _wrap_wxListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 | 12462 | { "wxListBox_InsertItems", (PyCFunction) _wrap_wxListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12463 | { "wxListBox_GetSelections", (PyCFunction) _wrap_wxListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12464 | { "wxListBox_Deselect", (PyCFunction) _wrap_wxListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12465 | { "wxListBox_Clear", (PyCFunction) _wrap_wxListBox_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12466 | { "wxListBox_Create", (PyCFunction) _wrap_wxListBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12467 | { "new_wxPreListBox", (PyCFunction) _wrap_new_wxPreListBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12468 | { "new_wxListBox", (PyCFunction) _wrap_new_wxListBox, METH_VARARGS | METH_KEYWORDS }, |
12469 | { "wxStaticText_SetLabel", (PyCFunction) _wrap_wxStaticText_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
12470 | { "wxStaticText_GetLabel", (PyCFunction) _wrap_wxStaticText_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12471 | { "wxStaticText_Create", (PyCFunction) _wrap_wxStaticText_Create, METH_VARARGS | METH_KEYWORDS }, |
12472 | { "new_wxPreStaticText", (PyCFunction) _wrap_new_wxPreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12473 | { "new_wxStaticText", (PyCFunction) _wrap_new_wxStaticText, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12474 | { "wxStaticLine_Create", (PyCFunction) _wrap_wxStaticLine_Create, METH_VARARGS | METH_KEYWORDS }, |
12475 | { "new_wxPreStaticLine", (PyCFunction) _wrap_new_wxPreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12476 | { "new_wxStaticLine", (PyCFunction) _wrap_new_wxStaticLine, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12477 | { "wxStaticBox_Create", (PyCFunction) _wrap_wxStaticBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12478 | { "new_wxPreStaticBox", (PyCFunction) _wrap_new_wxPreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12479 | { "new_wxStaticBox", (PyCFunction) _wrap_new_wxStaticBox, METH_VARARGS | METH_KEYWORDS }, |
12480 | { "wxGauge_SetValue", (PyCFunction) _wrap_wxGauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
12481 | { "wxGauge_SetShadowWidth", (PyCFunction) _wrap_wxGauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
12482 | { "wxGauge_SetRange", (PyCFunction) _wrap_wxGauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
12483 | { "wxGauge_SetBezelFace", (PyCFunction) _wrap_wxGauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
12484 | { "wxGauge_GetValue", (PyCFunction) _wrap_wxGauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
12485 | { "wxGauge_GetShadowWidth", (PyCFunction) _wrap_wxGauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
12486 | { "wxGauge_GetRange", (PyCFunction) _wrap_wxGauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
12487 | { "wxGauge_GetBezelFace", (PyCFunction) _wrap_wxGauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12488 | { "wxGauge_Create", (PyCFunction) _wrap_wxGauge_Create, METH_VARARGS | METH_KEYWORDS }, |
12489 | { "new_wxPreGauge", (PyCFunction) _wrap_new_wxPreGauge, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12490 | { "new_wxGauge", (PyCFunction) _wrap_new_wxGauge, METH_VARARGS | METH_KEYWORDS }, |
c70fd24f RD |
12491 | { "wxComboBox_SetClientData", (PyCFunction) _wrap_wxComboBox_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
12492 | { "wxComboBox_GetClientData", (PyCFunction) _wrap_wxComboBox_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
12493 | { "wxComboBox_Append", (PyCFunction) _wrap_wxComboBox_Append, METH_VARARGS | METH_KEYWORDS }, | |
12494 | { "wxComboBox_GetStringSelection", (PyCFunction) _wrap_wxComboBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12495 | { "wxComboBox_GetSelection", (PyCFunction) _wrap_wxComboBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12496 | { "wxComboBox_FindString", (PyCFunction) _wrap_wxComboBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
12497 | { "wxComboBox_GetString", (PyCFunction) _wrap_wxComboBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
12498 | { "wxComboBox_GetCount", (PyCFunction) _wrap_wxComboBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
12499 | { "wxComboBox_Delete", (PyCFunction) _wrap_wxComboBox_Delete, METH_VARARGS | METH_KEYWORDS }, | |
12500 | { "wxComboBox_Clear", (PyCFunction) _wrap_wxComboBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
2c8a649d | 12501 | { "wxComboBox_SetEditable", (PyCFunction) _wrap_wxComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12502 | { "wxComboBox_SetValue", (PyCFunction) _wrap_wxComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, |
12503 | { "wxComboBox_SetMark", (PyCFunction) _wrap_wxComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
12504 | { "wxComboBox_SetSelection", (PyCFunction) _wrap_wxComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12505 | { "wxComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_wxComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
12506 | { "wxComboBox_SetInsertionPoint", (PyCFunction) _wrap_wxComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
12507 | { "wxComboBox_Remove", (PyCFunction) _wrap_wxComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
12508 | { "wxComboBox_Replace", (PyCFunction) _wrap_wxComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
12509 | { "wxComboBox_Paste", (PyCFunction) _wrap_wxComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12510 | { "wxComboBox_GetValue", (PyCFunction) _wrap_wxComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12511 | { "wxComboBox_GetLastPosition", (PyCFunction) _wrap_wxComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, |
12512 | { "wxComboBox_GetInsertionPoint", (PyCFunction) _wrap_wxComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12513 | { "wxComboBox_Cut", (PyCFunction) _wrap_wxComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, |
12514 | { "wxComboBox_Copy", (PyCFunction) _wrap_wxComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12515 | { "wxComboBox_Create", (PyCFunction) _wrap_wxComboBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12516 | { "new_wxPreComboBox", (PyCFunction) _wrap_new_wxPreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12517 | { "new_wxComboBox", (PyCFunction) _wrap_new_wxComboBox, METH_VARARGS | METH_KEYWORDS }, |
2c8a649d | 12518 | { "wxChoice_SetString", (PyCFunction) _wrap_wxChoice_SetString, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
12519 | { "wxChoice_SetStringSelection", (PyCFunction) _wrap_wxChoice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
12520 | { "wxChoice_SetSelection", (PyCFunction) _wrap_wxChoice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12521 | { "wxChoice_SetColumns", (PyCFunction) _wrap_wxChoice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12522 | { "wxChoice_GetColumns", (PyCFunction) _wrap_wxChoice_GetColumns, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12523 | { "wxChoice_Clear", (PyCFunction) _wrap_wxChoice_Clear, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12524 | { "wxChoice_Create", (PyCFunction) _wrap_wxChoice_Create, METH_VARARGS | METH_KEYWORDS }, |
12525 | { "new_wxPreChoice", (PyCFunction) _wrap_new_wxPreChoice, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12526 | { "new_wxChoice", (PyCFunction) _wrap_new_wxChoice, METH_VARARGS | METH_KEYWORDS }, |
12527 | { "wxCheckBox_SetValue", (PyCFunction) _wrap_wxCheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 12528 | { "wxCheckBox_IsChecked", (PyCFunction) _wrap_wxCheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 12529 | { "wxCheckBox_GetValue", (PyCFunction) _wrap_wxCheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12530 | { "wxCheckBox_Create", (PyCFunction) _wrap_wxCheckBox_Create, METH_VARARGS | METH_KEYWORDS }, |
12531 | { "new_wxPreCheckBox", (PyCFunction) _wrap_new_wxPreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12532 | { "new_wxCheckBox", (PyCFunction) _wrap_new_wxCheckBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12533 | { "wxBitmapButton_GetMarginY", (PyCFunction) _wrap_wxBitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, |
12534 | { "wxBitmapButton_GetMarginX", (PyCFunction) _wrap_wxBitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
12535 | { "wxBitmapButton_SetMargins", (PyCFunction) _wrap_wxBitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12536 | { "wxBitmapButton_SetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, |
12537 | { "wxBitmapButton_SetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
12538 | { "wxBitmapButton_SetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
12539 | { "wxBitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
12540 | { "wxBitmapButton_GetBitmapSelected", (PyCFunction) _wrap_wxBitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
12541 | { "wxBitmapButton_GetBitmapFocus", (PyCFunction) _wrap_wxBitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
12542 | { "wxBitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_wxBitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
12543 | { "wxBitmapButton_GetBitmapLabel", (PyCFunction) _wrap_wxBitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
12544 | { "wxBitmapButton_Create", (PyCFunction) _wrap_wxBitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, |
12545 | { "new_wxPreBitmapButton", (PyCFunction) _wrap_new_wxPreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12546 | { "new_wxBitmapButton", (PyCFunction) _wrap_new_wxBitmapButton, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 12547 | { "wxButton_GetDefaultSize", (PyCFunction) _wrap_wxButton_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 RD |
12548 | { "wxButton_SetForegroundColour", (PyCFunction) _wrap_wxButton_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
12549 | { "wxButton_SetBackgroundColour", (PyCFunction) _wrap_wxButton_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12550 | { "wxButton_SetDefault", (PyCFunction) _wrap_wxButton_SetDefault, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12551 | { "wxButton_Create", (PyCFunction) _wrap_wxButton_Create, METH_VARARGS | METH_KEYWORDS }, |
12552 | { "new_wxPreButton", (PyCFunction) _wrap_new_wxPreButton, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 12553 | { "new_wxButton", (PyCFunction) _wrap_new_wxButton, METH_VARARGS | METH_KEYWORDS }, |
85247b36 | 12554 | { "wxControlWithItems_AppendItems", (PyCFunction) _wrap_wxControlWithItems_AppendItems, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
12555 | { "wxControlWithItems_SetClientData", (PyCFunction) _wrap_wxControlWithItems_SetClientData, METH_VARARGS | METH_KEYWORDS }, |
12556 | { "wxControlWithItems_GetClientData", (PyCFunction) _wrap_wxControlWithItems_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
12557 | { "wxControlWithItems_Append", (PyCFunction) _wrap_wxControlWithItems_Append, METH_VARARGS | METH_KEYWORDS }, | |
12558 | { "wxControlWithItems_GetStringSelection", (PyCFunction) _wrap_wxControlWithItems_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
12559 | { "wxControlWithItems_GetSelection", (PyCFunction) _wrap_wxControlWithItems_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
12560 | { "wxControlWithItems_Select", (PyCFunction) _wrap_wxControlWithItems_Select, METH_VARARGS | METH_KEYWORDS }, | |
12561 | { "wxControlWithItems_FindString", (PyCFunction) _wrap_wxControlWithItems_FindString, METH_VARARGS | METH_KEYWORDS }, | |
12562 | { "wxControlWithItems_SetString", (PyCFunction) _wrap_wxControlWithItems_SetString, METH_VARARGS | METH_KEYWORDS }, | |
12563 | { "wxControlWithItems_GetString", (PyCFunction) _wrap_wxControlWithItems_GetString, METH_VARARGS | METH_KEYWORDS }, | |
12564 | { "wxControlWithItems_GetCount", (PyCFunction) _wrap_wxControlWithItems_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
12565 | { "wxControlWithItems_Delete", (PyCFunction) _wrap_wxControlWithItems_Delete, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
12566 | { "wxControl_SetLabel", (PyCFunction) _wrap_wxControl_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
12567 | { "wxControl_GetLabel", (PyCFunction) _wrap_wxControl_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 12568 | { "wxControl_Command", (PyCFunction) _wrap_wxControl_Command, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
12569 | { "wxControl_Create", (PyCFunction) _wrap_wxControl_Create, METH_VARARGS | METH_KEYWORDS }, |
12570 | { "new_wxPreControl", (PyCFunction) _wrap_new_wxPreControl, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 12571 | { "new_wxControl", (PyCFunction) _wrap_new_wxControl, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
12572 | { NULL, NULL } |
12573 | }; | |
2d091820 RD |
12574 | #ifdef __cplusplus |
12575 | } | |
12576 | #endif | |
12577 | /* | |
12578 | * This table is used by the pointer type-checker | |
12579 | */ | |
12580 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 12581 | { "_signed_long","_long",0}, |
4120ef2b | 12582 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
12583 | { "_wxPrintQuality","_int",0}, |
12584 | { "_wxPrintQuality","_signed_int",0}, | |
12585 | { "_wxPrintQuality","_unsigned_int",0}, | |
12586 | { "_wxPrintQuality","_wxWindowID",0}, | |
12587 | { "_wxPrintQuality","_uint",0}, | |
12588 | { "_wxPrintQuality","_EBool",0}, | |
12589 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 12590 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 12591 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
12592 | { "_long","_unsigned_long",0}, |
12593 | { "_long","_signed_long",0}, | |
4120ef2b | 12594 | { "_size_t","_wxCoord",0}, |
2d091820 | 12595 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 12596 | { "_size_t","_time_t",0}, |
2d091820 RD |
12597 | { "_size_t","_unsigned_int",0}, |
12598 | { "_size_t","_int",0}, | |
12599 | { "_size_t","_wxWindowID",0}, | |
12600 | { "_size_t","_uint",0}, | |
4120ef2b | 12601 | { "_uint","_wxCoord",0}, |
2d091820 | 12602 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12603 | { "_uint","_time_t",0}, |
2d091820 RD |
12604 | { "_uint","_size_t",0}, |
12605 | { "_uint","_unsigned_int",0}, | |
12606 | { "_uint","_int",0}, | |
12607 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12608 | { "_wxChar","_char",0}, |
f6bcfd97 | 12609 | { "_char","_wxChar",0}, |
f6bcfd97 | 12610 | { "_wxSpinButton","_wxSpinCtrl",SwigwxSpinCtrlTowxSpinButton}, |
059a841c | 12611 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 12612 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
12613 | { "_EBool","_wxPrintQuality",0}, |
12614 | { "_EBool","_signed_int",0}, | |
12615 | { "_EBool","_int",0}, | |
12616 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 12617 | { "_unsigned_long","_long",0}, |
059a841c | 12618 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 12619 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
12620 | { "_signed_int","_wxPrintQuality",0}, |
12621 | { "_signed_int","_EBool",0}, | |
12622 | { "_signed_int","_wxWindowID",0}, | |
12623 | { "_signed_int","_int",0}, | |
2d091820 | 12624 | { "_wxListBox","_wxCheckListBox",SwigwxCheckListBoxTowxListBox}, |
2d091820 RD |
12625 | { "_WXTYPE","_short",0}, |
12626 | { "_WXTYPE","_signed_short",0}, | |
12627 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
12628 | { "_unsigned_short","_WXTYPE",0}, |
12629 | { "_unsigned_short","_short",0}, | |
9df61a29 | 12630 | { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject}, |
9df61a29 | 12631 | { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject}, |
9df61a29 | 12632 | { "_wxObject","_wxSlider",SwigwxSliderTowxObject}, |
9df61a29 | 12633 | { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject}, |
9df61a29 | 12634 | { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject}, |
9df61a29 | 12635 | { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject}, |
9df61a29 | 12636 | { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject}, |
9df61a29 | 12637 | { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject}, |
9df61a29 | 12638 | { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject}, |
9df61a29 | 12639 | { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject}, |
9df61a29 | 12640 | { "_wxObject","_wxListBox",SwigwxListBoxTowxObject}, |
9df61a29 | 12641 | { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject}, |
9df61a29 | 12642 | { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject}, |
9df61a29 | 12643 | { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject}, |
9df61a29 | 12644 | { "_wxObject","_wxGauge",SwigwxGaugeTowxObject}, |
9df61a29 | 12645 | { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject}, |
9df61a29 | 12646 | { "_wxObject","_wxChoice",SwigwxChoiceTowxObject}, |
9df61a29 | 12647 | { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject}, |
9df61a29 | 12648 | { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject}, |
9df61a29 | 12649 | { "_wxObject","_wxButton",SwigwxButtonTowxObject}, |
65191ae8 | 12650 | { "_wxObject","_wxControlWithItems",SwigwxControlWithItemsTowxObject}, |
9df61a29 | 12651 | { "_wxObject","_wxControl",SwigwxControlTowxObject}, |
2d091820 RD |
12652 | { "_signed_short","_WXTYPE",0}, |
12653 | { "_signed_short","_short",0}, | |
2d091820 | 12654 | { "_unsigned_char","_byte",0}, |
7a446686 | 12655 | { "_wxControl","_wxToggleButton",SwigwxToggleButtonTowxControl}, |
f6bcfd97 | 12656 | { "_wxControl","_wxSpinCtrl",SwigwxSpinCtrlTowxControl}, |
2d091820 | 12657 | { "_wxControl","_wxSlider",SwigwxSliderTowxControl}, |
2d091820 | 12658 | { "_wxControl","_wxRadioButton",SwigwxRadioButtonTowxControl}, |
2d091820 | 12659 | { "_wxControl","_wxRadioBox",SwigwxRadioBoxTowxControl}, |
2d091820 | 12660 | { "_wxControl","_wxStaticBitmap",SwigwxStaticBitmapTowxControl}, |
2d091820 | 12661 | { "_wxControl","_wxSpinButton",SwigwxSpinButtonTowxControl}, |
2d091820 | 12662 | { "_wxControl","_wxScrollBar",SwigwxScrollBarTowxControl}, |
2d091820 | 12663 | { "_wxControl","_wxTextCtrl",SwigwxTextCtrlTowxControl}, |
2d091820 | 12664 | { "_wxControl","_wxCheckListBox",SwigwxCheckListBoxTowxControl}, |
2d091820 | 12665 | { "_wxControl","_wxListBox",SwigwxListBoxTowxControl}, |
2d091820 | 12666 | { "_wxControl","_wxStaticText",SwigwxStaticTextTowxControl}, |
2d091820 | 12667 | { "_wxControl","_wxStaticLine",SwigwxStaticLineTowxControl}, |
2d091820 | 12668 | { "_wxControl","_wxStaticBox",SwigwxStaticBoxTowxControl}, |
2d091820 | 12669 | { "_wxControl","_wxGauge",SwigwxGaugeTowxControl}, |
2d091820 | 12670 | { "_wxControl","_wxComboBox",SwigwxComboBoxTowxControl}, |
2d091820 | 12671 | { "_wxControl","_wxChoice",SwigwxChoiceTowxControl}, |
2d091820 | 12672 | { "_wxControl","_wxCheckBox",SwigwxCheckBoxTowxControl}, |
2d091820 | 12673 | { "_wxControl","_wxBitmapButton",SwigwxBitmapButtonTowxControl}, |
2d091820 | 12674 | { "_wxControl","_wxButton",SwigwxButtonTowxControl}, |
65191ae8 | 12675 | { "_wxControl","_wxControlWithItems",SwigwxControlWithItemsTowxControl}, |
4120ef2b | 12676 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 12677 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12678 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
12679 | { "_unsigned_int","_size_t",0}, |
12680 | { "_unsigned_int","_uint",0}, | |
12681 | { "_unsigned_int","_wxWindowID",0}, | |
12682 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
12683 | { "_short","_WXTYPE",0}, |
12684 | { "_short","_unsigned_short",0}, | |
12685 | { "_short","_signed_short",0}, | |
65191ae8 | 12686 | { "_wxControlWithItems","_wxCheckListBox",SwigwxCheckListBoxTowxControlWithItems}, |
65191ae8 | 12687 | { "_wxControlWithItems","_wxListBox",SwigwxListBoxTowxControlWithItems}, |
65191ae8 | 12688 | { "_wxControlWithItems","_wxChoice",SwigwxChoiceTowxControlWithItems}, |
4120ef2b | 12689 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 12690 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12691 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
12692 | { "_wxWindowID","_size_t",0}, |
12693 | { "_wxWindowID","_EBool",0}, | |
12694 | { "_wxWindowID","_uint",0}, | |
12695 | { "_wxWindowID","_int",0}, | |
12696 | { "_wxWindowID","_signed_int",0}, | |
12697 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 12698 | { "_int","_wxCoord",0}, |
2d091820 | 12699 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12700 | { "_int","_time_t",0}, |
2d091820 RD |
12701 | { "_int","_size_t",0}, |
12702 | { "_int","_EBool",0}, | |
12703 | { "_int","_uint",0}, | |
12704 | { "_int","_wxWindowID",0}, | |
12705 | { "_int","_unsigned_int",0}, | |
12706 | { "_int","_signed_int",0}, | |
c368d904 RD |
12707 | { "_time_t","_wxCoord",0}, |
12708 | { "_time_t","_wxPrintQuality",0}, | |
12709 | { "_time_t","_unsigned_int",0}, | |
12710 | { "_time_t","_int",0}, | |
12711 | { "_time_t","_wxWindowID",0}, | |
12712 | { "_time_t","_uint",0}, | |
12713 | { "_time_t","_size_t",0}, | |
2d091820 | 12714 | { "_wxButton","_wxBitmapButton",SwigwxBitmapButtonTowxButton}, |
4120ef2b RD |
12715 | { "_wxCoord","_int",0}, |
12716 | { "_wxCoord","_signed_int",0}, | |
12717 | { "_wxCoord","_unsigned_int",0}, | |
12718 | { "_wxCoord","_wxWindowID",0}, | |
12719 | { "_wxCoord","_uint",0}, | |
12720 | { "_wxCoord","_EBool",0}, | |
12721 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12722 | { "_wxCoord","_time_t",0}, |
4120ef2b | 12723 | { "_wxCoord","_wxPrintQuality",0}, |
7a446686 | 12724 | { "_wxEvtHandler","_wxToggleButton",SwigwxToggleButtonTowxEvtHandler}, |
f6bcfd97 | 12725 | { "_wxEvtHandler","_wxSpinCtrl",SwigwxSpinCtrlTowxEvtHandler}, |
2d091820 | 12726 | { "_wxEvtHandler","_wxSlider",SwigwxSliderTowxEvtHandler}, |
2d091820 | 12727 | { "_wxEvtHandler","_wxRadioButton",SwigwxRadioButtonTowxEvtHandler}, |
2d091820 | 12728 | { "_wxEvtHandler","_wxRadioBox",SwigwxRadioBoxTowxEvtHandler}, |
2d091820 | 12729 | { "_wxEvtHandler","_wxStaticBitmap",SwigwxStaticBitmapTowxEvtHandler}, |
2d091820 | 12730 | { "_wxEvtHandler","_wxSpinButton",SwigwxSpinButtonTowxEvtHandler}, |
2d091820 | 12731 | { "_wxEvtHandler","_wxScrollBar",SwigwxScrollBarTowxEvtHandler}, |
2d091820 | 12732 | { "_wxEvtHandler","_wxTextCtrl",SwigwxTextCtrlTowxEvtHandler}, |
2d091820 | 12733 | { "_wxEvtHandler","_wxCheckListBox",SwigwxCheckListBoxTowxEvtHandler}, |
2d091820 | 12734 | { "_wxEvtHandler","_wxListBox",SwigwxListBoxTowxEvtHandler}, |
2d091820 | 12735 | { "_wxEvtHandler","_wxStaticText",SwigwxStaticTextTowxEvtHandler}, |
2d091820 | 12736 | { "_wxEvtHandler","_wxStaticLine",SwigwxStaticLineTowxEvtHandler}, |
2d091820 | 12737 | { "_wxEvtHandler","_wxStaticBox",SwigwxStaticBoxTowxEvtHandler}, |
2d091820 | 12738 | { "_wxEvtHandler","_wxGauge",SwigwxGaugeTowxEvtHandler}, |
2d091820 | 12739 | { "_wxEvtHandler","_wxComboBox",SwigwxComboBoxTowxEvtHandler}, |
2d091820 | 12740 | { "_wxEvtHandler","_wxChoice",SwigwxChoiceTowxEvtHandler}, |
2d091820 | 12741 | { "_wxEvtHandler","_wxCheckBox",SwigwxCheckBoxTowxEvtHandler}, |
2d091820 | 12742 | { "_wxEvtHandler","_wxBitmapButton",SwigwxBitmapButtonTowxEvtHandler}, |
2d091820 | 12743 | { "_wxEvtHandler","_wxButton",SwigwxButtonTowxEvtHandler}, |
65191ae8 | 12744 | { "_wxEvtHandler","_wxControlWithItems",SwigwxControlWithItemsTowxEvtHandler}, |
2d091820 | 12745 | { "_wxEvtHandler","_wxControl",SwigwxControlTowxEvtHandler}, |
7a446686 | 12746 | { "_wxWindow","_wxToggleButton",SwigwxToggleButtonTowxWindow}, |
f6bcfd97 | 12747 | { "_wxWindow","_wxSpinCtrl",SwigwxSpinCtrlTowxWindow}, |
2d091820 | 12748 | { "_wxWindow","_wxSlider",SwigwxSliderTowxWindow}, |
2d091820 | 12749 | { "_wxWindow","_wxRadioButton",SwigwxRadioButtonTowxWindow}, |
2d091820 | 12750 | { "_wxWindow","_wxRadioBox",SwigwxRadioBoxTowxWindow}, |
2d091820 | 12751 | { "_wxWindow","_wxStaticBitmap",SwigwxStaticBitmapTowxWindow}, |
2d091820 | 12752 | { "_wxWindow","_wxSpinButton",SwigwxSpinButtonTowxWindow}, |
2d091820 | 12753 | { "_wxWindow","_wxScrollBar",SwigwxScrollBarTowxWindow}, |
2d091820 | 12754 | { "_wxWindow","_wxTextCtrl",SwigwxTextCtrlTowxWindow}, |
2d091820 | 12755 | { "_wxWindow","_wxCheckListBox",SwigwxCheckListBoxTowxWindow}, |
2d091820 | 12756 | { "_wxWindow","_wxListBox",SwigwxListBoxTowxWindow}, |
2d091820 | 12757 | { "_wxWindow","_wxStaticText",SwigwxStaticTextTowxWindow}, |
2d091820 | 12758 | { "_wxWindow","_wxStaticLine",SwigwxStaticLineTowxWindow}, |
2d091820 | 12759 | { "_wxWindow","_wxStaticBox",SwigwxStaticBoxTowxWindow}, |
2d091820 | 12760 | { "_wxWindow","_wxGauge",SwigwxGaugeTowxWindow}, |
2d091820 | 12761 | { "_wxWindow","_wxComboBox",SwigwxComboBoxTowxWindow}, |
2d091820 | 12762 | { "_wxWindow","_wxChoice",SwigwxChoiceTowxWindow}, |
2d091820 | 12763 | { "_wxWindow","_wxCheckBox",SwigwxCheckBoxTowxWindow}, |
2d091820 | 12764 | { "_wxWindow","_wxBitmapButton",SwigwxBitmapButtonTowxWindow}, |
2d091820 | 12765 | { "_wxWindow","_wxButton",SwigwxButtonTowxWindow}, |
65191ae8 | 12766 | { "_wxWindow","_wxControlWithItems",SwigwxControlWithItemsTowxWindow}, |
2d091820 | 12767 | { "_wxWindow","_wxControl",SwigwxControlTowxWindow}, |
2d091820 RD |
12768 | {0,0,0}}; |
12769 | ||
70551f47 RD |
12770 | static PyObject *SWIG_globals; |
12771 | #ifdef __cplusplus | |
12772 | extern "C" | |
12773 | #endif | |
2d091820 | 12774 | SWIGEXPORT(void) initcontrolsc() { |
70551f47 RD |
12775 | PyObject *m, *d; |
12776 | SWIG_globals = SWIG_newvarlink(); | |
12777 | m = Py_InitModule("controlsc", controlscMethods); | |
12778 | d = PyModule_GetDict(m); | |
37f6a977 RD |
12779 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12780 | SWIG_addvarlink(SWIG_globals,"wxDefaultValidator",_wrap_wxDefaultValidator_get, _wrap_wxDefaultValidator_set); | |
3ef86e32 RD |
12781 | PyDict_SetItemString(d,"wxTE_NO_VSCROLL", PyInt_FromLong((long) wxTE_NO_VSCROLL)); |
12782 | PyDict_SetItemString(d,"wxTE_AUTO_SCROLL", PyInt_FromLong((long) wxTE_AUTO_SCROLL)); | |
12783 | PyDict_SetItemString(d,"wxTE_READONLY", PyInt_FromLong((long) wxTE_READONLY)); | |
12784 | PyDict_SetItemString(d,"wxTE_MULTILINE", PyInt_FromLong((long) wxTE_MULTILINE)); | |
12785 | PyDict_SetItemString(d,"wxTE_PROCESS_TAB", PyInt_FromLong((long) wxTE_PROCESS_TAB)); | |
12786 | PyDict_SetItemString(d,"wxTE_LEFT", PyInt_FromLong((long) wxTE_LEFT)); | |
12787 | PyDict_SetItemString(d,"wxTE_CENTER", PyInt_FromLong((long) wxTE_CENTER)); | |
12788 | PyDict_SetItemString(d,"wxTE_RIGHT", PyInt_FromLong((long) wxTE_RIGHT)); | |
12789 | PyDict_SetItemString(d,"wxTE_CENTRE", PyInt_FromLong((long) wxTE_CENTRE)); | |
12790 | PyDict_SetItemString(d,"wxTE_RICH", PyInt_FromLong((long) wxTE_RICH)); | |
12791 | PyDict_SetItemString(d,"wxTE_PROCESS_ENTER", PyInt_FromLong((long) wxTE_PROCESS_ENTER)); | |
12792 | PyDict_SetItemString(d,"wxTE_PASSWORD", PyInt_FromLong((long) wxTE_PASSWORD)); | |
12793 | PyDict_SetItemString(d,"wxTE_AUTO_URL", PyInt_FromLong((long) wxTE_AUTO_URL)); | |
12794 | PyDict_SetItemString(d,"wxTE_NOHIDESEL", PyInt_FromLong((long) wxTE_NOHIDESEL)); | |
12795 | PyDict_SetItemString(d,"wxTE_DONTWRAP", PyInt_FromLong((long) wxTE_DONTWRAP)); | |
12796 | PyDict_SetItemString(d,"wxTE_LINEWRAP", PyInt_FromLong((long) wxTE_LINEWRAP)); | |
12797 | PyDict_SetItemString(d,"wxTE_WORDWRAP", PyInt_FromLong((long) wxTE_WORDWRAP)); | |
12798 | PyDict_SetItemString(d,"wxTE_RICH2", PyInt_FromLong((long) wxTE_RICH2)); | |
12799 | PyDict_SetItemString(d,"wxTEXT_ATTR_TEXT_COLOUR", PyInt_FromLong((long) wxTEXT_ATTR_TEXT_COLOUR)); | |
12800 | PyDict_SetItemString(d,"wxTEXT_ATTR_BACKGROUND_COLOUR", PyInt_FromLong((long) wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
12801 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_FACE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_FACE)); | |
12802 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_SIZE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_SIZE)); | |
12803 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_WEIGHT", PyInt_FromLong((long) wxTEXT_ATTR_FONT_WEIGHT)); | |
12804 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_ITALIC", PyInt_FromLong((long) wxTEXT_ATTR_FONT_ITALIC)); | |
12805 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT_UNDERLINE", PyInt_FromLong((long) wxTEXT_ATTR_FONT_UNDERLINE)); | |
12806 | PyDict_SetItemString(d,"wxTEXT_ATTR_FONT", PyInt_FromLong((long) wxTEXT_ATTR_FONT)); | |
12807 | PyDict_SetItemString(d,"wxTEXT_ATTR_ALIGNMENT", PyInt_FromLong((long) wxTEXT_ATTR_ALIGNMENT)); | |
12808 | PyDict_SetItemString(d,"wxTEXT_ATTR_LEFT_INDENT", PyInt_FromLong((long) wxTEXT_ATTR_LEFT_INDENT)); | |
12809 | PyDict_SetItemString(d,"wxTEXT_ATTR_RIGHT_INDENT", PyInt_FromLong((long) wxTEXT_ATTR_RIGHT_INDENT)); | |
12810 | PyDict_SetItemString(d,"wxTEXT_ATTR_TABS", PyInt_FromLong((long) wxTEXT_ATTR_TABS)); | |
12811 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_DEFAULT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_DEFAULT)); | |
12812 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_LEFT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_LEFT)); | |
12813 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_CENTRE", PyInt_FromLong((long) wxTEXT_ALIGNMENT_CENTRE)); | |
12814 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_CENTER", PyInt_FromLong((long) wxTEXT_ALIGNMENT_CENTER)); | |
12815 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_RIGHT", PyInt_FromLong((long) wxTEXT_ALIGNMENT_RIGHT)); | |
12816 | PyDict_SetItemString(d,"wxTEXT_ALIGNMENT_JUSTIFIED", PyInt_FromLong((long) wxTEXT_ALIGNMENT_JUSTIFIED)); | |
7a446686 | 12817 | PyDict_SetItemString(d,"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
2d091820 RD |
12818 | { |
12819 | int i; | |
12820 | for (i = 0; _swig_mapping[i].n1; i++) | |
12821 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12822 | } | |
70551f47 | 12823 | } |