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