]>
Commit | Line | Data |
---|---|---|
bb0054cd | 1 | /* |
c368d904 | 2 | * FILE : src/msw/misc2.cpp |
bb0054cd RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
bb0054cd RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
bb0054cd RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
bb0054cd RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
bb0054cd RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
f0261a72 RD |
61 | #include <wx/caret.h> |
62 | #include <wx/fontenum.h> | |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
493f1553 RD |
65 | |
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 67 | #include <wx/joystick.h> |
e0672e2f | 68 | #endif |
bb0054cd | 69 | |
493f1553 RD |
70 | #if wxUSE_WAVE || defined(__WXMSW__) |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b37c7e1d RD |
74 | #include <wx/mimetype.h> |
75 | ||
bb0054cd RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
6e18ca6c | 81 | if (!target) { |
bb0054cd | 82 | target = o; |
6e18ca6c | 83 | } else if (target == Py_None) { |
bb0054cd RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
6e18ca6c | 86 | } else { |
bb0054cd RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
6e18ca6c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
94 | |
95 | o2 = target; | |
6e18ca6c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
bb0054cd RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
794c5cb1 RD |
103 | #if PYTHON_API_VERSION >= 1009 |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
0122b7e3 | 106 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 107 | #endif |
bb0054cd | 108 | |
e508a2b6 RD |
109 | static wxString wxPyEmptyStr(""); |
110 | ||
06c0fba4 RD |
111 | |
112 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
113 | return wxSystemSettings::GetSystemColour(index); | |
114 | } | |
115 | ||
116 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
117 | return wxSystemSettings::GetSystemFont(index); | |
118 | } | |
119 | ||
120 | int wxSystemSettings_GetSystemMetric(int index) { | |
121 | return wxSystemSettings::GetSystemMetric(index); | |
122 | } | |
123 | ||
06c0fba4 RD |
124 | int wxCaret_GetBlinkTime() { |
125 | return wxCaret::GetBlinkTime(); | |
126 | } | |
127 | ||
128 | void wxCaret_SetBlinkTime(int milliseconds) { | |
129 | wxCaret::SetBlinkTime(milliseconds); | |
130 | } | |
b1462dfa RD |
131 | |
132 | class wxPyFontEnumerator : public wxFontEnumerator { | |
133 | public: | |
134 | wxPyFontEnumerator() {} | |
135 | ~wxPyFontEnumerator() {} | |
136 | ||
137 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
138 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
139 | ||
140 | PYPRIVATE; | |
141 | }; | |
142 | ||
143 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
144 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
145 | ||
f6bcfd97 | 146 | |
6e18ca6c RD |
147 | bool wxThread_IsMain() { |
148 | return wxThread::IsMain(); | |
149 | } | |
150 | ||
f6bcfd97 BP |
151 | class wxPyTipProvider : public wxTipProvider { |
152 | public: | |
153 | wxPyTipProvider(size_t currentTip) | |
154 | : wxTipProvider(currentTip) {} | |
155 | ||
156 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
157 | ||
158 | PYPRIVATE; | |
159 | }; | |
160 | ||
161 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
162 | ||
163 | ||
164 | #include <wx/generic/dragimgg.h> | |
76bfdc78 RD |
165 | |
166 | // A Log class that can be derived from in wxPython | |
167 | class wxPyLog : public wxLog { | |
168 | public: | |
169 | wxPyLog() : wxLog() {} | |
170 | ||
171 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
172 | bool found; | |
173 | wxPyTState* state = wxPyBeginBlockThreads(); | |
174 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) | |
175 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(isi)", level, szString, t)); | |
176 | wxPyEndBlockThreads(state); | |
177 | if (! found) | |
178 | wxLog::DoLog(level, szString, t); | |
179 | } | |
180 | ||
181 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
182 | bool found; | |
183 | wxPyTState* state = wxPyBeginBlockThreads(); | |
184 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) | |
185 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(si)", szString, t)); | |
186 | wxPyEndBlockThreads(state); | |
187 | if (! found) | |
188 | wxLog::DoLogString(szString, t); | |
189 | } | |
190 | ||
191 | PYPRIVATE; | |
192 | }; | |
c368d904 RD |
193 | // C++ version of wxProcess derived class |
194 | ||
195 | class wxPyProcess : public wxProcess { | |
196 | public: | |
197 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
198 | : wxProcess(parent, id) | |
199 | {} | |
200 | ||
201 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
202 | ||
203 | PYPRIVATE; | |
204 | }; | |
205 | ||
206 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 207 | |
19a97bd6 | 208 | |
493f1553 RD |
209 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
210 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
211 | class wxJoystick : public wxObject { | |
212 | public: | |
213 | wxJoystick(int joystick = wxJOYSTICK1) { | |
b37c7e1d | 214 | wxPyTState* state = wxPyBeginBlockThreads(); |
493f1553 | 215 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
b37c7e1d | 216 | wxPyEndBlockThreads(state); |
493f1553 RD |
217 | } |
218 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
219 | int GetZPosition() { return -1; } | |
220 | int GetButtonState() { return -1; } | |
221 | int GetPOVPosition() { return -1; } | |
222 | int GetPOVCTSPosition() { return -1; } | |
223 | int GetRudderPosition() { return -1; } | |
224 | int GetUPosition() { return -1; } | |
225 | int GetVPosition() { return -1; } | |
226 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 227 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
228 | |
229 | bool IsOk(void) { return FALSE; } | |
230 | int GetNumberJoysticks() { return -1; } | |
231 | int GetManufacturerId() { return -1; } | |
232 | int GetProductId() { return -1; } | |
233 | wxString GetProductName() { return ""; } | |
234 | int GetXMin() { return -1; } | |
235 | int GetYMin() { return -1; } | |
236 | int GetZMin() { return -1; } | |
237 | int GetXMax() { return -1; } | |
238 | int GetYMax() { return -1; } | |
239 | int GetZMax() { return -1; } | |
240 | int GetNumberButtons() { return -1; } | |
241 | int GetNumberAxes() { return -1; } | |
242 | int GetMaxButtons() { return -1; } | |
243 | int GetMaxAxes() { return -1; } | |
244 | int GetPollingMin() { return -1; } | |
245 | int GetPollingMax() { return -1; } | |
246 | int GetRudderMin() { return -1; } | |
247 | int GetRudderMax() { return -1; } | |
248 | int GetUMin() { return -1; } | |
249 | int GetUMax() { return -1; } | |
250 | int GetVMin() { return -1; } | |
251 | int GetVMax() { return -1; } | |
252 | ||
253 | bool HasRudder() { return FALSE; } | |
254 | bool HasZ() { return FALSE; } | |
255 | bool HasU() { return FALSE; } | |
256 | bool HasV() { return FALSE; } | |
257 | bool HasPOV() { return FALSE; } | |
258 | bool HasPOV4Dir() { return FALSE; } | |
259 | bool HasPOVCTS() { return FALSE; } | |
260 | ||
261 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
262 | bool ReleaseCapture() { return FALSE; } | |
263 | }; | |
264 | #endif | |
265 | ||
0adbc166 | 266 | #if !wxUSE_WAVE |
493f1553 RD |
267 | // A C++ stub class for wxWave for platforms that don't have it. |
268 | class wxWave : public wxObject | |
269 | { | |
270 | public: | |
271 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
401d3cc7 | 272 | wxPyTState* state = wxPyBeginBlockThreads(); |
493f1553 | 273 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
401d3cc7 | 274 | wxPyEndBlockThreads(state); |
493f1553 RD |
275 | } |
276 | wxWave(int size, const wxByte* data) { | |
401d3cc7 | 277 | wxPyTState* state = wxPyBeginBlockThreads(); |
493f1553 | 278 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
401d3cc7 | 279 | wxPyEndBlockThreads(state); |
493f1553 RD |
280 | } |
281 | ||
282 | ~wxWave() {} | |
283 | ||
284 | bool IsOk() const { return FALSE; } | |
285 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
286 | }; | |
287 | ||
288 | #endif | |
289 | // Implementations of some alternate "constructors" | |
290 | wxWave* wxWaveData(const wxString& data) { | |
291 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
292 | } | |
b37c7e1d RD |
293 | |
294 | #if 0 | |
295 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
296 | ||
297 | #endif | |
06c0fba4 RD |
298 | #ifdef __cplusplus |
299 | extern "C" { | |
300 | #endif | |
301 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
302 | PyObject * _resultobj; | |
303 | wxString * _result; | |
304 | char * _arg0; | |
305 | char * _arg1 = (char *) NULL; | |
306 | char * _arg2 = (char *) NULL; | |
307 | char * _arg3 = (char *) NULL; | |
308 | char * _arg4 = (char *) "*.*"; | |
309 | int _arg5 = (int ) 0; | |
310 | wxWindow * _arg6 = (wxWindow *) NULL; | |
311 | int _arg7 = (int ) -1; | |
312 | int _arg8 = (int ) -1; | |
313 | PyObject * _argo6 = 0; | |
314 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
315 | ||
316 | self = self; | |
317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
318 | return NULL; | |
319 | if (_argo6) { | |
320 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
321 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
323 | return NULL; | |
324 | } | |
325 | } | |
326 | { | |
327 | wxPy_BEGIN_ALLOW_THREADS; | |
328 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
329 | ||
330 | wxPy_END_ALLOW_THREADS; | |
331 | }{ | |
eec92d76 | 332 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
333 | } |
334 | { | |
335 | delete _result; | |
336 | } | |
337 | return _resultobj; | |
338 | } | |
339 | ||
340 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxString * _result; | |
343 | wxString * _arg0; | |
344 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
345 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
346 | wxWindow * _arg3 = (wxWindow *) NULL; | |
347 | int _arg4 = (int ) -1; | |
348 | int _arg5 = (int ) -1; | |
349 | bool _arg6 = (bool ) TRUE; | |
350 | PyObject * _obj0 = 0; | |
351 | PyObject * _obj1 = 0; | |
352 | PyObject * _obj2 = 0; | |
353 | PyObject * _argo3 = 0; | |
354 | int tempbool6 = (int) TRUE; | |
355 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
356 | ||
357 | self = self; | |
358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
359 | return NULL; | |
360 | { | |
185d7c3e RD |
361 | #if PYTHON_API_VERSION >= 1009 |
362 | char* tmpPtr; int tmpSize; | |
363 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 364 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
365 | return NULL; |
366 | } | |
367 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
368 | return NULL; | |
369 | _arg0 = new wxString(tmpPtr, tmpSize); | |
370 | #else | |
06c0fba4 RD |
371 | if (!PyString_Check(_obj0)) { |
372 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
373 | return NULL; | |
374 | } | |
185d7c3e RD |
375 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
376 | #endif | |
06c0fba4 RD |
377 | } |
378 | if (_obj1) | |
379 | { | |
185d7c3e RD |
380 | #if PYTHON_API_VERSION >= 1009 |
381 | char* tmpPtr; int tmpSize; | |
382 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
384 | return NULL; |
385 | } | |
386 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
387 | return NULL; | |
388 | _arg1 = new wxString(tmpPtr, tmpSize); | |
389 | #else | |
06c0fba4 RD |
390 | if (!PyString_Check(_obj1)) { |
391 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
392 | return NULL; | |
393 | } | |
185d7c3e RD |
394 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
395 | #endif | |
06c0fba4 RD |
396 | } |
397 | if (_obj2) | |
398 | { | |
185d7c3e RD |
399 | #if PYTHON_API_VERSION >= 1009 |
400 | char* tmpPtr; int tmpSize; | |
401 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
403 | return NULL; |
404 | } | |
405 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
406 | return NULL; | |
407 | _arg2 = new wxString(tmpPtr, tmpSize); | |
408 | #else | |
06c0fba4 RD |
409 | if (!PyString_Check(_obj2)) { |
410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
411 | return NULL; | |
412 | } | |
185d7c3e RD |
413 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
414 | #endif | |
06c0fba4 RD |
415 | } |
416 | if (_argo3) { | |
417 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
418 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
420 | return NULL; | |
421 | } | |
422 | } | |
423 | _arg6 = (bool ) tempbool6; | |
424 | { | |
425 | wxPy_BEGIN_ALLOW_THREADS; | |
426 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
427 | ||
428 | wxPy_END_ALLOW_THREADS; | |
429 | }{ | |
eec92d76 | 430 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
431 | } |
432 | { | |
433 | if (_obj0) | |
434 | delete _arg0; | |
435 | } | |
436 | { | |
437 | if (_obj1) | |
438 | delete _arg1; | |
439 | } | |
440 | { | |
441 | if (_obj2) | |
442 | delete _arg2; | |
443 | } | |
444 | { | |
445 | delete _result; | |
446 | } | |
447 | return _resultobj; | |
448 | } | |
449 | ||
1b62f00d RD |
450 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
451 | PyObject * _resultobj; | |
452 | wxString * _result; | |
453 | wxString * _arg0; | |
454 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
455 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
456 | wxWindow * _arg3 = (wxWindow *) NULL; | |
457 | PyObject * _obj0 = 0; | |
458 | PyObject * _obj1 = 0; | |
459 | PyObject * _obj2 = 0; | |
460 | PyObject * _argo3 = 0; | |
461 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
462 | ||
463 | self = self; | |
464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
465 | return NULL; | |
466 | { | |
467 | #if PYTHON_API_VERSION >= 1009 | |
468 | char* tmpPtr; int tmpSize; | |
469 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
471 | return NULL; |
472 | } | |
473 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
474 | return NULL; | |
475 | _arg0 = new wxString(tmpPtr, tmpSize); | |
476 | #else | |
477 | if (!PyString_Check(_obj0)) { | |
478 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
479 | return NULL; | |
480 | } | |
481 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
482 | #endif | |
483 | } | |
484 | if (_obj1) | |
485 | { | |
486 | #if PYTHON_API_VERSION >= 1009 | |
487 | char* tmpPtr; int tmpSize; | |
488 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 489 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
490 | return NULL; |
491 | } | |
492 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
493 | return NULL; | |
494 | _arg1 = new wxString(tmpPtr, tmpSize); | |
495 | #else | |
496 | if (!PyString_Check(_obj1)) { | |
497 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
498 | return NULL; | |
499 | } | |
500 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
501 | #endif | |
502 | } | |
503 | if (_obj2) | |
504 | { | |
505 | #if PYTHON_API_VERSION >= 1009 | |
506 | char* tmpPtr; int tmpSize; | |
507 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 508 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
509 | return NULL; |
510 | } | |
511 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
512 | return NULL; | |
513 | _arg2 = new wxString(tmpPtr, tmpSize); | |
514 | #else | |
515 | if (!PyString_Check(_obj2)) { | |
516 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
517 | return NULL; | |
518 | } | |
519 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
520 | #endif | |
521 | } | |
522 | if (_argo3) { | |
523 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
524 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
526 | return NULL; | |
527 | } | |
528 | } | |
529 | { | |
530 | wxPy_BEGIN_ALLOW_THREADS; | |
531 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
532 | ||
533 | wxPy_END_ALLOW_THREADS; | |
534 | }{ | |
535 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
536 | } | |
537 | { | |
538 | if (_obj0) | |
539 | delete _arg0; | |
540 | } | |
541 | { | |
542 | if (_obj1) | |
543 | delete _arg1; | |
544 | } | |
545 | { | |
546 | if (_obj2) | |
547 | delete _arg2; | |
548 | } | |
549 | { | |
550 | delete _result; | |
551 | } | |
552 | return _resultobj; | |
553 | } | |
554 | ||
06c0fba4 RD |
555 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
556 | PyObject * _resultobj; | |
557 | wxString * _result; | |
558 | wxString * _arg0; | |
559 | wxString * _arg1; | |
560 | int _arg2; | |
561 | wxString * _arg3; | |
562 | wxWindow * _arg4 = (wxWindow *) NULL; | |
563 | int _arg5 = (int ) -1; | |
564 | int _arg6 = (int ) -1; | |
565 | bool _arg7 = (bool ) TRUE; | |
566 | int _arg8 = (int ) 150; | |
567 | int _arg9 = (int ) 200; | |
568 | PyObject * _obj0 = 0; | |
569 | PyObject * _obj1 = 0; | |
570 | PyObject * _obj3 = 0; | |
571 | PyObject * _argo4 = 0; | |
572 | int tempbool7 = (int) TRUE; | |
eec92d76 | 573 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
574 | |
575 | self = self; | |
576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
577 | return NULL; | |
578 | { | |
185d7c3e RD |
579 | #if PYTHON_API_VERSION >= 1009 |
580 | char* tmpPtr; int tmpSize; | |
581 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 582 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
583 | return NULL; |
584 | } | |
585 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
586 | return NULL; | |
587 | _arg0 = new wxString(tmpPtr, tmpSize); | |
588 | #else | |
06c0fba4 RD |
589 | if (!PyString_Check(_obj0)) { |
590 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
591 | return NULL; | |
592 | } | |
185d7c3e RD |
593 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
594 | #endif | |
06c0fba4 RD |
595 | } |
596 | { | |
185d7c3e RD |
597 | #if PYTHON_API_VERSION >= 1009 |
598 | char* tmpPtr; int tmpSize; | |
599 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 600 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
601 | return NULL; |
602 | } | |
603 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
604 | return NULL; | |
605 | _arg1 = new wxString(tmpPtr, tmpSize); | |
606 | #else | |
06c0fba4 RD |
607 | if (!PyString_Check(_obj1)) { |
608 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
609 | return NULL; | |
610 | } | |
185d7c3e RD |
611 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
612 | #endif | |
06c0fba4 RD |
613 | } |
614 | if (_obj3) | |
615 | { | |
616 | _arg3 = wxString_LIST_helper(_obj3); | |
617 | if (_arg3 == NULL) { | |
618 | return NULL; | |
619 | } | |
620 | } | |
621 | if (_argo4) { | |
622 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
623 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
625 | return NULL; | |
626 | } | |
627 | } | |
628 | _arg7 = (bool ) tempbool7; | |
629 | { | |
630 | if (_obj3) { | |
631 | _arg2 = PyList_Size(_obj3); | |
632 | } | |
633 | else { | |
634 | _arg2 = 0; | |
635 | } | |
636 | } | |
637 | { | |
638 | wxPy_BEGIN_ALLOW_THREADS; | |
639 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
640 | ||
641 | wxPy_END_ALLOW_THREADS; | |
642 | }{ | |
eec92d76 | 643 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
644 | } |
645 | { | |
646 | if (_obj0) | |
647 | delete _arg0; | |
648 | } | |
649 | { | |
650 | if (_obj1) | |
651 | delete _arg1; | |
652 | } | |
653 | { | |
654 | delete [] _arg3; | |
655 | } | |
656 | { | |
657 | delete _result; | |
658 | } | |
659 | return _resultobj; | |
660 | } | |
661 | ||
662 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
663 | PyObject * _resultobj; | |
664 | int _result; | |
665 | wxString * _arg0; | |
666 | wxString * _arg1; | |
667 | int _arg2; | |
668 | wxString * _arg3; | |
669 | wxWindow * _arg4 = (wxWindow *) NULL; | |
670 | int _arg5 = (int ) -1; | |
671 | int _arg6 = (int ) -1; | |
672 | bool _arg7 = (bool ) TRUE; | |
673 | int _arg8 = (int ) 150; | |
674 | int _arg9 = (int ) 200; | |
675 | PyObject * _obj0 = 0; | |
676 | PyObject * _obj1 = 0; | |
677 | PyObject * _obj3 = 0; | |
678 | PyObject * _argo4 = 0; | |
679 | int tempbool7 = (int) TRUE; | |
eec92d76 | 680 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
681 | |
682 | self = self; | |
683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
684 | return NULL; | |
685 | { | |
185d7c3e RD |
686 | #if PYTHON_API_VERSION >= 1009 |
687 | char* tmpPtr; int tmpSize; | |
688 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 689 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
690 | return NULL; |
691 | } | |
692 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
693 | return NULL; | |
694 | _arg0 = new wxString(tmpPtr, tmpSize); | |
695 | #else | |
06c0fba4 RD |
696 | if (!PyString_Check(_obj0)) { |
697 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
698 | return NULL; | |
699 | } | |
185d7c3e RD |
700 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
701 | #endif | |
06c0fba4 RD |
702 | } |
703 | { | |
185d7c3e RD |
704 | #if PYTHON_API_VERSION >= 1009 |
705 | char* tmpPtr; int tmpSize; | |
706 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
708 | return NULL; |
709 | } | |
710 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
711 | return NULL; | |
712 | _arg1 = new wxString(tmpPtr, tmpSize); | |
713 | #else | |
06c0fba4 RD |
714 | if (!PyString_Check(_obj1)) { |
715 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
716 | return NULL; | |
717 | } | |
185d7c3e RD |
718 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
719 | #endif | |
06c0fba4 RD |
720 | } |
721 | if (_obj3) | |
722 | { | |
723 | _arg3 = wxString_LIST_helper(_obj3); | |
724 | if (_arg3 == NULL) { | |
725 | return NULL; | |
726 | } | |
727 | } | |
728 | if (_argo4) { | |
729 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
730 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
732 | return NULL; | |
733 | } | |
734 | } | |
735 | _arg7 = (bool ) tempbool7; | |
736 | { | |
737 | if (_obj3) { | |
738 | _arg2 = PyList_Size(_obj3); | |
739 | } | |
740 | else { | |
741 | _arg2 = 0; | |
742 | } | |
743 | } | |
744 | { | |
745 | wxPy_BEGIN_ALLOW_THREADS; | |
746 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
747 | ||
748 | wxPy_END_ALLOW_THREADS; | |
749 | } _resultobj = Py_BuildValue("i",_result); | |
750 | { | |
751 | if (_obj0) | |
752 | delete _arg0; | |
753 | } | |
754 | { | |
755 | if (_obj1) | |
756 | delete _arg1; | |
757 | } | |
758 | { | |
759 | delete [] _arg3; | |
760 | } | |
761 | return _resultobj; | |
762 | } | |
763 | ||
764 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
765 | PyObject * _resultobj; | |
766 | int _result; | |
767 | wxString * _arg0; | |
768 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
769 | int _arg2 = (int ) wxOK|wxCENTRE; | |
770 | wxWindow * _arg3 = (wxWindow *) NULL; | |
771 | int _arg4 = (int ) -1; | |
772 | int _arg5 = (int ) -1; | |
773 | PyObject * _obj0 = 0; | |
774 | PyObject * _obj1 = 0; | |
775 | PyObject * _argo3 = 0; | |
776 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
777 | ||
778 | self = self; | |
779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
780 | return NULL; | |
781 | { | |
185d7c3e RD |
782 | #if PYTHON_API_VERSION >= 1009 |
783 | char* tmpPtr; int tmpSize; | |
784 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 785 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
786 | return NULL; |
787 | } | |
788 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
789 | return NULL; | |
790 | _arg0 = new wxString(tmpPtr, tmpSize); | |
791 | #else | |
06c0fba4 RD |
792 | if (!PyString_Check(_obj0)) { |
793 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
794 | return NULL; | |
795 | } | |
185d7c3e RD |
796 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
797 | #endif | |
06c0fba4 RD |
798 | } |
799 | if (_obj1) | |
800 | { | |
185d7c3e RD |
801 | #if PYTHON_API_VERSION >= 1009 |
802 | char* tmpPtr; int tmpSize; | |
803 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
805 | return NULL; |
806 | } | |
807 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
808 | return NULL; | |
809 | _arg1 = new wxString(tmpPtr, tmpSize); | |
810 | #else | |
06c0fba4 RD |
811 | if (!PyString_Check(_obj1)) { |
812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
813 | return NULL; | |
814 | } | |
185d7c3e RD |
815 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
816 | #endif | |
06c0fba4 RD |
817 | } |
818 | if (_argo3) { | |
819 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
826 | wxPy_BEGIN_ALLOW_THREADS; | |
827 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
828 | ||
829 | wxPy_END_ALLOW_THREADS; | |
830 | } _resultobj = Py_BuildValue("i",_result); | |
831 | { | |
832 | if (_obj0) | |
833 | delete _arg0; | |
834 | } | |
835 | { | |
836 | if (_obj1) | |
837 | delete _arg1; | |
838 | } | |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
843 | PyObject * _resultobj; | |
844 | long _result; | |
845 | wxString * _arg0; | |
846 | wxString * _arg1; | |
847 | wxString * _arg2; | |
848 | long _arg3; | |
849 | long _arg4 = (long ) 0; | |
850 | long _arg5 = (long ) 100; | |
851 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 852 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
853 | PyObject * _obj0 = 0; |
854 | PyObject * _obj1 = 0; | |
855 | PyObject * _obj2 = 0; | |
856 | PyObject * _argo6 = 0; | |
857 | wxPoint temp; | |
858 | PyObject * _obj7 = 0; | |
859 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
860 | ||
861 | self = self; | |
862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
863 | return NULL; | |
864 | { | |
185d7c3e RD |
865 | #if PYTHON_API_VERSION >= 1009 |
866 | char* tmpPtr; int tmpSize; | |
867 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 868 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
869 | return NULL; |
870 | } | |
871 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
872 | return NULL; | |
873 | _arg0 = new wxString(tmpPtr, tmpSize); | |
874 | #else | |
06c0fba4 RD |
875 | if (!PyString_Check(_obj0)) { |
876 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
877 | return NULL; | |
878 | } | |
185d7c3e RD |
879 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
880 | #endif | |
06c0fba4 RD |
881 | } |
882 | { | |
185d7c3e RD |
883 | #if PYTHON_API_VERSION >= 1009 |
884 | char* tmpPtr; int tmpSize; | |
885 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
887 | return NULL; |
888 | } | |
889 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
890 | return NULL; | |
891 | _arg1 = new wxString(tmpPtr, tmpSize); | |
892 | #else | |
06c0fba4 RD |
893 | if (!PyString_Check(_obj1)) { |
894 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
895 | return NULL; | |
896 | } | |
185d7c3e RD |
897 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
898 | #endif | |
06c0fba4 RD |
899 | } |
900 | { | |
185d7c3e RD |
901 | #if PYTHON_API_VERSION >= 1009 |
902 | char* tmpPtr; int tmpSize; | |
903 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
905 | return NULL; |
906 | } | |
907 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
908 | return NULL; | |
909 | _arg2 = new wxString(tmpPtr, tmpSize); | |
910 | #else | |
06c0fba4 RD |
911 | if (!PyString_Check(_obj2)) { |
912 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
913 | return NULL; | |
914 | } | |
185d7c3e RD |
915 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
916 | #endif | |
06c0fba4 RD |
917 | } |
918 | if (_argo6) { | |
919 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
920 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
922 | return NULL; | |
923 | } | |
924 | } | |
925 | if (_obj7) | |
926 | { | |
927 | _arg7 = &temp; | |
928 | if (! wxPoint_helper(_obj7, &_arg7)) | |
929 | return NULL; | |
930 | } | |
931 | { | |
932 | wxPy_BEGIN_ALLOW_THREADS; | |
933 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
934 | ||
935 | wxPy_END_ALLOW_THREADS; | |
936 | } _resultobj = Py_BuildValue("l",_result); | |
937 | { | |
938 | if (_obj0) | |
939 | delete _arg0; | |
940 | } | |
941 | { | |
942 | if (_obj1) | |
943 | delete _arg1; | |
944 | } | |
945 | { | |
946 | if (_obj2) | |
947 | delete _arg2; | |
948 | } | |
949 | return _resultobj; | |
950 | } | |
951 | ||
952 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
953 | PyObject * _resultobj; | |
954 | bool _result; | |
955 | char *_kwnames[] = { NULL }; | |
956 | ||
957 | self = self; | |
958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
959 | return NULL; | |
960 | { | |
961 | wxPy_BEGIN_ALLOW_THREADS; | |
962 | _result = (bool )wxColourDisplay(); | |
963 | ||
964 | wxPy_END_ALLOW_THREADS; | |
965 | } _resultobj = Py_BuildValue("i",_result); | |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
970 | PyObject * _resultobj; | |
971 | int _result; | |
972 | char *_kwnames[] = { NULL }; | |
973 | ||
974 | self = self; | |
975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
976 | return NULL; | |
977 | { | |
978 | wxPy_BEGIN_ALLOW_THREADS; | |
979 | _result = (int )wxDisplayDepth(); | |
980 | ||
981 | wxPy_END_ALLOW_THREADS; | |
982 | } _resultobj = Py_BuildValue("i",_result); | |
983 | return _resultobj; | |
984 | } | |
f0261a72 | 985 | |
1e7ecb7b RD |
986 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
987 | PyObject * _resultobj; | |
988 | int _result; | |
989 | char *_kwnames[] = { NULL }; | |
990 | ||
991 | self = self; | |
992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
993 | return NULL; | |
994 | { | |
995 | wxPy_BEGIN_ALLOW_THREADS; | |
996 | _result = (int )wxGetDisplayDepth(); | |
997 | ||
998 | wxPy_END_ALLOW_THREADS; | |
999 | } _resultobj = Py_BuildValue("i",_result); | |
1000 | return _resultobj; | |
1001 | } | |
1002 | ||
1003 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1004 | PyObject * _resultobj; | |
1005 | int * _arg0; | |
1006 | int temp; | |
1007 | int * _arg1; | |
1008 | int temp0; | |
1009 | char *_kwnames[] = { NULL }; | |
1010 | ||
1011 | self = self; | |
1012 | { | |
1013 | _arg0 = &temp; | |
1014 | } | |
1015 | { | |
1016 | _arg1 = &temp0; | |
1017 | } | |
1018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1019 | return NULL; | |
1020 | { | |
1021 | wxPy_BEGIN_ALLOW_THREADS; | |
1022 | wxDisplaySize(_arg0,_arg1); | |
1023 | ||
1024 | wxPy_END_ALLOW_THREADS; | |
1025 | } Py_INCREF(Py_None); | |
1026 | _resultobj = Py_None; | |
1027 | { | |
1028 | PyObject *o; | |
1029 | o = PyInt_FromLong((long) (*_arg0)); | |
1030 | _resultobj = t_output_helper(_resultobj, o); | |
1031 | } | |
1032 | { | |
1033 | PyObject *o; | |
1034 | o = PyInt_FromLong((long) (*_arg1)); | |
1035 | _resultobj = t_output_helper(_resultobj, o); | |
1036 | } | |
1037 | return _resultobj; | |
1038 | } | |
1039 | ||
1040 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject * _resultobj; | |
1042 | wxSize * _result; | |
1043 | char *_kwnames[] = { NULL }; | |
1044 | char _ptemp[128]; | |
1045 | ||
1046 | self = self; | |
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1048 | return NULL; | |
1049 | { | |
1050 | wxPy_BEGIN_ALLOW_THREADS; | |
1051 | _result = new wxSize (wxGetDisplaySize()); | |
1052 | ||
1053 | wxPy_END_ALLOW_THREADS; | |
1054 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1055 | _resultobj = Py_BuildValue("s",_ptemp); | |
1056 | return _resultobj; | |
1057 | } | |
1058 | ||
1059 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1060 | PyObject * _resultobj; | |
1061 | int * _arg0; | |
1062 | int temp; | |
1063 | int * _arg1; | |
1064 | int temp0; | |
1065 | char *_kwnames[] = { NULL }; | |
1066 | ||
1067 | self = self; | |
1068 | { | |
1069 | _arg0 = &temp; | |
1070 | } | |
1071 | { | |
1072 | _arg1 = &temp0; | |
1073 | } | |
1074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1075 | return NULL; | |
1076 | { | |
1077 | wxPy_BEGIN_ALLOW_THREADS; | |
1078 | wxDisplaySizeMM(_arg0,_arg1); | |
1079 | ||
1080 | wxPy_END_ALLOW_THREADS; | |
1081 | } Py_INCREF(Py_None); | |
1082 | _resultobj = Py_None; | |
1083 | { | |
1084 | PyObject *o; | |
1085 | o = PyInt_FromLong((long) (*_arg0)); | |
1086 | _resultobj = t_output_helper(_resultobj, o); | |
1087 | } | |
1088 | { | |
1089 | PyObject *o; | |
1090 | o = PyInt_FromLong((long) (*_arg1)); | |
1091 | _resultobj = t_output_helper(_resultobj, o); | |
1092 | } | |
1093 | return _resultobj; | |
1094 | } | |
1095 | ||
1096 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1097 | PyObject * _resultobj; | |
1098 | wxSize * _result; | |
1099 | char *_kwnames[] = { NULL }; | |
1100 | char _ptemp[128]; | |
1101 | ||
1102 | self = self; | |
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1104 | return NULL; | |
1105 | { | |
1106 | wxPy_BEGIN_ALLOW_THREADS; | |
1107 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1108 | ||
1109 | wxPy_END_ALLOW_THREADS; | |
1110 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1111 | _resultobj = Py_BuildValue("s",_ptemp); | |
1112 | return _resultobj; | |
1113 | } | |
1114 | ||
91c41b30 RD |
1115 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1116 | PyObject * _resultobj; | |
1117 | int * _arg0; | |
1118 | int temp; | |
1119 | int * _arg1; | |
1120 | int temp0; | |
1121 | int * _arg2; | |
1122 | int temp1; | |
1123 | int * _arg3; | |
1124 | int temp2; | |
1125 | char *_kwnames[] = { NULL }; | |
1126 | ||
1127 | self = self; | |
1128 | { | |
1129 | _arg0 = &temp; | |
1130 | } | |
1131 | { | |
1132 | _arg1 = &temp0; | |
1133 | } | |
1134 | { | |
1135 | _arg2 = &temp1; | |
1136 | } | |
1137 | { | |
1138 | _arg3 = &temp2; | |
1139 | } | |
1140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1141 | return NULL; | |
1142 | { | |
1143 | wxPy_BEGIN_ALLOW_THREADS; | |
1144 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); | |
1145 | ||
1146 | wxPy_END_ALLOW_THREADS; | |
1147 | } Py_INCREF(Py_None); | |
1148 | _resultobj = Py_None; | |
1149 | { | |
1150 | PyObject *o; | |
1151 | o = PyInt_FromLong((long) (*_arg0)); | |
1152 | _resultobj = t_output_helper(_resultobj, o); | |
1153 | } | |
1154 | { | |
1155 | PyObject *o; | |
1156 | o = PyInt_FromLong((long) (*_arg1)); | |
1157 | _resultobj = t_output_helper(_resultobj, o); | |
1158 | } | |
1159 | { | |
1160 | PyObject *o; | |
1161 | o = PyInt_FromLong((long) (*_arg2)); | |
1162 | _resultobj = t_output_helper(_resultobj, o); | |
1163 | } | |
1164 | { | |
1165 | PyObject *o; | |
1166 | o = PyInt_FromLong((long) (*_arg3)); | |
1167 | _resultobj = t_output_helper(_resultobj, o); | |
1168 | } | |
1169 | return _resultobj; | |
1170 | } | |
1171 | ||
1172 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject * _resultobj; | |
1174 | wxRect * _result; | |
1175 | char *_kwnames[] = { NULL }; | |
1176 | char _ptemp[128]; | |
1177 | ||
1178 | self = self; | |
1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1180 | return NULL; | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | _result = new wxRect (wxGetClientDisplayRect()); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1187 | _resultobj = Py_BuildValue("s",_ptemp); | |
1188 | return _resultobj; | |
1189 | } | |
1190 | ||
06c0fba4 RD |
1191 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1192 | PyObject * _resultobj; | |
1193 | wxCursor * _arg0; | |
1194 | PyObject * _argo0 = 0; | |
1195 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1196 | |
06c0fba4 RD |
1197 | self = self; |
1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1199 | return NULL; | |
1200 | if (_argo0) { | |
1201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1204 | return NULL; | |
1205 | } | |
f0261a72 | 1206 | } |
06c0fba4 RD |
1207 | { |
1208 | wxPy_BEGIN_ALLOW_THREADS; | |
1209 | wxSetCursor(*_arg0); | |
1210 | ||
1211 | wxPy_END_ALLOW_THREADS; | |
1212 | } Py_INCREF(Py_None); | |
1213 | _resultobj = Py_None; | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
efc5f224 | 1217 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1218 | PyObject * _resultobj; |
1219 | wxWindow * _result; | |
1220 | wxString * _arg0; | |
1d99702e | 1221 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1222 | PyObject * _obj0 = 0; |
1d99702e | 1223 | PyObject * _argo1 = 0; |
efc5f224 | 1224 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
1225 | |
1226 | self = self; | |
efc5f224 | 1227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1228 | return NULL; |
1229 | { | |
185d7c3e RD |
1230 | #if PYTHON_API_VERSION >= 1009 |
1231 | char* tmpPtr; int tmpSize; | |
1232 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1233 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1234 | return NULL; |
1235 | } | |
1236 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1237 | return NULL; | |
1238 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1239 | #else | |
bb0054cd RD |
1240 | if (!PyString_Check(_obj0)) { |
1241 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1242 | return NULL; | |
1243 | } | |
185d7c3e RD |
1244 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1245 | #endif | |
bb0054cd | 1246 | } |
1d99702e RD |
1247 | if (_argo1) { |
1248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1251 | return NULL; | |
1252 | } | |
1253 | } | |
1254 | { | |
1255 | wxPy_BEGIN_ALLOW_THREADS; | |
1256 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1257 | ||
1258 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1259 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1260 | { |
1261 | if (_obj0) | |
1262 | delete _arg0; | |
1263 | } | |
1264 | return _resultobj; | |
1265 | } | |
1266 | ||
efc5f224 | 1267 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1268 | PyObject * _resultobj; |
1269 | wxWindow * _result; | |
1270 | wxString * _arg0; | |
1d99702e | 1271 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1272 | PyObject * _obj0 = 0; |
1d99702e | 1273 | PyObject * _argo1 = 0; |
efc5f224 | 1274 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
1275 | |
1276 | self = self; | |
efc5f224 | 1277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1278 | return NULL; |
1279 | { | |
185d7c3e RD |
1280 | #if PYTHON_API_VERSION >= 1009 |
1281 | char* tmpPtr; int tmpSize; | |
1282 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1283 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1284 | return NULL; |
1285 | } | |
1286 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1287 | return NULL; | |
1288 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1289 | #else | |
bb0054cd RD |
1290 | if (!PyString_Check(_obj0)) { |
1291 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1292 | return NULL; | |
1293 | } | |
185d7c3e RD |
1294 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1295 | #endif | |
bb0054cd | 1296 | } |
1d99702e RD |
1297 | if (_argo1) { |
1298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1301 | return NULL; | |
1302 | } | |
1303 | } | |
1304 | { | |
1305 | wxPy_BEGIN_ALLOW_THREADS; | |
1306 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1307 | ||
1308 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1309 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1310 | { |
1311 | if (_obj0) | |
1312 | delete _arg0; | |
1313 | } | |
1314 | return _resultobj; | |
1315 | } | |
1316 | ||
06c0fba4 RD |
1317 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1318 | PyObject * _resultobj; | |
1319 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1320 | PyObject * _argo0 = 0; | |
1321 | char *_kwnames[] = { "cursor", NULL }; | |
1322 | ||
1323 | self = self; | |
1324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1325 | return NULL; | |
1326 | if (_argo0) { | |
1327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1330 | return NULL; | |
1331 | } | |
1332 | } | |
1333 | { | |
1334 | wxPy_BEGIN_ALLOW_THREADS; | |
1335 | wxBeginBusyCursor(_arg0); | |
1336 | ||
1337 | wxPy_END_ALLOW_THREADS; | |
1338 | } Py_INCREF(Py_None); | |
1339 | _resultobj = Py_None; | |
1340 | return _resultobj; | |
1341 | } | |
1342 | ||
1343 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1344 | PyObject * _resultobj; | |
1345 | wxWindow * _result; | |
1346 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1347 | |
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1350 | return NULL; | |
1351 | { | |
1352 | wxPy_BEGIN_ALLOW_THREADS; | |
1353 | _result = (wxWindow *)wxGetActiveWindow(); | |
1354 | ||
1355 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1356 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1357 | return _resultobj; |
1358 | } | |
1359 | ||
493f1553 RD |
1360 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1361 | PyObject * _resultobj; | |
1362 | wxWindow * _result; | |
1363 | wxPoint * _arg0; | |
1364 | wxPoint temp; | |
1365 | PyObject * _obj0 = 0; | |
1366 | char *_kwnames[] = { "pt", NULL }; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1370 | return NULL; | |
1371 | { | |
1372 | _arg0 = &temp; | |
1373 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1374 | return NULL; | |
1375 | } | |
1376 | { | |
1377 | wxPy_BEGIN_ALLOW_THREADS; | |
1378 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); | |
1379 | ||
1380 | wxPy_END_ALLOW_THREADS; | |
1381 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1382 | return _resultobj; | |
1383 | } | |
1384 | ||
1385 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject * _resultobj; | |
1387 | wxWindow * _result; | |
1388 | wxPoint * _arg0; | |
1389 | wxPoint temp; | |
1390 | PyObject * _obj0 = 0; | |
1391 | char *_kwnames[] = { "pt", NULL }; | |
1392 | ||
1393 | self = self; | |
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1395 | return NULL; | |
1396 | { | |
1397 | _arg0 = &temp; | |
1398 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1399 | return NULL; | |
1400 | } | |
1401 | { | |
1402 | wxPy_BEGIN_ALLOW_THREADS; | |
1403 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); | |
1404 | ||
1405 | wxPy_END_ALLOW_THREADS; | |
1406 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | bool _result; | |
1413 | wxWindow * _arg0; | |
1414 | PyObject * _argo0 = 0; | |
1415 | char *_kwnames[] = { "wnd", NULL }; | |
1416 | ||
1417 | self = self; | |
1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1419 | return NULL; | |
1420 | if (_argo0) { | |
1421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1424 | return NULL; | |
1425 | } | |
1426 | } | |
1427 | { | |
1428 | wxPy_BEGIN_ALLOW_THREADS; | |
1429 | _result = (bool )wxCheckForInterrupt(_arg0); | |
1430 | ||
1431 | wxPy_END_ALLOW_THREADS; | |
1432 | } _resultobj = Py_BuildValue("i",_result); | |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
25832b3f RD |
1436 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1437 | PyObject * _resultobj; | |
1438 | char *_kwnames[] = { NULL }; | |
1439 | ||
1440 | self = self; | |
1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1442 | return NULL; | |
1443 | { | |
1444 | wxPy_BEGIN_ALLOW_THREADS; | |
1445 | wxFlushEvents(); | |
1446 | ||
1447 | wxPy_END_ALLOW_THREADS; | |
1448 | } Py_INCREF(Py_None); | |
1449 | _resultobj = Py_None; | |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
06c0fba4 RD |
1453 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1454 | PyObject * _resultobj; | |
1455 | bool _result; | |
1456 | char * _arg0; | |
1457 | int _arg1; | |
1458 | char *_kwnames[] = { "name","value", NULL }; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1462 | return NULL; | |
1463 | { | |
1464 | wxPy_BEGIN_ALLOW_THREADS; | |
1465 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1466 | ||
1467 | wxPy_END_ALLOW_THREADS; | |
1468 | } _resultobj = Py_BuildValue("i",_result); | |
1469 | return _resultobj; | |
1470 | } | |
1471 | ||
1472 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1473 | PyObject * _resultobj; | |
1474 | char *_kwnames[] = { NULL }; | |
1475 | ||
1476 | self = self; | |
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1478 | return NULL; | |
1479 | { | |
1480 | wxPy_BEGIN_ALLOW_THREADS; | |
1481 | wxResourceClear(); | |
1482 | ||
1483 | wxPy_END_ALLOW_THREADS; | |
1484 | } Py_INCREF(Py_None); | |
1485 | _resultobj = Py_None; | |
1486 | return _resultobj; | |
1487 | } | |
1488 | ||
1489 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1490 | PyObject * _resultobj; | |
1491 | wxBitmap * _result; | |
1492 | char * _arg0; | |
1493 | char *_kwnames[] = { "resource", NULL }; | |
1494 | char _ptemp[128]; | |
1495 | ||
1496 | self = self; | |
1497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1498 | return NULL; | |
1499 | { | |
1500 | wxPy_BEGIN_ALLOW_THREADS; | |
1501 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1502 | ||
1503 | wxPy_END_ALLOW_THREADS; | |
1504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1505 | _resultobj = Py_BuildValue("s",_ptemp); | |
1506 | return _resultobj; | |
1507 | } | |
1508 | ||
1509 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject * _resultobj; | |
1511 | wxIcon * _result; | |
1512 | char * _arg0; | |
1513 | char *_kwnames[] = { "resource", NULL }; | |
1514 | char _ptemp[128]; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1518 | return NULL; | |
1519 | { | |
1520 | wxPy_BEGIN_ALLOW_THREADS; | |
1521 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1522 | ||
1523 | wxPy_END_ALLOW_THREADS; | |
1524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1525 | _resultobj = Py_BuildValue("s",_ptemp); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1530 | PyObject * _resultobj; | |
1531 | wxMenuBar * _result; | |
1532 | char * _arg0; | |
1533 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1534 | |
1535 | self = self; | |
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1537 | return NULL; | |
1538 | { | |
1539 | wxPy_BEGIN_ALLOW_THREADS; | |
1540 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1541 | ||
1542 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 1543 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1544 | return _resultobj; |
1545 | } | |
1546 | ||
1547 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1548 | PyObject * _resultobj; | |
1549 | int _result; | |
1550 | char * _arg0; | |
1551 | char *_kwnames[] = { "name", NULL }; | |
1552 | ||
1553 | self = self; | |
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1555 | return NULL; | |
1556 | { | |
1557 | wxPy_BEGIN_ALLOW_THREADS; | |
1558 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1559 | ||
1560 | wxPy_END_ALLOW_THREADS; | |
1561 | } _resultobj = Py_BuildValue("i",_result); | |
1562 | return _resultobj; | |
1563 | } | |
1564 | ||
1565 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | bool _result; | |
1568 | char * _arg0; | |
1569 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1570 | PyObject * _argo1 = 0; | |
1571 | char *_kwnames[] = { "resource","table", NULL }; | |
1572 | ||
1573 | self = self; | |
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1575 | return NULL; | |
1576 | if (_argo1) { | |
1577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1580 | return NULL; | |
1581 | } | |
1582 | } | |
1583 | { | |
1584 | wxPy_BEGIN_ALLOW_THREADS; | |
1585 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1586 | ||
1587 | wxPy_END_ALLOW_THREADS; | |
1588 | } _resultobj = Py_BuildValue("i",_result); | |
1589 | return _resultobj; | |
1590 | } | |
1591 | ||
1592 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1593 | PyObject * _resultobj; | |
1594 | bool _result; | |
1595 | char * _arg0; | |
1596 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1597 | PyObject * _argo1 = 0; | |
1598 | char *_kwnames[] = { "filename","table", NULL }; | |
1599 | ||
1600 | self = self; | |
1601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1602 | return NULL; | |
1603 | if (_argo1) { | |
1604 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1605 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1607 | return NULL; | |
1608 | } | |
1609 | } | |
1610 | { | |
1611 | wxPy_BEGIN_ALLOW_THREADS; | |
1612 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1613 | ||
1614 | wxPy_END_ALLOW_THREADS; | |
1615 | } _resultobj = Py_BuildValue("i",_result); | |
1616 | return _resultobj; | |
1617 | } | |
1618 | ||
1619 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject * _resultobj; | |
1621 | bool _result; | |
1622 | char * _arg0; | |
1623 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1624 | PyObject * _argo1 = 0; | |
1625 | char *_kwnames[] = { "resource","table", NULL }; | |
1626 | ||
1627 | self = self; | |
1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1629 | return NULL; | |
1630 | if (_argo1) { | |
1631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1634 | return NULL; | |
1635 | } | |
1636 | } | |
1637 | { | |
1638 | wxPy_BEGIN_ALLOW_THREADS; | |
1639 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1640 | ||
1641 | wxPy_END_ALLOW_THREADS; | |
1642 | } _resultobj = Py_BuildValue("i",_result); | |
1643 | return _resultobj; | |
1644 | } | |
1645 | ||
1646 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject * _resultobj; | |
1648 | wxColour * _result; | |
1649 | int _arg0; | |
1650 | char *_kwnames[] = { "index", NULL }; | |
1651 | char _ptemp[128]; | |
1652 | ||
1653 | self = self; | |
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1655 | return NULL; | |
1656 | { | |
1657 | wxPy_BEGIN_ALLOW_THREADS; | |
1658 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1659 | ||
1660 | wxPy_END_ALLOW_THREADS; | |
1661 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1662 | _resultobj = Py_BuildValue("s",_ptemp); | |
1663 | return _resultobj; | |
1664 | } | |
1665 | ||
1666 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject * _resultobj; | |
1668 | wxFont * _result; | |
1669 | int _arg0; | |
1670 | char *_kwnames[] = { "index", NULL }; | |
1671 | char _ptemp[128]; | |
1672 | ||
1673 | self = self; | |
1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1675 | return NULL; | |
1676 | { | |
1677 | wxPy_BEGIN_ALLOW_THREADS; | |
1678 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1679 | ||
1680 | wxPy_END_ALLOW_THREADS; | |
1681 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1682 | _resultobj = Py_BuildValue("s",_ptemp); | |
1683 | return _resultobj; | |
1684 | } | |
1685 | ||
1686 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject * _resultobj; | |
1688 | int _result; | |
1689 | int _arg0; | |
1690 | char *_kwnames[] = { "index", NULL }; | |
1691 | ||
1692 | self = self; | |
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1694 | return NULL; | |
1695 | { | |
1696 | wxPy_BEGIN_ALLOW_THREADS; | |
1697 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1698 | ||
1699 | wxPy_END_ALLOW_THREADS; | |
1700 | } _resultobj = Py_BuildValue("i",_result); | |
1701 | return _resultobj; | |
1702 | } | |
1703 | ||
f0261a72 RD |
1704 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1705 | PyObject * _resultobj; | |
1706 | int _result; | |
1707 | char *_kwnames[] = { NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1711 | return NULL; | |
1712 | { | |
1713 | wxPy_BEGIN_ALLOW_THREADS; | |
1714 | _result = (int )wxCaret_GetBlinkTime(); | |
1715 | ||
1716 | wxPy_END_ALLOW_THREADS; | |
1717 | } _resultobj = Py_BuildValue("i",_result); | |
1718 | return _resultobj; | |
1719 | } | |
1720 | ||
1721 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1722 | PyObject * _resultobj; | |
1723 | int _arg0; | |
1724 | char *_kwnames[] = { "milliseconds", NULL }; | |
1725 | ||
1726 | self = self; | |
1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1728 | return NULL; | |
1729 | { | |
1730 | wxPy_BEGIN_ALLOW_THREADS; | |
1731 | wxCaret_SetBlinkTime(_arg0); | |
1732 | ||
1733 | wxPy_END_ALLOW_THREADS; | |
1734 | } Py_INCREF(Py_None); | |
1735 | _resultobj = Py_None; | |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
6e18ca6c RD |
1739 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1740 | PyObject * _resultobj; | |
1741 | bool _result; | |
1742 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1743 | PyObject * _argo0 = 0; | |
1744 | char *_kwnames[] = { "win", NULL }; | |
1745 | ||
1746 | self = self; | |
1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1748 | return NULL; | |
1749 | if (_argo0) { | |
1750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
1756 | { | |
1757 | wxPy_BEGIN_ALLOW_THREADS; | |
1758 | _result = (bool )wxSafeYield(_arg0); | |
1759 | ||
1760 | wxPy_END_ALLOW_THREADS; | |
1761 | } _resultobj = Py_BuildValue("i",_result); | |
1762 | return _resultobj; | |
1763 | } | |
1764 | ||
b1462dfa RD |
1765 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1766 | PyObject * _resultobj; | |
1767 | wxEvtHandler * _arg0; | |
1768 | wxEvent * _arg1; | |
1769 | PyObject * _argo0 = 0; | |
1770 | PyObject * _argo1 = 0; | |
1771 | char *_kwnames[] = { "dest","event", NULL }; | |
1772 | ||
1773 | self = self; | |
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1775 | return NULL; | |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
1783 | if (_argo1) { | |
1784 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1785 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1787 | return NULL; | |
1788 | } | |
1789 | } | |
1790 | { | |
1791 | wxPy_BEGIN_ALLOW_THREADS; | |
1792 | wxPostEvent(_arg0,*_arg1); | |
1793 | ||
1794 | wxPy_END_ALLOW_THREADS; | |
1795 | } Py_INCREF(Py_None); | |
1796 | _resultobj = Py_None; | |
1797 | return _resultobj; | |
1798 | } | |
1799 | ||
694759cf RD |
1800 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1801 | PyObject * _resultobj; | |
1802 | char *_kwnames[] = { NULL }; | |
1803 | ||
1804 | self = self; | |
1805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1806 | return NULL; | |
1807 | { | |
1808 | wxPy_BEGIN_ALLOW_THREADS; | |
1809 | wxWakeUpIdle(); | |
1810 | ||
1811 | wxPy_END_ALLOW_THREADS; | |
1812 | } Py_INCREF(Py_None); | |
1813 | _resultobj = Py_None; | |
1814 | return _resultobj; | |
1815 | } | |
1816 | ||
6e18ca6c | 1817 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1818 | PyObject * _resultobj; |
6e18ca6c | 1819 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1820 | |
1821 | self = self; | |
6e18ca6c | 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1823 | return NULL; |
6e18ca6c RD |
1824 | { |
1825 | wxPy_BEGIN_ALLOW_THREADS; | |
1826 | wxWakeUpMainThread(); | |
1827 | ||
1828 | wxPy_END_ALLOW_THREADS; | |
1829 | } Py_INCREF(Py_None); | |
1830 | _resultobj = Py_None; | |
1831 | return _resultobj; | |
1832 | } | |
1833 | ||
1834 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject * _resultobj; | |
1836 | char *_kwnames[] = { NULL }; | |
1837 | ||
1838 | self = self; | |
1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1840 | return NULL; |
c368d904 RD |
1841 | { |
1842 | wxPy_BEGIN_ALLOW_THREADS; | |
6e18ca6c RD |
1843 | wxMutexGuiEnter(); |
1844 | ||
1845 | wxPy_END_ALLOW_THREADS; | |
1846 | } Py_INCREF(Py_None); | |
1847 | _resultobj = Py_None; | |
1848 | return _resultobj; | |
1849 | } | |
1850 | ||
1851 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject * _resultobj; | |
1853 | char *_kwnames[] = { NULL }; | |
1854 | ||
1855 | self = self; | |
1856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1857 | return NULL; | |
1858 | { | |
1859 | wxPy_BEGIN_ALLOW_THREADS; | |
1860 | wxMutexGuiLeave(); | |
1861 | ||
1862 | wxPy_END_ALLOW_THREADS; | |
1863 | } Py_INCREF(Py_None); | |
1864 | _resultobj = Py_None; | |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
1868 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject * _resultobj; | |
1870 | bool _result; | |
1871 | char *_kwnames[] = { NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1875 | return NULL; | |
1876 | { | |
1877 | wxPy_BEGIN_ALLOW_THREADS; | |
1878 | _result = (bool )wxThread_IsMain(); | |
c368d904 RD |
1879 | |
1880 | wxPy_END_ALLOW_THREADS; | |
1881 | } _resultobj = Py_BuildValue("i",_result); | |
1882 | return _resultobj; | |
1883 | } | |
1884 | ||
f6bcfd97 | 1885 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1886 | PyObject * _resultobj; |
f6bcfd97 BP |
1887 | bool _result; |
1888 | wxWindow * _arg0; | |
1889 | wxTipProvider * _arg1; | |
1890 | bool _arg2 = (bool ) TRUE; | |
1891 | PyObject * _argo0 = 0; | |
1892 | PyObject * _argo1 = 0; | |
1893 | int tempbool2 = (int) TRUE; | |
1894 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1895 | ||
1896 | self = self; | |
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1898 | return NULL; | |
1899 | if (_argo0) { | |
1900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1903 | return NULL; | |
1904 | } | |
1905 | } | |
1906 | if (_argo1) { | |
1907 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1908 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1910 | return NULL; | |
1911 | } | |
1912 | } | |
1913 | _arg2 = (bool ) tempbool2; | |
1914 | { | |
1915 | wxPy_BEGIN_ALLOW_THREADS; | |
1916 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1917 | ||
1918 | wxPy_END_ALLOW_THREADS; | |
1919 | } _resultobj = Py_BuildValue("i",_result); | |
1920 | return _resultobj; | |
1921 | } | |
1922 | ||
1923 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1924 | PyObject * _resultobj; | |
1925 | wxTipProvider * _result; | |
bb0054cd | 1926 | wxString * _arg0; |
f6bcfd97 | 1927 | size_t _arg1; |
bb0054cd | 1928 | PyObject * _obj0 = 0; |
f6bcfd97 | 1929 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1930 | char _ptemp[128]; |
1931 | ||
1932 | self = self; | |
f6bcfd97 | 1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1934 | return NULL; |
1935 | { | |
185d7c3e RD |
1936 | #if PYTHON_API_VERSION >= 1009 |
1937 | char* tmpPtr; int tmpSize; | |
1938 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1940 | return NULL; |
1941 | } | |
1942 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1943 | return NULL; | |
1944 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1945 | #else | |
bb0054cd RD |
1946 | if (!PyString_Check(_obj0)) { |
1947 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1948 | return NULL; | |
1949 | } | |
185d7c3e RD |
1950 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1951 | #endif | |
bb0054cd RD |
1952 | } |
1953 | { | |
1954 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1955 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd RD |
1956 | |
1957 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 1958 | } if (_result) { |
f6bcfd97 | 1959 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1960 | _resultobj = Py_BuildValue("s",_ptemp); |
1961 | } else { | |
1962 | Py_INCREF(Py_None); | |
1963 | _resultobj = Py_None; | |
1964 | } | |
bb0054cd RD |
1965 | { |
1966 | if (_obj0) | |
1967 | delete _arg0; | |
1968 | } | |
1969 | return _resultobj; | |
1970 | } | |
1971 | ||
f6bcfd97 | 1972 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1973 | PyObject * _resultobj; |
f6bcfd97 BP |
1974 | unsigned long _result; |
1975 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1976 | |
1977 | self = self; | |
f6bcfd97 | 1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1979 | return NULL; |
f0261a72 RD |
1980 | { |
1981 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1982 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 RD |
1983 | |
1984 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1985 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1986 | return _resultobj; |
1987 | } | |
1988 | ||
f6bcfd97 | 1989 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1990 | PyObject * _resultobj; |
f6bcfd97 BP |
1991 | char * _result; |
1992 | unsigned long _arg0 = (unsigned long ) 0; | |
1993 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1994 | |
1995 | self = self; | |
f6bcfd97 | 1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1997 | return NULL; |
f0261a72 RD |
1998 | { |
1999 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2000 | _result = (char *)wxSysErrorMsg(_arg0); |
f0261a72 RD |
2001 | |
2002 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2003 | } _resultobj = Py_BuildValue("s", _result); |
f0261a72 RD |
2004 | return _resultobj; |
2005 | } | |
2006 | ||
f6bcfd97 | 2007 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2008 | PyObject * _resultobj; |
f6bcfd97 BP |
2009 | char * _arg0; |
2010 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
2011 | |
2012 | self = self; | |
f6bcfd97 | 2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) |
f0261a72 | 2014 | return NULL; |
f0261a72 RD |
2015 | { |
2016 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2017 | wxLogFatalError(_arg0); |
f0261a72 RD |
2018 | |
2019 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2020 | } Py_INCREF(Py_None); |
2021 | _resultobj = Py_None; | |
f0261a72 RD |
2022 | return _resultobj; |
2023 | } | |
2024 | ||
f6bcfd97 | 2025 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2026 | PyObject * _resultobj; |
f6bcfd97 BP |
2027 | char * _arg0; |
2028 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
2029 | |
2030 | self = self; | |
f6bcfd97 | 2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) |
f0261a72 | 2032 | return NULL; |
f0261a72 RD |
2033 | { |
2034 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2035 | wxLogError(_arg0); |
f0261a72 RD |
2036 | |
2037 | wxPy_END_ALLOW_THREADS; | |
2038 | } Py_INCREF(Py_None); | |
2039 | _resultobj = Py_None; | |
f0261a72 RD |
2040 | return _resultobj; |
2041 | } | |
2042 | ||
f6bcfd97 BP |
2043 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2044 | PyObject * _resultobj; | |
2045 | char * _arg0; | |
2046 | char *_kwnames[] = { "szFormat", NULL }; | |
2047 | ||
2048 | self = self; | |
2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
2050 | return NULL; | |
2051 | { | |
2052 | wxPy_BEGIN_ALLOW_THREADS; | |
2053 | wxLogWarning(_arg0); | |
2054 | ||
2055 | wxPy_END_ALLOW_THREADS; | |
2056 | } Py_INCREF(Py_None); | |
2057 | _resultobj = Py_None; | |
2058 | return _resultobj; | |
2059 | } | |
2060 | ||
2061 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2062 | PyObject * _resultobj; | |
2063 | char * _arg0; | |
2064 | char *_kwnames[] = { "szFormat", NULL }; | |
2065 | ||
2066 | self = self; | |
2067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2068 | return NULL; | |
2069 | { | |
2070 | wxPy_BEGIN_ALLOW_THREADS; | |
2071 | wxLogMessage(_arg0); | |
2072 | ||
2073 | wxPy_END_ALLOW_THREADS; | |
2074 | } Py_INCREF(Py_None); | |
2075 | _resultobj = Py_None; | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject * _resultobj; | |
2081 | char * _arg0; | |
2082 | char *_kwnames[] = { "szFormat", NULL }; | |
2083 | ||
2084 | self = self; | |
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2086 | return NULL; | |
2087 | { | |
2088 | wxPy_BEGIN_ALLOW_THREADS; | |
2089 | wxLogInfo(_arg0); | |
2090 | ||
2091 | wxPy_END_ALLOW_THREADS; | |
2092 | } Py_INCREF(Py_None); | |
2093 | _resultobj = Py_None; | |
2094 | return _resultobj; | |
2095 | } | |
2096 | ||
2097 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2098 | PyObject * _resultobj; | |
2099 | char * _arg0; | |
2100 | char *_kwnames[] = { "szFormat", NULL }; | |
2101 | ||
2102 | self = self; | |
2103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2104 | return NULL; | |
2105 | { | |
2106 | wxPy_BEGIN_ALLOW_THREADS; | |
2107 | wxLogVerbose(_arg0); | |
2108 | ||
2109 | wxPy_END_ALLOW_THREADS; | |
2110 | } Py_INCREF(Py_None); | |
2111 | _resultobj = Py_None; | |
2112 | return _resultobj; | |
2113 | } | |
2114 | ||
2115 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject * _resultobj; | |
2117 | char * _arg0; | |
2118 | char *_kwnames[] = { "szFormat", NULL }; | |
2119 | ||
2120 | self = self; | |
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2122 | return NULL; | |
2123 | { | |
2124 | wxPy_BEGIN_ALLOW_THREADS; | |
2125 | wxLogStatus(_arg0); | |
2126 | ||
2127 | wxPy_END_ALLOW_THREADS; | |
2128 | } Py_INCREF(Py_None); | |
2129 | _resultobj = Py_None; | |
2130 | return _resultobj; | |
2131 | } | |
2132 | ||
2133 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2134 | PyObject * _resultobj; | |
2135 | wxFrame * _arg0; | |
2136 | char * _arg1; | |
2137 | PyObject * _argo0 = 0; | |
2138 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2139 | ||
2140 | self = self; | |
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2142 | return NULL; | |
2143 | if (_argo0) { | |
2144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2147 | return NULL; | |
2148 | } | |
2149 | } | |
2150 | { | |
2151 | wxPy_BEGIN_ALLOW_THREADS; | |
2152 | wxLogStatus(_arg0,_arg1); | |
2153 | ||
2154 | wxPy_END_ALLOW_THREADS; | |
2155 | } Py_INCREF(Py_None); | |
2156 | _resultobj = Py_None; | |
2157 | return _resultobj; | |
2158 | } | |
2159 | ||
2160 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2161 | PyObject * _resultobj; | |
2162 | char * _arg0; | |
2163 | char *_kwnames[] = { "szFormat", NULL }; | |
2164 | ||
2165 | self = self; | |
2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2167 | return NULL; | |
2168 | { | |
2169 | wxPy_BEGIN_ALLOW_THREADS; | |
2170 | wxLogSysError(_arg0); | |
2171 | ||
2172 | wxPy_END_ALLOW_THREADS; | |
2173 | } Py_INCREF(Py_None); | |
2174 | _resultobj = Py_None; | |
2175 | return _resultobj; | |
2176 | } | |
2177 | ||
c368d904 RD |
2178 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2179 | PyObject * _resultobj; | |
2180 | long _result; | |
2181 | wxString * _arg0; | |
2182 | int _arg1 = (int ) FALSE; | |
2183 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2184 | PyObject * _obj0 = 0; | |
2185 | PyObject * _argo2 = 0; | |
2186 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2187 | ||
2188 | self = self; | |
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2190 | return NULL; | |
2191 | { | |
185d7c3e RD |
2192 | #if PYTHON_API_VERSION >= 1009 |
2193 | char* tmpPtr; int tmpSize; | |
2194 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2195 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2196 | return NULL; |
2197 | } | |
2198 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2199 | return NULL; | |
2200 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2201 | #else | |
c368d904 RD |
2202 | if (!PyString_Check(_obj0)) { |
2203 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2204 | return NULL; | |
2205 | } | |
185d7c3e RD |
2206 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2207 | #endif | |
c368d904 RD |
2208 | } |
2209 | if (_argo2) { | |
2210 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2211 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2213 | return NULL; | |
2214 | } | |
2215 | } | |
2216 | { | |
2217 | wxPy_BEGIN_ALLOW_THREADS; | |
2218 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2219 | ||
2220 | wxPy_END_ALLOW_THREADS; | |
2221 | } _resultobj = Py_BuildValue("l",_result); | |
2222 | { | |
2223 | if (_obj0) | |
2224 | delete _arg0; | |
2225 | } | |
2226 | return _resultobj; | |
2227 | } | |
2228 | ||
493f1553 RD |
2229 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2230 | PyObject * _resultobj; | |
2231 | wxWave * _result; | |
2232 | wxString * _arg0; | |
2233 | PyObject * _obj0 = 0; | |
2234 | char *_kwnames[] = { "data", NULL }; | |
2235 | char _ptemp[128]; | |
2236 | ||
2237 | self = self; | |
2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2239 | return NULL; | |
2240 | { | |
2241 | #if PYTHON_API_VERSION >= 1009 | |
2242 | char* tmpPtr; int tmpSize; | |
2243 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2245 | return NULL; | |
2246 | } | |
2247 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2248 | return NULL; | |
2249 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2250 | #else | |
2251 | if (!PyString_Check(_obj0)) { | |
2252 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2253 | return NULL; | |
2254 | } | |
2255 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2256 | #endif | |
2257 | } | |
2258 | { | |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | _result = (wxWave *)wxWaveData(*_arg0); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
2263 | } if (_result) { | |
2264 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2265 | _resultobj = Py_BuildValue("s",_ptemp); | |
2266 | } else { | |
2267 | Py_INCREF(Py_None); | |
2268 | _resultobj = Py_None; | |
2269 | } | |
2270 | { | |
2271 | if (_obj0) | |
2272 | delete _arg0; | |
2273 | } | |
2274 | return _resultobj; | |
2275 | } | |
2276 | ||
b37c7e1d RD |
2277 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2278 | ||
2279 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2280 | return 1; | |
2281 | } | |
2282 | ||
2283 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2284 | PyObject * pyobj; | |
2285 | char ptemp[128]; | |
2286 | ||
2287 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2288 | pyobj = PyString_FromString(ptemp); | |
2289 | return pyobj; | |
2290 | } | |
2291 | ||
9416aa89 RD |
2292 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2293 | wxToolTip *src; | |
2294 | wxObject *dest; | |
2295 | src = (wxToolTip *) ptr; | |
2296 | dest = (wxObject *) src; | |
2297 | return (void *) dest; | |
2298 | } | |
2299 | ||
f6bcfd97 BP |
2300 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2301 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject * _resultobj; | |
2303 | wxToolTip * _result; | |
2304 | wxString * _arg0; | |
2305 | PyObject * _obj0 = 0; | |
2306 | char *_kwnames[] = { "tip", NULL }; | |
2307 | char _ptemp[128]; | |
2308 | ||
2309 | self = self; | |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2311 | return NULL; | |
2312 | { | |
185d7c3e RD |
2313 | #if PYTHON_API_VERSION >= 1009 |
2314 | char* tmpPtr; int tmpSize; | |
2315 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2316 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2317 | return NULL; |
2318 | } | |
2319 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2320 | return NULL; | |
2321 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2322 | #else | |
f6bcfd97 BP |
2323 | if (!PyString_Check(_obj0)) { |
2324 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2325 | return NULL; | |
2326 | } | |
185d7c3e RD |
2327 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2328 | #endif | |
f6bcfd97 BP |
2329 | } |
2330 | { | |
2331 | wxPy_BEGIN_ALLOW_THREADS; | |
2332 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2333 | ||
2334 | wxPy_END_ALLOW_THREADS; | |
2335 | } if (_result) { | |
2336 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2337 | _resultobj = Py_BuildValue("s",_ptemp); | |
2338 | } else { | |
2339 | Py_INCREF(Py_None); | |
2340 | _resultobj = Py_None; | |
2341 | } | |
2342 | { | |
2343 | if (_obj0) | |
2344 | delete _arg0; | |
2345 | } | |
2346 | return _resultobj; | |
2347 | } | |
2348 | ||
2349 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2350 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2351 | PyObject * _resultobj; | |
2352 | wxToolTip * _arg0; | |
2353 | wxString * _arg1; | |
2354 | PyObject * _argo0 = 0; | |
2355 | PyObject * _obj1 = 0; | |
2356 | char *_kwnames[] = { "self","tip", NULL }; | |
2357 | ||
2358 | self = self; | |
2359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2360 | return NULL; | |
2361 | if (_argo0) { | |
2362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2365 | return NULL; | |
2366 | } | |
2367 | } | |
2368 | { | |
185d7c3e RD |
2369 | #if PYTHON_API_VERSION >= 1009 |
2370 | char* tmpPtr; int tmpSize; | |
2371 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2372 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2373 | return NULL; |
2374 | } | |
2375 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2376 | return NULL; | |
2377 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2378 | #else | |
f6bcfd97 BP |
2379 | if (!PyString_Check(_obj1)) { |
2380 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2381 | return NULL; | |
2382 | } | |
185d7c3e RD |
2383 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2384 | #endif | |
f6bcfd97 BP |
2385 | } |
2386 | { | |
2387 | wxPy_BEGIN_ALLOW_THREADS; | |
2388 | wxToolTip_SetTip(_arg0,*_arg1); | |
2389 | ||
2390 | wxPy_END_ALLOW_THREADS; | |
2391 | } Py_INCREF(Py_None); | |
2392 | _resultobj = Py_None; | |
2393 | { | |
2394 | if (_obj1) | |
2395 | delete _arg1; | |
2396 | } | |
2397 | return _resultobj; | |
2398 | } | |
2399 | ||
2400 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2401 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2402 | PyObject * _resultobj; | |
2403 | wxString * _result; | |
2404 | wxToolTip * _arg0; | |
2405 | PyObject * _argo0 = 0; | |
2406 | char *_kwnames[] = { "self", NULL }; | |
2407 | ||
2408 | self = self; | |
2409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2410 | return NULL; | |
2411 | if (_argo0) { | |
2412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2415 | return NULL; | |
2416 | } | |
2417 | } | |
2418 | { | |
2419 | wxPy_BEGIN_ALLOW_THREADS; | |
2420 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2421 | ||
2422 | wxPy_END_ALLOW_THREADS; | |
2423 | }{ | |
2424 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2425 | } | |
2426 | { | |
2427 | delete _result; | |
2428 | } | |
2429 | return _resultobj; | |
2430 | } | |
2431 | ||
2432 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2433 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2434 | PyObject * _resultobj; | |
2435 | wxWindow * _result; | |
2436 | wxToolTip * _arg0; | |
2437 | PyObject * _argo0 = 0; | |
2438 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2439 | |
2440 | self = self; | |
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2442 | return NULL; | |
2443 | if (_argo0) { | |
2444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2447 | return NULL; | |
2448 | } | |
2449 | } | |
2450 | { | |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
2452 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2453 | ||
2454 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2455 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2456 | return _resultobj; |
2457 | } | |
2458 | ||
edf2f43e RD |
2459 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2460 | PyObject * _resultobj; | |
2461 | bool _arg0; | |
2462 | int tempbool0; | |
2463 | char *_kwnames[] = { "flag", NULL }; | |
2464 | ||
2465 | self = self; | |
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2467 | return NULL; | |
2468 | _arg0 = (bool ) tempbool0; | |
2469 | { | |
2470 | wxPy_BEGIN_ALLOW_THREADS; | |
2471 | wxToolTip::Enable(_arg0); | |
2472 | ||
2473 | wxPy_END_ALLOW_THREADS; | |
2474 | } Py_INCREF(Py_None); | |
2475 | _resultobj = Py_None; | |
2476 | return _resultobj; | |
2477 | } | |
2478 | ||
2479 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject * _resultobj; | |
2481 | long _arg0; | |
2482 | char *_kwnames[] = { "milliseconds", NULL }; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2486 | return NULL; | |
2487 | { | |
2488 | wxPy_BEGIN_ALLOW_THREADS; | |
2489 | wxToolTip::SetDelay(_arg0); | |
2490 | ||
2491 | wxPy_END_ALLOW_THREADS; | |
2492 | } Py_INCREF(Py_None); | |
2493 | _resultobj = Py_None; | |
2494 | return _resultobj; | |
2495 | } | |
2496 | ||
f6bcfd97 BP |
2497 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2498 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2499 | PyObject * _resultobj; | |
2500 | wxCaret * _result; | |
2501 | wxWindow * _arg0; | |
2502 | wxSize * _arg1; | |
2503 | PyObject * _argo0 = 0; | |
2504 | wxSize temp; | |
2505 | PyObject * _obj1 = 0; | |
2506 | char *_kwnames[] = { "window","size", NULL }; | |
2507 | char _ptemp[128]; | |
2508 | ||
2509 | self = self; | |
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2511 | return NULL; | |
2512 | if (_argo0) { | |
2513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2516 | return NULL; | |
2517 | } | |
2518 | } | |
2519 | { | |
2520 | _arg1 = &temp; | |
2521 | if (! wxSize_helper(_obj1, &_arg1)) | |
2522 | return NULL; | |
2523 | } | |
2524 | { | |
2525 | wxPy_BEGIN_ALLOW_THREADS; | |
2526 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2527 | ||
2528 | wxPy_END_ALLOW_THREADS; | |
2529 | } if (_result) { | |
2530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2531 | _resultobj = Py_BuildValue("s",_ptemp); | |
2532 | } else { | |
2533 | Py_INCREF(Py_None); | |
2534 | _resultobj = Py_None; | |
2535 | } | |
2536 | return _resultobj; | |
2537 | } | |
2538 | ||
2539 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2540 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject * _resultobj; | |
2542 | wxCaret * _arg0; | |
2543 | PyObject * _argo0 = 0; | |
2544 | char *_kwnames[] = { "self", NULL }; | |
2545 | ||
2546 | self = self; | |
2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2548 | return NULL; | |
2549 | if (_argo0) { | |
2550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2553 | return NULL; | |
2554 | } | |
2555 | } | |
2556 | { | |
2557 | wxPy_BEGIN_ALLOW_THREADS; | |
2558 | delete_wxCaret(_arg0); | |
2559 | ||
2560 | wxPy_END_ALLOW_THREADS; | |
2561 | } Py_INCREF(Py_None); | |
2562 | _resultobj = Py_None; | |
2563 | return _resultobj; | |
2564 | } | |
2565 | ||
2566 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2567 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2568 | PyObject * _resultobj; | |
2569 | bool _result; | |
2570 | wxCaret * _arg0; | |
2571 | PyObject * _argo0 = 0; | |
2572 | char *_kwnames[] = { "self", NULL }; | |
2573 | ||
2574 | self = self; | |
2575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2576 | return NULL; | |
2577 | if (_argo0) { | |
2578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2581 | return NULL; | |
2582 | } | |
2583 | } | |
2584 | { | |
2585 | wxPy_BEGIN_ALLOW_THREADS; | |
2586 | _result = (bool )wxCaret_IsOk(_arg0); | |
2587 | ||
2588 | wxPy_END_ALLOW_THREADS; | |
2589 | } _resultobj = Py_BuildValue("i",_result); | |
2590 | return _resultobj; | |
2591 | } | |
2592 | ||
2593 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2594 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2595 | PyObject * _resultobj; | |
2596 | bool _result; | |
2597 | wxCaret * _arg0; | |
2598 | PyObject * _argo0 = 0; | |
2599 | char *_kwnames[] = { "self", NULL }; | |
2600 | ||
2601 | self = self; | |
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2603 | return NULL; | |
2604 | if (_argo0) { | |
2605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2608 | return NULL; | |
2609 | } | |
2610 | } | |
2611 | { | |
2612 | wxPy_BEGIN_ALLOW_THREADS; | |
2613 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2614 | ||
2615 | wxPy_END_ALLOW_THREADS; | |
2616 | } _resultobj = Py_BuildValue("i",_result); | |
2617 | return _resultobj; | |
2618 | } | |
2619 | ||
2620 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2621 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2622 | PyObject * _resultobj; | |
2623 | wxCaret * _arg0; | |
2624 | int * _arg1; | |
2625 | int temp; | |
2626 | int * _arg2; | |
2627 | int temp0; | |
2628 | PyObject * _argo0 = 0; | |
2629 | char *_kwnames[] = { "self", NULL }; | |
2630 | ||
2631 | self = self; | |
2632 | { | |
2633 | _arg1 = &temp; | |
2634 | } | |
2635 | { | |
2636 | _arg2 = &temp0; | |
2637 | } | |
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2639 | return NULL; | |
2640 | if (_argo0) { | |
2641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2644 | return NULL; | |
2645 | } | |
2646 | } | |
2647 | { | |
2648 | wxPy_BEGIN_ALLOW_THREADS; | |
2649 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2650 | ||
2651 | wxPy_END_ALLOW_THREADS; | |
2652 | } Py_INCREF(Py_None); | |
2653 | _resultobj = Py_None; | |
2654 | { | |
2655 | PyObject *o; | |
2656 | o = PyInt_FromLong((long) (*_arg1)); | |
2657 | _resultobj = t_output_helper(_resultobj, o); | |
2658 | } | |
2659 | { | |
2660 | PyObject *o; | |
2661 | o = PyInt_FromLong((long) (*_arg2)); | |
2662 | _resultobj = t_output_helper(_resultobj, o); | |
2663 | } | |
2664 | return _resultobj; | |
2665 | } | |
2666 | ||
2667 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2668 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2669 | PyObject * _resultobj; | |
f6bcfd97 BP |
2670 | wxPoint * _result; |
2671 | wxCaret * _arg0; | |
2672 | PyObject * _argo0 = 0; | |
2673 | char *_kwnames[] = { "self", NULL }; | |
2674 | char _ptemp[128]; | |
2675 | ||
2676 | self = self; | |
2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2678 | return NULL; | |
2679 | if (_argo0) { | |
2680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2683 | return NULL; | |
2684 | } | |
2685 | } | |
2686 | { | |
2687 | wxPy_BEGIN_ALLOW_THREADS; | |
2688 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2689 | ||
2690 | wxPy_END_ALLOW_THREADS; | |
2691 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2692 | _resultobj = Py_BuildValue("s",_ptemp); | |
2693 | return _resultobj; | |
2694 | } | |
2695 | ||
2696 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2697 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2698 | PyObject * _resultobj; | |
2699 | wxCaret * _arg0; | |
2700 | int * _arg1; | |
2701 | int temp; | |
2702 | int * _arg2; | |
2703 | int temp0; | |
2704 | PyObject * _argo0 = 0; | |
2705 | char *_kwnames[] = { "self", NULL }; | |
2706 | ||
2707 | self = self; | |
2708 | { | |
2709 | _arg1 = &temp; | |
2710 | } | |
2711 | { | |
2712 | _arg2 = &temp0; | |
2713 | } | |
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2715 | return NULL; | |
2716 | if (_argo0) { | |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2720 | return NULL; | |
2721 | } | |
2722 | } | |
2723 | { | |
2724 | wxPy_BEGIN_ALLOW_THREADS; | |
2725 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2726 | ||
2727 | wxPy_END_ALLOW_THREADS; | |
2728 | } Py_INCREF(Py_None); | |
2729 | _resultobj = Py_None; | |
2730 | { | |
2731 | PyObject *o; | |
2732 | o = PyInt_FromLong((long) (*_arg1)); | |
2733 | _resultobj = t_output_helper(_resultobj, o); | |
2734 | } | |
2735 | { | |
2736 | PyObject *o; | |
2737 | o = PyInt_FromLong((long) (*_arg2)); | |
2738 | _resultobj = t_output_helper(_resultobj, o); | |
2739 | } | |
2740 | return _resultobj; | |
2741 | } | |
2742 | ||
2743 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2744 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2745 | PyObject * _resultobj; | |
2746 | wxSize * _result; | |
2747 | wxCaret * _arg0; | |
2748 | PyObject * _argo0 = 0; | |
2749 | char *_kwnames[] = { "self", NULL }; | |
2750 | char _ptemp[128]; | |
2751 | ||
2752 | self = self; | |
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2754 | return NULL; | |
2755 | if (_argo0) { | |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2759 | return NULL; | |
2760 | } | |
2761 | } | |
2762 | { | |
2763 | wxPy_BEGIN_ALLOW_THREADS; | |
2764 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2765 | ||
2766 | wxPy_END_ALLOW_THREADS; | |
2767 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2768 | _resultobj = Py_BuildValue("s",_ptemp); | |
2769 | return _resultobj; | |
2770 | } | |
2771 | ||
2772 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2773 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject * _resultobj; | |
2775 | wxWindow * _result; | |
2776 | wxCaret * _arg0; | |
2777 | PyObject * _argo0 = 0; | |
2778 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2779 | |
2780 | self = self; | |
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2782 | return NULL; | |
2783 | if (_argo0) { | |
2784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2787 | return NULL; | |
2788 | } | |
2789 | } | |
2790 | { | |
2791 | wxPy_BEGIN_ALLOW_THREADS; | |
2792 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2793 | ||
2794 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2795 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2796 | return _resultobj; |
2797 | } | |
2798 | ||
2799 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2800 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | wxCaret * _arg0; | |
2803 | int _arg1; | |
2804 | int _arg2; | |
2805 | PyObject * _argo0 = 0; | |
2806 | char *_kwnames[] = { "self","x","y", NULL }; | |
2807 | ||
2808 | self = self; | |
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2810 | return NULL; | |
2811 | if (_argo0) { | |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2815 | return NULL; | |
2816 | } | |
2817 | } | |
2818 | { | |
2819 | wxPy_BEGIN_ALLOW_THREADS; | |
2820 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2821 | ||
2822 | wxPy_END_ALLOW_THREADS; | |
2823 | } Py_INCREF(Py_None); | |
2824 | _resultobj = Py_None; | |
2825 | return _resultobj; | |
2826 | } | |
2827 | ||
2828 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2829 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject * _resultobj; | |
2831 | wxCaret * _arg0; | |
2832 | wxPoint * _arg1; | |
2833 | PyObject * _argo0 = 0; | |
2834 | wxPoint temp; | |
2835 | PyObject * _obj1 = 0; | |
2836 | char *_kwnames[] = { "self","pt", NULL }; | |
2837 | ||
2838 | self = self; | |
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2840 | return NULL; | |
2841 | if (_argo0) { | |
2842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2845 | return NULL; | |
2846 | } | |
2847 | } | |
2848 | { | |
2849 | _arg1 = &temp; | |
2850 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2851 | return NULL; | |
2852 | } | |
2853 | { | |
2854 | wxPy_BEGIN_ALLOW_THREADS; | |
2855 | wxCaret_Move(_arg0,*_arg1); | |
2856 | ||
2857 | wxPy_END_ALLOW_THREADS; | |
2858 | } Py_INCREF(Py_None); | |
2859 | _resultobj = Py_None; | |
2860 | return _resultobj; | |
2861 | } | |
2862 | ||
2863 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2864 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2865 | PyObject * _resultobj; | |
2866 | wxCaret * _arg0; | |
2867 | int _arg1; | |
2868 | int _arg2; | |
2869 | PyObject * _argo0 = 0; | |
2870 | char *_kwnames[] = { "self","width","height", NULL }; | |
2871 | ||
2872 | self = self; | |
2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2874 | return NULL; | |
2875 | if (_argo0) { | |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | { | |
2883 | wxPy_BEGIN_ALLOW_THREADS; | |
2884 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2885 | ||
2886 | wxPy_END_ALLOW_THREADS; | |
2887 | } Py_INCREF(Py_None); | |
2888 | _resultobj = Py_None; | |
2889 | return _resultobj; | |
2890 | } | |
2891 | ||
2892 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2893 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2894 | PyObject * _resultobj; | |
2895 | wxCaret * _arg0; | |
2896 | wxSize * _arg1; | |
2897 | PyObject * _argo0 = 0; | |
2898 | wxSize temp; | |
2899 | PyObject * _obj1 = 0; | |
2900 | char *_kwnames[] = { "self","size", NULL }; | |
2901 | ||
2902 | self = self; | |
2903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2904 | return NULL; | |
2905 | if (_argo0) { | |
2906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2909 | return NULL; | |
2910 | } | |
2911 | } | |
2912 | { | |
2913 | _arg1 = &temp; | |
2914 | if (! wxSize_helper(_obj1, &_arg1)) | |
2915 | return NULL; | |
2916 | } | |
2917 | { | |
2918 | wxPy_BEGIN_ALLOW_THREADS; | |
2919 | wxCaret_SetSize(_arg0,*_arg1); | |
2920 | ||
2921 | wxPy_END_ALLOW_THREADS; | |
2922 | } Py_INCREF(Py_None); | |
2923 | _resultobj = Py_None; | |
2924 | return _resultobj; | |
2925 | } | |
2926 | ||
2927 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2928 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2929 | PyObject * _resultobj; | |
2930 | wxCaret * _arg0; | |
2931 | int _arg1 = (int ) TRUE; | |
2932 | PyObject * _argo0 = 0; | |
2933 | char *_kwnames[] = { "self","show", NULL }; | |
2934 | ||
2935 | self = self; | |
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2937 | return NULL; | |
2938 | if (_argo0) { | |
2939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2942 | return NULL; | |
2943 | } | |
2944 | } | |
2945 | { | |
2946 | wxPy_BEGIN_ALLOW_THREADS; | |
2947 | wxCaret_Show(_arg0,_arg1); | |
2948 | ||
2949 | wxPy_END_ALLOW_THREADS; | |
2950 | } Py_INCREF(Py_None); | |
2951 | _resultobj = Py_None; | |
2952 | return _resultobj; | |
2953 | } | |
2954 | ||
2955 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2956 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2957 | PyObject * _resultobj; | |
2958 | wxCaret * _arg0; | |
2959 | PyObject * _argo0 = 0; | |
2960 | char *_kwnames[] = { "self", NULL }; | |
2961 | ||
2962 | self = self; | |
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2964 | return NULL; | |
2965 | if (_argo0) { | |
2966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2969 | return NULL; | |
2970 | } | |
2971 | } | |
2972 | { | |
2973 | wxPy_BEGIN_ALLOW_THREADS; | |
2974 | wxCaret_Hide(_arg0); | |
2975 | ||
2976 | wxPy_END_ALLOW_THREADS; | |
2977 | } Py_INCREF(Py_None); | |
2978 | _resultobj = Py_None; | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
2982 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2983 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxPyFontEnumerator * _result; | |
2986 | char *_kwnames[] = { NULL }; | |
2987 | char _ptemp[128]; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2991 | return NULL; | |
2992 | { | |
2993 | wxPy_BEGIN_ALLOW_THREADS; | |
2994 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2995 | ||
2996 | wxPy_END_ALLOW_THREADS; | |
2997 | } if (_result) { | |
2998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2999 | _resultobj = Py_BuildValue("s",_ptemp); | |
3000 | } else { | |
3001 | Py_INCREF(Py_None); | |
3002 | _resultobj = Py_None; | |
3003 | } | |
3004 | return _resultobj; | |
3005 | } | |
3006 | ||
3007 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
3008 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject * _resultobj; | |
3010 | wxPyFontEnumerator * _arg0; | |
3011 | PyObject * _argo0 = 0; | |
3012 | char *_kwnames[] = { "self", NULL }; | |
3013 | ||
3014 | self = self; | |
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
3016 | return NULL; | |
3017 | if (_argo0) { | |
3018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
3021 | return NULL; | |
3022 | } | |
3023 | } | |
3024 | { | |
3025 | wxPy_BEGIN_ALLOW_THREADS; | |
3026 | delete_wxPyFontEnumerator(_arg0); | |
3027 | ||
3028 | wxPy_END_ALLOW_THREADS; | |
3029 | } Py_INCREF(Py_None); | |
3030 | _resultobj = Py_None; | |
3031 | return _resultobj; | |
3032 | } | |
3033 | ||
0122b7e3 RD |
3034 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3035 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
3036 | PyObject * _resultobj; |
3037 | wxPyFontEnumerator * _arg0; | |
3038 | PyObject * _arg1; | |
3039 | PyObject * _arg2; | |
3040 | PyObject * _argo0 = 0; | |
3041 | PyObject * _obj1 = 0; | |
3042 | PyObject * _obj2 = 0; | |
3043 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3044 | ||
3045 | self = self; | |
0122b7e3 | 3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
3047 | return NULL; |
3048 | if (_argo0) { | |
3049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
0122b7e3 | 3051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); |
f6bcfd97 BP |
3052 | return NULL; |
3053 | } | |
3054 | } | |
3055 | { | |
3056 | _arg1 = _obj1; | |
3057 | } | |
3058 | { | |
3059 | _arg2 = _obj2; | |
3060 | } | |
3061 | { | |
3062 | wxPy_BEGIN_ALLOW_THREADS; | |
0122b7e3 | 3063 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 BP |
3064 | |
3065 | wxPy_END_ALLOW_THREADS; | |
3066 | } Py_INCREF(Py_None); | |
3067 | _resultobj = Py_None; | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
3071 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3072 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3073 | PyObject * _resultobj; | |
3074 | bool _result; | |
3075 | wxPyFontEnumerator * _arg0; | |
3076 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3077 | bool _arg2 = (bool ) FALSE; | |
3078 | PyObject * _argo0 = 0; | |
3079 | int tempbool2 = (int) FALSE; | |
3080 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | _arg2 = (bool ) tempbool2; | |
3093 | { | |
3094 | wxPy_BEGIN_ALLOW_THREADS; | |
3095 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
3096 | ||
3097 | wxPy_END_ALLOW_THREADS; | |
3098 | } _resultobj = Py_BuildValue("i",_result); | |
3099 | return _resultobj; | |
3100 | } | |
3101 | ||
3102 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3103 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3104 | PyObject * _resultobj; | |
3105 | bool _result; | |
3106 | wxPyFontEnumerator * _arg0; | |
3107 | char * _arg1 = (char *) ""; | |
3108 | PyObject * _argo0 = 0; | |
3109 | char *_kwnames[] = { "self","facename", NULL }; | |
3110 | ||
3111 | self = self; | |
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3113 | return NULL; | |
3114 | if (_argo0) { | |
3115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | { | |
3122 | wxPy_BEGIN_ALLOW_THREADS; | |
3123 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
3124 | ||
3125 | wxPy_END_ALLOW_THREADS; | |
3126 | } _resultobj = Py_BuildValue("i",_result); | |
3127 | return _resultobj; | |
3128 | } | |
3129 | ||
3130 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3131 | wxArrayString* arr = self->GetEncodings(); | |
b37c7e1d | 3132 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
3133 | } |
3134 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3135 | PyObject * _resultobj; | |
3136 | PyObject * _result; | |
3137 | wxPyFontEnumerator * _arg0; | |
3138 | PyObject * _argo0 = 0; | |
3139 | char *_kwnames[] = { "self", NULL }; | |
3140 | ||
3141 | self = self; | |
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3143 | return NULL; | |
3144 | if (_argo0) { | |
3145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3148 | return NULL; | |
3149 | } | |
3150 | } | |
3151 | { | |
3152 | wxPy_BEGIN_ALLOW_THREADS; | |
3153 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
3154 | ||
3155 | wxPy_END_ALLOW_THREADS; | |
3156 | }{ | |
3157 | _resultobj = _result; | |
3158 | } | |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
3162 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3163 | wxArrayString* arr = self->GetFacenames(); | |
b37c7e1d | 3164 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
3165 | } |
3166 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3167 | PyObject * _resultobj; | |
3168 | PyObject * _result; | |
3169 | wxPyFontEnumerator * _arg0; | |
3170 | PyObject * _argo0 = 0; | |
3171 | char *_kwnames[] = { "self", NULL }; | |
3172 | ||
3173 | self = self; | |
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3175 | return NULL; | |
3176 | if (_argo0) { | |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3180 | return NULL; | |
3181 | } | |
3182 | } | |
3183 | { | |
3184 | wxPy_BEGIN_ALLOW_THREADS; | |
3185 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3186 | ||
3187 | wxPy_END_ALLOW_THREADS; | |
3188 | }{ | |
3189 | _resultobj = _result; | |
3190 | } | |
3191 | return _resultobj; | |
3192 | } | |
3193 | ||
3194 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3195 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | wxBusyCursor * _result; | |
3198 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3199 | PyObject * _argo0 = 0; | |
3200 | char *_kwnames[] = { "cursor", NULL }; | |
3201 | char _ptemp[128]; | |
3202 | ||
3203 | self = self; | |
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3205 | return NULL; | |
3206 | if (_argo0) { | |
3207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
3213 | { | |
3214 | wxPy_BEGIN_ALLOW_THREADS; | |
3215 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3216 | ||
3217 | wxPy_END_ALLOW_THREADS; | |
3218 | } if (_result) { | |
3219 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3220 | _resultobj = Py_BuildValue("s",_ptemp); | |
3221 | } else { | |
3222 | Py_INCREF(Py_None); | |
3223 | _resultobj = Py_None; | |
3224 | } | |
3225 | return _resultobj; | |
3226 | } | |
3227 | ||
3228 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3229 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject * _resultobj; | |
3231 | wxBusyCursor * _arg0; | |
3232 | PyObject * _argo0 = 0; | |
3233 | char *_kwnames[] = { "self", NULL }; | |
3234 | ||
3235 | self = self; | |
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3237 | return NULL; | |
3238 | if (_argo0) { | |
3239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3242 | return NULL; | |
3243 | } | |
3244 | } | |
3245 | { | |
3246 | wxPy_BEGIN_ALLOW_THREADS; | |
3247 | delete_wxBusyCursor(_arg0); | |
3248 | ||
3249 | wxPy_END_ALLOW_THREADS; | |
3250 | } Py_INCREF(Py_None); | |
3251 | _resultobj = Py_None; | |
3252 | return _resultobj; | |
3253 | } | |
3254 | ||
c368d904 RD |
3255 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3256 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject * _resultobj; | |
3258 | wxWindowDisabler * _result; | |
3259 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3260 | PyObject * _argo0 = 0; | |
3261 | char *_kwnames[] = { "winToSkip", NULL }; | |
3262 | char _ptemp[128]; | |
3263 | ||
3264 | self = self; | |
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3266 | return NULL; | |
3267 | if (_argo0) { | |
3268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3271 | return NULL; | |
3272 | } | |
3273 | } | |
3274 | { | |
3275 | wxPy_BEGIN_ALLOW_THREADS; | |
3276 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3277 | ||
3278 | wxPy_END_ALLOW_THREADS; | |
3279 | } if (_result) { | |
3280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3281 | _resultobj = Py_BuildValue("s",_ptemp); | |
3282 | } else { | |
3283 | Py_INCREF(Py_None); | |
3284 | _resultobj = Py_None; | |
3285 | } | |
3286 | return _resultobj; | |
3287 | } | |
3288 | ||
3289 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3290 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3291 | PyObject * _resultobj; | |
3292 | wxWindowDisabler * _arg0; | |
3293 | PyObject * _argo0 = 0; | |
3294 | char *_kwnames[] = { "self", NULL }; | |
3295 | ||
3296 | self = self; | |
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3298 | return NULL; | |
3299 | if (_argo0) { | |
3300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3303 | return NULL; | |
3304 | } | |
3305 | } | |
3306 | { | |
3307 | wxPy_BEGIN_ALLOW_THREADS; | |
3308 | delete_wxWindowDisabler(_arg0); | |
3309 | ||
3310 | wxPy_END_ALLOW_THREADS; | |
3311 | } Py_INCREF(Py_None); | |
3312 | _resultobj = Py_None; | |
3313 | return _resultobj; | |
3314 | } | |
3315 | ||
6e18ca6c RD |
3316 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3317 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3318 | PyObject * _resultobj; | |
3319 | wxMutexGuiLocker * _result; | |
3320 | char *_kwnames[] = { NULL }; | |
3321 | char _ptemp[128]; | |
3322 | ||
3323 | self = self; | |
3324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3325 | return NULL; | |
3326 | { | |
3327 | wxPy_BEGIN_ALLOW_THREADS; | |
3328 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); | |
3329 | ||
3330 | wxPy_END_ALLOW_THREADS; | |
3331 | } if (_result) { | |
3332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3333 | _resultobj = Py_BuildValue("s",_ptemp); | |
3334 | } else { | |
3335 | Py_INCREF(Py_None); | |
3336 | _resultobj = Py_None; | |
3337 | } | |
3338 | return _resultobj; | |
3339 | } | |
3340 | ||
3341 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3342 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3343 | PyObject * _resultobj; | |
3344 | wxMutexGuiLocker * _arg0; | |
3345 | PyObject * _argo0 = 0; | |
3346 | char *_kwnames[] = { "self", NULL }; | |
3347 | ||
3348 | self = self; | |
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3350 | return NULL; | |
3351 | if (_argo0) { | |
3352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3355 | return NULL; | |
3356 | } | |
3357 | } | |
3358 | { | |
3359 | wxPy_BEGIN_ALLOW_THREADS; | |
3360 | delete_wxMutexGuiLocker(_arg0); | |
3361 | ||
3362 | wxPy_END_ALLOW_THREADS; | |
3363 | } Py_INCREF(Py_None); | |
3364 | _resultobj = Py_None; | |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
f6bcfd97 BP |
3368 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3369 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject * _resultobj; | |
3371 | wxTipProvider * _arg0; | |
3372 | PyObject * _argo0 = 0; | |
3373 | char *_kwnames[] = { "self", NULL }; | |
3374 | ||
3375 | self = self; | |
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3377 | return NULL; | |
3378 | if (_argo0) { | |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3382 | return NULL; | |
3383 | } | |
3384 | } | |
3385 | { | |
3386 | wxPy_BEGIN_ALLOW_THREADS; | |
3387 | delete_wxTipProvider(_arg0); | |
3388 | ||
3389 | wxPy_END_ALLOW_THREADS; | |
3390 | } Py_INCREF(Py_None); | |
3391 | _resultobj = Py_None; | |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3396 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject * _resultobj; | |
3398 | wxString * _result; | |
3399 | wxTipProvider * _arg0; | |
3400 | PyObject * _argo0 = 0; | |
3401 | char *_kwnames[] = { "self", NULL }; | |
3402 | ||
3403 | self = self; | |
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3405 | return NULL; | |
3406 | if (_argo0) { | |
3407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3410 | return NULL; | |
3411 | } | |
3412 | } | |
3413 | { | |
3414 | wxPy_BEGIN_ALLOW_THREADS; | |
3415 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3416 | ||
3417 | wxPy_END_ALLOW_THREADS; | |
3418 | }{ | |
3419 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3420 | } | |
3421 | { | |
3422 | delete _result; | |
3423 | } | |
3424 | return _resultobj; | |
3425 | } | |
3426 | ||
3427 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3428 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3429 | PyObject * _resultobj; | |
3430 | size_t _result; | |
3431 | wxTipProvider * _arg0; | |
3432 | PyObject * _argo0 = 0; | |
3433 | char *_kwnames[] = { "self", NULL }; | |
3434 | ||
3435 | self = self; | |
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3437 | return NULL; | |
3438 | if (_argo0) { | |
3439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3442 | return NULL; | |
3443 | } | |
3444 | } | |
3445 | { | |
3446 | wxPy_BEGIN_ALLOW_THREADS; | |
3447 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3448 | ||
3449 | wxPy_END_ALLOW_THREADS; | |
3450 | } _resultobj = Py_BuildValue("i",_result); | |
3451 | return _resultobj; | |
3452 | } | |
3453 | ||
3454 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3455 | wxPyTipProvider *src; | |
3456 | wxTipProvider *dest; | |
3457 | src = (wxPyTipProvider *) ptr; | |
3458 | dest = (wxTipProvider *) src; | |
3459 | return (void *) dest; | |
3460 | } | |
3461 | ||
3462 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3463 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3464 | PyObject * _resultobj; | |
3465 | wxPyTipProvider * _result; | |
3466 | size_t _arg0; | |
3467 | char *_kwnames[] = { "currentTip", NULL }; | |
3468 | char _ptemp[128]; | |
3469 | ||
3470 | self = self; | |
3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3472 | return NULL; | |
3473 | { | |
3474 | wxPy_BEGIN_ALLOW_THREADS; | |
3475 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3476 | ||
3477 | wxPy_END_ALLOW_THREADS; | |
3478 | } if (_result) { | |
3479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3480 | _resultobj = Py_BuildValue("s",_ptemp); | |
3481 | } else { | |
3482 | Py_INCREF(Py_None); | |
3483 | _resultobj = Py_None; | |
3484 | } | |
3485 | return _resultobj; | |
3486 | } | |
3487 | ||
9416aa89 RD |
3488 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3489 | wxGenericDragImage *src; | |
3490 | wxObject *dest; | |
3491 | src = (wxGenericDragImage *) ptr; | |
3492 | dest = (wxObject *) src; | |
3493 | return (void *) dest; | |
3494 | } | |
3495 | ||
10e07c70 | 3496 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3497 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3498 | PyObject * _resultobj; | |
3499 | wxGenericDragImage * _result; | |
3500 | wxBitmap * _arg0; | |
3501 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3502 | PyObject * _argo0 = 0; |
3503 | PyObject * _argo1 = 0; | |
10e07c70 | 3504 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3505 | char _ptemp[128]; |
3506 | ||
3507 | self = self; | |
10e07c70 | 3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3509 | return NULL; |
3510 | if (_argo0) { | |
3511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3514 | return NULL; | |
3515 | } | |
3516 | } | |
3517 | if (_argo1) { | |
3518 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3519 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3521 | return NULL; | |
3522 | } | |
3523 | } | |
f6bcfd97 BP |
3524 | { |
3525 | wxPy_BEGIN_ALLOW_THREADS; | |
10e07c70 | 3526 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 BP |
3527 | |
3528 | wxPy_END_ALLOW_THREADS; | |
3529 | } if (_result) { | |
3530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3531 | _resultobj = Py_BuildValue("s",_ptemp); | |
3532 | } else { | |
3533 | Py_INCREF(Py_None); | |
3534 | _resultobj = Py_None; | |
3535 | } | |
3536 | return _resultobj; | |
3537 | } | |
3538 | ||
cdf14688 RD |
3539 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3540 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject * _resultobj; | |
3542 | wxGenericDragImage * _result; | |
3543 | wxIcon * _arg0; | |
3544 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3545 | PyObject * _argo0 = 0; | |
3546 | PyObject * _argo1 = 0; | |
3547 | char *_kwnames[] = { "image","cursor", NULL }; | |
3548 | char _ptemp[128]; | |
3549 | ||
3550 | self = self; | |
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3552 | return NULL; | |
3553 | if (_argo0) { | |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3557 | return NULL; | |
3558 | } | |
3559 | } | |
3560 | if (_argo1) { | |
3561 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3562 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3564 | return NULL; | |
3565 | } | |
3566 | } | |
3567 | { | |
3568 | wxPy_BEGIN_ALLOW_THREADS; | |
3569 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); | |
3570 | ||
3571 | wxPy_END_ALLOW_THREADS; | |
3572 | } if (_result) { | |
3573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3574 | _resultobj = Py_BuildValue("s",_ptemp); | |
3575 | } else { | |
3576 | Py_INCREF(Py_None); | |
3577 | _resultobj = Py_None; | |
3578 | } | |
3579 | return _resultobj; | |
3580 | } | |
3581 | ||
3582 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3583 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject * _resultobj; | |
3585 | wxGenericDragImage * _result; | |
3586 | wxString * _arg0; | |
3587 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3588 | PyObject * _obj0 = 0; | |
3589 | PyObject * _argo1 = 0; | |
3590 | char *_kwnames[] = { "str","cursor", NULL }; | |
3591 | char _ptemp[128]; | |
3592 | ||
3593 | self = self; | |
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3595 | return NULL; | |
3596 | { | |
3597 | #if PYTHON_API_VERSION >= 1009 | |
3598 | char* tmpPtr; int tmpSize; | |
3599 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3600 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3601 | return NULL; | |
3602 | } | |
3603 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3604 | return NULL; | |
3605 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3606 | #else | |
3607 | if (!PyString_Check(_obj0)) { | |
3608 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3609 | return NULL; | |
3610 | } | |
3611 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3612 | #endif | |
3613 | } | |
3614 | if (_argo1) { | |
3615 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3616 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3618 | return NULL; | |
3619 | } | |
3620 | } | |
3621 | { | |
3622 | wxPy_BEGIN_ALLOW_THREADS; | |
3623 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); | |
3624 | ||
3625 | wxPy_END_ALLOW_THREADS; | |
3626 | } if (_result) { | |
3627 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3628 | _resultobj = Py_BuildValue("s",_ptemp); | |
3629 | } else { | |
3630 | Py_INCREF(Py_None); | |
3631 | _resultobj = Py_None; | |
3632 | } | |
3633 | { | |
3634 | if (_obj0) | |
3635 | delete _arg0; | |
3636 | } | |
3637 | return _resultobj; | |
3638 | } | |
3639 | ||
3640 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3641 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3642 | PyObject * _resultobj; | |
3643 | wxGenericDragImage * _result; | |
3644 | wxTreeCtrl * _arg0; | |
3645 | wxTreeItemId * _arg1; | |
3646 | PyObject * _argo0 = 0; | |
3647 | PyObject * _argo1 = 0; | |
3648 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3649 | char _ptemp[128]; | |
3650 | ||
3651 | self = self; | |
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3653 | return NULL; | |
3654 | if (_argo0) { | |
3655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
3661 | if (_argo1) { | |
3662 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
3668 | { | |
3669 | wxPy_BEGIN_ALLOW_THREADS; | |
3670 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); | |
3671 | ||
3672 | wxPy_END_ALLOW_THREADS; | |
3673 | } if (_result) { | |
3674 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3675 | _resultobj = Py_BuildValue("s",_ptemp); | |
3676 | } else { | |
3677 | Py_INCREF(Py_None); | |
3678 | _resultobj = Py_None; | |
3679 | } | |
3680 | return _resultobj; | |
3681 | } | |
3682 | ||
3683 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3684 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3685 | PyObject * _resultobj; | |
3686 | wxGenericDragImage * _result; | |
3687 | wxListCtrl * _arg0; | |
3688 | long _arg1; | |
3689 | PyObject * _argo0 = 0; | |
3690 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3691 | char _ptemp[128]; | |
3692 | ||
3693 | self = self; | |
3694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3695 | return NULL; | |
3696 | if (_argo0) { | |
3697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3700 | return NULL; | |
3701 | } | |
3702 | } | |
3703 | { | |
3704 | wxPy_BEGIN_ALLOW_THREADS; | |
3705 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); | |
3706 | ||
3707 | wxPy_END_ALLOW_THREADS; | |
3708 | } if (_result) { | |
3709 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3710 | _resultobj = Py_BuildValue("s",_ptemp); | |
3711 | } else { | |
3712 | Py_INCREF(Py_None); | |
3713 | _resultobj = Py_None; | |
3714 | } | |
3715 | return _resultobj; | |
3716 | } | |
3717 | ||
f6bcfd97 BP |
3718 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3719 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3720 | PyObject * _resultobj; | |
3721 | wxGenericDragImage * _arg0; | |
3722 | PyObject * _argo0 = 0; | |
3723 | char *_kwnames[] = { "self", NULL }; | |
3724 | ||
3725 | self = self; | |
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3727 | return NULL; | |
3728 | if (_argo0) { | |
3729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3732 | return NULL; | |
3733 | } | |
3734 | } | |
3735 | { | |
3736 | wxPy_BEGIN_ALLOW_THREADS; | |
3737 | delete_wxGenericDragImage(_arg0); | |
3738 | ||
3739 | wxPy_END_ALLOW_THREADS; | |
3740 | } Py_INCREF(Py_None); | |
3741 | _resultobj = Py_None; | |
3742 | return _resultobj; | |
3743 | } | |
3744 | ||
10e07c70 RD |
3745 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3746 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject * _resultobj; | |
3748 | wxGenericDragImage * _arg0; | |
3749 | wxBitmap * _arg1; | |
3750 | PyObject * _argo0 = 0; | |
3751 | PyObject * _argo1 = 0; | |
3752 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3753 | ||
3754 | self = self; | |
3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3756 | return NULL; | |
3757 | if (_argo0) { | |
3758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3761 | return NULL; | |
3762 | } | |
3763 | } | |
3764 | if (_argo1) { | |
3765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3768 | return NULL; | |
3769 | } | |
3770 | } | |
3771 | { | |
3772 | wxPy_BEGIN_ALLOW_THREADS; | |
3773 | wxDragImage_SetBackingBitmap(_arg0,_arg1); | |
3774 | ||
3775 | wxPy_END_ALLOW_THREADS; | |
3776 | } Py_INCREF(Py_None); | |
3777 | _resultobj = Py_None; | |
3778 | return _resultobj; | |
3779 | } | |
3780 | ||
f6bcfd97 BP |
3781 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3782 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3783 | PyObject * _resultobj; | |
3784 | bool _result; | |
3785 | wxGenericDragImage * _arg0; | |
3786 | wxPoint * _arg1; | |
3787 | wxWindow * _arg2; | |
3788 | bool _arg3 = (bool ) FALSE; | |
3789 | wxRect * _arg4 = (wxRect *) NULL; | |
3790 | PyObject * _argo0 = 0; | |
3791 | wxPoint temp; | |
3792 | PyObject * _obj1 = 0; | |
3793 | PyObject * _argo2 = 0; | |
3794 | int tempbool3 = (int) FALSE; | |
3795 | wxRect temp0; | |
3796 | PyObject * _obj4 = 0; | |
3797 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3798 | ||
3799 | self = self; | |
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3801 | return NULL; | |
3802 | if (_argo0) { | |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
3810 | _arg1 = &temp; | |
3811 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3812 | return NULL; | |
3813 | } | |
3814 | if (_argo2) { | |
3815 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3816 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3818 | return NULL; | |
3819 | } | |
3820 | } | |
3821 | _arg3 = (bool ) tempbool3; | |
3822 | if (_obj4) | |
3823 | { | |
3824 | _arg4 = &temp0; | |
3825 | if (! wxRect_helper(_obj4, &_arg4)) | |
3826 | return NULL; | |
3827 | } | |
3828 | { | |
3829 | wxPy_BEGIN_ALLOW_THREADS; | |
3830 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3831 | ||
3832 | wxPy_END_ALLOW_THREADS; | |
3833 | } _resultobj = Py_BuildValue("i",_result); | |
3834 | return _resultobj; | |
3835 | } | |
3836 | ||
3837 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3838 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject * _resultobj; | |
3840 | bool _result; | |
3841 | wxGenericDragImage * _arg0; | |
3842 | wxPoint * _arg1; | |
3843 | wxWindow * _arg2; | |
3844 | wxWindow * _arg3; | |
3845 | PyObject * _argo0 = 0; | |
3846 | wxPoint temp; | |
3847 | PyObject * _obj1 = 0; | |
3848 | PyObject * _argo2 = 0; | |
3849 | PyObject * _argo3 = 0; | |
3850 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3851 | ||
3852 | self = self; | |
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3854 | return NULL; | |
3855 | if (_argo0) { | |
3856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3859 | return NULL; | |
3860 | } | |
3861 | } | |
3862 | { | |
3863 | _arg1 = &temp; | |
3864 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3865 | return NULL; | |
3866 | } | |
3867 | if (_argo2) { | |
3868 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3869 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3871 | return NULL; | |
3872 | } | |
3873 | } | |
3874 | if (_argo3) { | |
3875 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3876 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3878 | return NULL; | |
3879 | } | |
3880 | } | |
3881 | { | |
3882 | wxPy_BEGIN_ALLOW_THREADS; | |
3883 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
3884 | ||
3885 | wxPy_END_ALLOW_THREADS; | |
3886 | } _resultobj = Py_BuildValue("i",_result); | |
3887 | return _resultobj; | |
3888 | } | |
3889 | ||
3890 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3891 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject * _resultobj; | |
3893 | bool _result; | |
3894 | wxGenericDragImage * _arg0; | |
3895 | PyObject * _argo0 = 0; | |
3896 | char *_kwnames[] = { "self", NULL }; | |
3897 | ||
3898 | self = self; | |
3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3900 | return NULL; | |
3901 | if (_argo0) { | |
3902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3905 | return NULL; | |
3906 | } | |
3907 | } | |
3908 | { | |
3909 | wxPy_BEGIN_ALLOW_THREADS; | |
3910 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
3911 | ||
3912 | wxPy_END_ALLOW_THREADS; | |
3913 | } _resultobj = Py_BuildValue("i",_result); | |
3914 | return _resultobj; | |
3915 | } | |
3916 | ||
3917 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3918 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject * _resultobj; | |
3920 | bool _result; | |
3921 | wxGenericDragImage * _arg0; | |
3922 | wxPoint * _arg1; | |
3923 | PyObject * _argo0 = 0; | |
3924 | wxPoint temp; | |
3925 | PyObject * _obj1 = 0; | |
3926 | char *_kwnames[] = { "self","pt", NULL }; | |
3927 | ||
3928 | self = self; | |
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
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_Move. Expected _wxGenericDragImage_p."); | |
3935 | return NULL; | |
3936 | } | |
3937 | } | |
3938 | { | |
3939 | _arg1 = &temp; | |
3940 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3941 | return NULL; | |
3942 | } | |
3943 | { | |
3944 | wxPy_BEGIN_ALLOW_THREADS; | |
3945 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
3946 | ||
3947 | wxPy_END_ALLOW_THREADS; | |
3948 | } _resultobj = Py_BuildValue("i",_result); | |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
3952 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3953 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject * _resultobj; | |
3955 | bool _result; | |
3956 | wxGenericDragImage * _arg0; | |
3957 | PyObject * _argo0 = 0; | |
3958 | char *_kwnames[] = { "self", NULL }; | |
3959 | ||
3960 | self = self; | |
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3962 | return NULL; | |
3963 | if (_argo0) { | |
3964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3967 | return NULL; | |
3968 | } | |
3969 | } | |
3970 | { | |
3971 | wxPy_BEGIN_ALLOW_THREADS; | |
3972 | _result = (bool )wxDragImage_Show(_arg0); | |
3973 | ||
3974 | wxPy_END_ALLOW_THREADS; | |
3975 | } _resultobj = Py_BuildValue("i",_result); | |
3976 | return _resultobj; | |
3977 | } | |
3978 | ||
3979 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3980 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3981 | PyObject * _resultobj; | |
3982 | bool _result; | |
3983 | wxGenericDragImage * _arg0; | |
3984 | PyObject * _argo0 = 0; | |
3985 | char *_kwnames[] = { "self", NULL }; | |
3986 | ||
3987 | self = self; | |
3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3989 | return NULL; | |
3990 | if (_argo0) { | |
3991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3994 | return NULL; | |
3995 | } | |
3996 | } | |
3997 | { | |
3998 | wxPy_BEGIN_ALLOW_THREADS; | |
3999 | _result = (bool )wxDragImage_Hide(_arg0); | |
4000 | ||
4001 | wxPy_END_ALLOW_THREADS; | |
4002 | } _resultobj = Py_BuildValue("i",_result); | |
4003 | return _resultobj; | |
4004 | } | |
4005 | ||
4006 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4007 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4008 | PyObject * _resultobj; | |
4009 | wxRect * _result; | |
4010 | wxGenericDragImage * _arg0; | |
4011 | wxPoint * _arg1; | |
4012 | PyObject * _argo0 = 0; | |
4013 | wxPoint temp; | |
4014 | PyObject * _obj1 = 0; | |
4015 | char *_kwnames[] = { "self","pos", NULL }; | |
4016 | char _ptemp[128]; | |
4017 | ||
4018 | self = self; | |
4019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4020 | return NULL; | |
4021 | if (_argo0) { | |
4022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4025 | return NULL; | |
4026 | } | |
4027 | } | |
4028 | { | |
4029 | _arg1 = &temp; | |
4030 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4031 | return NULL; | |
4032 | } | |
4033 | { | |
4034 | wxPy_BEGIN_ALLOW_THREADS; | |
4035 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
4036 | ||
4037 | wxPy_END_ALLOW_THREADS; | |
4038 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
4039 | _resultobj = Py_BuildValue("s",_ptemp); | |
4040 | return _resultobj; | |
4041 | } | |
4042 | ||
4043 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4044 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4045 | PyObject * _resultobj; | |
4046 | bool _result; | |
4047 | wxGenericDragImage * _arg0; | |
4048 | wxPoint * _arg1; | |
4049 | wxPoint * _arg2; | |
4050 | bool _arg3; | |
4051 | bool _arg4; | |
4052 | PyObject * _argo0 = 0; | |
4053 | wxPoint temp; | |
4054 | PyObject * _obj1 = 0; | |
4055 | wxPoint temp0; | |
4056 | PyObject * _obj2 = 0; | |
4057 | int tempbool3; | |
4058 | int tempbool4; | |
4059 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4060 | ||
4061 | self = self; | |
4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4063 | return NULL; | |
4064 | if (_argo0) { | |
4065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4068 | return NULL; | |
4069 | } | |
4070 | } | |
4071 | { | |
4072 | _arg1 = &temp; | |
4073 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4074 | return NULL; | |
4075 | } | |
4076 | { | |
4077 | _arg2 = &temp0; | |
4078 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4079 | return NULL; | |
4080 | } | |
4081 | _arg3 = (bool ) tempbool3; | |
4082 | _arg4 = (bool ) tempbool4; | |
4083 | { | |
4084 | wxPy_BEGIN_ALLOW_THREADS; | |
4085 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
4086 | ||
4087 | wxPy_END_ALLOW_THREADS; | |
4088 | } _resultobj = Py_BuildValue("i",_result); | |
4089 | return _resultobj; | |
4090 | } | |
4091 | ||
9416aa89 RD |
4092 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4093 | wxPyTimer *src; | |
4094 | wxObject *dest; | |
4095 | src = (wxPyTimer *) ptr; | |
4096 | dest = (wxObject *) src; | |
4097 | return (void *) dest; | |
4098 | } | |
4099 | ||
f6bcfd97 BP |
4100 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4101 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject * _resultobj; | |
4103 | wxPyTimer * _result; | |
4104 | PyObject * _arg0; | |
4105 | PyObject * _obj0 = 0; | |
4106 | char *_kwnames[] = { "notify", NULL }; | |
4107 | char _ptemp[128]; | |
4108 | ||
4109 | self = self; | |
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4111 | return NULL; | |
4112 | { | |
4113 | _arg0 = _obj0; | |
4114 | } | |
4115 | { | |
4116 | wxPy_BEGIN_ALLOW_THREADS; | |
4117 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
4118 | ||
4119 | wxPy_END_ALLOW_THREADS; | |
4120 | } if (_result) { | |
4121 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4122 | _resultobj = Py_BuildValue("s",_ptemp); | |
4123 | } else { | |
4124 | Py_INCREF(Py_None); | |
4125 | _resultobj = Py_None; | |
4126 | } | |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
4130 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4131 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject * _resultobj; | |
4133 | wxPyTimer * _arg0; | |
4134 | PyObject * _argo0 = 0; | |
4135 | char *_kwnames[] = { "self", NULL }; | |
4136 | ||
4137 | self = self; | |
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4139 | return NULL; | |
4140 | if (_argo0) { | |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
4147 | { | |
4148 | wxPy_BEGIN_ALLOW_THREADS; | |
4149 | delete_wxPyTimer(_arg0); | |
4150 | ||
4151 | wxPy_END_ALLOW_THREADS; | |
4152 | } Py_INCREF(Py_None); | |
4153 | _resultobj = Py_None; | |
4154 | return _resultobj; | |
4155 | } | |
4156 | ||
4157 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4158 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject * _resultobj; | |
4160 | int _result; | |
4161 | wxPyTimer * _arg0; | |
4162 | PyObject * _argo0 = 0; | |
4163 | char *_kwnames[] = { "self", NULL }; | |
4164 | ||
4165 | self = self; | |
4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4167 | return NULL; | |
4168 | if (_argo0) { | |
4169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4172 | return NULL; | |
4173 | } | |
4174 | } | |
4175 | { | |
4176 | wxPy_BEGIN_ALLOW_THREADS; | |
4177 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
4178 | ||
4179 | wxPy_END_ALLOW_THREADS; | |
4180 | } _resultobj = Py_BuildValue("i",_result); | |
4181 | return _resultobj; | |
4182 | } | |
4183 | ||
4184 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4185 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject * _resultobj; | |
4187 | bool _result; | |
4188 | wxPyTimer * _arg0; | |
4189 | PyObject * _argo0 = 0; | |
4190 | char *_kwnames[] = { "self", NULL }; | |
4191 | ||
4192 | self = self; | |
4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4194 | return NULL; | |
4195 | if (_argo0) { | |
4196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4199 | return NULL; | |
4200 | } | |
4201 | } | |
4202 | { | |
4203 | wxPy_BEGIN_ALLOW_THREADS; | |
4204 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
4205 | ||
4206 | wxPy_END_ALLOW_THREADS; | |
4207 | } _resultobj = Py_BuildValue("i",_result); | |
4208 | return _resultobj; | |
4209 | } | |
4210 | ||
4211 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4212 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject * _resultobj; | |
4214 | bool _result; | |
4215 | wxPyTimer * _arg0; | |
4216 | PyObject * _argo0 = 0; | |
4217 | char *_kwnames[] = { "self", NULL }; | |
4218 | ||
4219 | self = self; | |
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4221 | return NULL; | |
4222 | if (_argo0) { | |
4223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4226 | return NULL; | |
4227 | } | |
4228 | } | |
4229 | { | |
4230 | wxPy_BEGIN_ALLOW_THREADS; | |
4231 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
4232 | ||
4233 | wxPy_END_ALLOW_THREADS; | |
4234 | } _resultobj = Py_BuildValue("i",_result); | |
4235 | return _resultobj; | |
4236 | } | |
4237 | ||
4238 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4239 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4240 | PyObject * _resultobj; | |
4241 | wxPyTimer * _arg0; | |
4242 | wxEvtHandler * _arg1; | |
4243 | int _arg2 = (int ) -1; | |
4244 | PyObject * _argo0 = 0; | |
4245 | PyObject * _argo1 = 0; | |
4246 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4247 | ||
4248 | self = self; | |
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4250 | return NULL; | |
4251 | if (_argo0) { | |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4255 | return NULL; | |
4256 | } | |
4257 | } | |
4258 | if (_argo1) { | |
4259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4262 | return NULL; | |
4263 | } | |
4264 | } | |
4265 | { | |
4266 | wxPy_BEGIN_ALLOW_THREADS; | |
4267 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
4268 | ||
4269 | wxPy_END_ALLOW_THREADS; | |
4270 | } Py_INCREF(Py_None); | |
4271 | _resultobj = Py_None; | |
4272 | return _resultobj; | |
4273 | } | |
4274 | ||
4275 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4276 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject * _resultobj; | |
4278 | wxPyTimer * _arg0; | |
4279 | int _arg1 = (int ) -1; | |
4280 | int _arg2 = (int ) FALSE; | |
4281 | PyObject * _argo0 = 0; | |
4282 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4283 | ||
4284 | self = self; | |
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4286 | return NULL; | |
4287 | if (_argo0) { | |
4288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4291 | return NULL; | |
4292 | } | |
4293 | } | |
4294 | { | |
4295 | wxPy_BEGIN_ALLOW_THREADS; | |
4296 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
4297 | ||
4298 | wxPy_END_ALLOW_THREADS; | |
4299 | } Py_INCREF(Py_None); | |
4300 | _resultobj = Py_None; | |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
4304 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4305 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject * _resultobj; | |
4307 | wxPyTimer * _arg0; | |
f0261a72 RD |
4308 | PyObject * _argo0 = 0; |
4309 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4310 | |
4311 | self = self; | |
f6bcfd97 | 4312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4313 | return NULL; |
4314 | if (_argo0) { | |
4315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4318 | return NULL; |
4319 | } | |
4320 | } | |
4321 | { | |
4322 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4323 | wxPyTimer_Stop(_arg0); |
f0261a72 RD |
4324 | |
4325 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4326 | } Py_INCREF(Py_None); |
4327 | _resultobj = Py_None; | |
f0261a72 RD |
4328 | return _resultobj; |
4329 | } | |
4330 | ||
b37c7e1d RD |
4331 | #define new_wxStopWatch() (new wxStopWatch()) |
4332 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4333 | PyObject * _resultobj; | |
4334 | wxStopWatch * _result; | |
4335 | char *_kwnames[] = { NULL }; | |
4336 | char _ptemp[128]; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4340 | return NULL; | |
4341 | { | |
4342 | wxPy_BEGIN_ALLOW_THREADS; | |
4343 | _result = (wxStopWatch *)new_wxStopWatch(); | |
4344 | ||
4345 | wxPy_END_ALLOW_THREADS; | |
4346 | } if (_result) { | |
4347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4348 | _resultobj = Py_BuildValue("s",_ptemp); | |
4349 | } else { | |
4350 | Py_INCREF(Py_None); | |
4351 | _resultobj = Py_None; | |
4352 | } | |
4353 | return _resultobj; | |
4354 | } | |
4355 | ||
4356 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) | |
4357 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject * _resultobj; | |
4359 | wxStopWatch * _arg0; | |
4360 | long _arg1 = (long ) 0; | |
4361 | PyObject * _argo0 = 0; | |
4362 | char *_kwnames[] = { "self","t", NULL }; | |
4363 | ||
4364 | self = self; | |
4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4366 | return NULL; | |
4367 | if (_argo0) { | |
4368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4371 | return NULL; | |
4372 | } | |
4373 | } | |
4374 | { | |
4375 | wxPy_BEGIN_ALLOW_THREADS; | |
4376 | wxStopWatch_Start(_arg0,_arg1); | |
4377 | ||
4378 | wxPy_END_ALLOW_THREADS; | |
4379 | } Py_INCREF(Py_None); | |
4380 | _resultobj = Py_None; | |
4381 | return _resultobj; | |
4382 | } | |
4383 | ||
4384 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4385 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject * _resultobj; | |
4387 | wxStopWatch * _arg0; | |
4388 | PyObject * _argo0 = 0; | |
4389 | char *_kwnames[] = { "self", NULL }; | |
4390 | ||
4391 | self = self; | |
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4393 | return NULL; | |
4394 | if (_argo0) { | |
4395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4398 | return NULL; | |
4399 | } | |
4400 | } | |
4401 | { | |
4402 | wxPy_BEGIN_ALLOW_THREADS; | |
4403 | wxStopWatch_Pause(_arg0); | |
4404 | ||
4405 | wxPy_END_ALLOW_THREADS; | |
4406 | } Py_INCREF(Py_None); | |
4407 | _resultobj = Py_None; | |
4408 | return _resultobj; | |
4409 | } | |
4410 | ||
4411 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4412 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject * _resultobj; | |
4414 | wxStopWatch * _arg0; | |
4415 | PyObject * _argo0 = 0; | |
4416 | char *_kwnames[] = { "self", NULL }; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4420 | return NULL; | |
4421 | if (_argo0) { | |
4422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4425 | return NULL; | |
4426 | } | |
4427 | } | |
4428 | { | |
4429 | wxPy_BEGIN_ALLOW_THREADS; | |
4430 | wxStopWatch_Resume(_arg0); | |
4431 | ||
4432 | wxPy_END_ALLOW_THREADS; | |
4433 | } Py_INCREF(Py_None); | |
4434 | _resultobj = Py_None; | |
4435 | return _resultobj; | |
4436 | } | |
4437 | ||
4438 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4439 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4440 | PyObject * _resultobj; | |
4441 | long _result; | |
4442 | wxStopWatch * _arg0; | |
4443 | PyObject * _argo0 = 0; | |
4444 | char *_kwnames[] = { "self", NULL }; | |
4445 | ||
4446 | self = self; | |
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4448 | return NULL; | |
4449 | if (_argo0) { | |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | { | |
4457 | wxPy_BEGIN_ALLOW_THREADS; | |
4458 | _result = (long )wxStopWatch_Time(_arg0); | |
4459 | ||
4460 | wxPy_END_ALLOW_THREADS; | |
4461 | } _resultobj = Py_BuildValue("l",_result); | |
4462 | return _resultobj; | |
4463 | } | |
4464 | ||
f6bcfd97 BP |
4465 | #define new_wxLog() (new wxLog()) |
4466 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4467 | PyObject * _resultobj; |
f6bcfd97 BP |
4468 | wxLog * _result; |
4469 | char *_kwnames[] = { NULL }; | |
4470 | char _ptemp[128]; | |
f0261a72 RD |
4471 | |
4472 | self = self; | |
f6bcfd97 BP |
4473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4474 | return NULL; | |
f0261a72 | 4475 | { |
f6bcfd97 BP |
4476 | wxPy_BEGIN_ALLOW_THREADS; |
4477 | _result = (wxLog *)new_wxLog(); | |
4478 | ||
4479 | wxPy_END_ALLOW_THREADS; | |
4480 | } if (_result) { | |
4481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4482 | _resultobj = Py_BuildValue("s",_ptemp); | |
4483 | } else { | |
4484 | Py_INCREF(Py_None); | |
4485 | _resultobj = Py_None; | |
4486 | } | |
4487 | return _resultobj; | |
f0261a72 | 4488 | } |
f6bcfd97 BP |
4489 | |
4490 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4491 | PyObject * _resultobj; | |
4492 | bool _result; | |
4493 | char *_kwnames[] = { NULL }; | |
4494 | ||
4495 | self = self; | |
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4497 | return NULL; | |
f0261a72 | 4498 | { |
f6bcfd97 BP |
4499 | wxPy_BEGIN_ALLOW_THREADS; |
4500 | _result = (bool )wxLog::IsEnabled(); | |
4501 | ||
4502 | wxPy_END_ALLOW_THREADS; | |
4503 | } _resultobj = Py_BuildValue("i",_result); | |
4504 | return _resultobj; | |
f0261a72 | 4505 | } |
f6bcfd97 BP |
4506 | |
4507 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject * _resultobj; | |
4509 | bool _result; | |
4510 | bool _arg0 = (bool ) TRUE; | |
4511 | int tempbool0 = (int) TRUE; | |
4512 | char *_kwnames[] = { "doIt", NULL }; | |
4513 | ||
4514 | self = self; | |
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4516 | return NULL; | |
4517 | _arg0 = (bool ) tempbool0; | |
4518 | { | |
4519 | wxPy_BEGIN_ALLOW_THREADS; | |
4520 | _result = (bool )wxLog::EnableLogging(_arg0); | |
4521 | ||
4522 | wxPy_END_ALLOW_THREADS; | |
4523 | } _resultobj = Py_BuildValue("i",_result); | |
4524 | return _resultobj; | |
4525 | } | |
4526 | ||
4527 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject * _resultobj; | |
4529 | wxLogLevel * _arg0; | |
4530 | char * _arg1; | |
4531 | int _arg2 = (int ) 0; | |
4532 | PyObject * _argo0 = 0; | |
4533 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4534 | ||
4535 | self = self; | |
4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
f0261a72 RD |
4537 | return NULL; |
4538 | if (_argo0) { | |
4539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
4542 | return NULL; |
4543 | } | |
4544 | } | |
4545 | { | |
4546 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4547 | wxLog::OnLog(*_arg0,_arg1,_arg2); |
f0261a72 RD |
4548 | |
4549 | wxPy_END_ALLOW_THREADS; | |
4550 | } Py_INCREF(Py_None); | |
4551 | _resultobj = Py_None; | |
f6bcfd97 | 4552 | return _resultobj; |
f0261a72 | 4553 | } |
f6bcfd97 BP |
4554 | |
4555 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4556 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject * _resultobj; | |
4558 | wxLog * _arg0; | |
4559 | PyObject * _argo0 = 0; | |
4560 | char *_kwnames[] = { "self", NULL }; | |
4561 | ||
4562 | self = self; | |
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4564 | return NULL; | |
4565 | if (_argo0) { | |
4566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4569 | return NULL; | |
4570 | } | |
4571 | } | |
f0261a72 | 4572 | { |
f6bcfd97 BP |
4573 | wxPy_BEGIN_ALLOW_THREADS; |
4574 | wxLog_Flush(_arg0); | |
4575 | ||
4576 | wxPy_END_ALLOW_THREADS; | |
4577 | } Py_INCREF(Py_None); | |
4578 | _resultobj = Py_None; | |
f0261a72 RD |
4579 | return _resultobj; |
4580 | } | |
4581 | ||
f6bcfd97 BP |
4582 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4583 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4584 | PyObject * _resultobj; |
f6bcfd97 BP |
4585 | bool _result; |
4586 | wxLog * _arg0; | |
f0261a72 RD |
4587 | PyObject * _argo0 = 0; |
4588 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4589 | |
4590 | self = self; | |
f6bcfd97 | 4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4592 | return NULL; |
4593 | if (_argo0) { | |
4594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4597 | return NULL; |
4598 | } | |
4599 | } | |
4600 | { | |
4601 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4602 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 RD |
4603 | |
4604 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4605 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4606 | return _resultobj; |
4607 | } | |
4608 | ||
f6bcfd97 | 4609 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4610 | PyObject * _resultobj; |
f6bcfd97 BP |
4611 | char *_kwnames[] = { NULL }; |
4612 | ||
4613 | self = self; | |
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4615 | return NULL; | |
4616 | { | |
4617 | wxPy_BEGIN_ALLOW_THREADS; | |
4618 | wxLog::FlushActive(); | |
4619 | ||
4620 | wxPy_END_ALLOW_THREADS; | |
4621 | } Py_INCREF(Py_None); | |
4622 | _resultobj = Py_None; | |
4623 | return _resultobj; | |
4624 | } | |
4625 | ||
4626 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4627 | PyObject * _resultobj; | |
4628 | wxLog * _result; | |
4629 | char *_kwnames[] = { NULL }; | |
4630 | char _ptemp[128]; | |
4631 | ||
4632 | self = self; | |
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4634 | return NULL; | |
4635 | { | |
4636 | wxPy_BEGIN_ALLOW_THREADS; | |
4637 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4638 | ||
4639 | wxPy_END_ALLOW_THREADS; | |
4640 | } if (_result) { | |
4641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4642 | _resultobj = Py_BuildValue("s",_ptemp); | |
4643 | } else { | |
4644 | Py_INCREF(Py_None); | |
4645 | _resultobj = Py_None; | |
4646 | } | |
4647 | return _resultobj; | |
4648 | } | |
4649 | ||
4650 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject * _resultobj; | |
4652 | wxLog * _result; | |
4653 | wxLog * _arg0; | |
f0261a72 | 4654 | PyObject * _argo0 = 0; |
f6bcfd97 | 4655 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4656 | char _ptemp[128]; |
4657 | ||
4658 | self = self; | |
f6bcfd97 | 4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4660 | return NULL; |
4661 | if (_argo0) { | |
4662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4665 | return NULL; |
4666 | } | |
4667 | } | |
4668 | { | |
4669 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4670 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 RD |
4671 | |
4672 | wxPy_END_ALLOW_THREADS; | |
4673 | } if (_result) { | |
f6bcfd97 | 4674 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4675 | _resultobj = Py_BuildValue("s",_ptemp); |
4676 | } else { | |
4677 | Py_INCREF(Py_None); | |
4678 | _resultobj = Py_None; | |
4679 | } | |
4680 | return _resultobj; | |
4681 | } | |
4682 | ||
f6bcfd97 | 4683 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4684 | PyObject * _resultobj; |
f6bcfd97 BP |
4685 | char *_kwnames[] = { NULL }; |
4686 | ||
4687 | self = self; | |
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4689 | return NULL; | |
4690 | { | |
4691 | wxPy_BEGIN_ALLOW_THREADS; | |
4692 | wxLog::Suspend(); | |
4693 | ||
4694 | wxPy_END_ALLOW_THREADS; | |
4695 | } Py_INCREF(Py_None); | |
4696 | _resultobj = Py_None; | |
4697 | return _resultobj; | |
4698 | } | |
4699 | ||
4700 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4701 | PyObject * _resultobj; | |
4702 | char *_kwnames[] = { NULL }; | |
4703 | ||
4704 | self = self; | |
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4706 | return NULL; | |
4707 | { | |
4708 | wxPy_BEGIN_ALLOW_THREADS; | |
4709 | wxLog::Resume(); | |
4710 | ||
4711 | wxPy_END_ALLOW_THREADS; | |
4712 | } Py_INCREF(Py_None); | |
4713 | _resultobj = Py_None; | |
4714 | return _resultobj; | |
4715 | } | |
4716 | ||
4717 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4718 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4719 | PyObject * _resultobj; | |
4720 | wxLog * _arg0; | |
4721 | bool _arg1 = (bool ) TRUE; | |
f0261a72 | 4722 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4723 | int tempbool1 = (int) TRUE; |
4724 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
f0261a72 RD |
4725 | |
4726 | self = self; | |
f6bcfd97 | 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
f0261a72 RD |
4728 | return NULL; |
4729 | if (_argo0) { | |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
f0261a72 RD |
4733 | return NULL; |
4734 | } | |
4735 | } | |
f6bcfd97 | 4736 | _arg1 = (bool ) tempbool1; |
f0261a72 RD |
4737 | { |
4738 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4739 | wxLog_SetVerbose(_arg0,_arg1); |
f0261a72 RD |
4740 | |
4741 | wxPy_END_ALLOW_THREADS; | |
4742 | } Py_INCREF(Py_None); | |
4743 | _resultobj = Py_None; | |
4744 | return _resultobj; | |
4745 | } | |
4746 | ||
f6bcfd97 | 4747 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4748 | PyObject * _resultobj; |
f6bcfd97 BP |
4749 | char *_kwnames[] = { NULL }; |
4750 | ||
4751 | self = self; | |
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4753 | return NULL; | |
4754 | { | |
4755 | wxPy_BEGIN_ALLOW_THREADS; | |
4756 | wxLog::DontCreateOnDemand(); | |
4757 | ||
4758 | wxPy_END_ALLOW_THREADS; | |
4759 | } Py_INCREF(Py_None); | |
4760 | _resultobj = Py_None; | |
4761 | return _resultobj; | |
4762 | } | |
4763 | ||
4764 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4765 | PyObject * _resultobj; | |
4766 | wxTraceMask * _arg0; | |
f0261a72 | 4767 | PyObject * _argo0 = 0; |
f6bcfd97 | 4768 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4769 | |
4770 | self = self; | |
f6bcfd97 | 4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4772 | return NULL; |
4773 | if (_argo0) { | |
4774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4777 | return NULL; | |
4778 | } | |
4779 | } | |
4780 | { | |
4781 | wxPy_BEGIN_ALLOW_THREADS; | |
4782 | wxLog::SetTraceMask(*_arg0); | |
4783 | ||
4784 | wxPy_END_ALLOW_THREADS; | |
4785 | } Py_INCREF(Py_None); | |
4786 | _resultobj = Py_None; | |
4787 | return _resultobj; | |
4788 | } | |
4789 | ||
4790 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4791 | PyObject * _resultobj; | |
4792 | wxString * _arg0; | |
4793 | PyObject * _obj0 = 0; | |
4794 | char *_kwnames[] = { "str", NULL }; | |
4795 | ||
4796 | self = self; | |
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4798 | return NULL; | |
4799 | { | |
185d7c3e RD |
4800 | #if PYTHON_API_VERSION >= 1009 |
4801 | char* tmpPtr; int tmpSize; | |
4802 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 4803 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4804 | return NULL; |
4805 | } | |
4806 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4807 | return NULL; | |
4808 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4809 | #else | |
f6bcfd97 BP |
4810 | if (!PyString_Check(_obj0)) { |
4811 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4812 | return NULL; | |
4813 | } | |
185d7c3e RD |
4814 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4815 | #endif | |
f6bcfd97 BP |
4816 | } |
4817 | { | |
4818 | wxPy_BEGIN_ALLOW_THREADS; | |
4819 | wxLog::AddTraceMask(*_arg0); | |
4820 | ||
4821 | wxPy_END_ALLOW_THREADS; | |
4822 | } Py_INCREF(Py_None); | |
4823 | _resultobj = Py_None; | |
4824 | { | |
4825 | if (_obj0) | |
4826 | delete _arg0; | |
4827 | } | |
4828 | return _resultobj; | |
4829 | } | |
4830 | ||
4831 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject * _resultobj; | |
4833 | wxString * _arg0; | |
4834 | PyObject * _obj0 = 0; | |
4835 | char *_kwnames[] = { "str", NULL }; | |
4836 | ||
4837 | self = self; | |
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4839 | return NULL; |
f0261a72 | 4840 | { |
185d7c3e RD |
4841 | #if PYTHON_API_VERSION >= 1009 |
4842 | char* tmpPtr; int tmpSize; | |
4843 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 4844 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4845 | return NULL; |
4846 | } | |
4847 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4848 | return NULL; | |
4849 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4850 | #else | |
f6bcfd97 BP |
4851 | if (!PyString_Check(_obj0)) { |
4852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
f0261a72 | 4853 | return NULL; |
f6bcfd97 | 4854 | } |
185d7c3e RD |
4855 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4856 | #endif | |
f0261a72 RD |
4857 | } |
4858 | { | |
4859 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4860 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 RD |
4861 | |
4862 | wxPy_END_ALLOW_THREADS; | |
4863 | } Py_INCREF(Py_None); | |
4864 | _resultobj = Py_None; | |
f6bcfd97 BP |
4865 | { |
4866 | if (_obj0) | |
4867 | delete _arg0; | |
4868 | } | |
f0261a72 RD |
4869 | return _resultobj; |
4870 | } | |
4871 | ||
76bfdc78 RD |
4872 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4873 | PyObject * _resultobj; | |
4874 | char *_kwnames[] = { NULL }; | |
4875 | ||
4876 | self = self; | |
4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4878 | return NULL; | |
4879 | { | |
4880 | wxPy_BEGIN_ALLOW_THREADS; | |
4881 | wxLog::ClearTraceMasks(); | |
4882 | ||
4883 | wxPy_END_ALLOW_THREADS; | |
4884 | } Py_INCREF(Py_None); | |
4885 | _resultobj = Py_None; | |
4886 | return _resultobj; | |
4887 | } | |
4888 | ||
4889 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4890 | PyObject * _resultobj; | |
4891 | wxChar * _arg0; | |
4892 | char *_kwnames[] = { "ts", NULL }; | |
4893 | ||
4894 | self = self; | |
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
4896 | return NULL; | |
4897 | { | |
4898 | wxPy_BEGIN_ALLOW_THREADS; | |
4899 | wxLog::SetTimestamp(_arg0); | |
4900 | ||
4901 | wxPy_END_ALLOW_THREADS; | |
4902 | } Py_INCREF(Py_None); | |
4903 | _resultobj = Py_None; | |
4904 | return _resultobj; | |
4905 | } | |
4906 | ||
4907 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4908 | PyObject * _resultobj; | |
4909 | wxChar * _result; | |
4910 | char *_kwnames[] = { NULL }; | |
4911 | ||
4912 | self = self; | |
4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4914 | return NULL; | |
4915 | { | |
4916 | wxPy_BEGIN_ALLOW_THREADS; | |
4917 | _result = (wxChar *)wxLog::GetTimestamp(); | |
4918 | ||
4919 | wxPy_END_ALLOW_THREADS; | |
4920 | } _resultobj = Py_BuildValue("s", _result); | |
4921 | return _resultobj; | |
4922 | } | |
4923 | ||
f6bcfd97 BP |
4924 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4925 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 4926 | PyObject * _resultobj; |
f6bcfd97 BP |
4927 | bool _result; |
4928 | wxLog * _arg0; | |
a1df7a95 | 4929 | PyObject * _argo0 = 0; |
f6bcfd97 | 4930 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
4931 | |
4932 | self = self; | |
f6bcfd97 | 4933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
4934 | return NULL; |
4935 | if (_argo0) { | |
4936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
4939 | return NULL; |
4940 | } | |
4941 | } | |
4942 | { | |
4943 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4944 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 RD |
4945 | |
4946 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4947 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
4948 | return _resultobj; |
4949 | } | |
4950 | ||
f6bcfd97 | 4951 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 4952 | PyObject * _resultobj; |
f6bcfd97 BP |
4953 | wxTraceMask * _result; |
4954 | char *_kwnames[] = { NULL }; | |
4955 | char _ptemp[128]; | |
a1df7a95 RD |
4956 | |
4957 | self = self; | |
f6bcfd97 | 4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 4959 | return NULL; |
a1df7a95 | 4960 | { |
f6bcfd97 BP |
4961 | wxPy_BEGIN_ALLOW_THREADS; |
4962 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
4963 | ||
4964 | wxPy_END_ALLOW_THREADS; | |
4965 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
4966 | _resultobj = Py_BuildValue("s",_ptemp); | |
4967 | return _resultobj; | |
a1df7a95 | 4968 | } |
f6bcfd97 BP |
4969 | |
4970 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject * _resultobj; | |
4972 | bool _result; | |
4973 | char * _arg0; | |
4974 | char *_kwnames[] = { "mask", NULL }; | |
4975 | ||
4976 | self = self; | |
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
4978 | return NULL; | |
a1df7a95 RD |
4979 | { |
4980 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4981 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); |
a1df7a95 RD |
4982 | |
4983 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4984 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
4985 | return _resultobj; |
4986 | } | |
4987 | ||
76bfdc78 RD |
4988 | static wxString wxLog_TimeStamp(wxLog *self) { |
4989 | wxString msg; | |
4990 | wxLog::TimeStamp(&msg); | |
4991 | return msg; | |
4992 | } | |
4993 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4994 | PyObject * _resultobj; | |
4995 | wxString * _result; | |
4996 | wxLog * _arg0; | |
4997 | PyObject * _argo0 = 0; | |
4998 | char *_kwnames[] = { "self", NULL }; | |
4999 | ||
5000 | self = self; | |
5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5002 | return NULL; | |
5003 | if (_argo0) { | |
5004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5007 | return NULL; | |
5008 | } | |
5009 | } | |
5010 | { | |
5011 | wxPy_BEGIN_ALLOW_THREADS; | |
5012 | _result = new wxString (wxLog_TimeStamp(_arg0)); | |
5013 | ||
5014 | wxPy_END_ALLOW_THREADS; | |
5015 | }{ | |
5016 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5017 | } | |
5018 | { | |
5019 | delete _result; | |
5020 | } | |
5021 | return _resultobj; | |
5022 | } | |
5023 | ||
f6bcfd97 BP |
5024 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5025 | wxLogStderr *src; | |
5026 | wxLog *dest; | |
5027 | src = (wxLogStderr *) ptr; | |
5028 | dest = (wxLog *) src; | |
5029 | return (void *) dest; | |
5030 | } | |
5031 | ||
5032 | #define new_wxLogStderr() (new wxLogStderr()) | |
5033 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5034 | PyObject * _resultobj; |
f6bcfd97 BP |
5035 | wxLogStderr * _result; |
5036 | char *_kwnames[] = { NULL }; | |
5037 | char _ptemp[128]; | |
f0261a72 RD |
5038 | |
5039 | self = self; | |
f6bcfd97 | 5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5041 | return NULL; |
f0261a72 RD |
5042 | { |
5043 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5044 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 RD |
5045 | |
5046 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5047 | } if (_result) { |
5048 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5049 | _resultobj = Py_BuildValue("s",_ptemp); | |
5050 | } else { | |
5051 | Py_INCREF(Py_None); | |
5052 | _resultobj = Py_None; | |
5053 | } | |
f0261a72 RD |
5054 | return _resultobj; |
5055 | } | |
5056 | ||
f6bcfd97 BP |
5057 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5058 | wxLogTextCtrl *src; | |
5059 | wxLog *dest; | |
5060 | src = (wxLogTextCtrl *) ptr; | |
5061 | dest = (wxLog *) src; | |
5062 | return (void *) dest; | |
5063 | } | |
5064 | ||
5065 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5066 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5067 | PyObject * _resultobj; |
f6bcfd97 BP |
5068 | wxLogTextCtrl * _result; |
5069 | wxTextCtrl * _arg0; | |
f0261a72 | 5070 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5071 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5072 | char _ptemp[128]; | |
f0261a72 RD |
5073 | |
5074 | self = self; | |
f6bcfd97 | 5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5076 | return NULL; |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5081 | return NULL; |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5086 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 RD |
5087 | |
5088 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5089 | } if (_result) { |
5090 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5091 | _resultobj = Py_BuildValue("s",_ptemp); | |
5092 | } else { | |
5093 | Py_INCREF(Py_None); | |
5094 | _resultobj = Py_None; | |
5095 | } | |
f0261a72 RD |
5096 | return _resultobj; |
5097 | } | |
5098 | ||
f6bcfd97 BP |
5099 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5100 | wxLogGui *src; | |
5101 | wxLog *dest; | |
5102 | src = (wxLogGui *) ptr; | |
5103 | dest = (wxLog *) src; | |
5104 | return (void *) dest; | |
5105 | } | |
5106 | ||
5107 | #define new_wxLogGui() (new wxLogGui()) | |
5108 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5109 | PyObject * _resultobj; |
f6bcfd97 | 5110 | wxLogGui * _result; |
b1462dfa RD |
5111 | char *_kwnames[] = { NULL }; |
5112 | char _ptemp[128]; | |
5113 | ||
5114 | self = self; | |
f6bcfd97 | 5115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5116 | return NULL; |
5117 | { | |
5118 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5119 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa RD |
5120 | |
5121 | wxPy_END_ALLOW_THREADS; | |
5122 | } if (_result) { | |
f6bcfd97 | 5123 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5124 | _resultobj = Py_BuildValue("s",_ptemp); |
5125 | } else { | |
5126 | Py_INCREF(Py_None); | |
5127 | _resultobj = Py_None; | |
5128 | } | |
5129 | return _resultobj; | |
5130 | } | |
5131 | ||
f6bcfd97 BP |
5132 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5133 | wxLogWindow *src; | |
5134 | wxLog *dest; | |
5135 | src = (wxLogWindow *) ptr; | |
5136 | dest = (wxLog *) src; | |
5137 | return (void *) dest; | |
5138 | } | |
5139 | ||
5140 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5141 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5142 | PyObject * _resultobj; |
f6bcfd97 BP |
5143 | wxLogWindow * _result; |
5144 | wxFrame * _arg0; | |
5145 | char * _arg1; | |
5146 | bool _arg2 = (bool ) TRUE; | |
5147 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5148 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5149 | int tempbool2 = (int) TRUE; |
5150 | int tempbool3 = (int) TRUE; | |
5151 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5152 | char _ptemp[128]; | |
b1462dfa RD |
5153 | |
5154 | self = self; | |
f6bcfd97 | 5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5156 | return NULL; |
5157 | if (_argo0) { | |
5158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5161 | return NULL; |
5162 | } | |
5163 | } | |
f6bcfd97 BP |
5164 | _arg2 = (bool ) tempbool2; |
5165 | _arg3 = (bool ) tempbool3; | |
b1462dfa RD |
5166 | { |
5167 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5168 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); |
b1462dfa RD |
5169 | |
5170 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5171 | } if (_result) { |
5172 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5173 | _resultobj = Py_BuildValue("s",_ptemp); | |
5174 | } else { | |
5175 | Py_INCREF(Py_None); | |
5176 | _resultobj = Py_None; | |
5177 | } | |
b1462dfa RD |
5178 | return _resultobj; |
5179 | } | |
5180 | ||
f6bcfd97 BP |
5181 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5182 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5183 | PyObject * _resultobj; |
f6bcfd97 BP |
5184 | wxLogWindow * _arg0; |
5185 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5186 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5187 | int tempbool1 = (int) TRUE; |
5188 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5189 | |
5190 | self = self; | |
f6bcfd97 | 5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5192 | return NULL; |
5193 | if (_argo0) { | |
5194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5197 | return NULL; |
5198 | } | |
5199 | } | |
f6bcfd97 | 5200 | _arg1 = (bool ) tempbool1; |
b1462dfa RD |
5201 | { |
5202 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5203 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa RD |
5204 | |
5205 | wxPy_END_ALLOW_THREADS; | |
5206 | } Py_INCREF(Py_None); | |
5207 | _resultobj = Py_None; | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
f6bcfd97 BP |
5211 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5212 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5213 | PyObject * _resultobj; |
f6bcfd97 BP |
5214 | wxFrame * _result; |
5215 | wxLogWindow * _arg0; | |
b1462dfa | 5216 | PyObject * _argo0 = 0; |
f6bcfd97 | 5217 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5218 | |
5219 | self = self; | |
f6bcfd97 | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5221 | return NULL; |
5222 | if (_argo0) { | |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5226 | return NULL; |
5227 | } | |
5228 | } | |
b1462dfa RD |
5229 | { |
5230 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5231 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa RD |
5232 | |
5233 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 5234 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5235 | return _resultobj; |
5236 | } | |
5237 | ||
f6bcfd97 BP |
5238 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5239 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5240 | PyObject * _resultobj; |
f6bcfd97 BP |
5241 | wxLog * _result; |
5242 | wxLogWindow * _arg0; | |
b1462dfa | 5243 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5244 | char *_kwnames[] = { "self", NULL }; |
5245 | char _ptemp[128]; | |
b1462dfa RD |
5246 | |
5247 | self = self; | |
f6bcfd97 | 5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5249 | return NULL; |
5250 | if (_argo0) { | |
5251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5254 | return NULL; |
5255 | } | |
5256 | } | |
5257 | { | |
5258 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5259 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa RD |
5260 | |
5261 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5262 | } if (_result) { |
5263 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5264 | _resultobj = Py_BuildValue("s",_ptemp); | |
5265 | } else { | |
5266 | Py_INCREF(Py_None); | |
5267 | _resultobj = Py_None; | |
5268 | } | |
b1462dfa RD |
5269 | return _resultobj; |
5270 | } | |
5271 | ||
f6bcfd97 BP |
5272 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5273 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5274 | PyObject * _resultobj; |
f6bcfd97 BP |
5275 | bool _result; |
5276 | wxLogWindow * _arg0; | |
65dd82cb RD |
5277 | PyObject * _argo0 = 0; |
5278 | char *_kwnames[] = { "self", NULL }; | |
5279 | ||
5280 | self = self; | |
f6bcfd97 | 5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5282 | return NULL; |
5283 | if (_argo0) { | |
5284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5287 | return NULL; |
5288 | } | |
5289 | } | |
5290 | { | |
5291 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5292 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb RD |
5293 | |
5294 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 5295 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5296 | return _resultobj; |
5297 | } | |
5298 | ||
f6bcfd97 BP |
5299 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5300 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5301 | PyObject * _resultobj; |
f6bcfd97 BP |
5302 | wxLogWindow * _arg0; |
5303 | bool _arg1; | |
65dd82cb | 5304 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5305 | int tempbool1; |
5306 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5307 | |
5308 | self = self; | |
f6bcfd97 | 5309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5310 | return NULL; |
5311 | if (_argo0) { | |
5312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5315 | return NULL; |
5316 | } | |
5317 | } | |
f6bcfd97 | 5318 | _arg1 = (bool ) tempbool1; |
65dd82cb RD |
5319 | { |
5320 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5321 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb RD |
5322 | |
5323 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5324 | } Py_INCREF(Py_None); |
5325 | _resultobj = Py_None; | |
65dd82cb RD |
5326 | return _resultobj; |
5327 | } | |
5328 | ||
f6bcfd97 BP |
5329 | #define new_wxLogNull() (new wxLogNull()) |
5330 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5331 | PyObject * _resultobj; |
f6bcfd97 BP |
5332 | wxLogNull * _result; |
5333 | char *_kwnames[] = { NULL }; | |
2abc0a0f RD |
5334 | char _ptemp[128]; |
5335 | ||
5336 | self = self; | |
f6bcfd97 | 5337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
2abc0a0f | 5338 | return NULL; |
2abc0a0f RD |
5339 | { |
5340 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5341 | _result = (wxLogNull *)new_wxLogNull(); |
2abc0a0f RD |
5342 | |
5343 | wxPy_END_ALLOW_THREADS; | |
5344 | } if (_result) { | |
f6bcfd97 | 5345 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
2abc0a0f RD |
5346 | _resultobj = Py_BuildValue("s",_ptemp); |
5347 | } else { | |
5348 | Py_INCREF(Py_None); | |
5349 | _resultobj = Py_None; | |
5350 | } | |
5351 | return _resultobj; | |
5352 | } | |
5353 | ||
f6bcfd97 BP |
5354 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
5355 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5356 | PyObject * _resultobj; |
f6bcfd97 | 5357 | wxLogNull * _arg0; |
2abc0a0f RD |
5358 | PyObject * _argo0 = 0; |
5359 | char *_kwnames[] = { "self", NULL }; | |
5360 | ||
5361 | self = self; | |
f6bcfd97 | 5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
2abc0a0f RD |
5363 | return NULL; |
5364 | if (_argo0) { | |
5365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
5367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
2abc0a0f RD |
5368 | return NULL; |
5369 | } | |
5370 | } | |
5371 | { | |
5372 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5373 | delete_wxLogNull(_arg0); |
2abc0a0f RD |
5374 | |
5375 | wxPy_END_ALLOW_THREADS; | |
5376 | } Py_INCREF(Py_None); | |
5377 | _resultobj = Py_None; | |
5378 | return _resultobj; | |
5379 | } | |
5380 | ||
76bfdc78 RD |
5381 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5382 | wxLogChain *src; | |
5383 | wxLog *dest; | |
5384 | src = (wxLogChain *) ptr; | |
5385 | dest = (wxLog *) src; | |
5386 | return (void *) dest; | |
5387 | } | |
5388 | ||
5389 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5390 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject * _resultobj; | |
5392 | wxLogChain * _result; | |
5393 | wxLog * _arg0; | |
5394 | PyObject * _argo0 = 0; | |
5395 | char *_kwnames[] = { "logger", NULL }; | |
5396 | char _ptemp[128]; | |
5397 | ||
5398 | self = self; | |
5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5400 | return NULL; | |
5401 | if (_argo0) { | |
5402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5405 | return NULL; | |
5406 | } | |
5407 | } | |
5408 | { | |
5409 | wxPy_BEGIN_ALLOW_THREADS; | |
5410 | _result = (wxLogChain *)new_wxLogChain(_arg0); | |
5411 | ||
5412 | wxPy_END_ALLOW_THREADS; | |
5413 | } if (_result) { | |
5414 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5415 | _resultobj = Py_BuildValue("s",_ptemp); | |
5416 | } else { | |
5417 | Py_INCREF(Py_None); | |
5418 | _resultobj = Py_None; | |
5419 | } | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
5423 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5424 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject * _resultobj; | |
5426 | wxLogChain * _arg0; | |
5427 | wxLog * _arg1; | |
5428 | PyObject * _argo0 = 0; | |
5429 | PyObject * _argo1 = 0; | |
5430 | char *_kwnames[] = { "self","logger", NULL }; | |
5431 | ||
5432 | self = self; | |
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5434 | return NULL; | |
5435 | if (_argo0) { | |
5436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5439 | return NULL; | |
5440 | } | |
5441 | } | |
5442 | if (_argo1) { | |
5443 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | { | |
5450 | wxPy_BEGIN_ALLOW_THREADS; | |
5451 | wxLogChain_SetLog(_arg0,_arg1); | |
5452 | ||
5453 | wxPy_END_ALLOW_THREADS; | |
5454 | } Py_INCREF(Py_None); | |
5455 | _resultobj = Py_None; | |
5456 | return _resultobj; | |
5457 | } | |
5458 | ||
5459 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5460 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject * _resultobj; | |
5462 | wxLogChain * _arg0; | |
5463 | bool _arg1; | |
5464 | PyObject * _argo0 = 0; | |
5465 | int tempbool1; | |
5466 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5467 | ||
5468 | self = self; | |
5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5470 | return NULL; | |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | _arg1 = (bool ) tempbool1; | |
5479 | { | |
5480 | wxPy_BEGIN_ALLOW_THREADS; | |
5481 | wxLogChain_PassMessages(_arg0,_arg1); | |
5482 | ||
5483 | wxPy_END_ALLOW_THREADS; | |
5484 | } Py_INCREF(Py_None); | |
5485 | _resultobj = Py_None; | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
5489 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5490 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject * _resultobj; | |
5492 | bool _result; | |
5493 | wxLogChain * _arg0; | |
5494 | PyObject * _argo0 = 0; | |
5495 | char *_kwnames[] = { "self", NULL }; | |
5496 | ||
5497 | self = self; | |
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5499 | return NULL; | |
5500 | if (_argo0) { | |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5504 | return NULL; | |
5505 | } | |
5506 | } | |
5507 | { | |
5508 | wxPy_BEGIN_ALLOW_THREADS; | |
5509 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); | |
5510 | ||
5511 | wxPy_END_ALLOW_THREADS; | |
5512 | } _resultobj = Py_BuildValue("i",_result); | |
5513 | return _resultobj; | |
5514 | } | |
5515 | ||
5516 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5517 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5518 | PyObject * _resultobj; | |
5519 | wxLog * _result; | |
5520 | wxLogChain * _arg0; | |
5521 | PyObject * _argo0 = 0; | |
5522 | char *_kwnames[] = { "self", NULL }; | |
5523 | char _ptemp[128]; | |
5524 | ||
5525 | self = self; | |
5526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5527 | return NULL; | |
5528 | if (_argo0) { | |
5529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5532 | return NULL; | |
5533 | } | |
5534 | } | |
5535 | { | |
5536 | wxPy_BEGIN_ALLOW_THREADS; | |
5537 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); | |
5538 | ||
5539 | wxPy_END_ALLOW_THREADS; | |
5540 | } if (_result) { | |
5541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5542 | _resultobj = Py_BuildValue("s",_ptemp); | |
5543 | } else { | |
5544 | Py_INCREF(Py_None); | |
5545 | _resultobj = Py_None; | |
5546 | } | |
5547 | return _resultobj; | |
5548 | } | |
5549 | ||
5550 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5551 | wxPyLog *src; | |
5552 | wxLog *dest; | |
5553 | src = (wxPyLog *) ptr; | |
5554 | dest = (wxLog *) src; | |
5555 | return (void *) dest; | |
5556 | } | |
5557 | ||
5558 | #define new_wxPyLog() (new wxPyLog()) | |
5559 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5560 | PyObject * _resultobj; | |
5561 | wxPyLog * _result; | |
5562 | char *_kwnames[] = { NULL }; | |
5563 | char _ptemp[128]; | |
5564 | ||
5565 | self = self; | |
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5567 | return NULL; | |
5568 | { | |
5569 | wxPy_BEGIN_ALLOW_THREADS; | |
5570 | _result = (wxPyLog *)new_wxPyLog(); | |
5571 | ||
5572 | wxPy_END_ALLOW_THREADS; | |
5573 | } if (_result) { | |
5574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5575 | _resultobj = Py_BuildValue("s",_ptemp); | |
5576 | } else { | |
5577 | Py_INCREF(Py_None); | |
5578 | _resultobj = Py_None; | |
5579 | } | |
5580 | return _resultobj; | |
5581 | } | |
5582 | ||
0122b7e3 RD |
5583 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5584 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5585 | PyObject * _resultobj; |
5586 | wxPyLog * _arg0; | |
5587 | PyObject * _arg1; | |
5588 | PyObject * _arg2; | |
5589 | PyObject * _argo0 = 0; | |
5590 | PyObject * _obj1 = 0; | |
5591 | PyObject * _obj2 = 0; | |
5592 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5593 | ||
5594 | self = self; | |
0122b7e3 | 5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5596 | return NULL; |
5597 | if (_argo0) { | |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5601 | return NULL; |
5602 | } | |
5603 | } | |
5604 | { | |
5605 | _arg1 = _obj1; | |
5606 | } | |
5607 | { | |
5608 | _arg2 = _obj2; | |
5609 | } | |
5610 | { | |
5611 | wxPy_BEGIN_ALLOW_THREADS; | |
0122b7e3 | 5612 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 RD |
5613 | |
5614 | wxPy_END_ALLOW_THREADS; | |
5615 | } Py_INCREF(Py_None); | |
5616 | _resultobj = Py_None; | |
5617 | return _resultobj; | |
5618 | } | |
5619 | ||
5620 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5621 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5622 | PyObject * _resultobj; | |
5623 | wxPyLog * _arg0; | |
5624 | PyObject * _argo0 = 0; | |
5625 | char *_kwnames[] = { "self", NULL }; | |
5626 | ||
5627 | self = self; | |
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5629 | return NULL; | |
5630 | if (_argo0) { | |
5631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5634 | return NULL; | |
5635 | } | |
5636 | } | |
5637 | { | |
5638 | wxPy_BEGIN_ALLOW_THREADS; | |
5639 | wxPyLog_Destroy(_arg0); | |
5640 | ||
5641 | wxPy_END_ALLOW_THREADS; | |
5642 | } Py_INCREF(Py_None); | |
5643 | _resultobj = Py_None; | |
5644 | return _resultobj; | |
5645 | } | |
5646 | ||
c368d904 RD |
5647 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5648 | wxProcessEvent *src; | |
5649 | wxEvent *dest; | |
5650 | src = (wxProcessEvent *) ptr; | |
5651 | dest = (wxEvent *) src; | |
5652 | return (void *) dest; | |
5653 | } | |
5654 | ||
9416aa89 RD |
5655 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5656 | wxProcessEvent *src; | |
5657 | wxObject *dest; | |
5658 | src = (wxProcessEvent *) ptr; | |
5659 | dest = (wxObject *) src; | |
5660 | return (void *) dest; | |
5661 | } | |
5662 | ||
c368d904 RD |
5663 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5664 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5665 | PyObject * _resultobj; | |
5666 | wxProcessEvent * _result; | |
5667 | int _arg0 = (int ) 0; | |
5668 | int _arg1 = (int ) 0; | |
5669 | int _arg2 = (int ) 0; | |
5670 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5671 | char _ptemp[128]; | |
5672 | ||
5673 | self = self; | |
5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5675 | return NULL; | |
5676 | { | |
5677 | wxPy_BEGIN_ALLOW_THREADS; | |
5678 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
5679 | ||
5680 | wxPy_END_ALLOW_THREADS; | |
5681 | } if (_result) { | |
5682 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5683 | _resultobj = Py_BuildValue("s",_ptemp); | |
5684 | } else { | |
5685 | Py_INCREF(Py_None); | |
5686 | _resultobj = Py_None; | |
5687 | } | |
5688 | return _resultobj; | |
5689 | } | |
5690 | ||
5691 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5692 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject * _resultobj; | |
5694 | int _result; | |
5695 | wxProcessEvent * _arg0; | |
5696 | PyObject * _argo0 = 0; | |
5697 | char *_kwnames[] = { "self", NULL }; | |
5698 | ||
5699 | self = self; | |
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5701 | return NULL; | |
5702 | if (_argo0) { | |
5703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5706 | return NULL; | |
5707 | } | |
5708 | } | |
5709 | { | |
5710 | wxPy_BEGIN_ALLOW_THREADS; | |
5711 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
5712 | ||
5713 | wxPy_END_ALLOW_THREADS; | |
5714 | } _resultobj = Py_BuildValue("i",_result); | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
5718 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5719 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | int _result; | |
5722 | wxProcessEvent * _arg0; | |
5723 | PyObject * _argo0 = 0; | |
5724 | char *_kwnames[] = { "self", NULL }; | |
5725 | ||
5726 | self = self; | |
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5728 | return NULL; | |
5729 | if (_argo0) { | |
5730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5733 | return NULL; | |
5734 | } | |
5735 | } | |
5736 | { | |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
5738 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
5739 | ||
5740 | wxPy_END_ALLOW_THREADS; | |
5741 | } _resultobj = Py_BuildValue("i",_result); | |
5742 | return _resultobj; | |
5743 | } | |
5744 | ||
5745 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5746 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject * _resultobj; | |
5748 | int _result; | |
5749 | wxProcessEvent * _arg0; | |
5750 | int _arg1; | |
5751 | PyObject * _argo0 = 0; | |
5752 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5753 | ||
5754 | self = self; | |
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5756 | return NULL; | |
5757 | if (_argo0) { | |
5758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | { | |
5765 | wxPy_BEGIN_ALLOW_THREADS; | |
5766 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
5767 | ||
5768 | wxPy_END_ALLOW_THREADS; | |
5769 | } _resultobj = Py_BuildValue("i",_result); | |
5770 | return _resultobj; | |
5771 | } | |
5772 | ||
5773 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5774 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5775 | PyObject * _resultobj; | |
5776 | int _result; | |
5777 | wxProcessEvent * _arg0; | |
5778 | PyObject * _argo0 = 0; | |
5779 | char *_kwnames[] = { "self", NULL }; | |
5780 | ||
5781 | self = self; | |
5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5783 | return NULL; | |
5784 | if (_argo0) { | |
5785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5788 | return NULL; | |
5789 | } | |
5790 | } | |
5791 | { | |
5792 | wxPy_BEGIN_ALLOW_THREADS; | |
5793 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
5794 | ||
5795 | wxPy_END_ALLOW_THREADS; | |
5796 | } _resultobj = Py_BuildValue("i",_result); | |
5797 | return _resultobj; | |
5798 | } | |
5799 | ||
5800 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5801 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject * _resultobj; | |
5803 | int _result; | |
5804 | wxProcessEvent * _arg0; | |
5805 | int _arg1; | |
5806 | PyObject * _argo0 = 0; | |
5807 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5808 | ||
5809 | self = self; | |
5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5811 | return NULL; | |
5812 | if (_argo0) { | |
5813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5816 | return NULL; | |
5817 | } | |
5818 | } | |
5819 | { | |
5820 | wxPy_BEGIN_ALLOW_THREADS; | |
5821 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
5822 | ||
5823 | wxPy_END_ALLOW_THREADS; | |
5824 | } _resultobj = Py_BuildValue("i",_result); | |
5825 | return _resultobj; | |
5826 | } | |
5827 | ||
5828 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5829 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5830 | PyObject * _resultobj; | |
5831 | int _result; | |
5832 | wxProcessEvent * _arg0; | |
5833 | PyObject * _argo0 = 0; | |
5834 | char *_kwnames[] = { "self", NULL }; | |
5835 | ||
5836 | self = self; | |
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5838 | return NULL; | |
5839 | if (_argo0) { | |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5843 | return NULL; | |
5844 | } | |
5845 | } | |
5846 | { | |
5847 | wxPy_BEGIN_ALLOW_THREADS; | |
5848 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
5849 | ||
5850 | wxPy_END_ALLOW_THREADS; | |
5851 | } _resultobj = Py_BuildValue("i",_result); | |
5852 | return _resultobj; | |
5853 | } | |
5854 | ||
5855 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5856 | wxPyProcess *src; | |
5857 | wxEvtHandler *dest; | |
5858 | src = (wxPyProcess *) ptr; | |
5859 | dest = (wxEvtHandler *) src; | |
5860 | return (void *) dest; | |
5861 | } | |
5862 | ||
9416aa89 RD |
5863 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
5864 | wxPyProcess *src; | |
5865 | wxObject *dest; | |
5866 | src = (wxPyProcess *) ptr; | |
5867 | dest = (wxObject *) src; | |
5868 | return (void *) dest; | |
5869 | } | |
5870 | ||
c368d904 RD |
5871 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
5872 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject * _resultobj; | |
5874 | wxPyProcess * _result; | |
5875 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
5876 | int _arg1 = (int ) -1; | |
5877 | PyObject * _argo0 = 0; | |
5878 | char *_kwnames[] = { "parent","id", NULL }; | |
5879 | char _ptemp[128]; | |
5880 | ||
5881 | self = self; | |
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
5883 | return NULL; | |
5884 | if (_argo0) { | |
5885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
5887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
5888 | return NULL; | |
5889 | } | |
5890 | } | |
5891 | { | |
5892 | wxPy_BEGIN_ALLOW_THREADS; | |
5893 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
5894 | ||
5895 | wxPy_END_ALLOW_THREADS; | |
5896 | } if (_result) { | |
5897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
5898 | _resultobj = Py_BuildValue("s",_ptemp); | |
5899 | } else { | |
5900 | Py_INCREF(Py_None); | |
5901 | _resultobj = Py_None; | |
5902 | } | |
5903 | return _resultobj; | |
5904 | } | |
5905 | ||
5906 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
5907 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5908 | PyObject * _resultobj; | |
5909 | wxPyProcess * _arg0; | |
5910 | PyObject * _argo0 = 0; | |
5911 | char *_kwnames[] = { "self", NULL }; | |
5912 | ||
5913 | self = self; | |
5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
5915 | return NULL; | |
5916 | if (_argo0) { | |
5917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | { | |
5924 | wxPy_BEGIN_ALLOW_THREADS; | |
5925 | wxPyProcess_Destroy(_arg0); | |
5926 | ||
5927 | wxPy_END_ALLOW_THREADS; | |
5928 | } Py_INCREF(Py_None); | |
5929 | _resultobj = Py_None; | |
5930 | return _resultobj; | |
5931 | } | |
5932 | ||
0122b7e3 RD |
5933 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5934 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
5935 | PyObject * _resultobj; |
5936 | wxPyProcess * _arg0; | |
5937 | PyObject * _arg1; | |
5938 | PyObject * _arg2; | |
5939 | PyObject * _argo0 = 0; | |
5940 | PyObject * _obj1 = 0; | |
5941 | PyObject * _obj2 = 0; | |
5942 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5943 | ||
5944 | self = self; | |
0122b7e3 | 5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
5946 | return NULL; |
5947 | if (_argo0) { | |
5948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 5950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
5951 | return NULL; |
5952 | } | |
5953 | } | |
5954 | { | |
5955 | _arg1 = _obj1; | |
5956 | } | |
5957 | { | |
5958 | _arg2 = _obj2; | |
5959 | } | |
5960 | { | |
5961 | wxPy_BEGIN_ALLOW_THREADS; | |
0122b7e3 | 5962 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 RD |
5963 | |
5964 | wxPy_END_ALLOW_THREADS; | |
5965 | } Py_INCREF(Py_None); | |
5966 | _resultobj = Py_None; | |
5967 | return _resultobj; | |
5968 | } | |
5969 | ||
5970 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
5971 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5972 | PyObject * _resultobj; | |
5973 | wxPyProcess * _arg0; | |
5974 | int _arg1; | |
5975 | int _arg2; | |
5976 | PyObject * _argo0 = 0; | |
5977 | char *_kwnames[] = { "self","pid","status", NULL }; | |
5978 | ||
5979 | self = self; | |
5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5981 | return NULL; | |
5982 | if (_argo0) { | |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
5986 | return NULL; | |
5987 | } | |
5988 | } | |
5989 | { | |
5990 | wxPy_BEGIN_ALLOW_THREADS; | |
5991 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
5992 | ||
5993 | wxPy_END_ALLOW_THREADS; | |
5994 | } Py_INCREF(Py_None); | |
5995 | _resultobj = Py_None; | |
5996 | return _resultobj; | |
5997 | } | |
5998 | ||
5999 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6000 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6001 | PyObject * _resultobj; | |
6002 | wxPyProcess * _arg0; | |
6003 | PyObject * _argo0 = 0; | |
6004 | char *_kwnames[] = { "self", NULL }; | |
6005 | ||
6006 | self = self; | |
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6008 | return NULL; | |
6009 | if (_argo0) { | |
6010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6013 | return NULL; | |
6014 | } | |
6015 | } | |
6016 | { | |
6017 | wxPy_BEGIN_ALLOW_THREADS; | |
6018 | wxProcess_Redirect(_arg0); | |
6019 | ||
6020 | wxPy_END_ALLOW_THREADS; | |
6021 | } Py_INCREF(Py_None); | |
6022 | _resultobj = Py_None; | |
6023 | return _resultobj; | |
6024 | } | |
6025 | ||
6026 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6027 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6028 | PyObject * _resultobj; | |
6029 | bool _result; | |
6030 | wxPyProcess * _arg0; | |
6031 | PyObject * _argo0 = 0; | |
6032 | char *_kwnames[] = { "self", NULL }; | |
6033 | ||
6034 | self = self; | |
6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6036 | return NULL; | |
6037 | if (_argo0) { | |
6038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6041 | return NULL; | |
6042 | } | |
6043 | } | |
6044 | { | |
6045 | wxPy_BEGIN_ALLOW_THREADS; | |
6046 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
6047 | ||
6048 | wxPy_END_ALLOW_THREADS; | |
6049 | } _resultobj = Py_BuildValue("i",_result); | |
6050 | return _resultobj; | |
6051 | } | |
6052 | ||
6053 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6054 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject * _resultobj; | |
6056 | wxPyProcess * _arg0; | |
6057 | PyObject * _argo0 = 0; | |
6058 | char *_kwnames[] = { "self", NULL }; | |
6059 | ||
6060 | self = self; | |
6061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6062 | return NULL; | |
6063 | if (_argo0) { | |
6064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6067 | return NULL; | |
6068 | } | |
6069 | } | |
6070 | { | |
6071 | wxPy_BEGIN_ALLOW_THREADS; | |
6072 | wxProcess_Detach(_arg0); | |
6073 | ||
6074 | wxPy_END_ALLOW_THREADS; | |
6075 | } Py_INCREF(Py_None); | |
6076 | _resultobj = Py_None; | |
6077 | return _resultobj; | |
6078 | } | |
6079 | ||
6080 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6081 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6082 | PyObject * _resultobj; | |
6083 | wxInputStream * _result; | |
6084 | wxPyProcess * _arg0; | |
6085 | PyObject * _argo0 = 0; | |
6086 | char *_kwnames[] = { "self", NULL }; | |
6087 | ||
6088 | self = self; | |
6089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6090 | return NULL; | |
6091 | if (_argo0) { | |
6092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6095 | return NULL; | |
6096 | } | |
6097 | } | |
6098 | { | |
6099 | wxPy_BEGIN_ALLOW_THREADS; | |
6100 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
6101 | ||
6102 | wxPy_END_ALLOW_THREADS; | |
6103 | }{ | |
6104 | wxPyInputStream * _ptr = NULL; | |
6105 | ||
6106 | if (_result) { | |
6107 | _ptr = new wxPyInputStream(_result); | |
6108 | } | |
9416aa89 | 6109 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6110 | } |
6111 | return _resultobj; | |
6112 | } | |
6113 | ||
6114 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6115 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject * _resultobj; | |
6117 | wxInputStream * _result; | |
6118 | wxPyProcess * _arg0; | |
6119 | PyObject * _argo0 = 0; | |
6120 | char *_kwnames[] = { "self", NULL }; | |
6121 | ||
6122 | self = self; | |
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6124 | return NULL; | |
6125 | if (_argo0) { | |
6126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6129 | return NULL; | |
6130 | } | |
6131 | } | |
6132 | { | |
6133 | wxPy_BEGIN_ALLOW_THREADS; | |
6134 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
6135 | ||
6136 | wxPy_END_ALLOW_THREADS; | |
6137 | }{ | |
6138 | wxPyInputStream * _ptr = NULL; | |
6139 | ||
6140 | if (_result) { | |
6141 | _ptr = new wxPyInputStream(_result); | |
6142 | } | |
9416aa89 | 6143 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6144 | } |
6145 | return _resultobj; | |
6146 | } | |
6147 | ||
6148 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6149 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6150 | PyObject * _resultobj; | |
6151 | wxOutputStream * _result; | |
6152 | wxPyProcess * _arg0; | |
6153 | PyObject * _argo0 = 0; | |
6154 | char *_kwnames[] = { "self", NULL }; | |
6155 | char _ptemp[128]; | |
6156 | ||
6157 | self = self; | |
6158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6159 | return NULL; | |
6160 | if (_argo0) { | |
6161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6164 | return NULL; | |
6165 | } | |
6166 | } | |
6167 | { | |
6168 | wxPy_BEGIN_ALLOW_THREADS; | |
6169 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
6170 | ||
6171 | wxPy_END_ALLOW_THREADS; | |
6172 | } if (_result) { | |
6173 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6174 | _resultobj = Py_BuildValue("s",_ptemp); | |
6175 | } else { | |
6176 | Py_INCREF(Py_None); | |
6177 | _resultobj = Py_None; | |
6178 | } | |
6179 | return _resultobj; | |
6180 | } | |
6181 | ||
6182 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6183 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6184 | PyObject * _resultobj; | |
6185 | wxPyProcess * _arg0; | |
6186 | PyObject * _argo0 = 0; | |
6187 | char *_kwnames[] = { "self", NULL }; | |
6188 | ||
6189 | self = self; | |
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6191 | return NULL; | |
6192 | if (_argo0) { | |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6196 | return NULL; | |
6197 | } | |
6198 | } | |
6199 | { | |
6200 | wxPy_BEGIN_ALLOW_THREADS; | |
6201 | wxProcess_CloseOutput(_arg0); | |
6202 | ||
6203 | wxPy_END_ALLOW_THREADS; | |
6204 | } Py_INCREF(Py_None); | |
6205 | _resultobj = Py_None; | |
6206 | return _resultobj; | |
6207 | } | |
6208 | ||
9416aa89 RD |
6209 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6210 | wxJoystick *src; | |
6211 | wxObject *dest; | |
6212 | src = (wxJoystick *) ptr; | |
6213 | dest = (wxObject *) src; | |
6214 | return (void *) dest; | |
6215 | } | |
6216 | ||
185d7c3e RD |
6217 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6218 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject * _resultobj; | |
6220 | wxJoystick * _result; | |
6221 | int _arg0 = (int ) wxJOYSTICK1; | |
6222 | char *_kwnames[] = { "joystick", NULL }; | |
6223 | char _ptemp[128]; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6227 | return NULL; | |
6228 | { | |
6229 | wxPy_BEGIN_ALLOW_THREADS; | |
6230 | _result = (wxJoystick *)new_wxJoystick(_arg0); | |
6231 | ||
6232 | wxPy_END_ALLOW_THREADS; | |
6233 | } if (_result) { | |
6234 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6235 | _resultobj = Py_BuildValue("s",_ptemp); | |
6236 | } else { | |
6237 | Py_INCREF(Py_None); | |
6238 | _resultobj = Py_None; | |
6239 | } | |
6240 | return _resultobj; | |
6241 | } | |
6242 | ||
ac346f50 RD |
6243 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6244 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject * _resultobj; | |
6246 | wxJoystick * _arg0; | |
6247 | PyObject * _argo0 = 0; | |
6248 | char *_kwnames[] = { "self", NULL }; | |
6249 | ||
6250 | self = self; | |
6251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6252 | return NULL; | |
6253 | if (_argo0) { | |
6254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6257 | return NULL; | |
6258 | } | |
6259 | } | |
6260 | { | |
6261 | wxPy_BEGIN_ALLOW_THREADS; | |
6262 | delete_wxJoystick(_arg0); | |
6263 | ||
6264 | wxPy_END_ALLOW_THREADS; | |
6265 | } Py_INCREF(Py_None); | |
6266 | _resultobj = Py_None; | |
6267 | return _resultobj; | |
6268 | } | |
6269 | ||
185d7c3e RD |
6270 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6271 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject * _resultobj; | |
6273 | wxPoint * _result; | |
6274 | wxJoystick * _arg0; | |
6275 | PyObject * _argo0 = 0; | |
6276 | char *_kwnames[] = { "self", NULL }; | |
6277 | char _ptemp[128]; | |
6278 | ||
6279 | self = self; | |
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6281 | return NULL; | |
6282 | if (_argo0) { | |
6283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6286 | return NULL; | |
6287 | } | |
6288 | } | |
6289 | { | |
6290 | wxPy_BEGIN_ALLOW_THREADS; | |
6291 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); | |
6292 | ||
6293 | wxPy_END_ALLOW_THREADS; | |
6294 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6295 | _resultobj = Py_BuildValue("s",_ptemp); | |
6296 | return _resultobj; | |
6297 | } | |
6298 | ||
6299 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6300 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject * _resultobj; | |
6302 | int _result; | |
6303 | wxJoystick * _arg0; | |
6304 | PyObject * _argo0 = 0; | |
6305 | char *_kwnames[] = { "self", NULL }; | |
6306 | ||
6307 | self = self; | |
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6309 | return NULL; | |
6310 | if (_argo0) { | |
6311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
6317 | { | |
6318 | wxPy_BEGIN_ALLOW_THREADS; | |
6319 | _result = (int )wxJoystick_GetZPosition(_arg0); | |
6320 | ||
6321 | wxPy_END_ALLOW_THREADS; | |
6322 | } _resultobj = Py_BuildValue("i",_result); | |
6323 | return _resultobj; | |
6324 | } | |
6325 | ||
6326 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6327 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject * _resultobj; | |
6329 | int _result; | |
6330 | wxJoystick * _arg0; | |
6331 | PyObject * _argo0 = 0; | |
6332 | char *_kwnames[] = { "self", NULL }; | |
6333 | ||
6334 | self = self; | |
6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6336 | return NULL; | |
6337 | if (_argo0) { | |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
6344 | { | |
6345 | wxPy_BEGIN_ALLOW_THREADS; | |
6346 | _result = (int )wxJoystick_GetButtonState(_arg0); | |
6347 | ||
6348 | wxPy_END_ALLOW_THREADS; | |
6349 | } _resultobj = Py_BuildValue("i",_result); | |
6350 | return _resultobj; | |
6351 | } | |
6352 | ||
6353 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6354 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6355 | PyObject * _resultobj; | |
6356 | int _result; | |
6357 | wxJoystick * _arg0; | |
6358 | PyObject * _argo0 = 0; | |
6359 | char *_kwnames[] = { "self", NULL }; | |
6360 | ||
6361 | self = self; | |
6362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6363 | return NULL; | |
6364 | if (_argo0) { | |
6365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6368 | return NULL; | |
6369 | } | |
6370 | } | |
6371 | { | |
6372 | wxPy_BEGIN_ALLOW_THREADS; | |
6373 | _result = (int )wxJoystick_GetPOVPosition(_arg0); | |
6374 | ||
6375 | wxPy_END_ALLOW_THREADS; | |
6376 | } _resultobj = Py_BuildValue("i",_result); | |
6377 | return _resultobj; | |
6378 | } | |
6379 | ||
6380 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6381 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6382 | PyObject * _resultobj; | |
6383 | int _result; | |
6384 | wxJoystick * _arg0; | |
6385 | PyObject * _argo0 = 0; | |
6386 | char *_kwnames[] = { "self", NULL }; | |
6387 | ||
6388 | self = self; | |
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6390 | return NULL; | |
6391 | if (_argo0) { | |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6395 | return NULL; | |
6396 | } | |
6397 | } | |
6398 | { | |
6399 | wxPy_BEGIN_ALLOW_THREADS; | |
6400 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); | |
6401 | ||
6402 | wxPy_END_ALLOW_THREADS; | |
6403 | } _resultobj = Py_BuildValue("i",_result); | |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
6407 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6408 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject * _resultobj; | |
6410 | int _result; | |
6411 | wxJoystick * _arg0; | |
6412 | PyObject * _argo0 = 0; | |
6413 | char *_kwnames[] = { "self", NULL }; | |
6414 | ||
6415 | self = self; | |
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6417 | return NULL; | |
6418 | if (_argo0) { | |
6419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6422 | return NULL; | |
6423 | } | |
6424 | } | |
6425 | { | |
6426 | wxPy_BEGIN_ALLOW_THREADS; | |
6427 | _result = (int )wxJoystick_GetRudderPosition(_arg0); | |
6428 | ||
6429 | wxPy_END_ALLOW_THREADS; | |
6430 | } _resultobj = Py_BuildValue("i",_result); | |
6431 | return _resultobj; | |
6432 | } | |
6433 | ||
6434 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6435 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6436 | PyObject * _resultobj; | |
6437 | int _result; | |
6438 | wxJoystick * _arg0; | |
6439 | PyObject * _argo0 = 0; | |
6440 | char *_kwnames[] = { "self", NULL }; | |
6441 | ||
6442 | self = self; | |
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6444 | return NULL; | |
6445 | if (_argo0) { | |
6446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6449 | return NULL; | |
6450 | } | |
6451 | } | |
6452 | { | |
6453 | wxPy_BEGIN_ALLOW_THREADS; | |
6454 | _result = (int )wxJoystick_GetUPosition(_arg0); | |
6455 | ||
6456 | wxPy_END_ALLOW_THREADS; | |
6457 | } _resultobj = Py_BuildValue("i",_result); | |
6458 | return _resultobj; | |
6459 | } | |
6460 | ||
6461 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6462 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject * _resultobj; | |
6464 | int _result; | |
6465 | wxJoystick * _arg0; | |
6466 | PyObject * _argo0 = 0; | |
6467 | char *_kwnames[] = { "self", NULL }; | |
6468 | ||
6469 | self = self; | |
6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6471 | return NULL; | |
6472 | if (_argo0) { | |
6473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6476 | return NULL; | |
6477 | } | |
6478 | } | |
6479 | { | |
6480 | wxPy_BEGIN_ALLOW_THREADS; | |
6481 | _result = (int )wxJoystick_GetVPosition(_arg0); | |
6482 | ||
6483 | wxPy_END_ALLOW_THREADS; | |
6484 | } _resultobj = Py_BuildValue("i",_result); | |
6485 | return _resultobj; | |
6486 | } | |
6487 | ||
6488 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6489 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6490 | PyObject * _resultobj; | |
6491 | int _result; | |
6492 | wxJoystick * _arg0; | |
6493 | PyObject * _argo0 = 0; | |
6494 | char *_kwnames[] = { "self", NULL }; | |
6495 | ||
6496 | self = self; | |
6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6498 | return NULL; | |
6499 | if (_argo0) { | |
6500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6503 | return NULL; | |
6504 | } | |
6505 | } | |
6506 | { | |
6507 | wxPy_BEGIN_ALLOW_THREADS; | |
6508 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); | |
6509 | ||
6510 | wxPy_END_ALLOW_THREADS; | |
6511 | } _resultobj = Py_BuildValue("i",_result); | |
6512 | return _resultobj; | |
6513 | } | |
6514 | ||
6515 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6516 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6517 | PyObject * _resultobj; | |
6518 | wxJoystick * _arg0; | |
6519 | int _arg1; | |
6520 | PyObject * _argo0 = 0; | |
6521 | char *_kwnames[] = { "self","threshold", NULL }; | |
6522 | ||
6523 | self = self; | |
6524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6525 | return NULL; | |
6526 | if (_argo0) { | |
6527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6530 | return NULL; | |
6531 | } | |
6532 | } | |
6533 | { | |
6534 | wxPy_BEGIN_ALLOW_THREADS; | |
6535 | wxJoystick_SetMovementThreshold(_arg0,_arg1); | |
6536 | ||
6537 | wxPy_END_ALLOW_THREADS; | |
6538 | } Py_INCREF(Py_None); | |
6539 | _resultobj = Py_None; | |
6540 | return _resultobj; | |
6541 | } | |
6542 | ||
6543 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6544 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6545 | PyObject * _resultobj; | |
6546 | bool _result; | |
6547 | wxJoystick * _arg0; | |
6548 | PyObject * _argo0 = 0; | |
6549 | char *_kwnames[] = { "self", NULL }; | |
6550 | ||
6551 | self = self; | |
6552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6553 | return NULL; | |
6554 | if (_argo0) { | |
6555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6558 | return NULL; | |
6559 | } | |
6560 | } | |
6561 | { | |
6562 | wxPy_BEGIN_ALLOW_THREADS; | |
6563 | _result = (bool )wxJoystick_IsOk(_arg0); | |
6564 | ||
6565 | wxPy_END_ALLOW_THREADS; | |
6566 | } _resultobj = Py_BuildValue("i",_result); | |
6567 | return _resultobj; | |
6568 | } | |
6569 | ||
6570 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6571 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6572 | PyObject * _resultobj; | |
6573 | int _result; | |
6574 | wxJoystick * _arg0; | |
6575 | PyObject * _argo0 = 0; | |
6576 | char *_kwnames[] = { "self", NULL }; | |
6577 | ||
6578 | self = self; | |
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6580 | return NULL; | |
6581 | if (_argo0) { | |
6582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6585 | return NULL; | |
6586 | } | |
6587 | } | |
6588 | { | |
6589 | wxPy_BEGIN_ALLOW_THREADS; | |
6590 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); | |
6591 | ||
6592 | wxPy_END_ALLOW_THREADS; | |
6593 | } _resultobj = Py_BuildValue("i",_result); | |
6594 | return _resultobj; | |
6595 | } | |
6596 | ||
6597 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6598 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject * _resultobj; | |
6600 | int _result; | |
6601 | wxJoystick * _arg0; | |
6602 | PyObject * _argo0 = 0; | |
6603 | char *_kwnames[] = { "self", NULL }; | |
6604 | ||
6605 | self = self; | |
6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6607 | return NULL; | |
6608 | if (_argo0) { | |
6609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6612 | return NULL; | |
6613 | } | |
6614 | } | |
6615 | { | |
6616 | wxPy_BEGIN_ALLOW_THREADS; | |
6617 | _result = (int )wxJoystick_GetManufacturerId(_arg0); | |
6618 | ||
6619 | wxPy_END_ALLOW_THREADS; | |
6620 | } _resultobj = Py_BuildValue("i",_result); | |
6621 | return _resultobj; | |
6622 | } | |
6623 | ||
6624 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6625 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject * _resultobj; | |
6627 | int _result; | |
6628 | wxJoystick * _arg0; | |
6629 | PyObject * _argo0 = 0; | |
6630 | char *_kwnames[] = { "self", NULL }; | |
6631 | ||
6632 | self = self; | |
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6634 | return NULL; | |
6635 | if (_argo0) { | |
6636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
6642 | { | |
6643 | wxPy_BEGIN_ALLOW_THREADS; | |
6644 | _result = (int )wxJoystick_GetProductId(_arg0); | |
6645 | ||
6646 | wxPy_END_ALLOW_THREADS; | |
6647 | } _resultobj = Py_BuildValue("i",_result); | |
6648 | return _resultobj; | |
6649 | } | |
6650 | ||
6651 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6652 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6653 | PyObject * _resultobj; | |
6654 | wxString * _result; | |
6655 | wxJoystick * _arg0; | |
6656 | PyObject * _argo0 = 0; | |
6657 | char *_kwnames[] = { "self", NULL }; | |
6658 | ||
6659 | self = self; | |
6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6661 | return NULL; | |
6662 | if (_argo0) { | |
6663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6666 | return NULL; | |
6667 | } | |
6668 | } | |
6669 | { | |
6670 | wxPy_BEGIN_ALLOW_THREADS; | |
6671 | _result = new wxString (wxJoystick_GetProductName(_arg0)); | |
6672 | ||
6673 | wxPy_END_ALLOW_THREADS; | |
6674 | }{ | |
6675 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6676 | } | |
6677 | { | |
6678 | delete _result; | |
6679 | } | |
6680 | return _resultobj; | |
6681 | } | |
6682 | ||
6683 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6684 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6685 | PyObject * _resultobj; | |
6686 | int _result; | |
6687 | wxJoystick * _arg0; | |
6688 | PyObject * _argo0 = 0; | |
6689 | char *_kwnames[] = { "self", NULL }; | |
6690 | ||
6691 | self = self; | |
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6693 | return NULL; | |
6694 | if (_argo0) { | |
6695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6698 | return NULL; | |
6699 | } | |
6700 | } | |
6701 | { | |
6702 | wxPy_BEGIN_ALLOW_THREADS; | |
6703 | _result = (int )wxJoystick_GetXMin(_arg0); | |
6704 | ||
6705 | wxPy_END_ALLOW_THREADS; | |
6706 | } _resultobj = Py_BuildValue("i",_result); | |
6707 | return _resultobj; | |
6708 | } | |
6709 | ||
6710 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6711 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6712 | PyObject * _resultobj; | |
6713 | int _result; | |
6714 | wxJoystick * _arg0; | |
6715 | PyObject * _argo0 = 0; | |
6716 | char *_kwnames[] = { "self", NULL }; | |
6717 | ||
6718 | self = self; | |
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6720 | return NULL; | |
6721 | if (_argo0) { | |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
6728 | { | |
6729 | wxPy_BEGIN_ALLOW_THREADS; | |
6730 | _result = (int )wxJoystick_GetYMin(_arg0); | |
6731 | ||
6732 | wxPy_END_ALLOW_THREADS; | |
6733 | } _resultobj = Py_BuildValue("i",_result); | |
6734 | return _resultobj; | |
6735 | } | |
6736 | ||
6737 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6738 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6739 | PyObject * _resultobj; | |
6740 | int _result; | |
6741 | wxJoystick * _arg0; | |
6742 | PyObject * _argo0 = 0; | |
6743 | char *_kwnames[] = { "self", NULL }; | |
6744 | ||
6745 | self = self; | |
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6747 | return NULL; | |
6748 | if (_argo0) { | |
6749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
6755 | { | |
6756 | wxPy_BEGIN_ALLOW_THREADS; | |
6757 | _result = (int )wxJoystick_GetZMin(_arg0); | |
6758 | ||
6759 | wxPy_END_ALLOW_THREADS; | |
6760 | } _resultobj = Py_BuildValue("i",_result); | |
6761 | return _resultobj; | |
6762 | } | |
6763 | ||
6764 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6765 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject * _resultobj; | |
6767 | int _result; | |
6768 | wxJoystick * _arg0; | |
6769 | PyObject * _argo0 = 0; | |
6770 | char *_kwnames[] = { "self", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | { | |
6783 | wxPy_BEGIN_ALLOW_THREADS; | |
6784 | _result = (int )wxJoystick_GetXMax(_arg0); | |
6785 | ||
6786 | wxPy_END_ALLOW_THREADS; | |
6787 | } _resultobj = Py_BuildValue("i",_result); | |
6788 | return _resultobj; | |
6789 | } | |
6790 | ||
6791 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6792 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6793 | PyObject * _resultobj; | |
6794 | int _result; | |
6795 | wxJoystick * _arg0; | |
6796 | PyObject * _argo0 = 0; | |
6797 | char *_kwnames[] = { "self", NULL }; | |
6798 | ||
6799 | self = self; | |
6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6801 | return NULL; | |
6802 | if (_argo0) { | |
6803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6806 | return NULL; | |
6807 | } | |
6808 | } | |
6809 | { | |
6810 | wxPy_BEGIN_ALLOW_THREADS; | |
6811 | _result = (int )wxJoystick_GetYMax(_arg0); | |
6812 | ||
6813 | wxPy_END_ALLOW_THREADS; | |
6814 | } _resultobj = Py_BuildValue("i",_result); | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6819 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | int _result; | |
6822 | wxJoystick * _arg0; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
6837 | wxPy_BEGIN_ALLOW_THREADS; | |
6838 | _result = (int )wxJoystick_GetZMax(_arg0); | |
6839 | ||
6840 | wxPy_END_ALLOW_THREADS; | |
6841 | } _resultobj = Py_BuildValue("i",_result); | |
6842 | return _resultobj; | |
6843 | } | |
6844 | ||
6845 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
6846 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject * _resultobj; | |
6848 | int _result; | |
6849 | wxJoystick * _arg0; | |
6850 | PyObject * _argo0 = 0; | |
6851 | char *_kwnames[] = { "self", NULL }; | |
6852 | ||
6853 | self = self; | |
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
6855 | return NULL; | |
6856 | if (_argo0) { | |
6857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
6864 | wxPy_BEGIN_ALLOW_THREADS; | |
6865 | _result = (int )wxJoystick_GetNumberButtons(_arg0); | |
6866 | ||
6867 | wxPy_END_ALLOW_THREADS; | |
6868 | } _resultobj = Py_BuildValue("i",_result); | |
6869 | return _resultobj; | |
6870 | } | |
6871 | ||
6872 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
6873 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6874 | PyObject * _resultobj; | |
6875 | int _result; | |
6876 | wxJoystick * _arg0; | |
6877 | PyObject * _argo0 = 0; | |
6878 | char *_kwnames[] = { "self", NULL }; | |
6879 | ||
6880 | self = self; | |
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
6882 | return NULL; | |
6883 | if (_argo0) { | |
6884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
6887 | return NULL; | |
6888 | } | |
6889 | } | |
6890 | { | |
6891 | wxPy_BEGIN_ALLOW_THREADS; | |
6892 | _result = (int )wxJoystick_GetNumberAxes(_arg0); | |
6893 | ||
6894 | wxPy_END_ALLOW_THREADS; | |
6895 | } _resultobj = Py_BuildValue("i",_result); | |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
6899 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
6900 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject * _resultobj; | |
6902 | int _result; | |
6903 | wxJoystick * _arg0; | |
6904 | PyObject * _argo0 = 0; | |
6905 | char *_kwnames[] = { "self", NULL }; | |
6906 | ||
6907 | self = self; | |
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
6909 | return NULL; | |
6910 | if (_argo0) { | |
6911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | { | |
6918 | wxPy_BEGIN_ALLOW_THREADS; | |
6919 | _result = (int )wxJoystick_GetMaxButtons(_arg0); | |
6920 | ||
6921 | wxPy_END_ALLOW_THREADS; | |
6922 | } _resultobj = Py_BuildValue("i",_result); | |
6923 | return _resultobj; | |
6924 | } | |
6925 | ||
6926 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
6927 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject * _resultobj; | |
6929 | int _result; | |
6930 | wxJoystick * _arg0; | |
6931 | PyObject * _argo0 = 0; | |
6932 | char *_kwnames[] = { "self", NULL }; | |
6933 | ||
6934 | self = self; | |
6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
6936 | return NULL; | |
6937 | if (_argo0) { | |
6938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
6941 | return NULL; | |
6942 | } | |
6943 | } | |
6944 | { | |
6945 | wxPy_BEGIN_ALLOW_THREADS; | |
6946 | _result = (int )wxJoystick_GetMaxAxes(_arg0); | |
6947 | ||
6948 | wxPy_END_ALLOW_THREADS; | |
6949 | } _resultobj = Py_BuildValue("i",_result); | |
6950 | return _resultobj; | |
6951 | } | |
6952 | ||
6953 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
6954 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6955 | PyObject * _resultobj; | |
6956 | int _result; | |
6957 | wxJoystick * _arg0; | |
6958 | PyObject * _argo0 = 0; | |
6959 | char *_kwnames[] = { "self", NULL }; | |
6960 | ||
6961 | self = self; | |
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
6963 | return NULL; | |
6964 | if (_argo0) { | |
6965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
6968 | return NULL; | |
6969 | } | |
6970 | } | |
6971 | { | |
6972 | wxPy_BEGIN_ALLOW_THREADS; | |
6973 | _result = (int )wxJoystick_GetPollingMin(_arg0); | |
6974 | ||
6975 | wxPy_END_ALLOW_THREADS; | |
6976 | } _resultobj = Py_BuildValue("i",_result); | |
6977 | return _resultobj; | |
6978 | } | |
6979 | ||
6980 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
6981 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6982 | PyObject * _resultobj; | |
6983 | int _result; | |
6984 | wxJoystick * _arg0; | |
6985 | PyObject * _argo0 = 0; | |
6986 | char *_kwnames[] = { "self", NULL }; | |
6987 | ||
6988 | self = self; | |
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
6990 | return NULL; | |
6991 | if (_argo0) { | |
6992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
6995 | return NULL; | |
6996 | } | |
6997 | } | |
6998 | { | |
6999 | wxPy_BEGIN_ALLOW_THREADS; | |
7000 | _result = (int )wxJoystick_GetPollingMax(_arg0); | |
7001 | ||
7002 | wxPy_END_ALLOW_THREADS; | |
7003 | } _resultobj = Py_BuildValue("i",_result); | |
7004 | return _resultobj; | |
7005 | } | |
7006 | ||
7007 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7008 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7009 | PyObject * _resultobj; | |
7010 | int _result; | |
7011 | wxJoystick * _arg0; | |
7012 | PyObject * _argo0 = 0; | |
7013 | char *_kwnames[] = { "self", NULL }; | |
7014 | ||
7015 | self = self; | |
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7017 | return NULL; | |
7018 | if (_argo0) { | |
7019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7022 | return NULL; | |
7023 | } | |
7024 | } | |
7025 | { | |
7026 | wxPy_BEGIN_ALLOW_THREADS; | |
7027 | _result = (int )wxJoystick_GetRudderMin(_arg0); | |
7028 | ||
7029 | wxPy_END_ALLOW_THREADS; | |
7030 | } _resultobj = Py_BuildValue("i",_result); | |
7031 | return _resultobj; | |
7032 | } | |
7033 | ||
7034 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7035 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7036 | PyObject * _resultobj; | |
7037 | int _result; | |
7038 | wxJoystick * _arg0; | |
7039 | PyObject * _argo0 = 0; | |
7040 | char *_kwnames[] = { "self", NULL }; | |
7041 | ||
7042 | self = self; | |
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7044 | return NULL; | |
7045 | if (_argo0) { | |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | { | |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
7054 | _result = (int )wxJoystick_GetRudderMax(_arg0); | |
7055 | ||
7056 | wxPy_END_ALLOW_THREADS; | |
7057 | } _resultobj = Py_BuildValue("i",_result); | |
7058 | return _resultobj; | |
7059 | } | |
7060 | ||
7061 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7062 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject * _resultobj; | |
7064 | int _result; | |
7065 | wxJoystick * _arg0; | |
7066 | PyObject * _argo0 = 0; | |
7067 | char *_kwnames[] = { "self", NULL }; | |
7068 | ||
7069 | self = self; | |
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7071 | return NULL; | |
7072 | if (_argo0) { | |
7073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
7079 | { | |
7080 | wxPy_BEGIN_ALLOW_THREADS; | |
7081 | _result = (int )wxJoystick_GetUMin(_arg0); | |
7082 | ||
7083 | wxPy_END_ALLOW_THREADS; | |
7084 | } _resultobj = Py_BuildValue("i",_result); | |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
7088 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7089 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject * _resultobj; | |
7091 | int _result; | |
7092 | wxJoystick * _arg0; | |
7093 | PyObject * _argo0 = 0; | |
7094 | char *_kwnames[] = { "self", NULL }; | |
7095 | ||
7096 | self = self; | |
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7098 | return NULL; | |
7099 | if (_argo0) { | |
7100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7103 | return NULL; | |
7104 | } | |
7105 | } | |
7106 | { | |
7107 | wxPy_BEGIN_ALLOW_THREADS; | |
7108 | _result = (int )wxJoystick_GetUMax(_arg0); | |
7109 | ||
7110 | wxPy_END_ALLOW_THREADS; | |
7111 | } _resultobj = Py_BuildValue("i",_result); | |
7112 | return _resultobj; | |
7113 | } | |
7114 | ||
7115 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7116 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject * _resultobj; | |
7118 | int _result; | |
7119 | wxJoystick * _arg0; | |
7120 | PyObject * _argo0 = 0; | |
7121 | char *_kwnames[] = { "self", NULL }; | |
7122 | ||
7123 | self = self; | |
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7125 | return NULL; | |
7126 | if (_argo0) { | |
7127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7130 | return NULL; | |
7131 | } | |
7132 | } | |
7133 | { | |
7134 | wxPy_BEGIN_ALLOW_THREADS; | |
7135 | _result = (int )wxJoystick_GetVMin(_arg0); | |
7136 | ||
7137 | wxPy_END_ALLOW_THREADS; | |
7138 | } _resultobj = Py_BuildValue("i",_result); | |
7139 | return _resultobj; | |
7140 | } | |
7141 | ||
7142 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7143 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject * _resultobj; | |
7145 | int _result; | |
7146 | wxJoystick * _arg0; | |
7147 | PyObject * _argo0 = 0; | |
7148 | char *_kwnames[] = { "self", NULL }; | |
7149 | ||
7150 | self = self; | |
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7152 | return NULL; | |
7153 | if (_argo0) { | |
7154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7157 | return NULL; | |
7158 | } | |
7159 | } | |
7160 | { | |
7161 | wxPy_BEGIN_ALLOW_THREADS; | |
7162 | _result = (int )wxJoystick_GetVMax(_arg0); | |
7163 | ||
7164 | wxPy_END_ALLOW_THREADS; | |
7165 | } _resultobj = Py_BuildValue("i",_result); | |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
7169 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7170 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject * _resultobj; | |
7172 | bool _result; | |
7173 | wxJoystick * _arg0; | |
7174 | PyObject * _argo0 = 0; | |
7175 | char *_kwnames[] = { "self", NULL }; | |
7176 | ||
7177 | self = self; | |
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7179 | return NULL; | |
7180 | if (_argo0) { | |
7181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7184 | return NULL; | |
7185 | } | |
7186 | } | |
7187 | { | |
7188 | wxPy_BEGIN_ALLOW_THREADS; | |
7189 | _result = (bool )wxJoystick_HasRudder(_arg0); | |
7190 | ||
7191 | wxPy_END_ALLOW_THREADS; | |
7192 | } _resultobj = Py_BuildValue("i",_result); | |
7193 | return _resultobj; | |
7194 | } | |
7195 | ||
7196 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7197 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject * _resultobj; | |
7199 | bool _result; | |
7200 | wxJoystick * _arg0; | |
7201 | PyObject * _argo0 = 0; | |
7202 | char *_kwnames[] = { "self", NULL }; | |
7203 | ||
7204 | self = self; | |
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7206 | return NULL; | |
7207 | if (_argo0) { | |
7208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7211 | return NULL; | |
7212 | } | |
7213 | } | |
7214 | { | |
7215 | wxPy_BEGIN_ALLOW_THREADS; | |
7216 | _result = (bool )wxJoystick_HasZ(_arg0); | |
7217 | ||
7218 | wxPy_END_ALLOW_THREADS; | |
7219 | } _resultobj = Py_BuildValue("i",_result); | |
7220 | return _resultobj; | |
7221 | } | |
7222 | ||
7223 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7224 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject * _resultobj; | |
7226 | bool _result; | |
7227 | wxJoystick * _arg0; | |
7228 | PyObject * _argo0 = 0; | |
7229 | char *_kwnames[] = { "self", NULL }; | |
7230 | ||
7231 | self = self; | |
7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7233 | return NULL; | |
7234 | if (_argo0) { | |
7235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7238 | return NULL; | |
7239 | } | |
7240 | } | |
7241 | { | |
7242 | wxPy_BEGIN_ALLOW_THREADS; | |
7243 | _result = (bool )wxJoystick_HasU(_arg0); | |
7244 | ||
7245 | wxPy_END_ALLOW_THREADS; | |
7246 | } _resultobj = Py_BuildValue("i",_result); | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
7250 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7251 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject * _resultobj; | |
7253 | bool _result; | |
7254 | wxJoystick * _arg0; | |
7255 | PyObject * _argo0 = 0; | |
7256 | char *_kwnames[] = { "self", NULL }; | |
7257 | ||
7258 | self = self; | |
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7260 | return NULL; | |
7261 | if (_argo0) { | |
7262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7265 | return NULL; | |
7266 | } | |
7267 | } | |
7268 | { | |
7269 | wxPy_BEGIN_ALLOW_THREADS; | |
7270 | _result = (bool )wxJoystick_HasV(_arg0); | |
7271 | ||
7272 | wxPy_END_ALLOW_THREADS; | |
7273 | } _resultobj = Py_BuildValue("i",_result); | |
7274 | return _resultobj; | |
7275 | } | |
7276 | ||
7277 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7278 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject * _resultobj; | |
7280 | bool _result; | |
7281 | wxJoystick * _arg0; | |
7282 | PyObject * _argo0 = 0; | |
7283 | char *_kwnames[] = { "self", NULL }; | |
7284 | ||
7285 | self = self; | |
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7287 | return NULL; | |
7288 | if (_argo0) { | |
7289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7292 | return NULL; | |
7293 | } | |
7294 | } | |
7295 | { | |
7296 | wxPy_BEGIN_ALLOW_THREADS; | |
7297 | _result = (bool )wxJoystick_HasPOV(_arg0); | |
7298 | ||
7299 | wxPy_END_ALLOW_THREADS; | |
7300 | } _resultobj = Py_BuildValue("i",_result); | |
7301 | return _resultobj; | |
7302 | } | |
7303 | ||
7304 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7305 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7306 | PyObject * _resultobj; | |
7307 | bool _result; | |
7308 | wxJoystick * _arg0; | |
7309 | PyObject * _argo0 = 0; | |
7310 | char *_kwnames[] = { "self", NULL }; | |
7311 | ||
7312 | self = self; | |
7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7314 | return NULL; | |
7315 | if (_argo0) { | |
7316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7319 | return NULL; | |
7320 | } | |
7321 | } | |
7322 | { | |
7323 | wxPy_BEGIN_ALLOW_THREADS; | |
7324 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); | |
7325 | ||
7326 | wxPy_END_ALLOW_THREADS; | |
7327 | } _resultobj = Py_BuildValue("i",_result); | |
7328 | return _resultobj; | |
7329 | } | |
7330 | ||
7331 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7332 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7333 | PyObject * _resultobj; | |
7334 | bool _result; | |
7335 | wxJoystick * _arg0; | |
7336 | PyObject * _argo0 = 0; | |
7337 | char *_kwnames[] = { "self", NULL }; | |
7338 | ||
7339 | self = self; | |
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7341 | return NULL; | |
7342 | if (_argo0) { | |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
7349 | { | |
7350 | wxPy_BEGIN_ALLOW_THREADS; | |
7351 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); | |
7352 | ||
7353 | wxPy_END_ALLOW_THREADS; | |
7354 | } _resultobj = Py_BuildValue("i",_result); | |
7355 | return _resultobj; | |
7356 | } | |
7357 | ||
7358 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7359 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject * _resultobj; | |
7361 | bool _result; | |
7362 | wxJoystick * _arg0; | |
7363 | wxWindow * _arg1; | |
7364 | int _arg2 = (int ) 0; | |
7365 | PyObject * _argo0 = 0; | |
7366 | PyObject * _argo1 = 0; | |
7367 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7368 | ||
7369 | self = self; | |
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7371 | return NULL; | |
7372 | if (_argo0) { | |
7373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7376 | return NULL; | |
7377 | } | |
7378 | } | |
7379 | if (_argo1) { | |
7380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7383 | return NULL; | |
7384 | } | |
7385 | } | |
7386 | { | |
7387 | wxPy_BEGIN_ALLOW_THREADS; | |
7388 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); | |
7389 | ||
7390 | wxPy_END_ALLOW_THREADS; | |
7391 | } _resultobj = Py_BuildValue("i",_result); | |
7392 | return _resultobj; | |
7393 | } | |
7394 | ||
7395 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7396 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7397 | PyObject * _resultobj; | |
7398 | bool _result; | |
7399 | wxJoystick * _arg0; | |
7400 | PyObject * _argo0 = 0; | |
7401 | char *_kwnames[] = { "self", NULL }; | |
7402 | ||
7403 | self = self; | |
7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7405 | return NULL; | |
7406 | if (_argo0) { | |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7410 | return NULL; | |
7411 | } | |
7412 | } | |
7413 | { | |
7414 | wxPy_BEGIN_ALLOW_THREADS; | |
7415 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); | |
7416 | ||
7417 | wxPy_END_ALLOW_THREADS; | |
7418 | } _resultobj = Py_BuildValue("i",_result); | |
7419 | return _resultobj; | |
7420 | } | |
7421 | ||
493f1553 RD |
7422 | static void *SwigwxWaveTowxObject(void *ptr) { |
7423 | wxWave *src; | |
7424 | wxObject *dest; | |
7425 | src = (wxWave *) ptr; | |
7426 | dest = (wxObject *) src; | |
7427 | return (void *) dest; | |
7428 | } | |
7429 | ||
7430 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7431 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7432 | PyObject * _resultobj; | |
7433 | wxWave * _result; | |
7434 | wxString * _arg0; | |
7435 | bool _arg1 = (bool ) FALSE; | |
7436 | PyObject * _obj0 = 0; | |
7437 | int tempbool1 = (int) FALSE; | |
7438 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7439 | char _ptemp[128]; | |
7440 | ||
7441 | self = self; | |
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7443 | return NULL; | |
7444 | { | |
7445 | #if PYTHON_API_VERSION >= 1009 | |
7446 | char* tmpPtr; int tmpSize; | |
7447 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7449 | return NULL; | |
7450 | } | |
7451 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7452 | return NULL; | |
7453 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7454 | #else | |
7455 | if (!PyString_Check(_obj0)) { | |
7456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7457 | return NULL; | |
7458 | } | |
7459 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
7460 | #endif | |
7461 | } | |
7462 | _arg1 = (bool ) tempbool1; | |
7463 | { | |
7464 | wxPy_BEGIN_ALLOW_THREADS; | |
7465 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); | |
7466 | ||
7467 | wxPy_END_ALLOW_THREADS; | |
7468 | } if (_result) { | |
7469 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7470 | _resultobj = Py_BuildValue("s",_ptemp); | |
7471 | } else { | |
7472 | Py_INCREF(Py_None); | |
7473 | _resultobj = Py_None; | |
7474 | } | |
7475 | { | |
7476 | if (_obj0) | |
7477 | delete _arg0; | |
7478 | } | |
7479 | return _resultobj; | |
7480 | } | |
7481 | ||
7482 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7483 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject * _resultobj; | |
7485 | wxWave * _arg0; | |
7486 | PyObject * _argo0 = 0; | |
7487 | char *_kwnames[] = { "self", NULL }; | |
7488 | ||
7489 | self = self; | |
7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7491 | return NULL; | |
7492 | if (_argo0) { | |
7493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7496 | return NULL; | |
7497 | } | |
7498 | } | |
7499 | { | |
7500 | wxPy_BEGIN_ALLOW_THREADS; | |
7501 | delete_wxWave(_arg0); | |
7502 | ||
7503 | wxPy_END_ALLOW_THREADS; | |
7504 | } Py_INCREF(Py_None); | |
7505 | _resultobj = Py_None; | |
7506 | return _resultobj; | |
7507 | } | |
7508 | ||
7509 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7510 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7511 | PyObject * _resultobj; | |
7512 | bool _result; | |
7513 | wxWave * _arg0; | |
7514 | PyObject * _argo0 = 0; | |
7515 | char *_kwnames[] = { "self", NULL }; | |
7516 | ||
7517 | self = self; | |
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7519 | return NULL; | |
7520 | if (_argo0) { | |
7521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
7527 | { | |
7528 | wxPy_BEGIN_ALLOW_THREADS; | |
7529 | _result = (bool )wxWave_IsOk(_arg0); | |
7530 | ||
7531 | wxPy_END_ALLOW_THREADS; | |
7532 | } _resultobj = Py_BuildValue("i",_result); | |
7533 | return _resultobj; | |
7534 | } | |
7535 | ||
7536 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7537 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7538 | PyObject * _resultobj; | |
7539 | bool _result; | |
7540 | wxWave * _arg0; | |
7541 | bool _arg1 = (bool ) TRUE; | |
7542 | bool _arg2 = (bool ) FALSE; | |
7543 | PyObject * _argo0 = 0; | |
7544 | int tempbool1 = (int) TRUE; | |
7545 | int tempbool2 = (int) FALSE; | |
7546 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7547 | ||
7548 | self = self; | |
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7550 | return NULL; | |
7551 | if (_argo0) { | |
7552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7555 | return NULL; | |
7556 | } | |
7557 | } | |
7558 | _arg1 = (bool ) tempbool1; | |
7559 | _arg2 = (bool ) tempbool2; | |
7560 | { | |
7561 | wxPy_BEGIN_ALLOW_THREADS; | |
7562 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); | |
7563 | ||
7564 | wxPy_END_ALLOW_THREADS; | |
7565 | } _resultobj = Py_BuildValue("i",_result); | |
7566 | return _resultobj; | |
7567 | } | |
7568 | ||
b37c7e1d RD |
7569 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7570 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7571 | PyObject * _resultobj; | |
7572 | wxFileTypeInfo * _result; | |
7573 | char * _arg0; | |
7574 | char * _arg1; | |
7575 | char * _arg2; | |
7576 | char * _arg3; | |
7577 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7578 | char _ptemp[128]; | |
7579 | ||
7580 | self = self; | |
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7582 | return NULL; | |
7583 | { | |
7584 | wxPy_BEGIN_ALLOW_THREADS; | |
7585 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); | |
7586 | ||
7587 | wxPy_END_ALLOW_THREADS; | |
7588 | } if (_result) { | |
7589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7590 | _resultobj = Py_BuildValue("s",_ptemp); | |
7591 | } else { | |
7592 | Py_INCREF(Py_None); | |
7593 | _resultobj = Py_None; | |
7594 | } | |
7595 | return _resultobj; | |
7596 | } | |
7597 | ||
7598 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7599 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject * _resultobj; | |
7601 | wxFileTypeInfo * _result; | |
7602 | wxArrayString * _arg0; | |
7603 | PyObject * _obj0 = 0; | |
7604 | char *_kwnames[] = { "sArray", NULL }; | |
7605 | char _ptemp[128]; | |
7606 | ||
7607 | self = self; | |
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7609 | return NULL; | |
7610 | { | |
7611 | if (! PySequence_Check(_obj0)) { | |
7612 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7613 | return NULL; | |
7614 | } | |
7615 | _arg0 = new wxArrayString; | |
7616 | int i, len=PySequence_Length(_obj0); | |
7617 | for (i=0; i<len; i++) { | |
7618 | PyObject* item = PySequence_GetItem(_obj0, i); | |
7619 | PyObject* str = PyObject_Str(item); | |
7620 | _arg0->Add(PyString_AsString(item)); | |
7621 | Py_DECREF(item); | |
7622 | Py_DECREF(str); | |
7623 | } | |
7624 | } | |
7625 | { | |
7626 | wxPy_BEGIN_ALLOW_THREADS; | |
7627 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); | |
7628 | ||
7629 | wxPy_END_ALLOW_THREADS; | |
7630 | } if (_result) { | |
7631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7632 | _resultobj = Py_BuildValue("s",_ptemp); | |
7633 | } else { | |
7634 | Py_INCREF(Py_None); | |
7635 | _resultobj = Py_None; | |
7636 | } | |
7637 | { | |
7638 | if (_obj0) | |
7639 | delete _arg0; | |
7640 | } | |
7641 | return _resultobj; | |
7642 | } | |
7643 | ||
7644 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7645 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7646 | PyObject * _resultobj; | |
7647 | wxFileTypeInfo * _result; | |
7648 | char *_kwnames[] = { NULL }; | |
7649 | char _ptemp[128]; | |
7650 | ||
7651 | self = self; | |
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7653 | return NULL; | |
7654 | { | |
7655 | wxPy_BEGIN_ALLOW_THREADS; | |
7656 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); | |
7657 | ||
7658 | wxPy_END_ALLOW_THREADS; | |
7659 | } if (_result) { | |
7660 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7661 | _resultobj = Py_BuildValue("s",_ptemp); | |
7662 | } else { | |
7663 | Py_INCREF(Py_None); | |
7664 | _resultobj = Py_None; | |
7665 | } | |
7666 | return _resultobj; | |
7667 | } | |
7668 | ||
7669 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7670 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7671 | PyObject * _resultobj; | |
7672 | bool _result; | |
7673 | wxFileTypeInfo * _arg0; | |
7674 | PyObject * _argo0 = 0; | |
7675 | char *_kwnames[] = { "self", NULL }; | |
7676 | ||
7677 | self = self; | |
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7679 | return NULL; | |
7680 | if (_argo0) { | |
7681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7684 | return NULL; | |
7685 | } | |
7686 | } | |
7687 | { | |
7688 | wxPy_BEGIN_ALLOW_THREADS; | |
7689 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); | |
7690 | ||
7691 | wxPy_END_ALLOW_THREADS; | |
7692 | } _resultobj = Py_BuildValue("i",_result); | |
7693 | return _resultobj; | |
7694 | } | |
7695 | ||
7696 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7697 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject * _resultobj; | |
7699 | wxFileTypeInfo * _arg0; | |
7700 | wxString * _arg1; | |
7701 | int _arg2 = (int ) 0; | |
7702 | PyObject * _argo0 = 0; | |
7703 | PyObject * _obj1 = 0; | |
7704 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7705 | ||
7706 | self = self; | |
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7708 | return NULL; | |
7709 | if (_argo0) { | |
7710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7713 | return NULL; | |
7714 | } | |
7715 | } | |
7716 | { | |
7717 | #if PYTHON_API_VERSION >= 1009 | |
7718 | char* tmpPtr; int tmpSize; | |
7719 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7720 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7721 | return NULL; | |
7722 | } | |
7723 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7724 | return NULL; | |
7725 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7726 | #else | |
7727 | if (!PyString_Check(_obj1)) { | |
7728 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7729 | return NULL; | |
7730 | } | |
7731 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7732 | #endif | |
7733 | } | |
7734 | { | |
7735 | wxPy_BEGIN_ALLOW_THREADS; | |
7736 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); | |
7737 | ||
7738 | wxPy_END_ALLOW_THREADS; | |
7739 | } Py_INCREF(Py_None); | |
7740 | _resultobj = Py_None; | |
7741 | { | |
7742 | if (_obj1) | |
7743 | delete _arg1; | |
7744 | } | |
7745 | return _resultobj; | |
7746 | } | |
7747 | ||
7748 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7749 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7750 | PyObject * _resultobj; | |
7751 | wxFileTypeInfo * _arg0; | |
7752 | wxString * _arg1; | |
7753 | PyObject * _argo0 = 0; | |
7754 | PyObject * _obj1 = 0; | |
7755 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7756 | ||
7757 | self = self; | |
7758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7759 | return NULL; | |
7760 | if (_argo0) { | |
7761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7764 | return NULL; | |
7765 | } | |
7766 | } | |
7767 | { | |
7768 | #if PYTHON_API_VERSION >= 1009 | |
7769 | char* tmpPtr; int tmpSize; | |
7770 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7771 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7772 | return NULL; | |
7773 | } | |
7774 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7775 | return NULL; | |
7776 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7777 | #else | |
7778 | if (!PyString_Check(_obj1)) { | |
7779 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7780 | return NULL; | |
7781 | } | |
7782 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7783 | #endif | |
7784 | } | |
7785 | { | |
7786 | wxPy_BEGIN_ALLOW_THREADS; | |
7787 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); | |
7788 | ||
7789 | wxPy_END_ALLOW_THREADS; | |
7790 | } Py_INCREF(Py_None); | |
7791 | _resultobj = Py_None; | |
7792 | { | |
7793 | if (_obj1) | |
7794 | delete _arg1; | |
7795 | } | |
7796 | return _resultobj; | |
7797 | } | |
7798 | ||
7799 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7800 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7801 | PyObject * _resultobj; | |
7802 | wxString * _result; | |
7803 | wxFileTypeInfo * _arg0; | |
7804 | PyObject * _argo0 = 0; | |
7805 | char *_kwnames[] = { "self", NULL }; | |
7806 | ||
7807 | self = self; | |
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7809 | return NULL; | |
7810 | if (_argo0) { | |
7811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7814 | return NULL; | |
7815 | } | |
7816 | } | |
7817 | { | |
7818 | wxPy_BEGIN_ALLOW_THREADS; | |
7819 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); | |
7820 | _result = (wxString *) &_result_ref; | |
7821 | ||
7822 | wxPy_END_ALLOW_THREADS; | |
7823 | }{ | |
7824 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7825 | } | |
7826 | return _resultobj; | |
7827 | } | |
7828 | ||
7829 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
7830 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7831 | PyObject * _resultobj; | |
7832 | wxString * _result; | |
7833 | wxFileTypeInfo * _arg0; | |
7834 | PyObject * _argo0 = 0; | |
7835 | char *_kwnames[] = { "self", NULL }; | |
7836 | ||
7837 | self = self; | |
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
7839 | return NULL; | |
7840 | if (_argo0) { | |
7841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
7844 | return NULL; | |
7845 | } | |
7846 | } | |
7847 | { | |
7848 | wxPy_BEGIN_ALLOW_THREADS; | |
7849 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); | |
7850 | _result = (wxString *) &_result_ref; | |
7851 | ||
7852 | wxPy_END_ALLOW_THREADS; | |
7853 | }{ | |
7854 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7855 | } | |
7856 | return _resultobj; | |
7857 | } | |
7858 | ||
7859 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
7860 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject * _resultobj; | |
7862 | wxString * _result; | |
7863 | wxFileTypeInfo * _arg0; | |
7864 | PyObject * _argo0 = 0; | |
7865 | char *_kwnames[] = { "self", NULL }; | |
7866 | ||
7867 | self = self; | |
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
7869 | return NULL; | |
7870 | if (_argo0) { | |
7871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
7874 | return NULL; | |
7875 | } | |
7876 | } | |
7877 | { | |
7878 | wxPy_BEGIN_ALLOW_THREADS; | |
7879 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); | |
7880 | _result = (wxString *) &_result_ref; | |
7881 | ||
7882 | wxPy_END_ALLOW_THREADS; | |
7883 | }{ | |
7884 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7885 | } | |
7886 | return _resultobj; | |
7887 | } | |
7888 | ||
7889 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
7890 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7891 | PyObject * _resultobj; | |
7892 | wxString * _result; | |
7893 | wxFileTypeInfo * _arg0; | |
7894 | PyObject * _argo0 = 0; | |
7895 | char *_kwnames[] = { "self", NULL }; | |
7896 | ||
7897 | self = self; | |
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
7899 | return NULL; | |
7900 | if (_argo0) { | |
7901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
7904 | return NULL; | |
7905 | } | |
7906 | } | |
7907 | { | |
7908 | wxPy_BEGIN_ALLOW_THREADS; | |
7909 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); | |
7910 | _result = (wxString *) &_result_ref; | |
7911 | ||
7912 | wxPy_END_ALLOW_THREADS; | |
7913 | }{ | |
7914 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7915 | } | |
7916 | return _resultobj; | |
7917 | } | |
7918 | ||
7919 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
7920 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7921 | PyObject * _resultobj; | |
7922 | wxString * _result; | |
7923 | wxFileTypeInfo * _arg0; | |
7924 | PyObject * _argo0 = 0; | |
7925 | char *_kwnames[] = { "self", NULL }; | |
7926 | ||
7927 | self = self; | |
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
7929 | return NULL; | |
7930 | if (_argo0) { | |
7931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
7934 | return NULL; | |
7935 | } | |
7936 | } | |
7937 | { | |
7938 | wxPy_BEGIN_ALLOW_THREADS; | |
7939 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); | |
7940 | _result = (wxString *) &_result_ref; | |
7941 | ||
7942 | wxPy_END_ALLOW_THREADS; | |
7943 | }{ | |
7944 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7945 | } | |
7946 | return _resultobj; | |
7947 | } | |
7948 | ||
7949 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
7950 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
7951 | return wxArrayString2PyList_helper(arr); | |
7952 | } | |
7953 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject * _resultobj; | |
7955 | PyObject * _result; | |
7956 | wxFileTypeInfo * _arg0; | |
7957 | PyObject * _argo0 = 0; | |
7958 | char *_kwnames[] = { "self", NULL }; | |
7959 | ||
7960 | self = self; | |
7961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
7962 | return NULL; | |
7963 | if (_argo0) { | |
7964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
7967 | return NULL; | |
7968 | } | |
7969 | } | |
7970 | { | |
7971 | wxPy_BEGIN_ALLOW_THREADS; | |
7972 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); | |
7973 | ||
7974 | wxPy_END_ALLOW_THREADS; | |
7975 | }{ | |
7976 | _resultobj = _result; | |
7977 | } | |
7978 | return _resultobj; | |
7979 | } | |
7980 | ||
7981 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
7982 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7983 | PyObject * _resultobj; | |
7984 | int _result; | |
7985 | wxFileTypeInfo * _arg0; | |
7986 | PyObject * _argo0 = 0; | |
7987 | char *_kwnames[] = { "self", NULL }; | |
7988 | ||
7989 | self = self; | |
7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
7991 | return NULL; | |
7992 | if (_argo0) { | |
7993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
7996 | return NULL; | |
7997 | } | |
7998 | } | |
7999 | { | |
8000 | wxPy_BEGIN_ALLOW_THREADS; | |
8001 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); | |
8002 | ||
8003 | wxPy_END_ALLOW_THREADS; | |
8004 | } _resultobj = Py_BuildValue("i",_result); | |
8005 | return _resultobj; | |
8006 | } | |
8007 | ||
8008 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8009 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8010 | PyObject * _resultobj; | |
8011 | wxString * _result; | |
8012 | wxFileTypeInfo * _arg0; | |
8013 | PyObject * _argo0 = 0; | |
8014 | char *_kwnames[] = { "self", NULL }; | |
8015 | ||
8016 | self = self; | |
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8018 | return NULL; | |
8019 | if (_argo0) { | |
8020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8023 | return NULL; | |
8024 | } | |
8025 | } | |
8026 | { | |
8027 | wxPy_BEGIN_ALLOW_THREADS; | |
8028 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); | |
8029 | _result = (wxString *) &_result_ref; | |
8030 | ||
8031 | wxPy_END_ALLOW_THREADS; | |
8032 | }{ | |
8033 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8034 | } | |
8035 | return _resultobj; | |
8036 | } | |
8037 | ||
8038 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8039 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8040 | PyObject * _resultobj; | |
8041 | int _result; | |
8042 | wxFileTypeInfo * _arg0; | |
8043 | PyObject * _argo0 = 0; | |
8044 | char *_kwnames[] = { "self", NULL }; | |
8045 | ||
8046 | self = self; | |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8048 | return NULL; | |
8049 | if (_argo0) { | |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
8056 | { | |
8057 | wxPy_BEGIN_ALLOW_THREADS; | |
8058 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); | |
8059 | ||
8060 | wxPy_END_ALLOW_THREADS; | |
8061 | } _resultobj = Py_BuildValue("i",_result); | |
8062 | return _resultobj; | |
8063 | } | |
8064 | ||
8065 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8066 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject * _resultobj; | |
8068 | wxFileType * _result; | |
8069 | wxFileTypeInfo * _arg0; | |
8070 | PyObject * _argo0 = 0; | |
8071 | char *_kwnames[] = { "ftInfo", NULL }; | |
8072 | char _ptemp[128]; | |
8073 | ||
8074 | self = self; | |
8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8076 | return NULL; | |
8077 | if (_argo0) { | |
8078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8081 | return NULL; | |
8082 | } | |
8083 | } | |
8084 | { | |
8085 | wxPy_BEGIN_ALLOW_THREADS; | |
8086 | _result = (wxFileType *)new_wxFileType(*_arg0); | |
8087 | ||
8088 | wxPy_END_ALLOW_THREADS; | |
8089 | } if (_result) { | |
8090 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8091 | _resultobj = Py_BuildValue("s",_ptemp); | |
8092 | } else { | |
8093 | Py_INCREF(Py_None); | |
8094 | _resultobj = Py_None; | |
8095 | } | |
8096 | return _resultobj; | |
8097 | } | |
8098 | ||
8099 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8100 | wxString str; | |
8101 | if (self->GetMimeType(&str)) | |
8102 | return PyString_FromString(str.c_str()); | |
8103 | else | |
8104 | RETURN_NONE(); | |
8105 | } | |
8106 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject * _resultobj; | |
8108 | PyObject * _result; | |
8109 | wxFileType * _arg0; | |
8110 | PyObject * _argo0 = 0; | |
8111 | char *_kwnames[] = { "self", NULL }; | |
8112 | ||
8113 | self = self; | |
8114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8115 | return NULL; | |
8116 | if (_argo0) { | |
8117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8120 | return NULL; | |
8121 | } | |
8122 | } | |
8123 | { | |
8124 | wxPy_BEGIN_ALLOW_THREADS; | |
8125 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); | |
8126 | ||
8127 | wxPy_END_ALLOW_THREADS; | |
8128 | }{ | |
8129 | _resultobj = _result; | |
8130 | } | |
8131 | return _resultobj; | |
8132 | } | |
8133 | ||
8134 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8135 | wxArrayString arr; | |
8136 | if (self->GetMimeTypes(arr)) | |
8137 | return wxArrayString2PyList_helper(arr); | |
8138 | else | |
8139 | RETURN_NONE(); | |
8140 | } | |
8141 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8142 | PyObject * _resultobj; | |
8143 | PyObject * _result; | |
8144 | wxFileType * _arg0; | |
8145 | PyObject * _argo0 = 0; | |
8146 | char *_kwnames[] = { "self", NULL }; | |
8147 | ||
8148 | self = self; | |
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8150 | return NULL; | |
8151 | if (_argo0) { | |
8152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
8158 | { | |
8159 | wxPy_BEGIN_ALLOW_THREADS; | |
8160 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); | |
8161 | ||
8162 | wxPy_END_ALLOW_THREADS; | |
8163 | }{ | |
8164 | _resultobj = _result; | |
8165 | } | |
8166 | return _resultobj; | |
8167 | } | |
8168 | ||
8169 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8170 | wxArrayString arr; | |
8171 | if (self->GetExtensions(arr)) | |
8172 | return wxArrayString2PyList_helper(arr); | |
8173 | else | |
8174 | RETURN_NONE(); | |
8175 | } | |
8176 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8177 | PyObject * _resultobj; | |
8178 | PyObject * _result; | |
8179 | wxFileType * _arg0; | |
8180 | PyObject * _argo0 = 0; | |
8181 | char *_kwnames[] = { "self", NULL }; | |
8182 | ||
8183 | self = self; | |
8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8185 | return NULL; | |
8186 | if (_argo0) { | |
8187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8190 | return NULL; | |
8191 | } | |
8192 | } | |
8193 | { | |
8194 | wxPy_BEGIN_ALLOW_THREADS; | |
8195 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); | |
8196 | ||
8197 | wxPy_END_ALLOW_THREADS; | |
8198 | }{ | |
8199 | _resultobj = _result; | |
8200 | } | |
8201 | return _resultobj; | |
8202 | } | |
8203 | ||
8204 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8205 | wxIcon icon; | |
8206 | if (self->GetIcon(&icon)) | |
8207 | return new wxIcon(icon); | |
8208 | else | |
8209 | return NULL; | |
8210 | } | |
8211 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject * _resultobj; | |
8213 | wxIcon * _result; | |
8214 | wxFileType * _arg0; | |
8215 | PyObject * _argo0 = 0; | |
8216 | char *_kwnames[] = { "self", NULL }; | |
8217 | char _ptemp[128]; | |
8218 | ||
8219 | self = self; | |
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8221 | return NULL; | |
8222 | if (_argo0) { | |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8226 | return NULL; | |
8227 | } | |
8228 | } | |
8229 | { | |
8230 | wxPy_BEGIN_ALLOW_THREADS; | |
8231 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); | |
8232 | ||
8233 | wxPy_END_ALLOW_THREADS; | |
8234 | } if (_result) { | |
8235 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8236 | _resultobj = Py_BuildValue("s",_ptemp); | |
8237 | } else { | |
8238 | Py_INCREF(Py_None); | |
8239 | _resultobj = Py_None; | |
8240 | } | |
8241 | return _resultobj; | |
8242 | } | |
8243 | ||
8244 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8245 | wxIcon icon; | |
8246 | wxString iconFile; | |
8247 | int iconIndex; | |
8248 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
8249 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8250 | PyObject* tuple = PyTuple_New(3); | |
8251 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8252 | "wxIcon", TRUE)); | |
8253 | PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str())); | |
8254 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
8255 | wxPyEndBlockThreads(state); | |
8256 | return tuple; | |
8257 | } | |
8258 | else | |
8259 | RETURN_NONE(); | |
8260 | } | |
8261 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8262 | PyObject * _resultobj; | |
8263 | PyObject * _result; | |
8264 | wxFileType * _arg0; | |
8265 | PyObject * _argo0 = 0; | |
8266 | char *_kwnames[] = { "self", NULL }; | |
8267 | ||
8268 | self = self; | |
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8270 | return NULL; | |
8271 | if (_argo0) { | |
8272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8275 | return NULL; | |
8276 | } | |
8277 | } | |
8278 | { | |
8279 | wxPy_BEGIN_ALLOW_THREADS; | |
8280 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); | |
8281 | ||
8282 | wxPy_END_ALLOW_THREADS; | |
8283 | }{ | |
8284 | _resultobj = _result; | |
8285 | } | |
8286 | return _resultobj; | |
8287 | } | |
8288 | ||
8289 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8290 | wxString str; | |
8291 | if (self->GetDescription(&str)) | |
8292 | return PyString_FromString(str.c_str()); | |
8293 | else | |
8294 | RETURN_NONE(); | |
8295 | } | |
8296 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8297 | PyObject * _resultobj; | |
8298 | PyObject * _result; | |
8299 | wxFileType * _arg0; | |
8300 | PyObject * _argo0 = 0; | |
8301 | char *_kwnames[] = { "self", NULL }; | |
8302 | ||
8303 | self = self; | |
8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8305 | return NULL; | |
8306 | if (_argo0) { | |
8307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8310 | return NULL; | |
8311 | } | |
8312 | } | |
8313 | { | |
8314 | wxPy_BEGIN_ALLOW_THREADS; | |
8315 | _result = (PyObject *)wxFileType_GetDescription(_arg0); | |
8316 | ||
8317 | wxPy_END_ALLOW_THREADS; | |
8318 | }{ | |
8319 | _resultobj = _result; | |
8320 | } | |
8321 | return _resultobj; | |
8322 | } | |
8323 | ||
8324 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8325 | wxString str; | |
8326 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8327 | return PyString_FromString(str.c_str()); | |
8328 | else | |
8329 | RETURN_NONE(); | |
8330 | } | |
8331 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8332 | PyObject * _resultobj; | |
8333 | PyObject * _result; | |
8334 | wxFileType * _arg0; | |
8335 | wxString * _arg1; | |
8336 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8337 | PyObject * _argo0 = 0; | |
8338 | PyObject * _obj1 = 0; | |
8339 | PyObject * _obj2 = 0; | |
8340 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8341 | ||
8342 | self = self; | |
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8344 | return NULL; | |
8345 | if (_argo0) { | |
8346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8349 | return NULL; | |
8350 | } | |
8351 | } | |
8352 | { | |
8353 | #if PYTHON_API_VERSION >= 1009 | |
8354 | char* tmpPtr; int tmpSize; | |
8355 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8356 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8357 | return NULL; | |
8358 | } | |
8359 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8360 | return NULL; | |
8361 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8362 | #else | |
8363 | if (!PyString_Check(_obj1)) { | |
8364 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8365 | return NULL; | |
8366 | } | |
8367 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8368 | #endif | |
8369 | } | |
8370 | if (_obj2) | |
8371 | { | |
8372 | #if PYTHON_API_VERSION >= 1009 | |
8373 | char* tmpPtr; int tmpSize; | |
8374 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8376 | return NULL; | |
8377 | } | |
8378 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8379 | return NULL; | |
8380 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8381 | #else | |
8382 | if (!PyString_Check(_obj2)) { | |
8383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8384 | return NULL; | |
8385 | } | |
8386 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8387 | #endif | |
8388 | } | |
8389 | { | |
8390 | wxPy_BEGIN_ALLOW_THREADS; | |
8391 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); | |
8392 | ||
8393 | wxPy_END_ALLOW_THREADS; | |
8394 | }{ | |
8395 | _resultobj = _result; | |
8396 | } | |
8397 | { | |
8398 | if (_obj1) | |
8399 | delete _arg1; | |
8400 | } | |
8401 | { | |
8402 | if (_obj2) | |
8403 | delete _arg2; | |
8404 | } | |
8405 | return _resultobj; | |
8406 | } | |
8407 | ||
8408 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8409 | wxString str; | |
8410 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8411 | return PyString_FromString(str.c_str()); | |
8412 | else | |
8413 | RETURN_NONE(); | |
8414 | } | |
8415 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8416 | PyObject * _resultobj; | |
8417 | PyObject * _result; | |
8418 | wxFileType * _arg0; | |
8419 | wxString * _arg1; | |
8420 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8421 | PyObject * _argo0 = 0; | |
8422 | PyObject * _obj1 = 0; | |
8423 | PyObject * _obj2 = 0; | |
8424 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8425 | ||
8426 | self = self; | |
8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8428 | return NULL; | |
8429 | if (_argo0) { | |
8430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8433 | return NULL; | |
8434 | } | |
8435 | } | |
8436 | { | |
8437 | #if PYTHON_API_VERSION >= 1009 | |
8438 | char* tmpPtr; int tmpSize; | |
8439 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8440 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8441 | return NULL; | |
8442 | } | |
8443 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8444 | return NULL; | |
8445 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8446 | #else | |
8447 | if (!PyString_Check(_obj1)) { | |
8448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8449 | return NULL; | |
8450 | } | |
8451 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8452 | #endif | |
8453 | } | |
8454 | if (_obj2) | |
8455 | { | |
8456 | #if PYTHON_API_VERSION >= 1009 | |
8457 | char* tmpPtr; int tmpSize; | |
8458 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8459 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8460 | return NULL; | |
8461 | } | |
8462 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8463 | return NULL; | |
8464 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8465 | #else | |
8466 | if (!PyString_Check(_obj2)) { | |
8467 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8468 | return NULL; | |
8469 | } | |
8470 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8471 | #endif | |
8472 | } | |
8473 | { | |
8474 | wxPy_BEGIN_ALLOW_THREADS; | |
8475 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); | |
8476 | ||
8477 | wxPy_END_ALLOW_THREADS; | |
8478 | }{ | |
8479 | _resultobj = _result; | |
8480 | } | |
8481 | { | |
8482 | if (_obj1) | |
8483 | delete _arg1; | |
8484 | } | |
8485 | { | |
8486 | if (_obj2) | |
8487 | delete _arg2; | |
8488 | } | |
8489 | return _resultobj; | |
8490 | } | |
8491 | ||
8492 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8493 | wxArrayString verbs; | |
8494 | wxArrayString commands; | |
8495 | if (self->GetAllCommands(&verbs, &commands, | |
8496 | wxFileType::MessageParameters(filename, mimetype))) { | |
8497 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8498 | PyObject* tuple = PyTuple_New(2); | |
8499 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8500 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
8501 | wxPyEndBlockThreads(state); | |
8502 | return tuple; | |
8503 | } | |
8504 | else | |
8505 | RETURN_NONE(); | |
8506 | } | |
8507 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | PyObject * _result; | |
8510 | wxFileType * _arg0; | |
8511 | wxString * _arg1; | |
8512 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8513 | PyObject * _argo0 = 0; | |
8514 | PyObject * _obj1 = 0; | |
8515 | PyObject * _obj2 = 0; | |
8516 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8517 | ||
8518 | self = self; | |
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8520 | return NULL; | |
8521 | if (_argo0) { | |
8522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8525 | return NULL; | |
8526 | } | |
8527 | } | |
8528 | { | |
8529 | #if PYTHON_API_VERSION >= 1009 | |
8530 | char* tmpPtr; int tmpSize; | |
8531 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8533 | return NULL; | |
8534 | } | |
8535 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8536 | return NULL; | |
8537 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8538 | #else | |
8539 | if (!PyString_Check(_obj1)) { | |
8540 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8541 | return NULL; | |
8542 | } | |
8543 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8544 | #endif | |
8545 | } | |
8546 | if (_obj2) | |
8547 | { | |
8548 | #if PYTHON_API_VERSION >= 1009 | |
8549 | char* tmpPtr; int tmpSize; | |
8550 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8551 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8552 | return NULL; | |
8553 | } | |
8554 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8555 | return NULL; | |
8556 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8557 | #else | |
8558 | if (!PyString_Check(_obj2)) { | |
8559 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8560 | return NULL; | |
8561 | } | |
8562 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8563 | #endif | |
8564 | } | |
8565 | { | |
8566 | wxPy_BEGIN_ALLOW_THREADS; | |
8567 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); | |
8568 | ||
8569 | wxPy_END_ALLOW_THREADS; | |
8570 | }{ | |
8571 | _resultobj = _result; | |
8572 | } | |
8573 | { | |
8574 | if (_obj1) | |
8575 | delete _arg1; | |
8576 | } | |
8577 | { | |
8578 | if (_obj2) | |
8579 | delete _arg2; | |
8580 | } | |
8581 | return _resultobj; | |
8582 | } | |
8583 | ||
8584 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8585 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject * _resultobj; | |
8587 | bool _result; | |
8588 | wxFileType * _arg0; | |
8589 | wxString * _arg1; | |
8590 | wxString * _arg2; | |
8591 | bool _arg3 = (bool ) TRUE; | |
8592 | PyObject * _argo0 = 0; | |
8593 | PyObject * _obj1 = 0; | |
8594 | PyObject * _obj2 = 0; | |
8595 | int tempbool3 = (int) TRUE; | |
8596 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8597 | ||
8598 | self = self; | |
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8600 | return NULL; | |
8601 | if (_argo0) { | |
8602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8605 | return NULL; | |
8606 | } | |
8607 | } | |
8608 | { | |
8609 | #if PYTHON_API_VERSION >= 1009 | |
8610 | char* tmpPtr; int tmpSize; | |
8611 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8613 | return NULL; | |
8614 | } | |
8615 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8616 | return NULL; | |
8617 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8618 | #else | |
8619 | if (!PyString_Check(_obj1)) { | |
8620 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8621 | return NULL; | |
8622 | } | |
8623 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8624 | #endif | |
8625 | } | |
8626 | { | |
8627 | #if PYTHON_API_VERSION >= 1009 | |
8628 | char* tmpPtr; int tmpSize; | |
8629 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8630 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8631 | return NULL; | |
8632 | } | |
8633 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8634 | return NULL; | |
8635 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8636 | #else | |
8637 | if (!PyString_Check(_obj2)) { | |
8638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8639 | return NULL; | |
8640 | } | |
8641 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8642 | #endif | |
8643 | } | |
8644 | _arg3 = (bool ) tempbool3; | |
8645 | { | |
8646 | wxPy_BEGIN_ALLOW_THREADS; | |
8647 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); | |
8648 | ||
8649 | wxPy_END_ALLOW_THREADS; | |
8650 | } _resultobj = Py_BuildValue("i",_result); | |
8651 | { | |
8652 | if (_obj1) | |
8653 | delete _arg1; | |
8654 | } | |
8655 | { | |
8656 | if (_obj2) | |
8657 | delete _arg2; | |
8658 | } | |
8659 | return _resultobj; | |
8660 | } | |
8661 | ||
8662 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8663 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8664 | PyObject * _resultobj; | |
8665 | bool _result; | |
8666 | wxFileType * _arg0; | |
8667 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
8668 | int _arg2 = (int ) 0; | |
8669 | PyObject * _argo0 = 0; | |
8670 | PyObject * _obj1 = 0; | |
8671 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8672 | ||
8673 | self = self; | |
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8675 | return NULL; | |
8676 | if (_argo0) { | |
8677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8680 | return NULL; | |
8681 | } | |
8682 | } | |
8683 | if (_obj1) | |
8684 | { | |
8685 | #if PYTHON_API_VERSION >= 1009 | |
8686 | char* tmpPtr; int tmpSize; | |
8687 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8688 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8689 | return NULL; | |
8690 | } | |
8691 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8692 | return NULL; | |
8693 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8694 | #else | |
8695 | if (!PyString_Check(_obj1)) { | |
8696 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8697 | return NULL; | |
8698 | } | |
8699 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8700 | #endif | |
8701 | } | |
8702 | { | |
8703 | wxPy_BEGIN_ALLOW_THREADS; | |
8704 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); | |
8705 | ||
8706 | wxPy_END_ALLOW_THREADS; | |
8707 | } _resultobj = Py_BuildValue("i",_result); | |
8708 | { | |
8709 | if (_obj1) | |
8710 | delete _arg1; | |
8711 | } | |
8712 | return _resultobj; | |
8713 | } | |
8714 | ||
8715 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8716 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8717 | PyObject * _resultobj; | |
8718 | bool _result; | |
8719 | wxFileType * _arg0; | |
8720 | PyObject * _argo0 = 0; | |
8721 | char *_kwnames[] = { "self", NULL }; | |
8722 | ||
8723 | self = self; | |
8724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8725 | return NULL; | |
8726 | if (_argo0) { | |
8727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8730 | return NULL; | |
8731 | } | |
8732 | } | |
8733 | { | |
8734 | wxPy_BEGIN_ALLOW_THREADS; | |
8735 | _result = (bool )wxFileType_Unassociate(_arg0); | |
8736 | ||
8737 | wxPy_END_ALLOW_THREADS; | |
8738 | } _resultobj = Py_BuildValue("i",_result); | |
8739 | return _resultobj; | |
8740 | } | |
8741 | ||
8742 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject * _resultobj; | |
8744 | wxString * _result; | |
8745 | wxString * _arg0; | |
8746 | wxFileType::MessageParameters * _arg1; | |
8747 | PyObject * _obj0 = 0; | |
8748 | PyObject * _argo1 = 0; | |
8749 | char *_kwnames[] = { "command","params", NULL }; | |
8750 | ||
8751 | self = self; | |
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8753 | return NULL; | |
8754 | { | |
8755 | #if PYTHON_API_VERSION >= 1009 | |
8756 | char* tmpPtr; int tmpSize; | |
8757 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8758 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8759 | return NULL; | |
8760 | } | |
8761 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8762 | return NULL; | |
8763 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8764 | #else | |
8765 | if (!PyString_Check(_obj0)) { | |
8766 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8767 | return NULL; | |
8768 | } | |
8769 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8770 | #endif | |
8771 | } | |
8772 | if (_argo1) { | |
8773 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8774 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8776 | return NULL; | |
8777 | } | |
8778 | } | |
8779 | { | |
8780 | wxPy_BEGIN_ALLOW_THREADS; | |
8781 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); | |
8782 | ||
8783 | wxPy_END_ALLOW_THREADS; | |
8784 | }{ | |
8785 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8786 | } | |
8787 | { | |
8788 | if (_obj0) | |
8789 | delete _arg0; | |
8790 | } | |
8791 | { | |
8792 | delete _result; | |
8793 | } | |
8794 | return _resultobj; | |
8795 | } | |
8796 | ||
8797 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8798 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject * _resultobj; | |
8800 | wxFileType * _arg0; | |
8801 | PyObject * _argo0 = 0; | |
8802 | char *_kwnames[] = { "self", NULL }; | |
8803 | ||
8804 | self = self; | |
8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8806 | return NULL; | |
8807 | if (_argo0) { | |
8808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8811 | return NULL; | |
8812 | } | |
8813 | } | |
8814 | { | |
8815 | wxPy_BEGIN_ALLOW_THREADS; | |
8816 | delete_wxFileType(_arg0); | |
8817 | ||
8818 | wxPy_END_ALLOW_THREADS; | |
8819 | } Py_INCREF(Py_None); | |
8820 | _resultobj = Py_None; | |
8821 | return _resultobj; | |
8822 | } | |
8823 | ||
8824 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8825 | PyObject * _resultobj; | |
8826 | bool _result; | |
8827 | wxString * _arg0; | |
8828 | wxString * _arg1; | |
8829 | PyObject * _obj0 = 0; | |
8830 | PyObject * _obj1 = 0; | |
8831 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8832 | ||
8833 | self = self; | |
8834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8835 | return NULL; | |
8836 | { | |
8837 | #if PYTHON_API_VERSION >= 1009 | |
8838 | char* tmpPtr; int tmpSize; | |
8839 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8840 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8841 | return NULL; | |
8842 | } | |
8843 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8844 | return NULL; | |
8845 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8846 | #else | |
8847 | if (!PyString_Check(_obj0)) { | |
8848 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8849 | return NULL; | |
8850 | } | |
8851 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8852 | #endif | |
8853 | } | |
8854 | { | |
8855 | #if PYTHON_API_VERSION >= 1009 | |
8856 | char* tmpPtr; int tmpSize; | |
8857 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8859 | return NULL; | |
8860 | } | |
8861 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8862 | return NULL; | |
8863 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8864 | #else | |
8865 | if (!PyString_Check(_obj1)) { | |
8866 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8867 | return NULL; | |
8868 | } | |
8869 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8870 | #endif | |
8871 | } | |
8872 | { | |
8873 | wxPy_BEGIN_ALLOW_THREADS; | |
8874 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); | |
8875 | ||
8876 | wxPy_END_ALLOW_THREADS; | |
8877 | } _resultobj = Py_BuildValue("i",_result); | |
8878 | { | |
8879 | if (_obj0) | |
8880 | delete _arg0; | |
8881 | } | |
8882 | { | |
8883 | if (_obj1) | |
8884 | delete _arg1; | |
8885 | } | |
8886 | return _resultobj; | |
8887 | } | |
8888 | ||
8889 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8890 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject * _resultobj; | |
8892 | wxMimeTypesManager * _result; | |
8893 | char *_kwnames[] = { NULL }; | |
8894 | char _ptemp[128]; | |
8895 | ||
8896 | self = self; | |
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8898 | return NULL; | |
8899 | { | |
8900 | wxPy_BEGIN_ALLOW_THREADS; | |
8901 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); | |
8902 | ||
8903 | wxPy_END_ALLOW_THREADS; | |
8904 | } if (_result) { | |
8905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8906 | _resultobj = Py_BuildValue("s",_ptemp); | |
8907 | } else { | |
8908 | Py_INCREF(Py_None); | |
8909 | _resultobj = Py_None; | |
8910 | } | |
8911 | return _resultobj; | |
8912 | } | |
8913 | ||
8914 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
8915 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8916 | PyObject * _resultobj; | |
8917 | wxMimeTypesManager * _arg0; | |
8918 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
8919 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8920 | PyObject * _argo0 = 0; | |
8921 | PyObject * _obj2 = 0; | |
8922 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
8923 | ||
8924 | self = self; | |
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8926 | return NULL; | |
8927 | if (_argo0) { | |
8928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
8931 | return NULL; | |
8932 | } | |
8933 | } | |
8934 | if (_obj2) | |
8935 | { | |
8936 | #if PYTHON_API_VERSION >= 1009 | |
8937 | char* tmpPtr; int tmpSize; | |
8938 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8940 | return NULL; | |
8941 | } | |
8942 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8943 | return NULL; | |
8944 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8945 | #else | |
8946 | if (!PyString_Check(_obj2)) { | |
8947 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8948 | return NULL; | |
8949 | } | |
8950 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8951 | #endif | |
8952 | } | |
8953 | { | |
8954 | wxPy_BEGIN_ALLOW_THREADS; | |
8955 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); | |
8956 | ||
8957 | wxPy_END_ALLOW_THREADS; | |
8958 | } Py_INCREF(Py_None); | |
8959 | _resultobj = Py_None; | |
8960 | { | |
8961 | if (_obj2) | |
8962 | delete _arg2; | |
8963 | } | |
8964 | return _resultobj; | |
8965 | } | |
8966 | ||
8967 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
8968 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8969 | PyObject * _resultobj; | |
8970 | wxMimeTypesManager * _arg0; | |
8971 | PyObject * _argo0 = 0; | |
8972 | char *_kwnames[] = { "self", NULL }; | |
8973 | ||
8974 | self = self; | |
8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
8976 | return NULL; | |
8977 | if (_argo0) { | |
8978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
8981 | return NULL; | |
8982 | } | |
8983 | } | |
8984 | { | |
8985 | wxPy_BEGIN_ALLOW_THREADS; | |
8986 | wxMimeTypesManager_ClearData(_arg0); | |
8987 | ||
8988 | wxPy_END_ALLOW_THREADS; | |
8989 | } Py_INCREF(Py_None); | |
8990 | _resultobj = Py_None; | |
8991 | return _resultobj; | |
8992 | } | |
8993 | ||
8994 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
8995 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8996 | PyObject * _resultobj; | |
8997 | wxFileType * _result; | |
8998 | wxMimeTypesManager * _arg0; | |
8999 | wxString * _arg1; | |
9000 | PyObject * _argo0 = 0; | |
9001 | PyObject * _obj1 = 0; | |
9002 | char *_kwnames[] = { "self","ext", NULL }; | |
9003 | char _ptemp[128]; | |
9004 | ||
9005 | self = self; | |
9006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9007 | return NULL; | |
9008 | if (_argo0) { | |
9009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9012 | return NULL; | |
9013 | } | |
9014 | } | |
9015 | { | |
9016 | #if PYTHON_API_VERSION >= 1009 | |
9017 | char* tmpPtr; int tmpSize; | |
9018 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9019 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9020 | return NULL; | |
9021 | } | |
9022 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9023 | return NULL; | |
9024 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9025 | #else | |
9026 | if (!PyString_Check(_obj1)) { | |
9027 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9028 | return NULL; | |
9029 | } | |
9030 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9031 | #endif | |
9032 | } | |
9033 | { | |
9034 | wxPy_BEGIN_ALLOW_THREADS; | |
9035 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); | |
9036 | ||
9037 | wxPy_END_ALLOW_THREADS; | |
9038 | } if (_result) { | |
9039 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9040 | _resultobj = Py_BuildValue("s",_ptemp); | |
9041 | } else { | |
9042 | Py_INCREF(Py_None); | |
9043 | _resultobj = Py_None; | |
9044 | } | |
9045 | { | |
9046 | if (_obj1) | |
9047 | delete _arg1; | |
9048 | } | |
9049 | return _resultobj; | |
9050 | } | |
9051 | ||
9052 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9053 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9054 | PyObject * _resultobj; | |
9055 | wxFileType * _result; | |
9056 | wxMimeTypesManager * _arg0; | |
9057 | wxString * _arg1; | |
9058 | PyObject * _argo0 = 0; | |
9059 | PyObject * _obj1 = 0; | |
9060 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9061 | char _ptemp[128]; | |
9062 | ||
9063 | self = self; | |
9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9065 | return NULL; | |
9066 | if (_argo0) { | |
9067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9070 | return NULL; | |
9071 | } | |
9072 | } | |
9073 | { | |
9074 | #if PYTHON_API_VERSION >= 1009 | |
9075 | char* tmpPtr; int tmpSize; | |
9076 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9077 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9078 | return NULL; | |
9079 | } | |
9080 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9081 | return NULL; | |
9082 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9083 | #else | |
9084 | if (!PyString_Check(_obj1)) { | |
9085 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9086 | return NULL; | |
9087 | } | |
9088 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9089 | #endif | |
9090 | } | |
9091 | { | |
9092 | wxPy_BEGIN_ALLOW_THREADS; | |
9093 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); | |
9094 | ||
9095 | wxPy_END_ALLOW_THREADS; | |
9096 | } if (_result) { | |
9097 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9098 | _resultobj = Py_BuildValue("s",_ptemp); | |
9099 | } else { | |
9100 | Py_INCREF(Py_None); | |
9101 | _resultobj = Py_None; | |
9102 | } | |
9103 | { | |
9104 | if (_obj1) | |
9105 | delete _arg1; | |
9106 | } | |
9107 | return _resultobj; | |
9108 | } | |
9109 | ||
9110 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9111 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject * _resultobj; | |
9113 | bool _result; | |
9114 | wxMimeTypesManager * _arg0; | |
9115 | wxString * _arg1; | |
9116 | bool _arg2 = (bool ) FALSE; | |
9117 | PyObject * _argo0 = 0; | |
9118 | PyObject * _obj1 = 0; | |
9119 | int tempbool2 = (int) FALSE; | |
9120 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9121 | ||
9122 | self = self; | |
9123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9124 | return NULL; | |
9125 | if (_argo0) { | |
9126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9129 | return NULL; | |
9130 | } | |
9131 | } | |
9132 | { | |
9133 | #if PYTHON_API_VERSION >= 1009 | |
9134 | char* tmpPtr; int tmpSize; | |
9135 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9136 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9137 | return NULL; | |
9138 | } | |
9139 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9140 | return NULL; | |
9141 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9142 | #else | |
9143 | if (!PyString_Check(_obj1)) { | |
9144 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9145 | return NULL; | |
9146 | } | |
9147 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9148 | #endif | |
9149 | } | |
9150 | _arg2 = (bool ) tempbool2; | |
9151 | { | |
9152 | wxPy_BEGIN_ALLOW_THREADS; | |
9153 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); | |
9154 | ||
9155 | wxPy_END_ALLOW_THREADS; | |
9156 | } _resultobj = Py_BuildValue("i",_result); | |
9157 | { | |
9158 | if (_obj1) | |
9159 | delete _arg1; | |
9160 | } | |
9161 | return _resultobj; | |
9162 | } | |
9163 | ||
9164 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9165 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject * _resultobj; | |
9167 | bool _result; | |
9168 | wxMimeTypesManager * _arg0; | |
9169 | wxString * _arg1; | |
9170 | PyObject * _argo0 = 0; | |
9171 | PyObject * _obj1 = 0; | |
9172 | char *_kwnames[] = { "self","filename", NULL }; | |
9173 | ||
9174 | self = self; | |
9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9176 | return NULL; | |
9177 | if (_argo0) { | |
9178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9181 | return NULL; | |
9182 | } | |
9183 | } | |
9184 | { | |
9185 | #if PYTHON_API_VERSION >= 1009 | |
9186 | char* tmpPtr; int tmpSize; | |
9187 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9188 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9189 | return NULL; | |
9190 | } | |
9191 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9192 | return NULL; | |
9193 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9194 | #else | |
9195 | if (!PyString_Check(_obj1)) { | |
9196 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9197 | return NULL; | |
9198 | } | |
9199 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9200 | #endif | |
9201 | } | |
9202 | { | |
9203 | wxPy_BEGIN_ALLOW_THREADS; | |
9204 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); | |
9205 | ||
9206 | wxPy_END_ALLOW_THREADS; | |
9207 | } _resultobj = Py_BuildValue("i",_result); | |
9208 | { | |
9209 | if (_obj1) | |
9210 | delete _arg1; | |
9211 | } | |
9212 | return _resultobj; | |
9213 | } | |
9214 | ||
9215 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9216 | wxArrayString arr; | |
9217 | self->EnumAllFileTypes(arr); | |
9218 | return wxArrayString2PyList_helper(arr); | |
9219 | } | |
9220 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9221 | PyObject * _resultobj; | |
9222 | PyObject * _result; | |
9223 | wxMimeTypesManager * _arg0; | |
9224 | PyObject * _argo0 = 0; | |
9225 | char *_kwnames[] = { "self", NULL }; | |
9226 | ||
9227 | self = self; | |
9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9229 | return NULL; | |
9230 | if (_argo0) { | |
9231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9234 | return NULL; | |
9235 | } | |
9236 | } | |
9237 | { | |
9238 | wxPy_BEGIN_ALLOW_THREADS; | |
9239 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); | |
9240 | ||
9241 | wxPy_END_ALLOW_THREADS; | |
9242 | }{ | |
9243 | _resultobj = _result; | |
9244 | } | |
9245 | return _resultobj; | |
9246 | } | |
9247 | ||
9248 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9249 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject * _resultobj; | |
9251 | wxMimeTypesManager * _arg0; | |
9252 | wxFileTypeInfo * _arg1; | |
9253 | PyObject * _argo0 = 0; | |
9254 | PyObject * _argo1 = 0; | |
9255 | char *_kwnames[] = { "self","ft", NULL }; | |
9256 | ||
9257 | self = self; | |
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9259 | return NULL; | |
9260 | if (_argo0) { | |
9261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9264 | return NULL; | |
9265 | } | |
9266 | } | |
9267 | if (_argo1) { | |
9268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9271 | return NULL; | |
9272 | } | |
9273 | } | |
9274 | { | |
9275 | wxPy_BEGIN_ALLOW_THREADS; | |
9276 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); | |
9277 | ||
9278 | wxPy_END_ALLOW_THREADS; | |
9279 | } Py_INCREF(Py_None); | |
9280 | _resultobj = Py_None; | |
9281 | return _resultobj; | |
9282 | } | |
9283 | ||
9284 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9285 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject * _resultobj; | |
9287 | wxFileType * _result; | |
9288 | wxMimeTypesManager * _arg0; | |
9289 | wxFileTypeInfo * _arg1; | |
9290 | PyObject * _argo0 = 0; | |
9291 | PyObject * _argo1 = 0; | |
9292 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9293 | char _ptemp[128]; | |
9294 | ||
9295 | self = self; | |
9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9297 | return NULL; | |
9298 | if (_argo0) { | |
9299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9302 | return NULL; | |
9303 | } | |
9304 | } | |
9305 | if (_argo1) { | |
9306 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9307 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
9312 | { | |
9313 | wxPy_BEGIN_ALLOW_THREADS; | |
9314 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); | |
9315 | ||
9316 | wxPy_END_ALLOW_THREADS; | |
9317 | } if (_result) { | |
9318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9319 | _resultobj = Py_BuildValue("s",_ptemp); | |
9320 | } else { | |
9321 | Py_INCREF(Py_None); | |
9322 | _resultobj = Py_None; | |
9323 | } | |
9324 | return _resultobj; | |
9325 | } | |
9326 | ||
9327 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9328 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject * _resultobj; | |
9330 | bool _result; | |
9331 | wxMimeTypesManager * _arg0; | |
9332 | wxFileType * _arg1; | |
9333 | PyObject * _argo0 = 0; | |
9334 | PyObject * _argo1 = 0; | |
9335 | char *_kwnames[] = { "self","ft", NULL }; | |
9336 | ||
9337 | self = self; | |
9338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9339 | return NULL; | |
9340 | if (_argo0) { | |
9341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9344 | return NULL; | |
9345 | } | |
9346 | } | |
9347 | if (_argo1) { | |
9348 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9349 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9351 | return NULL; | |
9352 | } | |
9353 | } | |
9354 | { | |
9355 | wxPy_BEGIN_ALLOW_THREADS; | |
9356 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); | |
9357 | ||
9358 | wxPy_END_ALLOW_THREADS; | |
9359 | } _resultobj = Py_BuildValue("i",_result); | |
9360 | return _resultobj; | |
9361 | } | |
9362 | ||
9363 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9364 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject * _resultobj; | |
9366 | wxMimeTypesManager * _arg0; | |
9367 | PyObject * _argo0 = 0; | |
9368 | char *_kwnames[] = { "self", NULL }; | |
9369 | ||
9370 | self = self; | |
9371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9372 | return NULL; | |
9373 | if (_argo0) { | |
9374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9377 | return NULL; | |
9378 | } | |
9379 | } | |
9380 | { | |
9381 | wxPy_BEGIN_ALLOW_THREADS; | |
9382 | delete_wxMimeTypesManager(_arg0); | |
9383 | ||
9384 | wxPy_END_ALLOW_THREADS; | |
9385 | } Py_INCREF(Py_None); | |
9386 | _resultobj = Py_None; | |
9387 | return _resultobj; | |
9388 | } | |
9389 | ||
bb0054cd | 9390 | static PyMethodDef misc2cMethods[] = { |
b37c7e1d RD |
9391 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
9392 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9393 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
9394 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
9395 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
9396 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9397 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
9398 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9399 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
9400 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
9401 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
9402 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
9403 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
9404 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9405 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
9406 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9407 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
9408 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
9409 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
9410 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9411 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9412 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9413 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
9414 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9415 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9416 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9417 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9418 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9419 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
9420 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
9421 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
9422 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9423 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9424 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9425 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9426 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9427 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9428 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9429 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9430 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
9431 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
9432 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
9433 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
9434 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
9435 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9436 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9437 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
9438 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
9439 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
9440 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
9441 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
9442 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
9443 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
9444 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
9445 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
9446 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
9447 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
9448 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
9449 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
9450 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
9451 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
9452 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
9453 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
9454 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
9455 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
9456 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
9457 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
9458 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
9459 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
9460 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
9461 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
9462 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
9463 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
9464 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
9465 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
9466 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
9467 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
9468 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
9469 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9470 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9471 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9472 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9473 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
9474 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
9475 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
9476 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9477 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
9478 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
9479 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 9480 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 9481 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9482 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
9483 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
9484 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
9485 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
9486 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
9487 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
9488 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
9489 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 9490 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9491 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
9492 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
9493 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
9494 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
9495 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
9496 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
9497 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
9498 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
9499 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 9500 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 9501 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 RD |
9502 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
9503 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9504 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9505 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9506 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
9507 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9508 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
9509 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
9510 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9511 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9512 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9513 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
9514 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9515 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
9516 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
9517 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9518 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 9519 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9520 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9521 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9522 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
9523 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
9524 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
9525 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9526 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9527 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9528 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9529 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
9530 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9531 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9532 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
9533 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9534 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9535 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
9536 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9537 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
9538 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
9539 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
9540 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9541 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
9542 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
9543 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9544 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
9545 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
9546 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9547 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
9548 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
9549 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
9550 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
9551 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
9552 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
9553 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9554 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9555 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
9556 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
9557 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
9558 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
9559 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
9560 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
9561 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
9562 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 9563 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 9564 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
9565 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
9566 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
9567 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
9568 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9569 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
9570 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
9571 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
9573 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
9574 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
9575 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
9576 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
9577 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
9578 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
9579 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
65dd82cb RD |
9580 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, |
9581 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9582 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, |
9583 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 9584 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9585 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, |
9586 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
9587 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
9588 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
9589 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
9590 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
9591 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
9592 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9593 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9594 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9595 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9596 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9597 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9598 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
9599 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9600 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
9601 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
9602 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
9603 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9604 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
9605 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
9606 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
9607 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 9608 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 9609 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9610 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
9611 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
9612 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
9613 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9614 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
9615 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
9616 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
9617 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
9618 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
9619 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
9620 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9621 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
9622 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
9623 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
9624 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
9625 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
9626 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 9627 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9628 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 9629 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
9630 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
9631 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
9632 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
9633 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
9634 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
9635 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
9636 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
9637 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
9638 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
9639 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
9640 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
9641 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9642 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
9643 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
25832b3f | 9644 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
9645 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
9646 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
9647 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
9648 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
9649 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9650 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
9651 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 9652 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
9653 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
9654 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
9655 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
9656 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
9657 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
9658 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
9659 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
9660 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
9661 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
9662 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
9663 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
9664 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
9665 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 9666 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 RD |
9667 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
9668 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
bb0054cd RD |
9669 | { NULL, NULL } |
9670 | }; | |
1d99702e RD |
9671 | #ifdef __cplusplus |
9672 | } | |
9673 | #endif | |
9674 | /* | |
9675 | * This table is used by the pointer type-checker | |
9676 | */ | |
9677 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 9678 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 9679 | { "_signed_long","_long",0}, |
b1462dfa | 9680 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9681 | { "_wxPrintQuality","_int",0}, |
9682 | { "_wxPrintQuality","_signed_int",0}, | |
9683 | { "_wxPrintQuality","_unsigned_int",0}, | |
9684 | { "_wxPrintQuality","_wxWindowID",0}, | |
9685 | { "_wxPrintQuality","_uint",0}, | |
9686 | { "_wxPrintQuality","_EBool",0}, | |
9687 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9688 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
9689 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
9690 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 9691 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 9692 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 9693 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 9694 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 9695 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9696 | { "_long","_unsigned_long",0}, |
9697 | { "_long","_signed_long",0}, | |
b1462dfa | 9698 | { "_size_t","_wxCoord",0}, |
1d99702e | 9699 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9700 | { "_size_t","_time_t",0}, |
1d99702e RD |
9701 | { "_size_t","_unsigned_int",0}, |
9702 | { "_size_t","_int",0}, | |
9703 | { "_size_t","_wxWindowID",0}, | |
9704 | { "_size_t","_uint",0}, | |
b1462dfa | 9705 | { "_uint","_wxCoord",0}, |
1d99702e | 9706 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9707 | { "_uint","_time_t",0}, |
1d99702e RD |
9708 | { "_uint","_size_t",0}, |
9709 | { "_uint","_unsigned_int",0}, | |
9710 | { "_uint","_int",0}, | |
9711 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9712 | { "_wxChar","_char",0}, |
f6bcfd97 | 9713 | { "_char","_wxChar",0}, |
cdf14688 | 9714 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 9715 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9716 | { "_EBool","_wxPrintQuality",0}, |
9717 | { "_EBool","_signed_int",0}, | |
9718 | { "_EBool","_int",0}, | |
9719 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9720 | { "_unsigned_long","_long",0}, |
cdf14688 | 9721 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 9722 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9723 | { "_signed_int","_wxPrintQuality",0}, |
9724 | { "_signed_int","_EBool",0}, | |
9725 | { "_signed_int","_wxWindowID",0}, | |
9726 | { "_signed_int","_int",0}, | |
1d99702e RD |
9727 | { "_WXTYPE","_short",0}, |
9728 | { "_WXTYPE","_signed_short",0}, | |
9729 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 9730 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
1d99702e RD |
9731 | { "_unsigned_short","_WXTYPE",0}, |
9732 | { "_unsigned_short","_short",0}, | |
493f1553 | 9733 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 9734 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 9735 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 9736 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 9737 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 9738 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 9739 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
9740 | { "_signed_short","_WXTYPE",0}, |
9741 | { "_signed_short","_short",0}, | |
1d99702e | 9742 | { "_unsigned_char","_byte",0}, |
b1462dfa | 9743 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9744 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9745 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9746 | { "_unsigned_int","_size_t",0}, |
9747 | { "_unsigned_int","_uint",0}, | |
9748 | { "_unsigned_int","_wxWindowID",0}, | |
9749 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9750 | { "_short","_WXTYPE",0}, |
9751 | { "_short","_unsigned_short",0}, | |
9752 | { "_short","_signed_short",0}, | |
b1462dfa | 9753 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9754 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9755 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9756 | { "_wxWindowID","_size_t",0}, |
9757 | { "_wxWindowID","_EBool",0}, | |
9758 | { "_wxWindowID","_uint",0}, | |
9759 | { "_wxWindowID","_int",0}, | |
9760 | { "_wxWindowID","_signed_int",0}, | |
9761 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9762 | { "_int","_wxCoord",0}, |
1d99702e | 9763 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9764 | { "_int","_time_t",0}, |
1d99702e RD |
9765 | { "_int","_size_t",0}, |
9766 | { "_int","_EBool",0}, | |
9767 | { "_int","_uint",0}, | |
9768 | { "_int","_wxWindowID",0}, | |
9769 | { "_int","_unsigned_int",0}, | |
9770 | { "_int","_signed_int",0}, | |
c368d904 RD |
9771 | { "_time_t","_wxCoord",0}, |
9772 | { "_time_t","_wxPrintQuality",0}, | |
9773 | { "_time_t","_unsigned_int",0}, | |
9774 | { "_time_t","_int",0}, | |
9775 | { "_time_t","_wxWindowID",0}, | |
9776 | { "_time_t","_uint",0}, | |
9777 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
9778 | { "_wxCoord","_int",0}, |
9779 | { "_wxCoord","_signed_int",0}, | |
9780 | { "_wxCoord","_unsigned_int",0}, | |
9781 | { "_wxCoord","_wxWindowID",0}, | |
9782 | { "_wxCoord","_uint",0}, | |
9783 | { "_wxCoord","_EBool",0}, | |
9784 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9785 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9786 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 9787 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
9788 | {0,0,0}}; |
9789 | ||
bb0054cd RD |
9790 | static PyObject *SWIG_globals; |
9791 | #ifdef __cplusplus | |
9792 | extern "C" | |
9793 | #endif | |
1d99702e | 9794 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
9795 | PyObject *m, *d; |
9796 | SWIG_globals = SWIG_newvarlink(); | |
9797 | m = Py_InitModule("misc2c", misc2cMethods); | |
9798 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
9799 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); |
9800 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
9801 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
9802 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
9803 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
9804 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
9805 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
9806 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
9807 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
9808 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
9809 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
9810 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
9811 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
9812 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
9813 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
9814 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
9815 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
9816 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
9817 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
9818 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
9819 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
9820 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
9821 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
9822 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
9823 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
9824 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
9825 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
9826 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
9827 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
9828 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
9829 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
9830 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
9831 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
9832 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
9833 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
9834 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
9835 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
9836 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
9837 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
9838 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
9839 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
9840 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
9841 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
9842 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
9843 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
9844 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
9845 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
9846 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
9847 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
9848 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
9849 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
9850 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
9851 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
9852 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
9853 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
9854 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
9855 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
9856 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
9857 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
9858 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
9859 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
9860 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
9861 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
9862 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
9863 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
9864 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
9865 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
9866 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
9867 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
9868 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
9869 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
9870 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
9871 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
9872 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
9873 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
9874 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
9875 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
9876 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
9877 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
9878 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
9879 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
9880 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
9881 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
9882 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
9883 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
9884 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
f6bcfd97 BP |
9885 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
9886 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
9887 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
9888 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
9889 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
9890 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
9891 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
9892 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
9893 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
9894 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 9895 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b37c7e1d RD |
9896 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
9897 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
9898 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
9899 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
9900 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
9901 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
9902 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 RD |
9903 | |
9904 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
9905 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
9906 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
1d99702e RD |
9907 | { |
9908 | int i; | |
9909 | for (i = 0; _swig_mapping[i].n1; i++) | |
9910 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9911 | } | |
bb0054cd | 9912 | } |