]>
Commit | Line | Data |
---|---|---|
bb0054cd | 1 | /* |
c368d904 | 2 | * FILE : src/msw/misc2.cpp |
bb0054cd RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
bb0054cd RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
bb0054cd RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
bb0054cd RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
bb0054cd RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
f0261a72 RD |
61 | #include <wx/caret.h> |
62 | #include <wx/fontenum.h> | |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
185d7c3e | 65 | #include <wx/joystick.h> |
bb0054cd RD |
66 | |
67 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
185d7c3e | 69 | if (!target) { |
bb0054cd | 70 | target = o; |
185d7c3e | 71 | } else if (target == Py_None) { |
bb0054cd RD |
72 | Py_DECREF(Py_None); |
73 | target = o; | |
185d7c3e | 74 | } else { |
bb0054cd RD |
75 | if (!PyList_Check(target)) { |
76 | o2 = target; | |
77 | target = PyList_New(0); | |
78 | PyList_Append(target, o2); | |
79 | Py_XDECREF(o2); | |
80 | } | |
81 | PyList_Append(target,o); | |
82 | Py_XDECREF(o); | |
83 | } | |
84 | return target; | |
85 | } | |
86 | ||
87 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
88 | PyObject* o2; | |
89 | PyObject* o3; | |
90 | ||
185d7c3e | 91 | if (!target) { |
bb0054cd | 92 | target = o; |
185d7c3e | 93 | } else if (target == Py_None) { |
bb0054cd RD |
94 | Py_DECREF(Py_None); |
95 | target = o; | |
185d7c3e | 96 | } else { |
bb0054cd RD |
97 | if (!PyTuple_Check(target)) { |
98 | o2 = target; | |
99 | target = PyTuple_New(1); | |
100 | PyTuple_SetItem(target, 0, o2); | |
101 | } | |
185d7c3e RD |
102 | o3 = PyTuple_New(1); |
103 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
104 | |
105 | o2 = target; | |
185d7c3e RD |
106 | target = PySequence_Concat(o2, o3); |
107 | Py_DECREF(o2); | |
bb0054cd RD |
108 | Py_DECREF(o3); |
109 | } | |
110 | return target; | |
111 | } | |
112 | ||
bb0054cd RD |
113 | static char* wxStringErrorMsg = "string type is required for parameter"; |
114 | ||
e508a2b6 RD |
115 | static wxString wxPyEmptyStr(""); |
116 | ||
06c0fba4 RD |
117 | |
118 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
119 | return wxSystemSettings::GetSystemColour(index); | |
120 | } | |
121 | ||
122 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
123 | return wxSystemSettings::GetSystemFont(index); | |
124 | } | |
125 | ||
126 | int wxSystemSettings_GetSystemMetric(int index) { | |
127 | return wxSystemSettings::GetSystemMetric(index); | |
128 | } | |
129 | ||
bb0054cd RD |
130 | void wxToolTip_Enable(bool flag) { |
131 | wxToolTip::Enable(flag); | |
132 | } | |
133 | ||
06c0fba4 RD |
134 | void wxToolTip_SetDelay(long milliseconds) { |
135 | wxToolTip::SetDelay(milliseconds); | |
136 | } | |
137 | ||
138 | int wxCaret_GetBlinkTime() { | |
139 | return wxCaret::GetBlinkTime(); | |
140 | } | |
141 | ||
142 | void wxCaret_SetBlinkTime(int milliseconds) { | |
143 | wxCaret::SetBlinkTime(milliseconds); | |
144 | } | |
b1462dfa RD |
145 | |
146 | class wxPyFontEnumerator : public wxFontEnumerator { | |
147 | public: | |
148 | wxPyFontEnumerator() {} | |
149 | ~wxPyFontEnumerator() {} | |
150 | ||
151 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
152 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
153 | ||
154 | PYPRIVATE; | |
155 | }; | |
156 | ||
157 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
158 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
159 | ||
f6bcfd97 BP |
160 | |
161 | class wxPyTipProvider : public wxTipProvider { | |
162 | public: | |
163 | wxPyTipProvider(size_t currentTip) | |
164 | : wxTipProvider(currentTip) {} | |
165 | ||
166 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
167 | ||
168 | PYPRIVATE; | |
169 | }; | |
170 | ||
171 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
172 | ||
173 | ||
174 | #include <wx/generic/dragimgg.h> | |
175 | static wxPoint wxPyNullPoint; | |
176 | ||
177 | ||
178 | wxGenericDragImage* wxDragIcon(const wxIcon& image, | |
179 | const wxCursor& cursor, | |
180 | const wxPoint& hotspot) { | |
181 | return new wxGenericDragImage(image, cursor, hotspot); | |
182 | } | |
183 | ||
184 | wxGenericDragImage* wxDragString(const wxString& str, | |
185 | const wxCursor& cursor, | |
186 | const wxPoint& hotspot) { | |
187 | return new wxGenericDragImage(str, cursor, hotspot); | |
188 | } | |
189 | ||
190 | wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) { | |
191 | return new wxGenericDragImage(treeCtrl, id); | |
192 | } | |
193 | ||
194 | wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) { | |
195 | return new wxGenericDragImage(listCtrl, id); | |
196 | } | |
197 | ||
c368d904 RD |
198 | // C++ version of wxProcess derived class |
199 | ||
200 | class wxPyProcess : public wxProcess { | |
201 | public: | |
202 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
203 | : wxProcess(parent, id) | |
204 | {} | |
205 | ||
206 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
207 | ||
208 | PYPRIVATE; | |
209 | }; | |
210 | ||
211 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
06c0fba4 RD |
212 | #ifdef __cplusplus |
213 | extern "C" { | |
214 | #endif | |
215 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
216 | PyObject * _resultobj; | |
217 | wxString * _result; | |
218 | char * _arg0; | |
219 | char * _arg1 = (char *) NULL; | |
220 | char * _arg2 = (char *) NULL; | |
221 | char * _arg3 = (char *) NULL; | |
222 | char * _arg4 = (char *) "*.*"; | |
223 | int _arg5 = (int ) 0; | |
224 | wxWindow * _arg6 = (wxWindow *) NULL; | |
225 | int _arg7 = (int ) -1; | |
226 | int _arg8 = (int ) -1; | |
227 | PyObject * _argo6 = 0; | |
228 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
229 | ||
230 | self = self; | |
231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
232 | return NULL; | |
233 | if (_argo6) { | |
234 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
235 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
237 | return NULL; | |
238 | } | |
239 | } | |
240 | { | |
241 | wxPy_BEGIN_ALLOW_THREADS; | |
242 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
243 | ||
244 | wxPy_END_ALLOW_THREADS; | |
245 | }{ | |
eec92d76 | 246 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
247 | } |
248 | { | |
249 | delete _result; | |
250 | } | |
251 | return _resultobj; | |
252 | } | |
253 | ||
254 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
255 | PyObject * _resultobj; | |
256 | wxString * _result; | |
257 | wxString * _arg0; | |
258 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
259 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
260 | wxWindow * _arg3 = (wxWindow *) NULL; | |
261 | int _arg4 = (int ) -1; | |
262 | int _arg5 = (int ) -1; | |
263 | bool _arg6 = (bool ) TRUE; | |
264 | PyObject * _obj0 = 0; | |
265 | PyObject * _obj1 = 0; | |
266 | PyObject * _obj2 = 0; | |
267 | PyObject * _argo3 = 0; | |
268 | int tempbool6 = (int) TRUE; | |
269 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
270 | ||
271 | self = self; | |
272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
273 | return NULL; | |
274 | { | |
185d7c3e RD |
275 | #if PYTHON_API_VERSION >= 1009 |
276 | char* tmpPtr; int tmpSize; | |
277 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
278 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
279 | return NULL; | |
280 | } | |
281 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
282 | return NULL; | |
283 | _arg0 = new wxString(tmpPtr, tmpSize); | |
284 | #else | |
06c0fba4 RD |
285 | if (!PyString_Check(_obj0)) { |
286 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
287 | return NULL; | |
288 | } | |
185d7c3e RD |
289 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
290 | #endif | |
06c0fba4 RD |
291 | } |
292 | if (_obj1) | |
293 | { | |
185d7c3e RD |
294 | #if PYTHON_API_VERSION >= 1009 |
295 | char* tmpPtr; int tmpSize; | |
296 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
297 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
298 | return NULL; | |
299 | } | |
300 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
301 | return NULL; | |
302 | _arg1 = new wxString(tmpPtr, tmpSize); | |
303 | #else | |
06c0fba4 RD |
304 | if (!PyString_Check(_obj1)) { |
305 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
306 | return NULL; | |
307 | } | |
185d7c3e RD |
308 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
309 | #endif | |
06c0fba4 RD |
310 | } |
311 | if (_obj2) | |
312 | { | |
185d7c3e RD |
313 | #if PYTHON_API_VERSION >= 1009 |
314 | char* tmpPtr; int tmpSize; | |
315 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
316 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
317 | return NULL; | |
318 | } | |
319 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
320 | return NULL; | |
321 | _arg2 = new wxString(tmpPtr, tmpSize); | |
322 | #else | |
06c0fba4 RD |
323 | if (!PyString_Check(_obj2)) { |
324 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
325 | return NULL; | |
326 | } | |
185d7c3e RD |
327 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
328 | #endif | |
06c0fba4 RD |
329 | } |
330 | if (_argo3) { | |
331 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
334 | return NULL; | |
335 | } | |
336 | } | |
337 | _arg6 = (bool ) tempbool6; | |
338 | { | |
339 | wxPy_BEGIN_ALLOW_THREADS; | |
340 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
341 | ||
342 | wxPy_END_ALLOW_THREADS; | |
343 | }{ | |
eec92d76 | 344 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
345 | } |
346 | { | |
347 | if (_obj0) | |
348 | delete _arg0; | |
349 | } | |
350 | { | |
351 | if (_obj1) | |
352 | delete _arg1; | |
353 | } | |
354 | { | |
355 | if (_obj2) | |
356 | delete _arg2; | |
357 | } | |
358 | { | |
359 | delete _result; | |
360 | } | |
361 | return _resultobj; | |
362 | } | |
363 | ||
1b62f00d RD |
364 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
365 | PyObject * _resultobj; | |
366 | wxString * _result; | |
367 | wxString * _arg0; | |
368 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
369 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
370 | wxWindow * _arg3 = (wxWindow *) NULL; | |
371 | PyObject * _obj0 = 0; | |
372 | PyObject * _obj1 = 0; | |
373 | PyObject * _obj2 = 0; | |
374 | PyObject * _argo3 = 0; | |
375 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
376 | ||
377 | self = self; | |
378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
379 | return NULL; | |
380 | { | |
381 | #if PYTHON_API_VERSION >= 1009 | |
382 | char* tmpPtr; int tmpSize; | |
383 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
384 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
385 | return NULL; | |
386 | } | |
387 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
388 | return NULL; | |
389 | _arg0 = new wxString(tmpPtr, tmpSize); | |
390 | #else | |
391 | if (!PyString_Check(_obj0)) { | |
392 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
393 | return NULL; | |
394 | } | |
395 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
396 | #endif | |
397 | } | |
398 | if (_obj1) | |
399 | { | |
400 | #if PYTHON_API_VERSION >= 1009 | |
401 | char* tmpPtr; int tmpSize; | |
402 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
403 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
404 | return NULL; | |
405 | } | |
406 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
407 | return NULL; | |
408 | _arg1 = new wxString(tmpPtr, tmpSize); | |
409 | #else | |
410 | if (!PyString_Check(_obj1)) { | |
411 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
412 | return NULL; | |
413 | } | |
414 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
415 | #endif | |
416 | } | |
417 | if (_obj2) | |
418 | { | |
419 | #if PYTHON_API_VERSION >= 1009 | |
420 | char* tmpPtr; int tmpSize; | |
421 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
422 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
423 | return NULL; | |
424 | } | |
425 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
426 | return NULL; | |
427 | _arg2 = new wxString(tmpPtr, tmpSize); | |
428 | #else | |
429 | if (!PyString_Check(_obj2)) { | |
430 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
431 | return NULL; | |
432 | } | |
433 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
434 | #endif | |
435 | } | |
436 | if (_argo3) { | |
437 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
438 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
440 | return NULL; | |
441 | } | |
442 | } | |
443 | { | |
444 | wxPy_BEGIN_ALLOW_THREADS; | |
445 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
446 | ||
447 | wxPy_END_ALLOW_THREADS; | |
448 | }{ | |
449 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
450 | } | |
451 | { | |
452 | if (_obj0) | |
453 | delete _arg0; | |
454 | } | |
455 | { | |
456 | if (_obj1) | |
457 | delete _arg1; | |
458 | } | |
459 | { | |
460 | if (_obj2) | |
461 | delete _arg2; | |
462 | } | |
463 | { | |
464 | delete _result; | |
465 | } | |
466 | return _resultobj; | |
467 | } | |
468 | ||
06c0fba4 RD |
469 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
470 | PyObject * _resultobj; | |
471 | wxString * _result; | |
472 | wxString * _arg0; | |
473 | wxString * _arg1; | |
474 | int _arg2; | |
475 | wxString * _arg3; | |
476 | wxWindow * _arg4 = (wxWindow *) NULL; | |
477 | int _arg5 = (int ) -1; | |
478 | int _arg6 = (int ) -1; | |
479 | bool _arg7 = (bool ) TRUE; | |
480 | int _arg8 = (int ) 150; | |
481 | int _arg9 = (int ) 200; | |
482 | PyObject * _obj0 = 0; | |
483 | PyObject * _obj1 = 0; | |
484 | PyObject * _obj3 = 0; | |
485 | PyObject * _argo4 = 0; | |
486 | int tempbool7 = (int) TRUE; | |
eec92d76 | 487 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
488 | |
489 | self = self; | |
490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
491 | return NULL; | |
492 | { | |
185d7c3e RD |
493 | #if PYTHON_API_VERSION >= 1009 |
494 | char* tmpPtr; int tmpSize; | |
495 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
496 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
497 | return NULL; | |
498 | } | |
499 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
500 | return NULL; | |
501 | _arg0 = new wxString(tmpPtr, tmpSize); | |
502 | #else | |
06c0fba4 RD |
503 | if (!PyString_Check(_obj0)) { |
504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
505 | return NULL; | |
506 | } | |
185d7c3e RD |
507 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
508 | #endif | |
06c0fba4 RD |
509 | } |
510 | { | |
185d7c3e RD |
511 | #if PYTHON_API_VERSION >= 1009 |
512 | char* tmpPtr; int tmpSize; | |
513 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
514 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
515 | return NULL; | |
516 | } | |
517 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
518 | return NULL; | |
519 | _arg1 = new wxString(tmpPtr, tmpSize); | |
520 | #else | |
06c0fba4 RD |
521 | if (!PyString_Check(_obj1)) { |
522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
523 | return NULL; | |
524 | } | |
185d7c3e RD |
525 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
526 | #endif | |
06c0fba4 RD |
527 | } |
528 | if (_obj3) | |
529 | { | |
530 | _arg3 = wxString_LIST_helper(_obj3); | |
531 | if (_arg3 == NULL) { | |
532 | return NULL; | |
533 | } | |
534 | } | |
535 | if (_argo4) { | |
536 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
537 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
539 | return NULL; | |
540 | } | |
541 | } | |
542 | _arg7 = (bool ) tempbool7; | |
543 | { | |
544 | if (_obj3) { | |
545 | _arg2 = PyList_Size(_obj3); | |
546 | } | |
547 | else { | |
548 | _arg2 = 0; | |
549 | } | |
550 | } | |
551 | { | |
552 | wxPy_BEGIN_ALLOW_THREADS; | |
553 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
554 | ||
555 | wxPy_END_ALLOW_THREADS; | |
556 | }{ | |
eec92d76 | 557 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
558 | } |
559 | { | |
560 | if (_obj0) | |
561 | delete _arg0; | |
562 | } | |
563 | { | |
564 | if (_obj1) | |
565 | delete _arg1; | |
566 | } | |
567 | { | |
568 | delete [] _arg3; | |
569 | } | |
570 | { | |
571 | delete _result; | |
572 | } | |
573 | return _resultobj; | |
574 | } | |
575 | ||
576 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
577 | PyObject * _resultobj; | |
578 | int _result; | |
579 | wxString * _arg0; | |
580 | wxString * _arg1; | |
581 | int _arg2; | |
582 | wxString * _arg3; | |
583 | wxWindow * _arg4 = (wxWindow *) NULL; | |
584 | int _arg5 = (int ) -1; | |
585 | int _arg6 = (int ) -1; | |
586 | bool _arg7 = (bool ) TRUE; | |
587 | int _arg8 = (int ) 150; | |
588 | int _arg9 = (int ) 200; | |
589 | PyObject * _obj0 = 0; | |
590 | PyObject * _obj1 = 0; | |
591 | PyObject * _obj3 = 0; | |
592 | PyObject * _argo4 = 0; | |
593 | int tempbool7 = (int) TRUE; | |
eec92d76 | 594 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
595 | |
596 | self = self; | |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
598 | return NULL; | |
599 | { | |
185d7c3e RD |
600 | #if PYTHON_API_VERSION >= 1009 |
601 | char* tmpPtr; int tmpSize; | |
602 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
603 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
604 | return NULL; | |
605 | } | |
606 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
607 | return NULL; | |
608 | _arg0 = new wxString(tmpPtr, tmpSize); | |
609 | #else | |
06c0fba4 RD |
610 | if (!PyString_Check(_obj0)) { |
611 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
612 | return NULL; | |
613 | } | |
185d7c3e RD |
614 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
615 | #endif | |
06c0fba4 RD |
616 | } |
617 | { | |
185d7c3e RD |
618 | #if PYTHON_API_VERSION >= 1009 |
619 | char* tmpPtr; int tmpSize; | |
620 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
621 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
622 | return NULL; | |
623 | } | |
624 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
625 | return NULL; | |
626 | _arg1 = new wxString(tmpPtr, tmpSize); | |
627 | #else | |
06c0fba4 RD |
628 | if (!PyString_Check(_obj1)) { |
629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
630 | return NULL; | |
631 | } | |
185d7c3e RD |
632 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
633 | #endif | |
06c0fba4 RD |
634 | } |
635 | if (_obj3) | |
636 | { | |
637 | _arg3 = wxString_LIST_helper(_obj3); | |
638 | if (_arg3 == NULL) { | |
639 | return NULL; | |
640 | } | |
641 | } | |
642 | if (_argo4) { | |
643 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | _arg7 = (bool ) tempbool7; | |
650 | { | |
651 | if (_obj3) { | |
652 | _arg2 = PyList_Size(_obj3); | |
653 | } | |
654 | else { | |
655 | _arg2 = 0; | |
656 | } | |
657 | } | |
658 | { | |
659 | wxPy_BEGIN_ALLOW_THREADS; | |
660 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
661 | ||
662 | wxPy_END_ALLOW_THREADS; | |
663 | } _resultobj = Py_BuildValue("i",_result); | |
664 | { | |
665 | if (_obj0) | |
666 | delete _arg0; | |
667 | } | |
668 | { | |
669 | if (_obj1) | |
670 | delete _arg1; | |
671 | } | |
672 | { | |
673 | delete [] _arg3; | |
674 | } | |
675 | return _resultobj; | |
676 | } | |
677 | ||
678 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
679 | PyObject * _resultobj; | |
680 | int _result; | |
681 | wxString * _arg0; | |
682 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
683 | int _arg2 = (int ) wxOK|wxCENTRE; | |
684 | wxWindow * _arg3 = (wxWindow *) NULL; | |
685 | int _arg4 = (int ) -1; | |
686 | int _arg5 = (int ) -1; | |
687 | PyObject * _obj0 = 0; | |
688 | PyObject * _obj1 = 0; | |
689 | PyObject * _argo3 = 0; | |
690 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
691 | ||
692 | self = self; | |
693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
694 | return NULL; | |
695 | { | |
185d7c3e RD |
696 | #if PYTHON_API_VERSION >= 1009 |
697 | char* tmpPtr; int tmpSize; | |
698 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
699 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
700 | return NULL; | |
701 | } | |
702 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
703 | return NULL; | |
704 | _arg0 = new wxString(tmpPtr, tmpSize); | |
705 | #else | |
06c0fba4 RD |
706 | if (!PyString_Check(_obj0)) { |
707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
708 | return NULL; | |
709 | } | |
185d7c3e RD |
710 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
711 | #endif | |
06c0fba4 RD |
712 | } |
713 | if (_obj1) | |
714 | { | |
185d7c3e RD |
715 | #if PYTHON_API_VERSION >= 1009 |
716 | char* tmpPtr; int tmpSize; | |
717 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
718 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
719 | return NULL; | |
720 | } | |
721 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
722 | return NULL; | |
723 | _arg1 = new wxString(tmpPtr, tmpSize); | |
724 | #else | |
06c0fba4 RD |
725 | if (!PyString_Check(_obj1)) { |
726 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
727 | return NULL; | |
728 | } | |
185d7c3e RD |
729 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
730 | #endif | |
06c0fba4 RD |
731 | } |
732 | if (_argo3) { | |
733 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
734 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
736 | return NULL; | |
737 | } | |
738 | } | |
739 | { | |
740 | wxPy_BEGIN_ALLOW_THREADS; | |
741 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
742 | ||
743 | wxPy_END_ALLOW_THREADS; | |
744 | } _resultobj = Py_BuildValue("i",_result); | |
745 | { | |
746 | if (_obj0) | |
747 | delete _arg0; | |
748 | } | |
749 | { | |
750 | if (_obj1) | |
751 | delete _arg1; | |
752 | } | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | long _result; | |
759 | wxString * _arg0; | |
760 | wxString * _arg1; | |
761 | wxString * _arg2; | |
762 | long _arg3; | |
763 | long _arg4 = (long ) 0; | |
764 | long _arg5 = (long ) 100; | |
765 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 766 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
767 | PyObject * _obj0 = 0; |
768 | PyObject * _obj1 = 0; | |
769 | PyObject * _obj2 = 0; | |
770 | PyObject * _argo6 = 0; | |
771 | wxPoint temp; | |
772 | PyObject * _obj7 = 0; | |
773 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
774 | ||
775 | self = self; | |
776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
777 | return NULL; | |
778 | { | |
185d7c3e RD |
779 | #if PYTHON_API_VERSION >= 1009 |
780 | char* tmpPtr; int tmpSize; | |
781 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
782 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
783 | return NULL; | |
784 | } | |
785 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
786 | return NULL; | |
787 | _arg0 = new wxString(tmpPtr, tmpSize); | |
788 | #else | |
06c0fba4 RD |
789 | if (!PyString_Check(_obj0)) { |
790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
791 | return NULL; | |
792 | } | |
185d7c3e RD |
793 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
794 | #endif | |
06c0fba4 RD |
795 | } |
796 | { | |
185d7c3e RD |
797 | #if PYTHON_API_VERSION >= 1009 |
798 | char* tmpPtr; int tmpSize; | |
799 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
800 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
801 | return NULL; | |
802 | } | |
803 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
804 | return NULL; | |
805 | _arg1 = new wxString(tmpPtr, tmpSize); | |
806 | #else | |
06c0fba4 RD |
807 | if (!PyString_Check(_obj1)) { |
808 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
809 | return NULL; | |
810 | } | |
185d7c3e RD |
811 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
812 | #endif | |
06c0fba4 RD |
813 | } |
814 | { | |
185d7c3e RD |
815 | #if PYTHON_API_VERSION >= 1009 |
816 | char* tmpPtr; int tmpSize; | |
817 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
818 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
819 | return NULL; | |
820 | } | |
821 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
822 | return NULL; | |
823 | _arg2 = new wxString(tmpPtr, tmpSize); | |
824 | #else | |
06c0fba4 RD |
825 | if (!PyString_Check(_obj2)) { |
826 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
827 | return NULL; | |
828 | } | |
185d7c3e RD |
829 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
830 | #endif | |
06c0fba4 RD |
831 | } |
832 | if (_argo6) { | |
833 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
834 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
836 | return NULL; | |
837 | } | |
838 | } | |
839 | if (_obj7) | |
840 | { | |
841 | _arg7 = &temp; | |
842 | if (! wxPoint_helper(_obj7, &_arg7)) | |
843 | return NULL; | |
844 | } | |
845 | { | |
846 | wxPy_BEGIN_ALLOW_THREADS; | |
847 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
848 | ||
849 | wxPy_END_ALLOW_THREADS; | |
850 | } _resultobj = Py_BuildValue("l",_result); | |
851 | { | |
852 | if (_obj0) | |
853 | delete _arg0; | |
854 | } | |
855 | { | |
856 | if (_obj1) | |
857 | delete _arg1; | |
858 | } | |
859 | { | |
860 | if (_obj2) | |
861 | delete _arg2; | |
862 | } | |
863 | return _resultobj; | |
864 | } | |
865 | ||
866 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
867 | PyObject * _resultobj; | |
868 | bool _result; | |
869 | char *_kwnames[] = { NULL }; | |
870 | ||
871 | self = self; | |
872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
873 | return NULL; | |
874 | { | |
875 | wxPy_BEGIN_ALLOW_THREADS; | |
876 | _result = (bool )wxColourDisplay(); | |
877 | ||
878 | wxPy_END_ALLOW_THREADS; | |
879 | } _resultobj = Py_BuildValue("i",_result); | |
880 | return _resultobj; | |
881 | } | |
882 | ||
883 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
884 | PyObject * _resultobj; | |
885 | int _result; | |
886 | char *_kwnames[] = { NULL }; | |
887 | ||
888 | self = self; | |
889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
890 | return NULL; | |
891 | { | |
892 | wxPy_BEGIN_ALLOW_THREADS; | |
893 | _result = (int )wxDisplayDepth(); | |
894 | ||
895 | wxPy_END_ALLOW_THREADS; | |
896 | } _resultobj = Py_BuildValue("i",_result); | |
897 | return _resultobj; | |
898 | } | |
f0261a72 | 899 | |
1e7ecb7b RD |
900 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
901 | PyObject * _resultobj; | |
902 | int _result; | |
903 | char *_kwnames[] = { NULL }; | |
904 | ||
905 | self = self; | |
906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
907 | return NULL; | |
908 | { | |
909 | wxPy_BEGIN_ALLOW_THREADS; | |
910 | _result = (int )wxGetDisplayDepth(); | |
911 | ||
912 | wxPy_END_ALLOW_THREADS; | |
913 | } _resultobj = Py_BuildValue("i",_result); | |
914 | return _resultobj; | |
915 | } | |
916 | ||
917 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
918 | PyObject * _resultobj; | |
919 | int * _arg0; | |
920 | int temp; | |
921 | int * _arg1; | |
922 | int temp0; | |
923 | char *_kwnames[] = { NULL }; | |
924 | ||
925 | self = self; | |
926 | { | |
927 | _arg0 = &temp; | |
928 | } | |
929 | { | |
930 | _arg1 = &temp0; | |
931 | } | |
932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
933 | return NULL; | |
934 | { | |
935 | wxPy_BEGIN_ALLOW_THREADS; | |
936 | wxDisplaySize(_arg0,_arg1); | |
937 | ||
938 | wxPy_END_ALLOW_THREADS; | |
939 | } Py_INCREF(Py_None); | |
940 | _resultobj = Py_None; | |
941 | { | |
942 | PyObject *o; | |
943 | o = PyInt_FromLong((long) (*_arg0)); | |
944 | _resultobj = t_output_helper(_resultobj, o); | |
945 | } | |
946 | { | |
947 | PyObject *o; | |
948 | o = PyInt_FromLong((long) (*_arg1)); | |
949 | _resultobj = t_output_helper(_resultobj, o); | |
950 | } | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
955 | PyObject * _resultobj; | |
956 | wxSize * _result; | |
957 | char *_kwnames[] = { NULL }; | |
958 | char _ptemp[128]; | |
959 | ||
960 | self = self; | |
961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
962 | return NULL; | |
963 | { | |
964 | wxPy_BEGIN_ALLOW_THREADS; | |
965 | _result = new wxSize (wxGetDisplaySize()); | |
966 | ||
967 | wxPy_END_ALLOW_THREADS; | |
968 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
969 | _resultobj = Py_BuildValue("s",_ptemp); | |
970 | return _resultobj; | |
971 | } | |
972 | ||
973 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
974 | PyObject * _resultobj; | |
975 | int * _arg0; | |
976 | int temp; | |
977 | int * _arg1; | |
978 | int temp0; | |
979 | char *_kwnames[] = { NULL }; | |
980 | ||
981 | self = self; | |
982 | { | |
983 | _arg0 = &temp; | |
984 | } | |
985 | { | |
986 | _arg1 = &temp0; | |
987 | } | |
988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
989 | return NULL; | |
990 | { | |
991 | wxPy_BEGIN_ALLOW_THREADS; | |
992 | wxDisplaySizeMM(_arg0,_arg1); | |
993 | ||
994 | wxPy_END_ALLOW_THREADS; | |
995 | } Py_INCREF(Py_None); | |
996 | _resultobj = Py_None; | |
997 | { | |
998 | PyObject *o; | |
999 | o = PyInt_FromLong((long) (*_arg0)); | |
1000 | _resultobj = t_output_helper(_resultobj, o); | |
1001 | } | |
1002 | { | |
1003 | PyObject *o; | |
1004 | o = PyInt_FromLong((long) (*_arg1)); | |
1005 | _resultobj = t_output_helper(_resultobj, o); | |
1006 | } | |
1007 | return _resultobj; | |
1008 | } | |
1009 | ||
1010 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1011 | PyObject * _resultobj; | |
1012 | wxSize * _result; | |
1013 | char *_kwnames[] = { NULL }; | |
1014 | char _ptemp[128]; | |
1015 | ||
1016 | self = self; | |
1017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1018 | return NULL; | |
1019 | { | |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1022 | ||
1023 | wxPy_END_ALLOW_THREADS; | |
1024 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1025 | _resultobj = Py_BuildValue("s",_ptemp); | |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
06c0fba4 RD |
1029 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1030 | PyObject * _resultobj; | |
1031 | wxCursor * _arg0; | |
1032 | PyObject * _argo0 = 0; | |
1033 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1034 | |
06c0fba4 RD |
1035 | self = self; |
1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1037 | return NULL; | |
1038 | if (_argo0) { | |
1039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1042 | return NULL; | |
1043 | } | |
f0261a72 | 1044 | } |
06c0fba4 RD |
1045 | { |
1046 | wxPy_BEGIN_ALLOW_THREADS; | |
1047 | wxSetCursor(*_arg0); | |
1048 | ||
1049 | wxPy_END_ALLOW_THREADS; | |
1050 | } Py_INCREF(Py_None); | |
1051 | _resultobj = Py_None; | |
1052 | return _resultobj; | |
1053 | } | |
1054 | ||
efc5f224 | 1055 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1056 | PyObject * _resultobj; |
1057 | wxWindow * _result; | |
1058 | wxString * _arg0; | |
1d99702e | 1059 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1060 | PyObject * _obj0 = 0; |
1d99702e | 1061 | PyObject * _argo1 = 0; |
efc5f224 | 1062 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
1063 | char _ptemp[128]; |
1064 | ||
1065 | self = self; | |
efc5f224 | 1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1067 | return NULL; |
1068 | { | |
185d7c3e RD |
1069 | #if PYTHON_API_VERSION >= 1009 |
1070 | char* tmpPtr; int tmpSize; | |
1071 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1072 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1073 | return NULL; | |
1074 | } | |
1075 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1076 | return NULL; | |
1077 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1078 | #else | |
bb0054cd RD |
1079 | if (!PyString_Check(_obj0)) { |
1080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1081 | return NULL; | |
1082 | } | |
185d7c3e RD |
1083 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1084 | #endif | |
bb0054cd | 1085 | } |
1d99702e RD |
1086 | if (_argo1) { |
1087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1090 | return NULL; | |
1091 | } | |
1092 | } | |
1093 | { | |
1094 | wxPy_BEGIN_ALLOW_THREADS; | |
1095 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1096 | ||
1097 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1098 | } if (_result) { |
1099 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1100 | _resultobj = Py_BuildValue("s",_ptemp); | |
1101 | } else { | |
1102 | Py_INCREF(Py_None); | |
1103 | _resultobj = Py_None; | |
1104 | } | |
bb0054cd RD |
1105 | { |
1106 | if (_obj0) | |
1107 | delete _arg0; | |
1108 | } | |
1109 | return _resultobj; | |
1110 | } | |
1111 | ||
efc5f224 | 1112 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1113 | PyObject * _resultobj; |
1114 | wxWindow * _result; | |
1115 | wxString * _arg0; | |
1d99702e | 1116 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1117 | PyObject * _obj0 = 0; |
1d99702e | 1118 | PyObject * _argo1 = 0; |
efc5f224 | 1119 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
1120 | char _ptemp[128]; |
1121 | ||
1122 | self = self; | |
efc5f224 | 1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1124 | return NULL; |
1125 | { | |
185d7c3e RD |
1126 | #if PYTHON_API_VERSION >= 1009 |
1127 | char* tmpPtr; int tmpSize; | |
1128 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1129 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1130 | return NULL; | |
1131 | } | |
1132 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1133 | return NULL; | |
1134 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1135 | #else | |
bb0054cd RD |
1136 | if (!PyString_Check(_obj0)) { |
1137 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1138 | return NULL; | |
1139 | } | |
185d7c3e RD |
1140 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1141 | #endif | |
bb0054cd | 1142 | } |
1d99702e RD |
1143 | if (_argo1) { |
1144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1147 | return NULL; | |
1148 | } | |
1149 | } | |
1150 | { | |
1151 | wxPy_BEGIN_ALLOW_THREADS; | |
1152 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1153 | ||
1154 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1155 | } if (_result) { |
1156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1157 | _resultobj = Py_BuildValue("s",_ptemp); | |
1158 | } else { | |
1159 | Py_INCREF(Py_None); | |
1160 | _resultobj = Py_None; | |
1161 | } | |
bb0054cd RD |
1162 | { |
1163 | if (_obj0) | |
1164 | delete _arg0; | |
1165 | } | |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
06c0fba4 RD |
1169 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1170 | PyObject * _resultobj; | |
1171 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1172 | PyObject * _argo0 = 0; | |
1173 | char *_kwnames[] = { "cursor", NULL }; | |
1174 | ||
1175 | self = self; | |
1176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1177 | return NULL; | |
1178 | if (_argo0) { | |
1179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1182 | return NULL; | |
1183 | } | |
1184 | } | |
1185 | { | |
1186 | wxPy_BEGIN_ALLOW_THREADS; | |
1187 | wxBeginBusyCursor(_arg0); | |
1188 | ||
1189 | wxPy_END_ALLOW_THREADS; | |
1190 | } Py_INCREF(Py_None); | |
1191 | _resultobj = Py_None; | |
1192 | return _resultobj; | |
1193 | } | |
1194 | ||
1195 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1196 | PyObject * _resultobj; | |
1197 | wxWindow * _result; | |
1198 | char *_kwnames[] = { NULL }; | |
1199 | char _ptemp[128]; | |
1200 | ||
1201 | self = self; | |
1202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1203 | return NULL; | |
1204 | { | |
1205 | wxPy_BEGIN_ALLOW_THREADS; | |
1206 | _result = (wxWindow *)wxGetActiveWindow(); | |
1207 | ||
1208 | wxPy_END_ALLOW_THREADS; | |
1209 | } if (_result) { | |
1210 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1211 | _resultobj = Py_BuildValue("s",_ptemp); | |
1212 | } else { | |
1213 | Py_INCREF(Py_None); | |
1214 | _resultobj = Py_None; | |
1215 | } | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
1219 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1220 | PyObject * _resultobj; | |
1221 | bool _result; | |
1222 | char * _arg0; | |
1223 | int _arg1; | |
1224 | char *_kwnames[] = { "name","value", NULL }; | |
1225 | ||
1226 | self = self; | |
1227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1228 | return NULL; | |
1229 | { | |
1230 | wxPy_BEGIN_ALLOW_THREADS; | |
1231 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1232 | ||
1233 | wxPy_END_ALLOW_THREADS; | |
1234 | } _resultobj = Py_BuildValue("i",_result); | |
1235 | return _resultobj; | |
1236 | } | |
1237 | ||
1238 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1239 | PyObject * _resultobj; | |
1240 | char *_kwnames[] = { NULL }; | |
1241 | ||
1242 | self = self; | |
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1244 | return NULL; | |
1245 | { | |
1246 | wxPy_BEGIN_ALLOW_THREADS; | |
1247 | wxResourceClear(); | |
1248 | ||
1249 | wxPy_END_ALLOW_THREADS; | |
1250 | } Py_INCREF(Py_None); | |
1251 | _resultobj = Py_None; | |
1252 | return _resultobj; | |
1253 | } | |
1254 | ||
1255 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1256 | PyObject * _resultobj; | |
1257 | wxBitmap * _result; | |
1258 | char * _arg0; | |
1259 | char *_kwnames[] = { "resource", NULL }; | |
1260 | char _ptemp[128]; | |
1261 | ||
1262 | self = self; | |
1263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1264 | return NULL; | |
1265 | { | |
1266 | wxPy_BEGIN_ALLOW_THREADS; | |
1267 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1268 | ||
1269 | wxPy_END_ALLOW_THREADS; | |
1270 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1271 | _resultobj = Py_BuildValue("s",_ptemp); | |
1272 | return _resultobj; | |
1273 | } | |
1274 | ||
1275 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject * _resultobj; | |
1277 | wxIcon * _result; | |
1278 | char * _arg0; | |
1279 | char *_kwnames[] = { "resource", NULL }; | |
1280 | char _ptemp[128]; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1284 | return NULL; | |
1285 | { | |
1286 | wxPy_BEGIN_ALLOW_THREADS; | |
1287 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1288 | ||
1289 | wxPy_END_ALLOW_THREADS; | |
1290 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1291 | _resultobj = Py_BuildValue("s",_ptemp); | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject * _resultobj; | |
1297 | wxMenuBar * _result; | |
1298 | char * _arg0; | |
1299 | char *_kwnames[] = { "resource", NULL }; | |
1300 | char _ptemp[128]; | |
1301 | ||
1302 | self = self; | |
1303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1304 | return NULL; | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1310 | } if (_result) { | |
1311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
1312 | _resultobj = Py_BuildValue("s",_ptemp); | |
1313 | } else { | |
1314 | Py_INCREF(Py_None); | |
1315 | _resultobj = Py_None; | |
1316 | } | |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | int _result; | |
1323 | char * _arg0; | |
1324 | char *_kwnames[] = { "name", NULL }; | |
1325 | ||
1326 | self = self; | |
1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1328 | return NULL; | |
1329 | { | |
1330 | wxPy_BEGIN_ALLOW_THREADS; | |
1331 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1332 | ||
1333 | wxPy_END_ALLOW_THREADS; | |
1334 | } _resultobj = Py_BuildValue("i",_result); | |
1335 | return _resultobj; | |
1336 | } | |
1337 | ||
1338 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1339 | PyObject * _resultobj; | |
1340 | bool _result; | |
1341 | char * _arg0; | |
1342 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1343 | PyObject * _argo1 = 0; | |
1344 | char *_kwnames[] = { "resource","table", NULL }; | |
1345 | ||
1346 | self = self; | |
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1348 | return NULL; | |
1349 | if (_argo1) { | |
1350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1353 | return NULL; | |
1354 | } | |
1355 | } | |
1356 | { | |
1357 | wxPy_BEGIN_ALLOW_THREADS; | |
1358 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1359 | ||
1360 | wxPy_END_ALLOW_THREADS; | |
1361 | } _resultobj = Py_BuildValue("i",_result); | |
1362 | return _resultobj; | |
1363 | } | |
1364 | ||
1365 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1366 | PyObject * _resultobj; | |
1367 | bool _result; | |
1368 | char * _arg0; | |
1369 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1370 | PyObject * _argo1 = 0; | |
1371 | char *_kwnames[] = { "filename","table", NULL }; | |
1372 | ||
1373 | self = self; | |
1374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1375 | return NULL; | |
1376 | if (_argo1) { | |
1377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1380 | return NULL; | |
1381 | } | |
1382 | } | |
1383 | { | |
1384 | wxPy_BEGIN_ALLOW_THREADS; | |
1385 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1386 | ||
1387 | wxPy_END_ALLOW_THREADS; | |
1388 | } _resultobj = Py_BuildValue("i",_result); | |
1389 | return _resultobj; | |
1390 | } | |
1391 | ||
1392 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject * _resultobj; | |
1394 | bool _result; | |
1395 | char * _arg0; | |
1396 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1397 | PyObject * _argo1 = 0; | |
1398 | char *_kwnames[] = { "resource","table", NULL }; | |
1399 | ||
1400 | self = self; | |
1401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1402 | return NULL; | |
1403 | if (_argo1) { | |
1404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1407 | return NULL; | |
1408 | } | |
1409 | } | |
1410 | { | |
1411 | wxPy_BEGIN_ALLOW_THREADS; | |
1412 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1413 | ||
1414 | wxPy_END_ALLOW_THREADS; | |
1415 | } _resultobj = Py_BuildValue("i",_result); | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject * _resultobj; | |
1421 | wxColour * _result; | |
1422 | int _arg0; | |
1423 | char *_kwnames[] = { "index", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1428 | return NULL; | |
1429 | { | |
1430 | wxPy_BEGIN_ALLOW_THREADS; | |
1431 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1432 | ||
1433 | wxPy_END_ALLOW_THREADS; | |
1434 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1435 | _resultobj = Py_BuildValue("s",_ptemp); | |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject * _resultobj; | |
1441 | wxFont * _result; | |
1442 | int _arg0; | |
1443 | char *_kwnames[] = { "index", NULL }; | |
1444 | char _ptemp[128]; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1448 | return NULL; | |
1449 | { | |
1450 | wxPy_BEGIN_ALLOW_THREADS; | |
1451 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1452 | ||
1453 | wxPy_END_ALLOW_THREADS; | |
1454 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1455 | _resultobj = Py_BuildValue("s",_ptemp); | |
1456 | return _resultobj; | |
1457 | } | |
1458 | ||
1459 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject * _resultobj; | |
1461 | int _result; | |
1462 | int _arg0; | |
1463 | char *_kwnames[] = { "index", NULL }; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1467 | return NULL; | |
1468 | { | |
1469 | wxPy_BEGIN_ALLOW_THREADS; | |
1470 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1471 | ||
1472 | wxPy_END_ALLOW_THREADS; | |
1473 | } _resultobj = Py_BuildValue("i",_result); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
efc5f224 | 1477 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1478 | PyObject * _resultobj; |
1479 | bool _arg0; | |
1480 | int tempbool0; | |
efc5f224 | 1481 | char *_kwnames[] = { "flag", NULL }; |
bb0054cd RD |
1482 | |
1483 | self = self; | |
efc5f224 | 1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) |
bb0054cd RD |
1485 | return NULL; |
1486 | _arg0 = (bool ) tempbool0; | |
1487 | { | |
1488 | wxPy_BEGIN_ALLOW_THREADS; | |
1489 | wxToolTip_Enable(_arg0); | |
1490 | ||
1491 | wxPy_END_ALLOW_THREADS; | |
1492 | } Py_INCREF(Py_None); | |
1493 | _resultobj = Py_None; | |
1494 | return _resultobj; | |
1495 | } | |
1496 | ||
efc5f224 | 1497 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1498 | PyObject * _resultobj; |
1499 | long _arg0; | |
efc5f224 | 1500 | char *_kwnames[] = { "milliseconds", NULL }; |
bb0054cd RD |
1501 | |
1502 | self = self; | |
efc5f224 | 1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) |
bb0054cd RD |
1504 | return NULL; |
1505 | { | |
1506 | wxPy_BEGIN_ALLOW_THREADS; | |
1507 | wxToolTip_SetDelay(_arg0); | |
1508 | ||
1509 | wxPy_END_ALLOW_THREADS; | |
1510 | } Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | return _resultobj; | |
1513 | } | |
1514 | ||
f0261a72 RD |
1515 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1516 | PyObject * _resultobj; | |
1517 | int _result; | |
1518 | char *_kwnames[] = { NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1522 | return NULL; | |
1523 | { | |
1524 | wxPy_BEGIN_ALLOW_THREADS; | |
1525 | _result = (int )wxCaret_GetBlinkTime(); | |
1526 | ||
1527 | wxPy_END_ALLOW_THREADS; | |
1528 | } _resultobj = Py_BuildValue("i",_result); | |
1529 | return _resultobj; | |
1530 | } | |
1531 | ||
1532 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject * _resultobj; | |
1534 | int _arg0; | |
1535 | char *_kwnames[] = { "milliseconds", NULL }; | |
1536 | ||
1537 | self = self; | |
1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1539 | return NULL; | |
1540 | { | |
1541 | wxPy_BEGIN_ALLOW_THREADS; | |
1542 | wxCaret_SetBlinkTime(_arg0); | |
1543 | ||
1544 | wxPy_END_ALLOW_THREADS; | |
1545 | } Py_INCREF(Py_None); | |
1546 | _resultobj = Py_None; | |
1547 | return _resultobj; | |
1548 | } | |
1549 | ||
b1462dfa RD |
1550 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1551 | PyObject * _resultobj; | |
1552 | wxEvtHandler * _arg0; | |
1553 | wxEvent * _arg1; | |
1554 | PyObject * _argo0 = 0; | |
1555 | PyObject * _argo1 = 0; | |
1556 | char *_kwnames[] = { "dest","event", NULL }; | |
1557 | ||
1558 | self = self; | |
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1560 | return NULL; | |
1561 | if (_argo0) { | |
1562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1565 | return NULL; | |
1566 | } | |
1567 | } | |
1568 | if (_argo1) { | |
1569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | wxPostEvent(_arg0,*_arg1); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } Py_INCREF(Py_None); | |
1581 | _resultobj = Py_None; | |
1582 | return _resultobj; | |
1583 | } | |
1584 | ||
694759cf RD |
1585 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1586 | PyObject * _resultobj; | |
1587 | char *_kwnames[] = { NULL }; | |
1588 | ||
1589 | self = self; | |
1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1591 | return NULL; | |
1592 | { | |
1593 | wxPy_BEGIN_ALLOW_THREADS; | |
1594 | wxWakeUpIdle(); | |
1595 | ||
1596 | wxPy_END_ALLOW_THREADS; | |
1597 | } Py_INCREF(Py_None); | |
1598 | _resultobj = Py_None; | |
1599 | return _resultobj; | |
1600 | } | |
1601 | ||
c368d904 RD |
1602 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1603 | PyObject * _resultobj; | |
1604 | bool _result; | |
1605 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1606 | PyObject * _argo0 = 0; | |
1607 | char *_kwnames[] = { "win", NULL }; | |
1608 | ||
1609 | self = self; | |
1610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1611 | return NULL; | |
1612 | if (_argo0) { | |
1613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1616 | return NULL; | |
1617 | } | |
1618 | } | |
1619 | { | |
1620 | wxPy_BEGIN_ALLOW_THREADS; | |
1621 | _result = (bool )wxSafeYield(_arg0); | |
1622 | ||
1623 | wxPy_END_ALLOW_THREADS; | |
1624 | } _resultobj = Py_BuildValue("i",_result); | |
1625 | return _resultobj; | |
1626 | } | |
1627 | ||
f6bcfd97 | 1628 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1629 | PyObject * _resultobj; |
f6bcfd97 BP |
1630 | bool _result; |
1631 | wxWindow * _arg0; | |
1632 | wxTipProvider * _arg1; | |
1633 | bool _arg2 = (bool ) TRUE; | |
1634 | PyObject * _argo0 = 0; | |
1635 | PyObject * _argo1 = 0; | |
1636 | int tempbool2 = (int) TRUE; | |
1637 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1638 | ||
1639 | self = self; | |
1640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1641 | return NULL; | |
1642 | if (_argo0) { | |
1643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1646 | return NULL; | |
1647 | } | |
1648 | } | |
1649 | if (_argo1) { | |
1650 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1651 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1653 | return NULL; | |
1654 | } | |
1655 | } | |
1656 | _arg2 = (bool ) tempbool2; | |
1657 | { | |
1658 | wxPy_BEGIN_ALLOW_THREADS; | |
1659 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1660 | ||
1661 | wxPy_END_ALLOW_THREADS; | |
1662 | } _resultobj = Py_BuildValue("i",_result); | |
1663 | return _resultobj; | |
1664 | } | |
1665 | ||
1666 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject * _resultobj; | |
1668 | wxTipProvider * _result; | |
bb0054cd | 1669 | wxString * _arg0; |
f6bcfd97 | 1670 | size_t _arg1; |
bb0054cd | 1671 | PyObject * _obj0 = 0; |
f6bcfd97 | 1672 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1673 | char _ptemp[128]; |
1674 | ||
1675 | self = self; | |
f6bcfd97 | 1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1677 | return NULL; |
1678 | { | |
185d7c3e RD |
1679 | #if PYTHON_API_VERSION >= 1009 |
1680 | char* tmpPtr; int tmpSize; | |
1681 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1682 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1683 | return NULL; | |
1684 | } | |
1685 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1686 | return NULL; | |
1687 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1688 | #else | |
bb0054cd RD |
1689 | if (!PyString_Check(_obj0)) { |
1690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1691 | return NULL; | |
1692 | } | |
185d7c3e RD |
1693 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1694 | #endif | |
bb0054cd RD |
1695 | } |
1696 | { | |
1697 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1698 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd RD |
1699 | |
1700 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 1701 | } if (_result) { |
f6bcfd97 | 1702 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1703 | _resultobj = Py_BuildValue("s",_ptemp); |
1704 | } else { | |
1705 | Py_INCREF(Py_None); | |
1706 | _resultobj = Py_None; | |
1707 | } | |
bb0054cd RD |
1708 | { |
1709 | if (_obj0) | |
1710 | delete _arg0; | |
1711 | } | |
1712 | return _resultobj; | |
1713 | } | |
1714 | ||
f6bcfd97 | 1715 | static PyObject *_wrap_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1716 | PyObject * _resultobj; |
f6bcfd97 BP |
1717 | wxGenericDragImage * _result; |
1718 | wxIcon * _arg0; | |
1719 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1720 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
1d99702e | 1721 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
1722 | PyObject * _argo1 = 0; |
1723 | wxPoint temp; | |
1724 | PyObject * _obj2 = 0; | |
1725 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
1726 | char _ptemp[128]; | |
bb0054cd RD |
1727 | |
1728 | self = self; | |
f6bcfd97 | 1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragIcon",_kwnames,&_argo0,&_argo1,&_obj2)) |
bb0054cd | 1730 | return NULL; |
1d99702e RD |
1731 | if (_argo0) { |
1732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
1733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
1734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragIcon. Expected _wxIcon_p."); | |
bb0054cd RD |
1735 | return NULL; |
1736 | } | |
1737 | } | |
f6bcfd97 BP |
1738 | if (_argo1) { |
1739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragIcon. Expected _wxCursor_p."); | |
bb0054cd | 1742 | return NULL; |
f6bcfd97 | 1743 | } |
bb0054cd | 1744 | } |
f6bcfd97 BP |
1745 | if (_obj2) |
1746 | { | |
1747 | _arg2 = &temp; | |
1748 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1749 | return NULL; | |
bb0054cd RD |
1750 | } |
1751 | { | |
1752 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1753 | _result = (wxGenericDragImage *)wxDragIcon(*_arg0,*_arg1,*_arg2); |
bb0054cd RD |
1754 | |
1755 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1756 | } if (_result) { |
1757 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1758 | _resultobj = Py_BuildValue("s",_ptemp); | |
1759 | } else { | |
1760 | Py_INCREF(Py_None); | |
1761 | _resultobj = Py_None; | |
1762 | } | |
bb0054cd RD |
1763 | return _resultobj; |
1764 | } | |
1765 | ||
f6bcfd97 | 1766 | static PyObject *_wrap_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1767 | PyObject * _resultobj; |
f6bcfd97 BP |
1768 | wxGenericDragImage * _result; |
1769 | wxString * _arg0; | |
1770 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1771 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
1772 | PyObject * _obj0 = 0; | |
1773 | PyObject * _argo1 = 0; | |
1774 | wxPoint temp; | |
1775 | PyObject * _obj2 = 0; | |
1776 | char *_kwnames[] = { "str","cursor","hotspot", NULL }; | |
1777 | char _ptemp[128]; | |
bb0054cd RD |
1778 | |
1779 | self = self; | |
f6bcfd97 | 1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragString",_kwnames,&_obj0,&_argo1,&_obj2)) |
bb0054cd | 1781 | return NULL; |
f6bcfd97 | 1782 | { |
185d7c3e RD |
1783 | #if PYTHON_API_VERSION >= 1009 |
1784 | char* tmpPtr; int tmpSize; | |
1785 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1786 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1787 | return NULL; | |
1788 | } | |
1789 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1790 | return NULL; | |
1791 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1792 | #else | |
f6bcfd97 BP |
1793 | if (!PyString_Check(_obj0)) { |
1794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1795 | return NULL; | |
1796 | } | |
185d7c3e RD |
1797 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1798 | #endif | |
f6bcfd97 BP |
1799 | } |
1800 | if (_argo1) { | |
1801 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1802 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragString. Expected _wxCursor_p."); | |
bb0054cd RD |
1804 | return NULL; |
1805 | } | |
1806 | } | |
f6bcfd97 BP |
1807 | if (_obj2) |
1808 | { | |
1809 | _arg2 = &temp; | |
1810 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1811 | return NULL; | |
1812 | } | |
bb0054cd RD |
1813 | { |
1814 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1815 | _result = (wxGenericDragImage *)wxDragString(*_arg0,*_arg1,*_arg2); |
bb0054cd RD |
1816 | |
1817 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1818 | } if (_result) { |
1819 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1820 | _resultobj = Py_BuildValue("s",_ptemp); | |
1821 | } else { | |
1822 | Py_INCREF(Py_None); | |
1823 | _resultobj = Py_None; | |
1824 | } | |
bb0054cd | 1825 | { |
f6bcfd97 BP |
1826 | if (_obj0) |
1827 | delete _arg0; | |
bb0054cd RD |
1828 | } |
1829 | return _resultobj; | |
1830 | } | |
1831 | ||
f6bcfd97 | 1832 | static PyObject *_wrap_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1833 | PyObject * _resultobj; |
f6bcfd97 BP |
1834 | wxGenericDragImage * _result; |
1835 | wxTreeCtrl * _arg0; | |
1836 | wxTreeItemId * _arg1; | |
1d99702e | 1837 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
1838 | PyObject * _argo1 = 0; |
1839 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
bb0054cd RD |
1840 | char _ptemp[128]; |
1841 | ||
1842 | self = self; | |
f6bcfd97 | 1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragTreeItem",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 1844 | return NULL; |
1d99702e RD |
1845 | if (_argo0) { |
1846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
1847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { |
1848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
1849 | return NULL; | |
1850 | } | |
1851 | } | |
1852 | if (_argo1) { | |
1853 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragTreeItem. Expected _wxTreeItemId_p."); | |
bb0054cd RD |
1856 | return NULL; |
1857 | } | |
1858 | } | |
1859 | { | |
1860 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1861 | _result = (wxGenericDragImage *)wxDragTreeItem(*_arg0,*_arg1); |
bb0054cd RD |
1862 | |
1863 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 1864 | } if (_result) { |
f6bcfd97 | 1865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); |
1d99702e RD |
1866 | _resultobj = Py_BuildValue("s",_ptemp); |
1867 | } else { | |
1868 | Py_INCREF(Py_None); | |
1869 | _resultobj = Py_None; | |
1870 | } | |
bb0054cd RD |
1871 | return _resultobj; |
1872 | } | |
1873 | ||
f6bcfd97 | 1874 | static PyObject *_wrap_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1875 | PyObject * _resultobj; |
f6bcfd97 BP |
1876 | wxGenericDragImage * _result; |
1877 | wxListCtrl * _arg0; | |
1878 | long _arg1; | |
f0261a72 | 1879 | PyObject * _argo0 = 0; |
f6bcfd97 | 1880 | char *_kwnames[] = { "listCtrl","id", NULL }; |
f0261a72 RD |
1881 | char _ptemp[128]; |
1882 | ||
1883 | self = self; | |
f6bcfd97 | 1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDragListItem",_kwnames,&_argo0,&_arg1)) |
f0261a72 RD |
1885 | return NULL; |
1886 | if (_argo0) { | |
1887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
1888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { |
1889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragListItem. Expected _wxListCtrl_p."); | |
f0261a72 RD |
1890 | return NULL; |
1891 | } | |
1892 | } | |
f0261a72 RD |
1893 | { |
1894 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1895 | _result = (wxGenericDragImage *)wxDragListItem(*_arg0,_arg1); |
f0261a72 RD |
1896 | |
1897 | wxPy_END_ALLOW_THREADS; | |
1898 | } if (_result) { | |
f6bcfd97 | 1899 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); |
f0261a72 RD |
1900 | _resultobj = Py_BuildValue("s",_ptemp); |
1901 | } else { | |
1902 | Py_INCREF(Py_None); | |
1903 | _resultobj = Py_None; | |
1904 | } | |
1905 | return _resultobj; | |
1906 | } | |
1907 | ||
f6bcfd97 | 1908 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1909 | PyObject * _resultobj; |
f6bcfd97 BP |
1910 | unsigned long _result; |
1911 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1912 | |
1913 | self = self; | |
f6bcfd97 | 1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1915 | return NULL; |
f0261a72 RD |
1916 | { |
1917 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1918 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 RD |
1919 | |
1920 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1921 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1922 | return _resultobj; |
1923 | } | |
1924 | ||
f6bcfd97 | 1925 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1926 | PyObject * _resultobj; |
f6bcfd97 BP |
1927 | char * _result; |
1928 | unsigned long _arg0 = (unsigned long ) 0; | |
1929 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1930 | |
1931 | self = self; | |
f6bcfd97 | 1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1933 | return NULL; |
f0261a72 RD |
1934 | { |
1935 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1936 | _result = (char *)wxSysErrorMsg(_arg0); |
f0261a72 RD |
1937 | |
1938 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1939 | } _resultobj = Py_BuildValue("s", _result); |
f0261a72 RD |
1940 | return _resultobj; |
1941 | } | |
1942 | ||
f6bcfd97 | 1943 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1944 | PyObject * _resultobj; |
f6bcfd97 BP |
1945 | char * _arg0; |
1946 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
1947 | |
1948 | self = self; | |
f6bcfd97 | 1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) |
f0261a72 | 1950 | return NULL; |
f0261a72 RD |
1951 | { |
1952 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1953 | wxLogFatalError(_arg0); |
f0261a72 RD |
1954 | |
1955 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1956 | } Py_INCREF(Py_None); |
1957 | _resultobj = Py_None; | |
f0261a72 RD |
1958 | return _resultobj; |
1959 | } | |
1960 | ||
f6bcfd97 | 1961 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1962 | PyObject * _resultobj; |
f6bcfd97 BP |
1963 | char * _arg0; |
1964 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
1965 | |
1966 | self = self; | |
f6bcfd97 | 1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) |
f0261a72 | 1968 | return NULL; |
f0261a72 RD |
1969 | { |
1970 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1971 | wxLogError(_arg0); |
f0261a72 RD |
1972 | |
1973 | wxPy_END_ALLOW_THREADS; | |
1974 | } Py_INCREF(Py_None); | |
1975 | _resultobj = Py_None; | |
f0261a72 RD |
1976 | return _resultobj; |
1977 | } | |
1978 | ||
f6bcfd97 BP |
1979 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
1980 | PyObject * _resultobj; | |
1981 | char * _arg0; | |
1982 | char *_kwnames[] = { "szFormat", NULL }; | |
1983 | ||
1984 | self = self; | |
1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
1986 | return NULL; | |
1987 | { | |
1988 | wxPy_BEGIN_ALLOW_THREADS; | |
1989 | wxLogWarning(_arg0); | |
1990 | ||
1991 | wxPy_END_ALLOW_THREADS; | |
1992 | } Py_INCREF(Py_None); | |
1993 | _resultobj = Py_None; | |
1994 | return _resultobj; | |
1995 | } | |
1996 | ||
1997 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject * _resultobj; | |
1999 | char * _arg0; | |
2000 | char *_kwnames[] = { "szFormat", NULL }; | |
2001 | ||
2002 | self = self; | |
2003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2004 | return NULL; | |
2005 | { | |
2006 | wxPy_BEGIN_ALLOW_THREADS; | |
2007 | wxLogMessage(_arg0); | |
2008 | ||
2009 | wxPy_END_ALLOW_THREADS; | |
2010 | } Py_INCREF(Py_None); | |
2011 | _resultobj = Py_None; | |
2012 | return _resultobj; | |
2013 | } | |
2014 | ||
2015 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject * _resultobj; | |
2017 | char * _arg0; | |
2018 | char *_kwnames[] = { "szFormat", NULL }; | |
2019 | ||
2020 | self = self; | |
2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2022 | return NULL; | |
2023 | { | |
2024 | wxPy_BEGIN_ALLOW_THREADS; | |
2025 | wxLogInfo(_arg0); | |
2026 | ||
2027 | wxPy_END_ALLOW_THREADS; | |
2028 | } Py_INCREF(Py_None); | |
2029 | _resultobj = Py_None; | |
2030 | return _resultobj; | |
2031 | } | |
2032 | ||
2033 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2034 | PyObject * _resultobj; | |
2035 | char * _arg0; | |
2036 | char *_kwnames[] = { "szFormat", NULL }; | |
2037 | ||
2038 | self = self; | |
2039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2040 | return NULL; | |
2041 | { | |
2042 | wxPy_BEGIN_ALLOW_THREADS; | |
2043 | wxLogVerbose(_arg0); | |
2044 | ||
2045 | wxPy_END_ALLOW_THREADS; | |
2046 | } Py_INCREF(Py_None); | |
2047 | _resultobj = Py_None; | |
2048 | return _resultobj; | |
2049 | } | |
2050 | ||
2051 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject * _resultobj; | |
2053 | char * _arg0; | |
2054 | char *_kwnames[] = { "szFormat", NULL }; | |
2055 | ||
2056 | self = self; | |
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2058 | return NULL; | |
2059 | { | |
2060 | wxPy_BEGIN_ALLOW_THREADS; | |
2061 | wxLogStatus(_arg0); | |
2062 | ||
2063 | wxPy_END_ALLOW_THREADS; | |
2064 | } Py_INCREF(Py_None); | |
2065 | _resultobj = Py_None; | |
2066 | return _resultobj; | |
2067 | } | |
2068 | ||
2069 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2070 | PyObject * _resultobj; | |
2071 | wxFrame * _arg0; | |
2072 | char * _arg1; | |
2073 | PyObject * _argo0 = 0; | |
2074 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2075 | ||
2076 | self = self; | |
2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2078 | return NULL; | |
2079 | if (_argo0) { | |
2080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2083 | return NULL; | |
2084 | } | |
2085 | } | |
2086 | { | |
2087 | wxPy_BEGIN_ALLOW_THREADS; | |
2088 | wxLogStatus(_arg0,_arg1); | |
2089 | ||
2090 | wxPy_END_ALLOW_THREADS; | |
2091 | } Py_INCREF(Py_None); | |
2092 | _resultobj = Py_None; | |
2093 | return _resultobj; | |
2094 | } | |
2095 | ||
2096 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2097 | PyObject * _resultobj; | |
2098 | char * _arg0; | |
2099 | char *_kwnames[] = { "szFormat", NULL }; | |
2100 | ||
2101 | self = self; | |
2102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2103 | return NULL; | |
2104 | { | |
2105 | wxPy_BEGIN_ALLOW_THREADS; | |
2106 | wxLogSysError(_arg0); | |
2107 | ||
2108 | wxPy_END_ALLOW_THREADS; | |
2109 | } Py_INCREF(Py_None); | |
2110 | _resultobj = Py_None; | |
2111 | return _resultobj; | |
2112 | } | |
2113 | ||
c368d904 RD |
2114 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2115 | PyObject * _resultobj; | |
2116 | long _result; | |
2117 | wxString * _arg0; | |
2118 | int _arg1 = (int ) FALSE; | |
2119 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2120 | PyObject * _obj0 = 0; | |
2121 | PyObject * _argo2 = 0; | |
2122 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2123 | ||
2124 | self = self; | |
2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2126 | return NULL; | |
2127 | { | |
185d7c3e RD |
2128 | #if PYTHON_API_VERSION >= 1009 |
2129 | char* tmpPtr; int tmpSize; | |
2130 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2131 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2132 | return NULL; | |
2133 | } | |
2134 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2135 | return NULL; | |
2136 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2137 | #else | |
c368d904 RD |
2138 | if (!PyString_Check(_obj0)) { |
2139 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2140 | return NULL; | |
2141 | } | |
185d7c3e RD |
2142 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2143 | #endif | |
c368d904 RD |
2144 | } |
2145 | if (_argo2) { | |
2146 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2147 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
2152 | { | |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
2157 | } _resultobj = Py_BuildValue("l",_result); | |
2158 | { | |
2159 | if (_obj0) | |
2160 | delete _arg0; | |
2161 | } | |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
f6bcfd97 BP |
2165 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2166 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject * _resultobj; | |
2168 | wxToolTip * _result; | |
2169 | wxString * _arg0; | |
2170 | PyObject * _obj0 = 0; | |
2171 | char *_kwnames[] = { "tip", NULL }; | |
2172 | char _ptemp[128]; | |
2173 | ||
2174 | self = self; | |
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2176 | return NULL; | |
2177 | { | |
185d7c3e RD |
2178 | #if PYTHON_API_VERSION >= 1009 |
2179 | char* tmpPtr; int tmpSize; | |
2180 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2181 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2182 | return NULL; | |
2183 | } | |
2184 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2185 | return NULL; | |
2186 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2187 | #else | |
f6bcfd97 BP |
2188 | if (!PyString_Check(_obj0)) { |
2189 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2190 | return NULL; | |
2191 | } | |
185d7c3e RD |
2192 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2193 | #endif | |
f6bcfd97 BP |
2194 | } |
2195 | { | |
2196 | wxPy_BEGIN_ALLOW_THREADS; | |
2197 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2198 | ||
2199 | wxPy_END_ALLOW_THREADS; | |
2200 | } if (_result) { | |
2201 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2202 | _resultobj = Py_BuildValue("s",_ptemp); | |
2203 | } else { | |
2204 | Py_INCREF(Py_None); | |
2205 | _resultobj = Py_None; | |
2206 | } | |
2207 | { | |
2208 | if (_obj0) | |
2209 | delete _arg0; | |
2210 | } | |
2211 | return _resultobj; | |
2212 | } | |
2213 | ||
2214 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2215 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject * _resultobj; | |
2217 | wxToolTip * _arg0; | |
2218 | wxString * _arg1; | |
2219 | PyObject * _argo0 = 0; | |
2220 | PyObject * _obj1 = 0; | |
2221 | char *_kwnames[] = { "self","tip", NULL }; | |
2222 | ||
2223 | self = self; | |
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2225 | return NULL; | |
2226 | if (_argo0) { | |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
2233 | { | |
185d7c3e RD |
2234 | #if PYTHON_API_VERSION >= 1009 |
2235 | char* tmpPtr; int tmpSize; | |
2236 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2237 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2238 | return NULL; | |
2239 | } | |
2240 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2241 | return NULL; | |
2242 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2243 | #else | |
f6bcfd97 BP |
2244 | if (!PyString_Check(_obj1)) { |
2245 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2246 | return NULL; | |
2247 | } | |
185d7c3e RD |
2248 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2249 | #endif | |
f6bcfd97 BP |
2250 | } |
2251 | { | |
2252 | wxPy_BEGIN_ALLOW_THREADS; | |
2253 | wxToolTip_SetTip(_arg0,*_arg1); | |
2254 | ||
2255 | wxPy_END_ALLOW_THREADS; | |
2256 | } Py_INCREF(Py_None); | |
2257 | _resultobj = Py_None; | |
2258 | { | |
2259 | if (_obj1) | |
2260 | delete _arg1; | |
2261 | } | |
2262 | return _resultobj; | |
2263 | } | |
2264 | ||
2265 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2266 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject * _resultobj; | |
2268 | wxString * _result; | |
2269 | wxToolTip * _arg0; | |
2270 | PyObject * _argo0 = 0; | |
2271 | char *_kwnames[] = { "self", NULL }; | |
2272 | ||
2273 | self = self; | |
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2275 | return NULL; | |
2276 | if (_argo0) { | |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
2283 | { | |
2284 | wxPy_BEGIN_ALLOW_THREADS; | |
2285 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2286 | ||
2287 | wxPy_END_ALLOW_THREADS; | |
2288 | }{ | |
2289 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2290 | } | |
2291 | { | |
2292 | delete _result; | |
2293 | } | |
2294 | return _resultobj; | |
2295 | } | |
2296 | ||
2297 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2298 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2299 | PyObject * _resultobj; | |
2300 | wxWindow * _result; | |
2301 | wxToolTip * _arg0; | |
2302 | PyObject * _argo0 = 0; | |
2303 | char *_kwnames[] = { "self", NULL }; | |
2304 | char _ptemp[128]; | |
2305 | ||
2306 | self = self; | |
2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2308 | return NULL; | |
2309 | if (_argo0) { | |
2310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2313 | return NULL; | |
2314 | } | |
2315 | } | |
2316 | { | |
2317 | wxPy_BEGIN_ALLOW_THREADS; | |
2318 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2319 | ||
2320 | wxPy_END_ALLOW_THREADS; | |
2321 | } if (_result) { | |
2322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2323 | _resultobj = Py_BuildValue("s",_ptemp); | |
2324 | } else { | |
2325 | Py_INCREF(Py_None); | |
2326 | _resultobj = Py_None; | |
2327 | } | |
2328 | return _resultobj; | |
2329 | } | |
2330 | ||
2331 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
2332 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2333 | PyObject * _resultobj; | |
2334 | wxCaret * _result; | |
2335 | wxWindow * _arg0; | |
2336 | wxSize * _arg1; | |
2337 | PyObject * _argo0 = 0; | |
2338 | wxSize temp; | |
2339 | PyObject * _obj1 = 0; | |
2340 | char *_kwnames[] = { "window","size", NULL }; | |
2341 | char _ptemp[128]; | |
2342 | ||
2343 | self = self; | |
2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2345 | return NULL; | |
2346 | if (_argo0) { | |
2347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2350 | return NULL; | |
2351 | } | |
2352 | } | |
2353 | { | |
2354 | _arg1 = &temp; | |
2355 | if (! wxSize_helper(_obj1, &_arg1)) | |
2356 | return NULL; | |
2357 | } | |
2358 | { | |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
2360 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2361 | ||
2362 | wxPy_END_ALLOW_THREADS; | |
2363 | } if (_result) { | |
2364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2365 | _resultobj = Py_BuildValue("s",_ptemp); | |
2366 | } else { | |
2367 | Py_INCREF(Py_None); | |
2368 | _resultobj = Py_None; | |
2369 | } | |
2370 | return _resultobj; | |
2371 | } | |
2372 | ||
2373 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2374 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject * _resultobj; | |
2376 | wxCaret * _arg0; | |
2377 | PyObject * _argo0 = 0; | |
2378 | char *_kwnames[] = { "self", NULL }; | |
2379 | ||
2380 | self = self; | |
2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2382 | return NULL; | |
2383 | if (_argo0) { | |
2384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2387 | return NULL; | |
2388 | } | |
2389 | } | |
2390 | { | |
2391 | wxPy_BEGIN_ALLOW_THREADS; | |
2392 | delete_wxCaret(_arg0); | |
2393 | ||
2394 | wxPy_END_ALLOW_THREADS; | |
2395 | } Py_INCREF(Py_None); | |
2396 | _resultobj = Py_None; | |
2397 | return _resultobj; | |
2398 | } | |
2399 | ||
2400 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2401 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2402 | PyObject * _resultobj; | |
2403 | bool _result; | |
2404 | wxCaret * _arg0; | |
2405 | PyObject * _argo0 = 0; | |
2406 | char *_kwnames[] = { "self", NULL }; | |
2407 | ||
2408 | self = self; | |
2409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2410 | return NULL; | |
2411 | if (_argo0) { | |
2412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2415 | return NULL; | |
2416 | } | |
2417 | } | |
2418 | { | |
2419 | wxPy_BEGIN_ALLOW_THREADS; | |
2420 | _result = (bool )wxCaret_IsOk(_arg0); | |
2421 | ||
2422 | wxPy_END_ALLOW_THREADS; | |
2423 | } _resultobj = Py_BuildValue("i",_result); | |
2424 | return _resultobj; | |
2425 | } | |
2426 | ||
2427 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2428 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2429 | PyObject * _resultobj; | |
2430 | bool _result; | |
2431 | wxCaret * _arg0; | |
2432 | PyObject * _argo0 = 0; | |
2433 | char *_kwnames[] = { "self", NULL }; | |
2434 | ||
2435 | self = self; | |
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2437 | return NULL; | |
2438 | if (_argo0) { | |
2439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2442 | return NULL; | |
2443 | } | |
2444 | } | |
2445 | { | |
2446 | wxPy_BEGIN_ALLOW_THREADS; | |
2447 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2448 | ||
2449 | wxPy_END_ALLOW_THREADS; | |
2450 | } _resultobj = Py_BuildValue("i",_result); | |
2451 | return _resultobj; | |
2452 | } | |
2453 | ||
2454 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2455 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2456 | PyObject * _resultobj; | |
2457 | wxCaret * _arg0; | |
2458 | int * _arg1; | |
2459 | int temp; | |
2460 | int * _arg2; | |
2461 | int temp0; | |
2462 | PyObject * _argo0 = 0; | |
2463 | char *_kwnames[] = { "self", NULL }; | |
2464 | ||
2465 | self = self; | |
2466 | { | |
2467 | _arg1 = &temp; | |
2468 | } | |
2469 | { | |
2470 | _arg2 = &temp0; | |
2471 | } | |
2472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2473 | return NULL; | |
2474 | if (_argo0) { | |
2475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2478 | return NULL; | |
2479 | } | |
2480 | } | |
2481 | { | |
2482 | wxPy_BEGIN_ALLOW_THREADS; | |
2483 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2484 | ||
2485 | wxPy_END_ALLOW_THREADS; | |
2486 | } Py_INCREF(Py_None); | |
2487 | _resultobj = Py_None; | |
2488 | { | |
2489 | PyObject *o; | |
2490 | o = PyInt_FromLong((long) (*_arg1)); | |
2491 | _resultobj = t_output_helper(_resultobj, o); | |
2492 | } | |
2493 | { | |
2494 | PyObject *o; | |
2495 | o = PyInt_FromLong((long) (*_arg2)); | |
2496 | _resultobj = t_output_helper(_resultobj, o); | |
2497 | } | |
2498 | return _resultobj; | |
2499 | } | |
2500 | ||
2501 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2502 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2503 | PyObject * _resultobj; | |
f6bcfd97 BP |
2504 | wxPoint * _result; |
2505 | wxCaret * _arg0; | |
2506 | PyObject * _argo0 = 0; | |
2507 | char *_kwnames[] = { "self", NULL }; | |
2508 | char _ptemp[128]; | |
2509 | ||
2510 | self = self; | |
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2512 | return NULL; | |
2513 | if (_argo0) { | |
2514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2517 | return NULL; | |
2518 | } | |
2519 | } | |
2520 | { | |
2521 | wxPy_BEGIN_ALLOW_THREADS; | |
2522 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2523 | ||
2524 | wxPy_END_ALLOW_THREADS; | |
2525 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2526 | _resultobj = Py_BuildValue("s",_ptemp); | |
2527 | return _resultobj; | |
2528 | } | |
2529 | ||
2530 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2531 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2532 | PyObject * _resultobj; | |
2533 | wxCaret * _arg0; | |
2534 | int * _arg1; | |
2535 | int temp; | |
2536 | int * _arg2; | |
2537 | int temp0; | |
2538 | PyObject * _argo0 = 0; | |
2539 | char *_kwnames[] = { "self", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | { | |
2543 | _arg1 = &temp; | |
2544 | } | |
2545 | { | |
2546 | _arg2 = &temp0; | |
2547 | } | |
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2549 | return NULL; | |
2550 | if (_argo0) { | |
2551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2554 | return NULL; | |
2555 | } | |
2556 | } | |
2557 | { | |
2558 | wxPy_BEGIN_ALLOW_THREADS; | |
2559 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2560 | ||
2561 | wxPy_END_ALLOW_THREADS; | |
2562 | } Py_INCREF(Py_None); | |
2563 | _resultobj = Py_None; | |
2564 | { | |
2565 | PyObject *o; | |
2566 | o = PyInt_FromLong((long) (*_arg1)); | |
2567 | _resultobj = t_output_helper(_resultobj, o); | |
2568 | } | |
2569 | { | |
2570 | PyObject *o; | |
2571 | o = PyInt_FromLong((long) (*_arg2)); | |
2572 | _resultobj = t_output_helper(_resultobj, o); | |
2573 | } | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
2577 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2578 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2579 | PyObject * _resultobj; | |
2580 | wxSize * _result; | |
2581 | wxCaret * _arg0; | |
2582 | PyObject * _argo0 = 0; | |
2583 | char *_kwnames[] = { "self", NULL }; | |
2584 | char _ptemp[128]; | |
2585 | ||
2586 | self = self; | |
2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2588 | return NULL; | |
2589 | if (_argo0) { | |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2593 | return NULL; | |
2594 | } | |
2595 | } | |
2596 | { | |
2597 | wxPy_BEGIN_ALLOW_THREADS; | |
2598 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2599 | ||
2600 | wxPy_END_ALLOW_THREADS; | |
2601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2602 | _resultobj = Py_BuildValue("s",_ptemp); | |
2603 | return _resultobj; | |
2604 | } | |
2605 | ||
2606 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2607 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2608 | PyObject * _resultobj; | |
2609 | wxWindow * _result; | |
2610 | wxCaret * _arg0; | |
2611 | PyObject * _argo0 = 0; | |
2612 | char *_kwnames[] = { "self", NULL }; | |
2613 | char _ptemp[128]; | |
2614 | ||
2615 | self = self; | |
2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2617 | return NULL; | |
2618 | if (_argo0) { | |
2619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2622 | return NULL; | |
2623 | } | |
2624 | } | |
2625 | { | |
2626 | wxPy_BEGIN_ALLOW_THREADS; | |
2627 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2628 | ||
2629 | wxPy_END_ALLOW_THREADS; | |
2630 | } if (_result) { | |
2631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2632 | _resultobj = Py_BuildValue("s",_ptemp); | |
2633 | } else { | |
2634 | Py_INCREF(Py_None); | |
2635 | _resultobj = Py_None; | |
2636 | } | |
2637 | return _resultobj; | |
2638 | } | |
2639 | ||
2640 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2641 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2642 | PyObject * _resultobj; | |
2643 | wxCaret * _arg0; | |
2644 | int _arg1; | |
2645 | int _arg2; | |
2646 | PyObject * _argo0 = 0; | |
2647 | char *_kwnames[] = { "self","x","y", NULL }; | |
2648 | ||
2649 | self = self; | |
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2651 | return NULL; | |
2652 | if (_argo0) { | |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2656 | return NULL; | |
2657 | } | |
2658 | } | |
2659 | { | |
2660 | wxPy_BEGIN_ALLOW_THREADS; | |
2661 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2662 | ||
2663 | wxPy_END_ALLOW_THREADS; | |
2664 | } Py_INCREF(Py_None); | |
2665 | _resultobj = Py_None; | |
2666 | return _resultobj; | |
2667 | } | |
2668 | ||
2669 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2670 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2671 | PyObject * _resultobj; | |
2672 | wxCaret * _arg0; | |
2673 | wxPoint * _arg1; | |
2674 | PyObject * _argo0 = 0; | |
2675 | wxPoint temp; | |
2676 | PyObject * _obj1 = 0; | |
2677 | char *_kwnames[] = { "self","pt", NULL }; | |
2678 | ||
2679 | self = self; | |
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2681 | return NULL; | |
2682 | if (_argo0) { | |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
2689 | { | |
2690 | _arg1 = &temp; | |
2691 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2692 | return NULL; | |
2693 | } | |
2694 | { | |
2695 | wxPy_BEGIN_ALLOW_THREADS; | |
2696 | wxCaret_Move(_arg0,*_arg1); | |
2697 | ||
2698 | wxPy_END_ALLOW_THREADS; | |
2699 | } Py_INCREF(Py_None); | |
2700 | _resultobj = Py_None; | |
2701 | return _resultobj; | |
2702 | } | |
2703 | ||
2704 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2705 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject * _resultobj; | |
2707 | wxCaret * _arg0; | |
2708 | int _arg1; | |
2709 | int _arg2; | |
2710 | PyObject * _argo0 = 0; | |
2711 | char *_kwnames[] = { "self","width","height", NULL }; | |
2712 | ||
2713 | self = self; | |
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2715 | return NULL; | |
2716 | if (_argo0) { | |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2720 | return NULL; | |
2721 | } | |
2722 | } | |
2723 | { | |
2724 | wxPy_BEGIN_ALLOW_THREADS; | |
2725 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2726 | ||
2727 | wxPy_END_ALLOW_THREADS; | |
2728 | } Py_INCREF(Py_None); | |
2729 | _resultobj = Py_None; | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
2733 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2734 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject * _resultobj; | |
2736 | wxCaret * _arg0; | |
2737 | wxSize * _arg1; | |
2738 | PyObject * _argo0 = 0; | |
2739 | wxSize temp; | |
2740 | PyObject * _obj1 = 0; | |
2741 | char *_kwnames[] = { "self","size", NULL }; | |
2742 | ||
2743 | self = self; | |
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2745 | return NULL; | |
2746 | if (_argo0) { | |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2750 | return NULL; | |
2751 | } | |
2752 | } | |
2753 | { | |
2754 | _arg1 = &temp; | |
2755 | if (! wxSize_helper(_obj1, &_arg1)) | |
2756 | return NULL; | |
2757 | } | |
2758 | { | |
2759 | wxPy_BEGIN_ALLOW_THREADS; | |
2760 | wxCaret_SetSize(_arg0,*_arg1); | |
2761 | ||
2762 | wxPy_END_ALLOW_THREADS; | |
2763 | } Py_INCREF(Py_None); | |
2764 | _resultobj = Py_None; | |
2765 | return _resultobj; | |
2766 | } | |
2767 | ||
2768 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2769 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject * _resultobj; | |
2771 | wxCaret * _arg0; | |
2772 | int _arg1 = (int ) TRUE; | |
2773 | PyObject * _argo0 = 0; | |
2774 | char *_kwnames[] = { "self","show", NULL }; | |
2775 | ||
2776 | self = self; | |
2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2778 | return NULL; | |
2779 | if (_argo0) { | |
2780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2783 | return NULL; | |
2784 | } | |
2785 | } | |
2786 | { | |
2787 | wxPy_BEGIN_ALLOW_THREADS; | |
2788 | wxCaret_Show(_arg0,_arg1); | |
2789 | ||
2790 | wxPy_END_ALLOW_THREADS; | |
2791 | } Py_INCREF(Py_None); | |
2792 | _resultobj = Py_None; | |
2793 | return _resultobj; | |
2794 | } | |
2795 | ||
2796 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2797 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2798 | PyObject * _resultobj; | |
2799 | wxCaret * _arg0; | |
2800 | PyObject * _argo0 = 0; | |
2801 | char *_kwnames[] = { "self", NULL }; | |
2802 | ||
2803 | self = self; | |
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2805 | return NULL; | |
2806 | if (_argo0) { | |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2810 | return NULL; | |
2811 | } | |
2812 | } | |
2813 | { | |
2814 | wxPy_BEGIN_ALLOW_THREADS; | |
2815 | wxCaret_Hide(_arg0); | |
2816 | ||
2817 | wxPy_END_ALLOW_THREADS; | |
2818 | } Py_INCREF(Py_None); | |
2819 | _resultobj = Py_None; | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2824 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxPyFontEnumerator * _result; | |
2827 | char *_kwnames[] = { NULL }; | |
2828 | char _ptemp[128]; | |
2829 | ||
2830 | self = self; | |
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2832 | return NULL; | |
2833 | { | |
2834 | wxPy_BEGIN_ALLOW_THREADS; | |
2835 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2836 | ||
2837 | wxPy_END_ALLOW_THREADS; | |
2838 | } if (_result) { | |
2839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2840 | _resultobj = Py_BuildValue("s",_ptemp); | |
2841 | } else { | |
2842 | Py_INCREF(Py_None); | |
2843 | _resultobj = Py_None; | |
2844 | } | |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
2848 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
2849 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject * _resultobj; | |
2851 | wxPyFontEnumerator * _arg0; | |
2852 | PyObject * _argo0 = 0; | |
2853 | char *_kwnames[] = { "self", NULL }; | |
2854 | ||
2855 | self = self; | |
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
2857 | return NULL; | |
2858 | if (_argo0) { | |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
2865 | { | |
2866 | wxPy_BEGIN_ALLOW_THREADS; | |
2867 | delete_wxPyFontEnumerator(_arg0); | |
2868 | ||
2869 | wxPy_END_ALLOW_THREADS; | |
2870 | } Py_INCREF(Py_None); | |
2871 | _resultobj = Py_None; | |
2872 | return _resultobj; | |
2873 | } | |
2874 | ||
2875 | #define wxFontEnumerator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
2876 | static PyObject *_wrap_wxFontEnumerator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2877 | PyObject * _resultobj; | |
2878 | wxPyFontEnumerator * _arg0; | |
2879 | PyObject * _arg1; | |
2880 | PyObject * _arg2; | |
2881 | PyObject * _argo0 = 0; | |
2882 | PyObject * _obj1 = 0; | |
2883 | PyObject * _obj2 = 0; | |
2884 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2885 | ||
2886 | self = self; | |
2887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2888 | return NULL; | |
2889 | if (_argo0) { | |
2890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setSelf. Expected _wxPyFontEnumerator_p."); | |
2893 | return NULL; | |
2894 | } | |
2895 | } | |
2896 | { | |
2897 | _arg1 = _obj1; | |
2898 | } | |
2899 | { | |
2900 | _arg2 = _obj2; | |
2901 | } | |
2902 | { | |
2903 | wxPy_BEGIN_ALLOW_THREADS; | |
2904 | wxFontEnumerator__setSelf(_arg0,_arg1,_arg2); | |
2905 | ||
2906 | wxPy_END_ALLOW_THREADS; | |
2907 | } Py_INCREF(Py_None); | |
2908 | _resultobj = Py_None; | |
2909 | return _resultobj; | |
2910 | } | |
2911 | ||
2912 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
2913 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2914 | PyObject * _resultobj; | |
2915 | bool _result; | |
2916 | wxPyFontEnumerator * _arg0; | |
2917 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
2918 | bool _arg2 = (bool ) FALSE; | |
2919 | PyObject * _argo0 = 0; | |
2920 | int tempbool2 = (int) FALSE; | |
2921 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
2922 | ||
2923 | self = self; | |
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
2925 | return NULL; | |
2926 | if (_argo0) { | |
2927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
2930 | return NULL; | |
2931 | } | |
2932 | } | |
2933 | _arg2 = (bool ) tempbool2; | |
2934 | { | |
2935 | wxPy_BEGIN_ALLOW_THREADS; | |
2936 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
2937 | ||
2938 | wxPy_END_ALLOW_THREADS; | |
2939 | } _resultobj = Py_BuildValue("i",_result); | |
2940 | return _resultobj; | |
2941 | } | |
2942 | ||
2943 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
2944 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject * _resultobj; | |
2946 | bool _result; | |
2947 | wxPyFontEnumerator * _arg0; | |
2948 | char * _arg1 = (char *) ""; | |
2949 | PyObject * _argo0 = 0; | |
2950 | char *_kwnames[] = { "self","facename", NULL }; | |
2951 | ||
2952 | self = self; | |
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
2954 | return NULL; | |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
2962 | { | |
2963 | wxPy_BEGIN_ALLOW_THREADS; | |
2964 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
2965 | ||
2966 | wxPy_END_ALLOW_THREADS; | |
2967 | } _resultobj = Py_BuildValue("i",_result); | |
2968 | return _resultobj; | |
2969 | } | |
2970 | ||
2971 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
2972 | wxArrayString* arr = self->GetEncodings(); | |
2973 | PyObject* list = PyList_New(0); | |
2974 | for (size_t x=0; x<arr->GetCount(); x++) | |
2975 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
2976 | return list; | |
2977 | } | |
2978 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject * _resultobj; | |
2980 | PyObject * _result; | |
2981 | wxPyFontEnumerator * _arg0; | |
2982 | PyObject * _argo0 = 0; | |
2983 | char *_kwnames[] = { "self", NULL }; | |
2984 | ||
2985 | self = self; | |
2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
2987 | return NULL; | |
2988 | if (_argo0) { | |
2989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
2992 | return NULL; | |
2993 | } | |
2994 | } | |
2995 | { | |
2996 | wxPy_BEGIN_ALLOW_THREADS; | |
2997 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
2998 | ||
2999 | wxPy_END_ALLOW_THREADS; | |
3000 | }{ | |
3001 | _resultobj = _result; | |
3002 | } | |
3003 | return _resultobj; | |
3004 | } | |
3005 | ||
3006 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3007 | wxArrayString* arr = self->GetFacenames(); | |
3008 | PyObject* list = PyList_New(0); | |
3009 | for (size_t x=0; x<arr->GetCount(); x++) | |
3010 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
3011 | return list; | |
3012 | } | |
3013 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3014 | PyObject * _resultobj; | |
3015 | PyObject * _result; | |
3016 | wxPyFontEnumerator * _arg0; | |
3017 | PyObject * _argo0 = 0; | |
3018 | char *_kwnames[] = { "self", NULL }; | |
3019 | ||
3020 | self = self; | |
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3022 | return NULL; | |
3023 | if (_argo0) { | |
3024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3027 | return NULL; | |
3028 | } | |
3029 | } | |
3030 | { | |
3031 | wxPy_BEGIN_ALLOW_THREADS; | |
3032 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3033 | ||
3034 | wxPy_END_ALLOW_THREADS; | |
3035 | }{ | |
3036 | _resultobj = _result; | |
3037 | } | |
3038 | return _resultobj; | |
3039 | } | |
3040 | ||
3041 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3042 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3043 | PyObject * _resultobj; | |
3044 | wxBusyCursor * _result; | |
3045 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3046 | PyObject * _argo0 = 0; | |
3047 | char *_kwnames[] = { "cursor", NULL }; | |
3048 | char _ptemp[128]; | |
3049 | ||
3050 | self = self; | |
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3052 | return NULL; | |
3053 | if (_argo0) { | |
3054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
3060 | { | |
3061 | wxPy_BEGIN_ALLOW_THREADS; | |
3062 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3063 | ||
3064 | wxPy_END_ALLOW_THREADS; | |
3065 | } if (_result) { | |
3066 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3067 | _resultobj = Py_BuildValue("s",_ptemp); | |
3068 | } else { | |
3069 | Py_INCREF(Py_None); | |
3070 | _resultobj = Py_None; | |
3071 | } | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3076 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject * _resultobj; | |
3078 | wxBusyCursor * _arg0; | |
3079 | PyObject * _argo0 = 0; | |
3080 | char *_kwnames[] = { "self", NULL }; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | { | |
3093 | wxPy_BEGIN_ALLOW_THREADS; | |
3094 | delete_wxBusyCursor(_arg0); | |
3095 | ||
3096 | wxPy_END_ALLOW_THREADS; | |
3097 | } Py_INCREF(Py_None); | |
3098 | _resultobj = Py_None; | |
3099 | return _resultobj; | |
3100 | } | |
3101 | ||
c368d904 RD |
3102 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3103 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3104 | PyObject * _resultobj; | |
3105 | wxWindowDisabler * _result; | |
3106 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3107 | PyObject * _argo0 = 0; | |
3108 | char *_kwnames[] = { "winToSkip", NULL }; | |
3109 | char _ptemp[128]; | |
3110 | ||
3111 | self = self; | |
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3113 | return NULL; | |
3114 | if (_argo0) { | |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
3122 | wxPy_BEGIN_ALLOW_THREADS; | |
3123 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3124 | ||
3125 | wxPy_END_ALLOW_THREADS; | |
3126 | } if (_result) { | |
3127 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3128 | _resultobj = Py_BuildValue("s",_ptemp); | |
3129 | } else { | |
3130 | Py_INCREF(Py_None); | |
3131 | _resultobj = Py_None; | |
3132 | } | |
3133 | return _resultobj; | |
3134 | } | |
3135 | ||
3136 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3137 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject * _resultobj; | |
3139 | wxWindowDisabler * _arg0; | |
3140 | PyObject * _argo0 = 0; | |
3141 | char *_kwnames[] = { "self", NULL }; | |
3142 | ||
3143 | self = self; | |
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3145 | return NULL; | |
3146 | if (_argo0) { | |
3147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3150 | return NULL; | |
3151 | } | |
3152 | } | |
3153 | { | |
3154 | wxPy_BEGIN_ALLOW_THREADS; | |
3155 | delete_wxWindowDisabler(_arg0); | |
3156 | ||
3157 | wxPy_END_ALLOW_THREADS; | |
3158 | } Py_INCREF(Py_None); | |
3159 | _resultobj = Py_None; | |
3160 | return _resultobj; | |
3161 | } | |
3162 | ||
f6bcfd97 BP |
3163 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3164 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3165 | PyObject * _resultobj; | |
3166 | wxTipProvider * _arg0; | |
3167 | PyObject * _argo0 = 0; | |
3168 | char *_kwnames[] = { "self", NULL }; | |
3169 | ||
3170 | self = self; | |
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3172 | return NULL; | |
3173 | if (_argo0) { | |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
3180 | { | |
3181 | wxPy_BEGIN_ALLOW_THREADS; | |
3182 | delete_wxTipProvider(_arg0); | |
3183 | ||
3184 | wxPy_END_ALLOW_THREADS; | |
3185 | } Py_INCREF(Py_None); | |
3186 | _resultobj = Py_None; | |
3187 | return _resultobj; | |
3188 | } | |
3189 | ||
3190 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3191 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject * _resultobj; | |
3193 | wxString * _result; | |
3194 | wxTipProvider * _arg0; | |
3195 | PyObject * _argo0 = 0; | |
3196 | char *_kwnames[] = { "self", NULL }; | |
3197 | ||
3198 | self = self; | |
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3200 | return NULL; | |
3201 | if (_argo0) { | |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
3208 | { | |
3209 | wxPy_BEGIN_ALLOW_THREADS; | |
3210 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3211 | ||
3212 | wxPy_END_ALLOW_THREADS; | |
3213 | }{ | |
3214 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3215 | } | |
3216 | { | |
3217 | delete _result; | |
3218 | } | |
3219 | return _resultobj; | |
3220 | } | |
3221 | ||
3222 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3223 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3224 | PyObject * _resultobj; | |
3225 | size_t _result; | |
3226 | wxTipProvider * _arg0; | |
3227 | PyObject * _argo0 = 0; | |
3228 | char *_kwnames[] = { "self", NULL }; | |
3229 | ||
3230 | self = self; | |
3231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3232 | return NULL; | |
3233 | if (_argo0) { | |
3234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3237 | return NULL; | |
3238 | } | |
3239 | } | |
3240 | { | |
3241 | wxPy_BEGIN_ALLOW_THREADS; | |
3242 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3243 | ||
3244 | wxPy_END_ALLOW_THREADS; | |
3245 | } _resultobj = Py_BuildValue("i",_result); | |
3246 | return _resultobj; | |
3247 | } | |
3248 | ||
3249 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3250 | wxPyTipProvider *src; | |
3251 | wxTipProvider *dest; | |
3252 | src = (wxPyTipProvider *) ptr; | |
3253 | dest = (wxTipProvider *) src; | |
3254 | return (void *) dest; | |
3255 | } | |
3256 | ||
3257 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3258 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject * _resultobj; | |
3260 | wxPyTipProvider * _result; | |
3261 | size_t _arg0; | |
3262 | char *_kwnames[] = { "currentTip", NULL }; | |
3263 | char _ptemp[128]; | |
3264 | ||
3265 | self = self; | |
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3267 | return NULL; | |
3268 | { | |
3269 | wxPy_BEGIN_ALLOW_THREADS; | |
3270 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3271 | ||
3272 | wxPy_END_ALLOW_THREADS; | |
3273 | } if (_result) { | |
3274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3275 | _resultobj = Py_BuildValue("s",_ptemp); | |
3276 | } else { | |
3277 | Py_INCREF(Py_None); | |
3278 | _resultobj = Py_None; | |
3279 | } | |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
3283 | #define new_wxDragImage(_swigarg0,_swigarg1,_swigarg2) (new wxGenericDragImage(_swigarg0,_swigarg1,_swigarg2)) | |
3284 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject * _resultobj; | |
3286 | wxGenericDragImage * _result; | |
3287 | wxBitmap * _arg0; | |
3288 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3289 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
3290 | PyObject * _argo0 = 0; | |
3291 | PyObject * _argo1 = 0; | |
3292 | wxPoint temp; | |
3293 | PyObject * _obj2 = 0; | |
3294 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
3295 | char _ptemp[128]; | |
3296 | ||
3297 | self = self; | |
3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:new_wxDragImage",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3299 | return NULL; | |
3300 | if (_argo0) { | |
3301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3304 | return NULL; | |
3305 | } | |
3306 | } | |
3307 | if (_argo1) { | |
3308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
3314 | if (_obj2) | |
3315 | { | |
3316 | _arg2 = &temp; | |
3317 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3318 | return NULL; | |
3319 | } | |
3320 | { | |
3321 | wxPy_BEGIN_ALLOW_THREADS; | |
3322 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1,*_arg2); | |
3323 | ||
3324 | wxPy_END_ALLOW_THREADS; | |
3325 | } if (_result) { | |
3326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3327 | _resultobj = Py_BuildValue("s",_ptemp); | |
3328 | } else { | |
3329 | Py_INCREF(Py_None); | |
3330 | _resultobj = Py_None; | |
3331 | } | |
3332 | return _resultobj; | |
3333 | } | |
3334 | ||
3335 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
3336 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3337 | PyObject * _resultobj; | |
3338 | wxGenericDragImage * _arg0; | |
3339 | PyObject * _argo0 = 0; | |
3340 | char *_kwnames[] = { "self", NULL }; | |
3341 | ||
3342 | self = self; | |
3343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3344 | return NULL; | |
3345 | if (_argo0) { | |
3346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3349 | return NULL; | |
3350 | } | |
3351 | } | |
3352 | { | |
3353 | wxPy_BEGIN_ALLOW_THREADS; | |
3354 | delete_wxGenericDragImage(_arg0); | |
3355 | ||
3356 | wxPy_END_ALLOW_THREADS; | |
3357 | } Py_INCREF(Py_None); | |
3358 | _resultobj = Py_None; | |
3359 | return _resultobj; | |
3360 | } | |
3361 | ||
3362 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3363 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3364 | PyObject * _resultobj; | |
3365 | bool _result; | |
3366 | wxGenericDragImage * _arg0; | |
3367 | wxPoint * _arg1; | |
3368 | wxWindow * _arg2; | |
3369 | bool _arg3 = (bool ) FALSE; | |
3370 | wxRect * _arg4 = (wxRect *) NULL; | |
3371 | PyObject * _argo0 = 0; | |
3372 | wxPoint temp; | |
3373 | PyObject * _obj1 = 0; | |
3374 | PyObject * _argo2 = 0; | |
3375 | int tempbool3 = (int) FALSE; | |
3376 | wxRect temp0; | |
3377 | PyObject * _obj4 = 0; | |
3378 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3379 | ||
3380 | self = self; | |
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3382 | return NULL; | |
3383 | if (_argo0) { | |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
3390 | { | |
3391 | _arg1 = &temp; | |
3392 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3393 | return NULL; | |
3394 | } | |
3395 | if (_argo2) { | |
3396 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3397 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3399 | return NULL; | |
3400 | } | |
3401 | } | |
3402 | _arg3 = (bool ) tempbool3; | |
3403 | if (_obj4) | |
3404 | { | |
3405 | _arg4 = &temp0; | |
3406 | if (! wxRect_helper(_obj4, &_arg4)) | |
3407 | return NULL; | |
3408 | } | |
3409 | { | |
3410 | wxPy_BEGIN_ALLOW_THREADS; | |
3411 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3412 | ||
3413 | wxPy_END_ALLOW_THREADS; | |
3414 | } _resultobj = Py_BuildValue("i",_result); | |
3415 | return _resultobj; | |
3416 | } | |
3417 | ||
3418 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3419 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3420 | PyObject * _resultobj; | |
3421 | bool _result; | |
3422 | wxGenericDragImage * _arg0; | |
3423 | wxPoint * _arg1; | |
3424 | wxWindow * _arg2; | |
3425 | wxWindow * _arg3; | |
3426 | PyObject * _argo0 = 0; | |
3427 | wxPoint temp; | |
3428 | PyObject * _obj1 = 0; | |
3429 | PyObject * _argo2 = 0; | |
3430 | PyObject * _argo3 = 0; | |
3431 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3432 | ||
3433 | self = self; | |
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3435 | return NULL; | |
3436 | if (_argo0) { | |
3437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3440 | return NULL; | |
3441 | } | |
3442 | } | |
3443 | { | |
3444 | _arg1 = &temp; | |
3445 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3446 | return NULL; | |
3447 | } | |
3448 | if (_argo2) { | |
3449 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3450 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3452 | return NULL; | |
3453 | } | |
3454 | } | |
3455 | if (_argo3) { | |
3456 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
3463 | wxPy_BEGIN_ALLOW_THREADS; | |
3464 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
3465 | ||
3466 | wxPy_END_ALLOW_THREADS; | |
3467 | } _resultobj = Py_BuildValue("i",_result); | |
3468 | return _resultobj; | |
3469 | } | |
3470 | ||
3471 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3472 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject * _resultobj; | |
3474 | bool _result; | |
3475 | wxGenericDragImage * _arg0; | |
3476 | PyObject * _argo0 = 0; | |
3477 | char *_kwnames[] = { "self", NULL }; | |
3478 | ||
3479 | self = self; | |
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3481 | return NULL; | |
3482 | if (_argo0) { | |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
3489 | { | |
3490 | wxPy_BEGIN_ALLOW_THREADS; | |
3491 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
3492 | ||
3493 | wxPy_END_ALLOW_THREADS; | |
3494 | } _resultobj = Py_BuildValue("i",_result); | |
3495 | return _resultobj; | |
3496 | } | |
3497 | ||
3498 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3499 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3500 | PyObject * _resultobj; | |
3501 | bool _result; | |
3502 | wxGenericDragImage * _arg0; | |
3503 | wxPoint * _arg1; | |
3504 | PyObject * _argo0 = 0; | |
3505 | wxPoint temp; | |
3506 | PyObject * _obj1 = 0; | |
3507 | char *_kwnames[] = { "self","pt", NULL }; | |
3508 | ||
3509 | self = self; | |
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3511 | return NULL; | |
3512 | if (_argo0) { | |
3513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3516 | return NULL; | |
3517 | } | |
3518 | } | |
3519 | { | |
3520 | _arg1 = &temp; | |
3521 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3522 | return NULL; | |
3523 | } | |
3524 | { | |
3525 | wxPy_BEGIN_ALLOW_THREADS; | |
3526 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
3527 | ||
3528 | wxPy_END_ALLOW_THREADS; | |
3529 | } _resultobj = Py_BuildValue("i",_result); | |
3530 | return _resultobj; | |
3531 | } | |
3532 | ||
3533 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3534 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3535 | PyObject * _resultobj; | |
3536 | bool _result; | |
3537 | wxGenericDragImage * _arg0; | |
3538 | PyObject * _argo0 = 0; | |
3539 | char *_kwnames[] = { "self", NULL }; | |
3540 | ||
3541 | self = self; | |
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3543 | return NULL; | |
3544 | if (_argo0) { | |
3545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3548 | return NULL; | |
3549 | } | |
3550 | } | |
3551 | { | |
3552 | wxPy_BEGIN_ALLOW_THREADS; | |
3553 | _result = (bool )wxDragImage_Show(_arg0); | |
3554 | ||
3555 | wxPy_END_ALLOW_THREADS; | |
3556 | } _resultobj = Py_BuildValue("i",_result); | |
3557 | return _resultobj; | |
3558 | } | |
3559 | ||
3560 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3561 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3562 | PyObject * _resultobj; | |
3563 | bool _result; | |
3564 | wxGenericDragImage * _arg0; | |
3565 | PyObject * _argo0 = 0; | |
3566 | char *_kwnames[] = { "self", NULL }; | |
3567 | ||
3568 | self = self; | |
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3570 | return NULL; | |
3571 | if (_argo0) { | |
3572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3575 | return NULL; | |
3576 | } | |
3577 | } | |
3578 | { | |
3579 | wxPy_BEGIN_ALLOW_THREADS; | |
3580 | _result = (bool )wxDragImage_Hide(_arg0); | |
3581 | ||
3582 | wxPy_END_ALLOW_THREADS; | |
3583 | } _resultobj = Py_BuildValue("i",_result); | |
3584 | return _resultobj; | |
3585 | } | |
3586 | ||
3587 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
3588 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3589 | PyObject * _resultobj; | |
3590 | wxRect * _result; | |
3591 | wxGenericDragImage * _arg0; | |
3592 | wxPoint * _arg1; | |
3593 | PyObject * _argo0 = 0; | |
3594 | wxPoint temp; | |
3595 | PyObject * _obj1 = 0; | |
3596 | char *_kwnames[] = { "self","pos", NULL }; | |
3597 | char _ptemp[128]; | |
3598 | ||
3599 | self = self; | |
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
3601 | return NULL; | |
3602 | if (_argo0) { | |
3603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
3606 | return NULL; | |
3607 | } | |
3608 | } | |
3609 | { | |
3610 | _arg1 = &temp; | |
3611 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3612 | return NULL; | |
3613 | } | |
3614 | { | |
3615 | wxPy_BEGIN_ALLOW_THREADS; | |
3616 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
3617 | ||
3618 | wxPy_END_ALLOW_THREADS; | |
3619 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3620 | _resultobj = Py_BuildValue("s",_ptemp); | |
3621 | return _resultobj; | |
3622 | } | |
3623 | ||
3624 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3625 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3626 | PyObject * _resultobj; | |
3627 | bool _result; | |
3628 | wxGenericDragImage * _arg0; | |
3629 | wxPoint * _arg1; | |
3630 | wxPoint * _arg2; | |
3631 | bool _arg3; | |
3632 | bool _arg4; | |
3633 | PyObject * _argo0 = 0; | |
3634 | wxPoint temp; | |
3635 | PyObject * _obj1 = 0; | |
3636 | wxPoint temp0; | |
3637 | PyObject * _obj2 = 0; | |
3638 | int tempbool3; | |
3639 | int tempbool4; | |
3640 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
3641 | ||
3642 | self = self; | |
3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
3644 | return NULL; | |
3645 | if (_argo0) { | |
3646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
3649 | return NULL; | |
3650 | } | |
3651 | } | |
3652 | { | |
3653 | _arg1 = &temp; | |
3654 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3655 | return NULL; | |
3656 | } | |
3657 | { | |
3658 | _arg2 = &temp0; | |
3659 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3660 | return NULL; | |
3661 | } | |
3662 | _arg3 = (bool ) tempbool3; | |
3663 | _arg4 = (bool ) tempbool4; | |
3664 | { | |
3665 | wxPy_BEGIN_ALLOW_THREADS; | |
3666 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
3667 | ||
3668 | wxPy_END_ALLOW_THREADS; | |
3669 | } _resultobj = Py_BuildValue("i",_result); | |
3670 | return _resultobj; | |
3671 | } | |
3672 | ||
3673 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
3674 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3675 | PyObject * _resultobj; | |
3676 | wxPyTimer * _result; | |
3677 | PyObject * _arg0; | |
3678 | PyObject * _obj0 = 0; | |
3679 | char *_kwnames[] = { "notify", NULL }; | |
3680 | char _ptemp[128]; | |
3681 | ||
3682 | self = self; | |
3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
3684 | return NULL; | |
3685 | { | |
3686 | _arg0 = _obj0; | |
3687 | } | |
3688 | { | |
3689 | wxPy_BEGIN_ALLOW_THREADS; | |
3690 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
3691 | ||
3692 | wxPy_END_ALLOW_THREADS; | |
3693 | } if (_result) { | |
3694 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
3695 | _resultobj = Py_BuildValue("s",_ptemp); | |
3696 | } else { | |
3697 | Py_INCREF(Py_None); | |
3698 | _resultobj = Py_None; | |
3699 | } | |
3700 | return _resultobj; | |
3701 | } | |
3702 | ||
3703 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
3704 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject * _resultobj; | |
3706 | wxPyTimer * _arg0; | |
3707 | PyObject * _argo0 = 0; | |
3708 | char *_kwnames[] = { "self", NULL }; | |
3709 | ||
3710 | self = self; | |
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
3712 | return NULL; | |
3713 | if (_argo0) { | |
3714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
3717 | return NULL; | |
3718 | } | |
3719 | } | |
3720 | { | |
3721 | wxPy_BEGIN_ALLOW_THREADS; | |
3722 | delete_wxPyTimer(_arg0); | |
3723 | ||
3724 | wxPy_END_ALLOW_THREADS; | |
3725 | } Py_INCREF(Py_None); | |
3726 | _resultobj = Py_None; | |
3727 | return _resultobj; | |
3728 | } | |
3729 | ||
3730 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
3731 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject * _resultobj; | |
3733 | int _result; | |
3734 | wxPyTimer * _arg0; | |
3735 | PyObject * _argo0 = 0; | |
3736 | char *_kwnames[] = { "self", NULL }; | |
3737 | ||
3738 | self = self; | |
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
3740 | return NULL; | |
3741 | if (_argo0) { | |
3742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
3745 | return NULL; | |
3746 | } | |
3747 | } | |
3748 | { | |
3749 | wxPy_BEGIN_ALLOW_THREADS; | |
3750 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
3751 | ||
3752 | wxPy_END_ALLOW_THREADS; | |
3753 | } _resultobj = Py_BuildValue("i",_result); | |
3754 | return _resultobj; | |
3755 | } | |
3756 | ||
3757 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
3758 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject * _resultobj; | |
3760 | bool _result; | |
3761 | wxPyTimer * _arg0; | |
3762 | PyObject * _argo0 = 0; | |
3763 | char *_kwnames[] = { "self", NULL }; | |
3764 | ||
3765 | self = self; | |
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
3767 | return NULL; | |
3768 | if (_argo0) { | |
3769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
3772 | return NULL; | |
3773 | } | |
3774 | } | |
3775 | { | |
3776 | wxPy_BEGIN_ALLOW_THREADS; | |
3777 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
3778 | ||
3779 | wxPy_END_ALLOW_THREADS; | |
3780 | } _resultobj = Py_BuildValue("i",_result); | |
3781 | return _resultobj; | |
3782 | } | |
3783 | ||
3784 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
3785 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3786 | PyObject * _resultobj; | |
3787 | bool _result; | |
3788 | wxPyTimer * _arg0; | |
3789 | PyObject * _argo0 = 0; | |
3790 | char *_kwnames[] = { "self", NULL }; | |
3791 | ||
3792 | self = self; | |
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
3794 | return NULL; | |
3795 | if (_argo0) { | |
3796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
3802 | { | |
3803 | wxPy_BEGIN_ALLOW_THREADS; | |
3804 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
3805 | ||
3806 | wxPy_END_ALLOW_THREADS; | |
3807 | } _resultobj = Py_BuildValue("i",_result); | |
3808 | return _resultobj; | |
3809 | } | |
3810 | ||
3811 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
3812 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3813 | PyObject * _resultobj; | |
3814 | wxPyTimer * _arg0; | |
3815 | wxEvtHandler * _arg1; | |
3816 | int _arg2 = (int ) -1; | |
3817 | PyObject * _argo0 = 0; | |
3818 | PyObject * _argo1 = 0; | |
3819 | char *_kwnames[] = { "self","owner","id", NULL }; | |
3820 | ||
3821 | self = self; | |
3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3823 | return NULL; | |
3824 | if (_argo0) { | |
3825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
3831 | if (_argo1) { | |
3832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
3835 | return NULL; | |
3836 | } | |
3837 | } | |
3838 | { | |
3839 | wxPy_BEGIN_ALLOW_THREADS; | |
3840 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
3841 | ||
3842 | wxPy_END_ALLOW_THREADS; | |
3843 | } Py_INCREF(Py_None); | |
3844 | _resultobj = Py_None; | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
3848 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
3849 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3850 | PyObject * _resultobj; | |
3851 | wxPyTimer * _arg0; | |
3852 | int _arg1 = (int ) -1; | |
3853 | int _arg2 = (int ) FALSE; | |
3854 | PyObject * _argo0 = 0; | |
3855 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
3856 | ||
3857 | self = self; | |
3858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3859 | return NULL; | |
3860 | if (_argo0) { | |
3861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
3864 | return NULL; | |
3865 | } | |
3866 | } | |
3867 | { | |
3868 | wxPy_BEGIN_ALLOW_THREADS; | |
3869 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
3870 | ||
3871 | wxPy_END_ALLOW_THREADS; | |
3872 | } Py_INCREF(Py_None); | |
3873 | _resultobj = Py_None; | |
3874 | return _resultobj; | |
3875 | } | |
3876 | ||
3877 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
3878 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject * _resultobj; | |
3880 | wxPyTimer * _arg0; | |
f0261a72 RD |
3881 | PyObject * _argo0 = 0; |
3882 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
3883 | |
3884 | self = self; | |
f6bcfd97 | 3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
3886 | return NULL; |
3887 | if (_argo0) { | |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
3891 | return NULL; |
3892 | } | |
3893 | } | |
3894 | { | |
3895 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 3896 | wxPyTimer_Stop(_arg0); |
f0261a72 RD |
3897 | |
3898 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
3899 | } Py_INCREF(Py_None); |
3900 | _resultobj = Py_None; | |
f0261a72 RD |
3901 | return _resultobj; |
3902 | } | |
3903 | ||
f6bcfd97 BP |
3904 | #define new_wxLog() (new wxLog()) |
3905 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 3906 | PyObject * _resultobj; |
f6bcfd97 BP |
3907 | wxLog * _result; |
3908 | char *_kwnames[] = { NULL }; | |
3909 | char _ptemp[128]; | |
f0261a72 RD |
3910 | |
3911 | self = self; | |
f6bcfd97 BP |
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
3913 | return NULL; | |
f0261a72 | 3914 | { |
f6bcfd97 BP |
3915 | wxPy_BEGIN_ALLOW_THREADS; |
3916 | _result = (wxLog *)new_wxLog(); | |
3917 | ||
3918 | wxPy_END_ALLOW_THREADS; | |
3919 | } if (_result) { | |
3920 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
3921 | _resultobj = Py_BuildValue("s",_ptemp); | |
3922 | } else { | |
3923 | Py_INCREF(Py_None); | |
3924 | _resultobj = Py_None; | |
3925 | } | |
3926 | return _resultobj; | |
f0261a72 | 3927 | } |
f6bcfd97 BP |
3928 | |
3929 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject * _resultobj; | |
3931 | bool _result; | |
3932 | char *_kwnames[] = { NULL }; | |
3933 | ||
3934 | self = self; | |
3935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
3936 | return NULL; | |
f0261a72 | 3937 | { |
f6bcfd97 BP |
3938 | wxPy_BEGIN_ALLOW_THREADS; |
3939 | _result = (bool )wxLog::IsEnabled(); | |
3940 | ||
3941 | wxPy_END_ALLOW_THREADS; | |
3942 | } _resultobj = Py_BuildValue("i",_result); | |
3943 | return _resultobj; | |
f0261a72 | 3944 | } |
f6bcfd97 BP |
3945 | |
3946 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject * _resultobj; | |
3948 | bool _result; | |
3949 | bool _arg0 = (bool ) TRUE; | |
3950 | int tempbool0 = (int) TRUE; | |
3951 | char *_kwnames[] = { "doIt", NULL }; | |
3952 | ||
3953 | self = self; | |
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
3955 | return NULL; | |
3956 | _arg0 = (bool ) tempbool0; | |
3957 | { | |
3958 | wxPy_BEGIN_ALLOW_THREADS; | |
3959 | _result = (bool )wxLog::EnableLogging(_arg0); | |
3960 | ||
3961 | wxPy_END_ALLOW_THREADS; | |
3962 | } _resultobj = Py_BuildValue("i",_result); | |
3963 | return _resultobj; | |
3964 | } | |
3965 | ||
3966 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject * _resultobj; | |
3968 | wxLogLevel * _arg0; | |
3969 | char * _arg1; | |
3970 | int _arg2 = (int ) 0; | |
3971 | PyObject * _argo0 = 0; | |
3972 | char *_kwnames[] = { "level","szString","t", NULL }; | |
3973 | ||
3974 | self = self; | |
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
f0261a72 RD |
3976 | return NULL; |
3977 | if (_argo0) { | |
3978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
3979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
3980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
3981 | return NULL; |
3982 | } | |
3983 | } | |
3984 | { | |
3985 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 3986 | wxLog::OnLog(*_arg0,_arg1,_arg2); |
f0261a72 RD |
3987 | |
3988 | wxPy_END_ALLOW_THREADS; | |
3989 | } Py_INCREF(Py_None); | |
3990 | _resultobj = Py_None; | |
f6bcfd97 | 3991 | return _resultobj; |
f0261a72 | 3992 | } |
f6bcfd97 BP |
3993 | |
3994 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
3995 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3996 | PyObject * _resultobj; | |
3997 | wxLog * _arg0; | |
3998 | PyObject * _argo0 = 0; | |
3999 | char *_kwnames[] = { "self", NULL }; | |
4000 | ||
4001 | self = self; | |
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4003 | return NULL; | |
4004 | if (_argo0) { | |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4008 | return NULL; | |
4009 | } | |
4010 | } | |
f0261a72 | 4011 | { |
f6bcfd97 BP |
4012 | wxPy_BEGIN_ALLOW_THREADS; |
4013 | wxLog_Flush(_arg0); | |
4014 | ||
4015 | wxPy_END_ALLOW_THREADS; | |
4016 | } Py_INCREF(Py_None); | |
4017 | _resultobj = Py_None; | |
f0261a72 RD |
4018 | return _resultobj; |
4019 | } | |
4020 | ||
f6bcfd97 BP |
4021 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4022 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4023 | PyObject * _resultobj; |
f6bcfd97 BP |
4024 | bool _result; |
4025 | wxLog * _arg0; | |
f0261a72 RD |
4026 | PyObject * _argo0 = 0; |
4027 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4028 | |
4029 | self = self; | |
f6bcfd97 | 4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4031 | return NULL; |
4032 | if (_argo0) { | |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4036 | return NULL; |
4037 | } | |
4038 | } | |
4039 | { | |
4040 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4041 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 RD |
4042 | |
4043 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4044 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4045 | return _resultobj; |
4046 | } | |
4047 | ||
f6bcfd97 | 4048 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4049 | PyObject * _resultobj; |
f6bcfd97 BP |
4050 | char *_kwnames[] = { NULL }; |
4051 | ||
4052 | self = self; | |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4054 | return NULL; | |
4055 | { | |
4056 | wxPy_BEGIN_ALLOW_THREADS; | |
4057 | wxLog::FlushActive(); | |
4058 | ||
4059 | wxPy_END_ALLOW_THREADS; | |
4060 | } Py_INCREF(Py_None); | |
4061 | _resultobj = Py_None; | |
4062 | return _resultobj; | |
4063 | } | |
4064 | ||
4065 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4066 | PyObject * _resultobj; | |
4067 | wxLog * _result; | |
4068 | char *_kwnames[] = { NULL }; | |
4069 | char _ptemp[128]; | |
4070 | ||
4071 | self = self; | |
4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4073 | return NULL; | |
4074 | { | |
4075 | wxPy_BEGIN_ALLOW_THREADS; | |
4076 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4077 | ||
4078 | wxPy_END_ALLOW_THREADS; | |
4079 | } if (_result) { | |
4080 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4081 | _resultobj = Py_BuildValue("s",_ptemp); | |
4082 | } else { | |
4083 | Py_INCREF(Py_None); | |
4084 | _resultobj = Py_None; | |
4085 | } | |
4086 | return _resultobj; | |
4087 | } | |
4088 | ||
4089 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4090 | PyObject * _resultobj; | |
4091 | wxLog * _result; | |
4092 | wxLog * _arg0; | |
f0261a72 | 4093 | PyObject * _argo0 = 0; |
f6bcfd97 | 4094 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4095 | char _ptemp[128]; |
4096 | ||
4097 | self = self; | |
f6bcfd97 | 4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4099 | return NULL; |
4100 | if (_argo0) { | |
4101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4104 | return NULL; |
4105 | } | |
4106 | } | |
4107 | { | |
4108 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4109 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 RD |
4110 | |
4111 | wxPy_END_ALLOW_THREADS; | |
4112 | } if (_result) { | |
f6bcfd97 | 4113 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4114 | _resultobj = Py_BuildValue("s",_ptemp); |
4115 | } else { | |
4116 | Py_INCREF(Py_None); | |
4117 | _resultobj = Py_None; | |
4118 | } | |
4119 | return _resultobj; | |
4120 | } | |
4121 | ||
f6bcfd97 | 4122 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4123 | PyObject * _resultobj; |
f6bcfd97 BP |
4124 | char *_kwnames[] = { NULL }; |
4125 | ||
4126 | self = self; | |
4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4128 | return NULL; | |
4129 | { | |
4130 | wxPy_BEGIN_ALLOW_THREADS; | |
4131 | wxLog::Suspend(); | |
4132 | ||
4133 | wxPy_END_ALLOW_THREADS; | |
4134 | } Py_INCREF(Py_None); | |
4135 | _resultobj = Py_None; | |
4136 | return _resultobj; | |
4137 | } | |
4138 | ||
4139 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject * _resultobj; | |
4141 | char *_kwnames[] = { NULL }; | |
4142 | ||
4143 | self = self; | |
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4145 | return NULL; | |
4146 | { | |
4147 | wxPy_BEGIN_ALLOW_THREADS; | |
4148 | wxLog::Resume(); | |
4149 | ||
4150 | wxPy_END_ALLOW_THREADS; | |
4151 | } Py_INCREF(Py_None); | |
4152 | _resultobj = Py_None; | |
4153 | return _resultobj; | |
4154 | } | |
4155 | ||
4156 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4157 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4158 | PyObject * _resultobj; | |
4159 | wxLog * _arg0; | |
4160 | bool _arg1 = (bool ) TRUE; | |
f0261a72 | 4161 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4162 | int tempbool1 = (int) TRUE; |
4163 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
f0261a72 RD |
4164 | |
4165 | self = self; | |
f6bcfd97 | 4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
f0261a72 RD |
4167 | return NULL; |
4168 | if (_argo0) { | |
4169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
f0261a72 RD |
4172 | return NULL; |
4173 | } | |
4174 | } | |
f6bcfd97 | 4175 | _arg1 = (bool ) tempbool1; |
f0261a72 RD |
4176 | { |
4177 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4178 | wxLog_SetVerbose(_arg0,_arg1); |
f0261a72 RD |
4179 | |
4180 | wxPy_END_ALLOW_THREADS; | |
4181 | } Py_INCREF(Py_None); | |
4182 | _resultobj = Py_None; | |
4183 | return _resultobj; | |
4184 | } | |
4185 | ||
f6bcfd97 | 4186 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4187 | PyObject * _resultobj; |
f6bcfd97 BP |
4188 | char *_kwnames[] = { NULL }; |
4189 | ||
4190 | self = self; | |
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4192 | return NULL; | |
4193 | { | |
4194 | wxPy_BEGIN_ALLOW_THREADS; | |
4195 | wxLog::DontCreateOnDemand(); | |
4196 | ||
4197 | wxPy_END_ALLOW_THREADS; | |
4198 | } Py_INCREF(Py_None); | |
4199 | _resultobj = Py_None; | |
4200 | return _resultobj; | |
4201 | } | |
4202 | ||
4203 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4204 | PyObject * _resultobj; | |
4205 | wxTraceMask * _arg0; | |
f0261a72 | 4206 | PyObject * _argo0 = 0; |
f6bcfd97 | 4207 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4208 | |
4209 | self = self; | |
f6bcfd97 | 4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4211 | return NULL; |
4212 | if (_argo0) { | |
4213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4216 | return NULL; | |
4217 | } | |
4218 | } | |
4219 | { | |
4220 | wxPy_BEGIN_ALLOW_THREADS; | |
4221 | wxLog::SetTraceMask(*_arg0); | |
4222 | ||
4223 | wxPy_END_ALLOW_THREADS; | |
4224 | } Py_INCREF(Py_None); | |
4225 | _resultobj = Py_None; | |
4226 | return _resultobj; | |
4227 | } | |
4228 | ||
4229 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxString * _arg0; | |
4232 | PyObject * _obj0 = 0; | |
4233 | char *_kwnames[] = { "str", NULL }; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4237 | return NULL; | |
4238 | { | |
185d7c3e RD |
4239 | #if PYTHON_API_VERSION >= 1009 |
4240 | char* tmpPtr; int tmpSize; | |
4241 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4242 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4243 | return NULL; | |
4244 | } | |
4245 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4246 | return NULL; | |
4247 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4248 | #else | |
f6bcfd97 BP |
4249 | if (!PyString_Check(_obj0)) { |
4250 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4251 | return NULL; | |
4252 | } | |
185d7c3e RD |
4253 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4254 | #endif | |
f6bcfd97 BP |
4255 | } |
4256 | { | |
4257 | wxPy_BEGIN_ALLOW_THREADS; | |
4258 | wxLog::AddTraceMask(*_arg0); | |
4259 | ||
4260 | wxPy_END_ALLOW_THREADS; | |
4261 | } Py_INCREF(Py_None); | |
4262 | _resultobj = Py_None; | |
4263 | { | |
4264 | if (_obj0) | |
4265 | delete _arg0; | |
4266 | } | |
4267 | return _resultobj; | |
4268 | } | |
4269 | ||
4270 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject * _resultobj; | |
4272 | wxString * _arg0; | |
4273 | PyObject * _obj0 = 0; | |
4274 | char *_kwnames[] = { "str", NULL }; | |
4275 | ||
4276 | self = self; | |
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4278 | return NULL; |
f0261a72 | 4279 | { |
185d7c3e RD |
4280 | #if PYTHON_API_VERSION >= 1009 |
4281 | char* tmpPtr; int tmpSize; | |
4282 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4283 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4284 | return NULL; | |
4285 | } | |
4286 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4287 | return NULL; | |
4288 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4289 | #else | |
f6bcfd97 BP |
4290 | if (!PyString_Check(_obj0)) { |
4291 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
f0261a72 | 4292 | return NULL; |
f6bcfd97 | 4293 | } |
185d7c3e RD |
4294 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4295 | #endif | |
f0261a72 RD |
4296 | } |
4297 | { | |
4298 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4299 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 RD |
4300 | |
4301 | wxPy_END_ALLOW_THREADS; | |
4302 | } Py_INCREF(Py_None); | |
4303 | _resultobj = Py_None; | |
f6bcfd97 BP |
4304 | { |
4305 | if (_obj0) | |
4306 | delete _arg0; | |
4307 | } | |
f0261a72 RD |
4308 | return _resultobj; |
4309 | } | |
4310 | ||
f6bcfd97 BP |
4311 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4312 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 4313 | PyObject * _resultobj; |
f6bcfd97 BP |
4314 | bool _result; |
4315 | wxLog * _arg0; | |
a1df7a95 | 4316 | PyObject * _argo0 = 0; |
f6bcfd97 | 4317 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
4318 | |
4319 | self = self; | |
f6bcfd97 | 4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
4321 | return NULL; |
4322 | if (_argo0) { | |
4323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
4326 | return NULL; |
4327 | } | |
4328 | } | |
4329 | { | |
4330 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4331 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 RD |
4332 | |
4333 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4334 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
4335 | return _resultobj; |
4336 | } | |
4337 | ||
f6bcfd97 | 4338 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 4339 | PyObject * _resultobj; |
f6bcfd97 BP |
4340 | wxTraceMask * _result; |
4341 | char *_kwnames[] = { NULL }; | |
4342 | char _ptemp[128]; | |
a1df7a95 RD |
4343 | |
4344 | self = self; | |
f6bcfd97 | 4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 4346 | return NULL; |
a1df7a95 | 4347 | { |
f6bcfd97 BP |
4348 | wxPy_BEGIN_ALLOW_THREADS; |
4349 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
4350 | ||
4351 | wxPy_END_ALLOW_THREADS; | |
4352 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
4353 | _resultobj = Py_BuildValue("s",_ptemp); | |
4354 | return _resultobj; | |
a1df7a95 | 4355 | } |
f6bcfd97 BP |
4356 | |
4357 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject * _resultobj; | |
4359 | bool _result; | |
4360 | char * _arg0; | |
4361 | char *_kwnames[] = { "mask", NULL }; | |
4362 | ||
4363 | self = self; | |
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
4365 | return NULL; | |
a1df7a95 RD |
4366 | { |
4367 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4368 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); |
a1df7a95 RD |
4369 | |
4370 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4371 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
4372 | return _resultobj; |
4373 | } | |
4374 | ||
f6bcfd97 BP |
4375 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
4376 | wxLogStderr *src; | |
4377 | wxLog *dest; | |
4378 | src = (wxLogStderr *) ptr; | |
4379 | dest = (wxLog *) src; | |
4380 | return (void *) dest; | |
4381 | } | |
4382 | ||
4383 | #define new_wxLogStderr() (new wxLogStderr()) | |
4384 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4385 | PyObject * _resultobj; |
f6bcfd97 BP |
4386 | wxLogStderr * _result; |
4387 | char *_kwnames[] = { NULL }; | |
4388 | char _ptemp[128]; | |
f0261a72 RD |
4389 | |
4390 | self = self; | |
f6bcfd97 | 4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 4392 | return NULL; |
f0261a72 RD |
4393 | { |
4394 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4395 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 RD |
4396 | |
4397 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4398 | } if (_result) { |
4399 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
4400 | _resultobj = Py_BuildValue("s",_ptemp); | |
4401 | } else { | |
4402 | Py_INCREF(Py_None); | |
4403 | _resultobj = Py_None; | |
4404 | } | |
f0261a72 RD |
4405 | return _resultobj; |
4406 | } | |
4407 | ||
f6bcfd97 BP |
4408 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
4409 | wxLogTextCtrl *src; | |
4410 | wxLog *dest; | |
4411 | src = (wxLogTextCtrl *) ptr; | |
4412 | dest = (wxLog *) src; | |
4413 | return (void *) dest; | |
4414 | } | |
4415 | ||
4416 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
4417 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4418 | PyObject * _resultobj; |
f6bcfd97 BP |
4419 | wxLogTextCtrl * _result; |
4420 | wxTextCtrl * _arg0; | |
f0261a72 | 4421 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4422 | char *_kwnames[] = { "pTextCtrl", NULL }; |
4423 | char _ptemp[128]; | |
f0261a72 RD |
4424 | |
4425 | self = self; | |
f6bcfd97 | 4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
4427 | return NULL; |
4428 | if (_argo0) { | |
4429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
4431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
4432 | return NULL; |
4433 | } | |
4434 | } | |
4435 | { | |
4436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4437 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 RD |
4438 | |
4439 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4440 | } if (_result) { |
4441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
4442 | _resultobj = Py_BuildValue("s",_ptemp); | |
4443 | } else { | |
4444 | Py_INCREF(Py_None); | |
4445 | _resultobj = Py_None; | |
4446 | } | |
f0261a72 RD |
4447 | return _resultobj; |
4448 | } | |
4449 | ||
f6bcfd97 BP |
4450 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
4451 | wxLogGui *src; | |
4452 | wxLog *dest; | |
4453 | src = (wxLogGui *) ptr; | |
4454 | dest = (wxLog *) src; | |
4455 | return (void *) dest; | |
4456 | } | |
4457 | ||
4458 | #define new_wxLogGui() (new wxLogGui()) | |
4459 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 4460 | PyObject * _resultobj; |
f6bcfd97 | 4461 | wxLogGui * _result; |
b1462dfa RD |
4462 | char *_kwnames[] = { NULL }; |
4463 | char _ptemp[128]; | |
4464 | ||
4465 | self = self; | |
f6bcfd97 | 4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
4467 | return NULL; |
4468 | { | |
4469 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4470 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa RD |
4471 | |
4472 | wxPy_END_ALLOW_THREADS; | |
4473 | } if (_result) { | |
f6bcfd97 | 4474 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
4475 | _resultobj = Py_BuildValue("s",_ptemp); |
4476 | } else { | |
4477 | Py_INCREF(Py_None); | |
4478 | _resultobj = Py_None; | |
4479 | } | |
4480 | return _resultobj; | |
4481 | } | |
4482 | ||
f6bcfd97 BP |
4483 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
4484 | wxLogWindow *src; | |
4485 | wxLog *dest; | |
4486 | src = (wxLogWindow *) ptr; | |
4487 | dest = (wxLog *) src; | |
4488 | return (void *) dest; | |
4489 | } | |
4490 | ||
4491 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4492 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 4493 | PyObject * _resultobj; |
f6bcfd97 BP |
4494 | wxLogWindow * _result; |
4495 | wxFrame * _arg0; | |
4496 | char * _arg1; | |
4497 | bool _arg2 = (bool ) TRUE; | |
4498 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 4499 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4500 | int tempbool2 = (int) TRUE; |
4501 | int tempbool3 = (int) TRUE; | |
4502 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
4503 | char _ptemp[128]; | |
b1462dfa RD |
4504 | |
4505 | self = self; | |
f6bcfd97 | 4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) |
b1462dfa RD |
4507 | return NULL; |
4508 | if (_argo0) { | |
4509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
4511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
4512 | return NULL; |
4513 | } | |
4514 | } | |
f6bcfd97 BP |
4515 | _arg2 = (bool ) tempbool2; |
4516 | _arg3 = (bool ) tempbool3; | |
b1462dfa RD |
4517 | { |
4518 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4519 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); |
b1462dfa RD |
4520 | |
4521 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4522 | } if (_result) { |
4523 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
4524 | _resultobj = Py_BuildValue("s",_ptemp); | |
4525 | } else { | |
4526 | Py_INCREF(Py_None); | |
4527 | _resultobj = Py_None; | |
4528 | } | |
b1462dfa RD |
4529 | return _resultobj; |
4530 | } | |
4531 | ||
f6bcfd97 BP |
4532 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
4533 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 4534 | PyObject * _resultobj; |
f6bcfd97 BP |
4535 | wxLogWindow * _arg0; |
4536 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 4537 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4538 | int tempbool1 = (int) TRUE; |
4539 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
4540 | |
4541 | self = self; | |
f6bcfd97 | 4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
4543 | return NULL; |
4544 | if (_argo0) { | |
4545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
4548 | return NULL; |
4549 | } | |
4550 | } | |
f6bcfd97 | 4551 | _arg1 = (bool ) tempbool1; |
b1462dfa RD |
4552 | { |
4553 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4554 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa RD |
4555 | |
4556 | wxPy_END_ALLOW_THREADS; | |
4557 | } Py_INCREF(Py_None); | |
4558 | _resultobj = Py_None; | |
4559 | return _resultobj; | |
4560 | } | |
4561 | ||
f6bcfd97 BP |
4562 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
4563 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 4564 | PyObject * _resultobj; |
f6bcfd97 BP |
4565 | wxFrame * _result; |
4566 | wxLogWindow * _arg0; | |
b1462dfa | 4567 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4568 | char *_kwnames[] = { "self", NULL }; |
4569 | char _ptemp[128]; | |
b1462dfa RD |
4570 | |
4571 | self = self; | |
f6bcfd97 | 4572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
4573 | return NULL; |
4574 | if (_argo0) { | |
4575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
4578 | return NULL; |
4579 | } | |
4580 | } | |
b1462dfa RD |
4581 | { |
4582 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4583 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa RD |
4584 | |
4585 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4586 | } if (_result) { |
4587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
4588 | _resultobj = Py_BuildValue("s",_ptemp); | |
4589 | } else { | |
4590 | Py_INCREF(Py_None); | |
4591 | _resultobj = Py_None; | |
4592 | } | |
b1462dfa RD |
4593 | return _resultobj; |
4594 | } | |
4595 | ||
f6bcfd97 BP |
4596 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
4597 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 4598 | PyObject * _resultobj; |
f6bcfd97 BP |
4599 | wxLog * _result; |
4600 | wxLogWindow * _arg0; | |
b1462dfa | 4601 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4602 | char *_kwnames[] = { "self", NULL }; |
4603 | char _ptemp[128]; | |
b1462dfa RD |
4604 | |
4605 | self = self; | |
f6bcfd97 | 4606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
4607 | return NULL; |
4608 | if (_argo0) { | |
4609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
4612 | return NULL; |
4613 | } | |
4614 | } | |
4615 | { | |
4616 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4617 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa RD |
4618 | |
4619 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4620 | } if (_result) { |
4621 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4622 | _resultobj = Py_BuildValue("s",_ptemp); | |
4623 | } else { | |
4624 | Py_INCREF(Py_None); | |
4625 | _resultobj = Py_None; | |
4626 | } | |
b1462dfa RD |
4627 | return _resultobj; |
4628 | } | |
4629 | ||
f6bcfd97 BP |
4630 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
4631 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 4632 | PyObject * _resultobj; |
f6bcfd97 BP |
4633 | bool _result; |
4634 | wxLogWindow * _arg0; | |
65dd82cb RD |
4635 | PyObject * _argo0 = 0; |
4636 | char *_kwnames[] = { "self", NULL }; | |
4637 | ||
4638 | self = self; | |
f6bcfd97 | 4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
4640 | return NULL; |
4641 | if (_argo0) { | |
4642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
4645 | return NULL; |
4646 | } | |
4647 | } | |
4648 | { | |
4649 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4650 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb RD |
4651 | |
4652 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4653 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
4654 | return _resultobj; |
4655 | } | |
4656 | ||
f6bcfd97 BP |
4657 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
4658 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 4659 | PyObject * _resultobj; |
f6bcfd97 BP |
4660 | wxLogWindow * _arg0; |
4661 | bool _arg1; | |
65dd82cb | 4662 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4663 | int tempbool1; |
4664 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
4665 | |
4666 | self = self; | |
f6bcfd97 | 4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
4668 | return NULL; |
4669 | if (_argo0) { | |
4670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
4673 | return NULL; |
4674 | } | |
4675 | } | |
f6bcfd97 | 4676 | _arg1 = (bool ) tempbool1; |
65dd82cb RD |
4677 | { |
4678 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4679 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb RD |
4680 | |
4681 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4682 | } Py_INCREF(Py_None); |
4683 | _resultobj = Py_None; | |
65dd82cb RD |
4684 | return _resultobj; |
4685 | } | |
4686 | ||
f6bcfd97 BP |
4687 | #define new_wxLogNull() (new wxLogNull()) |
4688 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 4689 | PyObject * _resultobj; |
f6bcfd97 BP |
4690 | wxLogNull * _result; |
4691 | char *_kwnames[] = { NULL }; | |
2abc0a0f RD |
4692 | char _ptemp[128]; |
4693 | ||
4694 | self = self; | |
f6bcfd97 | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
2abc0a0f | 4696 | return NULL; |
2abc0a0f RD |
4697 | { |
4698 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4699 | _result = (wxLogNull *)new_wxLogNull(); |
2abc0a0f RD |
4700 | |
4701 | wxPy_END_ALLOW_THREADS; | |
4702 | } if (_result) { | |
f6bcfd97 | 4703 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
2abc0a0f RD |
4704 | _resultobj = Py_BuildValue("s",_ptemp); |
4705 | } else { | |
4706 | Py_INCREF(Py_None); | |
4707 | _resultobj = Py_None; | |
4708 | } | |
4709 | return _resultobj; | |
4710 | } | |
4711 | ||
f6bcfd97 BP |
4712 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
4713 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 4714 | PyObject * _resultobj; |
f6bcfd97 | 4715 | wxLogNull * _arg0; |
2abc0a0f RD |
4716 | PyObject * _argo0 = 0; |
4717 | char *_kwnames[] = { "self", NULL }; | |
4718 | ||
4719 | self = self; | |
f6bcfd97 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
2abc0a0f RD |
4721 | return NULL; |
4722 | if (_argo0) { | |
4723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
4725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
2abc0a0f RD |
4726 | return NULL; |
4727 | } | |
4728 | } | |
4729 | { | |
4730 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4731 | delete_wxLogNull(_arg0); |
2abc0a0f RD |
4732 | |
4733 | wxPy_END_ALLOW_THREADS; | |
4734 | } Py_INCREF(Py_None); | |
4735 | _resultobj = Py_None; | |
4736 | return _resultobj; | |
4737 | } | |
4738 | ||
c368d904 RD |
4739 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
4740 | wxProcessEvent *src; | |
4741 | wxEvent *dest; | |
4742 | src = (wxProcessEvent *) ptr; | |
4743 | dest = (wxEvent *) src; | |
4744 | return (void *) dest; | |
4745 | } | |
4746 | ||
4747 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) | |
4748 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject * _resultobj; | |
4750 | wxProcessEvent * _result; | |
4751 | int _arg0 = (int ) 0; | |
4752 | int _arg1 = (int ) 0; | |
4753 | int _arg2 = (int ) 0; | |
4754 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
4755 | char _ptemp[128]; | |
4756 | ||
4757 | self = self; | |
4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4759 | return NULL; | |
4760 | { | |
4761 | wxPy_BEGIN_ALLOW_THREADS; | |
4762 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
4763 | ||
4764 | wxPy_END_ALLOW_THREADS; | |
4765 | } if (_result) { | |
4766 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
4767 | _resultobj = Py_BuildValue("s",_ptemp); | |
4768 | } else { | |
4769 | Py_INCREF(Py_None); | |
4770 | _resultobj = Py_None; | |
4771 | } | |
4772 | return _resultobj; | |
4773 | } | |
4774 | ||
4775 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
4776 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4777 | PyObject * _resultobj; | |
4778 | int _result; | |
4779 | wxProcessEvent * _arg0; | |
4780 | PyObject * _argo0 = 0; | |
4781 | char *_kwnames[] = { "self", NULL }; | |
4782 | ||
4783 | self = self; | |
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
4785 | return NULL; | |
4786 | if (_argo0) { | |
4787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
4790 | return NULL; | |
4791 | } | |
4792 | } | |
4793 | { | |
4794 | wxPy_BEGIN_ALLOW_THREADS; | |
4795 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
4796 | ||
4797 | wxPy_END_ALLOW_THREADS; | |
4798 | } _resultobj = Py_BuildValue("i",_result); | |
4799 | return _resultobj; | |
4800 | } | |
4801 | ||
4802 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
4803 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4804 | PyObject * _resultobj; | |
4805 | int _result; | |
4806 | wxProcessEvent * _arg0; | |
4807 | PyObject * _argo0 = 0; | |
4808 | char *_kwnames[] = { "self", NULL }; | |
4809 | ||
4810 | self = self; | |
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
4812 | return NULL; | |
4813 | if (_argo0) { | |
4814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
4817 | return NULL; | |
4818 | } | |
4819 | } | |
4820 | { | |
4821 | wxPy_BEGIN_ALLOW_THREADS; | |
4822 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
4823 | ||
4824 | wxPy_END_ALLOW_THREADS; | |
4825 | } _resultobj = Py_BuildValue("i",_result); | |
4826 | return _resultobj; | |
4827 | } | |
4828 | ||
4829 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
4830 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4831 | PyObject * _resultobj; | |
4832 | int _result; | |
4833 | wxProcessEvent * _arg0; | |
4834 | int _arg1; | |
4835 | PyObject * _argo0 = 0; | |
4836 | char *_kwnames[] = { "self","m_pid", NULL }; | |
4837 | ||
4838 | self = self; | |
4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
4840 | return NULL; | |
4841 | if (_argo0) { | |
4842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
4845 | return NULL; | |
4846 | } | |
4847 | } | |
4848 | { | |
4849 | wxPy_BEGIN_ALLOW_THREADS; | |
4850 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
4851 | ||
4852 | wxPy_END_ALLOW_THREADS; | |
4853 | } _resultobj = Py_BuildValue("i",_result); | |
4854 | return _resultobj; | |
4855 | } | |
4856 | ||
4857 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
4858 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject * _resultobj; | |
4860 | int _result; | |
4861 | wxProcessEvent * _arg0; | |
4862 | PyObject * _argo0 = 0; | |
4863 | char *_kwnames[] = { "self", NULL }; | |
4864 | ||
4865 | self = self; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
4867 | return NULL; | |
4868 | if (_argo0) { | |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | { | |
4876 | wxPy_BEGIN_ALLOW_THREADS; | |
4877 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
4878 | ||
4879 | wxPy_END_ALLOW_THREADS; | |
4880 | } _resultobj = Py_BuildValue("i",_result); | |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
4884 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
4885 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | int _result; | |
4888 | wxProcessEvent * _arg0; | |
4889 | int _arg1; | |
4890 | PyObject * _argo0 = 0; | |
4891 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
4892 | ||
4893 | self = self; | |
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
4895 | return NULL; | |
4896 | if (_argo0) { | |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | { | |
4904 | wxPy_BEGIN_ALLOW_THREADS; | |
4905 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
4906 | ||
4907 | wxPy_END_ALLOW_THREADS; | |
4908 | } _resultobj = Py_BuildValue("i",_result); | |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
4912 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
4913 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject * _resultobj; | |
4915 | int _result; | |
4916 | wxProcessEvent * _arg0; | |
4917 | PyObject * _argo0 = 0; | |
4918 | char *_kwnames[] = { "self", NULL }; | |
4919 | ||
4920 | self = self; | |
4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
4922 | return NULL; | |
4923 | if (_argo0) { | |
4924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
4927 | return NULL; | |
4928 | } | |
4929 | } | |
4930 | { | |
4931 | wxPy_BEGIN_ALLOW_THREADS; | |
4932 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
4933 | ||
4934 | wxPy_END_ALLOW_THREADS; | |
4935 | } _resultobj = Py_BuildValue("i",_result); | |
4936 | return _resultobj; | |
4937 | } | |
4938 | ||
4939 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
4940 | wxPyProcess *src; | |
4941 | wxEvtHandler *dest; | |
4942 | src = (wxPyProcess *) ptr; | |
4943 | dest = (wxEvtHandler *) src; | |
4944 | return (void *) dest; | |
4945 | } | |
4946 | ||
4947 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) | |
4948 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject * _resultobj; | |
4950 | wxPyProcess * _result; | |
4951 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
4952 | int _arg1 = (int ) -1; | |
4953 | PyObject * _argo0 = 0; | |
4954 | char *_kwnames[] = { "parent","id", NULL }; | |
4955 | char _ptemp[128]; | |
4956 | ||
4957 | self = self; | |
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
4959 | return NULL; | |
4960 | if (_argo0) { | |
4961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
4963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
4964 | return NULL; | |
4965 | } | |
4966 | } | |
4967 | { | |
4968 | wxPy_BEGIN_ALLOW_THREADS; | |
4969 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
4970 | ||
4971 | wxPy_END_ALLOW_THREADS; | |
4972 | } if (_result) { | |
4973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
4974 | _resultobj = Py_BuildValue("s",_ptemp); | |
4975 | } else { | |
4976 | Py_INCREF(Py_None); | |
4977 | _resultobj = Py_None; | |
4978 | } | |
4979 | return _resultobj; | |
4980 | } | |
4981 | ||
4982 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
4983 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject * _resultobj; | |
4985 | wxPyProcess * _arg0; | |
4986 | PyObject * _argo0 = 0; | |
4987 | char *_kwnames[] = { "self", NULL }; | |
4988 | ||
4989 | self = self; | |
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
4991 | return NULL; | |
4992 | if (_argo0) { | |
4993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
4996 | return NULL; | |
4997 | } | |
4998 | } | |
4999 | { | |
5000 | wxPy_BEGIN_ALLOW_THREADS; | |
5001 | wxPyProcess_Destroy(_arg0); | |
5002 | ||
5003 | wxPy_END_ALLOW_THREADS; | |
5004 | } Py_INCREF(Py_None); | |
5005 | _resultobj = Py_None; | |
5006 | return _resultobj; | |
5007 | } | |
5008 | ||
5009 | #define wxProcess__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
5010 | static PyObject *_wrap_wxProcess__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject * _resultobj; | |
5012 | wxPyProcess * _arg0; | |
5013 | PyObject * _arg1; | |
5014 | PyObject * _arg2; | |
5015 | PyObject * _argo0 = 0; | |
5016 | PyObject * _obj1 = 0; | |
5017 | PyObject * _obj2 = 0; | |
5018 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5019 | ||
5020 | self = self; | |
5021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5022 | return NULL; | |
5023 | if (_argo0) { | |
5024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setSelf. Expected _wxPyProcess_p."); | |
5027 | return NULL; | |
5028 | } | |
5029 | } | |
5030 | { | |
5031 | _arg1 = _obj1; | |
5032 | } | |
5033 | { | |
5034 | _arg2 = _obj2; | |
5035 | } | |
5036 | { | |
5037 | wxPy_BEGIN_ALLOW_THREADS; | |
5038 | wxProcess__setSelf(_arg0,_arg1,_arg2); | |
5039 | ||
5040 | wxPy_END_ALLOW_THREADS; | |
5041 | } Py_INCREF(Py_None); | |
5042 | _resultobj = Py_None; | |
5043 | return _resultobj; | |
5044 | } | |
5045 | ||
5046 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
5047 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5048 | PyObject * _resultobj; | |
5049 | wxPyProcess * _arg0; | |
5050 | int _arg1; | |
5051 | int _arg2; | |
5052 | PyObject * _argo0 = 0; | |
5053 | char *_kwnames[] = { "self","pid","status", NULL }; | |
5054 | ||
5055 | self = self; | |
5056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5057 | return NULL; | |
5058 | if (_argo0) { | |
5059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
5062 | return NULL; | |
5063 | } | |
5064 | } | |
5065 | { | |
5066 | wxPy_BEGIN_ALLOW_THREADS; | |
5067 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
5068 | ||
5069 | wxPy_END_ALLOW_THREADS; | |
5070 | } Py_INCREF(Py_None); | |
5071 | _resultobj = Py_None; | |
5072 | return _resultobj; | |
5073 | } | |
5074 | ||
5075 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
5076 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | wxPyProcess * _arg0; | |
5079 | PyObject * _argo0 = 0; | |
5080 | char *_kwnames[] = { "self", NULL }; | |
5081 | ||
5082 | self = self; | |
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
5084 | return NULL; | |
5085 | if (_argo0) { | |
5086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
5089 | return NULL; | |
5090 | } | |
5091 | } | |
5092 | { | |
5093 | wxPy_BEGIN_ALLOW_THREADS; | |
5094 | wxProcess_Redirect(_arg0); | |
5095 | ||
5096 | wxPy_END_ALLOW_THREADS; | |
5097 | } Py_INCREF(Py_None); | |
5098 | _resultobj = Py_None; | |
5099 | return _resultobj; | |
5100 | } | |
5101 | ||
5102 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
5103 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5104 | PyObject * _resultobj; | |
5105 | bool _result; | |
5106 | wxPyProcess * _arg0; | |
5107 | PyObject * _argo0 = 0; | |
5108 | char *_kwnames[] = { "self", NULL }; | |
5109 | ||
5110 | self = self; | |
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
5112 | return NULL; | |
5113 | if (_argo0) { | |
5114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | { | |
5121 | wxPy_BEGIN_ALLOW_THREADS; | |
5122 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
5123 | ||
5124 | wxPy_END_ALLOW_THREADS; | |
5125 | } _resultobj = Py_BuildValue("i",_result); | |
5126 | return _resultobj; | |
5127 | } | |
5128 | ||
5129 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
5130 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5131 | PyObject * _resultobj; | |
5132 | wxPyProcess * _arg0; | |
5133 | PyObject * _argo0 = 0; | |
5134 | char *_kwnames[] = { "self", NULL }; | |
5135 | ||
5136 | self = self; | |
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
5138 | return NULL; | |
5139 | if (_argo0) { | |
5140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
5146 | { | |
5147 | wxPy_BEGIN_ALLOW_THREADS; | |
5148 | wxProcess_Detach(_arg0); | |
5149 | ||
5150 | wxPy_END_ALLOW_THREADS; | |
5151 | } Py_INCREF(Py_None); | |
5152 | _resultobj = Py_None; | |
5153 | return _resultobj; | |
5154 | } | |
5155 | ||
5156 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
5157 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5158 | PyObject * _resultobj; | |
5159 | wxInputStream * _result; | |
5160 | wxPyProcess * _arg0; | |
5161 | PyObject * _argo0 = 0; | |
5162 | char *_kwnames[] = { "self", NULL }; | |
5163 | ||
5164 | self = self; | |
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
5166 | return NULL; | |
5167 | if (_argo0) { | |
5168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
5171 | return NULL; | |
5172 | } | |
5173 | } | |
5174 | { | |
5175 | wxPy_BEGIN_ALLOW_THREADS; | |
5176 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
5177 | ||
5178 | wxPy_END_ALLOW_THREADS; | |
5179 | }{ | |
5180 | wxPyInputStream * _ptr = NULL; | |
5181 | ||
5182 | if (_result) { | |
5183 | _ptr = new wxPyInputStream(_result); | |
5184 | } | |
5185 | if (_ptr) { | |
5186 | char swigptr[64]; | |
5187 | SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p"); | |
5188 | ||
5189 | PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr"); | |
5190 | if (! classobj) { | |
5191 | Py_INCREF(Py_None); | |
5192 | _resultobj = Py_None; | |
5193 | } else { | |
5194 | PyObject* arg = Py_BuildValue("(s)", swigptr); | |
5195 | _resultobj = PyInstance_New(classobj, arg, NULL); | |
5196 | Py_DECREF(arg); | |
5197 | ||
5198 | // set ThisOwn | |
1404c10b RD |
5199 | PyObject* one = PyInt_FromLong(1); |
5200 | PyObject_SetAttrString(_resultobj, "thisown", one); | |
5201 | Py_DECREF(one); | |
c368d904 RD |
5202 | } |
5203 | } else { | |
5204 | Py_INCREF(Py_None); | |
5205 | _resultobj = Py_None; | |
5206 | } | |
5207 | } | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
5211 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
5212 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject * _resultobj; | |
5214 | wxInputStream * _result; | |
5215 | wxPyProcess * _arg0; | |
5216 | PyObject * _argo0 = 0; | |
5217 | char *_kwnames[] = { "self", NULL }; | |
5218 | ||
5219 | self = self; | |
5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
5221 | return NULL; | |
5222 | if (_argo0) { | |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
5226 | return NULL; | |
5227 | } | |
5228 | } | |
5229 | { | |
5230 | wxPy_BEGIN_ALLOW_THREADS; | |
5231 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
5232 | ||
5233 | wxPy_END_ALLOW_THREADS; | |
5234 | }{ | |
5235 | wxPyInputStream * _ptr = NULL; | |
5236 | ||
5237 | if (_result) { | |
5238 | _ptr = new wxPyInputStream(_result); | |
5239 | } | |
5240 | if (_ptr) { | |
5241 | char swigptr[64]; | |
5242 | SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p"); | |
5243 | ||
5244 | PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr"); | |
5245 | if (! classobj) { | |
5246 | Py_INCREF(Py_None); | |
5247 | _resultobj = Py_None; | |
5248 | } else { | |
5249 | PyObject* arg = Py_BuildValue("(s)", swigptr); | |
5250 | _resultobj = PyInstance_New(classobj, arg, NULL); | |
5251 | Py_DECREF(arg); | |
5252 | ||
5253 | // set ThisOwn | |
1404c10b RD |
5254 | PyObject* one = PyInt_FromLong(1); |
5255 | PyObject_SetAttrString(_resultobj, "thisown", one); | |
5256 | Py_DECREF(one); | |
c368d904 RD |
5257 | } |
5258 | } else { | |
5259 | Py_INCREF(Py_None); | |
5260 | _resultobj = Py_None; | |
5261 | } | |
5262 | } | |
5263 | return _resultobj; | |
5264 | } | |
5265 | ||
5266 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
5267 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject * _resultobj; | |
5269 | wxOutputStream * _result; | |
5270 | wxPyProcess * _arg0; | |
5271 | PyObject * _argo0 = 0; | |
5272 | char *_kwnames[] = { "self", NULL }; | |
5273 | char _ptemp[128]; | |
5274 | ||
5275 | self = self; | |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
5277 | return NULL; | |
5278 | if (_argo0) { | |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
5282 | return NULL; | |
5283 | } | |
5284 | } | |
5285 | { | |
5286 | wxPy_BEGIN_ALLOW_THREADS; | |
5287 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
5288 | ||
5289 | wxPy_END_ALLOW_THREADS; | |
5290 | } if (_result) { | |
5291 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
5292 | _resultobj = Py_BuildValue("s",_ptemp); | |
5293 | } else { | |
5294 | Py_INCREF(Py_None); | |
5295 | _resultobj = Py_None; | |
5296 | } | |
5297 | return _resultobj; | |
5298 | } | |
5299 | ||
5300 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
5301 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject * _resultobj; | |
5303 | wxPyProcess * _arg0; | |
5304 | PyObject * _argo0 = 0; | |
5305 | char *_kwnames[] = { "self", NULL }; | |
5306 | ||
5307 | self = self; | |
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
5309 | return NULL; | |
5310 | if (_argo0) { | |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
5317 | { | |
5318 | wxPy_BEGIN_ALLOW_THREADS; | |
5319 | wxProcess_CloseOutput(_arg0); | |
5320 | ||
5321 | wxPy_END_ALLOW_THREADS; | |
5322 | } Py_INCREF(Py_None); | |
5323 | _resultobj = Py_None; | |
5324 | return _resultobj; | |
5325 | } | |
5326 | ||
185d7c3e RD |
5327 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
5328 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5329 | PyObject * _resultobj; | |
5330 | wxJoystick * _result; | |
5331 | int _arg0 = (int ) wxJOYSTICK1; | |
5332 | char *_kwnames[] = { "joystick", NULL }; | |
5333 | char _ptemp[128]; | |
5334 | ||
5335 | self = self; | |
5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
5337 | return NULL; | |
5338 | { | |
5339 | wxPy_BEGIN_ALLOW_THREADS; | |
5340 | _result = (wxJoystick *)new_wxJoystick(_arg0); | |
5341 | ||
5342 | wxPy_END_ALLOW_THREADS; | |
5343 | } if (_result) { | |
5344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
5345 | _resultobj = Py_BuildValue("s",_ptemp); | |
5346 | } else { | |
5347 | Py_INCREF(Py_None); | |
5348 | _resultobj = Py_None; | |
5349 | } | |
5350 | return _resultobj; | |
5351 | } | |
5352 | ||
5353 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
5354 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5355 | PyObject * _resultobj; | |
5356 | wxPoint * _result; | |
5357 | wxJoystick * _arg0; | |
5358 | PyObject * _argo0 = 0; | |
5359 | char *_kwnames[] = { "self", NULL }; | |
5360 | char _ptemp[128]; | |
5361 | ||
5362 | self = self; | |
5363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
5364 | return NULL; | |
5365 | if (_argo0) { | |
5366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
5369 | return NULL; | |
5370 | } | |
5371 | } | |
5372 | { | |
5373 | wxPy_BEGIN_ALLOW_THREADS; | |
5374 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); | |
5375 | ||
5376 | wxPy_END_ALLOW_THREADS; | |
5377 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
5378 | _resultobj = Py_BuildValue("s",_ptemp); | |
5379 | return _resultobj; | |
5380 | } | |
5381 | ||
5382 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
5383 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5384 | PyObject * _resultobj; | |
5385 | int _result; | |
5386 | wxJoystick * _arg0; | |
5387 | PyObject * _argo0 = 0; | |
5388 | char *_kwnames[] = { "self", NULL }; | |
5389 | ||
5390 | self = self; | |
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
5392 | return NULL; | |
5393 | if (_argo0) { | |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
5400 | { | |
5401 | wxPy_BEGIN_ALLOW_THREADS; | |
5402 | _result = (int )wxJoystick_GetZPosition(_arg0); | |
5403 | ||
5404 | wxPy_END_ALLOW_THREADS; | |
5405 | } _resultobj = Py_BuildValue("i",_result); | |
5406 | return _resultobj; | |
5407 | } | |
5408 | ||
5409 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
5410 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5411 | PyObject * _resultobj; | |
5412 | int _result; | |
5413 | wxJoystick * _arg0; | |
5414 | PyObject * _argo0 = 0; | |
5415 | char *_kwnames[] = { "self", NULL }; | |
5416 | ||
5417 | self = self; | |
5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
5419 | return NULL; | |
5420 | if (_argo0) { | |
5421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
5424 | return NULL; | |
5425 | } | |
5426 | } | |
5427 | { | |
5428 | wxPy_BEGIN_ALLOW_THREADS; | |
5429 | _result = (int )wxJoystick_GetButtonState(_arg0); | |
5430 | ||
5431 | wxPy_END_ALLOW_THREADS; | |
5432 | } _resultobj = Py_BuildValue("i",_result); | |
5433 | return _resultobj; | |
5434 | } | |
5435 | ||
5436 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
5437 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject * _resultobj; | |
5439 | int _result; | |
5440 | wxJoystick * _arg0; | |
5441 | PyObject * _argo0 = 0; | |
5442 | char *_kwnames[] = { "self", NULL }; | |
5443 | ||
5444 | self = self; | |
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
5446 | return NULL; | |
5447 | if (_argo0) { | |
5448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
5451 | return NULL; | |
5452 | } | |
5453 | } | |
5454 | { | |
5455 | wxPy_BEGIN_ALLOW_THREADS; | |
5456 | _result = (int )wxJoystick_GetPOVPosition(_arg0); | |
5457 | ||
5458 | wxPy_END_ALLOW_THREADS; | |
5459 | } _resultobj = Py_BuildValue("i",_result); | |
5460 | return _resultobj; | |
5461 | } | |
5462 | ||
5463 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
5464 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5465 | PyObject * _resultobj; | |
5466 | int _result; | |
5467 | wxJoystick * _arg0; | |
5468 | PyObject * _argo0 = 0; | |
5469 | char *_kwnames[] = { "self", NULL }; | |
5470 | ||
5471 | self = self; | |
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
5473 | return NULL; | |
5474 | if (_argo0) { | |
5475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
5478 | return NULL; | |
5479 | } | |
5480 | } | |
5481 | { | |
5482 | wxPy_BEGIN_ALLOW_THREADS; | |
5483 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); | |
5484 | ||
5485 | wxPy_END_ALLOW_THREADS; | |
5486 | } _resultobj = Py_BuildValue("i",_result); | |
5487 | return _resultobj; | |
5488 | } | |
5489 | ||
5490 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
5491 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5492 | PyObject * _resultobj; | |
5493 | int _result; | |
5494 | wxJoystick * _arg0; | |
5495 | PyObject * _argo0 = 0; | |
5496 | char *_kwnames[] = { "self", NULL }; | |
5497 | ||
5498 | self = self; | |
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
5500 | return NULL; | |
5501 | if (_argo0) { | |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
5505 | return NULL; | |
5506 | } | |
5507 | } | |
5508 | { | |
5509 | wxPy_BEGIN_ALLOW_THREADS; | |
5510 | _result = (int )wxJoystick_GetRudderPosition(_arg0); | |
5511 | ||
5512 | wxPy_END_ALLOW_THREADS; | |
5513 | } _resultobj = Py_BuildValue("i",_result); | |
5514 | return _resultobj; | |
5515 | } | |
5516 | ||
5517 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
5518 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject * _resultobj; | |
5520 | int _result; | |
5521 | wxJoystick * _arg0; | |
5522 | PyObject * _argo0 = 0; | |
5523 | char *_kwnames[] = { "self", NULL }; | |
5524 | ||
5525 | self = self; | |
5526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
5527 | return NULL; | |
5528 | if (_argo0) { | |
5529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
5532 | return NULL; | |
5533 | } | |
5534 | } | |
5535 | { | |
5536 | wxPy_BEGIN_ALLOW_THREADS; | |
5537 | _result = (int )wxJoystick_GetUPosition(_arg0); | |
5538 | ||
5539 | wxPy_END_ALLOW_THREADS; | |
5540 | } _resultobj = Py_BuildValue("i",_result); | |
5541 | return _resultobj; | |
5542 | } | |
5543 | ||
5544 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
5545 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject * _resultobj; | |
5547 | int _result; | |
5548 | wxJoystick * _arg0; | |
5549 | PyObject * _argo0 = 0; | |
5550 | char *_kwnames[] = { "self", NULL }; | |
5551 | ||
5552 | self = self; | |
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
5554 | return NULL; | |
5555 | if (_argo0) { | |
5556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
5559 | return NULL; | |
5560 | } | |
5561 | } | |
5562 | { | |
5563 | wxPy_BEGIN_ALLOW_THREADS; | |
5564 | _result = (int )wxJoystick_GetVPosition(_arg0); | |
5565 | ||
5566 | wxPy_END_ALLOW_THREADS; | |
5567 | } _resultobj = Py_BuildValue("i",_result); | |
5568 | return _resultobj; | |
5569 | } | |
5570 | ||
5571 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
5572 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject * _resultobj; | |
5574 | int _result; | |
5575 | wxJoystick * _arg0; | |
5576 | PyObject * _argo0 = 0; | |
5577 | char *_kwnames[] = { "self", NULL }; | |
5578 | ||
5579 | self = self; | |
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
5581 | return NULL; | |
5582 | if (_argo0) { | |
5583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
5586 | return NULL; | |
5587 | } | |
5588 | } | |
5589 | { | |
5590 | wxPy_BEGIN_ALLOW_THREADS; | |
5591 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); | |
5592 | ||
5593 | wxPy_END_ALLOW_THREADS; | |
5594 | } _resultobj = Py_BuildValue("i",_result); | |
5595 | return _resultobj; | |
5596 | } | |
5597 | ||
5598 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
5599 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject * _resultobj; | |
5601 | wxJoystick * _arg0; | |
5602 | int _arg1; | |
5603 | PyObject * _argo0 = 0; | |
5604 | char *_kwnames[] = { "self","threshold", NULL }; | |
5605 | ||
5606 | self = self; | |
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
5608 | return NULL; | |
5609 | if (_argo0) { | |
5610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
5613 | return NULL; | |
5614 | } | |
5615 | } | |
5616 | { | |
5617 | wxPy_BEGIN_ALLOW_THREADS; | |
5618 | wxJoystick_SetMovementThreshold(_arg0,_arg1); | |
5619 | ||
5620 | wxPy_END_ALLOW_THREADS; | |
5621 | } Py_INCREF(Py_None); | |
5622 | _resultobj = Py_None; | |
5623 | return _resultobj; | |
5624 | } | |
5625 | ||
5626 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
5627 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject * _resultobj; | |
5629 | bool _result; | |
5630 | wxJoystick * _arg0; | |
5631 | PyObject * _argo0 = 0; | |
5632 | char *_kwnames[] = { "self", NULL }; | |
5633 | ||
5634 | self = self; | |
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
5636 | return NULL; | |
5637 | if (_argo0) { | |
5638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
5641 | return NULL; | |
5642 | } | |
5643 | } | |
5644 | { | |
5645 | wxPy_BEGIN_ALLOW_THREADS; | |
5646 | _result = (bool )wxJoystick_IsOk(_arg0); | |
5647 | ||
5648 | wxPy_END_ALLOW_THREADS; | |
5649 | } _resultobj = Py_BuildValue("i",_result); | |
5650 | return _resultobj; | |
5651 | } | |
5652 | ||
5653 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
5654 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject * _resultobj; | |
5656 | int _result; | |
5657 | wxJoystick * _arg0; | |
5658 | PyObject * _argo0 = 0; | |
5659 | char *_kwnames[] = { "self", NULL }; | |
5660 | ||
5661 | self = self; | |
5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
5663 | return NULL; | |
5664 | if (_argo0) { | |
5665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
5668 | return NULL; | |
5669 | } | |
5670 | } | |
5671 | { | |
5672 | wxPy_BEGIN_ALLOW_THREADS; | |
5673 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); | |
5674 | ||
5675 | wxPy_END_ALLOW_THREADS; | |
5676 | } _resultobj = Py_BuildValue("i",_result); | |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
5681 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject * _resultobj; | |
5683 | int _result; | |
5684 | wxJoystick * _arg0; | |
5685 | PyObject * _argo0 = 0; | |
5686 | char *_kwnames[] = { "self", NULL }; | |
5687 | ||
5688 | self = self; | |
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
5690 | return NULL; | |
5691 | if (_argo0) { | |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
5695 | return NULL; | |
5696 | } | |
5697 | } | |
5698 | { | |
5699 | wxPy_BEGIN_ALLOW_THREADS; | |
5700 | _result = (int )wxJoystick_GetManufacturerId(_arg0); | |
5701 | ||
5702 | wxPy_END_ALLOW_THREADS; | |
5703 | } _resultobj = Py_BuildValue("i",_result); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
5708 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | int _result; | |
5711 | wxJoystick * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
5726 | wxPy_BEGIN_ALLOW_THREADS; | |
5727 | _result = (int )wxJoystick_GetProductId(_arg0); | |
5728 | ||
5729 | wxPy_END_ALLOW_THREADS; | |
5730 | } _resultobj = Py_BuildValue("i",_result); | |
5731 | return _resultobj; | |
5732 | } | |
5733 | ||
5734 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
5735 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject * _resultobj; | |
5737 | wxString * _result; | |
5738 | wxJoystick * _arg0; | |
5739 | PyObject * _argo0 = 0; | |
5740 | char *_kwnames[] = { "self", NULL }; | |
5741 | ||
5742 | self = self; | |
5743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
5744 | return NULL; | |
5745 | if (_argo0) { | |
5746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
5749 | return NULL; | |
5750 | } | |
5751 | } | |
5752 | { | |
5753 | wxPy_BEGIN_ALLOW_THREADS; | |
5754 | _result = new wxString (wxJoystick_GetProductName(_arg0)); | |
5755 | ||
5756 | wxPy_END_ALLOW_THREADS; | |
5757 | }{ | |
5758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5759 | } | |
5760 | { | |
5761 | delete _result; | |
5762 | } | |
5763 | return _resultobj; | |
5764 | } | |
5765 | ||
5766 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
5767 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5768 | PyObject * _resultobj; | |
5769 | int _result; | |
5770 | wxJoystick * _arg0; | |
5771 | PyObject * _argo0 = 0; | |
5772 | char *_kwnames[] = { "self", NULL }; | |
5773 | ||
5774 | self = self; | |
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
5776 | return NULL; | |
5777 | if (_argo0) { | |
5778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
5781 | return NULL; | |
5782 | } | |
5783 | } | |
5784 | { | |
5785 | wxPy_BEGIN_ALLOW_THREADS; | |
5786 | _result = (int )wxJoystick_GetXMin(_arg0); | |
5787 | ||
5788 | wxPy_END_ALLOW_THREADS; | |
5789 | } _resultobj = Py_BuildValue("i",_result); | |
5790 | return _resultobj; | |
5791 | } | |
5792 | ||
5793 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
5794 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject * _resultobj; | |
5796 | int _result; | |
5797 | wxJoystick * _arg0; | |
5798 | PyObject * _argo0 = 0; | |
5799 | char *_kwnames[] = { "self", NULL }; | |
5800 | ||
5801 | self = self; | |
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
5803 | return NULL; | |
5804 | if (_argo0) { | |
5805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | { | |
5812 | wxPy_BEGIN_ALLOW_THREADS; | |
5813 | _result = (int )wxJoystick_GetYMin(_arg0); | |
5814 | ||
5815 | wxPy_END_ALLOW_THREADS; | |
5816 | } _resultobj = Py_BuildValue("i",_result); | |
5817 | return _resultobj; | |
5818 | } | |
5819 | ||
5820 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
5821 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5822 | PyObject * _resultobj; | |
5823 | int _result; | |
5824 | wxJoystick * _arg0; | |
5825 | PyObject * _argo0 = 0; | |
5826 | char *_kwnames[] = { "self", NULL }; | |
5827 | ||
5828 | self = self; | |
5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
5830 | return NULL; | |
5831 | if (_argo0) { | |
5832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
5838 | { | |
5839 | wxPy_BEGIN_ALLOW_THREADS; | |
5840 | _result = (int )wxJoystick_GetZMin(_arg0); | |
5841 | ||
5842 | wxPy_END_ALLOW_THREADS; | |
5843 | } _resultobj = Py_BuildValue("i",_result); | |
5844 | return _resultobj; | |
5845 | } | |
5846 | ||
5847 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
5848 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5849 | PyObject * _resultobj; | |
5850 | int _result; | |
5851 | wxJoystick * _arg0; | |
5852 | PyObject * _argo0 = 0; | |
5853 | char *_kwnames[] = { "self", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
5857 | return NULL; | |
5858 | if (_argo0) { | |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
5862 | return NULL; | |
5863 | } | |
5864 | } | |
5865 | { | |
5866 | wxPy_BEGIN_ALLOW_THREADS; | |
5867 | _result = (int )wxJoystick_GetXMax(_arg0); | |
5868 | ||
5869 | wxPy_END_ALLOW_THREADS; | |
5870 | } _resultobj = Py_BuildValue("i",_result); | |
5871 | return _resultobj; | |
5872 | } | |
5873 | ||
5874 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
5875 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject * _resultobj; | |
5877 | int _result; | |
5878 | wxJoystick * _arg0; | |
5879 | PyObject * _argo0 = 0; | |
5880 | char *_kwnames[] = { "self", NULL }; | |
5881 | ||
5882 | self = self; | |
5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
5884 | return NULL; | |
5885 | if (_argo0) { | |
5886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
5889 | return NULL; | |
5890 | } | |
5891 | } | |
5892 | { | |
5893 | wxPy_BEGIN_ALLOW_THREADS; | |
5894 | _result = (int )wxJoystick_GetYMax(_arg0); | |
5895 | ||
5896 | wxPy_END_ALLOW_THREADS; | |
5897 | } _resultobj = Py_BuildValue("i",_result); | |
5898 | return _resultobj; | |
5899 | } | |
5900 | ||
5901 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
5902 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5903 | PyObject * _resultobj; | |
5904 | int _result; | |
5905 | wxJoystick * _arg0; | |
5906 | PyObject * _argo0 = 0; | |
5907 | char *_kwnames[] = { "self", NULL }; | |
5908 | ||
5909 | self = self; | |
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
5911 | return NULL; | |
5912 | if (_argo0) { | |
5913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
5916 | return NULL; | |
5917 | } | |
5918 | } | |
5919 | { | |
5920 | wxPy_BEGIN_ALLOW_THREADS; | |
5921 | _result = (int )wxJoystick_GetZMax(_arg0); | |
5922 | ||
5923 | wxPy_END_ALLOW_THREADS; | |
5924 | } _resultobj = Py_BuildValue("i",_result); | |
5925 | return _resultobj; | |
5926 | } | |
5927 | ||
5928 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
5929 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject * _resultobj; | |
5931 | int _result; | |
5932 | wxJoystick * _arg0; | |
5933 | PyObject * _argo0 = 0; | |
5934 | char *_kwnames[] = { "self", NULL }; | |
5935 | ||
5936 | self = self; | |
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
5938 | return NULL; | |
5939 | if (_argo0) { | |
5940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
5946 | { | |
5947 | wxPy_BEGIN_ALLOW_THREADS; | |
5948 | _result = (int )wxJoystick_GetNumberButtons(_arg0); | |
5949 | ||
5950 | wxPy_END_ALLOW_THREADS; | |
5951 | } _resultobj = Py_BuildValue("i",_result); | |
5952 | return _resultobj; | |
5953 | } | |
5954 | ||
5955 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
5956 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject * _resultobj; | |
5958 | int _result; | |
5959 | wxJoystick * _arg0; | |
5960 | PyObject * _argo0 = 0; | |
5961 | char *_kwnames[] = { "self", NULL }; | |
5962 | ||
5963 | self = self; | |
5964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
5965 | return NULL; | |
5966 | if (_argo0) { | |
5967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
5970 | return NULL; | |
5971 | } | |
5972 | } | |
5973 | { | |
5974 | wxPy_BEGIN_ALLOW_THREADS; | |
5975 | _result = (int )wxJoystick_GetNumberAxes(_arg0); | |
5976 | ||
5977 | wxPy_END_ALLOW_THREADS; | |
5978 | } _resultobj = Py_BuildValue("i",_result); | |
5979 | return _resultobj; | |
5980 | } | |
5981 | ||
5982 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
5983 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject * _resultobj; | |
5985 | int _result; | |
5986 | wxJoystick * _arg0; | |
5987 | PyObject * _argo0 = 0; | |
5988 | char *_kwnames[] = { "self", NULL }; | |
5989 | ||
5990 | self = self; | |
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
5992 | return NULL; | |
5993 | if (_argo0) { | |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | { | |
6001 | wxPy_BEGIN_ALLOW_THREADS; | |
6002 | _result = (int )wxJoystick_GetMaxButtons(_arg0); | |
6003 | ||
6004 | wxPy_END_ALLOW_THREADS; | |
6005 | } _resultobj = Py_BuildValue("i",_result); | |
6006 | return _resultobj; | |
6007 | } | |
6008 | ||
6009 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
6010 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject * _resultobj; | |
6012 | int _result; | |
6013 | wxJoystick * _arg0; | |
6014 | PyObject * _argo0 = 0; | |
6015 | char *_kwnames[] = { "self", NULL }; | |
6016 | ||
6017 | self = self; | |
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
6019 | return NULL; | |
6020 | if (_argo0) { | |
6021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
6024 | return NULL; | |
6025 | } | |
6026 | } | |
6027 | { | |
6028 | wxPy_BEGIN_ALLOW_THREADS; | |
6029 | _result = (int )wxJoystick_GetMaxAxes(_arg0); | |
6030 | ||
6031 | wxPy_END_ALLOW_THREADS; | |
6032 | } _resultobj = Py_BuildValue("i",_result); | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6036 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
6037 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
6039 | int _result; | |
6040 | wxJoystick * _arg0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
6055 | wxPy_BEGIN_ALLOW_THREADS; | |
6056 | _result = (int )wxJoystick_GetPollingMin(_arg0); | |
6057 | ||
6058 | wxPy_END_ALLOW_THREADS; | |
6059 | } _resultobj = Py_BuildValue("i",_result); | |
6060 | return _resultobj; | |
6061 | } | |
6062 | ||
6063 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
6064 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6065 | PyObject * _resultobj; | |
6066 | int _result; | |
6067 | wxJoystick * _arg0; | |
6068 | PyObject * _argo0 = 0; | |
6069 | char *_kwnames[] = { "self", NULL }; | |
6070 | ||
6071 | self = self; | |
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
6073 | return NULL; | |
6074 | if (_argo0) { | |
6075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
6078 | return NULL; | |
6079 | } | |
6080 | } | |
6081 | { | |
6082 | wxPy_BEGIN_ALLOW_THREADS; | |
6083 | _result = (int )wxJoystick_GetPollingMax(_arg0); | |
6084 | ||
6085 | wxPy_END_ALLOW_THREADS; | |
6086 | } _resultobj = Py_BuildValue("i",_result); | |
6087 | return _resultobj; | |
6088 | } | |
6089 | ||
6090 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
6091 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject * _resultobj; | |
6093 | int _result; | |
6094 | wxJoystick * _arg0; | |
6095 | PyObject * _argo0 = 0; | |
6096 | char *_kwnames[] = { "self", NULL }; | |
6097 | ||
6098 | self = self; | |
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
6100 | return NULL; | |
6101 | if (_argo0) { | |
6102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
6105 | return NULL; | |
6106 | } | |
6107 | } | |
6108 | { | |
6109 | wxPy_BEGIN_ALLOW_THREADS; | |
6110 | _result = (int )wxJoystick_GetRudderMin(_arg0); | |
6111 | ||
6112 | wxPy_END_ALLOW_THREADS; | |
6113 | } _resultobj = Py_BuildValue("i",_result); | |
6114 | return _resultobj; | |
6115 | } | |
6116 | ||
6117 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
6118 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6119 | PyObject * _resultobj; | |
6120 | int _result; | |
6121 | wxJoystick * _arg0; | |
6122 | PyObject * _argo0 = 0; | |
6123 | char *_kwnames[] = { "self", NULL }; | |
6124 | ||
6125 | self = self; | |
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
6127 | return NULL; | |
6128 | if (_argo0) { | |
6129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
6132 | return NULL; | |
6133 | } | |
6134 | } | |
6135 | { | |
6136 | wxPy_BEGIN_ALLOW_THREADS; | |
6137 | _result = (int )wxJoystick_GetRudderMax(_arg0); | |
6138 | ||
6139 | wxPy_END_ALLOW_THREADS; | |
6140 | } _resultobj = Py_BuildValue("i",_result); | |
6141 | return _resultobj; | |
6142 | } | |
6143 | ||
6144 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
6145 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject * _resultobj; | |
6147 | int _result; | |
6148 | wxJoystick * _arg0; | |
6149 | PyObject * _argo0 = 0; | |
6150 | char *_kwnames[] = { "self", NULL }; | |
6151 | ||
6152 | self = self; | |
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
6154 | return NULL; | |
6155 | if (_argo0) { | |
6156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
6162 | { | |
6163 | wxPy_BEGIN_ALLOW_THREADS; | |
6164 | _result = (int )wxJoystick_GetUMin(_arg0); | |
6165 | ||
6166 | wxPy_END_ALLOW_THREADS; | |
6167 | } _resultobj = Py_BuildValue("i",_result); | |
6168 | return _resultobj; | |
6169 | } | |
6170 | ||
6171 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
6172 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject * _resultobj; | |
6174 | int _result; | |
6175 | wxJoystick * _arg0; | |
6176 | PyObject * _argo0 = 0; | |
6177 | char *_kwnames[] = { "self", NULL }; | |
6178 | ||
6179 | self = self; | |
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
6181 | return NULL; | |
6182 | if (_argo0) { | |
6183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
6186 | return NULL; | |
6187 | } | |
6188 | } | |
6189 | { | |
6190 | wxPy_BEGIN_ALLOW_THREADS; | |
6191 | _result = (int )wxJoystick_GetUMax(_arg0); | |
6192 | ||
6193 | wxPy_END_ALLOW_THREADS; | |
6194 | } _resultobj = Py_BuildValue("i",_result); | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
6199 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | int _result; | |
6202 | wxJoystick * _arg0; | |
6203 | PyObject * _argo0 = 0; | |
6204 | char *_kwnames[] = { "self", NULL }; | |
6205 | ||
6206 | self = self; | |
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
6208 | return NULL; | |
6209 | if (_argo0) { | |
6210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
6213 | return NULL; | |
6214 | } | |
6215 | } | |
6216 | { | |
6217 | wxPy_BEGIN_ALLOW_THREADS; | |
6218 | _result = (int )wxJoystick_GetVMin(_arg0); | |
6219 | ||
6220 | wxPy_END_ALLOW_THREADS; | |
6221 | } _resultobj = Py_BuildValue("i",_result); | |
6222 | return _resultobj; | |
6223 | } | |
6224 | ||
6225 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
6226 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject * _resultobj; | |
6228 | int _result; | |
6229 | wxJoystick * _arg0; | |
6230 | PyObject * _argo0 = 0; | |
6231 | char *_kwnames[] = { "self", NULL }; | |
6232 | ||
6233 | self = self; | |
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
6235 | return NULL; | |
6236 | if (_argo0) { | |
6237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | { | |
6244 | wxPy_BEGIN_ALLOW_THREADS; | |
6245 | _result = (int )wxJoystick_GetVMax(_arg0); | |
6246 | ||
6247 | wxPy_END_ALLOW_THREADS; | |
6248 | } _resultobj = Py_BuildValue("i",_result); | |
6249 | return _resultobj; | |
6250 | } | |
6251 | ||
6252 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
6253 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6254 | PyObject * _resultobj; | |
6255 | bool _result; | |
6256 | wxJoystick * _arg0; | |
6257 | PyObject * _argo0 = 0; | |
6258 | char *_kwnames[] = { "self", NULL }; | |
6259 | ||
6260 | self = self; | |
6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
6262 | return NULL; | |
6263 | if (_argo0) { | |
6264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
6267 | return NULL; | |
6268 | } | |
6269 | } | |
6270 | { | |
6271 | wxPy_BEGIN_ALLOW_THREADS; | |
6272 | _result = (bool )wxJoystick_HasRudder(_arg0); | |
6273 | ||
6274 | wxPy_END_ALLOW_THREADS; | |
6275 | } _resultobj = Py_BuildValue("i",_result); | |
6276 | return _resultobj; | |
6277 | } | |
6278 | ||
6279 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
6280 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6281 | PyObject * _resultobj; | |
6282 | bool _result; | |
6283 | wxJoystick * _arg0; | |
6284 | PyObject * _argo0 = 0; | |
6285 | char *_kwnames[] = { "self", NULL }; | |
6286 | ||
6287 | self = self; | |
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
6289 | return NULL; | |
6290 | if (_argo0) { | |
6291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
6294 | return NULL; | |
6295 | } | |
6296 | } | |
6297 | { | |
6298 | wxPy_BEGIN_ALLOW_THREADS; | |
6299 | _result = (bool )wxJoystick_HasZ(_arg0); | |
6300 | ||
6301 | wxPy_END_ALLOW_THREADS; | |
6302 | } _resultobj = Py_BuildValue("i",_result); | |
6303 | return _resultobj; | |
6304 | } | |
6305 | ||
6306 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
6307 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6308 | PyObject * _resultobj; | |
6309 | bool _result; | |
6310 | wxJoystick * _arg0; | |
6311 | PyObject * _argo0 = 0; | |
6312 | char *_kwnames[] = { "self", NULL }; | |
6313 | ||
6314 | self = self; | |
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
6316 | return NULL; | |
6317 | if (_argo0) { | |
6318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
6321 | return NULL; | |
6322 | } | |
6323 | } | |
6324 | { | |
6325 | wxPy_BEGIN_ALLOW_THREADS; | |
6326 | _result = (bool )wxJoystick_HasU(_arg0); | |
6327 | ||
6328 | wxPy_END_ALLOW_THREADS; | |
6329 | } _resultobj = Py_BuildValue("i",_result); | |
6330 | return _resultobj; | |
6331 | } | |
6332 | ||
6333 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
6334 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6335 | PyObject * _resultobj; | |
6336 | bool _result; | |
6337 | wxJoystick * _arg0; | |
6338 | PyObject * _argo0 = 0; | |
6339 | char *_kwnames[] = { "self", NULL }; | |
6340 | ||
6341 | self = self; | |
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
6343 | return NULL; | |
6344 | if (_argo0) { | |
6345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
6348 | return NULL; | |
6349 | } | |
6350 | } | |
6351 | { | |
6352 | wxPy_BEGIN_ALLOW_THREADS; | |
6353 | _result = (bool )wxJoystick_HasV(_arg0); | |
6354 | ||
6355 | wxPy_END_ALLOW_THREADS; | |
6356 | } _resultobj = Py_BuildValue("i",_result); | |
6357 | return _resultobj; | |
6358 | } | |
6359 | ||
6360 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
6361 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6362 | PyObject * _resultobj; | |
6363 | bool _result; | |
6364 | wxJoystick * _arg0; | |
6365 | PyObject * _argo0 = 0; | |
6366 | char *_kwnames[] = { "self", NULL }; | |
6367 | ||
6368 | self = self; | |
6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
6370 | return NULL; | |
6371 | if (_argo0) { | |
6372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
6375 | return NULL; | |
6376 | } | |
6377 | } | |
6378 | { | |
6379 | wxPy_BEGIN_ALLOW_THREADS; | |
6380 | _result = (bool )wxJoystick_HasPOV(_arg0); | |
6381 | ||
6382 | wxPy_END_ALLOW_THREADS; | |
6383 | } _resultobj = Py_BuildValue("i",_result); | |
6384 | return _resultobj; | |
6385 | } | |
6386 | ||
6387 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
6388 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6389 | PyObject * _resultobj; | |
6390 | bool _result; | |
6391 | wxJoystick * _arg0; | |
6392 | PyObject * _argo0 = 0; | |
6393 | char *_kwnames[] = { "self", NULL }; | |
6394 | ||
6395 | self = self; | |
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
6397 | return NULL; | |
6398 | if (_argo0) { | |
6399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
6402 | return NULL; | |
6403 | } | |
6404 | } | |
6405 | { | |
6406 | wxPy_BEGIN_ALLOW_THREADS; | |
6407 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); | |
6408 | ||
6409 | wxPy_END_ALLOW_THREADS; | |
6410 | } _resultobj = Py_BuildValue("i",_result); | |
6411 | return _resultobj; | |
6412 | } | |
6413 | ||
6414 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
6415 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6416 | PyObject * _resultobj; | |
6417 | bool _result; | |
6418 | wxJoystick * _arg0; | |
6419 | PyObject * _argo0 = 0; | |
6420 | char *_kwnames[] = { "self", NULL }; | |
6421 | ||
6422 | self = self; | |
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
6424 | return NULL; | |
6425 | if (_argo0) { | |
6426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
6429 | return NULL; | |
6430 | } | |
6431 | } | |
6432 | { | |
6433 | wxPy_BEGIN_ALLOW_THREADS; | |
6434 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); | |
6435 | ||
6436 | wxPy_END_ALLOW_THREADS; | |
6437 | } _resultobj = Py_BuildValue("i",_result); | |
6438 | return _resultobj; | |
6439 | } | |
6440 | ||
6441 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
6442 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6443 | PyObject * _resultobj; | |
6444 | bool _result; | |
6445 | wxJoystick * _arg0; | |
6446 | wxWindow * _arg1; | |
6447 | int _arg2 = (int ) 0; | |
6448 | PyObject * _argo0 = 0; | |
6449 | PyObject * _argo1 = 0; | |
6450 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
6451 | ||
6452 | self = self; | |
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
6454 | return NULL; | |
6455 | if (_argo0) { | |
6456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
6459 | return NULL; | |
6460 | } | |
6461 | } | |
6462 | if (_argo1) { | |
6463 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6464 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
6466 | return NULL; | |
6467 | } | |
6468 | } | |
6469 | { | |
6470 | wxPy_BEGIN_ALLOW_THREADS; | |
6471 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); | |
6472 | ||
6473 | wxPy_END_ALLOW_THREADS; | |
6474 | } _resultobj = Py_BuildValue("i",_result); | |
6475 | return _resultobj; | |
6476 | } | |
6477 | ||
6478 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
6479 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6480 | PyObject * _resultobj; | |
6481 | bool _result; | |
6482 | wxJoystick * _arg0; | |
6483 | PyObject * _argo0 = 0; | |
6484 | char *_kwnames[] = { "self", NULL }; | |
6485 | ||
6486 | self = self; | |
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
6488 | return NULL; | |
6489 | if (_argo0) { | |
6490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
6493 | return NULL; | |
6494 | } | |
6495 | } | |
6496 | { | |
6497 | wxPy_BEGIN_ALLOW_THREADS; | |
6498 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); | |
6499 | ||
6500 | wxPy_END_ALLOW_THREADS; | |
6501 | } _resultobj = Py_BuildValue("i",_result); | |
6502 | return _resultobj; | |
6503 | } | |
6504 | ||
bb0054cd | 6505 | static PyMethodDef misc2cMethods[] = { |
185d7c3e RD |
6506 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
6507 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
6508 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
6509 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
6510 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
6511 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
6512 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
6513 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
6514 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
6515 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
6516 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
6517 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
6518 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
6519 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
6520 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
6521 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
6522 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
6523 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
6524 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
6525 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
6526 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
6527 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
6528 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
6529 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
6530 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
6531 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
6532 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
6533 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
6534 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
6535 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
6536 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
6537 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
6538 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
6539 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
6540 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
6541 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
6542 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
6543 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
6544 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
6545 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
6546 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
6547 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
6548 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
6549 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
6550 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
6551 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
6552 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
6553 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
6554 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
6555 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
6556 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
6557 | { "wxProcess__setSelf", (PyCFunction) _wrap_wxProcess__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
6558 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
6559 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
6560 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
6561 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
6562 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
6563 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
6564 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
6565 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
6566 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
6567 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
6568 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
6569 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
6570 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
6571 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
6572 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
6573 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
6574 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
6575 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
6576 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
6577 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
6578 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
6579 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
6580 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
6581 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
6582 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
6583 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
6584 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
6585 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
6586 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
6587 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
6588 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
6589 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
6590 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
6591 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
6592 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
6593 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
6594 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
6595 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
6596 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
6597 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
6598 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
6599 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
6600 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
6601 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
6602 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
6603 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
6604 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
6605 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
6606 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
6607 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
6608 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
6609 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
6610 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
6611 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
6612 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
6613 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
6614 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
6615 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6616 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
6617 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
6618 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
6619 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
6620 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
6621 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
6622 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
65dd82cb RD |
6623 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, |
6624 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
6625 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, |
6626 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
6627 | { "wxFontEnumerator__setSelf", (PyCFunction) _wrap_wxFontEnumerator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
6628 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
6629 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
6630 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
6631 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
6632 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
6633 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
6634 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
6635 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
6636 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
6637 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
6638 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
6639 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
6640 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
6641 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
6642 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
6643 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
6644 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
6645 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
6646 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
6647 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
6648 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 6649 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
6650 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
6651 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
6652 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
6653 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
6654 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
6655 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
6656 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
6657 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
6658 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
6659 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
6660 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
6661 | { "wxDragListItem", (PyCFunction) _wrap_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
6662 | { "wxDragTreeItem", (PyCFunction) _wrap_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
6663 | { "wxDragString", (PyCFunction) _wrap_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
6664 | { "wxDragIcon", (PyCFunction) _wrap_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
6665 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6666 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 6667 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 6668 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 6669 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
6670 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
6671 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
6672 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
6673 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
6674 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
6675 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
6676 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
6677 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
6678 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
6679 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
6680 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
6681 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
6682 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
6683 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
6684 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
6685 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
6686 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
6687 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
6688 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
6689 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 6690 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
1e7ecb7b RD |
6691 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
6692 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
6693 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
6694 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
6695 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
6696 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
6697 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
6698 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
6699 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
6700 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
6701 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 6702 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 RD |
6703 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
6704 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
bb0054cd RD |
6705 | { NULL, NULL } |
6706 | }; | |
1d99702e RD |
6707 | #ifdef __cplusplus |
6708 | } | |
6709 | #endif | |
6710 | /* | |
6711 | * This table is used by the pointer type-checker | |
6712 | */ | |
6713 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
6714 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
c368d904 RD |
6715 | { "_wxEvent","_class_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
6716 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
b1462dfa RD |
6717 | { "_wxEvent","_class_wxEvent",0}, |
6718 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
1d99702e | 6719 | { "_signed_long","_long",0}, |
b1462dfa | 6720 | { "_wxMenuEvent","_class_wxMenuEvent",0}, |
c368d904 | 6721 | { "_class_wxProcessEvent","_wxProcessEvent",0}, |
b1462dfa RD |
6722 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
6723 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
6724 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, | |
c368d904 | 6725 | { "_wxWindowDisabler","_class_wxWindowDisabler",0}, |
b1462dfa | 6726 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
6727 | { "_wxPrintQuality","_int",0}, |
6728 | { "_wxPrintQuality","_signed_int",0}, | |
6729 | { "_wxPrintQuality","_unsigned_int",0}, | |
6730 | { "_wxPrintQuality","_wxWindowID",0}, | |
6731 | { "_wxPrintQuality","_uint",0}, | |
6732 | { "_wxPrintQuality","_EBool",0}, | |
6733 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 6734 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 6735 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 6736 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 6737 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e | 6738 | { "_class_wxMenuBar","_wxMenuBar",0}, |
c368d904 RD |
6739 | { "_class_wxEvtHandler","_class_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
6740 | { "_class_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
1d99702e | 6741 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
b1462dfa | 6742 | { "_wxPaintEvent","_class_wxPaintEvent",0}, |
1d99702e RD |
6743 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, |
6744 | { "_wxCursor","_class_wxCursor",0}, | |
b1462dfa | 6745 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
c368d904 | 6746 | { "_wxPyProcess","_class_wxPyProcess",0}, |
f6bcfd97 BP |
6747 | { "_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, |
6748 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
6749 | { "_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
6750 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
6751 | { "_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
6752 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
6753 | { "_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
6754 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
6755 | { "_wxLog","_class_wxLog",0}, | |
1d99702e RD |
6756 | { "_wxMask","_class_wxMask",0}, |
6757 | { "_wxToolTip","_class_wxToolTip",0}, | |
6758 | { "_wxPen","_class_wxPen",0}, | |
b1462dfa | 6759 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, |
1d99702e | 6760 | { "_byte","_unsigned_char",0}, |
b1462dfa RD |
6761 | { "_wxDataObject","_class_wxDataObject",0}, |
6762 | { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0}, | |
6763 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
6764 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
6765 | { "_long","_unsigned_long",0}, |
6766 | { "_long","_signed_long",0}, | |
6767 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa RD |
6768 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
6769 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
1d99702e | 6770 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
b1462dfa | 6771 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 6772 | { "_wxDC","_class_wxDC",0}, |
b1462dfa RD |
6773 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
6774 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
6775 | { "_size_t","_wxCoord",0}, | |
1d99702e | 6776 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 6777 | { "_size_t","_time_t",0}, |
1d99702e RD |
6778 | { "_size_t","_unsigned_int",0}, |
6779 | { "_size_t","_int",0}, | |
6780 | { "_size_t","_wxWindowID",0}, | |
6781 | { "_size_t","_uint",0}, | |
6782 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
b1462dfa | 6783 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
b1462dfa | 6784 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
f6bcfd97 | 6785 | { "_wxLogGui","_class_wxLogGui",0}, |
1d99702e | 6786 | { "_class_wxMenuItem","_wxMenuItem",0}, |
b1462dfa RD |
6787 | { "_class_wxPaintEvent","_wxPaintEvent",0}, |
6788 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
1d99702e | 6789 | { "_wxPanel","_class_wxPanel",0}, |
b1462dfa RD |
6790 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, |
6791 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
1d99702e | 6792 | { "_class_wxMask","_wxMask",0}, |
b1462dfa RD |
6793 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
6794 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
1d99702e RD |
6795 | { "_class_wxToolTip","_wxToolTip",0}, |
6796 | { "_wxColour","_class_wxColour",0}, | |
6797 | { "_class_wxDialog","_wxDialog",0}, | |
2abc0a0f | 6798 | { "_wxBusyCursor","_class_wxBusyCursor",0}, |
b1462dfa RD |
6799 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
6800 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
6801 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
6802 | { "_class_wxDataObject","_wxDataObject",0}, | |
f0261a72 | 6803 | { "_wxCaret","_class_wxCaret",0}, |
1d99702e | 6804 | { "_wxBrush","_class_wxBrush",0}, |
b1462dfa RD |
6805 | { "_wxDataFormat","_class_wxDataFormat",0}, |
6806 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
6807 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
6808 | { "_uint","_wxCoord",0}, | |
1d99702e | 6809 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 6810 | { "_uint","_time_t",0}, |
1d99702e RD |
6811 | { "_uint","_size_t",0}, |
6812 | { "_uint","_unsigned_int",0}, | |
6813 | { "_uint","_int",0}, | |
6814 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 6815 | { "_wxChar","_char",0}, |
2f90df85 | 6816 | { "_wxPyValidator","_class_wxPyValidator",0}, |
c368d904 RD |
6817 | { "_class_wxEvent","_class_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
6818 | { "_class_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
b1462dfa | 6819 | { "_class_wxEvent","_wxEvent",0}, |
1d99702e | 6820 | { "_wxRect","_class_wxRect",0}, |
b1462dfa RD |
6821 | { "_wxCommandEvent","_class_wxCommandEvent",0}, |
6822 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
f6bcfd97 | 6823 | { "_class_wxLogWindow","_wxLogWindow",0}, |
1d99702e | 6824 | { "_wxPoint","_class_wxPoint",0}, |
c368d904 | 6825 | { "_class_wxWindowDisabler","_wxWindowDisabler",0}, |
f6bcfd97 | 6826 | { "_char","_wxChar",0}, |
1d99702e | 6827 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e | 6828 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 BP |
6829 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
6830 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
1d99702e | 6831 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, |
b1462dfa | 6832 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 6833 | { "_class_wxValidator","_wxValidator",0}, |
b1462dfa RD |
6834 | { "_class_wxPyEvent","_wxPyEvent",0}, |
6835 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
2abc0a0f | 6836 | { "_class_wxBusyCursor","_wxBusyCursor",0}, |
b1462dfa RD |
6837 | { "_wxDropTarget","_class_wxDropTarget",0}, |
6838 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
6839 | { "_EBool","_wxCoord",0}, | |
1d99702e RD |
6840 | { "_EBool","_wxPrintQuality",0}, |
6841 | { "_EBool","_signed_int",0}, | |
6842 | { "_EBool","_int",0}, | |
6843 | { "_EBool","_wxWindowID",0}, | |
6844 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa RD |
6845 | { "_class_wxDataFormat","_wxDataFormat",0}, |
6846 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
6847 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, | |
1d99702e | 6848 | { "_wxFont","_class_wxFont",0}, |
b1462dfa RD |
6849 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
6850 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
c368d904 | 6851 | { "_wxProcessEvent","_class_wxProcessEvent",0}, |
1d99702e RD |
6852 | { "_unsigned_long","_long",0}, |
6853 | { "_class_wxRect","_wxRect",0}, | |
6854 | { "_class_wxDC","_wxDC",0}, | |
b1462dfa | 6855 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
f6bcfd97 | 6856 | { "_wxGenericDragImage","_class_wxGenericDragImage",0}, |
b1462dfa | 6857 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
c368d904 | 6858 | { "_wxPyInputStream","_class_wxPyInputStream",0}, |
b1462dfa | 6859 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, |
c368d904 | 6860 | { "_class_wxOutputStream","_wxOutputStream",0}, |
f6bcfd97 | 6861 | { "_wxLogTextCtrl","_class_wxLogTextCtrl",0}, |
b1462dfa RD |
6862 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
6863 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 BP |
6864 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
6865 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
1d99702e RD |
6866 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
6867 | { "_class_wxPanel","_wxPanel",0}, | |
b1462dfa | 6868 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
6869 | { "_signed_int","_wxPrintQuality",0}, |
6870 | { "_signed_int","_EBool",0}, | |
6871 | { "_signed_int","_wxWindowID",0}, | |
6872 | { "_signed_int","_int",0}, | |
6873 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
6874 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 6875 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e | 6876 | { "_wxMenu","_class_wxMenu",0}, |
b1462dfa | 6877 | { "_class_wxMoveEvent","_wxMoveEvent",0}, |
1d99702e RD |
6878 | { "_wxScreenDC","_class_wxScreenDC",0}, |
6879 | { "_WXTYPE","_short",0}, | |
6880 | { "_WXTYPE","_signed_short",0}, | |
6881 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 6882 | { "_class_wxDropTarget","_wxDropTarget",0}, |
f0261a72 | 6883 | { "_class_wxCaret","_wxCaret",0}, |
1d99702e | 6884 | { "_class_wxBrush","_wxBrush",0}, |
f6bcfd97 BP |
6885 | { "_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
6886 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
6887 | { "_wxTipProvider","_class_wxTipProvider",0}, | |
1d99702e RD |
6888 | { "_unsigned_short","_WXTYPE",0}, |
6889 | { "_unsigned_short","_short",0}, | |
6890 | { "_class_wxWindow","_wxWindow",0}, | |
f6bcfd97 | 6891 | { "_class_wxLogStderr","_wxLogStderr",0}, |
1d99702e | 6892 | { "_class_wxFont","_wxFont",0}, |
b1462dfa | 6893 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 6894 | { "_class_wxPyValidator","_wxPyValidator",0}, |
b1462dfa | 6895 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 6896 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
b1462dfa RD |
6897 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
6898 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, | |
185d7c3e | 6899 | { "_wxJoystick","_class_wxJoystick",0}, |
b1462dfa | 6900 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e | 6901 | { "_wxClientDC","_class_wxClientDC",0}, |
b1462dfa | 6902 | { "_wxMouseEvent","_class_wxMouseEvent",0}, |
f6bcfd97 | 6903 | { "_class_wxGenericDragImage","_wxGenericDragImage",0}, |
1d99702e | 6904 | { "_class_wxPoint","_wxPoint",0}, |
c368d904 | 6905 | { "_class_wxPyInputStream","_wxPyInputStream",0}, |
1d99702e RD |
6906 | { "_wxRealPoint","_class_wxRealPoint",0}, |
6907 | { "_signed_short","_WXTYPE",0}, | |
6908 | { "_signed_short","_short",0}, | |
6909 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
b1462dfa | 6910 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
6911 | { "_wxPaintDC","_class_wxPaintDC",0}, |
6912 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
b1462dfa RD |
6913 | { "_class_wxFocusEvent","_wxFocusEvent",0}, |
6914 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
1d99702e RD |
6915 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, |
6916 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 6917 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
c368d904 | 6918 | { "_class_wxPyProcess","_wxPyProcess",0}, |
1d99702e | 6919 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
f6bcfd97 BP |
6920 | { "_class_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, |
6921 | { "_class_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
6922 | { "_class_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
6923 | { "_class_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
6924 | { "_class_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
6925 | { "_class_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
6926 | { "_class_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
6927 | { "_class_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
6928 | { "_class_wxLog","_wxLog",0}, | |
1d99702e RD |
6929 | { "_unsigned_char","_byte",0}, |
6930 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
6931 | { "_class_wxMenu","_wxMenu",0}, | |
b1462dfa | 6932 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 6933 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 6934 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
6935 | { "_unsigned_int","_size_t",0}, |
6936 | { "_unsigned_int","_uint",0}, | |
6937 | { "_unsigned_int","_wxWindowID",0}, | |
6938 | { "_unsigned_int","_int",0}, | |
6939 | { "_wxIcon","_class_wxIcon",0}, | |
6940 | { "_wxDialog","_class_wxDialog",0}, | |
6941 | { "_class_wxPen","_wxPen",0}, | |
6942 | { "_short","_WXTYPE",0}, | |
6943 | { "_short","_unsigned_short",0}, | |
6944 | { "_short","_signed_short",0}, | |
b1462dfa RD |
6945 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
6946 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
6947 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
6948 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
1d99702e | 6949 | { "_class_wxImageList","_wxImageList",0}, |
f6bcfd97 | 6950 | { "_wxPyTipProvider","_class_wxPyTipProvider",0}, |
b1462dfa RD |
6951 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
6952 | { "_wxWindowID","_wxCoord",0}, | |
1d99702e | 6953 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 6954 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
6955 | { "_wxWindowID","_size_t",0}, |
6956 | { "_wxWindowID","_EBool",0}, | |
6957 | { "_wxWindowID","_uint",0}, | |
6958 | { "_wxWindowID","_int",0}, | |
6959 | { "_wxWindowID","_signed_int",0}, | |
6960 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa RD |
6961 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
6962 | { "_int","_wxCoord",0}, | |
1d99702e | 6963 | { "_int","_wxPrintQuality",0}, |
c368d904 | 6964 | { "_int","_time_t",0}, |
1d99702e RD |
6965 | { "_int","_size_t",0}, |
6966 | { "_int","_EBool",0}, | |
6967 | { "_int","_uint",0}, | |
6968 | { "_int","_wxWindowID",0}, | |
6969 | { "_int","_unsigned_int",0}, | |
6970 | { "_int","_signed_int",0}, | |
b1462dfa RD |
6971 | { "_class_wxMouseEvent","_wxMouseEvent",0}, |
6972 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, | |
f6bcfd97 | 6973 | { "_wxLogWindow","_class_wxLogWindow",0}, |
b1462dfa RD |
6974 | { "_class_wxSpinEvent","_wxSpinEvent",0}, |
6975 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, | |
c368d904 RD |
6976 | { "_time_t","_wxCoord",0}, |
6977 | { "_time_t","_wxPrintQuality",0}, | |
6978 | { "_time_t","_unsigned_int",0}, | |
6979 | { "_time_t","_int",0}, | |
6980 | { "_time_t","_wxWindowID",0}, | |
6981 | { "_time_t","_uint",0}, | |
6982 | { "_time_t","_size_t",0}, | |
b1462dfa | 6983 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
f6bcfd97 | 6984 | { "_wxLogNull","_class_wxLogNull",0}, |
1d99702e RD |
6985 | { "_wxSize","_class_wxSize",0}, |
6986 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
b1462dfa | 6987 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
f6bcfd97 BP |
6988 | { "_class_wxLogTextCtrl","_wxLogTextCtrl",0}, |
6989 | { "_class_wxLogGui","_wxLogGui",0}, | |
1d99702e | 6990 | { "_class_wxPaintDC","_wxPaintDC",0}, |
b1462dfa RD |
6991 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, |
6992 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
6993 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
2f90df85 | 6994 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 6995 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
b1462dfa | 6996 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, |
1d99702e RD |
6997 | { "_class_wxIcon","_wxIcon",0}, |
6998 | { "_class_wxColour","_wxColour",0}, | |
6999 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
7000 | { "_wxPalette","_class_wxPalette",0}, | |
b1462dfa RD |
7001 | { "_class_wxIdleEvent","_wxIdleEvent",0}, |
7002 | { "_wxCoord","_int",0}, | |
7003 | { "_wxCoord","_signed_int",0}, | |
7004 | { "_wxCoord","_unsigned_int",0}, | |
7005 | { "_wxCoord","_wxWindowID",0}, | |
7006 | { "_wxCoord","_uint",0}, | |
7007 | { "_wxCoord","_EBool",0}, | |
7008 | { "_wxCoord","_size_t",0}, | |
c368d904 | 7009 | { "_wxCoord","_time_t",0}, |
b1462dfa RD |
7010 | { "_wxCoord","_wxPrintQuality",0}, |
7011 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
7012 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
7013 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
f6bcfd97 BP |
7014 | { "_class_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7015 | { "_class_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
7016 | { "_class_wxTipProvider","_wxTipProvider",0}, | |
1d99702e | 7017 | { "_wxRegion","_class_wxRegion",0}, |
b1462dfa | 7018 | { "_class_wxShowEvent","_wxShowEvent",0}, |
f6bcfd97 | 7019 | { "_class_wxPyTipProvider","_wxPyTipProvider",0}, |
b1462dfa RD |
7020 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
7021 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
2abc0a0f | 7022 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
185d7c3e | 7023 | { "_class_wxJoystick","_wxJoystick",0}, |
b1462dfa | 7024 | { "_class_wxCommandEvent","_wxCommandEvent",0}, |
1d99702e | 7025 | { "_class_wxClientDC","_wxClientDC",0}, |
b1462dfa RD |
7026 | { "_class_wxSizeEvent","_wxSizeEvent",0}, |
7027 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
f6bcfd97 | 7028 | { "_class_wxLogNull","_wxLogNull",0}, |
1d99702e RD |
7029 | { "_class_wxSize","_wxSize",0}, |
7030 | { "_class_wxBitmap","_wxBitmap",0}, | |
7031 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 7032 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e | 7033 | { "_wxMenuBar","_class_wxMenuBar",0}, |
c368d904 RD |
7034 | { "_wxOutputStream","_class_wxOutputStream",0}, |
7035 | { "_wxEvtHandler","_class_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
7036 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
1d99702e RD |
7037 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
7038 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1d99702e | 7039 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
b1462dfa RD |
7040 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
7041 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
1d99702e | 7042 | { "_class_wxPalette","_wxPalette",0}, |
b1462dfa RD |
7043 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
7044 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
7045 | { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0}, | |
7046 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
1d99702e | 7047 | { "_wxWindow","_class_wxWindow",0}, |
b1462dfa | 7048 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
f6bcfd97 | 7049 | { "_wxLogStderr","_class_wxLogStderr",0}, |
1d99702e RD |
7050 | {0,0,0}}; |
7051 | ||
bb0054cd RD |
7052 | static PyObject *SWIG_globals; |
7053 | #ifdef __cplusplus | |
7054 | extern "C" | |
7055 | #endif | |
1d99702e | 7056 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
7057 | PyObject *m, *d; |
7058 | SWIG_globals = SWIG_newvarlink(); | |
7059 | m = Py_InitModule("misc2c", misc2cMethods); | |
7060 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
7061 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); |
7062 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
7063 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
7064 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
7065 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
7066 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
7067 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
7068 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
7069 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
7070 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
7071 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
7072 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
7073 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
7074 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
7075 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
7076 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
7077 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
7078 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
7079 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
7080 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
7081 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
7082 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
7083 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
7084 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
7085 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
7086 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
7087 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
7088 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
7089 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
7090 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
7091 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
7092 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
7093 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
7094 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
7095 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
7096 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
7097 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
7098 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
7099 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
7100 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
7101 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
7102 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
7103 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
7104 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
7105 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
7106 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
7107 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
7108 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
7109 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
7110 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
7111 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
7112 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
7113 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
7114 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
7115 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
7116 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
7117 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
7118 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
7119 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
7120 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
7121 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
7122 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
7123 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
7124 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
7125 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
7126 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
7127 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
7128 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
7129 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
7130 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
7131 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
7132 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
7133 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
7134 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
7135 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
7136 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
7137 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
7138 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
7139 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
7140 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
7141 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
7142 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
7143 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
7144 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
7145 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
7146 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
f6bcfd97 BP |
7147 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
7148 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
7149 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
7150 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
7151 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
7152 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
7153 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
7154 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
7155 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
7156 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 7157 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
1d99702e RD |
7158 | { |
7159 | int i; | |
7160 | for (i = 0; _swig_mapping[i].n1; i++) | |
7161 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
7162 | } | |
bb0054cd | 7163 | } |