]>
Commit | Line | Data |
---|---|---|
ebf4302c RD |
1 | /* |
2 | * FILE : contrib/gizmos/gizmos.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initgizmosc | |
55 | ||
56 | #define SWIG_name "gizmosc" | |
57 | ||
58 | #include "export.h" | |
611dc22c RD |
59 | #include <wx/gizmos/dynamicsash.h> |
60 | #include <wx/gizmos/editlbox.h> | |
61 | #include <wx/gizmos/splittree.h> | |
950e7faf | 62 | #include <wx/gizmos/ledctrl.h> |
ebf4302c RD |
63 | |
64 | ||
65 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
67 | PyObject* o3; | |
68 | ||
69 | if (!target) { | |
70 | target = o; | |
71 | } else if (target == Py_None) { | |
72 | Py_DECREF(Py_None); | |
73 | target = o; | |
74 | } else { | |
75 | if (!PyTuple_Check(target)) { | |
76 | o2 = target; | |
77 | target = PyTuple_New(1); | |
78 | PyTuple_SetItem(target, 0, o2); | |
79 | } | |
80 | o3 = PyTuple_New(1); | |
81 | PyTuple_SetItem(o3, 0, o); | |
82 | ||
83 | o2 = target; | |
84 | target = PySequence_Concat(o2, o3); | |
85 | Py_DECREF(o2); | |
86 | Py_DECREF(o3); | |
87 | } | |
88 | return target; | |
89 | } | |
90 | ||
611dc22c RD |
91 | typedef wxTreeCtrl wxPyTreeCtrl; |
92 | ||
93 | class wxPyTreeCompanionWindow: public wxTreeCompanionWindow | |
94 | { | |
95 | public: | |
96 | wxPyTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1, | |
97 | const wxPoint& pos = wxDefaultPosition, | |
98 | const wxSize& size = wxDefaultSize, | |
99 | long style = 0) | |
100 | : wxTreeCompanionWindow(parent, id, pos, size, style) {} | |
101 | ||
102 | ||
103 | virtual void DrawItem(wxDC& dc, wxTreeItemId id, const wxRect& rect) { | |
104 | bool found; | |
4268f798 | 105 | wxPyBeginBlockThreads(); |
611dc22c RD |
106 | if ((found = wxPyCBH_findCallback(m_myInst, "DrawItem"))) { |
107 | PyObject* dcobj = wxPyMake_wxObject(&dc); | |
108 | PyObject* idobj = wxPyConstructObject((void*)&id, "wxTreeItemId", FALSE); | |
109 | PyObject* recobj= wxPyConstructObject((void*)&rect, "wxRect", FALSE); | |
110 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOO)", dcobj, idobj, recobj)); | |
111 | Py_DECREF(dcobj); | |
112 | Py_DECREF(idobj); | |
113 | Py_DECREF(recobj); | |
114 | } | |
4268f798 | 115 | wxPyEndBlockThreads(); |
611dc22c RD |
116 | if (! found) |
117 | wxTreeCompanionWindow::DrawItem(dc, id, rect); | |
118 | } | |
119 | ||
120 | PYPRIVATE; | |
121 | }; | |
ebf4302c RD |
122 | #ifdef __cplusplus |
123 | extern "C" { | |
124 | #endif | |
125 | static void *SwigwxDynamicSashSplitEventTowxCommandEvent(void *ptr) { | |
126 | wxDynamicSashSplitEvent *src; | |
127 | wxCommandEvent *dest; | |
128 | src = (wxDynamicSashSplitEvent *) ptr; | |
129 | dest = (wxCommandEvent *) src; | |
130 | return (void *) dest; | |
131 | } | |
132 | ||
133 | static void *SwigwxDynamicSashSplitEventTowxEvent(void *ptr) { | |
134 | wxDynamicSashSplitEvent *src; | |
135 | wxEvent *dest; | |
136 | src = (wxDynamicSashSplitEvent *) ptr; | |
137 | dest = (wxEvent *) src; | |
138 | return (void *) dest; | |
139 | } | |
140 | ||
141 | static void *SwigwxDynamicSashSplitEventTowxObject(void *ptr) { | |
142 | wxDynamicSashSplitEvent *src; | |
143 | wxObject *dest; | |
144 | src = (wxDynamicSashSplitEvent *) ptr; | |
145 | dest = (wxObject *) src; | |
146 | return (void *) dest; | |
147 | } | |
148 | ||
149 | #define new_wxDynamicSashSplitEvent(_swigarg0) (new wxDynamicSashSplitEvent(_swigarg0)) | |
150 | static PyObject *_wrap_new_wxDynamicSashSplitEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
151 | PyObject * _resultobj; | |
152 | wxDynamicSashSplitEvent * _result; | |
153 | wxObject * _arg0; | |
154 | PyObject * _argo0 = 0; | |
155 | char *_kwnames[] = { "target", NULL }; | |
156 | char _ptemp[128]; | |
157 | ||
158 | self = self; | |
159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashSplitEvent",_kwnames,&_argo0)) | |
160 | return NULL; | |
161 | if (_argo0) { | |
162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashSplitEvent. Expected _wxObject_p."); | |
165 | return NULL; | |
166 | } | |
167 | } | |
168 | { | |
4268f798 | 169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 170 | _result = (wxDynamicSashSplitEvent *)new_wxDynamicSashSplitEvent(_arg0); |
ebf4302c | 171 | |
4268f798 RD |
172 | wxPyEndAllowThreads(__tstate); |
173 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
174 | } if (_result) { |
175 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashSplitEvent_p"); | |
176 | _resultobj = Py_BuildValue("s",_ptemp); | |
177 | } else { | |
178 | Py_INCREF(Py_None); | |
179 | _resultobj = Py_None; | |
180 | } | |
181 | return _resultobj; | |
182 | } | |
183 | ||
184 | static void *SwigwxDynamicSashUnifyEventTowxCommandEvent(void *ptr) { | |
185 | wxDynamicSashUnifyEvent *src; | |
186 | wxCommandEvent *dest; | |
187 | src = (wxDynamicSashUnifyEvent *) ptr; | |
188 | dest = (wxCommandEvent *) src; | |
189 | return (void *) dest; | |
190 | } | |
191 | ||
192 | static void *SwigwxDynamicSashUnifyEventTowxEvent(void *ptr) { | |
193 | wxDynamicSashUnifyEvent *src; | |
194 | wxEvent *dest; | |
195 | src = (wxDynamicSashUnifyEvent *) ptr; | |
196 | dest = (wxEvent *) src; | |
197 | return (void *) dest; | |
198 | } | |
199 | ||
200 | static void *SwigwxDynamicSashUnifyEventTowxObject(void *ptr) { | |
201 | wxDynamicSashUnifyEvent *src; | |
202 | wxObject *dest; | |
203 | src = (wxDynamicSashUnifyEvent *) ptr; | |
204 | dest = (wxObject *) src; | |
205 | return (void *) dest; | |
206 | } | |
207 | ||
208 | #define new_wxDynamicSashUnifyEvent(_swigarg0) (new wxDynamicSashUnifyEvent(_swigarg0)) | |
209 | static PyObject *_wrap_new_wxDynamicSashUnifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
210 | PyObject * _resultobj; | |
211 | wxDynamicSashUnifyEvent * _result; | |
212 | wxObject * _arg0; | |
213 | PyObject * _argo0 = 0; | |
214 | char *_kwnames[] = { "target", NULL }; | |
215 | char _ptemp[128]; | |
216 | ||
217 | self = self; | |
218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashUnifyEvent",_kwnames,&_argo0)) | |
219 | return NULL; | |
220 | if (_argo0) { | |
221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashUnifyEvent. Expected _wxObject_p."); | |
224 | return NULL; | |
225 | } | |
226 | } | |
227 | { | |
4268f798 | 228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 229 | _result = (wxDynamicSashUnifyEvent *)new_wxDynamicSashUnifyEvent(_arg0); |
ebf4302c | 230 | |
4268f798 RD |
231 | wxPyEndAllowThreads(__tstate); |
232 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
233 | } if (_result) { |
234 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashUnifyEvent_p"); | |
235 | _resultobj = Py_BuildValue("s",_ptemp); | |
236 | } else { | |
237 | Py_INCREF(Py_None); | |
238 | _resultobj = Py_None; | |
239 | } | |
240 | return _resultobj; | |
241 | } | |
242 | ||
243 | static void *SwigwxDynamicSashWindowTowxWindow(void *ptr) { | |
244 | wxDynamicSashWindow *src; | |
245 | wxWindow *dest; | |
246 | src = (wxDynamicSashWindow *) ptr; | |
247 | dest = (wxWindow *) src; | |
248 | return (void *) dest; | |
249 | } | |
250 | ||
251 | static void *SwigwxDynamicSashWindowTowxEvtHandler(void *ptr) { | |
252 | wxDynamicSashWindow *src; | |
253 | wxEvtHandler *dest; | |
254 | src = (wxDynamicSashWindow *) ptr; | |
255 | dest = (wxEvtHandler *) src; | |
256 | return (void *) dest; | |
257 | } | |
258 | ||
259 | static void *SwigwxDynamicSashWindowTowxObject(void *ptr) { | |
260 | wxDynamicSashWindow *src; | |
261 | wxObject *dest; | |
262 | src = (wxDynamicSashWindow *) ptr; | |
263 | dest = (wxObject *) src; | |
264 | return (void *) dest; | |
265 | } | |
266 | ||
267 | #define new_wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
268 | static PyObject *_wrap_new_wxDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
269 | PyObject * _resultobj; | |
270 | wxDynamicSashWindow * _result; | |
271 | wxWindow * _arg0; | |
272 | wxWindowID _arg1; | |
273 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
274 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
275 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER); | |
276 | char * _arg5 = (char *) "dynamicSashWindow"; | |
277 | PyObject * _argo0 = 0; | |
278 | wxPoint temp; | |
279 | PyObject * _obj2 = 0; | |
280 | wxSize temp0; | |
281 | PyObject * _obj3 = 0; | |
282 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
283 | char _ptemp[128]; | |
284 | ||
285 | self = self; | |
286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxDynamicSashWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
287 | return NULL; | |
288 | if (_argo0) { | |
289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashWindow. Expected _wxWindow_p."); | |
292 | return NULL; | |
293 | } | |
294 | } | |
295 | if (_obj2) | |
296 | { | |
297 | _arg2 = &temp; | |
298 | if (! wxPoint_helper(_obj2, &_arg2)) | |
299 | return NULL; | |
300 | } | |
301 | if (_obj3) | |
302 | { | |
303 | _arg3 = &temp0; | |
304 | if (! wxSize_helper(_obj3, &_arg3)) | |
305 | return NULL; | |
306 | } | |
307 | { | |
4268f798 | 308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 309 | _result = (wxDynamicSashWindow *)new_wxDynamicSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
ebf4302c | 310 | |
4268f798 RD |
311 | wxPyEndAllowThreads(__tstate); |
312 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
313 | } if (_result) { |
314 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p"); | |
315 | _resultobj = Py_BuildValue("s",_ptemp); | |
316 | } else { | |
317 | Py_INCREF(Py_None); | |
318 | _resultobj = Py_None; | |
319 | } | |
320 | return _resultobj; | |
321 | } | |
322 | ||
323 | #define new_wxPreDynamicSashWindow() (new wxDynamicSashWindow()) | |
324 | static PyObject *_wrap_new_wxPreDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
325 | PyObject * _resultobj; | |
326 | wxDynamicSashWindow * _result; | |
327 | char *_kwnames[] = { NULL }; | |
328 | char _ptemp[128]; | |
329 | ||
330 | self = self; | |
331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDynamicSashWindow",_kwnames)) | |
332 | return NULL; | |
333 | { | |
4268f798 | 334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 335 | _result = (wxDynamicSashWindow *)new_wxPreDynamicSashWindow(); |
ebf4302c | 336 | |
4268f798 RD |
337 | wxPyEndAllowThreads(__tstate); |
338 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
339 | } if (_result) { |
340 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p"); | |
341 | _resultobj = Py_BuildValue("s",_ptemp); | |
342 | } else { | |
343 | Py_INCREF(Py_None); | |
344 | _resultobj = Py_None; | |
345 | } | |
346 | return _resultobj; | |
347 | } | |
348 | ||
349 | #define wxDynamicSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
350 | static PyObject *_wrap_wxDynamicSashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
351 | PyObject * _resultobj; | |
352 | bool _result; | |
353 | wxDynamicSashWindow * _arg0; | |
354 | wxWindow * _arg1; | |
355 | wxWindowID _arg2; | |
356 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
357 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
358 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER); | |
359 | char * _arg6 = (char *) "dynamicSashWindow"; | |
360 | PyObject * _argo0 = 0; | |
361 | PyObject * _argo1 = 0; | |
362 | wxPoint temp; | |
363 | PyObject * _obj3 = 0; | |
364 | wxSize temp0; | |
365 | PyObject * _obj4 = 0; | |
366 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
367 | ||
368 | self = self; | |
369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxDynamicSashWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
370 | return NULL; | |
371 | if (_argo0) { | |
372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_Create. Expected _wxDynamicSashWindow_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | if (_argo1) { | |
379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_Create. Expected _wxWindow_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | if (_obj3) | |
386 | { | |
387 | _arg3 = &temp; | |
388 | if (! wxPoint_helper(_obj3, &_arg3)) | |
389 | return NULL; | |
390 | } | |
391 | if (_obj4) | |
392 | { | |
393 | _arg4 = &temp0; | |
394 | if (! wxSize_helper(_obj4, &_arg4)) | |
395 | return NULL; | |
396 | } | |
397 | { | |
4268f798 | 398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 399 | _result = (bool )wxDynamicSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
ebf4302c | 400 | |
4268f798 RD |
401 | wxPyEndAllowThreads(__tstate); |
402 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
403 | } _resultobj = Py_BuildValue("i",_result); |
404 | return _resultobj; | |
405 | } | |
406 | ||
407 | #define wxDynamicSashWindow_GetHScrollBar(_swigobj,_swigarg0) (_swigobj->GetHScrollBar(_swigarg0)) | |
408 | static PyObject *_wrap_wxDynamicSashWindow_GetHScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
409 | PyObject * _resultobj; | |
410 | wxScrollBar * _result; | |
411 | wxDynamicSashWindow * _arg0; | |
412 | wxWindow * _arg1; | |
413 | PyObject * _argo0 = 0; | |
414 | PyObject * _argo1 = 0; | |
415 | char *_kwnames[] = { "self","child", NULL }; | |
416 | char _ptemp[128]; | |
417 | ||
418 | self = self; | |
419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetHScrollBar",_kwnames,&_argo0,&_argo1)) | |
420 | return NULL; | |
421 | if (_argo0) { | |
422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetHScrollBar. Expected _wxDynamicSashWindow_p."); | |
425 | return NULL; | |
426 | } | |
427 | } | |
428 | if (_argo1) { | |
429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetHScrollBar. Expected _wxWindow_p."); | |
432 | return NULL; | |
433 | } | |
434 | } | |
435 | { | |
4268f798 | 436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 437 | _result = (wxScrollBar *)wxDynamicSashWindow_GetHScrollBar(_arg0,_arg1); |
ebf4302c | 438 | |
4268f798 RD |
439 | wxPyEndAllowThreads(__tstate); |
440 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
441 | } if (_result) { |
442 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
443 | _resultobj = Py_BuildValue("s",_ptemp); | |
444 | } else { | |
445 | Py_INCREF(Py_None); | |
446 | _resultobj = Py_None; | |
447 | } | |
448 | return _resultobj; | |
449 | } | |
450 | ||
451 | #define wxDynamicSashWindow_GetVScrollBar(_swigobj,_swigarg0) (_swigobj->GetVScrollBar(_swigarg0)) | |
452 | static PyObject *_wrap_wxDynamicSashWindow_GetVScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
453 | PyObject * _resultobj; | |
454 | wxScrollBar * _result; | |
455 | wxDynamicSashWindow * _arg0; | |
456 | wxWindow * _arg1; | |
457 | PyObject * _argo0 = 0; | |
458 | PyObject * _argo1 = 0; | |
459 | char *_kwnames[] = { "self","child", NULL }; | |
460 | char _ptemp[128]; | |
461 | ||
462 | self = self; | |
463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetVScrollBar",_kwnames,&_argo0,&_argo1)) | |
464 | return NULL; | |
465 | if (_argo0) { | |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetVScrollBar. Expected _wxDynamicSashWindow_p."); | |
469 | return NULL; | |
470 | } | |
471 | } | |
472 | if (_argo1) { | |
473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetVScrollBar. Expected _wxWindow_p."); | |
476 | return NULL; | |
477 | } | |
478 | } | |
479 | { | |
4268f798 | 480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 481 | _result = (wxScrollBar *)wxDynamicSashWindow_GetVScrollBar(_arg0,_arg1); |
ebf4302c | 482 | |
4268f798 RD |
483 | wxPyEndAllowThreads(__tstate); |
484 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
485 | } if (_result) { |
486 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
487 | _resultobj = Py_BuildValue("s",_ptemp); | |
488 | } else { | |
489 | Py_INCREF(Py_None); | |
490 | _resultobj = Py_None; | |
491 | } | |
492 | return _resultobj; | |
493 | } | |
494 | ||
7b7ac0ab RD |
495 | static void *SwigwxEditableListBoxTowxPanel(void *ptr) { |
496 | wxEditableListBox *src; | |
497 | wxPanel *dest; | |
498 | src = (wxEditableListBox *) ptr; | |
499 | dest = (wxPanel *) src; | |
500 | return (void *) dest; | |
501 | } | |
502 | ||
503 | static void *SwigwxEditableListBoxTowxWindow(void *ptr) { | |
504 | wxEditableListBox *src; | |
505 | wxWindow *dest; | |
506 | src = (wxEditableListBox *) ptr; | |
507 | dest = (wxWindow *) src; | |
508 | return (void *) dest; | |
509 | } | |
510 | ||
511 | static void *SwigwxEditableListBoxTowxEvtHandler(void *ptr) { | |
512 | wxEditableListBox *src; | |
513 | wxEvtHandler *dest; | |
514 | src = (wxEditableListBox *) ptr; | |
515 | dest = (wxEvtHandler *) src; | |
516 | return (void *) dest; | |
517 | } | |
518 | ||
519 | static void *SwigwxEditableListBoxTowxObject(void *ptr) { | |
520 | wxEditableListBox *src; | |
521 | wxObject *dest; | |
522 | src = (wxEditableListBox *) ptr; | |
523 | dest = (wxObject *) src; | |
524 | return (void *) dest; | |
525 | } | |
526 | ||
6187ec8f | 527 | #define new_wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
7b7ac0ab RD |
528 | static PyObject *_wrap_new_wxEditableListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
529 | PyObject * _resultobj; | |
530 | wxEditableListBox * _result; | |
531 | wxWindow * _arg0; | |
532 | wxWindowID _arg1; | |
533 | wxString * _arg2; | |
534 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
535 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6187ec8f RD |
536 | long _arg5 = (long ) (wxEL_ALLOW_NEW)|(wxEL_ALLOW_EDIT)|(wxEL_ALLOW_DELETE); |
537 | char * _arg6 = (char *) "editableListBox"; | |
7b7ac0ab RD |
538 | PyObject * _argo0 = 0; |
539 | PyObject * _obj2 = 0; | |
540 | wxPoint temp; | |
541 | PyObject * _obj3 = 0; | |
542 | wxSize temp0; | |
543 | PyObject * _obj4 = 0; | |
6187ec8f | 544 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
7b7ac0ab RD |
545 | char _ptemp[128]; |
546 | ||
547 | self = self; | |
6187ec8f | 548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxEditableListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
7b7ac0ab RD |
549 | return NULL; |
550 | if (_argo0) { | |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxEditableListBox. Expected _wxWindow_p."); | |
554 | return NULL; | |
555 | } | |
556 | } | |
557 | { | |
c8bc7bb8 RD |
558 | _arg2 = wxString_in_helper(_obj2); |
559 | if (_arg2 == NULL) | |
7b7ac0ab | 560 | return NULL; |
7b7ac0ab RD |
561 | } |
562 | if (_obj3) | |
563 | { | |
564 | _arg3 = &temp; | |
565 | if (! wxPoint_helper(_obj3, &_arg3)) | |
566 | return NULL; | |
567 | } | |
568 | if (_obj4) | |
569 | { | |
570 | _arg4 = &temp0; | |
571 | if (! wxSize_helper(_obj4, &_arg4)) | |
572 | return NULL; | |
573 | } | |
574 | { | |
4268f798 | 575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 576 | _result = (wxEditableListBox *)new_wxEditableListBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
7b7ac0ab | 577 | |
4268f798 RD |
578 | wxPyEndAllowThreads(__tstate); |
579 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
580 | } if (_result) { |
581 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEditableListBox_p"); | |
582 | _resultobj = Py_BuildValue("s",_ptemp); | |
583 | } else { | |
584 | Py_INCREF(Py_None); | |
585 | _resultobj = Py_None; | |
586 | } | |
587 | { | |
588 | if (_obj2) | |
589 | delete _arg2; | |
590 | } | |
591 | return _resultobj; | |
592 | } | |
593 | ||
594 | #define wxEditableListBox_SetStrings(_swigobj,_swigarg0) (_swigobj->SetStrings(_swigarg0)) | |
595 | static PyObject *_wrap_wxEditableListBox_SetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
596 | PyObject * _resultobj; | |
597 | wxEditableListBox * _arg0; | |
598 | wxArrayString * _arg1; | |
599 | PyObject * _argo0 = 0; | |
600 | PyObject * _obj1 = 0; | |
601 | char *_kwnames[] = { "self","strings", NULL }; | |
602 | ||
603 | self = self; | |
604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEditableListBox_SetStrings",_kwnames,&_argo0,&_obj1)) | |
605 | return NULL; | |
606 | if (_argo0) { | |
607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) { | |
609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_SetStrings. Expected _wxEditableListBox_p."); | |
610 | return NULL; | |
611 | } | |
612 | } | |
613 | { | |
614 | if (! PySequence_Check(_obj1)) { | |
615 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
616 | return NULL; | |
617 | } | |
618 | _arg1 = new wxArrayString; | |
619 | int i, len=PySequence_Length(_obj1); | |
620 | for (i=0; i<len; i++) { | |
621 | PyObject* item = PySequence_GetItem(_obj1, i); | |
c8bc7bb8 RD |
622 | #if wxUSE_UNICODE |
623 | PyObject* str = PyObject_Unicode(item); | |
624 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
625 | #else | |
7b7ac0ab | 626 | PyObject* str = PyObject_Str(item); |
293a0a86 | 627 | _arg1->Add(PyString_AsString(str)); |
c8bc7bb8 | 628 | #endif |
7b7ac0ab RD |
629 | Py_DECREF(item); |
630 | Py_DECREF(str); | |
631 | } | |
632 | } | |
633 | { | |
4268f798 | 634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 635 | wxEditableListBox_SetStrings(_arg0,*_arg1); |
7b7ac0ab | 636 | |
4268f798 RD |
637 | wxPyEndAllowThreads(__tstate); |
638 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
639 | } Py_INCREF(Py_None); |
640 | _resultobj = Py_None; | |
641 | { | |
642 | if (_obj1) | |
643 | delete _arg1; | |
644 | } | |
645 | return _resultobj; | |
646 | } | |
647 | ||
648 | static PyObject * wxEditableListBox_GetStrings(wxEditableListBox *self) { | |
649 | wxArrayString strings; | |
650 | self->GetStrings(strings); | |
651 | return wxArrayString2PyList_helper(strings); | |
652 | } | |
653 | static PyObject *_wrap_wxEditableListBox_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
654 | PyObject * _resultobj; | |
655 | PyObject * _result; | |
656 | wxEditableListBox * _arg0; | |
657 | PyObject * _argo0 = 0; | |
658 | char *_kwnames[] = { "self", NULL }; | |
659 | ||
660 | self = self; | |
661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetStrings",_kwnames,&_argo0)) | |
662 | return NULL; | |
663 | if (_argo0) { | |
664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) { | |
666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetStrings. Expected _wxEditableListBox_p."); | |
667 | return NULL; | |
668 | } | |
669 | } | |
670 | { | |
4268f798 | 671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 672 | _result = (PyObject *)wxEditableListBox_GetStrings(_arg0); |
7b7ac0ab | 673 | |
4268f798 RD |
674 | wxPyEndAllowThreads(__tstate); |
675 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
676 | }{ |
677 | _resultobj = _result; | |
678 | } | |
679 | return _resultobj; | |
680 | } | |
681 | ||
611dc22c RD |
682 | static void *SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl(void *ptr) { |
683 | wxRemotelyScrolledTreeCtrl *src; | |
684 | wxPyTreeCtrl *dest; | |
685 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
686 | dest = (wxPyTreeCtrl *) src; | |
687 | return (void *) dest; | |
688 | } | |
689 | ||
690 | static void *SwigwxRemotelyScrolledTreeCtrlTowxControl(void *ptr) { | |
691 | wxRemotelyScrolledTreeCtrl *src; | |
692 | wxControl *dest; | |
693 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
694 | dest = (wxControl *) src; | |
695 | return (void *) dest; | |
696 | } | |
697 | ||
698 | static void *SwigwxRemotelyScrolledTreeCtrlTowxWindow(void *ptr) { | |
699 | wxRemotelyScrolledTreeCtrl *src; | |
700 | wxWindow *dest; | |
701 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
702 | dest = (wxWindow *) src; | |
703 | return (void *) dest; | |
704 | } | |
705 | ||
706 | static void *SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler(void *ptr) { | |
707 | wxRemotelyScrolledTreeCtrl *src; | |
708 | wxEvtHandler *dest; | |
709 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
710 | dest = (wxEvtHandler *) src; | |
711 | return (void *) dest; | |
712 | } | |
713 | ||
714 | static void *SwigwxRemotelyScrolledTreeCtrlTowxObject(void *ptr) { | |
715 | wxRemotelyScrolledTreeCtrl *src; | |
716 | wxObject *dest; | |
717 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
718 | dest = (wxObject *) src; | |
719 | return (void *) dest; | |
720 | } | |
721 | ||
722 | #define new_wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
723 | static PyObject *_wrap_new_wxRemotelyScrolledTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
724 | PyObject * _resultobj; | |
725 | wxRemotelyScrolledTreeCtrl * _result; | |
726 | wxWindow * _arg0; | |
727 | wxWindowID _arg1; | |
728 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
729 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
730 | long _arg4 = (long ) wxTR_HAS_BUTTONS; | |
731 | PyObject * _argo0 = 0; | |
732 | wxPoint temp; | |
733 | PyObject * _obj2 = 0; | |
734 | wxSize temp0; | |
735 | PyObject * _obj3 = 0; | |
736 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
737 | char _ptemp[128]; | |
738 | ||
739 | self = self; | |
740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOl:new_wxRemotelyScrolledTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
741 | return NULL; | |
742 | if (_argo0) { | |
743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRemotelyScrolledTreeCtrl. Expected _wxWindow_p."); | |
746 | return NULL; | |
747 | } | |
748 | } | |
749 | if (_obj2) | |
750 | { | |
751 | _arg2 = &temp; | |
752 | if (! wxPoint_helper(_obj2, &_arg2)) | |
753 | return NULL; | |
754 | } | |
755 | if (_obj3) | |
756 | { | |
757 | _arg3 = &temp0; | |
758 | if (! wxSize_helper(_obj3, &_arg3)) | |
759 | return NULL; | |
760 | } | |
761 | { | |
4268f798 | 762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 763 | _result = (wxRemotelyScrolledTreeCtrl *)new_wxRemotelyScrolledTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 764 | |
4268f798 RD |
765 | wxPyEndAllowThreads(__tstate); |
766 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
767 | } if (_result) { |
768 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p"); | |
769 | _resultobj = Py_BuildValue("s",_ptemp); | |
770 | } else { | |
771 | Py_INCREF(Py_None); | |
772 | _resultobj = Py_None; | |
773 | } | |
774 | return _resultobj; | |
775 | } | |
776 | ||
777 | #define wxRemotelyScrolledTreeCtrl_HideVScrollbar(_swigobj) (_swigobj->HideVScrollbar()) | |
778 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxRemotelyScrolledTreeCtrl * _arg0; | |
781 | PyObject * _argo0 = 0; | |
782 | char *_kwnames[] = { "self", NULL }; | |
783 | ||
784 | self = self; | |
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_HideVScrollbar",_kwnames,&_argo0)) | |
786 | return NULL; | |
787 | if (_argo0) { | |
788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_HideVScrollbar. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
791 | return NULL; | |
792 | } | |
793 | } | |
794 | { | |
4268f798 | 795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 796 | wxRemotelyScrolledTreeCtrl_HideVScrollbar(_arg0); |
611dc22c | 797 | |
4268f798 RD |
798 | wxPyEndAllowThreads(__tstate); |
799 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
800 | } Py_INCREF(Py_None); |
801 | _resultobj = Py_None; | |
802 | return _resultobj; | |
803 | } | |
804 | ||
805 | #define wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_swigobj) (_swigobj->AdjustRemoteScrollbars()) | |
806 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
807 | PyObject * _resultobj; | |
808 | wxRemotelyScrolledTreeCtrl * _arg0; | |
809 | PyObject * _argo0 = 0; | |
810 | char *_kwnames[] = { "self", NULL }; | |
811 | ||
812 | self = self; | |
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars",_kwnames,&_argo0)) | |
814 | return NULL; | |
815 | if (_argo0) { | |
816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
819 | return NULL; | |
820 | } | |
821 | } | |
822 | { | |
4268f798 | 823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 824 | wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_arg0); |
611dc22c | 825 | |
4268f798 RD |
826 | wxPyEndAllowThreads(__tstate); |
827 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
828 | } Py_INCREF(Py_None); |
829 | _resultobj = Py_None; | |
830 | return _resultobj; | |
831 | } | |
832 | ||
833 | #define wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_swigobj) (_swigobj->GetScrolledWindow()) | |
834 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
835 | PyObject * _resultobj; | |
836 | wxScrolledWindow * _result; | |
837 | wxRemotelyScrolledTreeCtrl * _arg0; | |
838 | PyObject * _argo0 = 0; | |
839 | char *_kwnames[] = { "self", NULL }; | |
840 | char _ptemp[128]; | |
841 | ||
842 | self = self; | |
843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetScrolledWindow",_kwnames,&_argo0)) | |
844 | return NULL; | |
845 | if (_argo0) { | |
846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetScrolledWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
849 | return NULL; | |
850 | } | |
851 | } | |
852 | { | |
4268f798 | 853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 854 | _result = (wxScrolledWindow *)wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_arg0); |
611dc22c | 855 | |
4268f798 RD |
856 | wxPyEndAllowThreads(__tstate); |
857 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
858 | } if (_result) { |
859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
860 | _resultobj = Py_BuildValue("s",_ptemp); | |
861 | } else { | |
862 | Py_INCREF(Py_None); | |
863 | _resultobj = Py_None; | |
864 | } | |
865 | return _resultobj; | |
866 | } | |
867 | ||
868 | #define wxRemotelyScrolledTreeCtrl_ScrollToLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollToLine(_swigarg0,_swigarg1)) | |
869 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
870 | PyObject * _resultobj; | |
871 | wxRemotelyScrolledTreeCtrl * _arg0; | |
872 | int _arg1; | |
873 | int _arg2; | |
874 | PyObject * _argo0 = 0; | |
875 | char *_kwnames[] = { "self","posHoriz","posVert", NULL }; | |
876 | ||
877 | self = self; | |
878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRemotelyScrolledTreeCtrl_ScrollToLine",_kwnames,&_argo0,&_arg1,&_arg2)) | |
879 | return NULL; | |
880 | if (_argo0) { | |
881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_ScrollToLine. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
884 | return NULL; | |
885 | } | |
886 | } | |
887 | { | |
4268f798 | 888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 889 | wxRemotelyScrolledTreeCtrl_ScrollToLine(_arg0,_arg1,_arg2); |
611dc22c | 890 | |
4268f798 RD |
891 | wxPyEndAllowThreads(__tstate); |
892 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
893 | } Py_INCREF(Py_None); |
894 | _resultobj = Py_None; | |
895 | return _resultobj; | |
896 | } | |
897 | ||
898 | #define wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_swigobj,_swigarg0) (_swigobj->SetCompanionWindow(_swigarg0)) | |
899 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
900 | PyObject * _resultobj; | |
901 | wxRemotelyScrolledTreeCtrl * _arg0; | |
902 | wxWindow * _arg1; | |
903 | PyObject * _argo0 = 0; | |
904 | PyObject * _argo1 = 0; | |
905 | char *_kwnames[] = { "self","companion", NULL }; | |
906 | ||
907 | self = self; | |
908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRemotelyScrolledTreeCtrl_SetCompanionWindow",_kwnames,&_argo0,&_argo1)) | |
909 | return NULL; | |
910 | if (_argo0) { | |
911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
914 | return NULL; | |
915 | } | |
916 | } | |
917 | if (_argo1) { | |
918 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxWindow_p."); | |
921 | return NULL; | |
922 | } | |
923 | } | |
924 | { | |
4268f798 | 925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 926 | wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_arg0,_arg1); |
611dc22c | 927 | |
4268f798 RD |
928 | wxPyEndAllowThreads(__tstate); |
929 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
930 | } Py_INCREF(Py_None); |
931 | _resultobj = Py_None; | |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | #define wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_swigobj) (_swigobj->GetCompanionWindow()) | |
936 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
937 | PyObject * _resultobj; | |
938 | wxWindow * _result; | |
939 | wxRemotelyScrolledTreeCtrl * _arg0; | |
940 | PyObject * _argo0 = 0; | |
941 | char *_kwnames[] = { "self", NULL }; | |
942 | ||
943 | self = self; | |
944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetCompanionWindow",_kwnames,&_argo0)) | |
945 | return NULL; | |
946 | if (_argo0) { | |
947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
950 | return NULL; | |
951 | } | |
952 | } | |
953 | { | |
4268f798 | 954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 955 | _result = (wxWindow *)wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_arg0); |
611dc22c | 956 | |
4268f798 RD |
957 | wxPyEndAllowThreads(__tstate); |
958 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
959 | }{ _resultobj = wxPyMake_wxObject(_result); } |
960 | return _resultobj; | |
961 | } | |
962 | ||
963 | static void *SwigwxPyTreeCompanionWindowTowxWindow(void *ptr) { | |
964 | wxPyTreeCompanionWindow *src; | |
965 | wxWindow *dest; | |
966 | src = (wxPyTreeCompanionWindow *) ptr; | |
967 | dest = (wxWindow *) src; | |
968 | return (void *) dest; | |
969 | } | |
970 | ||
971 | static void *SwigwxPyTreeCompanionWindowTowxEvtHandler(void *ptr) { | |
972 | wxPyTreeCompanionWindow *src; | |
973 | wxEvtHandler *dest; | |
974 | src = (wxPyTreeCompanionWindow *) ptr; | |
975 | dest = (wxEvtHandler *) src; | |
976 | return (void *) dest; | |
977 | } | |
978 | ||
979 | static void *SwigwxPyTreeCompanionWindowTowxObject(void *ptr) { | |
980 | wxPyTreeCompanionWindow *src; | |
981 | wxObject *dest; | |
982 | src = (wxPyTreeCompanionWindow *) ptr; | |
983 | dest = (wxObject *) src; | |
984 | return (void *) dest; | |
985 | } | |
986 | ||
987 | #define new_wxTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
988 | static PyObject *_wrap_new_wxTreeCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
989 | PyObject * _resultobj; | |
990 | wxPyTreeCompanionWindow * _result; | |
991 | wxWindow * _arg0; | |
992 | wxWindowID _arg1 = (wxWindowID ) -1; | |
993 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
994 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
995 | long _arg4 = (long ) 0; | |
996 | PyObject * _argo0 = 0; | |
997 | wxPoint temp; | |
998 | PyObject * _obj2 = 0; | |
999 | wxSize temp0; | |
1000 | PyObject * _obj3 = 0; | |
1001 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1002 | char _ptemp[128]; | |
1003 | ||
1004 | self = self; | |
1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxTreeCompanionWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1006 | return NULL; | |
1007 | if (_argo0) { | |
1008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCompanionWindow. Expected _wxWindow_p."); | |
1011 | return NULL; | |
1012 | } | |
1013 | } | |
1014 | if (_obj2) | |
1015 | { | |
1016 | _arg2 = &temp; | |
1017 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1018 | return NULL; | |
1019 | } | |
1020 | if (_obj3) | |
1021 | { | |
1022 | _arg3 = &temp0; | |
1023 | if (! wxSize_helper(_obj3, &_arg3)) | |
1024 | return NULL; | |
1025 | } | |
1026 | { | |
4268f798 | 1027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1028 | _result = (wxPyTreeCompanionWindow *)new_wxTreeCompanionWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1029 | |
4268f798 RD |
1030 | wxPyEndAllowThreads(__tstate); |
1031 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1032 | } if (_result) { |
1033 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCompanionWindow_p"); | |
1034 | _resultobj = Py_BuildValue("s",_ptemp); | |
1035 | } else { | |
1036 | Py_INCREF(Py_None); | |
1037 | _resultobj = Py_None; | |
1038 | } | |
1039 | return _resultobj; | |
1040 | } | |
1041 | ||
1042 | #define wxTreeCompanionWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
1043 | static PyObject *_wrap_wxTreeCompanionWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1044 | PyObject * _resultobj; | |
1045 | wxPyTreeCompanionWindow * _arg0; | |
1046 | PyObject * _arg1; | |
1047 | PyObject * _arg2; | |
1048 | PyObject * _argo0 = 0; | |
1049 | PyObject * _obj1 = 0; | |
1050 | PyObject * _obj2 = 0; | |
1051 | char *_kwnames[] = { "self","self","_class", NULL }; | |
1052 | ||
1053 | self = self; | |
1054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCompanionWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1055 | return NULL; | |
1056 | if (_argo0) { | |
1057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow__setCallbackInfo. Expected _wxPyTreeCompanionWindow_p."); | |
1060 | return NULL; | |
1061 | } | |
1062 | } | |
1063 | { | |
1064 | _arg1 = _obj1; | |
1065 | } | |
1066 | { | |
1067 | _arg2 = _obj2; | |
1068 | } | |
1069 | { | |
4268f798 | 1070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1071 | wxTreeCompanionWindow__setCallbackInfo(_arg0,_arg1,_arg2); |
611dc22c | 1072 | |
4268f798 RD |
1073 | wxPyEndAllowThreads(__tstate); |
1074 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1075 | } Py_INCREF(Py_None); |
1076 | _resultobj = Py_None; | |
1077 | return _resultobj; | |
1078 | } | |
1079 | ||
1080 | #define wxTreeCompanionWindow_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
1081 | static PyObject *_wrap_wxTreeCompanionWindow_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1082 | PyObject * _resultobj; | |
1083 | wxRemotelyScrolledTreeCtrl * _result; | |
1084 | wxPyTreeCompanionWindow * _arg0; | |
1085 | PyObject * _argo0 = 0; | |
1086 | char *_kwnames[] = { "self", NULL }; | |
1087 | char _ptemp[128]; | |
1088 | ||
1089 | self = self; | |
1090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCompanionWindow_GetTreeCtrl",_kwnames,&_argo0)) | |
1091 | return NULL; | |
1092 | if (_argo0) { | |
1093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_GetTreeCtrl. Expected _wxPyTreeCompanionWindow_p."); | |
1096 | return NULL; | |
1097 | } | |
1098 | } | |
1099 | { | |
4268f798 | 1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1101 | _result = (wxRemotelyScrolledTreeCtrl *)wxTreeCompanionWindow_GetTreeCtrl(_arg0); |
611dc22c | 1102 | |
4268f798 RD |
1103 | wxPyEndAllowThreads(__tstate); |
1104 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1105 | } if (_result) { |
1106 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p"); | |
1107 | _resultobj = Py_BuildValue("s",_ptemp); | |
1108 | } else { | |
1109 | Py_INCREF(Py_None); | |
1110 | _resultobj = Py_None; | |
1111 | } | |
1112 | return _resultobj; | |
1113 | } | |
1114 | ||
1115 | #define wxTreeCompanionWindow_SetTreeCtrl(_swigobj,_swigarg0) (_swigobj->SetTreeCtrl(_swigarg0)) | |
1116 | static PyObject *_wrap_wxTreeCompanionWindow_SetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1117 | PyObject * _resultobj; | |
1118 | wxPyTreeCompanionWindow * _arg0; | |
1119 | wxRemotelyScrolledTreeCtrl * _arg1; | |
1120 | PyObject * _argo0 = 0; | |
1121 | PyObject * _argo1 = 0; | |
1122 | char *_kwnames[] = { "self","treeCtrl", NULL }; | |
1123 | ||
1124 | self = self; | |
1125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCompanionWindow_SetTreeCtrl",_kwnames,&_argo0,&_argo1)) | |
1126 | return NULL; | |
1127 | if (_argo0) { | |
1128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxPyTreeCompanionWindow_p."); | |
1131 | return NULL; | |
1132 | } | |
1133 | } | |
1134 | if (_argo1) { | |
1135 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRemotelyScrolledTreeCtrl_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
4268f798 | 1142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1143 | wxTreeCompanionWindow_SetTreeCtrl(_arg0,_arg1); |
611dc22c | 1144 | |
4268f798 RD |
1145 | wxPyEndAllowThreads(__tstate); |
1146 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1147 | } Py_INCREF(Py_None); |
1148 | _resultobj = Py_None; | |
1149 | return _resultobj; | |
1150 | } | |
1151 | ||
1152 | static void *SwigwxThinSplitterWindowTowxSplitterWindow(void *ptr) { | |
1153 | wxThinSplitterWindow *src; | |
1154 | wxSplitterWindow *dest; | |
1155 | src = (wxThinSplitterWindow *) ptr; | |
1156 | dest = (wxSplitterWindow *) src; | |
1157 | return (void *) dest; | |
1158 | } | |
1159 | ||
1160 | static void *SwigwxThinSplitterWindowTowxWindow(void *ptr) { | |
1161 | wxThinSplitterWindow *src; | |
1162 | wxWindow *dest; | |
1163 | src = (wxThinSplitterWindow *) ptr; | |
1164 | dest = (wxWindow *) src; | |
1165 | return (void *) dest; | |
1166 | } | |
1167 | ||
1168 | static void *SwigwxThinSplitterWindowTowxEvtHandler(void *ptr) { | |
1169 | wxThinSplitterWindow *src; | |
1170 | wxEvtHandler *dest; | |
1171 | src = (wxThinSplitterWindow *) ptr; | |
1172 | dest = (wxEvtHandler *) src; | |
1173 | return (void *) dest; | |
1174 | } | |
1175 | ||
1176 | static void *SwigwxThinSplitterWindowTowxObject(void *ptr) { | |
1177 | wxThinSplitterWindow *src; | |
1178 | wxObject *dest; | |
1179 | src = (wxThinSplitterWindow *) ptr; | |
1180 | dest = (wxObject *) src; | |
1181 | return (void *) dest; | |
1182 | } | |
1183 | ||
1184 | #define new_wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1185 | static PyObject *_wrap_new_wxThinSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1186 | PyObject * _resultobj; | |
1187 | wxThinSplitterWindow * _result; | |
1188 | wxWindow * _arg0; | |
1189 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1190 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1191 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1192 | long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN; | |
1193 | PyObject * _argo0 = 0; | |
1194 | wxPoint temp; | |
1195 | PyObject * _obj2 = 0; | |
1196 | wxSize temp0; | |
1197 | PyObject * _obj3 = 0; | |
1198 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1199 | char _ptemp[128]; | |
1200 | ||
1201 | self = self; | |
1202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxThinSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1203 | return NULL; | |
1204 | if (_argo0) { | |
1205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxThinSplitterWindow. Expected _wxWindow_p."); | |
1208 | return NULL; | |
1209 | } | |
1210 | } | |
1211 | if (_obj2) | |
1212 | { | |
1213 | _arg2 = &temp; | |
1214 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1215 | return NULL; | |
1216 | } | |
1217 | if (_obj3) | |
1218 | { | |
1219 | _arg3 = &temp0; | |
1220 | if (! wxSize_helper(_obj3, &_arg3)) | |
1221 | return NULL; | |
1222 | } | |
1223 | { | |
4268f798 | 1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1225 | _result = (wxThinSplitterWindow *)new_wxThinSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1226 | |
4268f798 RD |
1227 | wxPyEndAllowThreads(__tstate); |
1228 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1229 | } if (_result) { |
1230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxThinSplitterWindow_p"); | |
1231 | _resultobj = Py_BuildValue("s",_ptemp); | |
1232 | } else { | |
1233 | Py_INCREF(Py_None); | |
1234 | _resultobj = Py_None; | |
1235 | } | |
1236 | return _resultobj; | |
1237 | } | |
1238 | ||
1239 | static void *SwigwxSplitterScrolledWindowTowxScrolledWindow(void *ptr) { | |
1240 | wxSplitterScrolledWindow *src; | |
1241 | wxScrolledWindow *dest; | |
1242 | src = (wxSplitterScrolledWindow *) ptr; | |
1243 | dest = (wxScrolledWindow *) src; | |
1244 | return (void *) dest; | |
1245 | } | |
1246 | ||
1247 | static void *SwigwxSplitterScrolledWindowTowxPanel(void *ptr) { | |
1248 | wxSplitterScrolledWindow *src; | |
1249 | wxPanel *dest; | |
1250 | src = (wxSplitterScrolledWindow *) ptr; | |
1251 | dest = (wxPanel *) src; | |
1252 | return (void *) dest; | |
1253 | } | |
1254 | ||
1255 | static void *SwigwxSplitterScrolledWindowTowxWindow(void *ptr) { | |
1256 | wxSplitterScrolledWindow *src; | |
1257 | wxWindow *dest; | |
1258 | src = (wxSplitterScrolledWindow *) ptr; | |
1259 | dest = (wxWindow *) src; | |
1260 | return (void *) dest; | |
1261 | } | |
1262 | ||
1263 | static void *SwigwxSplitterScrolledWindowTowxEvtHandler(void *ptr) { | |
1264 | wxSplitterScrolledWindow *src; | |
1265 | wxEvtHandler *dest; | |
1266 | src = (wxSplitterScrolledWindow *) ptr; | |
1267 | dest = (wxEvtHandler *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | static void *SwigwxSplitterScrolledWindowTowxObject(void *ptr) { | |
1272 | wxSplitterScrolledWindow *src; | |
1273 | wxObject *dest; | |
1274 | src = (wxSplitterScrolledWindow *) ptr; | |
1275 | dest = (wxObject *) src; | |
1276 | return (void *) dest; | |
1277 | } | |
1278 | ||
1279 | #define new_wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1280 | static PyObject *_wrap_new_wxSplitterScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1281 | PyObject * _resultobj; | |
1282 | wxSplitterScrolledWindow * _result; | |
1283 | wxWindow * _arg0; | |
1284 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1285 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1286 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1287 | long _arg4 = (long ) 0; | |
1288 | PyObject * _argo0 = 0; | |
1289 | wxPoint temp; | |
1290 | PyObject * _obj2 = 0; | |
1291 | wxSize temp0; | |
1292 | PyObject * _obj3 = 0; | |
1293 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1294 | char _ptemp[128]; | |
1295 | ||
1296 | self = self; | |
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxSplitterScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1298 | return NULL; | |
1299 | if (_argo0) { | |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterScrolledWindow. Expected _wxWindow_p."); | |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
1306 | if (_obj2) | |
1307 | { | |
1308 | _arg2 = &temp; | |
1309 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1310 | return NULL; | |
1311 | } | |
1312 | if (_obj3) | |
1313 | { | |
1314 | _arg3 = &temp0; | |
1315 | if (! wxSize_helper(_obj3, &_arg3)) | |
1316 | return NULL; | |
1317 | } | |
1318 | { | |
4268f798 | 1319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1320 | _result = (wxSplitterScrolledWindow *)new_wxSplitterScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1321 | |
4268f798 RD |
1322 | wxPyEndAllowThreads(__tstate); |
1323 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1324 | } if (_result) { |
1325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterScrolledWindow_p"); | |
1326 | _resultobj = Py_BuildValue("s",_ptemp); | |
1327 | } else { | |
1328 | Py_INCREF(Py_None); | |
1329 | _resultobj = Py_None; | |
1330 | } | |
1331 | return _resultobj; | |
1332 | } | |
1333 | ||
950e7faf RD |
1334 | static void *SwigwxLEDNumberCtrlTowxControl(void *ptr) { |
1335 | wxLEDNumberCtrl *src; | |
1336 | wxControl *dest; | |
1337 | src = (wxLEDNumberCtrl *) ptr; | |
1338 | dest = (wxControl *) src; | |
1339 | return (void *) dest; | |
1340 | } | |
1341 | ||
1342 | static void *SwigwxLEDNumberCtrlTowxWindow(void *ptr) { | |
1343 | wxLEDNumberCtrl *src; | |
1344 | wxWindow *dest; | |
1345 | src = (wxLEDNumberCtrl *) ptr; | |
1346 | dest = (wxWindow *) src; | |
1347 | return (void *) dest; | |
1348 | } | |
1349 | ||
1350 | static void *SwigwxLEDNumberCtrlTowxEvtHandler(void *ptr) { | |
1351 | wxLEDNumberCtrl *src; | |
1352 | wxEvtHandler *dest; | |
1353 | src = (wxLEDNumberCtrl *) ptr; | |
1354 | dest = (wxEvtHandler *) src; | |
1355 | return (void *) dest; | |
1356 | } | |
1357 | ||
1358 | static void *SwigwxLEDNumberCtrlTowxObject(void *ptr) { | |
1359 | wxLEDNumberCtrl *src; | |
1360 | wxObject *dest; | |
1361 | src = (wxLEDNumberCtrl *) ptr; | |
1362 | dest = (wxObject *) src; | |
1363 | return (void *) dest; | |
1364 | } | |
1365 | ||
1366 | #define new_wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1367 | static PyObject *_wrap_new_wxLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject * _resultobj; | |
1369 | wxLEDNumberCtrl * _result; | |
1370 | wxWindow * _arg0; | |
1371 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1372 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1373 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1374 | long _arg4 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED); | |
1375 | PyObject * _argo0 = 0; | |
1376 | wxPoint temp; | |
1377 | PyObject * _obj2 = 0; | |
1378 | wxSize temp0; | |
1379 | PyObject * _obj3 = 0; | |
1380 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1381 | char _ptemp[128]; | |
1382 | ||
1383 | self = self; | |
1384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxLEDNumberCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1385 | return NULL; | |
1386 | if (_argo0) { | |
1387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLEDNumberCtrl. Expected _wxWindow_p."); | |
1390 | return NULL; | |
1391 | } | |
1392 | } | |
1393 | if (_obj2) | |
1394 | { | |
1395 | _arg2 = &temp; | |
1396 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1397 | return NULL; | |
1398 | } | |
1399 | if (_obj3) | |
1400 | { | |
1401 | _arg3 = &temp0; | |
1402 | if (! wxSize_helper(_obj3, &_arg3)) | |
1403 | return NULL; | |
1404 | } | |
1405 | { | |
4268f798 | 1406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1407 | _result = (wxLEDNumberCtrl *)new_wxLEDNumberCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
950e7faf | 1408 | |
4268f798 RD |
1409 | wxPyEndAllowThreads(__tstate); |
1410 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1411 | } if (_result) { |
1412 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p"); | |
1413 | _resultobj = Py_BuildValue("s",_ptemp); | |
1414 | } else { | |
1415 | Py_INCREF(Py_None); | |
1416 | _resultobj = Py_None; | |
1417 | } | |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define new_wxPreLEDNumberCtrl() (new wxLEDNumberCtrl()) | |
1422 | static PyObject *_wrap_new_wxPreLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxLEDNumberCtrl * _result; | |
1425 | char *_kwnames[] = { NULL }; | |
1426 | char _ptemp[128]; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreLEDNumberCtrl",_kwnames)) | |
1430 | return NULL; | |
1431 | { | |
4268f798 | 1432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1433 | _result = (wxLEDNumberCtrl *)new_wxPreLEDNumberCtrl(); |
950e7faf | 1434 | |
4268f798 RD |
1435 | wxPyEndAllowThreads(__tstate); |
1436 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1437 | } if (_result) { |
1438 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p"); | |
1439 | _resultobj = Py_BuildValue("s",_ptemp); | |
1440 | } else { | |
1441 | Py_INCREF(Py_None); | |
1442 | _resultobj = Py_None; | |
1443 | } | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxLEDNumberCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1448 | static PyObject *_wrap_wxLEDNumberCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | bool _result; | |
1451 | wxLEDNumberCtrl * _arg0; | |
1452 | wxWindow * _arg1; | |
1453 | wxWindowID _arg2 = (wxWindowID ) -1; | |
1454 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1455 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1456 | long _arg5 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED); | |
1457 | PyObject * _argo0 = 0; | |
1458 | PyObject * _argo1 = 0; | |
1459 | wxPoint temp; | |
1460 | PyObject * _obj3 = 0; | |
1461 | wxSize temp0; | |
1462 | PyObject * _obj4 = 0; | |
1463 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxLEDNumberCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
1467 | return NULL; | |
1468 | if (_argo0) { | |
1469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_Create. Expected _wxLEDNumberCtrl_p."); | |
1472 | return NULL; | |
1473 | } | |
1474 | } | |
1475 | if (_argo1) { | |
1476 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1477 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLEDNumberCtrl_Create. Expected _wxWindow_p."); | |
1479 | return NULL; | |
1480 | } | |
1481 | } | |
1482 | if (_obj3) | |
1483 | { | |
1484 | _arg3 = &temp; | |
1485 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1486 | return NULL; | |
1487 | } | |
1488 | if (_obj4) | |
1489 | { | |
1490 | _arg4 = &temp0; | |
1491 | if (! wxSize_helper(_obj4, &_arg4)) | |
1492 | return NULL; | |
1493 | } | |
1494 | { | |
4268f798 | 1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1496 | _result = (bool )wxLEDNumberCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
950e7faf | 1497 | |
4268f798 RD |
1498 | wxPyEndAllowThreads(__tstate); |
1499 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1500 | } _resultobj = Py_BuildValue("i",_result); |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | #define wxLEDNumberCtrl_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1505 | static PyObject *_wrap_wxLEDNumberCtrl_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1506 | PyObject * _resultobj; | |
1507 | wxLEDValueAlign _result; | |
1508 | wxLEDNumberCtrl * _arg0; | |
1509 | PyObject * _argo0 = 0; | |
1510 | char *_kwnames[] = { "self", NULL }; | |
1511 | ||
1512 | self = self; | |
1513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetAlignment",_kwnames,&_argo0)) | |
1514 | return NULL; | |
1515 | if (_argo0) { | |
1516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetAlignment. Expected _wxLEDNumberCtrl_p."); | |
1519 | return NULL; | |
1520 | } | |
1521 | } | |
1522 | { | |
4268f798 | 1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1524 | _result = (wxLEDValueAlign )wxLEDNumberCtrl_GetAlignment(_arg0); |
950e7faf | 1525 | |
4268f798 RD |
1526 | wxPyEndAllowThreads(__tstate); |
1527 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1528 | } _resultobj = Py_BuildValue("i",_result); |
1529 | return _resultobj; | |
1530 | } | |
1531 | ||
1532 | #define wxLEDNumberCtrl_GetDrawFaded(_swigobj) (_swigobj->GetDrawFaded()) | |
1533 | static PyObject *_wrap_wxLEDNumberCtrl_GetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject * _resultobj; | |
1535 | bool _result; | |
1536 | wxLEDNumberCtrl * _arg0; | |
1537 | PyObject * _argo0 = 0; | |
1538 | char *_kwnames[] = { "self", NULL }; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetDrawFaded",_kwnames,&_argo0)) | |
1542 | return NULL; | |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetDrawFaded. Expected _wxLEDNumberCtrl_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
4268f798 | 1551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1552 | _result = (bool )wxLEDNumberCtrl_GetDrawFaded(_arg0); |
950e7faf | 1553 | |
4268f798 RD |
1554 | wxPyEndAllowThreads(__tstate); |
1555 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1556 | } _resultobj = Py_BuildValue("i",_result); |
1557 | return _resultobj; | |
1558 | } | |
1559 | ||
1560 | #define wxLEDNumberCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
1561 | static PyObject *_wrap_wxLEDNumberCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1562 | PyObject * _resultobj; | |
1563 | wxString * _result; | |
1564 | wxLEDNumberCtrl * _arg0; | |
1565 | PyObject * _argo0 = 0; | |
1566 | char *_kwnames[] = { "self", NULL }; | |
1567 | ||
1568 | self = self; | |
1569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetValue",_kwnames,&_argo0)) | |
1570 | return NULL; | |
1571 | if (_argo0) { | |
1572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetValue. Expected _wxLEDNumberCtrl_p."); | |
1575 | return NULL; | |
1576 | } | |
1577 | } | |
1578 | { | |
4268f798 | 1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1580 | const wxString & _result_ref = wxLEDNumberCtrl_GetValue(_arg0); |
950e7faf RD |
1581 | _result = (wxString *) &_result_ref; |
1582 | ||
4268f798 RD |
1583 | wxPyEndAllowThreads(__tstate); |
1584 | if (PyErr_Occurred()) return NULL; | |
950e7faf | 1585 | }{ |
c8bc7bb8 RD |
1586 | #if wxUSE_UNICODE |
1587 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1588 | #else | |
950e7faf | 1589 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1590 | #endif |
950e7faf RD |
1591 | } |
1592 | return _resultobj; | |
1593 | } | |
1594 | ||
1595 | #define wxLEDNumberCtrl_SetAlignment(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAlignment(_swigarg0,_swigarg1)) | |
1596 | static PyObject *_wrap_wxLEDNumberCtrl_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject * _resultobj; | |
1598 | wxLEDNumberCtrl * _arg0; | |
1599 | wxLEDValueAlign _arg1; | |
1600 | bool _arg2 = (bool ) true; | |
1601 | PyObject * _argo0 = 0; | |
1602 | int tempbool2 = (int) true; | |
1603 | char *_kwnames[] = { "self","Alignment","Redraw", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetAlignment",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetAlignment. Expected _wxLEDNumberCtrl_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | _arg2 = (bool ) tempbool2; | |
1616 | { | |
4268f798 | 1617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1618 | wxLEDNumberCtrl_SetAlignment(_arg0,_arg1,_arg2); |
950e7faf | 1619 | |
4268f798 RD |
1620 | wxPyEndAllowThreads(__tstate); |
1621 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1622 | } Py_INCREF(Py_None); |
1623 | _resultobj = Py_None; | |
1624 | return _resultobj; | |
1625 | } | |
1626 | ||
1627 | #define wxLEDNumberCtrl_SetDrawFaded(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDrawFaded(_swigarg0,_swigarg1)) | |
1628 | static PyObject *_wrap_wxLEDNumberCtrl_SetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject * _resultobj; | |
1630 | wxLEDNumberCtrl * _arg0; | |
1631 | bool _arg1; | |
1632 | bool _arg2 = (bool ) true; | |
1633 | PyObject * _argo0 = 0; | |
1634 | int tempbool1; | |
1635 | int tempbool2 = (int) true; | |
1636 | char *_kwnames[] = { "self","DrawFaded","Redraw", NULL }; | |
1637 | ||
1638 | self = self; | |
1639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetDrawFaded",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
1640 | return NULL; | |
1641 | if (_argo0) { | |
1642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetDrawFaded. Expected _wxLEDNumberCtrl_p."); | |
1645 | return NULL; | |
1646 | } | |
1647 | } | |
1648 | _arg1 = (bool ) tempbool1; | |
1649 | _arg2 = (bool ) tempbool2; | |
1650 | { | |
4268f798 | 1651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1652 | wxLEDNumberCtrl_SetDrawFaded(_arg0,_arg1,_arg2); |
950e7faf | 1653 | |
4268f798 RD |
1654 | wxPyEndAllowThreads(__tstate); |
1655 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1656 | } Py_INCREF(Py_None); |
1657 | _resultobj = Py_None; | |
1658 | return _resultobj; | |
1659 | } | |
1660 | ||
1661 | #define wxLEDNumberCtrl_SetValue(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetValue(_swigarg0,_swigarg1)) | |
1662 | static PyObject *_wrap_wxLEDNumberCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1663 | PyObject * _resultobj; | |
1664 | wxLEDNumberCtrl * _arg0; | |
1665 | wxString * _arg1; | |
1666 | bool _arg2 = (bool ) true; | |
1667 | PyObject * _argo0 = 0; | |
1668 | PyObject * _obj1 = 0; | |
1669 | int tempbool2 = (int) true; | |
1670 | char *_kwnames[] = { "self","Value","Redraw", NULL }; | |
1671 | ||
1672 | self = self; | |
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLEDNumberCtrl_SetValue",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
1674 | return NULL; | |
1675 | if (_argo0) { | |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetValue. Expected _wxLEDNumberCtrl_p."); | |
1679 | return NULL; | |
1680 | } | |
1681 | } | |
1682 | { | |
c8bc7bb8 RD |
1683 | _arg1 = wxString_in_helper(_obj1); |
1684 | if (_arg1 == NULL) | |
950e7faf | 1685 | return NULL; |
950e7faf RD |
1686 | } |
1687 | _arg2 = (bool ) tempbool2; | |
1688 | { | |
4268f798 | 1689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1690 | wxLEDNumberCtrl_SetValue(_arg0,*_arg1,_arg2); |
950e7faf | 1691 | |
4268f798 RD |
1692 | wxPyEndAllowThreads(__tstate); |
1693 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1694 | } Py_INCREF(Py_None); |
1695 | _resultobj = Py_None; | |
1696 | { | |
1697 | if (_obj1) | |
1698 | delete _arg1; | |
1699 | } | |
1700 | return _resultobj; | |
1701 | } | |
1702 | ||
ebf4302c | 1703 | static PyMethodDef gizmoscMethods[] = { |
950e7faf RD |
1704 | { "wxLEDNumberCtrl_SetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
1705 | { "wxLEDNumberCtrl_SetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_SetDrawFaded, METH_VARARGS | METH_KEYWORDS }, | |
1706 | { "wxLEDNumberCtrl_SetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
1707 | { "wxLEDNumberCtrl_GetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
1708 | { "wxLEDNumberCtrl_GetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_GetDrawFaded, METH_VARARGS | METH_KEYWORDS }, | |
1709 | { "wxLEDNumberCtrl_GetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
1710 | { "wxLEDNumberCtrl_Create", (PyCFunction) _wrap_wxLEDNumberCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
1711 | { "new_wxPreLEDNumberCtrl", (PyCFunction) _wrap_new_wxPreLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1712 | { "new_wxLEDNumberCtrl", (PyCFunction) _wrap_new_wxLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS }, | |
611dc22c RD |
1713 | { "new_wxSplitterScrolledWindow", (PyCFunction) _wrap_new_wxSplitterScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
1714 | { "new_wxThinSplitterWindow", (PyCFunction) _wrap_new_wxThinSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
1715 | { "wxTreeCompanionWindow_SetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_SetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1716 | { "wxTreeCompanionWindow_GetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1717 | { "wxTreeCompanionWindow__setCallbackInfo", (PyCFunction) _wrap_wxTreeCompanionWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
1718 | { "new_wxTreeCompanionWindow", (PyCFunction) _wrap_new_wxTreeCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1719 | { "wxRemotelyScrolledTreeCtrl_GetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1720 | { "wxRemotelyScrolledTreeCtrl_SetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1721 | { "wxRemotelyScrolledTreeCtrl_ScrollToLine", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
1722 | { "wxRemotelyScrolledTreeCtrl_GetScrolledWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
1723 | { "wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
1724 | { "wxRemotelyScrolledTreeCtrl_HideVScrollbar", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
1725 | { "new_wxRemotelyScrolledTreeCtrl", (PyCFunction) _wrap_new_wxRemotelyScrolledTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
7b7ac0ab RD |
1726 | { "wxEditableListBox_GetStrings", (PyCFunction) _wrap_wxEditableListBox_GetStrings, METH_VARARGS | METH_KEYWORDS }, |
1727 | { "wxEditableListBox_SetStrings", (PyCFunction) _wrap_wxEditableListBox_SetStrings, METH_VARARGS | METH_KEYWORDS }, | |
1728 | { "new_wxEditableListBox", (PyCFunction) _wrap_new_wxEditableListBox, METH_VARARGS | METH_KEYWORDS }, | |
ebf4302c RD |
1729 | { "wxDynamicSashWindow_GetVScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetVScrollBar, METH_VARARGS | METH_KEYWORDS }, |
1730 | { "wxDynamicSashWindow_GetHScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetHScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
1731 | { "wxDynamicSashWindow_Create", (PyCFunction) _wrap_wxDynamicSashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
1732 | { "new_wxPreDynamicSashWindow", (PyCFunction) _wrap_new_wxPreDynamicSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
1733 | { "new_wxDynamicSashWindow", (PyCFunction) _wrap_new_wxDynamicSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
1734 | { "new_wxDynamicSashUnifyEvent", (PyCFunction) _wrap_new_wxDynamicSashUnifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
1735 | { "new_wxDynamicSashSplitEvent", (PyCFunction) _wrap_new_wxDynamicSashSplitEvent, METH_VARARGS | METH_KEYWORDS }, | |
1736 | { NULL, NULL } | |
1737 | }; | |
1738 | #ifdef __cplusplus | |
1739 | } | |
1740 | #endif | |
1741 | /* | |
1742 | * This table is used by the pointer type-checker | |
1743 | */ | |
1744 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1745 | { "_wxEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxEvent}, | |
1746 | { "_wxEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxEvent}, | |
1747 | { "_signed_long","_long",0}, | |
1748 | { "_wxPrintQuality","_wxCoord",0}, | |
1749 | { "_wxPrintQuality","_int",0}, | |
1750 | { "_wxPrintQuality","_signed_int",0}, | |
1751 | { "_wxPrintQuality","_unsigned_int",0}, | |
1752 | { "_wxPrintQuality","_wxWindowID",0}, | |
1753 | { "_wxPrintQuality","_uint",0}, | |
1754 | { "_wxPrintQuality","_EBool",0}, | |
1755 | { "_wxPrintQuality","_size_t",0}, | |
1756 | { "_wxPrintQuality","_time_t",0}, | |
611dc22c | 1757 | { "_wxPyTreeCtrl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl}, |
ebf4302c RD |
1758 | { "_byte","_unsigned_char",0}, |
1759 | { "_long","_unsigned_long",0}, | |
1760 | { "_long","_signed_long",0}, | |
1761 | { "_size_t","_wxCoord",0}, | |
1762 | { "_size_t","_wxPrintQuality",0}, | |
1763 | { "_size_t","_time_t",0}, | |
1764 | { "_size_t","_unsigned_int",0}, | |
1765 | { "_size_t","_int",0}, | |
1766 | { "_size_t","_wxWindowID",0}, | |
1767 | { "_size_t","_uint",0}, | |
611dc22c | 1768 | { "_wxPanel","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxPanel}, |
7b7ac0ab | 1769 | { "_wxPanel","_wxEditableListBox",SwigwxEditableListBoxTowxPanel}, |
ebf4302c RD |
1770 | { "_uint","_wxCoord",0}, |
1771 | { "_uint","_wxPrintQuality",0}, | |
1772 | { "_uint","_time_t",0}, | |
1773 | { "_uint","_size_t",0}, | |
1774 | { "_uint","_unsigned_int",0}, | |
1775 | { "_uint","_int",0}, | |
1776 | { "_uint","_wxWindowID",0}, | |
1777 | { "_wxChar","_char",0}, | |
1778 | { "_wxCommandEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxCommandEvent}, | |
1779 | { "_wxCommandEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxCommandEvent}, | |
1780 | { "_char","_wxChar",0}, | |
1781 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
1782 | { "_EBool","_wxCoord",0}, | |
1783 | { "_EBool","_wxPrintQuality",0}, | |
1784 | { "_EBool","_signed_int",0}, | |
1785 | { "_EBool","_int",0}, | |
1786 | { "_EBool","_wxWindowID",0}, | |
1787 | { "_unsigned_long","_long",0}, | |
1788 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
1789 | { "_signed_int","_wxCoord",0}, | |
1790 | { "_signed_int","_wxPrintQuality",0}, | |
1791 | { "_signed_int","_EBool",0}, | |
1792 | { "_signed_int","_wxWindowID",0}, | |
1793 | { "_signed_int","_int",0}, | |
1794 | { "_WXTYPE","_wxDateTime_t",0}, | |
1795 | { "_WXTYPE","_short",0}, | |
1796 | { "_WXTYPE","_signed_short",0}, | |
1797 | { "_WXTYPE","_unsigned_short",0}, | |
1798 | { "_unsigned_short","_wxDateTime_t",0}, | |
1799 | { "_unsigned_short","_WXTYPE",0}, | |
1800 | { "_unsigned_short","_short",0}, | |
611dc22c | 1801 | { "_wxSplitterWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxSplitterWindow}, |
950e7faf | 1802 | { "_wxObject","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxObject}, |
611dc22c RD |
1803 | { "_wxObject","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxObject}, |
1804 | { "_wxObject","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxObject}, | |
1805 | { "_wxObject","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxObject}, | |
1806 | { "_wxObject","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxObject}, | |
7b7ac0ab | 1807 | { "_wxObject","_wxEditableListBox",SwigwxEditableListBoxTowxObject}, |
ebf4302c RD |
1808 | { "_wxObject","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxObject}, |
1809 | { "_wxObject","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxObject}, | |
1810 | { "_wxObject","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxObject}, | |
1811 | { "_signed_short","_WXTYPE",0}, | |
1812 | { "_signed_short","_short",0}, | |
611dc22c | 1813 | { "_wxScrolledWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxScrolledWindow}, |
ebf4302c | 1814 | { "_unsigned_char","_byte",0}, |
950e7faf | 1815 | { "_wxControl","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxControl}, |
611dc22c | 1816 | { "_wxControl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxControl}, |
ebf4302c RD |
1817 | { "_unsigned_int","_wxCoord",0}, |
1818 | { "_unsigned_int","_wxPrintQuality",0}, | |
1819 | { "_unsigned_int","_time_t",0}, | |
1820 | { "_unsigned_int","_size_t",0}, | |
1821 | { "_unsigned_int","_uint",0}, | |
1822 | { "_unsigned_int","_wxWindowID",0}, | |
1823 | { "_unsigned_int","_int",0}, | |
1824 | { "_short","_wxDateTime_t",0}, | |
1825 | { "_short","_WXTYPE",0}, | |
1826 | { "_short","_unsigned_short",0}, | |
1827 | { "_short","_signed_short",0}, | |
1828 | { "_wxWindowID","_wxCoord",0}, | |
1829 | { "_wxWindowID","_wxPrintQuality",0}, | |
1830 | { "_wxWindowID","_time_t",0}, | |
1831 | { "_wxWindowID","_size_t",0}, | |
1832 | { "_wxWindowID","_EBool",0}, | |
1833 | { "_wxWindowID","_uint",0}, | |
1834 | { "_wxWindowID","_int",0}, | |
1835 | { "_wxWindowID","_signed_int",0}, | |
1836 | { "_wxWindowID","_unsigned_int",0}, | |
1837 | { "_int","_wxCoord",0}, | |
1838 | { "_int","_wxPrintQuality",0}, | |
1839 | { "_int","_time_t",0}, | |
1840 | { "_int","_size_t",0}, | |
1841 | { "_int","_EBool",0}, | |
1842 | { "_int","_uint",0}, | |
1843 | { "_int","_wxWindowID",0}, | |
1844 | { "_int","_unsigned_int",0}, | |
1845 | { "_int","_signed_int",0}, | |
1846 | { "_wxDateTime_t","_unsigned_short",0}, | |
1847 | { "_wxDateTime_t","_short",0}, | |
1848 | { "_wxDateTime_t","_WXTYPE",0}, | |
1849 | { "_time_t","_wxCoord",0}, | |
1850 | { "_time_t","_wxPrintQuality",0}, | |
1851 | { "_time_t","_unsigned_int",0}, | |
1852 | { "_time_t","_int",0}, | |
1853 | { "_time_t","_wxWindowID",0}, | |
1854 | { "_time_t","_uint",0}, | |
1855 | { "_time_t","_size_t",0}, | |
1856 | { "_wxCoord","_int",0}, | |
1857 | { "_wxCoord","_signed_int",0}, | |
1858 | { "_wxCoord","_unsigned_int",0}, | |
1859 | { "_wxCoord","_wxWindowID",0}, | |
1860 | { "_wxCoord","_uint",0}, | |
1861 | { "_wxCoord","_EBool",0}, | |
1862 | { "_wxCoord","_size_t",0}, | |
1863 | { "_wxCoord","_time_t",0}, | |
1864 | { "_wxCoord","_wxPrintQuality",0}, | |
950e7faf | 1865 | { "_wxEvtHandler","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxEvtHandler}, |
611dc22c RD |
1866 | { "_wxEvtHandler","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxEvtHandler}, |
1867 | { "_wxEvtHandler","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxEvtHandler}, | |
1868 | { "_wxEvtHandler","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxEvtHandler}, | |
1869 | { "_wxEvtHandler","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler}, | |
7b7ac0ab | 1870 | { "_wxEvtHandler","_wxEditableListBox",SwigwxEditableListBoxTowxEvtHandler}, |
ebf4302c | 1871 | { "_wxEvtHandler","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxEvtHandler}, |
950e7faf | 1872 | { "_wxWindow","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxWindow}, |
611dc22c RD |
1873 | { "_wxWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxWindow}, |
1874 | { "_wxWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxWindow}, | |
1875 | { "_wxWindow","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxWindow}, | |
1876 | { "_wxWindow","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxWindow}, | |
7b7ac0ab | 1877 | { "_wxWindow","_wxEditableListBox",SwigwxEditableListBoxTowxWindow}, |
ebf4302c RD |
1878 | { "_wxWindow","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxWindow}, |
1879 | {0,0,0}}; | |
1880 | ||
1881 | static PyObject *SWIG_globals; | |
1882 | #ifdef __cplusplus | |
1883 | extern "C" | |
1884 | #endif | |
1885 | SWIGEXPORT(void) initgizmosc() { | |
1886 | PyObject *m, *d; | |
1887 | SWIG_globals = SWIG_newvarlink(); | |
1888 | m = Py_InitModule("gizmosc", gizmoscMethods); | |
1889 | d = PyModule_GetDict(m); | |
1890 | PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_SPLIT)); | |
1891 | PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_UNIFY)); | |
1892 | PyDict_SetItemString(d,"wxDS_MANAGE_SCROLLBARS", PyInt_FromLong((long) wxDS_MANAGE_SCROLLBARS)); | |
1893 | PyDict_SetItemString(d,"wxDS_DRAG_CORNER", PyInt_FromLong((long) wxDS_DRAG_CORNER)); | |
6187ec8f RD |
1894 | PyDict_SetItemString(d,"wxEL_ALLOW_NEW", PyInt_FromLong((long) wxEL_ALLOW_NEW)); |
1895 | PyDict_SetItemString(d,"wxEL_ALLOW_EDIT", PyInt_FromLong((long) wxEL_ALLOW_EDIT)); | |
1896 | PyDict_SetItemString(d,"wxEL_ALLOW_DELETE", PyInt_FromLong((long) wxEL_ALLOW_DELETE)); | |
950e7faf RD |
1897 | PyDict_SetItemString(d,"wxLED_ALIGN_LEFT", PyInt_FromLong((long) wxLED_ALIGN_LEFT)); |
1898 | PyDict_SetItemString(d,"wxLED_ALIGN_RIGHT", PyInt_FromLong((long) wxLED_ALIGN_RIGHT)); | |
1899 | PyDict_SetItemString(d,"wxLED_ALIGN_CENTER", PyInt_FromLong((long) wxLED_ALIGN_CENTER)); | |
1900 | PyDict_SetItemString(d,"wxLED_ALIGN_MASK", PyInt_FromLong((long) wxLED_ALIGN_MASK)); | |
1901 | PyDict_SetItemString(d,"wxLED_DRAW_FADED", PyInt_FromLong((long) wxLED_DRAW_FADED)); | |
ebf4302c RD |
1902 | |
1903 | ||
1904 | wxClassInfo::CleanUpClasses(); | |
1905 | wxClassInfo::InitializeClasses(); | |
1906 | ||
611dc22c | 1907 | wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow"); |
ebf4302c RD |
1908 | { |
1909 | int i; | |
1910 | for (i = 0; _swig_mapping[i].n1; i++) | |
1911 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1912 | } | |
1913 | } |