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